From 7145f2542269325ff0befb18a77af00ce611b2f0 Mon Sep 17 00:00:00 2001 From: Sofia Leon Date: Wed, 28 Oct 2026 21:34:16 +0000 Subject: [PATCH] feat(google/cloud/designcenter/v1): add designcenter --- gapic-libraries-bom/pom.xml | 7 + java-designcenter/.repo-metadata.json | 15 + java-designcenter/README.md | 210 + .../google-cloud-designcenter-bom/pom.xml | 45 + .../google-cloud-designcenter/pom.xml | 117 + .../designcenter/v1/DesignCenterClient.java | 15431 ++++++++++++++++ .../designcenter/v1/DesignCenterSettings.java | 1696 ++ .../cloud/designcenter/v1/gapic_metadata.json | 273 + .../cloud/designcenter/v1/package-info.java | 43 + .../v1/stub/DesignCenterStub.java | 849 + .../v1/stub/DesignCenterStubSettings.java | 4965 +++++ .../stub/GrpcDesignCenterCallableFactory.java | 115 + .../v1/stub/GrpcDesignCenterStub.java | 3818 ++++ .../HttpJsonDesignCenterCallableFactory.java | 103 + .../v1/stub/HttpJsonDesignCenterStub.java | 6319 +++++++ .../cloud/designcenter/v1/stub/Version.java | 27 + .../reflect-config.json | 9182 +++++++++ .../v1/DesignCenterClientHttpJsonTest.java | 9302 ++++++++++ .../v1/DesignCenterClientTest.java | 8203 ++++++++ .../designcenter/v1/MockDesignCenter.java | 59 + .../designcenter/v1/MockDesignCenterImpl.java | 1793 ++ .../cloud/designcenter/v1/MockIAMPolicy.java | 59 + .../designcenter/v1/MockIAMPolicyImpl.java | 127 + .../cloud/designcenter/v1/MockLocations.java | 59 + .../designcenter/v1/MockLocationsImpl.java | 105 + .../grpc-google-cloud-designcenter-v1/pom.xml | 45 + .../designcenter/v1/DesignCenterGrpc.java | 11285 +++++++++++ java-designcenter/pom.xml | 68 + .../clirr-ignored-differences.xml | 80 + .../pom.xml | 49 + .../cloud/designcenter/v1/AdcMetadata.java | 1470 ++ .../designcenter/v1/AdcMetadataOrBuilder.java | 189 + .../designcenter/v1/AlternateDefault.java | 868 + .../v1/AlternateDefaultInput.java | 869 + .../v1/AlternateDefaultInputOrBuilder.java | 95 + .../v1/AlternateDefaultOrBuilder.java | 95 + .../google/cloud/designcenter/v1/ApiInfo.java | 699 + .../designcenter/v1/ApiInfoOrBuilder.java | 69 + .../v1/AppHubApplicationParameters.java | 1583 ++ .../AppHubApplicationParametersOrBuilder.java | 188 + .../v1/ApphubIntegrationProto.java | 109 + .../v1/ApphubIntegrationRpcMessagesProto.java | 139 + .../cloud/designcenter/v1/Application.java | 10596 +++++++++++ .../v1/ApplicationCompositionType.java | 203 + .../designcenter/v1/ApplicationName.java | 263 + .../designcenter/v1/ApplicationOperation.java | 286 + .../v1/ApplicationOperationMetadata.java | 804 + ...ApplicationOperationMetadataOrBuilder.java | 84 + .../designcenter/v1/ApplicationOrBuilder.java | 1351 ++ .../v1/ApplicationOutputParameters.java | 842 + .../ApplicationOutputParametersOrBuilder.java | 75 + .../designcenter/v1/ApplicationTemplate.java | 5836 ++++++ .../v1/ApplicationTemplateName.java | 272 + .../v1/ApplicationTemplateOperation.java | 309 + .../v1/ApplicationTemplateOrBuilder.java | 737 + .../v1/ApplicationTemplateRevision.java | 2623 +++ .../v1/ApplicationTemplateRevisionName.java | 302 + .../ApplicationTemplateRevisionOrBuilder.java | 327 + .../v1/ApplicationTemplateSystemRevision.java | 1686 ++ ...ApplicationTemplateSystemRevisionName.java | 312 + ...cationTemplateSystemRevisionOrBuilder.java | 244 + .../designcenter/v1/ApplicationType.java | 191 + .../cloud/designcenter/v1/ApplyCondition.java | 787 + .../v1/ApplyConditionOrBuilder.java | 80 + .../designcenter/v1/ArtifactLocation.java | 1098 ++ .../v1/ArtifactLocationOrBuilder.java | 119 + .../designcenter/v1/AssessedFramework.java | 1888 ++ .../v1/AssessedFrameworkOrBuilder.java | 219 + .../designcenter/v1/AssessmentFinding.java | 4542 +++++ .../v1/AssessmentFindingOrBuilder.java | 460 + .../designcenter/v1/AssessmentProto.java | 493 + .../designcenter/v1/AssessmentReport.java | 2941 +++ .../v1/AssessmentReportOrBuilder.java | 363 + .../cloud/designcenter/v1/AssetDetails.java | 847 + .../v1/AssetDetailsOrBuilder.java | 98 + .../v1/AuthoringResourcesProto.java | 560 + .../v1/AuthoringRpcMessagesProto.java | 878 + .../v1/BestPracticesResourcesProto.java | 164 + .../v1/BestPracticesRpcMessagesProto.java | 380 + .../google/cloud/designcenter/v1/Catalog.java | 1586 ++ .../v1/CatalogManagementResourcesProto.java | 310 + .../v1/CatalogManagementRpcMessagesProto.java | 540 + .../cloud/designcenter/v1/CatalogName.java | 260 + .../designcenter/v1/CatalogOrBuilder.java | 188 + .../designcenter/v1/CatalogTemplate.java | 2319 +++ .../designcenter/v1/CatalogTemplateName.java | 301 + .../v1/CatalogTemplateOrBuilder.java | 302 + .../v1/CatalogTemplateRevision.java | 7846 ++++++++ .../v1/CatalogTemplateRevisionMetadata.java | 2338 +++ ...alogTemplateRevisionMetadataOrBuilder.java | 296 + .../v1/CatalogTemplateRevisionName.java | 341 + .../v1/CatalogTemplateRevisionOrBuilder.java | 1044 ++ .../cloud/designcenter/v1/CloudControl.java | 2454 +++ .../designcenter/v1/CloudControlConfig.java | 1194 ++ .../v1/CloudControlConfigOrBuilder.java | 130 + .../v1/CloudControlOrBuilder.java | 270 + .../cloud/designcenter/v1/CodePosition.java | 696 + .../v1/CodePositionOrBuilder.java | 67 + .../cloud/designcenter/v1/CodeRange.java | 1020 + .../designcenter/v1/CodeRangeOrBuilder.java | 114 + .../v1/CommitApplicationTemplateRequest.java | 621 + ...itApplicationTemplateRequestOrBuilder.java | 58 + .../cloud/designcenter/v1/Component.java | 5158 ++++++ .../v1/ComponentApplicationInfo.java | 1607 ++ .../v1/ComponentApplicationInfoOrBuilder.java | 196 + .../cloud/designcenter/v1/ComponentName.java | 301 + .../designcenter/v1/ComponentOrBuilder.java | 667 + .../v1/ComponentOutputParameters.java | 1160 ++ .../ComponentOutputParametersOrBuilder.java | 120 + .../v1/ComponentParameterSchema.java | 1186 ++ .../v1/ComponentParameterSchemaOrBuilder.java | 133 + .../designcenter/v1/ComponentParameters.java | 3469 ++++ .../v1/ComponentParametersOrBuilder.java | 381 + .../designcenter/v1/ComponentVariable.java | 787 + .../v1/ComponentVariableOrBuilder.java | 80 + .../v1/CompositeApplicationParameters.java | 1322 ++ ...mpositeApplicationParametersOrBuilder.java | 207 + .../v1/ConfigureAndDeployTemplateRequest.java | 1827 ++ ...gureAndDeployTemplateRequestOrBuilder.java | 220 + .../ConfigureAndDeployTemplateResponse.java | 1263 ++ ...ureAndDeployTemplateResponseOrBuilder.java | 143 + .../cloud/designcenter/v1/Connection.java | 2805 +++ .../designcenter/v1/ConnectionConfig.java | 1801 ++ .../v1/ConnectionConfigOrBuilder.java | 199 + .../v1/ConnectionDependencyType.java | 196 + .../cloud/designcenter/v1/ConnectionName.java | 342 + .../designcenter/v1/ConnectionOrBuilder.java | 343 + .../designcenter/v1/ConnectionParameters.java | 1162 ++ .../v1/ConnectionParametersOrBuilder.java | 120 + .../designcenter/v1/ConnectionSource.java | 806 + .../v1/ConnectionSourceOrBuilder.java | 86 + .../cloud/designcenter/v1/ConnectionSpec.java | 834 + .../v1/ConnectionSpecOrBuilder.java | 96 + .../v1/CreateApplicationRequest.java | 1125 ++ .../v1/CreateApplicationRequestOrBuilder.java | 129 + .../v1/CreateApplicationTemplateRequest.java | 1136 ++ ...teApplicationTemplateRequestOrBuilder.java | 127 + .../designcenter/v1/CreateCatalogRequest.java | 1122 ++ .../v1/CreateCatalogRequestOrBuilder.java | 129 + .../v1/CreateCatalogTemplateRequest.java | 1130 ++ ...CreateCatalogTemplateRequestOrBuilder.java | 129 + .../CreateCatalogTemplateRevisionRequest.java | 1159 ++ ...talogTemplateRevisionRequestOrBuilder.java | 132 + .../v1/CreateComponentRequest.java | 1117 ++ .../v1/CreateComponentRequestOrBuilder.java | 127 + .../v1/CreateConnectionRequest.java | 1117 ++ .../v1/CreateConnectionRequestOrBuilder.java | 127 + .../designcenter/v1/CreatePolicyRequest.java | 1124 ++ .../v1/CreatePolicyRequestOrBuilder.java | 131 + .../designcenter/v1/CreateShareRequest.java | 1107 ++ .../v1/CreateShareRequestOrBuilder.java | 124 + .../designcenter/v1/CreateSpaceRequest.java | 1107 ++ .../v1/CreateSpaceRequestOrBuilder.java | 124 + .../v1/DeleteApplicationRequest.java | 726 + .../v1/DeleteApplicationRequestOrBuilder.java | 76 + .../v1/DeleteApplicationTemplateRequest.java | 726 + ...teApplicationTemplateRequestOrBuilder.java | 73 + ...eteApplicationTemplateRevisionRequest.java | 631 + ...ationTemplateRevisionRequestOrBuilder.java | 58 + .../designcenter/v1/DeleteCatalogRequest.java | 719 + .../v1/DeleteCatalogRequestOrBuilder.java | 74 + .../v1/DeleteCatalogTemplateRequest.java | 730 + ...DeleteCatalogTemplateRequestOrBuilder.java | 76 + .../DeleteCatalogTemplateRevisionRequest.java | 623 + ...talogTemplateRevisionRequestOrBuilder.java | 58 + .../v1/DeleteComponentRequest.java | 712 + .../v1/DeleteComponentRequestOrBuilder.java | 72 + .../v1/DeleteConnectionRequest.java | 611 + .../v1/DeleteConnectionRequestOrBuilder.java | 58 + .../designcenter/v1/DeletePolicyRequest.java | 617 + .../v1/DeletePolicyRequestOrBuilder.java | 60 + .../designcenter/v1/DeleteShareRequest.java | 617 + .../v1/DeleteShareRequestOrBuilder.java | 60 + .../designcenter/v1/DeleteSpaceRequest.java | 711 + .../v1/DeleteSpaceRequestOrBuilder.java | 72 + .../v1/DeployApplicationRequest.java | 1338 ++ .../v1/DeployApplicationRequestOrBuilder.java | 180 + .../v1/DeployApplicationResponse.java | 1185 ++ .../DeployApplicationResponseOrBuilder.java | 131 + .../designcenter/v1/DeployedResource.java | 981 + .../v1/DeployedResourceOrBuilder.java | 108 + .../v1/DeployedResourceResponse.java | 1448 ++ .../v1/DeployedResourceResponseOrBuilder.java | 171 + .../v1/DeploymentAttemptMetadata.java | 892 + .../DeploymentAttemptMetadataOrBuilder.java | 95 + .../designcenter/v1/DeploymentError.java | 2694 +++ .../v1/DeploymentErrorOrBuilder.java | 284 + .../v1/DeploymentFailureResolutionInfo.java | 982 + ...loymentFailureResolutionInfoOrBuilder.java | 106 + .../v1/DeploymentGroupMetadata.java | 1116 ++ .../v1/DeploymentGroupMetadataOrBuilder.java | 144 + .../designcenter/v1/DeploymentMetadata.java | 2325 +++ .../v1/DeploymentMetadataOrBuilder.java | 281 + .../v1/DeploymentOperationMetadata.java | 1999 ++ .../DeploymentOperationMetadataOrBuilder.java | 229 + .../designcenter/v1/DeploymentProto.java | 541 + .../v1/DeploymentResourcesProto.java | 223 + .../v1/DeploymentRpcMessagesProto.java | 496 + .../designcenter/v1/DeploymentSource.java | 973 + .../v1/DeploymentSourceOrBuilder.java | 108 + .../designcenter/v1/DeploymentTarget.java | 825 + .../v1/DeploymentTargetOrBuilder.java | 73 + .../v1/DeploymentUnitProgress.java | 1367 ++ .../v1/DeploymentUnitProgressOrBuilder.java | 162 + .../designcenter/v1/DesigncenterProto.java | 743 + .../v1/DeveloperConnectConfig.java | 604 + .../v1/DeveloperConnectConfigOrBuilder.java | 56 + .../v1/DeveloperConnectExportConfig.java | 1233 ++ ...DeveloperConnectExportConfigOrBuilder.java | 150 + .../v1/DeveloperConnectSourceConfig.java | 1352 ++ ...DeveloperConnectSourceConfigOrBuilder.java | 164 + .../designcenter/v1/DisplayVariable.java | 3411 ++++ .../v1/DisplayVariableAlternateType.java | 197 + .../v1/DisplayVariableOrBuilder.java | 449 + .../v1/DisplayVariableToggle.java | 1304 ++ .../v1/DisplayVariableToggleOrBuilder.java | 146 + .../v1/DisplayVariableVisibility.java | 171 + .../google/cloud/designcenter/v1/Domain.java | 1635 ++ .../v1/DomainAssessmentReport.java | 4732 +++++ .../v1/DomainAssessmentReportOrBuilder.java | 472 + .../designcenter/v1/DomainOrBuilder.java | 186 + .../cloud/designcenter/v1/EnumsProto.java | 128 + .../v1/ExportApplicationIaCRequest.java | 1426 ++ .../ExportApplicationIaCRequestOrBuilder.java | 177 + .../v1/ExportApplicationIaCResponse.java | 998 + ...ExportApplicationIaCResponseOrBuilder.java | 102 + .../ExportApplicationTemplateIaCRequest.java | 1275 ++ ...pplicationTemplateIaCRequestOrBuilder.java | 150 + .../ExportApplicationTemplateIaCResponse.java | 1006 + ...plicationTemplateIaCResponseOrBuilder.java | 102 + ...ApplicationTemplateRevisionIaCRequest.java | 1291 ++ ...onTemplateRevisionIaCRequestOrBuilder.java | 150 + ...pplicationTemplateRevisionIaCResponse.java | 1023 + ...nTemplateRevisionIaCResponseOrBuilder.java | 102 + .../designcenter/v1/ExportIaCConfig.java | 992 + .../v1/ExportIaCConfigOrBuilder.java | 103 + .../cloud/designcenter/v1/ExportProto.java | 168 + ...tchApplicationAssessmentReportRequest.java | 636 + ...ationAssessmentReportRequestOrBuilder.java | 60 + ...chApplicationAssessmentReportResponse.java | 723 + ...tionAssessmentReportResponseOrBuilder.java | 65 + ...mplateRevisionAssessmentReportRequest.java | 663 + ...isionAssessmentReportRequestOrBuilder.java | 60 + ...plateRevisionAssessmentReportResponse.java | 761 + ...sionAssessmentReportResponseOrBuilder.java | 65 + ...atalogTemplateRevisionTFSourceRequest.java | 655 + ...plateRevisionTFSourceRequestOrBuilder.java | 62 + ...talogTemplateRevisionTFSourceResponse.java | 1253 ++ ...lateRevisionTFSourceResponseOrBuilder.java | 121 + .../v1/FetchFrameworksRequest.java | 1411 ++ .../v1/FetchFrameworksRequestOrBuilder.java | 187 + .../v1/FetchFrameworksResponse.java | 1121 ++ .../v1/FetchFrameworksResponseOrBuilder.java | 112 + ...mplateRevisionAssessmentReportRequest.java | 661 + ...isionAssessmentReportRequestOrBuilder.java | 60 + ...plateRevisionAssessmentReportResponse.java | 748 + ...sionAssessmentReportResponseOrBuilder.java | 65 + ...SharedTemplateRevisionTFSourceRequest.java | 654 + ...plateRevisionTFSourceRequestOrBuilder.java | 62 + ...haredTemplateRevisionTFSourceResponse.java | 1252 ++ ...lateRevisionTFSourceResponseOrBuilder.java | 121 + .../cloud/designcenter/v1/Framework.java | 2703 +++ .../designcenter/v1/FrameworkOrBuilder.java | 311 + .../designcenter/v1/GKEDeploymentTarget.java | 1106 ++ .../v1/GKEDeploymentTargetOrBuilder.java | 127 + ...ateApplicationAssessmentReportRequest.java | 645 + ...ationAssessmentReportRequestOrBuilder.java | 60 + ...teApplicationAssessmentReportResponse.java | 755 + ...tionAssessmentReportResponseOrBuilder.java | 71 + .../v1/GenerateApplicationIaCRequest.java | 1337 ++ ...enerateApplicationIaCRequestOrBuilder.java | 168 + .../v1/GenerateApplicationIaCResponse.java | 1219 ++ ...nerateApplicationIaCResponseOrBuilder.java | 136 + ...cationTemplateAssessmentReportRequest.java | 939 + ...plateAssessmentReportRequestOrBuilder.java | 110 + ...ationTemplateAssessmentReportResponse.java | 1071 ++ ...lateAssessmentReportResponseOrBuilder.java | 117 + ...GenerateApplicationTemplateIaCRequest.java | 1532 ++ ...pplicationTemplateIaCRequestOrBuilder.java | 168 + ...enerateApplicationTemplateIaCResponse.java | 1229 ++ ...plicationTemplateIaCResponseOrBuilder.java | 136 + ...ApplicationTemplateRevisionIaCRequest.java | 1337 ++ ...onTemplateRevisionIaCRequestOrBuilder.java | 135 + ...pplicationTemplateRevisionIaCResponse.java | 1028 + ...nTemplateRevisionIaCResponseOrBuilder.java | 102 + ...rateAssessmentReportOperationMetadata.java | 843 + ...smentReportOperationMetadataOrBuilder.java | 59 + .../v1/GenerateAssessmentReportRequest.java | 1048 ++ ...erateAssessmentReportRequestOrBuilder.java | 136 + .../v1/GenerateAssessmentReportResponse.java | 718 + ...rateAssessmentReportResponseOrBuilder.java | 66 + ...eTerraformPlanAssessmentReportRequest.java | 1069 ++ ...mPlanAssessmentReportRequestOrBuilder.java | 136 + ...TerraformPlanAssessmentReportResponse.java | 735 + ...PlanAssessmentReportResponseOrBuilder.java | 65 + .../v1/GetApplicationRequest.java | 625 + .../v1/GetApplicationRequestOrBuilder.java | 62 + .../v1/GetApplicationTemplateRequest.java | 617 + ...etApplicationTemplateRequestOrBuilder.java | 58 + ...GetApplicationTemplateRevisionRequest.java | 625 + ...ationTemplateRevisionRequestOrBuilder.java | 58 + ...licationTemplateSystemRevisionRequest.java | 653 + ...emplateSystemRevisionRequestOrBuilder.java | 62 + .../designcenter/v1/GetCatalogRequest.java | 617 + .../v1/GetCatalogRequestOrBuilder.java | 60 + .../v1/GetCatalogTemplateRequest.java | 618 + .../GetCatalogTemplateRequestOrBuilder.java | 60 + .../v1/GetCatalogTemplateRevisionRequest.java | 623 + ...talogTemplateRevisionRequestOrBuilder.java | 58 + .../designcenter/v1/GetComponentRequest.java | 610 + .../v1/GetComponentRequestOrBuilder.java | 58 + .../designcenter/v1/GetConnectionRequest.java | 611 + .../v1/GetConnectionRequestOrBuilder.java | 58 + .../designcenter/v1/GetPolicyRequest.java | 617 + .../v1/GetPolicyRequestOrBuilder.java | 60 + .../designcenter/v1/GetShareRequest.java | 617 + .../v1/GetShareRequestOrBuilder.java | 60 + .../v1/GetSharedTemplateRequest.java | 625 + .../v1/GetSharedTemplateRequestOrBuilder.java | 62 + .../v1/GetSharedTemplateRevisionRequest.java | 628 + ...haredTemplateRevisionRequestOrBuilder.java | 60 + .../designcenter/v1/GetSpaceRequest.java | 610 + .../v1/GetSpaceRequestOrBuilder.java | 58 + .../cloud/designcenter/v1/GitReference.java | 1239 ++ .../v1/GitReferenceOrBuilder.java | 156 + .../cloud/designcenter/v1/GitSource.java | 1535 ++ .../designcenter/v1/GitSourceOrBuilder.java | 190 + .../v1/HelmApplicationOutputParameters.java | 978 + ...mApplicationOutputParametersOrBuilder.java | 94 + .../cloud/designcenter/v1/HelmChartInput.java | 1840 ++ .../v1/HelmChartInputOrBuilder.java | 234 + .../designcenter/v1/HelmChartMetadata.java | 1537 ++ .../v1/HelmChartMetadataOrBuilder.java | 160 + .../designcenter/v1/HelmChartOutput.java | 1067 ++ .../v1/HelmChartOutputOrBuilder.java | 117 + .../cloud/designcenter/v1/IACFormat.java | 191 + .../cloud/designcenter/v1/IACSource.java | 191 + .../google/cloud/designcenter/v1/IaCFile.java | 797 + .../designcenter/v1/IaCFileOrBuilder.java | 84 + .../cloud/designcenter/v1/IaCModule.java | 965 + .../designcenter/v1/IaCModuleOrBuilder.java | 94 + .../cloud/designcenter/v1/IacFormatInfo.java | 793 + .../v1/IacFormatInfoOrBuilder.java | 82 + .../cloud/designcenter/v1/IacProto.java | 180 + .../v1/ImportApplicationIaCRequest.java | 1477 ++ .../ImportApplicationIaCRequestOrBuilder.java | 171 + .../v1/ImportApplicationIaCResponse.java | 1559 ++ ...ImportApplicationIaCResponseOrBuilder.java | 147 + .../ImportApplicationTemplateIaCRequest.java | 1842 ++ ...pplicationTemplateIaCRequestOrBuilder.java | 218 + .../ImportApplicationTemplateIaCResponse.java | 1586 ++ ...plicationTemplateIaCResponseOrBuilder.java | 149 + .../v1/ImportApplicationTemplateRequest.java | 2292 +++ ...rtApplicationTemplateRequestOrBuilder.java | 350 + .../cloud/designcenter/v1/ImportIaCError.java | 2236 +++ .../v1/ImportIaCErrorOrBuilder.java | 209 + ...tSerializedApplicationTemplateRequest.java | 974 + ...edApplicationTemplateRequestOrBuilder.java | 102 + .../designcenter/v1/InferredMetadata.java | 1527 ++ .../v1/InferredMetadataOrBuilder.java | 180 + .../IngestApplicationTemplateIaCRequest.java | 2173 +++ ...pplicationTemplateIaCRequestOrBuilder.java | 260 + .../IngestApplicationTemplateIaCResponse.java | 1415 ++ ...plicationTemplateIaCResponseOrBuilder.java | 149 + .../cloud/designcenter/v1/IngestionProto.java | 273 + .../designcenter/v1/InputVariableAlias.java | 801 + .../v1/InputVariableAliasOrBuilder.java | 84 + ...stApplicationTemplateRevisionsRequest.java | 1333 ++ ...tionTemplateRevisionsRequestOrBuilder.java | 160 + ...tApplicationTemplateRevisionsResponse.java | 1516 ++ ...ionTemplateRevisionsResponseOrBuilder.java | 181 + ...icationTemplateSystemRevisionsRequest.java | 1179 ++ ...mplateSystemRevisionsRequestOrBuilder.java | 140 + ...cationTemplateSystemRevisionsResponse.java | 1539 ++ ...plateSystemRevisionsResponseOrBuilder.java | 182 + .../v1/ListApplicationTemplatesRequest.java | 1315 ++ ...tApplicationTemplatesRequestOrBuilder.java | 158 + .../v1/ListApplicationTemplatesResponse.java | 1469 ++ ...ApplicationTemplatesResponseOrBuilder.java | 175 + .../v1/ListApplicationsRequest.java | 1308 ++ .../v1/ListApplicationsRequestOrBuilder.java | 158 + .../v1/ListApplicationsResponse.java | 1419 ++ .../v1/ListApplicationsResponseOrBuilder.java | 168 + ...talogTemplateRevisionMetadataResponse.java | 1528 ++ ...lateRevisionMetadataResponseOrBuilder.java | 182 + .../ListCatalogTemplateRevisionsRequest.java | 1327 ++ ...alogTemplateRevisionsRequestOrBuilder.java | 160 + .../ListCatalogTemplateRevisionsResponse.java | 1504 ++ ...logTemplateRevisionsResponseOrBuilder.java | 180 + .../v1/ListCatalogTemplatesRequest.java | 1326 ++ .../ListCatalogTemplatesRequestOrBuilder.java | 162 + .../v1/ListCatalogTemplatesResponse.java | 1145 ++ ...ListCatalogTemplatesResponseOrBuilder.java | 114 + .../designcenter/v1/ListCatalogsRequest.java | 1310 ++ .../v1/ListCatalogsRequestOrBuilder.java | 159 + .../designcenter/v1/ListCatalogsResponse.java | 1126 ++ .../v1/ListCatalogsResponseOrBuilder.java | 114 + .../v1/ListComponentsRequest.java | 1315 ++ .../v1/ListComponentsRequestOrBuilder.java | 160 + .../v1/ListComponentsResponse.java | 1418 ++ .../v1/ListComponentsResponseOrBuilder.java | 168 + .../v1/ListConnectionsRequest.java | 1304 ++ .../v1/ListConnectionsRequestOrBuilder.java | 157 + .../v1/ListConnectionsResponse.java | 1418 ++ .../v1/ListConnectionsResponseOrBuilder.java | 168 + .../designcenter/v1/ListPoliciesRequest.java | 1317 ++ .../v1/ListPoliciesRequestOrBuilder.java | 161 + .../designcenter/v1/ListPoliciesResponse.java | 1126 ++ .../v1/ListPoliciesResponseOrBuilder.java | 114 + .../ListSharedTemplateRevisionsRequest.java | 1334 ++ ...aredTemplateRevisionsRequestOrBuilder.java | 162 + .../ListSharedTemplateRevisionsResponse.java | 1213 ++ ...redTemplateRevisionsResponseOrBuilder.java | 126 + .../v1/ListSharedTemplatesRequest.java | 1311 ++ .../ListSharedTemplatesRequestOrBuilder.java | 159 + .../v1/ListSharedTemplatesResponse.java | 1144 ++ .../ListSharedTemplatesResponseOrBuilder.java | 114 + .../designcenter/v1/ListSharesRequest.java | 1118 ++ .../v1/ListSharesRequestOrBuilder.java | 132 + .../designcenter/v1/ListSharesResponse.java | 1124 ++ .../v1/ListSharesResponseOrBuilder.java | 114 + .../designcenter/v1/ListSpacesRequest.java | 1303 ++ .../v1/ListSpacesRequestOrBuilder.java | 157 + .../designcenter/v1/ListSpacesResponse.java | 1414 ++ .../v1/ListSpacesResponseOrBuilder.java | 168 + .../cloud/designcenter/v1/LocationName.java | 195 + .../cloud/designcenter/v1/LogicalProduct.java | 981 + .../v1/LogicalProductOrBuilder.java | 108 + .../cloud/designcenter/v1/MetadataInput.java | 721 + .../v1/MetadataInputOrBuilder.java | 71 + .../designcenter/v1/MetadataInputSpec.java | 1657 ++ .../v1/MetadataInputSpecOrBuilder.java | 206 + .../cloud/designcenter/v1/MetadataProto.java | 1126 ++ .../designcenter/v1/ModuleDependency.java | 974 + .../v1/ModuleDependencyOrBuilder.java | 106 + .../cloud/designcenter/v1/ModuleDetails.java | 3896 ++++ .../v1/ModuleDetailsOrBuilder.java | 451 + .../cloud/designcenter/v1/ModuleInput.java | 1395 ++ .../designcenter/v1/ModuleInputOrBuilder.java | 165 + .../cloud/designcenter/v1/ModuleOutput.java | 784 + .../v1/ModuleOutputOrBuilder.java | 80 + .../cloud/designcenter/v1/ModuleResource.java | 785 + .../v1/ModuleResourceOrBuilder.java | 80 + .../google/cloud/designcenter/v1/OciRepo.java | 986 + .../designcenter/v1/OciRepoOrBuilder.java | 110 + .../designcenter/v1/OperationMetadata.java | 3767 ++++ .../v1/OperationMetadataOrBuilder.java | 469 + .../cloud/designcenter/v1/Parameter.java | 978 + .../designcenter/v1/ParameterOrBuilder.java | 105 + .../cloud/designcenter/v1/ParameterSpec.java | 2419 +++ .../v1/ParameterSpecOrBuilder.java | 269 + .../designcenter/v1/ParametersProto.java | 179 + .../google/cloud/designcenter/v1/Policy.java | 3841 ++++ .../cloud/designcenter/v1/PolicyName.java | 301 + .../designcenter/v1/PolicyOrBuilder.java | 478 + .../v1/PreviewApplicationRequest.java | 1129 ++ .../PreviewApplicationRequestOrBuilder.java | 150 + .../v1/PreviewApplicationResponse.java | 979 + .../PreviewApplicationResponseOrBuilder.java | 102 + .../v1/PreviewOperationMetadata.java | 1518 ++ .../v1/PreviewOperationMetadataOrBuilder.java | 170 + .../designcenter/v1/ProjectParameters.java | 1204 ++ .../v1/ProjectParametersList.java | 987 + .../v1/ProjectParametersListOrBuilder.java | 95 + .../v1/ProjectParametersOrBuilder.java | 170 + .../designcenter/v1/ProviderDependency.java | 1163 ++ .../v1/ProviderDependencyOrBuilder.java | 132 + .../designcenter/v1/ProviderVersion.java | 799 + .../v1/ProviderVersionOrBuilder.java | 84 + ...isionDeploymentGroupOperationMetadata.java | 1432 ++ ...oymentGroupOperationMetadataOrBuilder.java | 127 + .../v1/RecommendIAMRolesRequest.java | 625 + .../v1/RecommendIAMRolesRequestOrBuilder.java | 62 + .../v1/RecommendIAMRolesResponse.java | 1013 + .../RecommendIAMRolesResponseOrBuilder.java | 101 + ...sterAppHubApplicationResourcesRequest.java | 1459 ++ ...bApplicationResourcesRequestOrBuilder.java | 186 + ...terAppHubApplicationResourcesResponse.java | 741 + ...ApplicationResourcesResponseOrBuilder.java | 68 + .../designcenter/v1/RemediationStep.java | 1097 ++ .../v1/RemediationStepOrBuilder.java | 140 + .../cloud/designcenter/v1/Resource.java | 1228 ++ .../designcenter/v1/ResourceOrBuilder.java | 114 + .../cloud/designcenter/v1/ResourceType.java | 791 + .../v1/ResourceTypeOrBuilder.java | 82 + .../cloud/designcenter/v1/RoleInfo.java | 1030 ++ .../designcenter/v1/RoleInfoOrBuilder.java | 135 + .../designcenter/v1/RolesAndApisConfig.java | 1828 ++ .../v1/RolesAndApisConfigOrBuilder.java | 211 + .../designcenter/v1/RootInputVariable.java | 1534 ++ .../v1/RootInputVariableOrBuilder.java | 180 + .../cloud/designcenter/v1/RootModule.java | 2541 +++ .../designcenter/v1/RootModuleDependency.java | 1114 ++ .../v1/RootModuleDependencyOrBuilder.java | 110 + .../designcenter/v1/RootModuleOrBuilder.java | 299 + .../designcenter/v1/RootModulesMetadata.java | 924 + .../v1/RootModulesMetadataOrBuilder.java | 84 + .../designcenter/v1/RootOutputVariable.java | 596 + .../v1/RootOutputVariableOrBuilder.java | 54 + .../cloud/designcenter/v1/SCCMetadata.java | 784 + .../designcenter/v1/SCCMetadataOrBuilder.java | 80 + .../designcenter/v1/SaaSRuntimeContext.java | 710 + .../v1/SaaSRuntimeContextOrBuilder.java | 86 + .../cloud/designcenter/v1/ScoreCard.java | 801 + .../designcenter/v1/ScoreCardOrBuilder.java | 82 + .../v1/SerializedApplicationTemplate.java | 6795 +++++++ ...erializedApplicationTemplateOrBuilder.java | 820 + .../designcenter/v1/SerializedComponent.java | 5126 +++++ .../v1/SerializedComponentOrBuilder.java | 649 + .../designcenter/v1/SerializedConnection.java | 2171 +++ .../v1/SerializedConnectionOrBuilder.java | 255 + .../designcenter/v1/SerializedPolicy.java | 3043 +++ .../v1/SerializedPolicyOrBuilder.java | 357 + .../designcenter/v1/SerializedProvider.java | 1378 ++ .../v1/SerializedProviderOrBuilder.java | 153 + .../google/cloud/designcenter/v1/Share.java | 1458 ++ .../cloud/designcenter/v1/ShareName.java | 301 + .../cloud/designcenter/v1/ShareOrBuilder.java | 158 + .../cloud/designcenter/v1/SharedTemplate.java | 2326 +++ .../designcenter/v1/SharedTemplateName.java | 272 + .../v1/SharedTemplateOrBuilder.java | 304 + .../v1/SharedTemplateRevision.java | 6890 +++++++ .../v1/SharedTemplateRevisionName.java | 302 + .../v1/SharedTemplateRevisionOrBuilder.java | 937 + .../cloud/designcenter/v1/SharingProto.java | 346 + .../v1/SharingResourcesProto.java | 253 + .../cloud/designcenter/v1/SkippedDomain.java | 1084 ++ .../v1/SkippedDomainOrBuilder.java | 101 + .../SnapshotApplicationTemplateRequest.java | 623 + ...otApplicationTemplateRequestOrBuilder.java | 58 + .../SnapshotApplicationTemplateResponse.java | 753 + ...tApplicationTemplateResponseOrBuilder.java | 72 + .../google/cloud/designcenter/v1/Space.java | 2427 +++ .../cloud/designcenter/v1/SpaceName.java | 226 + .../cloud/designcenter/v1/SpaceOrBuilder.java | 369 + .../designcenter/v1/SyncShareRequest.java | 617 + .../v1/SyncShareRequestOrBuilder.java | 60 + .../designcenter/v1/TFBlueprintMetadata.java | 4132 +++++ .../v1/TFBlueprintMetadataOrBuilder.java | 521 + .../designcenter/v1/TemplateCategory.java | 238 + .../designcenter/v1/TemplateConnections.java | 1027 + .../v1/TemplateConnectionsOrBuilder.java | 114 + .../cloud/designcenter/v1/TemplateInfo.java | 736 + .../v1/TemplateInfoOrBuilder.java | 74 + .../designcenter/v1/TemplateRequirements.java | 1543 ++ .../v1/TemplateRequirementsOrBuilder.java | 160 + .../cloud/designcenter/v1/TemplateRoles.java | 885 + .../v1/TemplateRolesOrBuilder.java | 108 + .../cloud/designcenter/v1/TemplateSchema.java | 980 + .../v1/TemplateSchemaOrBuilder.java | 94 + .../cloud/designcenter/v1/TemplateType.java | 383 + .../cloud/designcenter/v1/TemplateUi.java | 1050 ++ .../designcenter/v1/TemplateUiInput.java | 872 + .../v1/TemplateUiInputOrBuilder.java | 102 + .../designcenter/v1/TemplateUiOrBuilder.java | 120 + .../designcenter/v1/TemplateUiOutput.java | 1088 ++ .../v1/TemplateUiOutputDisplayVariable.java | 596 + ...plateUiOutputDisplayVariableOrBuilder.java | 58 + .../v1/TemplateUiOutputOrBuilder.java | 130 + .../designcenter/v1/TemplateVariable.java | 1169 ++ .../v1/TemplateVariableOrBuilder.java | 120 + .../v1/TerraformBlueprintUiMetadata.java | 1045 ++ ...TerraformBlueprintUiMetadataOrBuilder.java | 114 + .../designcenter/v1/TerraformConfig.java | 741 + .../v1/TerraformConfigOrBuilder.java | 74 + .../cloud/designcenter/v1/TerraformFile.java | 784 + .../v1/TerraformFileOrBuilder.java | 80 + .../cloud/designcenter/v1/TerraformInput.java | 2643 +++ .../v1/TerraformInputConnections.java | 1164 ++ .../TerraformInputConnectionsOrBuilder.java | 132 + .../v1/TerraformInputOrBuilder.java | 307 + .../designcenter/v1/TerraformModule.java | 1132 ++ .../v1/TerraformModuleConfig.java | 786 + .../v1/TerraformModuleConfigOrBuilder.java | 88 + .../v1/TerraformModuleMetadata.java | 5193 ++++++ .../v1/TerraformModuleMetadataOrBuilder.java | 694 + .../v1/TerraformModuleOrBuilder.java | 110 + .../designcenter/v1/TerraformOutput.java | 1072 ++ .../v1/TerraformOutputOrBuilder.java | 117 + .../designcenter/v1/TerraformUiInput.java | 902 + .../v1/TerraformUiInputDisplayVariable.java | 3925 ++++ ...raformUiInputDisplayVariableOrBuilder.java | 488 + .../v1/TerraformUiInputOrBuilder.java | 104 + .../designcenter/v1/TerraformUiOutput.java | 1082 ++ .../v1/TerraformUiOutputDisplay.java | 587 + .../v1/TerraformUiOutputDisplayOrBuilder.java | 58 + .../v1/TerraformUiOutputOrBuilder.java | 130 + .../v1/TerraformVariableValidation.java | 797 + .../TerraformVariableValidationOrBuilder.java | 82 + .../designcenter/v1/UnregisteredResource.java | 919 + .../v1/UnregisteredResourceOrBuilder.java | 97 + .../v1/UpdateApplicationRequest.java | 1026 + .../v1/UpdateApplicationRequestOrBuilder.java | 114 + .../v1/UpdateApplicationTemplateRequest.java | 1068 ++ ...teApplicationTemplateRequestOrBuilder.java | 120 + .../designcenter/v1/UpdateCatalogRequest.java | 1023 + .../v1/UpdateCatalogRequestOrBuilder.java | 114 + .../v1/UpdateCatalogTemplateRequest.java | 1079 ++ ...UpdateCatalogTemplateRequestOrBuilder.java | 126 + .../v1/UpdateComponentRequest.java | 1025 + .../v1/UpdateComponentRequestOrBuilder.java | 114 + .../v1/UpdateConnectionRequest.java | 1049 ++ .../v1/UpdateConnectionRequestOrBuilder.java | 120 + .../designcenter/v1/UpdatePolicyRequest.java | 1042 ++ .../v1/UpdatePolicyRequestOrBuilder.java | 120 + .../designcenter/v1/UpdateSpaceRequest.java | 1015 + .../v1/UpdateSpaceRequestOrBuilder.java | 111 + .../v1/UpdatedTemplateRevision.java | 1102 ++ .../v1/UpdatedTemplateRevisionOrBuilder.java | 122 + .../cloud/designcenter/v1/ValueLabel.java | 784 + .../designcenter/v1/ValueLabelInput.java | 785 + .../v1/ValueLabelInputOrBuilder.java | 80 + .../designcenter/v1/ValueLabelOrBuilder.java | 80 + .../designcenter/v1/apphub_integration.proto | 51 + .../v1/apphub_integration_messages.proto | 79 + .../cloud/designcenter/v1/assessment.proto | 477 + .../cloud/designcenter/v1/authoring.proto | 565 + .../designcenter/v1/authoring_messages.proto | 806 + .../designcenter/v1/best_practices.proto | 134 + .../v1/best_practices_messages.proto | 298 + .../designcenter/v1/catalog_management.proto | 285 + .../v1/catalog_management_messages.proto | 459 + .../cloud/designcenter/v1/deployment.proto | 426 + .../designcenter/v1/deployment_messages.proto | 488 + .../v1/deployment_resources.proto | 216 + .../cloud/designcenter/v1/designcenter.proto | 1118 ++ .../google/cloud/designcenter/v1/enums.proto | 222 + .../google/cloud/designcenter/v1/export.proto | 110 + .../google/cloud/designcenter/v1/iac.proto | 119 + .../cloud/designcenter/v1/ingestion.proto | 255 + .../cloud/designcenter/v1/metadata.proto | 797 + .../cloud/designcenter/v1/parameters.proto | 103 + .../cloud/designcenter/v1/sharing.proto | 226 + .../designcenter/v1/sharing_messages.proto | 270 + .../AsyncCommitApplicationTemplate.java | 53 + .../SyncCommitApplicationTemplate.java | 49 + ...cationTemplateApplicationtemplatename.java | 44 + .../SyncCommitApplicationTemplateString.java | 44 + .../SyncCreateSetCredentialsProvider.java | 44 + .../create/SyncCreateSetEndpoint.java | 41 + .../SyncCreateUseHttpJsonTransport.java | 39 + .../AsyncCreateApplication.java | 52 + .../SyncCreateApplication.java | 48 + ...ApplicationSpacenameApplicationString.java | 45 + ...ateApplicationStringApplicationString.java | 45 + .../AsyncCreateApplicationTemplate.java | 52 + .../SyncCreateApplicationTemplate.java | 48 + ...ateSpacenameApplicationtemplateString.java | 47 + ...mplateStringApplicationtemplateString.java | 47 + .../createcatalog/AsyncCreateCatalog.java | 51 + .../createcatalog/SyncCreateCatalog.java | 48 + ...ncCreateCatalogSpacenameCatalogString.java | 44 + .../SyncCreateCatalogStringCatalogString.java | 44 + .../AsyncCreateCatalogTemplate.java | 53 + .../SyncCreateCatalogTemplate.java | 49 + ...plateCatalognameCatalogtemplateString.java | 45 + ...ogTemplateStringCatalogtemplateString.java | 45 + .../AsyncCreateCatalogTemplateRevision.java | 56 + ...AsyncCreateCatalogTemplateRevisionLRO.java | 56 + .../SyncCreateCatalogTemplateRevision.java | 52 + ...latenameCatalogtemplaterevisionString.java | 53 + ...onStringCatalogtemplaterevisionString.java | 53 + .../createcomponent/AsyncCreateComponent.java | 55 + .../createcomponent/SyncCreateComponent.java | 51 + ...pplicationtemplatenameComponentString.java | 46 + ...cCreateComponentStringComponentString.java | 46 + .../AsyncCreateConnection.java | 59 + .../SyncCreateConnection.java | 55 + ...nnectionComponentnameConnectionString.java | 46 + ...reateConnectionStringConnectionString.java | 47 + .../createpolicy/AsyncCreatePolicy.java | 54 + .../createpolicy/SyncCreatePolicy.java | 51 + ...cyApplicationtemplatenamePolicyString.java | 46 + .../SyncCreatePolicyStringPolicyString.java | 46 + .../createshare/AsyncCreateShare.java | 53 + .../createshare/AsyncCreateShareLRO.java | 54 + .../createshare/SyncCreateShare.java | 49 + ...SyncCreateShareCatalognameShareString.java | 44 + .../SyncCreateShareStringShareString.java | 44 + .../createspace/AsyncCreateSpace.java | 51 + .../createspace/SyncCreateSpace.java | 48 + ...yncCreateSpaceLocationnameSpaceString.java | 44 + .../SyncCreateSpaceStringSpaceString.java | 44 + .../AsyncDeleteApplication.java | 53 + .../AsyncDeleteApplicationLRO.java | 54 + .../SyncDeleteApplication.java | 49 + .../SyncDeleteApplicationApplicationname.java | 43 + .../SyncDeleteApplicationString.java | 43 + .../AsyncDeleteApplicationTemplate.java | 54 + .../SyncDeleteApplicationTemplate.java | 50 + ...cationTemplateApplicationtemplatename.java | 44 + .../SyncDeleteApplicationTemplateString.java | 44 + ...syncDeleteApplicationTemplateRevision.java | 57 + ...SyncDeleteApplicationTemplateRevision.java | 53 + ...visionApplicationtemplaterevisionname.java | 45 + ...leteApplicationTemplateRevisionString.java | 45 + .../deletecatalog/AsyncDeleteCatalog.java | 50 + .../deletecatalog/AsyncDeleteCatalogLRO.java | 52 + .../deletecatalog/SyncDeleteCatalog.java | 47 + .../SyncDeleteCatalogCatalogname.java | 42 + .../SyncDeleteCatalogString.java | 42 + .../AsyncDeleteCatalogTemplate.java | 54 + .../AsyncDeleteCatalogTemplateLRO.java | 55 + .../SyncDeleteCatalogTemplate.java | 50 + ...eteCatalogTemplateCatalogtemplatename.java | 44 + .../SyncDeleteCatalogTemplateString.java | 45 + .../AsyncDeleteCatalogTemplateRevision.java | 58 + ...AsyncDeleteCatalogTemplateRevisionLRO.java | 59 + .../SyncDeleteCatalogTemplateRevision.java | 54 + ...teRevisionCatalogtemplaterevisionname.java | 50 + ...ncDeleteCatalogTemplateRevisionString.java | 50 + .../deletecomponent/AsyncDeleteComponent.java | 57 + .../deletecomponent/SyncDeleteComponent.java | 54 + .../SyncDeleteComponentComponentname.java | 44 + .../SyncDeleteComponentString.java | 45 + .../AsyncDeleteConnection.java | 57 + .../SyncDeleteConnection.java | 54 + .../SyncDeleteConnectionConnectionname.java | 49 + .../SyncDeleteConnectionString.java | 50 + .../deletepolicy/AsyncDeletePolicy.java | 56 + .../deletepolicy/SyncDeletePolicy.java | 53 + .../SyncDeletePolicyPolicyname.java | 43 + .../deletepolicy/SyncDeletePolicyString.java | 44 + .../deleteshare/AsyncDeleteShare.java | 51 + .../deleteshare/AsyncDeleteShareLRO.java | 53 + .../deleteshare/SyncDeleteShare.java | 48 + .../deleteshare/SyncDeleteShareSharename.java | 42 + .../deleteshare/SyncDeleteShareString.java | 43 + .../deletespace/AsyncDeleteSpace.java | 50 + .../deletespace/SyncDeleteSpace.java | 47 + .../deletespace/SyncDeleteSpaceSpacename.java | 42 + .../deletespace/SyncDeleteSpaceString.java | 42 + .../AsyncDeployApplication.java | 56 + .../AsyncDeployApplicationLRO.java | 57 + .../SyncDeployApplication.java | 52 + .../SyncDeployApplicationApplicationname.java | 43 + .../SyncDeployApplicationString.java | 43 + .../AsyncExportApplicationIaC.java | 58 + .../AsyncExportApplicationIaCLRO.java | 59 + .../SyncExportApplicationIaC.java | 55 + ...ncExportApplicationIaCApplicationname.java | 44 + .../SyncExportApplicationIaCString.java | 44 + .../AsyncExportApplicationTemplateIaC.java | 57 + .../AsyncExportApplicationTemplateIaCLRO.java | 58 + .../SyncExportApplicationTemplateIaC.java | 54 + ...ionTemplateIaCApplicationtemplatename.java | 45 + ...yncExportApplicationTemplateIaCString.java | 45 + ...cExportApplicationTemplateRevisionIaC.java | 61 + ...portApplicationTemplateRevisionIaCLRO.java | 64 + ...cExportApplicationTemplateRevisionIaC.java | 58 + ...ionIaCApplicationtemplaterevisionname.java | 46 + ...tApplicationTemplateRevisionIaCString.java | 46 + ...AsyncFetchApplicationAssessmentReport.java | 52 + .../SyncFetchApplicationAssessmentReport.java | 49 + ...cationAssessmentReportApplicationname.java | 44 + ...etchApplicationAssessmentReportString.java | 44 + .../fetchframeworks/AsyncFetchFrameworks.java | 56 + .../AsyncFetchFrameworksPaged.java | 64 + .../fetchframeworks/SyncFetchFrameworks.java | 52 + .../SyncFetchFrameworksString.java | 43 + ...ncGenerateApplicationAssessmentReport.java | 52 + ...enerateApplicationAssessmentReportLRO.java | 55 + ...ncGenerateApplicationAssessmentReport.java | 49 + ...cationAssessmentReportApplicationname.java | 44 + ...rateApplicationAssessmentReportString.java | 44 + .../AsyncGenerateApplicationIaC.java | 57 + .../SyncGenerateApplicationIaC.java | 53 + ...GenerateApplicationIaCApplicationname.java | 43 + .../SyncGenerateApplicationIaCString.java | 43 + ...teApplicationTemplateAssessmentReport.java | 56 + ...pplicationTemplateAssessmentReportLRO.java | 58 + ...teApplicationTemplateAssessmentReport.java | 51 + ...sessmentReportApplicationtemplatename.java | 46 + ...icationTemplateAssessmentReportString.java | 45 + .../AsyncGenerateApplicationTemplateIaC.java | 56 + .../SyncGenerateApplicationTemplateIaC.java | 53 + ...ionTemplateIaCApplicationtemplatename.java | 45 + ...cGenerateApplicationTemplateIaCString.java | 45 + ...enerateApplicationTemplateRevisionIaC.java | 59 + ...enerateApplicationTemplateRevisionIaC.java | 56 + ...ionIaCApplicationtemplaterevisionname.java | 46 + ...eApplicationTemplateRevisionIaCString.java | 46 + .../AsyncGenerateAssessmentReport.java | 54 + .../AsyncGenerateAssessmentReportLRO.java | 55 + .../SyncGenerateAssessmentReport.java | 51 + ...SyncGenerateAssessmentReportSpacename.java | 43 + .../SyncGenerateAssessmentReportString.java | 43 + ...GenerateTerraformPlanAssessmentReport.java | 54 + ...erateTerraformPlanAssessmentReportLRO.java | 57 + ...GenerateTerraformPlanAssessmentReport.java | 51 + ...anAssessmentReportSpacenameBytestring.java | 46 + ...mPlanAssessmentReportStringBytestring.java | 45 + .../getapplication/AsyncGetApplication.java | 52 + .../getapplication/SyncGetApplication.java | 48 + .../SyncGetApplicationApplicationname.java | 43 + .../SyncGetApplicationString.java | 43 + .../AsyncGetApplicationTemplate.java | 53 + .../SyncGetApplicationTemplate.java | 49 + ...cationTemplateApplicationtemplatename.java | 44 + .../SyncGetApplicationTemplateString.java | 44 + .../AsyncGetApplicationTemplateRevision.java | 57 + .../SyncGetApplicationTemplateRevision.java | 54 + ...visionApplicationtemplaterevisionname.java | 46 + ...cGetApplicationTemplateRevisionString.java | 46 + ...cGetApplicationTemplateSystemRevision.java | 57 + ...cGetApplicationTemplateSystemRevision.java | 54 + ...Applicationtemplatesystemrevisionname.java | 46 + ...plicationTemplateSystemRevisionString.java | 50 + .../getcatalog/AsyncGetCatalog.java | 49 + .../getcatalog/SyncGetCatalog.java | 46 + .../getcatalog/SyncGetCatalogCatalogname.java | 42 + .../getcatalog/SyncGetCatalogString.java | 42 + .../AsyncGetCatalogTemplate.java | 53 + .../SyncGetCatalogTemplate.java | 49 + ...GetCatalogTemplateCatalogtemplatename.java | 44 + .../SyncGetCatalogTemplateString.java | 45 + .../AsyncGetCatalogTemplateRevision.java | 58 + .../SyncGetCatalogTemplateRevision.java | 54 + ...teRevisionCatalogtemplaterevisionname.java | 49 + .../SyncGetCatalogTemplateRevisionString.java | 50 + .../getcomponent/AsyncGetComponent.java | 56 + .../getcomponent/SyncGetComponent.java | 53 + .../SyncGetComponentComponentname.java | 44 + .../getcomponent/SyncGetComponentString.java | 45 + .../getconnection/AsyncGetConnection.java | 57 + .../getconnection/SyncGetConnection.java | 54 + .../SyncGetConnectionConnectionname.java | 49 + .../SyncGetConnectionString.java | 50 + .../getiampolicy/AsyncGetIamPolicy.java | 51 + .../getiampolicy/SyncGetIamPolicy.java | 48 + .../getlocation/AsyncGetLocation.java | 45 + .../getlocation/SyncGetLocation.java | 42 + .../getpolicy/AsyncGetPolicy.java | 56 + .../designcenter/getpolicy/SyncGetPolicy.java | 53 + .../getpolicy/SyncGetPolicyPolicyname.java | 43 + .../getpolicy/SyncGetPolicyString.java | 44 + .../designcenter/getshare/AsyncGetShare.java | 51 + .../designcenter/getshare/SyncGetShare.java | 48 + .../getshare/SyncGetShareSharename.java | 42 + .../getshare/SyncGetShareString.java | 43 + .../AsyncGetSharedTemplate.java | 52 + .../SyncGetSharedTemplate.java | 48 + ...ncGetSharedTemplateSharedtemplatename.java | 43 + .../SyncGetSharedTemplateString.java | 44 + .../AsyncGetSharedTemplateRevision.java | 53 + .../SyncGetSharedTemplateRevision.java | 49 + ...ateRevisionSharedtemplaterevisionname.java | 44 + .../SyncGetSharedTemplateRevisionString.java | 45 + .../designcenter/getspace/AsyncGetSpace.java | 49 + .../designcenter/getspace/SyncGetSpace.java | 46 + .../getspace/SyncGetSpaceSpacename.java | 42 + .../getspace/SyncGetSpaceString.java | 42 + .../AsyncImportApplicationIaC.java | 54 + .../SyncImportApplicationIaC.java | 50 + ...ncImportApplicationIaCApplicationname.java | 43 + .../SyncImportApplicationIaCString.java | 43 + .../AsyncImportApplicationTemplate.java | 55 + .../SyncImportApplicationTemplate.java | 51 + ...tenameApplicationtemplaterevisionname.java | 51 + ...TemplateApplicationtemplatenameString.java | 50 + ...StringApplicationtemplaterevisionname.java | 50 + ...ImportApplicationTemplateStringString.java | 50 + .../AsyncImportApplicationTemplateIaC.java | 55 + .../SyncImportApplicationTemplateIaC.java | 52 + ...ionTemplateIaCApplicationtemplatename.java | 45 + ...yncImportApplicationTemplateIaCString.java | 45 + .../AsyncIngestApplicationTemplateIaC.java | 55 + .../AsyncIngestApplicationTemplateIaCLRO.java | 56 + .../SyncIngestApplicationTemplateIaC.java | 52 + ...ionTemplateIaCApplicationtemplatename.java | 45 + ...yncIngestApplicationTemplateIaCString.java | 45 + .../AsyncListApplications.java | 56 + .../AsyncListApplicationsPaged.java | 64 + .../SyncListApplications.java | 52 + .../SyncListApplicationsSpacename.java | 44 + .../SyncListApplicationsString.java | 44 + ...AsyncListApplicationTemplateRevisions.java | 59 + ...ListApplicationTemplateRevisionsPaged.java | 67 + .../SyncListApplicationTemplateRevisions.java | 56 + ...plateRevisionsApplicationtemplatename.java | 48 + ...istApplicationTemplateRevisionsString.java | 47 + .../AsyncListApplicationTemplates.java | 56 + .../AsyncListApplicationTemplatesPaged.java | 64 + .../SyncListApplicationTemplates.java | 53 + ...SyncListApplicationTemplatesSpacename.java | 45 + .../SyncListApplicationTemplatesString.java | 45 + ...istApplicationTemplateSystemRevisions.java | 60 + ...plicationTemplateSystemRevisionsPaged.java | 67 + ...istApplicationTemplateSystemRevisions.java | 55 + ...ystemRevisionsApplicationtemplatename.java | 48 + ...licationTemplateSystemRevisionsString.java | 47 + .../listcatalogs/AsyncListCatalogs.java | 56 + .../listcatalogs/AsyncListCatalogsPaged.java | 63 + .../listcatalogs/SyncListCatalogs.java | 52 + .../SyncListCatalogsSpacename.java | 44 + .../listcatalogs/SyncListCatalogsString.java | 44 + .../AsyncListCatalogTemplateRevisions.java | 59 + ...syncListCatalogTemplateRevisionsPaged.java | 67 + .../SyncListCatalogTemplateRevisions.java | 56 + ...gTemplateRevisionsCatalogtemplatename.java | 47 + ...yncListCatalogTemplateRevisionsString.java | 48 + .../AsyncListCatalogTemplates.java | 57 + .../AsyncListCatalogTemplatesPaged.java | 65 + .../SyncListCatalogTemplates.java | 54 + .../SyncListCatalogTemplatesCatalogname.java | 44 + .../SyncListCatalogTemplatesString.java | 44 + .../listcomponents/AsyncListComponents.java | 59 + .../AsyncListComponentsPaged.java | 66 + .../listcomponents/SyncListComponents.java | 55 + ...ListComponentsApplicationtemplatename.java | 46 + .../SyncListComponentsString.java | 46 + .../listconnections/AsyncListConnections.java | 63 + .../AsyncListConnectionsPaged.java | 71 + .../listconnections/SyncListConnections.java | 59 + .../SyncListConnectionsComponentname.java | 46 + .../SyncListConnectionsString.java | 47 + .../listlocations/AsyncListLocations.java | 54 + .../AsyncListLocationsPaged.java | 61 + .../listlocations/SyncListLocations.java | 50 + .../listpolicies/AsyncListPolicies.java | 58 + .../listpolicies/AsyncListPoliciesPaged.java | 66 + .../listpolicies/SyncListPolicies.java | 55 + ...ncListPoliciesApplicationtemplatename.java | 46 + .../listpolicies/SyncListPoliciesString.java | 46 + .../AsyncListSharedTemplateRevisions.java | 58 + ...AsyncListSharedTemplateRevisionsPaged.java | 66 + .../SyncListSharedTemplateRevisions.java | 55 + ...edTemplateRevisionsSharedtemplatename.java | 46 + ...SyncListSharedTemplateRevisionsString.java | 47 + .../AsyncListSharedTemplates.java | 56 + .../AsyncListSharedTemplatesPaged.java | 64 + .../SyncListSharedTemplates.java | 52 + .../SyncListSharedTemplatesSpacename.java | 44 + .../SyncListSharedTemplatesString.java | 44 + .../listshares/AsyncListShares.java | 55 + .../listshares/AsyncListSharesPaged.java | 63 + .../listshares/SyncListShares.java | 52 + .../listshares/SyncListSharesCatalogname.java | 44 + .../listshares/SyncListSharesString.java | 44 + .../listspaces/AsyncListSpaces.java | 55 + .../listspaces/AsyncListSpacesPaged.java | 63 + .../listspaces/SyncListSpaces.java | 52 + .../SyncListSpacesLocationname.java | 44 + .../listspaces/SyncListSpacesString.java | 44 + .../AsyncPreviewApplication.java | 54 + .../AsyncPreviewApplicationLRO.java | 55 + .../SyncPreviewApplication.java | 51 + ...SyncPreviewApplicationApplicationname.java | 43 + .../SyncPreviewApplicationString.java | 43 + .../AsyncRecommendIAMRoles.java | 52 + .../AsyncRecommendIAMRolesLRO.java | 53 + .../SyncRecommendIAMRoles.java | 48 + .../SyncRecommendIAMRolesApplicationname.java | 43 + .../SyncRecommendIAMRolesString.java | 43 + ...yncRegisterAppHubApplicationResources.java | 51 + ...RegisterAppHubApplicationResourcesLRO.java | 54 + ...yncRegisterAppHubApplicationResources.java | 48 + ...tionResourcesLocationnameStringString.java | 48 + ...pplicationResourcesStringStringString.java | 47 + .../setiampolicy/AsyncSetIamPolicy.java | 52 + .../setiampolicy/SyncSetIamPolicy.java | 49 + .../AsyncSnapshotApplicationTemplate.java | 53 + .../AsyncSnapshotApplicationTemplateLRO.java | 54 + .../SyncSnapshotApplicationTemplate.java | 50 + ...cationTemplateApplicationtemplatename.java | 45 + ...SyncSnapshotApplicationTemplateString.java | 45 + .../syncshare/AsyncSyncShare.java | 51 + .../syncshare/AsyncSyncShareLRO.java | 53 + .../designcenter/syncshare/SyncSyncShare.java | 48 + .../syncshare/SyncSyncShareSharename.java | 42 + .../syncshare/SyncSyncShareString.java | 43 + .../AsyncTestIamPermissions.java | 52 + .../SyncTestIamPermissions.java | 48 + .../AsyncUpdateApplication.java | 51 + .../SyncUpdateApplication.java | 47 + ...UpdateApplicationApplicationFieldmask.java | 43 + .../AsyncUpdateApplicationTemplate.java | 51 + .../SyncUpdateApplicationTemplate.java | 47 + ...nTemplateApplicationtemplateFieldmask.java | 44 + .../updatecatalog/AsyncUpdateCatalog.java | 50 + .../updatecatalog/SyncUpdateCatalog.java | 47 + .../SyncUpdateCatalogCatalogFieldmask.java | 43 + .../AsyncUpdateCatalogTemplate.java | 51 + .../SyncUpdateCatalogTemplate.java | 47 + ...talogTemplateCatalogtemplateFieldmask.java | 44 + .../updatecomponent/AsyncUpdateComponent.java | 51 + .../updatecomponent/SyncUpdateComponent.java | 47 + ...SyncUpdateComponentComponentFieldmask.java | 43 + .../AsyncUpdateConnection.java | 51 + .../SyncUpdateConnection.java | 47 + ...ncUpdateConnectionConnectionFieldmask.java | 43 + .../updatepolicy/AsyncUpdatePolicy.java | 50 + .../updatepolicy/SyncUpdatePolicy.java | 47 + .../SyncUpdatePolicyPolicyFieldmask.java | 43 + .../updatespace/AsyncUpdateSpace.java | 50 + .../updatespace/SyncUpdateSpace.java | 47 + .../SyncUpdateSpaceSpaceFieldmask.java | 43 + .../getspace/SyncGetSpace.java | 55 + .../SyncSnapshotApplicationTemplate.java | 53 + .../getspace/SyncGetSpace.java | 56 + .../SyncSnapshotApplicationTemplate.java | 54 + librarian.yaml | 8 + pom.xml | 1 + versions.txt | 5 + 1004 files changed, 542960 insertions(+) create mode 100644 java-designcenter/.repo-metadata.json create mode 100644 java-designcenter/README.md create mode 100644 java-designcenter/google-cloud-designcenter-bom/pom.xml create mode 100644 java-designcenter/google-cloud-designcenter/pom.xml create mode 100644 java-designcenter/google-cloud-designcenter/src/main/java/com/google/cloud/designcenter/v1/DesignCenterClient.java create mode 100644 java-designcenter/google-cloud-designcenter/src/main/java/com/google/cloud/designcenter/v1/DesignCenterSettings.java create mode 100644 java-designcenter/google-cloud-designcenter/src/main/java/com/google/cloud/designcenter/v1/gapic_metadata.json create mode 100644 java-designcenter/google-cloud-designcenter/src/main/java/com/google/cloud/designcenter/v1/package-info.java create mode 100644 java-designcenter/google-cloud-designcenter/src/main/java/com/google/cloud/designcenter/v1/stub/DesignCenterStub.java create mode 100644 java-designcenter/google-cloud-designcenter/src/main/java/com/google/cloud/designcenter/v1/stub/DesignCenterStubSettings.java create mode 100644 java-designcenter/google-cloud-designcenter/src/main/java/com/google/cloud/designcenter/v1/stub/GrpcDesignCenterCallableFactory.java create mode 100644 java-designcenter/google-cloud-designcenter/src/main/java/com/google/cloud/designcenter/v1/stub/GrpcDesignCenterStub.java create mode 100644 java-designcenter/google-cloud-designcenter/src/main/java/com/google/cloud/designcenter/v1/stub/HttpJsonDesignCenterCallableFactory.java create mode 100644 java-designcenter/google-cloud-designcenter/src/main/java/com/google/cloud/designcenter/v1/stub/HttpJsonDesignCenterStub.java create mode 100644 java-designcenter/google-cloud-designcenter/src/main/java/com/google/cloud/designcenter/v1/stub/Version.java create mode 100644 java-designcenter/google-cloud-designcenter/src/main/resources/META-INF/native-image/com.google.cloud.designcenter.v1/reflect-config.json create mode 100644 java-designcenter/google-cloud-designcenter/src/test/java/com/google/cloud/designcenter/v1/DesignCenterClientHttpJsonTest.java create mode 100644 java-designcenter/google-cloud-designcenter/src/test/java/com/google/cloud/designcenter/v1/DesignCenterClientTest.java create mode 100644 java-designcenter/google-cloud-designcenter/src/test/java/com/google/cloud/designcenter/v1/MockDesignCenter.java create mode 100644 java-designcenter/google-cloud-designcenter/src/test/java/com/google/cloud/designcenter/v1/MockDesignCenterImpl.java create mode 100644 java-designcenter/google-cloud-designcenter/src/test/java/com/google/cloud/designcenter/v1/MockIAMPolicy.java create mode 100644 java-designcenter/google-cloud-designcenter/src/test/java/com/google/cloud/designcenter/v1/MockIAMPolicyImpl.java create mode 100644 java-designcenter/google-cloud-designcenter/src/test/java/com/google/cloud/designcenter/v1/MockLocations.java create mode 100644 java-designcenter/google-cloud-designcenter/src/test/java/com/google/cloud/designcenter/v1/MockLocationsImpl.java create mode 100644 java-designcenter/grpc-google-cloud-designcenter-v1/pom.xml create mode 100644 java-designcenter/grpc-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DesignCenterGrpc.java create mode 100644 java-designcenter/pom.xml create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/clirr-ignored-differences.xml create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/pom.xml create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/AdcMetadata.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/AdcMetadataOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/AlternateDefault.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/AlternateDefaultInput.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/AlternateDefaultInputOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/AlternateDefaultOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApiInfo.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApiInfoOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/AppHubApplicationParameters.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/AppHubApplicationParametersOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApphubIntegrationProto.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApphubIntegrationRpcMessagesProto.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/Application.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplicationCompositionType.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplicationName.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplicationOperation.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplicationOperationMetadata.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplicationOperationMetadataOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplicationOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplicationOutputParameters.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplicationOutputParametersOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplicationTemplate.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplicationTemplateName.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplicationTemplateOperation.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplicationTemplateOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplicationTemplateRevision.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplicationTemplateRevisionName.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplicationTemplateRevisionOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplicationTemplateSystemRevision.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplicationTemplateSystemRevisionName.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplicationTemplateSystemRevisionOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplicationType.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplyCondition.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplyConditionOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ArtifactLocation.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ArtifactLocationOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/AssessedFramework.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/AssessedFrameworkOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/AssessmentFinding.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/AssessmentFindingOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/AssessmentProto.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/AssessmentReport.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/AssessmentReportOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/AssetDetails.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/AssetDetailsOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/AuthoringResourcesProto.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/AuthoringRpcMessagesProto.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/BestPracticesResourcesProto.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/BestPracticesRpcMessagesProto.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/Catalog.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CatalogManagementResourcesProto.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CatalogManagementRpcMessagesProto.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CatalogName.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CatalogOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CatalogTemplate.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CatalogTemplateName.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CatalogTemplateOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CatalogTemplateRevision.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CatalogTemplateRevisionMetadata.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CatalogTemplateRevisionMetadataOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CatalogTemplateRevisionName.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CatalogTemplateRevisionOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CloudControl.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CloudControlConfig.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CloudControlConfigOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CloudControlOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CodePosition.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CodePositionOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CodeRange.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CodeRangeOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CommitApplicationTemplateRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CommitApplicationTemplateRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/Component.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ComponentApplicationInfo.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ComponentApplicationInfoOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ComponentName.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ComponentOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ComponentOutputParameters.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ComponentOutputParametersOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ComponentParameterSchema.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ComponentParameterSchemaOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ComponentParameters.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ComponentParametersOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ComponentVariable.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ComponentVariableOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CompositeApplicationParameters.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CompositeApplicationParametersOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ConfigureAndDeployTemplateRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ConfigureAndDeployTemplateRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ConfigureAndDeployTemplateResponse.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ConfigureAndDeployTemplateResponseOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/Connection.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ConnectionConfig.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ConnectionConfigOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ConnectionDependencyType.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ConnectionName.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ConnectionOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ConnectionParameters.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ConnectionParametersOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ConnectionSource.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ConnectionSourceOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ConnectionSpec.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ConnectionSpecOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreateApplicationRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreateApplicationRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreateApplicationTemplateRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreateApplicationTemplateRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreateCatalogRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreateCatalogRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreateCatalogTemplateRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreateCatalogTemplateRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreateCatalogTemplateRevisionRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreateCatalogTemplateRevisionRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreateComponentRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreateComponentRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreateConnectionRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreateConnectionRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreatePolicyRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreatePolicyRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreateShareRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreateShareRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreateSpaceRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreateSpaceRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteApplicationRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteApplicationRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteApplicationTemplateRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteApplicationTemplateRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteApplicationTemplateRevisionRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteApplicationTemplateRevisionRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteCatalogRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteCatalogRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteCatalogTemplateRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteCatalogTemplateRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteCatalogTemplateRevisionRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteCatalogTemplateRevisionRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteComponentRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteComponentRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteConnectionRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteConnectionRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeletePolicyRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeletePolicyRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteShareRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteShareRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteSpaceRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteSpaceRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeployApplicationRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeployApplicationRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeployApplicationResponse.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeployApplicationResponseOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeployedResource.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeployedResourceOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeployedResourceResponse.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeployedResourceResponseOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentAttemptMetadata.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentAttemptMetadataOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentError.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentErrorOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentFailureResolutionInfo.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentFailureResolutionInfoOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentGroupMetadata.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentGroupMetadataOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentMetadata.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentMetadataOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentOperationMetadata.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentOperationMetadataOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentProto.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentResourcesProto.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentRpcMessagesProto.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentSource.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentSourceOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentTarget.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentTargetOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentUnitProgress.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentUnitProgressOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DesigncenterProto.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeveloperConnectConfig.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeveloperConnectConfigOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeveloperConnectExportConfig.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeveloperConnectExportConfigOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeveloperConnectSourceConfig.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeveloperConnectSourceConfigOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DisplayVariable.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DisplayVariableAlternateType.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DisplayVariableOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DisplayVariableToggle.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DisplayVariableToggleOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DisplayVariableVisibility.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/Domain.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DomainAssessmentReport.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DomainAssessmentReportOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DomainOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/EnumsProto.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ExportApplicationIaCRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ExportApplicationIaCRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ExportApplicationIaCResponse.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ExportApplicationIaCResponseOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ExportApplicationTemplateIaCRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ExportApplicationTemplateIaCRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ExportApplicationTemplateIaCResponse.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ExportApplicationTemplateIaCResponseOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ExportApplicationTemplateRevisionIaCRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ExportApplicationTemplateRevisionIaCRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ExportApplicationTemplateRevisionIaCResponse.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ExportApplicationTemplateRevisionIaCResponseOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ExportIaCConfig.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ExportIaCConfigOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ExportProto.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchApplicationAssessmentReportRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchApplicationAssessmentReportRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchApplicationAssessmentReportResponse.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchApplicationAssessmentReportResponseOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchCatalogTemplateRevisionAssessmentReportRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchCatalogTemplateRevisionAssessmentReportRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchCatalogTemplateRevisionAssessmentReportResponse.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchCatalogTemplateRevisionAssessmentReportResponseOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchCatalogTemplateRevisionTFSourceRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchCatalogTemplateRevisionTFSourceRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchCatalogTemplateRevisionTFSourceResponse.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchCatalogTemplateRevisionTFSourceResponseOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchFrameworksRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchFrameworksRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchFrameworksResponse.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchFrameworksResponseOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchSharedTemplateRevisionAssessmentReportRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchSharedTemplateRevisionAssessmentReportRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchSharedTemplateRevisionAssessmentReportResponse.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchSharedTemplateRevisionAssessmentReportResponseOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchSharedTemplateRevisionTFSourceRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchSharedTemplateRevisionTFSourceRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchSharedTemplateRevisionTFSourceResponse.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchSharedTemplateRevisionTFSourceResponseOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/Framework.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FrameworkOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GKEDeploymentTarget.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GKEDeploymentTargetOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationAssessmentReportRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationAssessmentReportRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationAssessmentReportResponse.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationAssessmentReportResponseOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationIaCRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationIaCRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationIaCResponse.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationIaCResponseOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationTemplateAssessmentReportRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationTemplateAssessmentReportRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationTemplateAssessmentReportResponse.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationTemplateAssessmentReportResponseOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationTemplateIaCRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationTemplateIaCRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationTemplateIaCResponse.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationTemplateIaCResponseOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationTemplateRevisionIaCRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationTemplateRevisionIaCRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationTemplateRevisionIaCResponse.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationTemplateRevisionIaCResponseOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateAssessmentReportOperationMetadata.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateAssessmentReportOperationMetadataOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateAssessmentReportRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateAssessmentReportRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateAssessmentReportResponse.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateAssessmentReportResponseOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateTerraformPlanAssessmentReportRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateTerraformPlanAssessmentReportRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateTerraformPlanAssessmentReportResponse.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateTerraformPlanAssessmentReportResponseOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetApplicationRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetApplicationRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetApplicationTemplateRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetApplicationTemplateRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetApplicationTemplateRevisionRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetApplicationTemplateRevisionRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetApplicationTemplateSystemRevisionRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetApplicationTemplateSystemRevisionRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetCatalogRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetCatalogRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetCatalogTemplateRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetCatalogTemplateRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetCatalogTemplateRevisionRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetCatalogTemplateRevisionRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetComponentRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetComponentRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetConnectionRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetConnectionRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetPolicyRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetPolicyRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetShareRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetShareRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetSharedTemplateRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetSharedTemplateRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetSharedTemplateRevisionRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetSharedTemplateRevisionRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetSpaceRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetSpaceRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GitReference.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GitReferenceOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GitSource.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GitSourceOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/HelmApplicationOutputParameters.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/HelmApplicationOutputParametersOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/HelmChartInput.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/HelmChartInputOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/HelmChartMetadata.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/HelmChartMetadataOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/HelmChartOutput.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/HelmChartOutputOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/IACFormat.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/IACSource.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/IaCFile.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/IaCFileOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/IaCModule.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/IaCModuleOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/IacFormatInfo.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/IacFormatInfoOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/IacProto.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ImportApplicationIaCRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ImportApplicationIaCRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ImportApplicationIaCResponse.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ImportApplicationIaCResponseOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ImportApplicationTemplateIaCRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ImportApplicationTemplateIaCRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ImportApplicationTemplateIaCResponse.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ImportApplicationTemplateIaCResponseOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ImportApplicationTemplateRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ImportApplicationTemplateRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ImportIaCError.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ImportIaCErrorOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ImportSerializedApplicationTemplateRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ImportSerializedApplicationTemplateRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/InferredMetadata.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/InferredMetadataOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/IngestApplicationTemplateIaCRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/IngestApplicationTemplateIaCRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/IngestApplicationTemplateIaCResponse.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/IngestApplicationTemplateIaCResponseOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/IngestionProto.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/InputVariableAlias.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/InputVariableAliasOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListApplicationTemplateRevisionsRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListApplicationTemplateRevisionsRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListApplicationTemplateRevisionsResponse.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListApplicationTemplateRevisionsResponseOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListApplicationTemplateSystemRevisionsRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListApplicationTemplateSystemRevisionsRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListApplicationTemplateSystemRevisionsResponse.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListApplicationTemplateSystemRevisionsResponseOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListApplicationTemplatesRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListApplicationTemplatesRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListApplicationTemplatesResponse.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListApplicationTemplatesResponseOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListApplicationsRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListApplicationsRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListApplicationsResponse.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListApplicationsResponseOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListCatalogTemplateRevisionMetadataResponse.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListCatalogTemplateRevisionMetadataResponseOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListCatalogTemplateRevisionsRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListCatalogTemplateRevisionsRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListCatalogTemplateRevisionsResponse.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListCatalogTemplateRevisionsResponseOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListCatalogTemplatesRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListCatalogTemplatesRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListCatalogTemplatesResponse.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListCatalogTemplatesResponseOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListCatalogsRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListCatalogsRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListCatalogsResponse.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListCatalogsResponseOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListComponentsRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListComponentsRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListComponentsResponse.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListComponentsResponseOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListConnectionsRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListConnectionsRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListConnectionsResponse.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListConnectionsResponseOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListPoliciesRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListPoliciesRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListPoliciesResponse.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListPoliciesResponseOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListSharedTemplateRevisionsRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListSharedTemplateRevisionsRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListSharedTemplateRevisionsResponse.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListSharedTemplateRevisionsResponseOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListSharedTemplatesRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListSharedTemplatesRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListSharedTemplatesResponse.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListSharedTemplatesResponseOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListSharesRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListSharesRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListSharesResponse.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListSharesResponseOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListSpacesRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListSpacesRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListSpacesResponse.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListSpacesResponseOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/LocationName.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/LogicalProduct.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/LogicalProductOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/MetadataInput.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/MetadataInputOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/MetadataInputSpec.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/MetadataInputSpecOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/MetadataProto.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ModuleDependency.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ModuleDependencyOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ModuleDetails.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ModuleDetailsOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ModuleInput.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ModuleInputOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ModuleOutput.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ModuleOutputOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ModuleResource.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ModuleResourceOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/OciRepo.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/OciRepoOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/OperationMetadata.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/OperationMetadataOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/Parameter.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ParameterOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ParameterSpec.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ParameterSpecOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ParametersProto.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/Policy.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/PolicyName.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/PolicyOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/PreviewApplicationRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/PreviewApplicationRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/PreviewApplicationResponse.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/PreviewApplicationResponseOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/PreviewOperationMetadata.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/PreviewOperationMetadataOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ProjectParameters.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ProjectParametersList.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ProjectParametersListOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ProjectParametersOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ProviderDependency.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ProviderDependencyOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ProviderVersion.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ProviderVersionOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ProvisionDeploymentGroupOperationMetadata.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ProvisionDeploymentGroupOperationMetadataOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RecommendIAMRolesRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RecommendIAMRolesRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RecommendIAMRolesResponse.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RecommendIAMRolesResponseOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RegisterAppHubApplicationResourcesRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RegisterAppHubApplicationResourcesRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RegisterAppHubApplicationResourcesResponse.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RegisterAppHubApplicationResourcesResponseOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RemediationStep.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RemediationStepOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/Resource.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ResourceOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ResourceType.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ResourceTypeOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RoleInfo.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RoleInfoOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RolesAndApisConfig.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RolesAndApisConfigOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RootInputVariable.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RootInputVariableOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RootModule.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RootModuleDependency.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RootModuleDependencyOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RootModuleOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RootModulesMetadata.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RootModulesMetadataOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RootOutputVariable.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RootOutputVariableOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SCCMetadata.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SCCMetadataOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SaaSRuntimeContext.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SaaSRuntimeContextOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ScoreCard.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ScoreCardOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SerializedApplicationTemplate.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SerializedApplicationTemplateOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SerializedComponent.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SerializedComponentOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SerializedConnection.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SerializedConnectionOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SerializedPolicy.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SerializedPolicyOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SerializedProvider.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SerializedProviderOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/Share.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ShareName.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ShareOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SharedTemplate.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SharedTemplateName.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SharedTemplateOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SharedTemplateRevision.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SharedTemplateRevisionName.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SharedTemplateRevisionOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SharingProto.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SharingResourcesProto.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SkippedDomain.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SkippedDomainOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SnapshotApplicationTemplateRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SnapshotApplicationTemplateRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SnapshotApplicationTemplateResponse.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SnapshotApplicationTemplateResponseOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/Space.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SpaceName.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SpaceOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SyncShareRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SyncShareRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TFBlueprintMetadata.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TFBlueprintMetadataOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateCategory.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateConnections.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateConnectionsOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateInfo.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateInfoOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateRequirements.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateRequirementsOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateRoles.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateRolesOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateSchema.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateSchemaOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateType.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateUi.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateUiInput.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateUiInputOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateUiOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateUiOutput.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateUiOutputDisplayVariable.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateUiOutputDisplayVariableOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateUiOutputOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateVariable.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateVariableOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformBlueprintUiMetadata.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformBlueprintUiMetadataOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformConfig.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformConfigOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformFile.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformFileOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformInput.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformInputConnections.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformInputConnectionsOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformInputOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformModule.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformModuleConfig.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformModuleConfigOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformModuleMetadata.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformModuleMetadataOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformModuleOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformOutput.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformOutputOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformUiInput.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformUiInputDisplayVariable.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformUiInputDisplayVariableOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformUiInputOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformUiOutput.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformUiOutputDisplay.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformUiOutputDisplayOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformUiOutputOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformVariableValidation.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformVariableValidationOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UnregisteredResource.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UnregisteredResourceOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UpdateApplicationRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UpdateApplicationRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UpdateApplicationTemplateRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UpdateApplicationTemplateRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UpdateCatalogRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UpdateCatalogRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UpdateCatalogTemplateRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UpdateCatalogTemplateRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UpdateComponentRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UpdateComponentRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UpdateConnectionRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UpdateConnectionRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UpdatePolicyRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UpdatePolicyRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UpdateSpaceRequest.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UpdateSpaceRequestOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UpdatedTemplateRevision.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UpdatedTemplateRevisionOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ValueLabel.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ValueLabelInput.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ValueLabelInputOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ValueLabelOrBuilder.java create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/apphub_integration.proto create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/apphub_integration_messages.proto create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/assessment.proto create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/authoring.proto create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/authoring_messages.proto create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/best_practices.proto create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/best_practices_messages.proto create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/catalog_management.proto create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/catalog_management_messages.proto create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/deployment.proto create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/deployment_messages.proto create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/deployment_resources.proto create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/designcenter.proto create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/enums.proto create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/export.proto create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/iac.proto create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/ingestion.proto create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/metadata.proto create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/parameters.proto create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/sharing.proto create mode 100644 java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/sharing_messages.proto create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/commitapplicationtemplate/AsyncCommitApplicationTemplate.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/commitapplicationtemplate/SyncCommitApplicationTemplate.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/commitapplicationtemplate/SyncCommitApplicationTemplateApplicationtemplatename.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/commitapplicationtemplate/SyncCommitApplicationTemplateString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/create/SyncCreateSetCredentialsProvider.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/create/SyncCreateSetEndpoint.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/create/SyncCreateUseHttpJsonTransport.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createapplication/AsyncCreateApplication.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createapplication/SyncCreateApplication.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createapplication/SyncCreateApplicationSpacenameApplicationString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createapplication/SyncCreateApplicationStringApplicationString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createapplicationtemplate/AsyncCreateApplicationTemplate.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createapplicationtemplate/SyncCreateApplicationTemplate.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createapplicationtemplate/SyncCreateApplicationTemplateSpacenameApplicationtemplateString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createapplicationtemplate/SyncCreateApplicationTemplateStringApplicationtemplateString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createcatalog/AsyncCreateCatalog.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createcatalog/SyncCreateCatalog.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createcatalog/SyncCreateCatalogSpacenameCatalogString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createcatalog/SyncCreateCatalogStringCatalogString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createcatalogtemplate/AsyncCreateCatalogTemplate.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createcatalogtemplate/SyncCreateCatalogTemplate.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createcatalogtemplate/SyncCreateCatalogTemplateCatalognameCatalogtemplateString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createcatalogtemplate/SyncCreateCatalogTemplateStringCatalogtemplateString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createcatalogtemplaterevision/AsyncCreateCatalogTemplateRevision.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createcatalogtemplaterevision/AsyncCreateCatalogTemplateRevisionLRO.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createcatalogtemplaterevision/SyncCreateCatalogTemplateRevision.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createcatalogtemplaterevision/SyncCreateCatalogTemplateRevisionCatalogtemplatenameCatalogtemplaterevisionString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createcatalogtemplaterevision/SyncCreateCatalogTemplateRevisionStringCatalogtemplaterevisionString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createcomponent/AsyncCreateComponent.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createcomponent/SyncCreateComponent.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createcomponent/SyncCreateComponentApplicationtemplatenameComponentString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createcomponent/SyncCreateComponentStringComponentString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createconnection/AsyncCreateConnection.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createconnection/SyncCreateConnection.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createconnection/SyncCreateConnectionComponentnameConnectionString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createconnection/SyncCreateConnectionStringConnectionString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createpolicy/AsyncCreatePolicy.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createpolicy/SyncCreatePolicy.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createpolicy/SyncCreatePolicyApplicationtemplatenamePolicyString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createpolicy/SyncCreatePolicyStringPolicyString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createshare/AsyncCreateShare.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createshare/AsyncCreateShareLRO.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createshare/SyncCreateShare.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createshare/SyncCreateShareCatalognameShareString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createshare/SyncCreateShareStringShareString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createspace/AsyncCreateSpace.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createspace/SyncCreateSpace.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createspace/SyncCreateSpaceLocationnameSpaceString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createspace/SyncCreateSpaceStringSpaceString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteapplication/AsyncDeleteApplication.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteapplication/AsyncDeleteApplicationLRO.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteapplication/SyncDeleteApplication.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteapplication/SyncDeleteApplicationApplicationname.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteapplication/SyncDeleteApplicationString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteapplicationtemplate/AsyncDeleteApplicationTemplate.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteapplicationtemplate/SyncDeleteApplicationTemplate.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteapplicationtemplate/SyncDeleteApplicationTemplateApplicationtemplatename.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteapplicationtemplate/SyncDeleteApplicationTemplateString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteapplicationtemplaterevision/AsyncDeleteApplicationTemplateRevision.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteapplicationtemplaterevision/SyncDeleteApplicationTemplateRevision.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteapplicationtemplaterevision/SyncDeleteApplicationTemplateRevisionApplicationtemplaterevisionname.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteapplicationtemplaterevision/SyncDeleteApplicationTemplateRevisionString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletecatalog/AsyncDeleteCatalog.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletecatalog/AsyncDeleteCatalogLRO.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletecatalog/SyncDeleteCatalog.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletecatalog/SyncDeleteCatalogCatalogname.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletecatalog/SyncDeleteCatalogString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletecatalogtemplate/AsyncDeleteCatalogTemplate.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletecatalogtemplate/AsyncDeleteCatalogTemplateLRO.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletecatalogtemplate/SyncDeleteCatalogTemplate.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletecatalogtemplate/SyncDeleteCatalogTemplateCatalogtemplatename.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletecatalogtemplate/SyncDeleteCatalogTemplateString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletecatalogtemplaterevision/AsyncDeleteCatalogTemplateRevision.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletecatalogtemplaterevision/AsyncDeleteCatalogTemplateRevisionLRO.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletecatalogtemplaterevision/SyncDeleteCatalogTemplateRevision.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletecatalogtemplaterevision/SyncDeleteCatalogTemplateRevisionCatalogtemplaterevisionname.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletecatalogtemplaterevision/SyncDeleteCatalogTemplateRevisionString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletecomponent/AsyncDeleteComponent.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletecomponent/SyncDeleteComponent.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletecomponent/SyncDeleteComponentComponentname.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletecomponent/SyncDeleteComponentString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteconnection/AsyncDeleteConnection.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteconnection/SyncDeleteConnection.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteconnection/SyncDeleteConnectionConnectionname.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteconnection/SyncDeleteConnectionString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletepolicy/AsyncDeletePolicy.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletepolicy/SyncDeletePolicy.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletepolicy/SyncDeletePolicyPolicyname.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletepolicy/SyncDeletePolicyString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteshare/AsyncDeleteShare.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteshare/AsyncDeleteShareLRO.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteshare/SyncDeleteShare.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteshare/SyncDeleteShareSharename.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteshare/SyncDeleteShareString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletespace/AsyncDeleteSpace.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletespace/SyncDeleteSpace.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletespace/SyncDeleteSpaceSpacename.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletespace/SyncDeleteSpaceString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deployapplication/AsyncDeployApplication.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deployapplication/AsyncDeployApplicationLRO.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deployapplication/SyncDeployApplication.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deployapplication/SyncDeployApplicationApplicationname.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deployapplication/SyncDeployApplicationString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/exportapplicationiac/AsyncExportApplicationIaC.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/exportapplicationiac/AsyncExportApplicationIaCLRO.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/exportapplicationiac/SyncExportApplicationIaC.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/exportapplicationiac/SyncExportApplicationIaCApplicationname.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/exportapplicationiac/SyncExportApplicationIaCString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/exportapplicationtemplateiac/AsyncExportApplicationTemplateIaC.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/exportapplicationtemplateiac/AsyncExportApplicationTemplateIaCLRO.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/exportapplicationtemplateiac/SyncExportApplicationTemplateIaC.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/exportapplicationtemplateiac/SyncExportApplicationTemplateIaCApplicationtemplatename.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/exportapplicationtemplateiac/SyncExportApplicationTemplateIaCString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/exportapplicationtemplaterevisioniac/AsyncExportApplicationTemplateRevisionIaC.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/exportapplicationtemplaterevisioniac/AsyncExportApplicationTemplateRevisionIaCLRO.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/exportapplicationtemplaterevisioniac/SyncExportApplicationTemplateRevisionIaC.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/exportapplicationtemplaterevisioniac/SyncExportApplicationTemplateRevisionIaCApplicationtemplaterevisionname.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/exportapplicationtemplaterevisioniac/SyncExportApplicationTemplateRevisionIaCString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/fetchapplicationassessmentreport/AsyncFetchApplicationAssessmentReport.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/fetchapplicationassessmentreport/SyncFetchApplicationAssessmentReport.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/fetchapplicationassessmentreport/SyncFetchApplicationAssessmentReportApplicationname.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/fetchapplicationassessmentreport/SyncFetchApplicationAssessmentReportString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/fetchframeworks/AsyncFetchFrameworks.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/fetchframeworks/AsyncFetchFrameworksPaged.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/fetchframeworks/SyncFetchFrameworks.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/fetchframeworks/SyncFetchFrameworksString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationassessmentreport/AsyncGenerateApplicationAssessmentReport.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationassessmentreport/AsyncGenerateApplicationAssessmentReportLRO.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationassessmentreport/SyncGenerateApplicationAssessmentReport.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationassessmentreport/SyncGenerateApplicationAssessmentReportApplicationname.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationassessmentreport/SyncGenerateApplicationAssessmentReportString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationiac/AsyncGenerateApplicationIaC.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationiac/SyncGenerateApplicationIaC.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationiac/SyncGenerateApplicationIaCApplicationname.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationiac/SyncGenerateApplicationIaCString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationtemplateassessmentreport/AsyncGenerateApplicationTemplateAssessmentReport.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationtemplateassessmentreport/AsyncGenerateApplicationTemplateAssessmentReportLRO.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationtemplateassessmentreport/SyncGenerateApplicationTemplateAssessmentReport.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationtemplateassessmentreport/SyncGenerateApplicationTemplateAssessmentReportApplicationtemplatename.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationtemplateassessmentreport/SyncGenerateApplicationTemplateAssessmentReportString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationtemplateiac/AsyncGenerateApplicationTemplateIaC.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationtemplateiac/SyncGenerateApplicationTemplateIaC.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationtemplateiac/SyncGenerateApplicationTemplateIaCApplicationtemplatename.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationtemplateiac/SyncGenerateApplicationTemplateIaCString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationtemplaterevisioniac/AsyncGenerateApplicationTemplateRevisionIaC.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationtemplaterevisioniac/SyncGenerateApplicationTemplateRevisionIaC.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationtemplaterevisioniac/SyncGenerateApplicationTemplateRevisionIaCApplicationtemplaterevisionname.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationtemplaterevisioniac/SyncGenerateApplicationTemplateRevisionIaCString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateassessmentreport/AsyncGenerateAssessmentReport.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateassessmentreport/AsyncGenerateAssessmentReportLRO.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateassessmentreport/SyncGenerateAssessmentReport.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateassessmentreport/SyncGenerateAssessmentReportSpacename.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateassessmentreport/SyncGenerateAssessmentReportString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateterraformplanassessmentreport/AsyncGenerateTerraformPlanAssessmentReport.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateterraformplanassessmentreport/AsyncGenerateTerraformPlanAssessmentReportLRO.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateterraformplanassessmentreport/SyncGenerateTerraformPlanAssessmentReport.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateterraformplanassessmentreport/SyncGenerateTerraformPlanAssessmentReportSpacenameBytestring.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateterraformplanassessmentreport/SyncGenerateTerraformPlanAssessmentReportStringBytestring.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getapplication/AsyncGetApplication.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getapplication/SyncGetApplication.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getapplication/SyncGetApplicationApplicationname.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getapplication/SyncGetApplicationString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getapplicationtemplate/AsyncGetApplicationTemplate.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getapplicationtemplate/SyncGetApplicationTemplate.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getapplicationtemplate/SyncGetApplicationTemplateApplicationtemplatename.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getapplicationtemplate/SyncGetApplicationTemplateString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getapplicationtemplaterevision/AsyncGetApplicationTemplateRevision.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getapplicationtemplaterevision/SyncGetApplicationTemplateRevision.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getapplicationtemplaterevision/SyncGetApplicationTemplateRevisionApplicationtemplaterevisionname.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getapplicationtemplaterevision/SyncGetApplicationTemplateRevisionString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getapplicationtemplatesystemrevision/AsyncGetApplicationTemplateSystemRevision.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getapplicationtemplatesystemrevision/SyncGetApplicationTemplateSystemRevision.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getapplicationtemplatesystemrevision/SyncGetApplicationTemplateSystemRevisionApplicationtemplatesystemrevisionname.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getapplicationtemplatesystemrevision/SyncGetApplicationTemplateSystemRevisionString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getcatalog/AsyncGetCatalog.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getcatalog/SyncGetCatalog.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getcatalog/SyncGetCatalogCatalogname.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getcatalog/SyncGetCatalogString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getcatalogtemplate/AsyncGetCatalogTemplate.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getcatalogtemplate/SyncGetCatalogTemplate.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getcatalogtemplate/SyncGetCatalogTemplateCatalogtemplatename.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getcatalogtemplate/SyncGetCatalogTemplateString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getcatalogtemplaterevision/AsyncGetCatalogTemplateRevision.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getcatalogtemplaterevision/SyncGetCatalogTemplateRevision.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getcatalogtemplaterevision/SyncGetCatalogTemplateRevisionCatalogtemplaterevisionname.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getcatalogtemplaterevision/SyncGetCatalogTemplateRevisionString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getcomponent/AsyncGetComponent.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getcomponent/SyncGetComponent.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getcomponent/SyncGetComponentComponentname.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getcomponent/SyncGetComponentString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getconnection/AsyncGetConnection.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getconnection/SyncGetConnection.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getconnection/SyncGetConnectionConnectionname.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getconnection/SyncGetConnectionString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getiampolicy/AsyncGetIamPolicy.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getiampolicy/SyncGetIamPolicy.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getlocation/AsyncGetLocation.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getlocation/SyncGetLocation.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getpolicy/AsyncGetPolicy.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getpolicy/SyncGetPolicy.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getpolicy/SyncGetPolicyPolicyname.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getpolicy/SyncGetPolicyString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getshare/AsyncGetShare.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getshare/SyncGetShare.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getshare/SyncGetShareSharename.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getshare/SyncGetShareString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getsharedtemplate/AsyncGetSharedTemplate.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getsharedtemplate/SyncGetSharedTemplate.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getsharedtemplate/SyncGetSharedTemplateSharedtemplatename.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getsharedtemplate/SyncGetSharedTemplateString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getsharedtemplaterevision/AsyncGetSharedTemplateRevision.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getsharedtemplaterevision/SyncGetSharedTemplateRevision.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getsharedtemplaterevision/SyncGetSharedTemplateRevisionSharedtemplaterevisionname.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getsharedtemplaterevision/SyncGetSharedTemplateRevisionString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getspace/AsyncGetSpace.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getspace/SyncGetSpace.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getspace/SyncGetSpaceSpacename.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getspace/SyncGetSpaceString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/importapplicationiac/AsyncImportApplicationIaC.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/importapplicationiac/SyncImportApplicationIaC.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/importapplicationiac/SyncImportApplicationIaCApplicationname.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/importapplicationiac/SyncImportApplicationIaCString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/importapplicationtemplate/AsyncImportApplicationTemplate.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/importapplicationtemplate/SyncImportApplicationTemplate.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/importapplicationtemplate/SyncImportApplicationTemplateApplicationtemplatenameApplicationtemplaterevisionname.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/importapplicationtemplate/SyncImportApplicationTemplateApplicationtemplatenameString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/importapplicationtemplate/SyncImportApplicationTemplateStringApplicationtemplaterevisionname.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/importapplicationtemplate/SyncImportApplicationTemplateStringString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/importapplicationtemplateiac/AsyncImportApplicationTemplateIaC.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/importapplicationtemplateiac/SyncImportApplicationTemplateIaC.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/importapplicationtemplateiac/SyncImportApplicationTemplateIaCApplicationtemplatename.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/importapplicationtemplateiac/SyncImportApplicationTemplateIaCString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/ingestapplicationtemplateiac/AsyncIngestApplicationTemplateIaC.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/ingestapplicationtemplateiac/AsyncIngestApplicationTemplateIaCLRO.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/ingestapplicationtemplateiac/SyncIngestApplicationTemplateIaC.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/ingestapplicationtemplateiac/SyncIngestApplicationTemplateIaCApplicationtemplatename.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/ingestapplicationtemplateiac/SyncIngestApplicationTemplateIaCString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplications/AsyncListApplications.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplications/AsyncListApplicationsPaged.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplications/SyncListApplications.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplications/SyncListApplicationsSpacename.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplications/SyncListApplicationsString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplicationtemplaterevisions/AsyncListApplicationTemplateRevisions.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplicationtemplaterevisions/AsyncListApplicationTemplateRevisionsPaged.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplicationtemplaterevisions/SyncListApplicationTemplateRevisions.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplicationtemplaterevisions/SyncListApplicationTemplateRevisionsApplicationtemplatename.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplicationtemplaterevisions/SyncListApplicationTemplateRevisionsString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplicationtemplates/AsyncListApplicationTemplates.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplicationtemplates/AsyncListApplicationTemplatesPaged.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplicationtemplates/SyncListApplicationTemplates.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplicationtemplates/SyncListApplicationTemplatesSpacename.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplicationtemplates/SyncListApplicationTemplatesString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplicationtemplatesystemrevisions/AsyncListApplicationTemplateSystemRevisions.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplicationtemplatesystemrevisions/AsyncListApplicationTemplateSystemRevisionsPaged.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplicationtemplatesystemrevisions/SyncListApplicationTemplateSystemRevisions.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplicationtemplatesystemrevisions/SyncListApplicationTemplateSystemRevisionsApplicationtemplatename.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplicationtemplatesystemrevisions/SyncListApplicationTemplateSystemRevisionsString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcatalogs/AsyncListCatalogs.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcatalogs/AsyncListCatalogsPaged.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcatalogs/SyncListCatalogs.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcatalogs/SyncListCatalogsSpacename.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcatalogs/SyncListCatalogsString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcatalogtemplaterevisions/AsyncListCatalogTemplateRevisions.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcatalogtemplaterevisions/AsyncListCatalogTemplateRevisionsPaged.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcatalogtemplaterevisions/SyncListCatalogTemplateRevisions.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcatalogtemplaterevisions/SyncListCatalogTemplateRevisionsCatalogtemplatename.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcatalogtemplaterevisions/SyncListCatalogTemplateRevisionsString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcatalogtemplates/AsyncListCatalogTemplates.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcatalogtemplates/AsyncListCatalogTemplatesPaged.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcatalogtemplates/SyncListCatalogTemplates.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcatalogtemplates/SyncListCatalogTemplatesCatalogname.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcatalogtemplates/SyncListCatalogTemplatesString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcomponents/AsyncListComponents.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcomponents/AsyncListComponentsPaged.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcomponents/SyncListComponents.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcomponents/SyncListComponentsApplicationtemplatename.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcomponents/SyncListComponentsString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listconnections/AsyncListConnections.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listconnections/AsyncListConnectionsPaged.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listconnections/SyncListConnections.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listconnections/SyncListConnectionsComponentname.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listconnections/SyncListConnectionsString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listlocations/AsyncListLocations.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listlocations/AsyncListLocationsPaged.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listlocations/SyncListLocations.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listpolicies/AsyncListPolicies.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listpolicies/AsyncListPoliciesPaged.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listpolicies/SyncListPolicies.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listpolicies/SyncListPoliciesApplicationtemplatename.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listpolicies/SyncListPoliciesString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listsharedtemplaterevisions/AsyncListSharedTemplateRevisions.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listsharedtemplaterevisions/AsyncListSharedTemplateRevisionsPaged.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listsharedtemplaterevisions/SyncListSharedTemplateRevisions.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listsharedtemplaterevisions/SyncListSharedTemplateRevisionsSharedtemplatename.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listsharedtemplaterevisions/SyncListSharedTemplateRevisionsString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listsharedtemplates/AsyncListSharedTemplates.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listsharedtemplates/AsyncListSharedTemplatesPaged.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listsharedtemplates/SyncListSharedTemplates.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listsharedtemplates/SyncListSharedTemplatesSpacename.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listsharedtemplates/SyncListSharedTemplatesString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listshares/AsyncListShares.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listshares/AsyncListSharesPaged.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listshares/SyncListShares.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listshares/SyncListSharesCatalogname.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listshares/SyncListSharesString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listspaces/AsyncListSpaces.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listspaces/AsyncListSpacesPaged.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listspaces/SyncListSpaces.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listspaces/SyncListSpacesLocationname.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listspaces/SyncListSpacesString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/previewapplication/AsyncPreviewApplication.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/previewapplication/AsyncPreviewApplicationLRO.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/previewapplication/SyncPreviewApplication.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/previewapplication/SyncPreviewApplicationApplicationname.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/previewapplication/SyncPreviewApplicationString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/recommendiamroles/AsyncRecommendIAMRoles.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/recommendiamroles/AsyncRecommendIAMRolesLRO.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/recommendiamroles/SyncRecommendIAMRoles.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/recommendiamroles/SyncRecommendIAMRolesApplicationname.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/recommendiamroles/SyncRecommendIAMRolesString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/registerapphubapplicationresources/AsyncRegisterAppHubApplicationResources.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/registerapphubapplicationresources/AsyncRegisterAppHubApplicationResourcesLRO.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/registerapphubapplicationresources/SyncRegisterAppHubApplicationResources.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/registerapphubapplicationresources/SyncRegisterAppHubApplicationResourcesLocationnameStringString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/registerapphubapplicationresources/SyncRegisterAppHubApplicationResourcesStringStringString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/setiampolicy/AsyncSetIamPolicy.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/setiampolicy/SyncSetIamPolicy.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/snapshotapplicationtemplate/AsyncSnapshotApplicationTemplate.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/snapshotapplicationtemplate/AsyncSnapshotApplicationTemplateLRO.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/snapshotapplicationtemplate/SyncSnapshotApplicationTemplate.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/snapshotapplicationtemplate/SyncSnapshotApplicationTemplateApplicationtemplatename.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/snapshotapplicationtemplate/SyncSnapshotApplicationTemplateString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/syncshare/AsyncSyncShare.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/syncshare/AsyncSyncShareLRO.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/syncshare/SyncSyncShare.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/syncshare/SyncSyncShareSharename.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/syncshare/SyncSyncShareString.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/testiampermissions/AsyncTestIamPermissions.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/testiampermissions/SyncTestIamPermissions.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updateapplication/AsyncUpdateApplication.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updateapplication/SyncUpdateApplication.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updateapplication/SyncUpdateApplicationApplicationFieldmask.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updateapplicationtemplate/AsyncUpdateApplicationTemplate.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updateapplicationtemplate/SyncUpdateApplicationTemplate.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updateapplicationtemplate/SyncUpdateApplicationTemplateApplicationtemplateFieldmask.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updatecatalog/AsyncUpdateCatalog.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updatecatalog/SyncUpdateCatalog.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updatecatalog/SyncUpdateCatalogCatalogFieldmask.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updatecatalogtemplate/AsyncUpdateCatalogTemplate.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updatecatalogtemplate/SyncUpdateCatalogTemplate.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updatecatalogtemplate/SyncUpdateCatalogTemplateCatalogtemplateFieldmask.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updatecomponent/AsyncUpdateComponent.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updatecomponent/SyncUpdateComponent.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updatecomponent/SyncUpdateComponentComponentFieldmask.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updateconnection/AsyncUpdateConnection.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updateconnection/SyncUpdateConnection.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updateconnection/SyncUpdateConnectionConnectionFieldmask.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updatepolicy/AsyncUpdatePolicy.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updatepolicy/SyncUpdatePolicy.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updatepolicy/SyncUpdatePolicyPolicyFieldmask.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updatespace/AsyncUpdateSpace.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updatespace/SyncUpdateSpace.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updatespace/SyncUpdateSpaceSpaceFieldmask.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcentersettings/getspace/SyncGetSpace.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcentersettings/snapshotapplicationtemplate/SyncSnapshotApplicationTemplate.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/stub/designcenterstubsettings/getspace/SyncGetSpace.java create mode 100644 java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/stub/designcenterstubsettings/snapshotapplicationtemplate/SyncSnapshotApplicationTemplate.java diff --git a/gapic-libraries-bom/pom.xml b/gapic-libraries-bom/pom.xml index a999f9bc21fb..fd09e8092f1d 100644 --- a/gapic-libraries-bom/pom.xml +++ b/gapic-libraries-bom/pom.xml @@ -568,6 +568,13 @@ pom import + + com.google.cloud + google-cloud-designcenter-bom + 0.1.0-SNAPSHOT + pom + import + com.google.cloud google-cloud-developer-knowledge-bom diff --git a/java-designcenter/.repo-metadata.json b/java-designcenter/.repo-metadata.json new file mode 100644 index 000000000000..621dd98e29f5 --- /dev/null +++ b/java-designcenter/.repo-metadata.json @@ -0,0 +1,15 @@ +{ + "api_shortname": "designcenter", + "name_pretty": "Design Center", + "product_documentation": "https://cloud.google.com/application-design-center/docs", + "api_description": "Design and share deployable application architectures.", + "client_documentation": "https://cloud.google.com/java/docs/reference/google-cloud-designcenter/latest/overview", + "release_level": "preview", + "transport": "grpc+rest", + "language": "java", + "repo": "googleapis/google-cloud-java", + "repo_short": "java-designcenter", + "distribution_name": "com.google.cloud:google-cloud-designcenter", + "api_id": "designcenter.googleapis.com", + "library_type": "GAPIC_AUTO" +} \ No newline at end of file diff --git a/java-designcenter/README.md b/java-designcenter/README.md new file mode 100644 index 000000000000..46db3772e573 --- /dev/null +++ b/java-designcenter/README.md @@ -0,0 +1,210 @@ +# Google Design Center Client for Java + +Java idiomatic client for [Design Center][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.90.0 + pom + import + + + + + + + com.google.cloud + google-cloud-designcenter + + +``` + +If you are using Maven without the BOM, add this to your dependencies: + + +```xml + + com.google.cloud + google-cloud-designcenter + 0.0.0 + +``` + +If you are using Gradle 5.x or later, add this to your dependencies: + +```Groovy +implementation platform('com.google.cloud:libraries-bom:26.90.0') + +implementation 'com.google.cloud:google-cloud-designcenter' +``` + +If you are using Gradle without BOM, add this to your dependencies: + +```Groovy +implementation 'com.google.cloud:google-cloud-designcenter:0.0.0' +``` + +If you are using SBT, add this to your dependencies: + +```Scala +libraryDependencies += "com.google.cloud" % "google-cloud-designcenter" % "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 Design Center APIs, and the authenticated principal must have the [IAM role(s)][predefined-iam-roles] required to access GCP resources using the Design Center API calls. + +## Getting Started + +### Prerequisites + +You will need a [Google Cloud Platform Console][developer-console] project with the Design Center [API enabled][enable-api]. +You will need to [enable billing][enable-billing] to use Google Design Center. +[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-designcenter` library. See the [Quickstart](#quickstart) section +to add `google-cloud-designcenter` as a dependency in your code. + +## About Design Center + + +[Design Center][product-docs] Design and share deployable application architectures. + +See the [Design Center client library docs][javadocs] to learn how to +use this Design Center Client Library. + + + + + + +## Troubleshooting + +To get help, follow the instructions in the [shared Troubleshooting document][troubleshooting]. + +## Transport + +Design Center uses both gRPC and HTTP/JSON 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. + +Java is a registered trademark of Oracle and/or its affiliates. + +[product-docs]: https://cloud.google.com/application-design-center/docs +[javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-designcenter/latest/overview +[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-designcenter.svg +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-designcenter/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/google-cloud-java/blob/main/CONTRIBUTING.md +[code-of-conduct]: https://github.com/googleapis/google-cloud-java/blob/main/CODE_OF_CONDUCT.md#contributor-code-of-conduct +[license]: https://github.com/googleapis/google-cloud-java/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=designcenter.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]: https://github.com/googleapis/google-cloud-java diff --git a/java-designcenter/google-cloud-designcenter-bom/pom.xml b/java-designcenter/google-cloud-designcenter-bom/pom.xml new file mode 100644 index 000000000000..0c552f4d7fdf --- /dev/null +++ b/java-designcenter/google-cloud-designcenter-bom/pom.xml @@ -0,0 +1,45 @@ + + + 4.0.0 + com.google.cloud + google-cloud-designcenter-bom + 0.1.0-SNAPSHOT + pom + + com.google.cloud + google-cloud-pom-parent + 1.94.0 + ../../google-cloud-pom-parent/pom.xml + + + Google Design Center BOM + + BOM for Design Center + + + + true + + + + + + + com.google.cloud + google-cloud-designcenter + 0.1.0-SNAPSHOT + + + com.google.api.grpc + grpc-google-cloud-designcenter-v1 + 0.1.0-SNAPSHOT + + + com.google.api.grpc + proto-google-cloud-designcenter-v1 + 0.1.0-SNAPSHOT + + + + + \ No newline at end of file diff --git a/java-designcenter/google-cloud-designcenter/pom.xml b/java-designcenter/google-cloud-designcenter/pom.xml new file mode 100644 index 000000000000..5ff684676fe9 --- /dev/null +++ b/java-designcenter/google-cloud-designcenter/pom.xml @@ -0,0 +1,117 @@ + + + 4.0.0 + com.google.cloud + google-cloud-designcenter + 0.1.0-SNAPSHOT + jar + Google Design Center + Design Center Design and share deployable application architectures. + + com.google.cloud + google-cloud-designcenter-parent + 0.1.0-SNAPSHOT + + + google-cloud-designcenter + + + + 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-designcenter-v1 + + + + com.google.guava + guava + + + com.google.api + gax + + + com.google.api + gax-grpc + + + com.google.api + gax-httpjson + + + com.google.api.grpc + proto-google-iam-v1 + + + org.threeten + threetenbp + + + + + com.google.api.grpc + grpc-google-common-protos + test + + + com.google.api.grpc + grpc-google-iam-v1 + test + + + junit + junit + test + + + + com.google.api.grpc + grpc-google-cloud-designcenter-v1 + test + + + + + com.google.api + gax + testlib + test + + + com.google.api + gax-grpc + testlib + test + + + com.google.api + gax-httpjson + testlib + test + + + \ No newline at end of file diff --git a/java-designcenter/google-cloud-designcenter/src/main/java/com/google/cloud/designcenter/v1/DesignCenterClient.java b/java-designcenter/google-cloud-designcenter/src/main/java/com/google/cloud/designcenter/v1/DesignCenterClient.java new file mode 100644 index 000000000000..eb9b0bc313c2 --- /dev/null +++ b/java-designcenter/google-cloud-designcenter/src/main/java/com/google/cloud/designcenter/v1/DesignCenterClient.java @@ -0,0 +1,15431 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.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.designcenter.v1.stub.DesignCenterStub; +import com.google.cloud.designcenter.v1.stub.DesignCenterStubSettings; +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.util.concurrent.MoreExecutors; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.ByteString; +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; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Service describing handlers for resources + * + *

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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+ *   SpaceName name = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]");
+ *   Space response = designCenterClient.getSpace(name);
+ * }
+ * }
+ * + *

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

GetSpace

Gets details about a space.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getSpace(GetSpaceRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getSpace(SpaceName name) + *

  • getSpace(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getSpaceCallable() + *

+ *

ListSpaces

Lists spaces in a given project and location.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listSpaces(ListSpacesRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listSpaces(LocationName parent) + *

  • listSpaces(String parent) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listSpacesPagedCallable() + *

  • listSpacesCallable() + *

+ *

CreateSpace

Creates a space.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • createSpace(CreateSpaceRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • createSpace(LocationName parent, Space space, String spaceId) + *

  • createSpace(String parent, Space space, String spaceId) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • createSpaceCallable() + *

+ *

UpdateSpace

Updates a space.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • updateSpace(UpdateSpaceRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • updateSpace(Space space, FieldMask updateMask) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • updateSpaceCallable() + *

+ *

DeleteSpace

Deletes a space.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • deleteSpace(DeleteSpaceRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • deleteSpace(SpaceName name) + *

  • deleteSpace(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • deleteSpaceCallable() + *

+ *

GetApplicationTemplate

Gets details about an application template.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getApplicationTemplate(GetApplicationTemplateRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getApplicationTemplate(ApplicationTemplateName name) + *

  • getApplicationTemplate(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getApplicationTemplateCallable() + *

+ *

ListApplicationTemplates

Lists application templates in a given space.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listApplicationTemplates(ListApplicationTemplatesRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listApplicationTemplates(SpaceName parent) + *

  • listApplicationTemplates(String parent) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listApplicationTemplatesPagedCallable() + *

  • listApplicationTemplatesCallable() + *

+ *

CreateApplicationTemplate

Creates an application template.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • createApplicationTemplate(CreateApplicationTemplateRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • createApplicationTemplate(SpaceName parent, ApplicationTemplate applicationTemplate, String applicationTemplateId) + *

  • createApplicationTemplate(String parent, ApplicationTemplate applicationTemplate, String applicationTemplateId) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • createApplicationTemplateCallable() + *

+ *

UpdateApplicationTemplate

Updates an application template.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • updateApplicationTemplate(UpdateApplicationTemplateRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • updateApplicationTemplate(ApplicationTemplate applicationTemplate, FieldMask updateMask) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • updateApplicationTemplateCallable() + *

+ *

ImportApplicationTemplate

Imports to an existing application template from a given shared template.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • importApplicationTemplate(ImportApplicationTemplateRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • importApplicationTemplate(ApplicationTemplateName name, ApplicationTemplateRevisionName applicationTemplateRevisionUri) + *

  • importApplicationTemplate(ApplicationTemplateName name, String applicationTemplateRevisionUri) + *

  • importApplicationTemplate(String name, ApplicationTemplateRevisionName applicationTemplateRevisionUri) + *

  • importApplicationTemplate(String name, String applicationTemplateRevisionUri) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • importApplicationTemplateCallable() + *

+ *

DeleteApplicationTemplate

Deletes an application template.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • deleteApplicationTemplate(DeleteApplicationTemplateRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • deleteApplicationTemplate(ApplicationTemplateName name) + *

  • deleteApplicationTemplate(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • deleteApplicationTemplateCallable() + *

+ *

CommitApplicationTemplate

Commits an application template to create a new revision.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • commitApplicationTemplate(CommitApplicationTemplateRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • commitApplicationTemplate(ApplicationTemplateName name) + *

  • commitApplicationTemplate(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • commitApplicationTemplateCallable() + *

+ *

SnapshotApplicationTemplate

Snapshots an application template to create a new revision asynchronously.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • snapshotApplicationTemplateAsync(SnapshotApplicationTemplateRequest request) + *

+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • snapshotApplicationTemplateAsync(ApplicationTemplateName name) + *

  • snapshotApplicationTemplateAsync(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • snapshotApplicationTemplateOperationCallable() + *

  • snapshotApplicationTemplateCallable() + *

+ *

GenerateApplicationTemplateIaC

Generates Terraform files for an application template. This is a SYNCHRONOUS operation and returns the generated IaC directly in the response. It does NOT download external module sources; it only uses remote sources.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • generateApplicationTemplateIaC(GenerateApplicationTemplateIaCRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • generateApplicationTemplateIaC(ApplicationTemplateName name) + *

  • generateApplicationTemplateIaC(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • generateApplicationTemplateIaCCallable() + *

+ *

ExportApplicationTemplateIaC

Exports Terraform files for an application template. The generated modules can have remote sources or local sources downloaded from remote. This is an ASYNCHRONOUS operation that returns a Long Running Operation.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • exportApplicationTemplateIaCAsync(ExportApplicationTemplateIaCRequest request) + *

+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • exportApplicationTemplateIaCAsync(ApplicationTemplateName name) + *

  • exportApplicationTemplateIaCAsync(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • exportApplicationTemplateIaCOperationCallable() + *

  • exportApplicationTemplateIaCCallable() + *

+ *

GenerateApplicationTemplateRevisionIaC

Generates Terraform files for an application template revision. This is a SYNCHRONOUS operation and returns the generated IaC directly in the response. It does NOT download external module sources; it only uses remote sources.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • generateApplicationTemplateRevisionIaC(GenerateApplicationTemplateRevisionIaCRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • generateApplicationTemplateRevisionIaC(ApplicationTemplateRevisionName name) + *

  • generateApplicationTemplateRevisionIaC(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • generateApplicationTemplateRevisionIaCCallable() + *

+ *

ExportApplicationTemplateRevisionIaC

Exports Terraform files for an application template revision. The generated modules can have remote sources or local sources downloaded from remote. This is an ASYNCHRONOUS operation that returns a Long Running Operation.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • exportApplicationTemplateRevisionIaCAsync(ExportApplicationTemplateRevisionIaCRequest request) + *

+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • exportApplicationTemplateRevisionIaCAsync(ApplicationTemplateRevisionName name) + *

  • exportApplicationTemplateRevisionIaCAsync(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • exportApplicationTemplateRevisionIaCOperationCallable() + *

  • exportApplicationTemplateRevisionIaCCallable() + *

+ *

GetComponent

Gets details about a Component.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getComponent(GetComponentRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getComponent(ComponentName name) + *

  • getComponent(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getComponentCallable() + *

+ *

ListComponents

Lists components in an application template.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listComponents(ListComponentsRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listComponents(ApplicationTemplateName parent) + *

  • listComponents(String parent) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listComponentsPagedCallable() + *

  • listComponentsCallable() + *

+ *

CreateComponent

Creates a component.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • createComponent(CreateComponentRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • createComponent(ApplicationTemplateName parent, Component component, String componentId) + *

  • createComponent(String parent, Component component, String componentId) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • createComponentCallable() + *

+ *

UpdateComponent

Updates a component.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • updateComponent(UpdateComponentRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • updateComponent(Component component, FieldMask updateMask) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • updateComponentCallable() + *

+ *

DeleteComponent

Deletes a component.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • deleteComponent(DeleteComponentRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • deleteComponent(ComponentName name) + *

  • deleteComponent(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • deleteComponentCallable() + *

+ *

GetConnection

Gets details about a connection.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getConnection(GetConnectionRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getConnection(ConnectionName name) + *

  • getConnection(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getConnectionCallable() + *

+ *

ListConnections

Lists connections in an application template.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listConnections(ListConnectionsRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listConnections(ComponentName parent) + *

  • listConnections(String parent) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listConnectionsPagedCallable() + *

  • listConnectionsCallable() + *

+ *

CreateConnection

Creates a connection.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • createConnection(CreateConnectionRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • createConnection(ComponentName parent, Connection connection, String connectionId) + *

  • createConnection(String parent, Connection connection, String connectionId) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • createConnectionCallable() + *

+ *

UpdateConnection

Updates a connection.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • updateConnection(UpdateConnectionRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • updateConnection(Connection connection, FieldMask updateMask) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • updateConnectionCallable() + *

+ *

DeleteConnection

Deletes a connection.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • deleteConnection(DeleteConnectionRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • deleteConnection(ConnectionName name) + *

  • deleteConnection(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • deleteConnectionCallable() + *

+ *

GetApplicationTemplateRevision

Gets details about an application template revision.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getApplicationTemplateRevision(GetApplicationTemplateRevisionRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getApplicationTemplateRevision(ApplicationTemplateRevisionName name) + *

  • getApplicationTemplateRevision(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getApplicationTemplateRevisionCallable() + *

+ *

ListApplicationTemplateRevisions

Lists application template revisions in a given application template.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listApplicationTemplateRevisions(ListApplicationTemplateRevisionsRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listApplicationTemplateRevisions(ApplicationTemplateName parent) + *

  • listApplicationTemplateRevisions(String parent) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listApplicationTemplateRevisionsPagedCallable() + *

  • listApplicationTemplateRevisionsCallable() + *

+ *

DeleteApplicationTemplateRevision

Deletes an application template revision.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • deleteApplicationTemplateRevision(DeleteApplicationTemplateRevisionRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • deleteApplicationTemplateRevision(ApplicationTemplateRevisionName name) + *

  • deleteApplicationTemplateRevision(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • deleteApplicationTemplateRevisionCallable() + *

+ *

GetCatalog

Gets details about a catalog.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getCatalog(GetCatalogRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getCatalog(CatalogName name) + *

  • getCatalog(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getCatalogCallable() + *

+ *

ListCatalogs

Lists catalogs in a given space.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listCatalogs(ListCatalogsRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listCatalogs(SpaceName parent) + *

  • listCatalogs(String parent) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listCatalogsPagedCallable() + *

  • listCatalogsCallable() + *

+ *

CreateCatalog

Creates a catalog.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • createCatalog(CreateCatalogRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • createCatalog(SpaceName parent, Catalog catalog, String catalogId) + *

  • createCatalog(String parent, Catalog catalog, String catalogId) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • createCatalogCallable() + *

+ *

UpdateCatalog

Updates a catalog.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • updateCatalog(UpdateCatalogRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • updateCatalog(Catalog catalog, FieldMask updateMask) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • updateCatalogCallable() + *

+ *

DeleteCatalog

Deletes a catalog.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • deleteCatalogAsync(DeleteCatalogRequest request) + *

+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • deleteCatalogAsync(CatalogName name) + *

  • deleteCatalogAsync(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • deleteCatalogOperationCallable() + *

  • deleteCatalogCallable() + *

+ *

CreateCatalogTemplate

Adds a template to a catalog.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • createCatalogTemplate(CreateCatalogTemplateRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • createCatalogTemplate(CatalogName parent, CatalogTemplate catalogTemplate, String catalogTemplateId) + *

  • createCatalogTemplate(String parent, CatalogTemplate catalogTemplate, String catalogTemplateId) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • createCatalogTemplateCallable() + *

+ *

GetCatalogTemplate

Gets a catalog template.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getCatalogTemplate(GetCatalogTemplateRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getCatalogTemplate(CatalogTemplateName name) + *

  • getCatalogTemplate(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getCatalogTemplateCallable() + *

+ *

ListCatalogTemplates

Lists catalog templates.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listCatalogTemplates(ListCatalogTemplatesRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listCatalogTemplates(CatalogName parent) + *

  • listCatalogTemplates(String parent) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listCatalogTemplatesPagedCallable() + *

  • listCatalogTemplatesCallable() + *

+ *

UpdateCatalogTemplate

Updates a catalog template resource.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • updateCatalogTemplate(UpdateCatalogTemplateRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • updateCatalogTemplate(CatalogTemplate catalogTemplate, FieldMask updateMask) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • updateCatalogTemplateCallable() + *

+ *

DeleteCatalogTemplate

Deletes a catalog template.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • deleteCatalogTemplateAsync(DeleteCatalogTemplateRequest request) + *

+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • deleteCatalogTemplateAsync(CatalogTemplateName name) + *

  • deleteCatalogTemplateAsync(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • deleteCatalogTemplateOperationCallable() + *

  • deleteCatalogTemplateCallable() + *

+ *

CreateShare

Shares a catalog from one space to another space.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • createShareAsync(CreateShareRequest request) + *

+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • createShareAsync(CatalogName parent, Share share, String shareId) + *

  • createShareAsync(String parent, Share share, String shareId) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • createShareOperationCallable() + *

  • createShareCallable() + *

+ *

ListShares

Lists catalog share objects for the space.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listShares(ListSharesRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listShares(CatalogName parent) + *

  • listShares(String parent) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listSharesPagedCallable() + *

  • listSharesCallable() + *

+ *

GetShare

Get catalog share object for the space.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getShare(GetShareRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getShare(ShareName name) + *

  • getShare(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getShareCallable() + *

+ *

DeleteShare

Deletes a catalog share.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • deleteShareAsync(DeleteShareRequest request) + *

+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • deleteShareAsync(ShareName name) + *

  • deleteShareAsync(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • deleteShareOperationCallable() + *

  • deleteShareCallable() + *

+ *

SyncShare

Synchronizes a share and updates the destination workspace to reflect. reflect the most recent changes to the catalog.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • syncShareAsync(SyncShareRequest request) + *

+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • syncShareAsync(ShareName name) + *

  • syncShareAsync(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • syncShareOperationCallable() + *

  • syncShareCallable() + *

+ *

GetSharedTemplate

Gets details about a shared template.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getSharedTemplate(GetSharedTemplateRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getSharedTemplate(SharedTemplateName name) + *

  • getSharedTemplate(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getSharedTemplateCallable() + *

+ *

ListSharedTemplates

Lists shared templates in a given space.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listSharedTemplates(ListSharedTemplatesRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listSharedTemplates(SpaceName parent) + *

  • listSharedTemplates(String parent) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listSharedTemplatesPagedCallable() + *

  • listSharedTemplatesCallable() + *

+ *

GetSharedTemplateRevision

Gets details about a shared template revision.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getSharedTemplateRevision(GetSharedTemplateRevisionRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getSharedTemplateRevision(SharedTemplateRevisionName name) + *

  • getSharedTemplateRevision(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getSharedTemplateRevisionCallable() + *

+ *

ListSharedTemplateRevisions

Lists shared template revisions in a given space.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listSharedTemplateRevisions(ListSharedTemplateRevisionsRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listSharedTemplateRevisions(SharedTemplateName parent) + *

  • listSharedTemplateRevisions(String parent) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listSharedTemplateRevisionsPagedCallable() + *

  • listSharedTemplateRevisionsCallable() + *

+ *

CreateCatalogTemplateRevision

Creates a template revision.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • createCatalogTemplateRevisionAsync(CreateCatalogTemplateRevisionRequest request) + *

+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • createCatalogTemplateRevisionAsync(CatalogTemplateName parent, CatalogTemplateRevision catalogTemplateRevision, String catalogTemplateRevisionId) + *

  • createCatalogTemplateRevisionAsync(String parent, CatalogTemplateRevision catalogTemplateRevision, String catalogTemplateRevisionId) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • createCatalogTemplateRevisionOperationCallable() + *

  • createCatalogTemplateRevisionCallable() + *

+ *

GetCatalogTemplateRevision

Gets details about a template revision.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getCatalogTemplateRevision(GetCatalogTemplateRevisionRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getCatalogTemplateRevision(CatalogTemplateRevisionName name) + *

  • getCatalogTemplateRevision(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getCatalogTemplateRevisionCallable() + *

+ *

ListCatalogTemplateRevisions

Lists template revisions.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listCatalogTemplateRevisions(ListCatalogTemplateRevisionsRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listCatalogTemplateRevisions(CatalogTemplateName parent) + *

  • listCatalogTemplateRevisions(String parent) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listCatalogTemplateRevisionsPagedCallable() + *

  • listCatalogTemplateRevisionsCallable() + *

+ *

DeleteCatalogTemplateRevision

Deletes a template revision.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • deleteCatalogTemplateRevisionAsync(DeleteCatalogTemplateRevisionRequest request) + *

+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • deleteCatalogTemplateRevisionAsync(CatalogTemplateRevisionName name) + *

  • deleteCatalogTemplateRevisionAsync(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • deleteCatalogTemplateRevisionOperationCallable() + *

  • deleteCatalogTemplateRevisionCallable() + *

+ *

CreateApplication

Creates an application.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • createApplication(CreateApplicationRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • createApplication(SpaceName parent, Application application, String applicationId) + *

  • createApplication(String parent, Application application, String applicationId) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • createApplicationCallable() + *

+ *

GetApplication

Gets details about an application.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getApplication(GetApplicationRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getApplication(ApplicationName name) + *

  • getApplication(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getApplicationCallable() + *

+ *

ListApplications

Lists applications in a given space.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listApplications(ListApplicationsRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listApplications(SpaceName parent) + *

  • listApplications(String parent) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listApplicationsPagedCallable() + *

  • listApplicationsCallable() + *

+ *

UpdateApplication

Updates an application.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • updateApplication(UpdateApplicationRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • updateApplication(Application application, FieldMask updateMask) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • updateApplicationCallable() + *

+ *

DeleteApplication

Deletes an application.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • deleteApplicationAsync(DeleteApplicationRequest request) + *

+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • deleteApplicationAsync(ApplicationName name) + *

  • deleteApplicationAsync(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • deleteApplicationOperationCallable() + *

  • deleteApplicationCallable() + *

+ *

DeployApplication

Deploys an application.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • deployApplicationAsync(DeployApplicationRequest request) + *

+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • deployApplicationAsync(ApplicationName name) + *

  • deployApplicationAsync(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • deployApplicationOperationCallable() + *

  • deployApplicationCallable() + *

+ *

PreviewApplication

Previews deployment of an application.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • previewApplicationAsync(PreviewApplicationRequest request) + *

+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • previewApplicationAsync(ApplicationName name) + *

  • previewApplicationAsync(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • previewApplicationOperationCallable() + *

  • previewApplicationCallable() + *

+ *

FetchApplicationAssessmentReport

Fetches the assessment report of a deployed application if present.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • fetchApplicationAssessmentReport(FetchApplicationAssessmentReportRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • fetchApplicationAssessmentReport(ApplicationName name) + *

  • fetchApplicationAssessmentReport(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • fetchApplicationAssessmentReportCallable() + *

+ *

GenerateApplicationAssessmentReport

Generate Assessment Reports of an application.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • generateApplicationAssessmentReportAsync(GenerateApplicationAssessmentReportRequest request) + *

+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • generateApplicationAssessmentReportAsync(ApplicationName name) + *

  • generateApplicationAssessmentReportAsync(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • generateApplicationAssessmentReportOperationCallable() + *

  • generateApplicationAssessmentReportCallable() + *

+ *

GenerateApplicationTemplateAssessmentReport

Generate Assessment Reports of an application template.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • generateApplicationTemplateAssessmentReportAsync(GenerateApplicationTemplateAssessmentReportRequest request) + *

+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • generateApplicationTemplateAssessmentReportAsync(ApplicationTemplateName name) + *

  • generateApplicationTemplateAssessmentReportAsync(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • generateApplicationTemplateAssessmentReportOperationCallable() + *

  • generateApplicationTemplateAssessmentReportCallable() + *

+ *

GenerateAssessmentReport

Deprecated: Use GenerateTerraformPlanAssessmentReport instead. + *

Generate a best practice report for a given Terraform plan.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • generateAssessmentReportAsync(GenerateAssessmentReportRequest request) + *

+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • generateAssessmentReportAsync(SpaceName spaceName) + *

  • generateAssessmentReportAsync(String spaceName) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • generateAssessmentReportOperationCallable() + *

  • generateAssessmentReportCallable() + *

+ *

GenerateTerraformPlanAssessmentReport

Generate a Terraform plan assessment report for a given Terraform plan.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • generateTerraformPlanAssessmentReportAsync(GenerateTerraformPlanAssessmentReportRequest request) + *

+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • generateTerraformPlanAssessmentReportAsync(SpaceName name, ByteString terraformPlan) + *

  • generateTerraformPlanAssessmentReportAsync(String name, ByteString terraformPlan) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • generateTerraformPlanAssessmentReportOperationCallable() + *

  • generateTerraformPlanAssessmentReportCallable() + *

+ *

GetPolicy

Policy related APIs. Get a policy for an application template.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getPolicy(GetPolicyRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getPolicy(PolicyName name) + *

  • getPolicy(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getPolicyCallable() + *

+ *

ListPolicies

Lists policies for an application template.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listPolicies(ListPoliciesRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listPolicies(ApplicationTemplateName parent) + *

  • listPolicies(String parent) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listPoliciesPagedCallable() + *

  • listPoliciesCallable() + *

+ *

CreatePolicy

Creates a policy for an application template.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • createPolicy(CreatePolicyRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • createPolicy(ApplicationTemplateName parent, Policy policy, String policyId) + *

  • createPolicy(String parent, Policy policy, String policyId) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • createPolicyCallable() + *

+ *

UpdatePolicy

Updates a policy.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • updatePolicy(UpdatePolicyRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • updatePolicy(Policy policy, FieldMask updateMask) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • updatePolicyCallable() + *

+ *

DeletePolicy

Deletes a policy.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • deletePolicy(DeletePolicyRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • deletePolicy(PolicyName name) + *

  • deletePolicy(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • deletePolicyCallable() + *

+ *

FetchFrameworks

Fetches all frameworks for assessment report.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • fetchFrameworks(FetchFrameworksRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • fetchFrameworks(String parent) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • fetchFrameworksPagedCallable() + *

  • fetchFrameworksCallable() + *

+ *

GenerateApplicationIaC

Generates Terraform files for an application.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • generateApplicationIaC(GenerateApplicationIaCRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • generateApplicationIaC(ApplicationName name) + *

  • generateApplicationIaC(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • generateApplicationIaCCallable() + *

+ *

ExportApplicationIaC

Exports Terraform files for an application asynchronously.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • exportApplicationIaCAsync(ExportApplicationIaCRequest request) + *

+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • exportApplicationIaCAsync(ApplicationName name) + *

  • exportApplicationIaCAsync(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • exportApplicationIaCOperationCallable() + *

  • exportApplicationIaCCallable() + *

+ *

ImportApplicationTemplateIaC

Imports IaC for an application template.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • importApplicationTemplateIaC(ImportApplicationTemplateIaCRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • importApplicationTemplateIaC(ApplicationTemplateName name) + *

  • importApplicationTemplateIaC(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • importApplicationTemplateIaCCallable() + *

+ *

IngestApplicationTemplateIaC

Ingests IaC for an application template asynchronously.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • ingestApplicationTemplateIaCAsync(IngestApplicationTemplateIaCRequest request) + *

+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • ingestApplicationTemplateIaCAsync(ApplicationTemplateName name) + *

  • ingestApplicationTemplateIaCAsync(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • ingestApplicationTemplateIaCOperationCallable() + *

  • ingestApplicationTemplateIaCCallable() + *

+ *

ImportApplicationIaC

Imports IaC for an application resource.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • importApplicationIaC(ImportApplicationIaCRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • importApplicationIaC(ApplicationName name) + *

  • importApplicationIaC(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • importApplicationIaCCallable() + *

+ *

RegisterAppHubApplicationResources

Register deployed resources from terraform state file with App Hub without needing a space.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • registerAppHubApplicationResourcesAsync(RegisterAppHubApplicationResourcesRequest request) + *

+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • registerAppHubApplicationResourcesAsync(LocationName parent, String apphubApplication, String tfstateContent) + *

  • registerAppHubApplicationResourcesAsync(String parent, String apphubApplication, String tfstateContent) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • registerAppHubApplicationResourcesOperationCallable() + *

  • registerAppHubApplicationResourcesCallable() + *

+ *

ListApplicationTemplateSystemRevisions

Lists application template system revisions in a given application template.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listApplicationTemplateSystemRevisions(ListApplicationTemplateSystemRevisionsRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listApplicationTemplateSystemRevisions(ApplicationTemplateName parent) + *

  • listApplicationTemplateSystemRevisions(String parent) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listApplicationTemplateSystemRevisionsPagedCallable() + *

  • listApplicationTemplateSystemRevisionsCallable() + *

+ *

GetApplicationTemplateSystemRevision

Gets the given application template system revision.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getApplicationTemplateSystemRevision(GetApplicationTemplateSystemRevisionRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getApplicationTemplateSystemRevision(ApplicationTemplateSystemRevisionName name) + *

  • getApplicationTemplateSystemRevision(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getApplicationTemplateSystemRevisionCallable() + *

+ *

RecommendIAMRoles

Gets recommended IAM roles for an application. + *

Evaluates the infrastructure resources defined by an application (including its template configuration and parameters) to determine the set of IAM roles and Google Cloud APIs that you must configure before you deploy across target projects. + *

The operation is asynchronous and returns a `google.longrunning.Operation`. Upon completion, the operation result contains a `RecommendIAMRolesResponse` with project-level IAM role and API recommendations.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • recommendIAMRolesAsync(RecommendIAMRolesRequest request) + *

+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • recommendIAMRolesAsync(ApplicationName name) + *

  • recommendIAMRolesAsync(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • recommendIAMRolesOperationCallable() + *

  • recommendIAMRolesCallable() + *

+ *

ListLocations

Lists information about the supported locations for this service. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listLocations(ListLocationsRequest request) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() + *

+ *

GetLocation

Gets information about a location.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getLocation(GetLocationRequest request) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getLocationCallable() + *

+ *

SetIamPolicy

Sets the access control policy on the specified resource. Replacesany existing policy. + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • setIamPolicy(SetIamPolicyRequest request) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • setIamPolicyCallable() + *

+ *

GetIamPolicy

Gets the access control policy for a resource. Returns an empty policyif the resource exists and does not have a policy set.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getIamPolicy(GetIamPolicyRequest request) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getIamPolicyCallable() + *

+ *

TestIamPermissions

Returns permissions that a caller has on the specified resource. If theresource does not exist, this will return an empty set ofpermissions, not a `NOT_FOUND` error. + *

Note: This operation is designed to be used for buildingpermission-aware UIs and command-line tools, not for authorizationchecking. This operation may "fail open" without warning.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • testIamPermissions(TestIamPermissionsRequest request) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • testIamPermissionsCallable() + *

+ *
+ * + *

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 DesignCenterSettings 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
+ * DesignCenterSettings designCenterSettings =
+ *     DesignCenterSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * DesignCenterClient designCenterClient = DesignCenterClient.create(designCenterSettings);
+ * }
+ * + *

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
+ * DesignCenterSettings designCenterSettings =
+ *     DesignCenterSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * DesignCenterClient designCenterClient = DesignCenterClient.create(designCenterSettings);
+ * }
+ * + *

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
+ * DesignCenterSettings designCenterSettings = DesignCenterSettings.newHttpJsonBuilder().build();
+ * DesignCenterClient designCenterClient = DesignCenterClient.create(designCenterSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@NullMarked +@Generated("by gapic-generator-java") +public class DesignCenterClient implements BackgroundResource { + private final @Nullable DesignCenterSettings settings; + private final DesignCenterStub stub; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; + + /** Constructs an instance of DesignCenterClient with default settings. */ + public static final DesignCenterClient create() throws IOException { + return create(DesignCenterSettings.newBuilder().build()); + } + + /** + * Constructs an instance of DesignCenterClient, 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 DesignCenterClient create(DesignCenterSettings settings) throws IOException { + return new DesignCenterClient(settings); + } + + /** + * Constructs an instance of DesignCenterClient, using the given stub for making calls. This is + * for advanced usage - prefer using create(DesignCenterSettings). + */ + public static final DesignCenterClient create(DesignCenterStub stub) { + return new DesignCenterClient(stub); + } + + /** + * Constructs an instance of DesignCenterClient, 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 DesignCenterClient(DesignCenterSettings settings) throws IOException { + this.settings = settings; + this.stub = ((DesignCenterStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + protected DesignCenterClient(DesignCenterStub 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 @Nullable DesignCenterSettings getSettings() { + return settings; + } + + public DesignCenterStub 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. + /** + * Gets details about a space. + * + *

Sample code: + * + *

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

Sample code: + * + *

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

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   GetSpaceRequest request =
+   *       GetSpaceRequest.newBuilder()
+   *           .setName(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString())
+   *           .build();
+   *   ApiFuture future = designCenterClient.getSpaceCallable().futureCall(request);
+   *   // Do something.
+   *   Space response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getSpaceCallable() { + return stub.getSpaceCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists spaces 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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (Space element : designCenterClient.listSpaces(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The name of the parent resource, for which spaces are listed. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSpacesPagedResponse listSpaces(@Nullable LocationName parent) { + ListSpacesRequest request = + ListSpacesRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); + return listSpaces(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists spaces 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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (Space element : designCenterClient.listSpaces(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The name of the parent resource, for which spaces are listed. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSpacesPagedResponse listSpaces(String parent) { + ListSpacesRequest request = ListSpacesRequest.newBuilder().setParent(parent).build(); + return listSpaces(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists spaces 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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   ListSpacesRequest request =
+   *       ListSpacesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   for (Space element : designCenterClient.listSpaces(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 ListSpacesPagedResponse listSpaces(ListSpacesRequest request) { + return listSpacesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists spaces 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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   ListSpacesRequest request =
+   *       ListSpacesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   ApiFuture future = designCenterClient.listSpacesPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Space element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listSpacesPagedCallable() { + return stub.listSpacesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists spaces 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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   ListSpacesRequest request =
+   *       ListSpacesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   while (true) {
+   *     ListSpacesResponse response = designCenterClient.listSpacesCallable().call(request);
+   *     for (Space element : response.getSpacesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listSpacesCallable() { + return stub.listSpacesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a space. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   Space space = Space.newBuilder().build();
+   *   String spaceId = "spaceId-2012163903";
+   *   Space response = designCenterClient.createSpace(parent, space, spaceId);
+   * }
+   * }
+ * + * @param parent Required. The parent in which to create a space. + * @param space Required. The space to create. + * @param spaceId Required. The ID of the space to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Space createSpace(@Nullable LocationName parent, Space space, String spaceId) { + CreateSpaceRequest request = + CreateSpaceRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setSpace(space) + .setSpaceId(spaceId) + .build(); + return createSpace(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a space. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   Space space = Space.newBuilder().build();
+   *   String spaceId = "spaceId-2012163903";
+   *   Space response = designCenterClient.createSpace(parent, space, spaceId);
+   * }
+   * }
+ * + * @param parent Required. The parent in which to create a space. + * @param space Required. The space to create. + * @param spaceId Required. The ID of the space to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Space createSpace(String parent, Space space, String spaceId) { + CreateSpaceRequest request = + CreateSpaceRequest.newBuilder() + .setParent(parent) + .setSpace(space) + .setSpaceId(spaceId) + .build(); + return createSpace(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a space. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   CreateSpaceRequest request =
+   *       CreateSpaceRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setSpaceId("spaceId-2012163903")
+   *           .setSpace(Space.newBuilder().build())
+   *           .build();
+   *   Space response = designCenterClient.createSpace(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 Space createSpace(CreateSpaceRequest request) { + return createSpaceCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a space. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   CreateSpaceRequest request =
+   *       CreateSpaceRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setSpaceId("spaceId-2012163903")
+   *           .setSpace(Space.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = designCenterClient.createSpaceCallable().futureCall(request);
+   *   // Do something.
+   *   Space response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createSpaceCallable() { + return stub.createSpaceCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a space. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   Space space = Space.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   Space response = designCenterClient.updateSpace(space, updateMask);
+   * }
+   * }
+ * + * @param space Required. The space to update. + * @param updateMask Optional. The fields to overwrite in the space update. If you don't provide a + * mask, all fields are overwritten. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Space updateSpace(Space space, FieldMask updateMask) { + UpdateSpaceRequest request = + UpdateSpaceRequest.newBuilder().setSpace(space).setUpdateMask(updateMask).build(); + return updateSpace(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a space. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   UpdateSpaceRequest request =
+   *       UpdateSpaceRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setSpace(Space.newBuilder().build())
+   *           .build();
+   *   Space response = designCenterClient.updateSpace(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 Space updateSpace(UpdateSpaceRequest request) { + return updateSpaceCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a space. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   UpdateSpaceRequest request =
+   *       UpdateSpaceRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setSpace(Space.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = designCenterClient.updateSpaceCallable().futureCall(request);
+   *   // Do something.
+   *   Space response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateSpaceCallable() { + return stub.updateSpaceCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a space. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   SpaceName name = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]");
+   *   designCenterClient.deleteSpace(name);
+   * }
+   * }
+ * + * @param name Required. The space name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteSpace(@Nullable SpaceName name) { + DeleteSpaceRequest request = + DeleteSpaceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + deleteSpace(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a space. + * + *

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   DeleteSpaceRequest request =
+   *       DeleteSpaceRequest.newBuilder()
+   *           .setName(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString())
+   *           .setForce(true)
+   *           .build();
+   *   designCenterClient.deleteSpace(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 deleteSpace(DeleteSpaceRequest request) { + deleteSpaceCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a space. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   DeleteSpaceRequest request =
+   *       DeleteSpaceRequest.newBuilder()
+   *           .setName(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString())
+   *           .setForce(true)
+   *           .build();
+   *   ApiFuture future = designCenterClient.deleteSpaceCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteSpaceCallable() { + return stub.deleteSpaceCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details about an application template. + * + *

Sample code: + * + *

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

Sample code: + * + *

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

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   GetApplicationTemplateRequest request =
+   *       GetApplicationTemplateRequest.newBuilder()
+   *           .setName(
+   *               ApplicationTemplateName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       designCenterClient.getApplicationTemplateCallable().futureCall(request);
+   *   // Do something.
+   *   ApplicationTemplate response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getApplicationTemplateCallable() { + return stub.getApplicationTemplateCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists application templates in a given space. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   SpaceName parent = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]");
+   *   for (ApplicationTemplate element :
+   *       designCenterClient.listApplicationTemplates(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent resource from which to list application templates. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListApplicationTemplatesPagedResponse listApplicationTemplates( + @Nullable SpaceName parent) { + ListApplicationTemplatesRequest request = + ListApplicationTemplatesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listApplicationTemplates(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists application templates in a given space. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   String parent = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString();
+   *   for (ApplicationTemplate element :
+   *       designCenterClient.listApplicationTemplates(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent resource from which to list application templates. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListApplicationTemplatesPagedResponse listApplicationTemplates(String parent) { + ListApplicationTemplatesRequest request = + ListApplicationTemplatesRequest.newBuilder().setParent(parent).build(); + return listApplicationTemplates(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists application templates in a given space. + * + *

Sample code: + * + *

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

Sample code: + * + *

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

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   SpaceName parent = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]");
+   *   ApplicationTemplate applicationTemplate = ApplicationTemplate.newBuilder().build();
+   *   String applicationTemplateId = "applicationTemplateId-1557848923";
+   *   ApplicationTemplate response =
+   *       designCenterClient.createApplicationTemplate(
+   *           parent, applicationTemplate, applicationTemplateId);
+   * }
+   * }
+ * + * @param parent Required. The parent resource in which to create the application template. + * @param applicationTemplate Required. The application template to create. + * @param applicationTemplateId Required. The ID of the application template to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ApplicationTemplate createApplicationTemplate( + @Nullable SpaceName parent, + ApplicationTemplate applicationTemplate, + String applicationTemplateId) { + CreateApplicationTemplateRequest request = + CreateApplicationTemplateRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setApplicationTemplate(applicationTemplate) + .setApplicationTemplateId(applicationTemplateId) + .build(); + return createApplicationTemplate(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an application template. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   String parent = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString();
+   *   ApplicationTemplate applicationTemplate = ApplicationTemplate.newBuilder().build();
+   *   String applicationTemplateId = "applicationTemplateId-1557848923";
+   *   ApplicationTemplate response =
+   *       designCenterClient.createApplicationTemplate(
+   *           parent, applicationTemplate, applicationTemplateId);
+   * }
+   * }
+ * + * @param parent Required. The parent resource in which to create the application template. + * @param applicationTemplate Required. The application template to create. + * @param applicationTemplateId Required. The ID of the application template to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ApplicationTemplate createApplicationTemplate( + String parent, ApplicationTemplate applicationTemplate, String applicationTemplateId) { + CreateApplicationTemplateRequest request = + CreateApplicationTemplateRequest.newBuilder() + .setParent(parent) + .setApplicationTemplate(applicationTemplate) + .setApplicationTemplateId(applicationTemplateId) + .build(); + return createApplicationTemplate(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an application template. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   CreateApplicationTemplateRequest request =
+   *       CreateApplicationTemplateRequest.newBuilder()
+   *           .setParent(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString())
+   *           .setApplicationTemplateId("applicationTemplateId-1557848923")
+   *           .setApplicationTemplate(ApplicationTemplate.newBuilder().build())
+   *           .build();
+   *   ApplicationTemplate response = designCenterClient.createApplicationTemplate(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 ApplicationTemplate createApplicationTemplate( + CreateApplicationTemplateRequest request) { + return createApplicationTemplateCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an application template. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   CreateApplicationTemplateRequest request =
+   *       CreateApplicationTemplateRequest.newBuilder()
+   *           .setParent(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString())
+   *           .setApplicationTemplateId("applicationTemplateId-1557848923")
+   *           .setApplicationTemplate(ApplicationTemplate.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       designCenterClient.createApplicationTemplateCallable().futureCall(request);
+   *   // Do something.
+   *   ApplicationTemplate response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + createApplicationTemplateCallable() { + return stub.createApplicationTemplateCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an application template. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   ApplicationTemplate applicationTemplate = ApplicationTemplate.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   ApplicationTemplate response =
+   *       designCenterClient.updateApplicationTemplate(applicationTemplate, updateMask);
+   * }
+   * }
+ * + * @param applicationTemplate Required. The application template to update. + * @param updateMask Optional. The fields to overwrite in the application template update. The + * fields specified in the update_mask are relative to the resource, not the full request. A + * field will be overwritten if it is in the mask. If you don't provide a mask, all fields are + * overwritten. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ApplicationTemplate updateApplicationTemplate( + ApplicationTemplate applicationTemplate, FieldMask updateMask) { + UpdateApplicationTemplateRequest request = + UpdateApplicationTemplateRequest.newBuilder() + .setApplicationTemplate(applicationTemplate) + .setUpdateMask(updateMask) + .build(); + return updateApplicationTemplate(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an application template. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   UpdateApplicationTemplateRequest request =
+   *       UpdateApplicationTemplateRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setApplicationTemplate(ApplicationTemplate.newBuilder().build())
+   *           .build();
+   *   ApplicationTemplate response = designCenterClient.updateApplicationTemplate(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 ApplicationTemplate updateApplicationTemplate( + UpdateApplicationTemplateRequest request) { + return updateApplicationTemplateCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an application template. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   UpdateApplicationTemplateRequest request =
+   *       UpdateApplicationTemplateRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setApplicationTemplate(ApplicationTemplate.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       designCenterClient.updateApplicationTemplateCallable().futureCall(request);
+   *   // Do something.
+   *   ApplicationTemplate response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + updateApplicationTemplateCallable() { + return stub.updateApplicationTemplateCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports to an existing application template from a given shared template. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   ApplicationTemplateName name =
+   *       ApplicationTemplateName.of(
+   *           "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]");
+   *   ApplicationTemplateRevisionName applicationTemplateRevisionUri =
+   *       ApplicationTemplateRevisionName.of(
+   *           "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[REVISION]");
+   *   ApplicationTemplate response =
+   *       designCenterClient.importApplicationTemplate(name, applicationTemplateRevisionUri);
+   * }
+   * }
+ * + * @param name Required. The name of the application template. + * @param applicationTemplateRevisionUri Optional. The source URI for application template + * revision. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ApplicationTemplate importApplicationTemplate( + @Nullable ApplicationTemplateName name, + @Nullable ApplicationTemplateRevisionName applicationTemplateRevisionUri) { + ImportApplicationTemplateRequest request = + ImportApplicationTemplateRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setApplicationTemplateRevisionUri( + applicationTemplateRevisionUri == null + ? null + : applicationTemplateRevisionUri.toString()) + .build(); + return importApplicationTemplate(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports to an existing application template from a given shared template. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   ApplicationTemplateName name =
+   *       ApplicationTemplateName.of(
+   *           "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]");
+   *   String applicationTemplateRevisionUri =
+   *       ApplicationTemplateRevisionName.of(
+   *               "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[REVISION]")
+   *           .toString();
+   *   ApplicationTemplate response =
+   *       designCenterClient.importApplicationTemplate(name, applicationTemplateRevisionUri);
+   * }
+   * }
+ * + * @param name Required. The name of the application template. + * @param applicationTemplateRevisionUri Optional. The source URI for application template + * revision. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ApplicationTemplate importApplicationTemplate( + @Nullable ApplicationTemplateName name, String applicationTemplateRevisionUri) { + ImportApplicationTemplateRequest request = + ImportApplicationTemplateRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setApplicationTemplateRevisionUri(applicationTemplateRevisionUri) + .build(); + return importApplicationTemplate(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports to an existing application template from a given shared template. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   String name =
+   *       ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
+   *           .toString();
+   *   ApplicationTemplateRevisionName applicationTemplateRevisionUri =
+   *       ApplicationTemplateRevisionName.of(
+   *           "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[REVISION]");
+   *   ApplicationTemplate response =
+   *       designCenterClient.importApplicationTemplate(name, applicationTemplateRevisionUri);
+   * }
+   * }
+ * + * @param name Required. The name of the application template. + * @param applicationTemplateRevisionUri Optional. The source URI for application template + * revision. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ApplicationTemplate importApplicationTemplate( + String name, @Nullable ApplicationTemplateRevisionName applicationTemplateRevisionUri) { + ImportApplicationTemplateRequest request = + ImportApplicationTemplateRequest.newBuilder() + .setName(name) + .setApplicationTemplateRevisionUri( + applicationTemplateRevisionUri == null + ? null + : applicationTemplateRevisionUri.toString()) + .build(); + return importApplicationTemplate(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports to an existing application template from a given shared template. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   String name =
+   *       ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
+   *           .toString();
+   *   String applicationTemplateRevisionUri =
+   *       ApplicationTemplateRevisionName.of(
+   *               "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[REVISION]")
+   *           .toString();
+   *   ApplicationTemplate response =
+   *       designCenterClient.importApplicationTemplate(name, applicationTemplateRevisionUri);
+   * }
+   * }
+ * + * @param name Required. The name of the application template. + * @param applicationTemplateRevisionUri Optional. The source URI for application template + * revision. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ApplicationTemplate importApplicationTemplate( + String name, String applicationTemplateRevisionUri) { + ImportApplicationTemplateRequest request = + ImportApplicationTemplateRequest.newBuilder() + .setName(name) + .setApplicationTemplateRevisionUri(applicationTemplateRevisionUri) + .build(); + return importApplicationTemplate(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports to an existing application template from a given shared template. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   ImportApplicationTemplateRequest request =
+   *       ImportApplicationTemplateRequest.newBuilder()
+   *           .setName(
+   *               ApplicationTemplateName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
+   *                   .toString())
+   *           .putAllAnnotations(new HashMap())
+   *           .build();
+   *   ApplicationTemplate response = designCenterClient.importApplicationTemplate(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 ApplicationTemplate importApplicationTemplate( + ImportApplicationTemplateRequest request) { + return importApplicationTemplateCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports to an existing application template from a given shared template. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   ImportApplicationTemplateRequest request =
+   *       ImportApplicationTemplateRequest.newBuilder()
+   *           .setName(
+   *               ApplicationTemplateName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
+   *                   .toString())
+   *           .putAllAnnotations(new HashMap())
+   *           .build();
+   *   ApiFuture future =
+   *       designCenterClient.importApplicationTemplateCallable().futureCall(request);
+   *   // Do something.
+   *   ApplicationTemplate response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + importApplicationTemplateCallable() { + return stub.importApplicationTemplateCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an application template. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   ApplicationTemplateName name =
+   *       ApplicationTemplateName.of(
+   *           "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]");
+   *   designCenterClient.deleteApplicationTemplate(name);
+   * }
+   * }
+ * + * @param name Required. The application template name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteApplicationTemplate(@Nullable ApplicationTemplateName name) { + DeleteApplicationTemplateRequest request = + DeleteApplicationTemplateRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + deleteApplicationTemplate(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an application template. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   String name =
+   *       ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
+   *           .toString();
+   *   designCenterClient.deleteApplicationTemplate(name);
+   * }
+   * }
+ * + * @param name Required. The application template name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteApplicationTemplate(String name) { + DeleteApplicationTemplateRequest request = + DeleteApplicationTemplateRequest.newBuilder().setName(name).build(); + deleteApplicationTemplate(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an application template. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   DeleteApplicationTemplateRequest request =
+   *       DeleteApplicationTemplateRequest.newBuilder()
+   *           .setName(
+   *               ApplicationTemplateName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
+   *                   .toString())
+   *           .setForce(true)
+   *           .build();
+   *   designCenterClient.deleteApplicationTemplate(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 deleteApplicationTemplate(DeleteApplicationTemplateRequest request) { + deleteApplicationTemplateCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an application template. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   DeleteApplicationTemplateRequest request =
+   *       DeleteApplicationTemplateRequest.newBuilder()
+   *           .setName(
+   *               ApplicationTemplateName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
+   *                   .toString())
+   *           .setForce(true)
+   *           .build();
+   *   ApiFuture future =
+   *       designCenterClient.deleteApplicationTemplateCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + deleteApplicationTemplateCallable() { + return stub.deleteApplicationTemplateCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Commits an application template to create 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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   ApplicationTemplateName name =
+   *       ApplicationTemplateName.of(
+   *           "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]");
+   *   ApplicationTemplateRevision response = designCenterClient.commitApplicationTemplate(name);
+   * }
+   * }
+ * + * @param name Required. The name of the application template. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ApplicationTemplateRevision commitApplicationTemplate( + @Nullable ApplicationTemplateName name) { + CommitApplicationTemplateRequest request = + CommitApplicationTemplateRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return commitApplicationTemplate(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Commits an application template to create 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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   String name =
+   *       ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
+   *           .toString();
+   *   ApplicationTemplateRevision response = designCenterClient.commitApplicationTemplate(name);
+   * }
+   * }
+ * + * @param name Required. The name of the application template. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ApplicationTemplateRevision commitApplicationTemplate(String name) { + CommitApplicationTemplateRequest request = + CommitApplicationTemplateRequest.newBuilder().setName(name).build(); + return commitApplicationTemplate(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Commits an application template to create 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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   CommitApplicationTemplateRequest request =
+   *       CommitApplicationTemplateRequest.newBuilder()
+   *           .setName(
+   *               ApplicationTemplateName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
+   *                   .toString())
+   *           .build();
+   *   ApplicationTemplateRevision response = designCenterClient.commitApplicationTemplate(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 ApplicationTemplateRevision commitApplicationTemplate( + CommitApplicationTemplateRequest request) { + return commitApplicationTemplateCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Commits an application template to create 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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   CommitApplicationTemplateRequest request =
+   *       CommitApplicationTemplateRequest.newBuilder()
+   *           .setName(
+   *               ApplicationTemplateName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       designCenterClient.commitApplicationTemplateCallable().futureCall(request);
+   *   // Do something.
+   *   ApplicationTemplateRevision response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + commitApplicationTemplateCallable() { + return stub.commitApplicationTemplateCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Snapshots an application template to create a new revision asynchronously. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   ApplicationTemplateName name =
+   *       ApplicationTemplateName.of(
+   *           "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]");
+   *   SnapshotApplicationTemplateResponse response =
+   *       designCenterClient.snapshotApplicationTemplateAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the application template. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + snapshotApplicationTemplateAsync(@Nullable ApplicationTemplateName name) { + SnapshotApplicationTemplateRequest request = + SnapshotApplicationTemplateRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return snapshotApplicationTemplateAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Snapshots an application template to create a new revision asynchronously. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   String name =
+   *       ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
+   *           .toString();
+   *   SnapshotApplicationTemplateResponse response =
+   *       designCenterClient.snapshotApplicationTemplateAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the application template. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + snapshotApplicationTemplateAsync(String name) { + SnapshotApplicationTemplateRequest request = + SnapshotApplicationTemplateRequest.newBuilder().setName(name).build(); + return snapshotApplicationTemplateAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Snapshots an application template to create a new revision asynchronously. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   SnapshotApplicationTemplateRequest request =
+   *       SnapshotApplicationTemplateRequest.newBuilder()
+   *           .setName(
+   *               ApplicationTemplateName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
+   *                   .toString())
+   *           .build();
+   *   SnapshotApplicationTemplateResponse response =
+   *       designCenterClient.snapshotApplicationTemplateAsync(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 + snapshotApplicationTemplateAsync(SnapshotApplicationTemplateRequest request) { + return snapshotApplicationTemplateOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Snapshots an application template to create a new revision asynchronously. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   SnapshotApplicationTemplateRequest request =
+   *       SnapshotApplicationTemplateRequest.newBuilder()
+   *           .setName(
+   *               ApplicationTemplateName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
+   *                   .toString())
+   *           .build();
+   *   OperationFuture future =
+   *       designCenterClient.snapshotApplicationTemplateOperationCallable().futureCall(request);
+   *   // Do something.
+   *   SnapshotApplicationTemplateResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + SnapshotApplicationTemplateRequest, + SnapshotApplicationTemplateResponse, + OperationMetadata> + snapshotApplicationTemplateOperationCallable() { + return stub.snapshotApplicationTemplateOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Snapshots an application template to create a new revision asynchronously. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   SnapshotApplicationTemplateRequest request =
+   *       SnapshotApplicationTemplateRequest.newBuilder()
+   *           .setName(
+   *               ApplicationTemplateName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       designCenterClient.snapshotApplicationTemplateCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + snapshotApplicationTemplateCallable() { + return stub.snapshotApplicationTemplateCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Generates Terraform files for an application template. This is a SYNCHRONOUS operation and + * returns the generated IaC directly in the response. It does NOT download external module + * sources; it only uses remote sources. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   ApplicationTemplateName name =
+   *       ApplicationTemplateName.of(
+   *           "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]");
+   *   GenerateApplicationTemplateIaCResponse response =
+   *       designCenterClient.generateApplicationTemplateIaC(name);
+   * }
+   * }
+ * + * @param name Required. The name of the application template. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final GenerateApplicationTemplateIaCResponse generateApplicationTemplateIaC( + @Nullable ApplicationTemplateName name) { + GenerateApplicationTemplateIaCRequest request = + GenerateApplicationTemplateIaCRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return generateApplicationTemplateIaC(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Generates Terraform files for an application template. This is a SYNCHRONOUS operation and + * returns the generated IaC directly in the response. It does NOT download external module + * sources; it only uses remote sources. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   String name =
+   *       ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
+   *           .toString();
+   *   GenerateApplicationTemplateIaCResponse response =
+   *       designCenterClient.generateApplicationTemplateIaC(name);
+   * }
+   * }
+ * + * @param name Required. The name of the application template. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final GenerateApplicationTemplateIaCResponse generateApplicationTemplateIaC(String name) { + GenerateApplicationTemplateIaCRequest request = + GenerateApplicationTemplateIaCRequest.newBuilder().setName(name).build(); + return generateApplicationTemplateIaC(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Generates Terraform files for an application template. This is a SYNCHRONOUS operation and + * returns the generated IaC directly in the response. It does NOT download external module + * sources; it only uses remote sources. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   GenerateApplicationTemplateIaCRequest request =
+   *       GenerateApplicationTemplateIaCRequest.newBuilder()
+   *           .setName(
+   *               ApplicationTemplateName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
+   *                   .toString())
+   *           .setGcsUri("gcsUri-1251224875")
+   *           .setArtifactLocation(ArtifactLocation.newBuilder().build())
+   *           .build();
+   *   GenerateApplicationTemplateIaCResponse response =
+   *       designCenterClient.generateApplicationTemplateIaC(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 GenerateApplicationTemplateIaCResponse generateApplicationTemplateIaC( + GenerateApplicationTemplateIaCRequest request) { + return generateApplicationTemplateIaCCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Generates Terraform files for an application template. This is a SYNCHRONOUS operation and + * returns the generated IaC directly in the response. It does NOT download external module + * sources; it only uses remote sources. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   GenerateApplicationTemplateIaCRequest request =
+   *       GenerateApplicationTemplateIaCRequest.newBuilder()
+   *           .setName(
+   *               ApplicationTemplateName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
+   *                   .toString())
+   *           .setGcsUri("gcsUri-1251224875")
+   *           .setArtifactLocation(ArtifactLocation.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       designCenterClient.generateApplicationTemplateIaCCallable().futureCall(request);
+   *   // Do something.
+   *   GenerateApplicationTemplateIaCResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable< + GenerateApplicationTemplateIaCRequest, GenerateApplicationTemplateIaCResponse> + generateApplicationTemplateIaCCallable() { + return stub.generateApplicationTemplateIaCCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Exports Terraform files for an application template. The generated modules can have remote + * sources or local sources downloaded from remote. This is an ASYNCHRONOUS operation that returns + * a Long Running Operation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   ApplicationTemplateName name =
+   *       ApplicationTemplateName.of(
+   *           "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]");
+   *   ExportApplicationTemplateIaCResponse response =
+   *       designCenterClient.exportApplicationTemplateIaCAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the application template. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + exportApplicationTemplateIaCAsync(@Nullable ApplicationTemplateName name) { + ExportApplicationTemplateIaCRequest request = + ExportApplicationTemplateIaCRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return exportApplicationTemplateIaCAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Exports Terraform files for an application template. The generated modules can have remote + * sources or local sources downloaded from remote. This is an ASYNCHRONOUS operation that returns + * a Long Running Operation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   String name =
+   *       ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
+   *           .toString();
+   *   ExportApplicationTemplateIaCResponse response =
+   *       designCenterClient.exportApplicationTemplateIaCAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the application template. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + exportApplicationTemplateIaCAsync(String name) { + ExportApplicationTemplateIaCRequest request = + ExportApplicationTemplateIaCRequest.newBuilder().setName(name).build(); + return exportApplicationTemplateIaCAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Exports Terraform files for an application template. The generated modules can have remote + * sources or local sources downloaded from remote. This is an ASYNCHRONOUS operation that returns + * a Long Running Operation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   ExportApplicationTemplateIaCRequest request =
+   *       ExportApplicationTemplateIaCRequest.newBuilder()
+   *           .setName(
+   *               ApplicationTemplateName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
+   *                   .toString())
+   *           .setArtifactLocation(ArtifactLocation.newBuilder().build())
+   *           .setExportIacConfig(ExportIaCConfig.newBuilder().build())
+   *           .build();
+   *   ExportApplicationTemplateIaCResponse response =
+   *       designCenterClient.exportApplicationTemplateIaCAsync(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 + exportApplicationTemplateIaCAsync(ExportApplicationTemplateIaCRequest request) { + return exportApplicationTemplateIaCOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Exports Terraform files for an application template. The generated modules can have remote + * sources or local sources downloaded from remote. This is an ASYNCHRONOUS operation that returns + * a Long Running Operation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   ExportApplicationTemplateIaCRequest request =
+   *       ExportApplicationTemplateIaCRequest.newBuilder()
+   *           .setName(
+   *               ApplicationTemplateName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
+   *                   .toString())
+   *           .setArtifactLocation(ArtifactLocation.newBuilder().build())
+   *           .setExportIacConfig(ExportIaCConfig.newBuilder().build())
+   *           .build();
+   *   OperationFuture future =
+   *       designCenterClient.exportApplicationTemplateIaCOperationCallable().futureCall(request);
+   *   // Do something.
+   *   ExportApplicationTemplateIaCResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + ExportApplicationTemplateIaCRequest, + ExportApplicationTemplateIaCResponse, + OperationMetadata> + exportApplicationTemplateIaCOperationCallable() { + return stub.exportApplicationTemplateIaCOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Exports Terraform files for an application template. The generated modules can have remote + * sources or local sources downloaded from remote. This is an ASYNCHRONOUS operation that returns + * a Long Running Operation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   ExportApplicationTemplateIaCRequest request =
+   *       ExportApplicationTemplateIaCRequest.newBuilder()
+   *           .setName(
+   *               ApplicationTemplateName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
+   *                   .toString())
+   *           .setArtifactLocation(ArtifactLocation.newBuilder().build())
+   *           .setExportIacConfig(ExportIaCConfig.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       designCenterClient.exportApplicationTemplateIaCCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + exportApplicationTemplateIaCCallable() { + return stub.exportApplicationTemplateIaCCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Generates Terraform files for an application template revision. This is a SYNCHRONOUS operation + * and returns the generated IaC directly in the response. It does NOT download external module + * sources; it only uses remote sources. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   ApplicationTemplateRevisionName name =
+   *       ApplicationTemplateRevisionName.of(
+   *           "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[REVISION]");
+   *   GenerateApplicationTemplateRevisionIaCResponse response =
+   *       designCenterClient.generateApplicationTemplateRevisionIaC(name);
+   * }
+   * }
+ * + * @param name Required. The name of the application template revision. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final GenerateApplicationTemplateRevisionIaCResponse + generateApplicationTemplateRevisionIaC(@Nullable ApplicationTemplateRevisionName name) { + GenerateApplicationTemplateRevisionIaCRequest request = + GenerateApplicationTemplateRevisionIaCRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return generateApplicationTemplateRevisionIaC(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Generates Terraform files for an application template revision. This is a SYNCHRONOUS operation + * and returns the generated IaC directly in the response. It does NOT download external module + * sources; it only uses remote sources. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   String name =
+   *       ApplicationTemplateRevisionName.of(
+   *               "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[REVISION]")
+   *           .toString();
+   *   GenerateApplicationTemplateRevisionIaCResponse response =
+   *       designCenterClient.generateApplicationTemplateRevisionIaC(name);
+   * }
+   * }
+ * + * @param name Required. The name of the application template revision. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final GenerateApplicationTemplateRevisionIaCResponse + generateApplicationTemplateRevisionIaC(String name) { + GenerateApplicationTemplateRevisionIaCRequest request = + GenerateApplicationTemplateRevisionIaCRequest.newBuilder().setName(name).build(); + return generateApplicationTemplateRevisionIaC(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Generates Terraform files for an application template revision. This is a SYNCHRONOUS operation + * and returns the generated IaC directly in the response. It does NOT download external module + * sources; it only uses remote sources. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   GenerateApplicationTemplateRevisionIaCRequest request =
+   *       GenerateApplicationTemplateRevisionIaCRequest.newBuilder()
+   *           .setName(
+   *               ApplicationTemplateRevisionName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[SPACE]",
+   *                       "[APPLICATION_TEMPLATE]",
+   *                       "[REVISION]")
+   *                   .toString())
+   *           .setArtifactLocation(ArtifactLocation.newBuilder().build())
+   *           .build();
+   *   GenerateApplicationTemplateRevisionIaCResponse response =
+   *       designCenterClient.generateApplicationTemplateRevisionIaC(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 GenerateApplicationTemplateRevisionIaCResponse + generateApplicationTemplateRevisionIaC( + GenerateApplicationTemplateRevisionIaCRequest request) { + return generateApplicationTemplateRevisionIaCCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Generates Terraform files for an application template revision. This is a SYNCHRONOUS operation + * and returns the generated IaC directly in the response. It does NOT download external module + * sources; it only uses remote sources. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   GenerateApplicationTemplateRevisionIaCRequest request =
+   *       GenerateApplicationTemplateRevisionIaCRequest.newBuilder()
+   *           .setName(
+   *               ApplicationTemplateRevisionName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[SPACE]",
+   *                       "[APPLICATION_TEMPLATE]",
+   *                       "[REVISION]")
+   *                   .toString())
+   *           .setArtifactLocation(ArtifactLocation.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       designCenterClient.generateApplicationTemplateRevisionIaCCallable().futureCall(request);
+   *   // Do something.
+   *   GenerateApplicationTemplateRevisionIaCResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable< + GenerateApplicationTemplateRevisionIaCRequest, + GenerateApplicationTemplateRevisionIaCResponse> + generateApplicationTemplateRevisionIaCCallable() { + return stub.generateApplicationTemplateRevisionIaCCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Exports Terraform files for an application template revision. The generated modules can have + * remote sources or local sources downloaded from remote. This is an ASYNCHRONOUS operation that + * returns a Long Running Operation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   ApplicationTemplateRevisionName name =
+   *       ApplicationTemplateRevisionName.of(
+   *           "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[REVISION]");
+   *   ExportApplicationTemplateRevisionIaCResponse response =
+   *       designCenterClient.exportApplicationTemplateRevisionIaCAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the application template revision. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + exportApplicationTemplateRevisionIaCAsync(@Nullable ApplicationTemplateRevisionName name) { + ExportApplicationTemplateRevisionIaCRequest request = + ExportApplicationTemplateRevisionIaCRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return exportApplicationTemplateRevisionIaCAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Exports Terraform files for an application template revision. The generated modules can have + * remote sources or local sources downloaded from remote. This is an ASYNCHRONOUS operation that + * returns a Long Running Operation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   String name =
+   *       ApplicationTemplateRevisionName.of(
+   *               "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[REVISION]")
+   *           .toString();
+   *   ExportApplicationTemplateRevisionIaCResponse response =
+   *       designCenterClient.exportApplicationTemplateRevisionIaCAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the application template revision. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + exportApplicationTemplateRevisionIaCAsync(String name) { + ExportApplicationTemplateRevisionIaCRequest request = + ExportApplicationTemplateRevisionIaCRequest.newBuilder().setName(name).build(); + return exportApplicationTemplateRevisionIaCAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Exports Terraform files for an application template revision. The generated modules can have + * remote sources or local sources downloaded from remote. This is an ASYNCHRONOUS operation that + * returns a Long Running Operation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   ExportApplicationTemplateRevisionIaCRequest request =
+   *       ExportApplicationTemplateRevisionIaCRequest.newBuilder()
+   *           .setName(
+   *               ApplicationTemplateRevisionName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[SPACE]",
+   *                       "[APPLICATION_TEMPLATE]",
+   *                       "[REVISION]")
+   *                   .toString())
+   *           .setArtifactLocation(ArtifactLocation.newBuilder().build())
+   *           .setExportIacConfig(ExportIaCConfig.newBuilder().build())
+   *           .build();
+   *   ExportApplicationTemplateRevisionIaCResponse response =
+   *       designCenterClient.exportApplicationTemplateRevisionIaCAsync(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 + exportApplicationTemplateRevisionIaCAsync( + ExportApplicationTemplateRevisionIaCRequest request) { + return exportApplicationTemplateRevisionIaCOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Exports Terraform files for an application template revision. The generated modules can have + * remote sources or local sources downloaded from remote. This is an ASYNCHRONOUS operation that + * returns a Long Running Operation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   ExportApplicationTemplateRevisionIaCRequest request =
+   *       ExportApplicationTemplateRevisionIaCRequest.newBuilder()
+   *           .setName(
+   *               ApplicationTemplateRevisionName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[SPACE]",
+   *                       "[APPLICATION_TEMPLATE]",
+   *                       "[REVISION]")
+   *                   .toString())
+   *           .setArtifactLocation(ArtifactLocation.newBuilder().build())
+   *           .setExportIacConfig(ExportIaCConfig.newBuilder().build())
+   *           .build();
+   *   OperationFuture future =
+   *       designCenterClient
+   *           .exportApplicationTemplateRevisionIaCOperationCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   ExportApplicationTemplateRevisionIaCResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + ExportApplicationTemplateRevisionIaCRequest, + ExportApplicationTemplateRevisionIaCResponse, + OperationMetadata> + exportApplicationTemplateRevisionIaCOperationCallable() { + return stub.exportApplicationTemplateRevisionIaCOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Exports Terraform files for an application template revision. The generated modules can have + * remote sources or local sources downloaded from remote. This is an ASYNCHRONOUS operation that + * returns a Long Running Operation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   ExportApplicationTemplateRevisionIaCRequest request =
+   *       ExportApplicationTemplateRevisionIaCRequest.newBuilder()
+   *           .setName(
+   *               ApplicationTemplateRevisionName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[SPACE]",
+   *                       "[APPLICATION_TEMPLATE]",
+   *                       "[REVISION]")
+   *                   .toString())
+   *           .setArtifactLocation(ArtifactLocation.newBuilder().build())
+   *           .setExportIacConfig(ExportIaCConfig.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       designCenterClient.exportApplicationTemplateRevisionIaCCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + exportApplicationTemplateRevisionIaCCallable() { + return stub.exportApplicationTemplateRevisionIaCCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details about a Component. + * + *

Sample code: + * + *

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

Sample code: + * + *

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

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   GetComponentRequest request =
+   *       GetComponentRequest.newBuilder()
+   *           .setName(
+   *               ComponentName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[SPACE]",
+   *                       "[APPLICATION_TEMPLATE]",
+   *                       "[COMPONENT]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future = designCenterClient.getComponentCallable().futureCall(request);
+   *   // Do something.
+   *   Component response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getComponentCallable() { + return stub.getComponentCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists components in an application template. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   ApplicationTemplateName parent =
+   *       ApplicationTemplateName.of(
+   *           "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]");
+   *   for (Component element : designCenterClient.listComponents(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent resource from which the list of components is requested. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListComponentsPagedResponse listComponents( + @Nullable ApplicationTemplateName parent) { + ListComponentsRequest request = + ListComponentsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listComponents(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists components in an application template. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   String parent =
+   *       ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
+   *           .toString();
+   *   for (Component element : designCenterClient.listComponents(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent resource from which the list of components is requested. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListComponentsPagedResponse listComponents(String parent) { + ListComponentsRequest request = ListComponentsRequest.newBuilder().setParent(parent).build(); + return listComponents(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists components in an application template. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   ListComponentsRequest request =
+   *       ListComponentsRequest.newBuilder()
+   *           .setParent(
+   *               ApplicationTemplateName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   for (Component element : designCenterClient.listComponents(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 ListComponentsPagedResponse listComponents(ListComponentsRequest request) { + return listComponentsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists components in an application template. + * + *

Sample code: + * + *

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

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   ApplicationTemplateName parent =
+   *       ApplicationTemplateName.of(
+   *           "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]");
+   *   Component component = Component.newBuilder().build();
+   *   String componentId = "componentId-985933064";
+   *   Component response = designCenterClient.createComponent(parent, component, componentId);
+   * }
+   * }
+ * + * @param parent Required. The parent resource in which to create the component. + * @param component Required. The component to create. + * @param componentId Required. The ID of the component to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Component createComponent( + @Nullable ApplicationTemplateName parent, Component component, String componentId) { + CreateComponentRequest request = + CreateComponentRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setComponent(component) + .setComponentId(componentId) + .build(); + return createComponent(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a component. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   String parent =
+   *       ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
+   *           .toString();
+   *   Component component = Component.newBuilder().build();
+   *   String componentId = "componentId-985933064";
+   *   Component response = designCenterClient.createComponent(parent, component, componentId);
+   * }
+   * }
+ * + * @param parent Required. The parent resource in which to create the component. + * @param component Required. The component to create. + * @param componentId Required. The ID of the component to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Component createComponent(String parent, Component component, String componentId) { + CreateComponentRequest request = + CreateComponentRequest.newBuilder() + .setParent(parent) + .setComponent(component) + .setComponentId(componentId) + .build(); + return createComponent(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a component. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   CreateComponentRequest request =
+   *       CreateComponentRequest.newBuilder()
+   *           .setParent(
+   *               ApplicationTemplateName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
+   *                   .toString())
+   *           .setComponentId("componentId-985933064")
+   *           .setComponent(Component.newBuilder().build())
+   *           .build();
+   *   Component response = designCenterClient.createComponent(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 Component createComponent(CreateComponentRequest request) { + return createComponentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a component. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   CreateComponentRequest request =
+   *       CreateComponentRequest.newBuilder()
+   *           .setParent(
+   *               ApplicationTemplateName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
+   *                   .toString())
+   *           .setComponentId("componentId-985933064")
+   *           .setComponent(Component.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       designCenterClient.createComponentCallable().futureCall(request);
+   *   // Do something.
+   *   Component response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createComponentCallable() { + return stub.createComponentCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a component. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   Component component = Component.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   Component response = designCenterClient.updateComponent(component, updateMask);
+   * }
+   * }
+ * + * @param component Required. The component to update. + * @param updateMask Optional. The fields to overwrite in the component update. If you don't + * provide a mask, all fields are overwritten. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Component updateComponent(Component component, FieldMask updateMask) { + UpdateComponentRequest request = + UpdateComponentRequest.newBuilder() + .setComponent(component) + .setUpdateMask(updateMask) + .build(); + return updateComponent(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a component. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   UpdateComponentRequest request =
+   *       UpdateComponentRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setComponent(Component.newBuilder().build())
+   *           .build();
+   *   Component response = designCenterClient.updateComponent(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 Component updateComponent(UpdateComponentRequest request) { + return updateComponentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a component. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   UpdateComponentRequest request =
+   *       UpdateComponentRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setComponent(Component.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       designCenterClient.updateComponentCallable().futureCall(request);
+   *   // Do something.
+   *   Component response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateComponentCallable() { + return stub.updateComponentCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a component. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   ComponentName name =
+   *       ComponentName.of(
+   *           "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[COMPONENT]");
+   *   designCenterClient.deleteComponent(name);
+   * }
+   * }
+ * + * @param name Required. The component name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteComponent(@Nullable ComponentName name) { + DeleteComponentRequest request = + DeleteComponentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + deleteComponent(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a component. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   String name =
+   *       ComponentName.of(
+   *               "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[COMPONENT]")
+   *           .toString();
+   *   designCenterClient.deleteComponent(name);
+   * }
+   * }
+ * + * @param name Required. The component name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteComponent(String name) { + DeleteComponentRequest request = DeleteComponentRequest.newBuilder().setName(name).build(); + deleteComponent(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a component. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   DeleteComponentRequest request =
+   *       DeleteComponentRequest.newBuilder()
+   *           .setName(
+   *               ComponentName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[SPACE]",
+   *                       "[APPLICATION_TEMPLATE]",
+   *                       "[COMPONENT]")
+   *                   .toString())
+   *           .setForce(true)
+   *           .build();
+   *   designCenterClient.deleteComponent(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 deleteComponent(DeleteComponentRequest request) { + deleteComponentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a component. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   DeleteComponentRequest request =
+   *       DeleteComponentRequest.newBuilder()
+   *           .setName(
+   *               ComponentName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[SPACE]",
+   *                       "[APPLICATION_TEMPLATE]",
+   *                       "[COMPONENT]")
+   *                   .toString())
+   *           .setForce(true)
+   *           .build();
+   *   ApiFuture future = designCenterClient.deleteComponentCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteComponentCallable() { + return stub.deleteComponentCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details about a connection. + * + *

Sample code: + * + *

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

Sample code: + * + *

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

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   GetConnectionRequest request =
+   *       GetConnectionRequest.newBuilder()
+   *           .setName(
+   *               ConnectionName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[SPACE]",
+   *                       "[APPLICATION_TEMPLATE]",
+   *                       "[COMPONENT]",
+   *                       "[CONNECTION]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future = designCenterClient.getConnectionCallable().futureCall(request);
+   *   // Do something.
+   *   Connection response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getConnectionCallable() { + return stub.getConnectionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists connections in an application template. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   ComponentName parent =
+   *       ComponentName.of(
+   *           "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[COMPONENT]");
+   *   for (Connection element : designCenterClient.listConnections(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent resource from which to request a list of connections. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListConnectionsPagedResponse listConnections(@Nullable ComponentName parent) { + ListConnectionsRequest request = + ListConnectionsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listConnections(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists connections in an application template. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   String parent =
+   *       ComponentName.of(
+   *               "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[COMPONENT]")
+   *           .toString();
+   *   for (Connection element : designCenterClient.listConnections(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent resource from which to request a list of connections. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListConnectionsPagedResponse listConnections(String parent) { + ListConnectionsRequest request = ListConnectionsRequest.newBuilder().setParent(parent).build(); + return listConnections(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists connections in an application template. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   ListConnectionsRequest request =
+   *       ListConnectionsRequest.newBuilder()
+   *           .setParent(
+   *               ComponentName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[SPACE]",
+   *                       "[APPLICATION_TEMPLATE]",
+   *                       "[COMPONENT]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   for (Connection element : designCenterClient.listConnections(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 ListConnectionsPagedResponse listConnections(ListConnectionsRequest request) { + return listConnectionsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists connections in an application template. + * + *

Sample code: + * + *

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

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   ComponentName parent =
+   *       ComponentName.of(
+   *           "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[COMPONENT]");
+   *   Connection connection = Connection.newBuilder().build();
+   *   String connectionId = "connectionId1923106969";
+   *   Connection response = designCenterClient.createConnection(parent, connection, connectionId);
+   * }
+   * }
+ * + * @param parent Required. The parent resource in which to create a connection. + * @param connection Required. The connection to create. + * @param connectionId Required. The ID of the connection to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Connection createConnection( + @Nullable ComponentName parent, Connection connection, String connectionId) { + CreateConnectionRequest request = + CreateConnectionRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setConnection(connection) + .setConnectionId(connectionId) + .build(); + return createConnection(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a connection. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   String parent =
+   *       ComponentName.of(
+   *               "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[COMPONENT]")
+   *           .toString();
+   *   Connection connection = Connection.newBuilder().build();
+   *   String connectionId = "connectionId1923106969";
+   *   Connection response = designCenterClient.createConnection(parent, connection, connectionId);
+   * }
+   * }
+ * + * @param parent Required. The parent resource in which to create a connection. + * @param connection Required. The connection to create. + * @param connectionId Required. The ID of the connection to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Connection createConnection( + String parent, Connection connection, String connectionId) { + CreateConnectionRequest request = + CreateConnectionRequest.newBuilder() + .setParent(parent) + .setConnection(connection) + .setConnectionId(connectionId) + .build(); + return createConnection(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a connection. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   CreateConnectionRequest request =
+   *       CreateConnectionRequest.newBuilder()
+   *           .setParent(
+   *               ComponentName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[SPACE]",
+   *                       "[APPLICATION_TEMPLATE]",
+   *                       "[COMPONENT]")
+   *                   .toString())
+   *           .setConnectionId("connectionId1923106969")
+   *           .setConnection(Connection.newBuilder().build())
+   *           .build();
+   *   Connection response = designCenterClient.createConnection(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 Connection createConnection(CreateConnectionRequest request) { + return createConnectionCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a connection. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   CreateConnectionRequest request =
+   *       CreateConnectionRequest.newBuilder()
+   *           .setParent(
+   *               ComponentName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[SPACE]",
+   *                       "[APPLICATION_TEMPLATE]",
+   *                       "[COMPONENT]")
+   *                   .toString())
+   *           .setConnectionId("connectionId1923106969")
+   *           .setConnection(Connection.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       designCenterClient.createConnectionCallable().futureCall(request);
+   *   // Do something.
+   *   Connection response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createConnectionCallable() { + return stub.createConnectionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a connection. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   Connection connection = Connection.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   Connection response = designCenterClient.updateConnection(connection, updateMask);
+   * }
+   * }
+ * + * @param connection Required. The connection to update. + * @param updateMask Optional. Fields to overwrite in the connection update. The fields specified + * in the update_mask are relative to the resource, not the full request. A field will be + * overwritten if it is in the mask. If you don't provide a mask, all fields are overwritten. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Connection updateConnection(Connection connection, FieldMask updateMask) { + UpdateConnectionRequest request = + UpdateConnectionRequest.newBuilder() + .setConnection(connection) + .setUpdateMask(updateMask) + .build(); + return updateConnection(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a connection. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   UpdateConnectionRequest request =
+   *       UpdateConnectionRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setConnection(Connection.newBuilder().build())
+   *           .build();
+   *   Connection response = designCenterClient.updateConnection(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 Connection updateConnection(UpdateConnectionRequest request) { + return updateConnectionCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a connection. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   UpdateConnectionRequest request =
+   *       UpdateConnectionRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setConnection(Connection.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       designCenterClient.updateConnectionCallable().futureCall(request);
+   *   // Do something.
+   *   Connection response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateConnectionCallable() { + return stub.updateConnectionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a connection. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   ConnectionName name =
+   *       ConnectionName.of(
+   *           "[PROJECT]",
+   *           "[LOCATION]",
+   *           "[SPACE]",
+   *           "[APPLICATION_TEMPLATE]",
+   *           "[COMPONENT]",
+   *           "[CONNECTION]");
+   *   designCenterClient.deleteConnection(name);
+   * }
+   * }
+ * + * @param name Required. The connection name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteConnection(@Nullable ConnectionName name) { + DeleteConnectionRequest request = + DeleteConnectionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + deleteConnection(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a connection. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   String name =
+   *       ConnectionName.of(
+   *               "[PROJECT]",
+   *               "[LOCATION]",
+   *               "[SPACE]",
+   *               "[APPLICATION_TEMPLATE]",
+   *               "[COMPONENT]",
+   *               "[CONNECTION]")
+   *           .toString();
+   *   designCenterClient.deleteConnection(name);
+   * }
+   * }
+ * + * @param name Required. The connection name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteConnection(String name) { + DeleteConnectionRequest request = DeleteConnectionRequest.newBuilder().setName(name).build(); + deleteConnection(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a connection. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   DeleteConnectionRequest request =
+   *       DeleteConnectionRequest.newBuilder()
+   *           .setName(
+   *               ConnectionName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[SPACE]",
+   *                       "[APPLICATION_TEMPLATE]",
+   *                       "[COMPONENT]",
+   *                       "[CONNECTION]")
+   *                   .toString())
+   *           .build();
+   *   designCenterClient.deleteConnection(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 deleteConnection(DeleteConnectionRequest request) { + deleteConnectionCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a connection. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   DeleteConnectionRequest request =
+   *       DeleteConnectionRequest.newBuilder()
+   *           .setName(
+   *               ConnectionName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[SPACE]",
+   *                       "[APPLICATION_TEMPLATE]",
+   *                       "[COMPONENT]",
+   *                       "[CONNECTION]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future = designCenterClient.deleteConnectionCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteConnectionCallable() { + return stub.deleteConnectionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details about an application template 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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   ApplicationTemplateRevisionName name =
+   *       ApplicationTemplateRevisionName.of(
+   *           "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[REVISION]");
+   *   ApplicationTemplateRevision response =
+   *       designCenterClient.getApplicationTemplateRevision(name);
+   * }
+   * }
+ * + * @param name Required. The application template revision name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ApplicationTemplateRevision getApplicationTemplateRevision( + @Nullable ApplicationTemplateRevisionName name) { + GetApplicationTemplateRevisionRequest request = + GetApplicationTemplateRevisionRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getApplicationTemplateRevision(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details about an application template 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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   String name =
+   *       ApplicationTemplateRevisionName.of(
+   *               "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[REVISION]")
+   *           .toString();
+   *   ApplicationTemplateRevision response =
+   *       designCenterClient.getApplicationTemplateRevision(name);
+   * }
+   * }
+ * + * @param name Required. The application template revision name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ApplicationTemplateRevision getApplicationTemplateRevision(String name) { + GetApplicationTemplateRevisionRequest request = + GetApplicationTemplateRevisionRequest.newBuilder().setName(name).build(); + return getApplicationTemplateRevision(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details about an application template 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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   GetApplicationTemplateRevisionRequest request =
+   *       GetApplicationTemplateRevisionRequest.newBuilder()
+   *           .setName(
+   *               ApplicationTemplateRevisionName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[SPACE]",
+   *                       "[APPLICATION_TEMPLATE]",
+   *                       "[REVISION]")
+   *                   .toString())
+   *           .build();
+   *   ApplicationTemplateRevision response =
+   *       designCenterClient.getApplicationTemplateRevision(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 ApplicationTemplateRevision getApplicationTemplateRevision( + GetApplicationTemplateRevisionRequest request) { + return getApplicationTemplateRevisionCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details about an application template 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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   GetApplicationTemplateRevisionRequest request =
+   *       GetApplicationTemplateRevisionRequest.newBuilder()
+   *           .setName(
+   *               ApplicationTemplateRevisionName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[SPACE]",
+   *                       "[APPLICATION_TEMPLATE]",
+   *                       "[REVISION]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       designCenterClient.getApplicationTemplateRevisionCallable().futureCall(request);
+   *   // Do something.
+   *   ApplicationTemplateRevision response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getApplicationTemplateRevisionCallable() { + return stub.getApplicationTemplateRevisionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists application template revisions in a given application template. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   ApplicationTemplateName parent =
+   *       ApplicationTemplateName.of(
+   *           "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]");
+   *   for (ApplicationTemplateRevision element :
+   *       designCenterClient.listApplicationTemplateRevisions(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent from which to list application template revisions. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListApplicationTemplateRevisionsPagedResponse listApplicationTemplateRevisions( + @Nullable ApplicationTemplateName parent) { + ListApplicationTemplateRevisionsRequest request = + ListApplicationTemplateRevisionsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listApplicationTemplateRevisions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists application template revisions in a given application template. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   String parent =
+   *       ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
+   *           .toString();
+   *   for (ApplicationTemplateRevision element :
+   *       designCenterClient.listApplicationTemplateRevisions(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent from which to list application template revisions. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListApplicationTemplateRevisionsPagedResponse listApplicationTemplateRevisions( + String parent) { + ListApplicationTemplateRevisionsRequest request = + ListApplicationTemplateRevisionsRequest.newBuilder().setParent(parent).build(); + return listApplicationTemplateRevisions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists application template revisions in a given application template. + * + *

Sample code: + * + *

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

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   ListApplicationTemplateRevisionsRequest request =
+   *       ListApplicationTemplateRevisionsRequest.newBuilder()
+   *           .setParent(
+   *               ApplicationTemplateName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   while (true) {
+   *     ListApplicationTemplateRevisionsResponse response =
+   *         designCenterClient.listApplicationTemplateRevisionsCallable().call(request);
+   *     for (ApplicationTemplateRevision element : response.getApplicationTemplateRevisionsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + ListApplicationTemplateRevisionsRequest, ListApplicationTemplateRevisionsResponse> + listApplicationTemplateRevisionsCallable() { + return stub.listApplicationTemplateRevisionsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an application template 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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   ApplicationTemplateRevisionName name =
+   *       ApplicationTemplateRevisionName.of(
+   *           "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[REVISION]");
+   *   designCenterClient.deleteApplicationTemplateRevision(name);
+   * }
+   * }
+ * + * @param name Required. The application template revision name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteApplicationTemplateRevision( + @Nullable ApplicationTemplateRevisionName name) { + DeleteApplicationTemplateRevisionRequest request = + DeleteApplicationTemplateRevisionRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + deleteApplicationTemplateRevision(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an application template 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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   String name =
+   *       ApplicationTemplateRevisionName.of(
+   *               "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[REVISION]")
+   *           .toString();
+   *   designCenterClient.deleteApplicationTemplateRevision(name);
+   * }
+   * }
+ * + * @param name Required. The application template revision name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteApplicationTemplateRevision(String name) { + DeleteApplicationTemplateRevisionRequest request = + DeleteApplicationTemplateRevisionRequest.newBuilder().setName(name).build(); + deleteApplicationTemplateRevision(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an application template 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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   DeleteApplicationTemplateRevisionRequest request =
+   *       DeleteApplicationTemplateRevisionRequest.newBuilder()
+   *           .setName(
+   *               ApplicationTemplateRevisionName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[SPACE]",
+   *                       "[APPLICATION_TEMPLATE]",
+   *                       "[REVISION]")
+   *                   .toString())
+   *           .build();
+   *   designCenterClient.deleteApplicationTemplateRevision(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 deleteApplicationTemplateRevision( + DeleteApplicationTemplateRevisionRequest request) { + deleteApplicationTemplateRevisionCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an application template 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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   DeleteApplicationTemplateRevisionRequest request =
+   *       DeleteApplicationTemplateRevisionRequest.newBuilder()
+   *           .setName(
+   *               ApplicationTemplateRevisionName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[SPACE]",
+   *                       "[APPLICATION_TEMPLATE]",
+   *                       "[REVISION]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       designCenterClient.deleteApplicationTemplateRevisionCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + deleteApplicationTemplateRevisionCallable() { + return stub.deleteApplicationTemplateRevisionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details about a catalog. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   CatalogName name = CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]");
+   *   Catalog response = designCenterClient.getCatalog(name);
+   * }
+   * }
+ * + * @param name Required. The catalog name in the following format: + * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Catalog getCatalog(@Nullable CatalogName name) { + GetCatalogRequest request = + GetCatalogRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getCatalog(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details about a catalog. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   String name = CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]").toString();
+   *   Catalog response = designCenterClient.getCatalog(name);
+   * }
+   * }
+ * + * @param name Required. The catalog name in the following format: + * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Catalog getCatalog(String name) { + GetCatalogRequest request = GetCatalogRequest.newBuilder().setName(name).build(); + return getCatalog(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details about a catalog. + * + *

Sample code: + * + *

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

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   SpaceName parent = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]");
+   *   for (Catalog element : designCenterClient.listCatalogs(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent space from which catalogs are listed. Format: + * `projects/$project/locations/$location/spaces/$space` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListCatalogsPagedResponse listCatalogs(@Nullable SpaceName parent) { + ListCatalogsRequest request = + ListCatalogsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listCatalogs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists catalogs in a given space. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   String parent = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString();
+   *   for (Catalog element : designCenterClient.listCatalogs(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent space from which catalogs are listed. Format: + * `projects/$project/locations/$location/spaces/$space` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListCatalogsPagedResponse listCatalogs(String parent) { + ListCatalogsRequest request = ListCatalogsRequest.newBuilder().setParent(parent).build(); + return listCatalogs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists catalogs in a given space. + * + *

Sample code: + * + *

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

Sample code: + * + *

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

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   SpaceName parent = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]");
+   *   Catalog catalog = Catalog.newBuilder().build();
+   *   String catalogId = "catalogId1455933204";
+   *   Catalog response = designCenterClient.createCatalog(parent, catalog, catalogId);
+   * }
+   * }
+ * + * @param parent Required. The parent space in which a catalog is created in the following format: + * `projects/$project/locations/$location/spaces/$space` + * @param catalog Required. The catalog to create. + * @param catalogId Required. The ID of the catalog to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Catalog createCatalog( + @Nullable SpaceName parent, Catalog catalog, String catalogId) { + CreateCatalogRequest request = + CreateCatalogRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setCatalog(catalog) + .setCatalogId(catalogId) + .build(); + return createCatalog(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a catalog. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   String parent = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString();
+   *   Catalog catalog = Catalog.newBuilder().build();
+   *   String catalogId = "catalogId1455933204";
+   *   Catalog response = designCenterClient.createCatalog(parent, catalog, catalogId);
+   * }
+   * }
+ * + * @param parent Required. The parent space in which a catalog is created in the following format: + * `projects/$project/locations/$location/spaces/$space` + * @param catalog Required. The catalog to create. + * @param catalogId Required. The ID of the catalog to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Catalog createCatalog(String parent, Catalog catalog, String catalogId) { + CreateCatalogRequest request = + CreateCatalogRequest.newBuilder() + .setParent(parent) + .setCatalog(catalog) + .setCatalogId(catalogId) + .build(); + return createCatalog(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a catalog. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   CreateCatalogRequest request =
+   *       CreateCatalogRequest.newBuilder()
+   *           .setParent(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString())
+   *           .setCatalogId("catalogId1455933204")
+   *           .setCatalog(Catalog.newBuilder().build())
+   *           .build();
+   *   Catalog response = designCenterClient.createCatalog(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 Catalog createCatalog(CreateCatalogRequest request) { + return createCatalogCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a catalog. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   CreateCatalogRequest request =
+   *       CreateCatalogRequest.newBuilder()
+   *           .setParent(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString())
+   *           .setCatalogId("catalogId1455933204")
+   *           .setCatalog(Catalog.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = designCenterClient.createCatalogCallable().futureCall(request);
+   *   // Do something.
+   *   Catalog response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createCatalogCallable() { + return stub.createCatalogCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a catalog. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   Catalog catalog = Catalog.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   Catalog response = designCenterClient.updateCatalog(catalog, updateMask);
+   * }
+   * }
+ * + * @param catalog Required. The catalog to update. + * @param updateMask Optional. The fields to overwrite in the catalog update. If you don't provide + * a mask, all fields are overwritten. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Catalog updateCatalog(Catalog catalog, FieldMask updateMask) { + UpdateCatalogRequest request = + UpdateCatalogRequest.newBuilder().setCatalog(catalog).setUpdateMask(updateMask).build(); + return updateCatalog(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a catalog. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   UpdateCatalogRequest request =
+   *       UpdateCatalogRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setCatalog(Catalog.newBuilder().build())
+   *           .build();
+   *   Catalog response = designCenterClient.updateCatalog(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 Catalog updateCatalog(UpdateCatalogRequest request) { + return updateCatalogCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a catalog. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   UpdateCatalogRequest request =
+   *       UpdateCatalogRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setCatalog(Catalog.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = designCenterClient.updateCatalogCallable().futureCall(request);
+   *   // Do something.
+   *   Catalog response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateCatalogCallable() { + return stub.updateCatalogCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a catalog. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   CatalogName name = CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]");
+   *   designCenterClient.deleteCatalogAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The catalog name in the following format: + * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteCatalogAsync( + @Nullable CatalogName name) { + DeleteCatalogRequest request = + DeleteCatalogRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return deleteCatalogAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a catalog. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   String name = CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]").toString();
+   *   designCenterClient.deleteCatalogAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The catalog name in the following format: + * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteCatalogAsync(String name) { + DeleteCatalogRequest request = DeleteCatalogRequest.newBuilder().setName(name).build(); + return deleteCatalogAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a catalog. + * + *

Sample code: + * + *

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

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   DeleteCatalogRequest request =
+   *       DeleteCatalogRequest.newBuilder()
+   *           .setName(CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]").toString())
+   *           .setForce(true)
+   *           .build();
+   *   ApiFuture future = designCenterClient.deleteCatalogCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteCatalogCallable() { + return stub.deleteCatalogCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Adds a template to a catalog. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   CatalogName parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]");
+   *   CatalogTemplate catalogTemplate = CatalogTemplate.newBuilder().build();
+   *   String catalogTemplateId = "catalogTemplateId-1740091346";
+   *   CatalogTemplate response =
+   *       designCenterClient.createCatalogTemplate(parent, catalogTemplate, catalogTemplateId);
+   * }
+   * }
+ * + * @param parent Required. The parent resource in which the catalog template is created. + * @param catalogTemplate Required. The catalog template to create. + * @param catalogTemplateId Required. The ID of the catalog template to create. The ID is appended + * to the catalog template's name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CatalogTemplate createCatalogTemplate( + @Nullable CatalogName parent, CatalogTemplate catalogTemplate, String catalogTemplateId) { + CreateCatalogTemplateRequest request = + CreateCatalogTemplateRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setCatalogTemplate(catalogTemplate) + .setCatalogTemplateId(catalogTemplateId) + .build(); + return createCatalogTemplate(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Adds a template to a catalog. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   String parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]").toString();
+   *   CatalogTemplate catalogTemplate = CatalogTemplate.newBuilder().build();
+   *   String catalogTemplateId = "catalogTemplateId-1740091346";
+   *   CatalogTemplate response =
+   *       designCenterClient.createCatalogTemplate(parent, catalogTemplate, catalogTemplateId);
+   * }
+   * }
+ * + * @param parent Required. The parent resource in which the catalog template is created. + * @param catalogTemplate Required. The catalog template to create. + * @param catalogTemplateId Required. The ID of the catalog template to create. The ID is appended + * to the catalog template's name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CatalogTemplate createCatalogTemplate( + String parent, CatalogTemplate catalogTemplate, String catalogTemplateId) { + CreateCatalogTemplateRequest request = + CreateCatalogTemplateRequest.newBuilder() + .setParent(parent) + .setCatalogTemplate(catalogTemplate) + .setCatalogTemplateId(catalogTemplateId) + .build(); + return createCatalogTemplate(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Adds a template to a catalog. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   CreateCatalogTemplateRequest request =
+   *       CreateCatalogTemplateRequest.newBuilder()
+   *           .setParent(
+   *               CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]").toString())
+   *           .setCatalogTemplateId("catalogTemplateId-1740091346")
+   *           .setCatalogTemplate(CatalogTemplate.newBuilder().build())
+   *           .build();
+   *   CatalogTemplate response = designCenterClient.createCatalogTemplate(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 CatalogTemplate createCatalogTemplate(CreateCatalogTemplateRequest request) { + return createCatalogTemplateCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Adds a template to a catalog. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   CreateCatalogTemplateRequest request =
+   *       CreateCatalogTemplateRequest.newBuilder()
+   *           .setParent(
+   *               CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]").toString())
+   *           .setCatalogTemplateId("catalogTemplateId-1740091346")
+   *           .setCatalogTemplate(CatalogTemplate.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       designCenterClient.createCatalogTemplateCallable().futureCall(request);
+   *   // Do something.
+   *   CatalogTemplate response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + createCatalogTemplateCallable() { + return stub.createCatalogTemplateCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a catalog template. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   CatalogTemplateName name =
+   *       CatalogTemplateName.of(
+   *           "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]");
+   *   CatalogTemplate response = designCenterClient.getCatalogTemplate(name);
+   * }
+   * }
+ * + * @param name Required. The catalog template name in the following format: + * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CatalogTemplate getCatalogTemplate(@Nullable CatalogTemplateName name) { + GetCatalogTemplateRequest request = + GetCatalogTemplateRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getCatalogTemplate(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a catalog template. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   String name =
+   *       CatalogTemplateName.of(
+   *               "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]")
+   *           .toString();
+   *   CatalogTemplate response = designCenterClient.getCatalogTemplate(name);
+   * }
+   * }
+ * + * @param name Required. The catalog template name in the following format: + * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CatalogTemplate getCatalogTemplate(String name) { + GetCatalogTemplateRequest request = + GetCatalogTemplateRequest.newBuilder().setName(name).build(); + return getCatalogTemplate(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a catalog template. + * + *

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   GetCatalogTemplateRequest request =
+   *       GetCatalogTemplateRequest.newBuilder()
+   *           .setName(
+   *               CatalogTemplateName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       designCenterClient.getCatalogTemplateCallable().futureCall(request);
+   *   // Do something.
+   *   CatalogTemplate response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getCatalogTemplateCallable() { + return stub.getCatalogTemplateCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists catalog templates. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   CatalogName parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]");
+   *   for (CatalogTemplate element : designCenterClient.listCatalogTemplates(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent from which the catalog templates are listed in the following + * format: `projects/$project/locations/$location/spaces/$space/catalogs/$catalog` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListCatalogTemplatesPagedResponse listCatalogTemplates( + @Nullable CatalogName parent) { + ListCatalogTemplatesRequest request = + ListCatalogTemplatesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listCatalogTemplates(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists catalog templates. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   String parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]").toString();
+   *   for (CatalogTemplate element : designCenterClient.listCatalogTemplates(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent from which the catalog templates are listed in the following + * format: `projects/$project/locations/$location/spaces/$space/catalogs/$catalog` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListCatalogTemplatesPagedResponse listCatalogTemplates(String parent) { + ListCatalogTemplatesRequest request = + ListCatalogTemplatesRequest.newBuilder().setParent(parent).build(); + return listCatalogTemplates(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists catalog templates. + * + *

Sample code: + * + *

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

Sample code: + * + *

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

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   CatalogTemplate catalogTemplate = CatalogTemplate.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   CatalogTemplate response =
+   *       designCenterClient.updateCatalogTemplate(catalogTemplate, updateMask);
+   * }
+   * }
+ * + * @param catalogTemplate Required. The catalog template to update. Format: + * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template` + * @param updateMask Optional. The fields to overwrite in the catalog template update. The fields + * specified in the update_mask are relative to the resource, not the full request. A field + * will be overwritten if it is in the mask. If you don't provide a mask, all fields are + * overwritten. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CatalogTemplate updateCatalogTemplate( + CatalogTemplate catalogTemplate, FieldMask updateMask) { + UpdateCatalogTemplateRequest request = + UpdateCatalogTemplateRequest.newBuilder() + .setCatalogTemplate(catalogTemplate) + .setUpdateMask(updateMask) + .build(); + return updateCatalogTemplate(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a catalog template resource. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   UpdateCatalogTemplateRequest request =
+   *       UpdateCatalogTemplateRequest.newBuilder()
+   *           .setCatalogTemplate(CatalogTemplate.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   CatalogTemplate response = designCenterClient.updateCatalogTemplate(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 CatalogTemplate updateCatalogTemplate(UpdateCatalogTemplateRequest request) { + return updateCatalogTemplateCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a catalog template resource. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   UpdateCatalogTemplateRequest request =
+   *       UpdateCatalogTemplateRequest.newBuilder()
+   *           .setCatalogTemplate(CatalogTemplate.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       designCenterClient.updateCatalogTemplateCallable().futureCall(request);
+   *   // Do something.
+   *   CatalogTemplate response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + updateCatalogTemplateCallable() { + return stub.updateCatalogTemplateCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a catalog template. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   CatalogTemplateName name =
+   *       CatalogTemplateName.of(
+   *           "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]");
+   *   designCenterClient.deleteCatalogTemplateAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The catalog template name. Format: + * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteCatalogTemplateAsync( + @Nullable CatalogTemplateName name) { + DeleteCatalogTemplateRequest request = + DeleteCatalogTemplateRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteCatalogTemplateAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a catalog template. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   String name =
+   *       CatalogTemplateName.of(
+   *               "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]")
+   *           .toString();
+   *   designCenterClient.deleteCatalogTemplateAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The catalog template name. Format: + * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteCatalogTemplateAsync(String name) { + DeleteCatalogTemplateRequest request = + DeleteCatalogTemplateRequest.newBuilder().setName(name).build(); + return deleteCatalogTemplateAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a catalog template. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   DeleteCatalogTemplateRequest request =
+   *       DeleteCatalogTemplateRequest.newBuilder()
+   *           .setName(
+   *               CatalogTemplateName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]")
+   *                   .toString())
+   *           .setForce(true)
+   *           .build();
+   *   designCenterClient.deleteCatalogTemplateAsync(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 deleteCatalogTemplateAsync( + DeleteCatalogTemplateRequest request) { + return deleteCatalogTemplateOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a catalog template. + * + *

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   DeleteCatalogTemplateRequest request =
+   *       DeleteCatalogTemplateRequest.newBuilder()
+   *           .setName(
+   *               CatalogTemplateName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]")
+   *                   .toString())
+   *           .setForce(true)
+   *           .build();
+   *   ApiFuture future =
+   *       designCenterClient.deleteCatalogTemplateCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + deleteCatalogTemplateCallable() { + return stub.deleteCatalogTemplateCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Shares a catalog from one space to another space. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   CatalogName parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]");
+   *   Share share = Share.newBuilder().build();
+   *   String shareId = "shareId2054217050";
+   *   Share response = designCenterClient.createShareAsync(parent, share, shareId).get();
+   * }
+   * }
+ * + * @param parent Required. The parent resource in which shares are created. + * @param share Required. The share to create. + * @param shareId Required. The ID of the share to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createShareAsync( + @Nullable CatalogName parent, Share share, String shareId) { + CreateShareRequest request = + CreateShareRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setShare(share) + .setShareId(shareId) + .build(); + return createShareAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Shares a catalog from one space to another space. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   String parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]").toString();
+   *   Share share = Share.newBuilder().build();
+   *   String shareId = "shareId2054217050";
+   *   Share response = designCenterClient.createShareAsync(parent, share, shareId).get();
+   * }
+   * }
+ * + * @param parent Required. The parent resource in which shares are created. + * @param share Required. The share to create. + * @param shareId Required. The ID of the share to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createShareAsync( + String parent, Share share, String shareId) { + CreateShareRequest request = + CreateShareRequest.newBuilder() + .setParent(parent) + .setShare(share) + .setShareId(shareId) + .build(); + return createShareAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Shares a catalog from one space to another space. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   CreateShareRequest request =
+   *       CreateShareRequest.newBuilder()
+   *           .setParent(
+   *               CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]").toString())
+   *           .setShareId("shareId2054217050")
+   *           .setShare(Share.newBuilder().build())
+   *           .build();
+   *   Share response = designCenterClient.createShareAsync(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 createShareAsync( + CreateShareRequest request) { + return createShareOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Shares a catalog from one space to another space. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   CreateShareRequest request =
+   *       CreateShareRequest.newBuilder()
+   *           .setParent(
+   *               CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]").toString())
+   *           .setShareId("shareId2054217050")
+   *           .setShare(Share.newBuilder().build())
+   *           .build();
+   *   OperationFuture future =
+   *       designCenterClient.createShareOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Share response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + createShareOperationCallable() { + return stub.createShareOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Shares a catalog from one space to another space. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   CreateShareRequest request =
+   *       CreateShareRequest.newBuilder()
+   *           .setParent(
+   *               CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]").toString())
+   *           .setShareId("shareId2054217050")
+   *           .setShare(Share.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = designCenterClient.createShareCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createShareCallable() { + return stub.createShareCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists catalog share objects for the space. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   CatalogName parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]");
+   *   for (Share element : designCenterClient.listShares(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent resource from which a list of shares is requested. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSharesPagedResponse listShares(@Nullable CatalogName parent) { + ListSharesRequest request = + ListSharesRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); + return listShares(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists catalog share objects for the space. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   String parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]").toString();
+   *   for (Share element : designCenterClient.listShares(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent resource from which a list of shares is requested. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSharesPagedResponse listShares(String parent) { + ListSharesRequest request = ListSharesRequest.newBuilder().setParent(parent).build(); + return listShares(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists catalog share objects for the space. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   ListSharesRequest request =
+   *       ListSharesRequest.newBuilder()
+   *           .setParent(
+   *               CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   for (Share element : designCenterClient.listShares(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 ListSharesPagedResponse listShares(ListSharesRequest request) { + return listSharesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists catalog share objects for the space. + * + *

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   ListSharesRequest request =
+   *       ListSharesRequest.newBuilder()
+   *           .setParent(
+   *               CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   while (true) {
+   *     ListSharesResponse response = designCenterClient.listSharesCallable().call(request);
+   *     for (Share element : response.getSharesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listSharesCallable() { + return stub.listSharesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get catalog share object for the space. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   ShareName name = ShareName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[SHARE]");
+   *   Share response = designCenterClient.getShare(name);
+   * }
+   * }
+ * + * @param name Required. The share name in the following format: + * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/shares/$share` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Share getShare(@Nullable ShareName name) { + GetShareRequest request = + GetShareRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getShare(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get catalog share object for the space. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   String name =
+   *       ShareName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[SHARE]").toString();
+   *   Share response = designCenterClient.getShare(name);
+   * }
+   * }
+ * + * @param name Required. The share name in the following format: + * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/shares/$share` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Share getShare(String name) { + GetShareRequest request = GetShareRequest.newBuilder().setName(name).build(); + return getShare(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get catalog share object for the space. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   GetShareRequest request =
+   *       GetShareRequest.newBuilder()
+   *           .setName(
+   *               ShareName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[SHARE]")
+   *                   .toString())
+   *           .build();
+   *   Share response = designCenterClient.getShare(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 Share getShare(GetShareRequest request) { + return getShareCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get catalog share object for the space. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   GetShareRequest request =
+   *       GetShareRequest.newBuilder()
+   *           .setName(
+   *               ShareName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[SHARE]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future = designCenterClient.getShareCallable().futureCall(request);
+   *   // Do something.
+   *   Share response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getShareCallable() { + return stub.getShareCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a catalog share. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   ShareName name = ShareName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[SHARE]");
+   *   designCenterClient.deleteShareAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The share name in the following format: + * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/shares/$share` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteShareAsync( + @Nullable ShareName name) { + DeleteShareRequest request = + DeleteShareRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return deleteShareAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a catalog share. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   String name =
+   *       ShareName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[SHARE]").toString();
+   *   designCenterClient.deleteShareAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The share name in the following format: + * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/shares/$share` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteShareAsync(String name) { + DeleteShareRequest request = DeleteShareRequest.newBuilder().setName(name).build(); + return deleteShareAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a catalog share. + * + *

Sample code: + * + *

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

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   DeleteShareRequest request =
+   *       DeleteShareRequest.newBuilder()
+   *           .setName(
+   *               ShareName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[SHARE]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future = designCenterClient.deleteShareCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteShareCallable() { + return stub.deleteShareCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Synchronizes a share and updates the destination workspace to reflect. reflect the most recent + * changes to the catalog. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   ShareName name = ShareName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[SHARE]");
+   *   Share response = designCenterClient.syncShareAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The share name in the following format: + * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/shares/$share` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture syncShareAsync(@Nullable ShareName name) { + SyncShareRequest request = + SyncShareRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return syncShareAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Synchronizes a share and updates the destination workspace to reflect. reflect the most recent + * changes to the catalog. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   String name =
+   *       ShareName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[SHARE]").toString();
+   *   Share response = designCenterClient.syncShareAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The share name in the following format: + * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/shares/$share` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture syncShareAsync(String name) { + SyncShareRequest request = SyncShareRequest.newBuilder().setName(name).build(); + return syncShareAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Synchronizes a share and updates the destination workspace to reflect. reflect the most recent + * changes to the catalog. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   SyncShareRequest request =
+   *       SyncShareRequest.newBuilder()
+   *           .setName(
+   *               ShareName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[SHARE]")
+   *                   .toString())
+   *           .build();
+   *   Share response = designCenterClient.syncShareAsync(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 syncShareAsync(SyncShareRequest request) { + return syncShareOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Synchronizes a share and updates the destination workspace to reflect. reflect the most recent + * changes to the catalog. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   SyncShareRequest request =
+   *       SyncShareRequest.newBuilder()
+   *           .setName(
+   *               ShareName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[SHARE]")
+   *                   .toString())
+   *           .build();
+   *   OperationFuture future =
+   *       designCenterClient.syncShareOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Share response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + syncShareOperationCallable() { + return stub.syncShareOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Synchronizes a share and updates the destination workspace to reflect. reflect the most recent + * changes to the catalog. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   SyncShareRequest request =
+   *       SyncShareRequest.newBuilder()
+   *           .setName(
+   *               ShareName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[SHARE]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future = designCenterClient.syncShareCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable syncShareCallable() { + return stub.syncShareCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details about a shared template. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   SharedTemplateName name =
+   *       SharedTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[SHARED_TEMPLATE]");
+   *   SharedTemplate response = designCenterClient.getSharedTemplate(name);
+   * }
+   * }
+ * + * @param name Required. The shared template name. Format: + * `projects/$project/locations/$location/spaces/$space/sharedTemplates/$sharedTemplate` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SharedTemplate getSharedTemplate(@Nullable SharedTemplateName name) { + GetSharedTemplateRequest request = + GetSharedTemplateRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getSharedTemplate(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details about a shared template. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   String name =
+   *       SharedTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[SHARED_TEMPLATE]")
+   *           .toString();
+   *   SharedTemplate response = designCenterClient.getSharedTemplate(name);
+   * }
+   * }
+ * + * @param name Required. The shared template name. Format: + * `projects/$project/locations/$location/spaces/$space/sharedTemplates/$sharedTemplate` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SharedTemplate getSharedTemplate(String name) { + GetSharedTemplateRequest request = GetSharedTemplateRequest.newBuilder().setName(name).build(); + return getSharedTemplate(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details about a shared template. + * + *

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   GetSharedTemplateRequest request =
+   *       GetSharedTemplateRequest.newBuilder()
+   *           .setName(
+   *               SharedTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[SHARED_TEMPLATE]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       designCenterClient.getSharedTemplateCallable().futureCall(request);
+   *   // Do something.
+   *   SharedTemplate response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getSharedTemplateCallable() { + return stub.getSharedTemplateCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists shared templates in a given space. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   SpaceName parent = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]");
+   *   for (SharedTemplate element : designCenterClient.listSharedTemplates(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent space for which shared templates are listed in the following + * format: `projects/$project/locations/$location/spaces/$space` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSharedTemplatesPagedResponse listSharedTemplates(@Nullable SpaceName parent) { + ListSharedTemplatesRequest request = + ListSharedTemplatesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listSharedTemplates(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists shared templates in a given space. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   String parent = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString();
+   *   for (SharedTemplate element : designCenterClient.listSharedTemplates(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent space for which shared templates are listed in the following + * format: `projects/$project/locations/$location/spaces/$space` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSharedTemplatesPagedResponse listSharedTemplates(String parent) { + ListSharedTemplatesRequest request = + ListSharedTemplatesRequest.newBuilder().setParent(parent).build(); + return listSharedTemplates(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists shared templates in a given space. + * + *

Sample code: + * + *

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

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   ListSharedTemplatesRequest request =
+   *       ListSharedTemplatesRequest.newBuilder()
+   *           .setParent(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   while (true) {
+   *     ListSharedTemplatesResponse response =
+   *         designCenterClient.listSharedTemplatesCallable().call(request);
+   *     for (SharedTemplate element : response.getSharedTemplatesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listSharedTemplatesCallable() { + return stub.listSharedTemplatesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details about a shared template 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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   SharedTemplateRevisionName name =
+   *       SharedTemplateRevisionName.of(
+   *           "[PROJECT]", "[LOCATION]", "[SPACE]", "[SHARED_TEMPLATE]", "[REVISION]");
+   *   SharedTemplateRevision response = designCenterClient.getSharedTemplateRevision(name);
+   * }
+   * }
+ * + * @param name Required. The shared template revision name, in the following format: + * `projects/$project/locations/$location/spaces/$space/sharedTemplates/$sharedTemplate/revisions/$revision` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SharedTemplateRevision getSharedTemplateRevision( + @Nullable SharedTemplateRevisionName name) { + GetSharedTemplateRevisionRequest request = + GetSharedTemplateRevisionRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getSharedTemplateRevision(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details about a shared template 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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   String name =
+   *       SharedTemplateRevisionName.of(
+   *               "[PROJECT]", "[LOCATION]", "[SPACE]", "[SHARED_TEMPLATE]", "[REVISION]")
+   *           .toString();
+   *   SharedTemplateRevision response = designCenterClient.getSharedTemplateRevision(name);
+   * }
+   * }
+ * + * @param name Required. The shared template revision name, in the following format: + * `projects/$project/locations/$location/spaces/$space/sharedTemplates/$sharedTemplate/revisions/$revision` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SharedTemplateRevision getSharedTemplateRevision(String name) { + GetSharedTemplateRevisionRequest request = + GetSharedTemplateRevisionRequest.newBuilder().setName(name).build(); + return getSharedTemplateRevision(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details about a shared template 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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   GetSharedTemplateRevisionRequest request =
+   *       GetSharedTemplateRevisionRequest.newBuilder()
+   *           .setName(
+   *               SharedTemplateRevisionName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[SHARED_TEMPLATE]", "[REVISION]")
+   *                   .toString())
+   *           .build();
+   *   SharedTemplateRevision response = designCenterClient.getSharedTemplateRevision(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 SharedTemplateRevision getSharedTemplateRevision( + GetSharedTemplateRevisionRequest request) { + return getSharedTemplateRevisionCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details about a shared template 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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   GetSharedTemplateRevisionRequest request =
+   *       GetSharedTemplateRevisionRequest.newBuilder()
+   *           .setName(
+   *               SharedTemplateRevisionName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[SHARED_TEMPLATE]", "[REVISION]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       designCenterClient.getSharedTemplateRevisionCallable().futureCall(request);
+   *   // Do something.
+   *   SharedTemplateRevision response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getSharedTemplateRevisionCallable() { + return stub.getSharedTemplateRevisionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists shared template revisions in a given space. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   SharedTemplateName parent =
+   *       SharedTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[SHARED_TEMPLATE]");
+   *   for (SharedTemplateRevision element :
+   *       designCenterClient.listSharedTemplateRevisions(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent resource from which to list shared template revisions, in + * the following format: + * `projects/$project/locations/$location/spaces/$space/sharedTemplates/$sharedTemplate` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSharedTemplateRevisionsPagedResponse listSharedTemplateRevisions( + @Nullable SharedTemplateName parent) { + ListSharedTemplateRevisionsRequest request = + ListSharedTemplateRevisionsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listSharedTemplateRevisions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists shared template revisions in a given space. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   String parent =
+   *       SharedTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[SHARED_TEMPLATE]")
+   *           .toString();
+   *   for (SharedTemplateRevision element :
+   *       designCenterClient.listSharedTemplateRevisions(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent resource from which to list shared template revisions, in + * the following format: + * `projects/$project/locations/$location/spaces/$space/sharedTemplates/$sharedTemplate` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSharedTemplateRevisionsPagedResponse listSharedTemplateRevisions(String parent) { + ListSharedTemplateRevisionsRequest request = + ListSharedTemplateRevisionsRequest.newBuilder().setParent(parent).build(); + return listSharedTemplateRevisions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists shared template revisions in a given space. + * + *

Sample code: + * + *

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

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   ListSharedTemplateRevisionsRequest request =
+   *       ListSharedTemplateRevisionsRequest.newBuilder()
+   *           .setParent(
+   *               SharedTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[SHARED_TEMPLATE]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   while (true) {
+   *     ListSharedTemplateRevisionsResponse response =
+   *         designCenterClient.listSharedTemplateRevisionsCallable().call(request);
+   *     for (SharedTemplateRevision element : response.getSharedTemplateRevisionsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + ListSharedTemplateRevisionsRequest, ListSharedTemplateRevisionsResponse> + listSharedTemplateRevisionsCallable() { + return stub.listSharedTemplateRevisionsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a template 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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   CatalogTemplateName parent =
+   *       CatalogTemplateName.of(
+   *           "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]");
+   *   CatalogTemplateRevision catalogTemplateRevision =
+   *       CatalogTemplateRevision.newBuilder().build();
+   *   String catalogTemplateRevisionId = "catalogTemplateRevisionId1620031081";
+   *   CatalogTemplateRevision response =
+   *       designCenterClient
+   *           .createCatalogTemplateRevisionAsync(
+   *               parent, catalogTemplateRevision, catalogTemplateRevisionId)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. The parent in which the catalog template revisions request is created + * in following format: + * `projects/$project/locations/$location/spaces/$space/templates/$template` + * @param catalogTemplateRevision Required. The template revision to create. + * @param catalogTemplateRevisionId Required. The ID of the template revision to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createCatalogTemplateRevisionAsync( + @Nullable CatalogTemplateName parent, + CatalogTemplateRevision catalogTemplateRevision, + String catalogTemplateRevisionId) { + CreateCatalogTemplateRevisionRequest request = + CreateCatalogTemplateRevisionRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setCatalogTemplateRevision(catalogTemplateRevision) + .setCatalogTemplateRevisionId(catalogTemplateRevisionId) + .build(); + return createCatalogTemplateRevisionAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a template 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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   String parent =
+   *       CatalogTemplateName.of(
+   *               "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]")
+   *           .toString();
+   *   CatalogTemplateRevision catalogTemplateRevision =
+   *       CatalogTemplateRevision.newBuilder().build();
+   *   String catalogTemplateRevisionId = "catalogTemplateRevisionId1620031081";
+   *   CatalogTemplateRevision response =
+   *       designCenterClient
+   *           .createCatalogTemplateRevisionAsync(
+   *               parent, catalogTemplateRevision, catalogTemplateRevisionId)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. The parent in which the catalog template revisions request is created + * in following format: + * `projects/$project/locations/$location/spaces/$space/templates/$template` + * @param catalogTemplateRevision Required. The template revision to create. + * @param catalogTemplateRevisionId Required. The ID of the template revision to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createCatalogTemplateRevisionAsync( + String parent, + CatalogTemplateRevision catalogTemplateRevision, + String catalogTemplateRevisionId) { + CreateCatalogTemplateRevisionRequest request = + CreateCatalogTemplateRevisionRequest.newBuilder() + .setParent(parent) + .setCatalogTemplateRevision(catalogTemplateRevision) + .setCatalogTemplateRevisionId(catalogTemplateRevisionId) + .build(); + return createCatalogTemplateRevisionAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a template 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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   CreateCatalogTemplateRevisionRequest request =
+   *       CreateCatalogTemplateRevisionRequest.newBuilder()
+   *           .setParent(
+   *               CatalogTemplateName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]")
+   *                   .toString())
+   *           .setCatalogTemplateRevisionId("catalogTemplateRevisionId1620031081")
+   *           .setCatalogTemplateRevision(CatalogTemplateRevision.newBuilder().build())
+   *           .build();
+   *   CatalogTemplateRevision response =
+   *       designCenterClient.createCatalogTemplateRevisionAsync(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 + createCatalogTemplateRevisionAsync(CreateCatalogTemplateRevisionRequest request) { + return createCatalogTemplateRevisionOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a template 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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   CreateCatalogTemplateRevisionRequest request =
+   *       CreateCatalogTemplateRevisionRequest.newBuilder()
+   *           .setParent(
+   *               CatalogTemplateName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]")
+   *                   .toString())
+   *           .setCatalogTemplateRevisionId("catalogTemplateRevisionId1620031081")
+   *           .setCatalogTemplateRevision(CatalogTemplateRevision.newBuilder().build())
+   *           .build();
+   *   OperationFuture future =
+   *       designCenterClient.createCatalogTemplateRevisionOperationCallable().futureCall(request);
+   *   // Do something.
+   *   CatalogTemplateRevision response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + CreateCatalogTemplateRevisionRequest, CatalogTemplateRevision, OperationMetadata> + createCatalogTemplateRevisionOperationCallable() { + return stub.createCatalogTemplateRevisionOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a template 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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   CreateCatalogTemplateRevisionRequest request =
+   *       CreateCatalogTemplateRevisionRequest.newBuilder()
+   *           .setParent(
+   *               CatalogTemplateName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]")
+   *                   .toString())
+   *           .setCatalogTemplateRevisionId("catalogTemplateRevisionId1620031081")
+   *           .setCatalogTemplateRevision(CatalogTemplateRevision.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       designCenterClient.createCatalogTemplateRevisionCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + createCatalogTemplateRevisionCallable() { + return stub.createCatalogTemplateRevisionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details about a template 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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   CatalogTemplateRevisionName name =
+   *       CatalogTemplateRevisionName.of(
+   *           "[PROJECT]",
+   *           "[LOCATION]",
+   *           "[SPACE]",
+   *           "[CATALOG]",
+   *           "[CATALOG_TEMPLATE]",
+   *           "[REVISION]");
+   *   CatalogTemplateRevision response = designCenterClient.getCatalogTemplateRevision(name);
+   * }
+   * }
+ * + * @param name Required. The catalog template revisions name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CatalogTemplateRevision getCatalogTemplateRevision( + @Nullable CatalogTemplateRevisionName name) { + GetCatalogTemplateRevisionRequest request = + GetCatalogTemplateRevisionRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getCatalogTemplateRevision(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details about a template 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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   String name =
+   *       CatalogTemplateRevisionName.of(
+   *               "[PROJECT]",
+   *               "[LOCATION]",
+   *               "[SPACE]",
+   *               "[CATALOG]",
+   *               "[CATALOG_TEMPLATE]",
+   *               "[REVISION]")
+   *           .toString();
+   *   CatalogTemplateRevision response = designCenterClient.getCatalogTemplateRevision(name);
+   * }
+   * }
+ * + * @param name Required. The catalog template revisions name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CatalogTemplateRevision getCatalogTemplateRevision(String name) { + GetCatalogTemplateRevisionRequest request = + GetCatalogTemplateRevisionRequest.newBuilder().setName(name).build(); + return getCatalogTemplateRevision(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details about a template 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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   GetCatalogTemplateRevisionRequest request =
+   *       GetCatalogTemplateRevisionRequest.newBuilder()
+   *           .setName(
+   *               CatalogTemplateRevisionName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[SPACE]",
+   *                       "[CATALOG]",
+   *                       "[CATALOG_TEMPLATE]",
+   *                       "[REVISION]")
+   *                   .toString())
+   *           .build();
+   *   CatalogTemplateRevision response = designCenterClient.getCatalogTemplateRevision(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 CatalogTemplateRevision getCatalogTemplateRevision( + GetCatalogTemplateRevisionRequest request) { + return getCatalogTemplateRevisionCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details about a template 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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   GetCatalogTemplateRevisionRequest request =
+   *       GetCatalogTemplateRevisionRequest.newBuilder()
+   *           .setName(
+   *               CatalogTemplateRevisionName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[SPACE]",
+   *                       "[CATALOG]",
+   *                       "[CATALOG_TEMPLATE]",
+   *                       "[REVISION]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       designCenterClient.getCatalogTemplateRevisionCallable().futureCall(request);
+   *   // Do something.
+   *   CatalogTemplateRevision response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getCatalogTemplateRevisionCallable() { + return stub.getCatalogTemplateRevisionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists template 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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   CatalogTemplateName parent =
+   *       CatalogTemplateName.of(
+   *           "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]");
+   *   for (CatalogTemplateRevision element :
+   *       designCenterClient.listCatalogTemplateRevisions(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent resource from which a list of catalog template revisions is + * requested. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListCatalogTemplateRevisionsPagedResponse listCatalogTemplateRevisions( + @Nullable CatalogTemplateName parent) { + ListCatalogTemplateRevisionsRequest request = + ListCatalogTemplateRevisionsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listCatalogTemplateRevisions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists template 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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   String parent =
+   *       CatalogTemplateName.of(
+   *               "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]")
+   *           .toString();
+   *   for (CatalogTemplateRevision element :
+   *       designCenterClient.listCatalogTemplateRevisions(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent resource from which a list of catalog template revisions is + * requested. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListCatalogTemplateRevisionsPagedResponse listCatalogTemplateRevisions( + String parent) { + ListCatalogTemplateRevisionsRequest request = + ListCatalogTemplateRevisionsRequest.newBuilder().setParent(parent).build(); + return listCatalogTemplateRevisions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists template 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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   ListCatalogTemplateRevisionsRequest request =
+   *       ListCatalogTemplateRevisionsRequest.newBuilder()
+   *           .setParent(
+   *               CatalogTemplateName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   for (CatalogTemplateRevision element :
+   *       designCenterClient.listCatalogTemplateRevisions(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 ListCatalogTemplateRevisionsPagedResponse listCatalogTemplateRevisions( + ListCatalogTemplateRevisionsRequest request) { + return listCatalogTemplateRevisionsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists template 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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   ListCatalogTemplateRevisionsRequest request =
+   *       ListCatalogTemplateRevisionsRequest.newBuilder()
+   *           .setParent(
+   *               CatalogTemplateName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   ApiFuture future =
+   *       designCenterClient.listCatalogTemplateRevisionsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (CatalogTemplateRevision element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + ListCatalogTemplateRevisionsRequest, ListCatalogTemplateRevisionsPagedResponse> + listCatalogTemplateRevisionsPagedCallable() { + return stub.listCatalogTemplateRevisionsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists template 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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   ListCatalogTemplateRevisionsRequest request =
+   *       ListCatalogTemplateRevisionsRequest.newBuilder()
+   *           .setParent(
+   *               CatalogTemplateName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   while (true) {
+   *     ListCatalogTemplateRevisionsResponse response =
+   *         designCenterClient.listCatalogTemplateRevisionsCallable().call(request);
+   *     for (CatalogTemplateRevision element : response.getCatalogTemplateRevisionsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + ListCatalogTemplateRevisionsRequest, ListCatalogTemplateRevisionsResponse> + listCatalogTemplateRevisionsCallable() { + return stub.listCatalogTemplateRevisionsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a template 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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   CatalogTemplateRevisionName name =
+   *       CatalogTemplateRevisionName.of(
+   *           "[PROJECT]",
+   *           "[LOCATION]",
+   *           "[SPACE]",
+   *           "[CATALOG]",
+   *           "[CATALOG_TEMPLATE]",
+   *           "[REVISION]");
+   *   designCenterClient.deleteCatalogTemplateRevisionAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The template revision name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteCatalogTemplateRevisionAsync( + @Nullable CatalogTemplateRevisionName name) { + DeleteCatalogTemplateRevisionRequest request = + DeleteCatalogTemplateRevisionRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteCatalogTemplateRevisionAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a template 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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   String name =
+   *       CatalogTemplateRevisionName.of(
+   *               "[PROJECT]",
+   *               "[LOCATION]",
+   *               "[SPACE]",
+   *               "[CATALOG]",
+   *               "[CATALOG_TEMPLATE]",
+   *               "[REVISION]")
+   *           .toString();
+   *   designCenterClient.deleteCatalogTemplateRevisionAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The template revision name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteCatalogTemplateRevisionAsync( + String name) { + DeleteCatalogTemplateRevisionRequest request = + DeleteCatalogTemplateRevisionRequest.newBuilder().setName(name).build(); + return deleteCatalogTemplateRevisionAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a template 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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   DeleteCatalogTemplateRevisionRequest request =
+   *       DeleteCatalogTemplateRevisionRequest.newBuilder()
+   *           .setName(
+   *               CatalogTemplateRevisionName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[SPACE]",
+   *                       "[CATALOG]",
+   *                       "[CATALOG_TEMPLATE]",
+   *                       "[REVISION]")
+   *                   .toString())
+   *           .build();
+   *   designCenterClient.deleteCatalogTemplateRevisionAsync(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 deleteCatalogTemplateRevisionAsync( + DeleteCatalogTemplateRevisionRequest request) { + return deleteCatalogTemplateRevisionOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a template 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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   DeleteCatalogTemplateRevisionRequest request =
+   *       DeleteCatalogTemplateRevisionRequest.newBuilder()
+   *           .setName(
+   *               CatalogTemplateRevisionName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[SPACE]",
+   *                       "[CATALOG]",
+   *                       "[CATALOG_TEMPLATE]",
+   *                       "[REVISION]")
+   *                   .toString())
+   *           .build();
+   *   OperationFuture future =
+   *       designCenterClient.deleteCatalogTemplateRevisionOperationCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deleteCatalogTemplateRevisionOperationCallable() { + return stub.deleteCatalogTemplateRevisionOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a template 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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   DeleteCatalogTemplateRevisionRequest request =
+   *       DeleteCatalogTemplateRevisionRequest.newBuilder()
+   *           .setName(
+   *               CatalogTemplateRevisionName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[SPACE]",
+   *                       "[CATALOG]",
+   *                       "[CATALOG_TEMPLATE]",
+   *                       "[REVISION]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       designCenterClient.deleteCatalogTemplateRevisionCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + deleteCatalogTemplateRevisionCallable() { + return stub.deleteCatalogTemplateRevisionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an application. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   SpaceName parent = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]");
+   *   Application application = Application.newBuilder().build();
+   *   String applicationId = "applicationId-1011352949";
+   *   Application response =
+   *       designCenterClient.createApplication(parent, application, applicationId);
+   * }
+   * }
+ * + * @param parent Required. The parent resource in which to create the application. Format: + * `projects/$project/locations/$location/spaces/$space` + * @param application Required. The application to create. + * @param applicationId Required. The ID of the application to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Application createApplication( + @Nullable SpaceName parent, Application application, String applicationId) { + CreateApplicationRequest request = + CreateApplicationRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setApplication(application) + .setApplicationId(applicationId) + .build(); + return createApplication(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an application. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   String parent = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString();
+   *   Application application = Application.newBuilder().build();
+   *   String applicationId = "applicationId-1011352949";
+   *   Application response =
+   *       designCenterClient.createApplication(parent, application, applicationId);
+   * }
+   * }
+ * + * @param parent Required. The parent resource in which to create the application. Format: + * `projects/$project/locations/$location/spaces/$space` + * @param application Required. The application to create. + * @param applicationId Required. The ID of the application to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Application createApplication( + String parent, Application application, String applicationId) { + CreateApplicationRequest request = + CreateApplicationRequest.newBuilder() + .setParent(parent) + .setApplication(application) + .setApplicationId(applicationId) + .build(); + return createApplication(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an application. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   CreateApplicationRequest request =
+   *       CreateApplicationRequest.newBuilder()
+   *           .setParent(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString())
+   *           .setApplicationId("applicationId-1011352949")
+   *           .setApplication(Application.newBuilder().build())
+   *           .build();
+   *   Application response = designCenterClient.createApplication(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 Application createApplication(CreateApplicationRequest request) { + return createApplicationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an application. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   CreateApplicationRequest request =
+   *       CreateApplicationRequest.newBuilder()
+   *           .setParent(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString())
+   *           .setApplicationId("applicationId-1011352949")
+   *           .setApplication(Application.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       designCenterClient.createApplicationCallable().futureCall(request);
+   *   // Do something.
+   *   Application response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createApplicationCallable() { + return stub.createApplicationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details about an application. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   ApplicationName name =
+   *       ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]");
+   *   Application response = designCenterClient.getApplication(name);
+   * }
+   * }
+ * + * @param name Required. The application name. Format: + * `projects/$project/locations/$location/spaces/$space/applications/$application` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Application getApplication(@Nullable ApplicationName name) { + GetApplicationRequest request = + GetApplicationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getApplication(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details about an application. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   String name =
+   *       ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]").toString();
+   *   Application response = designCenterClient.getApplication(name);
+   * }
+   * }
+ * + * @param name Required. The application name. Format: + * `projects/$project/locations/$location/spaces/$space/applications/$application` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Application getApplication(String name) { + GetApplicationRequest request = GetApplicationRequest.newBuilder().setName(name).build(); + return getApplication(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details about an application. + * + *

Sample code: + * + *

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

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   SpaceName parent = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]");
+   *   for (Application element : designCenterClient.listApplications(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent resource from which to request a list of applications. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListApplicationsPagedResponse listApplications(@Nullable SpaceName parent) { + ListApplicationsRequest request = + ListApplicationsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listApplications(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists applications in a given space. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   String parent = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString();
+   *   for (Application element : designCenterClient.listApplications(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent resource from which to request a list of applications. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListApplicationsPagedResponse listApplications(String parent) { + ListApplicationsRequest request = + ListApplicationsRequest.newBuilder().setParent(parent).build(); + return listApplications(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists applications in a given space. + * + *

Sample code: + * + *

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

Sample code: + * + *

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

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   Application application = Application.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   Application response = designCenterClient.updateApplication(application, updateMask);
+   * }
+   * }
+ * + * @param application Required. The application to update. + * @param updateMask Optional. The fields to overwrite in the application update. If you don't + * provide a mask, all fields are overwritten. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Application updateApplication(Application application, FieldMask updateMask) { + UpdateApplicationRequest request = + UpdateApplicationRequest.newBuilder() + .setApplication(application) + .setUpdateMask(updateMask) + .build(); + return updateApplication(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an application. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   UpdateApplicationRequest request =
+   *       UpdateApplicationRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setApplication(Application.newBuilder().build())
+   *           .build();
+   *   Application response = designCenterClient.updateApplication(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 Application updateApplication(UpdateApplicationRequest request) { + return updateApplicationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an application. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   UpdateApplicationRequest request =
+   *       UpdateApplicationRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setApplication(Application.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       designCenterClient.updateApplicationCallable().futureCall(request);
+   *   // Do something.
+   *   Application response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateApplicationCallable() { + return stub.updateApplicationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an application. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   ApplicationName name =
+   *       ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]");
+   *   designCenterClient.deleteApplicationAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The application name. Format: + * `projects/$project/locations/$location/spaces/$space/applications/$application` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteApplicationAsync( + @Nullable ApplicationName name) { + DeleteApplicationRequest request = + DeleteApplicationRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteApplicationAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an application. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   String name =
+   *       ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]").toString();
+   *   designCenterClient.deleteApplicationAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The application name. Format: + * `projects/$project/locations/$location/spaces/$space/applications/$application` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteApplicationAsync(String name) { + DeleteApplicationRequest request = DeleteApplicationRequest.newBuilder().setName(name).build(); + return deleteApplicationAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an application. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   DeleteApplicationRequest request =
+   *       DeleteApplicationRequest.newBuilder()
+   *           .setName(
+   *               ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]")
+   *                   .toString())
+   *           .setForce(true)
+   *           .build();
+   *   designCenterClient.deleteApplicationAsync(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 deleteApplicationAsync( + DeleteApplicationRequest request) { + return deleteApplicationOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an application. + * + *

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   DeleteApplicationRequest request =
+   *       DeleteApplicationRequest.newBuilder()
+   *           .setName(
+   *               ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]")
+   *                   .toString())
+   *           .setForce(true)
+   *           .build();
+   *   ApiFuture future =
+   *       designCenterClient.deleteApplicationCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteApplicationCallable() { + return stub.deleteApplicationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deploys an application. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   ApplicationName name =
+   *       ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]");
+   *   DeployApplicationResponse response = designCenterClient.deployApplicationAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The application name. Format: + * `projects/$project/locations/$location/spaces/$space/applications/$application` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deployApplicationAsync( + @Nullable ApplicationName name) { + DeployApplicationRequest request = + DeployApplicationRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deployApplicationAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deploys an application. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   String name =
+   *       ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]").toString();
+   *   DeployApplicationResponse response = designCenterClient.deployApplicationAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The application name. Format: + * `projects/$project/locations/$location/spaces/$space/applications/$application` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deployApplicationAsync( + String name) { + DeployApplicationRequest request = DeployApplicationRequest.newBuilder().setName(name).build(); + return deployApplicationAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deploys an application. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   DeployApplicationRequest request =
+   *       DeployApplicationRequest.newBuilder()
+   *           .setName(
+   *               ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]")
+   *                   .toString())
+   *           .setReplace(true)
+   *           .setWorkerPool("workerPool-384405318")
+   *           .setServiceAccount("serviceAccount1079137720")
+   *           .setValidateOnly(true)
+   *           .build();
+   *   DeployApplicationResponse response = designCenterClient.deployApplicationAsync(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 deployApplicationAsync( + DeployApplicationRequest request) { + return deployApplicationOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deploys an application. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   DeployApplicationRequest request =
+   *       DeployApplicationRequest.newBuilder()
+   *           .setName(
+   *               ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]")
+   *                   .toString())
+   *           .setReplace(true)
+   *           .setWorkerPool("workerPool-384405318")
+   *           .setServiceAccount("serviceAccount1079137720")
+   *           .setValidateOnly(true)
+   *           .build();
+   *   OperationFuture future =
+   *       designCenterClient.deployApplicationOperationCallable().futureCall(request);
+   *   // Do something.
+   *   DeployApplicationResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + DeployApplicationRequest, DeployApplicationResponse, OperationMetadata> + deployApplicationOperationCallable() { + return stub.deployApplicationOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deploys an application. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   DeployApplicationRequest request =
+   *       DeployApplicationRequest.newBuilder()
+   *           .setName(
+   *               ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]")
+   *                   .toString())
+   *           .setReplace(true)
+   *           .setWorkerPool("workerPool-384405318")
+   *           .setServiceAccount("serviceAccount1079137720")
+   *           .setValidateOnly(true)
+   *           .build();
+   *   ApiFuture future =
+   *       designCenterClient.deployApplicationCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deployApplicationCallable() { + return stub.deployApplicationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Previews deployment of an application. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   ApplicationName name =
+   *       ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]");
+   *   PreviewApplicationResponse response = designCenterClient.previewApplicationAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The application name in the following format: + * `projects/$project/locations/$location/spaces/$space/applications/$application` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + previewApplicationAsync(@Nullable ApplicationName name) { + PreviewApplicationRequest request = + PreviewApplicationRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return previewApplicationAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Previews deployment of an application. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   String name =
+   *       ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]").toString();
+   *   PreviewApplicationResponse response = designCenterClient.previewApplicationAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The application name in the following format: + * `projects/$project/locations/$location/spaces/$space/applications/$application` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + previewApplicationAsync(String name) { + PreviewApplicationRequest request = + PreviewApplicationRequest.newBuilder().setName(name).build(); + return previewApplicationAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Previews deployment of an application. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   PreviewApplicationRequest request =
+   *       PreviewApplicationRequest.newBuilder()
+   *           .setName(
+   *               ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]")
+   *                   .toString())
+   *           .setWorkerPool("workerPool-384405318")
+   *           .setServiceAccount("serviceAccount1079137720")
+   *           .build();
+   *   PreviewApplicationResponse response =
+   *       designCenterClient.previewApplicationAsync(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 + previewApplicationAsync(PreviewApplicationRequest request) { + return previewApplicationOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Previews deployment of an application. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   PreviewApplicationRequest request =
+   *       PreviewApplicationRequest.newBuilder()
+   *           .setName(
+   *               ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]")
+   *                   .toString())
+   *           .setWorkerPool("workerPool-384405318")
+   *           .setServiceAccount("serviceAccount1079137720")
+   *           .build();
+   *   OperationFuture future =
+   *       designCenterClient.previewApplicationOperationCallable().futureCall(request);
+   *   // Do something.
+   *   PreviewApplicationResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + PreviewApplicationRequest, PreviewApplicationResponse, OperationMetadata> + previewApplicationOperationCallable() { + return stub.previewApplicationOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Previews deployment of an application. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   PreviewApplicationRequest request =
+   *       PreviewApplicationRequest.newBuilder()
+   *           .setName(
+   *               ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]")
+   *                   .toString())
+   *           .setWorkerPool("workerPool-384405318")
+   *           .setServiceAccount("serviceAccount1079137720")
+   *           .build();
+   *   ApiFuture future =
+   *       designCenterClient.previewApplicationCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable previewApplicationCallable() { + return stub.previewApplicationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetches the assessment report of a deployed application if present. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   ApplicationName name =
+   *       ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]");
+   *   FetchApplicationAssessmentReportResponse response =
+   *       designCenterClient.fetchApplicationAssessmentReport(name);
+   * }
+   * }
+ * + * @param name Required. The application name in the following format: + * `projects/$project/locations/$location/spaces/$space/applications/$application` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final FetchApplicationAssessmentReportResponse fetchApplicationAssessmentReport( + @Nullable ApplicationName name) { + FetchApplicationAssessmentReportRequest request = + FetchApplicationAssessmentReportRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return fetchApplicationAssessmentReport(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetches the assessment report of a deployed application if present. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   String name =
+   *       ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]").toString();
+   *   FetchApplicationAssessmentReportResponse response =
+   *       designCenterClient.fetchApplicationAssessmentReport(name);
+   * }
+   * }
+ * + * @param name Required. The application name in the following format: + * `projects/$project/locations/$location/spaces/$space/applications/$application` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final FetchApplicationAssessmentReportResponse fetchApplicationAssessmentReport( + String name) { + FetchApplicationAssessmentReportRequest request = + FetchApplicationAssessmentReportRequest.newBuilder().setName(name).build(); + return fetchApplicationAssessmentReport(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetches the assessment report of a deployed application if present. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   FetchApplicationAssessmentReportRequest request =
+   *       FetchApplicationAssessmentReportRequest.newBuilder()
+   *           .setName(
+   *               ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]")
+   *                   .toString())
+   *           .build();
+   *   FetchApplicationAssessmentReportResponse response =
+   *       designCenterClient.fetchApplicationAssessmentReport(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 FetchApplicationAssessmentReportResponse fetchApplicationAssessmentReport( + FetchApplicationAssessmentReportRequest request) { + return fetchApplicationAssessmentReportCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetches the assessment report of a deployed application if present. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   FetchApplicationAssessmentReportRequest request =
+   *       FetchApplicationAssessmentReportRequest.newBuilder()
+   *           .setName(
+   *               ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       designCenterClient.fetchApplicationAssessmentReportCallable().futureCall(request);
+   *   // Do something.
+   *   FetchApplicationAssessmentReportResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable< + FetchApplicationAssessmentReportRequest, FetchApplicationAssessmentReportResponse> + fetchApplicationAssessmentReportCallable() { + return stub.fetchApplicationAssessmentReportCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Generate Assessment Reports of an application. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   ApplicationName name =
+   *       ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]");
+   *   GenerateApplicationAssessmentReportResponse response =
+   *       designCenterClient.generateApplicationAssessmentReportAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The application name in the following format: + * `projects/$project/locations/$location/spaces/$space/applications/$application` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + generateApplicationAssessmentReportAsync(@Nullable ApplicationName name) { + GenerateApplicationAssessmentReportRequest request = + GenerateApplicationAssessmentReportRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return generateApplicationAssessmentReportAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Generate Assessment Reports of an application. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   String name =
+   *       ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]").toString();
+   *   GenerateApplicationAssessmentReportResponse response =
+   *       designCenterClient.generateApplicationAssessmentReportAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The application name in the following format: + * `projects/$project/locations/$location/spaces/$space/applications/$application` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + generateApplicationAssessmentReportAsync(String name) { + GenerateApplicationAssessmentReportRequest request = + GenerateApplicationAssessmentReportRequest.newBuilder().setName(name).build(); + return generateApplicationAssessmentReportAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Generate Assessment Reports of an application. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   GenerateApplicationAssessmentReportRequest request =
+   *       GenerateApplicationAssessmentReportRequest.newBuilder()
+   *           .setName(
+   *               ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]")
+   *                   .toString())
+   *           .build();
+   *   GenerateApplicationAssessmentReportResponse response =
+   *       designCenterClient.generateApplicationAssessmentReportAsync(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 + generateApplicationAssessmentReportAsync(GenerateApplicationAssessmentReportRequest request) { + return generateApplicationAssessmentReportOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Generate Assessment Reports of an application. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   GenerateApplicationAssessmentReportRequest request =
+   *       GenerateApplicationAssessmentReportRequest.newBuilder()
+   *           .setName(
+   *               ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]")
+   *                   .toString())
+   *           .build();
+   *   OperationFuture future =
+   *       designCenterClient
+   *           .generateApplicationAssessmentReportOperationCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   GenerateApplicationAssessmentReportResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + GenerateApplicationAssessmentReportRequest, + GenerateApplicationAssessmentReportResponse, + OperationMetadata> + generateApplicationAssessmentReportOperationCallable() { + return stub.generateApplicationAssessmentReportOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Generate Assessment Reports of an application. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   GenerateApplicationAssessmentReportRequest request =
+   *       GenerateApplicationAssessmentReportRequest.newBuilder()
+   *           .setName(
+   *               ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       designCenterClient.generateApplicationAssessmentReportCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + generateApplicationAssessmentReportCallable() { + return stub.generateApplicationAssessmentReportCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Generate Assessment Reports of an application template. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   ApplicationTemplateName name =
+   *       ApplicationTemplateName.of(
+   *           "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]");
+   *   GenerateApplicationTemplateAssessmentReportResponse response =
+   *       designCenterClient.generateApplicationTemplateAssessmentReportAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The application template name in the following format: + * `projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture< + GenerateApplicationTemplateAssessmentReportResponse, OperationMetadata> + generateApplicationTemplateAssessmentReportAsync(@Nullable ApplicationTemplateName name) { + GenerateApplicationTemplateAssessmentReportRequest request = + GenerateApplicationTemplateAssessmentReportRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return generateApplicationTemplateAssessmentReportAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Generate Assessment Reports of an application template. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   String name =
+   *       ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
+   *           .toString();
+   *   GenerateApplicationTemplateAssessmentReportResponse response =
+   *       designCenterClient.generateApplicationTemplateAssessmentReportAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The application template name in the following format: + * `projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture< + GenerateApplicationTemplateAssessmentReportResponse, OperationMetadata> + generateApplicationTemplateAssessmentReportAsync(String name) { + GenerateApplicationTemplateAssessmentReportRequest request = + GenerateApplicationTemplateAssessmentReportRequest.newBuilder().setName(name).build(); + return generateApplicationTemplateAssessmentReportAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Generate Assessment Reports of an application template. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   GenerateApplicationTemplateAssessmentReportRequest request =
+   *       GenerateApplicationTemplateAssessmentReportRequest.newBuilder()
+   *           .setName(
+   *               ApplicationTemplateName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
+   *                   .toString())
+   *           .setServiceAccount("serviceAccount1079137720")
+   *           .build();
+   *   GenerateApplicationTemplateAssessmentReportResponse response =
+   *       designCenterClient.generateApplicationTemplateAssessmentReportAsync(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< + GenerateApplicationTemplateAssessmentReportResponse, OperationMetadata> + generateApplicationTemplateAssessmentReportAsync( + GenerateApplicationTemplateAssessmentReportRequest request) { + return generateApplicationTemplateAssessmentReportOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Generate Assessment Reports of an application template. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   GenerateApplicationTemplateAssessmentReportRequest request =
+   *       GenerateApplicationTemplateAssessmentReportRequest.newBuilder()
+   *           .setName(
+   *               ApplicationTemplateName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
+   *                   .toString())
+   *           .setServiceAccount("serviceAccount1079137720")
+   *           .build();
+   *   OperationFuture
+   *       future =
+   *           designCenterClient
+   *               .generateApplicationTemplateAssessmentReportOperationCallable()
+   *               .futureCall(request);
+   *   // Do something.
+   *   GenerateApplicationTemplateAssessmentReportResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + GenerateApplicationTemplateAssessmentReportRequest, + GenerateApplicationTemplateAssessmentReportResponse, + OperationMetadata> + generateApplicationTemplateAssessmentReportOperationCallable() { + return stub.generateApplicationTemplateAssessmentReportOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Generate Assessment Reports of an application template. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   GenerateApplicationTemplateAssessmentReportRequest request =
+   *       GenerateApplicationTemplateAssessmentReportRequest.newBuilder()
+   *           .setName(
+   *               ApplicationTemplateName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
+   *                   .toString())
+   *           .setServiceAccount("serviceAccount1079137720")
+   *           .build();
+   *   ApiFuture future =
+   *       designCenterClient
+   *           .generateApplicationTemplateAssessmentReportCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + generateApplicationTemplateAssessmentReportCallable() { + return stub.generateApplicationTemplateAssessmentReportCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deprecated: Use GenerateTerraformPlanAssessmentReport instead. + * + *

Generate a best practice report for a given Terraform plan. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   SpaceName spaceName = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]");
+   *   GenerateAssessmentReportResponse response =
+   *       designCenterClient.generateAssessmentReportAsync(spaceName).get();
+   * }
+   * }
+ * + * @param spaceName Required. The name of the space at which Generate Assessment Report is called. + * Format: `projects/$project/locations/$location/spaces/$space` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated + public final OperationFuture + generateAssessmentReportAsync(@Nullable SpaceName spaceName) { + GenerateAssessmentReportRequest request = + GenerateAssessmentReportRequest.newBuilder() + .setSpaceName(spaceName == null ? null : spaceName.toString()) + .build(); + return generateAssessmentReportAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deprecated: Use GenerateTerraformPlanAssessmentReport instead. + * + *

Generate a best practice report for a given Terraform plan. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   String spaceName = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString();
+   *   GenerateAssessmentReportResponse response =
+   *       designCenterClient.generateAssessmentReportAsync(spaceName).get();
+   * }
+   * }
+ * + * @param spaceName Required. The name of the space at which Generate Assessment Report is called. + * Format: `projects/$project/locations/$location/spaces/$space` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated + public final OperationFuture + generateAssessmentReportAsync(String spaceName) { + GenerateAssessmentReportRequest request = + GenerateAssessmentReportRequest.newBuilder().setSpaceName(spaceName).build(); + return generateAssessmentReportAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deprecated: Use GenerateTerraformPlanAssessmentReport instead. + * + *

Generate a best practice report for a given Terraform plan. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   GenerateAssessmentReportRequest request =
+   *       GenerateAssessmentReportRequest.newBuilder()
+   *           .setTerraformPlan(ByteString.EMPTY)
+   *           .addAllAdditionalFrameworks(new ArrayList())
+   *           .setSpaceName(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString())
+   *           .build();
+   *   GenerateAssessmentReportResponse response =
+   *       designCenterClient.generateAssessmentReportAsync(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 + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated + public final OperationFuture + generateAssessmentReportAsync(GenerateAssessmentReportRequest request) { + return generateAssessmentReportOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deprecated: Use GenerateTerraformPlanAssessmentReport instead. + * + *

Generate a best practice report for a given Terraform plan. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   GenerateAssessmentReportRequest request =
+   *       GenerateAssessmentReportRequest.newBuilder()
+   *           .setTerraformPlan(ByteString.EMPTY)
+   *           .addAllAdditionalFrameworks(new ArrayList())
+   *           .setSpaceName(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString())
+   *           .build();
+   *   OperationFuture future =
+   *       designCenterClient.generateAssessmentReportOperationCallable().futureCall(request);
+   *   // Do something.
+   *   GenerateAssessmentReportResponse response = future.get();
+   * }
+   * }
+ * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated + public final OperationCallable< + GenerateAssessmentReportRequest, GenerateAssessmentReportResponse, OperationMetadata> + generateAssessmentReportOperationCallable() { + return stub.generateAssessmentReportOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deprecated: Use GenerateTerraformPlanAssessmentReport instead. + * + *

Generate a best practice report for a given Terraform plan. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   GenerateAssessmentReportRequest request =
+   *       GenerateAssessmentReportRequest.newBuilder()
+   *           .setTerraformPlan(ByteString.EMPTY)
+   *           .addAllAdditionalFrameworks(new ArrayList())
+   *           .setSpaceName(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       designCenterClient.generateAssessmentReportCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated + public final UnaryCallable + generateAssessmentReportCallable() { + return stub.generateAssessmentReportCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Generate a Terraform plan assessment report for a given Terraform plan. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   SpaceName name = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]");
+   *   ByteString terraformPlan = ByteString.EMPTY;
+   *   GenerateTerraformPlanAssessmentReportResponse response =
+   *       designCenterClient.generateTerraformPlanAssessmentReportAsync(name, terraformPlan).get();
+   * }
+   * }
+ * + * @param name Required. The parent resource in which to generate the assessment report. Format: + * projects/$project/locations/$location/spaces/$space + * @param terraformPlan Required. The raw JSON representation of the generated Terraform plan, + * provided as bytes. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + generateTerraformPlanAssessmentReportAsync( + @Nullable SpaceName name, ByteString terraformPlan) { + GenerateTerraformPlanAssessmentReportRequest request = + GenerateTerraformPlanAssessmentReportRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setTerraformPlan(terraformPlan) + .build(); + return generateTerraformPlanAssessmentReportAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Generate a Terraform plan assessment report for a given Terraform plan. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   String name = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString();
+   *   ByteString terraformPlan = ByteString.EMPTY;
+   *   GenerateTerraformPlanAssessmentReportResponse response =
+   *       designCenterClient.generateTerraformPlanAssessmentReportAsync(name, terraformPlan).get();
+   * }
+   * }
+ * + * @param name Required. The parent resource in which to generate the assessment report. Format: + * projects/$project/locations/$location/spaces/$space + * @param terraformPlan Required. The raw JSON representation of the generated Terraform plan, + * provided as bytes. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + generateTerraformPlanAssessmentReportAsync(String name, ByteString terraformPlan) { + GenerateTerraformPlanAssessmentReportRequest request = + GenerateTerraformPlanAssessmentReportRequest.newBuilder() + .setName(name) + .setTerraformPlan(terraformPlan) + .build(); + return generateTerraformPlanAssessmentReportAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Generate a Terraform plan assessment report for a given Terraform plan. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   GenerateTerraformPlanAssessmentReportRequest request =
+   *       GenerateTerraformPlanAssessmentReportRequest.newBuilder()
+   *           .setName(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString())
+   *           .setTerraformPlan(ByteString.EMPTY)
+   *           .addAllAdditionalFrameworks(new ArrayList())
+   *           .build();
+   *   GenerateTerraformPlanAssessmentReportResponse response =
+   *       designCenterClient.generateTerraformPlanAssessmentReportAsync(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 + generateTerraformPlanAssessmentReportAsync( + GenerateTerraformPlanAssessmentReportRequest request) { + return generateTerraformPlanAssessmentReportOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Generate a Terraform plan assessment report for a given Terraform plan. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   GenerateTerraformPlanAssessmentReportRequest request =
+   *       GenerateTerraformPlanAssessmentReportRequest.newBuilder()
+   *           .setName(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString())
+   *           .setTerraformPlan(ByteString.EMPTY)
+   *           .addAllAdditionalFrameworks(new ArrayList())
+   *           .build();
+   *   OperationFuture future =
+   *       designCenterClient
+   *           .generateTerraformPlanAssessmentReportOperationCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   GenerateTerraformPlanAssessmentReportResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + GenerateTerraformPlanAssessmentReportRequest, + GenerateTerraformPlanAssessmentReportResponse, + OperationMetadata> + generateTerraformPlanAssessmentReportOperationCallable() { + return stub.generateTerraformPlanAssessmentReportOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Generate a Terraform plan assessment report for a given Terraform plan. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   GenerateTerraformPlanAssessmentReportRequest request =
+   *       GenerateTerraformPlanAssessmentReportRequest.newBuilder()
+   *           .setName(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString())
+   *           .setTerraformPlan(ByteString.EMPTY)
+   *           .addAllAdditionalFrameworks(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       designCenterClient.generateTerraformPlanAssessmentReportCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + generateTerraformPlanAssessmentReportCallable() { + return stub.generateTerraformPlanAssessmentReportCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Policy related APIs. Get a policy for an application template. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   PolicyName name =
+   *       PolicyName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[POLICY]");
+   *   Policy response = designCenterClient.getPolicy(name);
+   * }
+   * }
+ * + * @param name Required. The policy name in the following format: + * `projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate/policies/$policy` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final com.google.cloud.designcenter.v1.Policy getPolicy(@Nullable PolicyName name) { + GetPolicyRequest request = + GetPolicyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getPolicy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Policy related APIs. Get a policy for an application template. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   String name =
+   *       PolicyName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[POLICY]")
+   *           .toString();
+   *   Policy response = designCenterClient.getPolicy(name);
+   * }
+   * }
+ * + * @param name Required. The policy name in the following format: + * `projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate/policies/$policy` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final com.google.cloud.designcenter.v1.Policy getPolicy(String name) { + GetPolicyRequest request = GetPolicyRequest.newBuilder().setName(name).build(); + return getPolicy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Policy related APIs. Get a policy for an application template. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   GetPolicyRequest request =
+   *       GetPolicyRequest.newBuilder()
+   *           .setName(
+   *               PolicyName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[SPACE]",
+   *                       "[APPLICATION_TEMPLATE]",
+   *                       "[POLICY]")
+   *                   .toString())
+   *           .build();
+   *   Policy response = designCenterClient.getPolicy(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 com.google.cloud.designcenter.v1.Policy getPolicy(GetPolicyRequest request) { + return getPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Policy related APIs. Get a policy for an application template. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   GetPolicyRequest request =
+   *       GetPolicyRequest.newBuilder()
+   *           .setName(
+   *               PolicyName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[SPACE]",
+   *                       "[APPLICATION_TEMPLATE]",
+   *                       "[POLICY]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future = designCenterClient.getPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getPolicyCallable() { + return stub.getPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists policies for an application template. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   ApplicationTemplateName parent =
+   *       ApplicationTemplateName.of(
+   *           "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]");
+   *   for (Policy element : designCenterClient.listPolicies(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent application template from which policies are listed in the + * following format: + * `projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListPoliciesPagedResponse listPolicies(@Nullable ApplicationTemplateName parent) { + ListPoliciesRequest request = + ListPoliciesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listPolicies(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists policies for an application template. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   String parent =
+   *       ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
+   *           .toString();
+   *   for (Policy element : designCenterClient.listPolicies(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent application template from which policies are listed in the + * following format: + * `projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListPoliciesPagedResponse listPolicies(String parent) { + ListPoliciesRequest request = ListPoliciesRequest.newBuilder().setParent(parent).build(); + return listPolicies(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists policies for an application template. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   ListPoliciesRequest request =
+   *       ListPoliciesRequest.newBuilder()
+   *           .setParent(
+   *               ApplicationTemplateName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   for (Policy element : designCenterClient.listPolicies(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 ListPoliciesPagedResponse listPolicies(ListPoliciesRequest request) { + return listPoliciesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists policies for an application template. + * + *

Sample code: + * + *

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

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   ApplicationTemplateName parent =
+   *       ApplicationTemplateName.of(
+   *           "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]");
+   *   Policy policy = Policy.newBuilder().build();
+   *   String policyId = "policyId546908653";
+   *   Policy response = designCenterClient.createPolicy(parent, policy, policyId);
+   * }
+   * }
+ * + * @param parent Required. The parent resource in which to create the policy in the following + * format: + * `projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate` + * @param policy Required. The policy to create. + * @param policyId Required. The ID of the policy to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final com.google.cloud.designcenter.v1.Policy createPolicy( + @Nullable ApplicationTemplateName parent, + com.google.cloud.designcenter.v1.Policy policy, + String policyId) { + CreatePolicyRequest request = + CreatePolicyRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setPolicy(policy) + .setPolicyId(policyId) + .build(); + return createPolicy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a policy for an application template. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   String parent =
+   *       ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
+   *           .toString();
+   *   Policy policy = Policy.newBuilder().build();
+   *   String policyId = "policyId546908653";
+   *   Policy response = designCenterClient.createPolicy(parent, policy, policyId);
+   * }
+   * }
+ * + * @param parent Required. The parent resource in which to create the policy in the following + * format: + * `projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate` + * @param policy Required. The policy to create. + * @param policyId Required. The ID of the policy to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final com.google.cloud.designcenter.v1.Policy createPolicy( + String parent, com.google.cloud.designcenter.v1.Policy policy, String policyId) { + CreatePolicyRequest request = + CreatePolicyRequest.newBuilder() + .setParent(parent) + .setPolicy(policy) + .setPolicyId(policyId) + .build(); + return createPolicy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a policy for an application template. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   CreatePolicyRequest request =
+   *       CreatePolicyRequest.newBuilder()
+   *           .setParent(
+   *               ApplicationTemplateName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
+   *                   .toString())
+   *           .setPolicyId("policyId546908653")
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .build();
+   *   Policy response = designCenterClient.createPolicy(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 com.google.cloud.designcenter.v1.Policy createPolicy(CreatePolicyRequest request) { + return createPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a policy for an application template. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   CreatePolicyRequest request =
+   *       CreatePolicyRequest.newBuilder()
+   *           .setParent(
+   *               ApplicationTemplateName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
+   *                   .toString())
+   *           .setPolicyId("policyId546908653")
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = designCenterClient.createPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + createPolicyCallable() { + return stub.createPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a policy. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   Policy policy = Policy.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   Policy response = designCenterClient.updatePolicy(policy, updateMask);
+   * }
+   * }
+ * + * @param policy Required. The policy to update. + * @param updateMask Optional. The fields to overwrite in the policy update. The fields specified + * in the update_mask are relative to the resource, not the full request. A field will be + * overwritten if it is in the mask. If you don't provide a mask, all fields are overwritten. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final com.google.cloud.designcenter.v1.Policy updatePolicy( + com.google.cloud.designcenter.v1.Policy policy, FieldMask updateMask) { + UpdatePolicyRequest request = + UpdatePolicyRequest.newBuilder().setPolicy(policy).setUpdateMask(updateMask).build(); + return updatePolicy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a policy. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   UpdatePolicyRequest request =
+   *       UpdatePolicyRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .build();
+   *   Policy response = designCenterClient.updatePolicy(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 com.google.cloud.designcenter.v1.Policy updatePolicy(UpdatePolicyRequest request) { + return updatePolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a policy. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   UpdatePolicyRequest request =
+   *       UpdatePolicyRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = designCenterClient.updatePolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + updatePolicyCallable() { + return stub.updatePolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a policy. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   PolicyName name =
+   *       PolicyName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[POLICY]");
+   *   designCenterClient.deletePolicy(name);
+   * }
+   * }
+ * + * @param name Required. The policy name in the following format: + * `projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate/policies/$policy` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deletePolicy(@Nullable PolicyName name) { + DeletePolicyRequest request = + DeletePolicyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + deletePolicy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a policy. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   String name =
+   *       PolicyName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[POLICY]")
+   *           .toString();
+   *   designCenterClient.deletePolicy(name);
+   * }
+   * }
+ * + * @param name Required. The policy name in the following format: + * `projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate/policies/$policy` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deletePolicy(String name) { + DeletePolicyRequest request = DeletePolicyRequest.newBuilder().setName(name).build(); + deletePolicy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a policy. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   DeletePolicyRequest request =
+   *       DeletePolicyRequest.newBuilder()
+   *           .setName(
+   *               PolicyName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[SPACE]",
+   *                       "[APPLICATION_TEMPLATE]",
+   *                       "[POLICY]")
+   *                   .toString())
+   *           .build();
+   *   designCenterClient.deletePolicy(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 deletePolicy(DeletePolicyRequest request) { + deletePolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a policy. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   DeletePolicyRequest request =
+   *       DeletePolicyRequest.newBuilder()
+   *           .setName(
+   *               PolicyName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[SPACE]",
+   *                       "[APPLICATION_TEMPLATE]",
+   *                       "[POLICY]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future = designCenterClient.deletePolicyCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deletePolicyCallable() { + return stub.deletePolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetches all frameworks for assessment report. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   String parent = "parent-995424086";
+   *   for (Framework element : designCenterClient.fetchFrameworks(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent resource name. Format: + * projects/{project}/locations/{location} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final FetchFrameworksPagedResponse fetchFrameworks(String parent) { + FetchFrameworksRequest request = FetchFrameworksRequest.newBuilder().setParent(parent).build(); + return fetchFrameworks(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetches all frameworks for assessment report. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   FetchFrameworksRequest request =
+   *       FetchFrameworksRequest.newBuilder()
+   *           .setParent("parent-995424086")
+   *           .addAllProjects(new ArrayList())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   for (Framework element : designCenterClient.fetchFrameworks(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 FetchFrameworksPagedResponse fetchFrameworks(FetchFrameworksRequest request) { + return fetchFrameworksPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetches all frameworks for assessment report. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   FetchFrameworksRequest request =
+   *       FetchFrameworksRequest.newBuilder()
+   *           .setParent("parent-995424086")
+   *           .addAllProjects(new ArrayList())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   ApiFuture future =
+   *       designCenterClient.fetchFrameworksPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Framework element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + fetchFrameworksPagedCallable() { + return stub.fetchFrameworksPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetches all frameworks for assessment report. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   FetchFrameworksRequest request =
+   *       FetchFrameworksRequest.newBuilder()
+   *           .setParent("parent-995424086")
+   *           .addAllProjects(new ArrayList())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   while (true) {
+   *     FetchFrameworksResponse response =
+   *         designCenterClient.fetchFrameworksCallable().call(request);
+   *     for (Framework element : response.getFrameworksList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + fetchFrameworksCallable() { + return stub.fetchFrameworksCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Generates Terraform files for an application. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   ApplicationName name =
+   *       ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]");
+   *   GenerateApplicationIaCResponse response = designCenterClient.generateApplicationIaC(name);
+   * }
+   * }
+ * + * @param name Required. The name of the application. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final GenerateApplicationIaCResponse generateApplicationIaC( + @Nullable ApplicationName name) { + GenerateApplicationIaCRequest request = + GenerateApplicationIaCRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return generateApplicationIaC(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Generates Terraform files for an application. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   String name =
+   *       ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]").toString();
+   *   GenerateApplicationIaCResponse response = designCenterClient.generateApplicationIaC(name);
+   * }
+   * }
+ * + * @param name Required. The name of the application. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final GenerateApplicationIaCResponse generateApplicationIaC(String name) { + GenerateApplicationIaCRequest request = + GenerateApplicationIaCRequest.newBuilder().setName(name).build(); + return generateApplicationIaC(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Generates Terraform files for an application. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   GenerateApplicationIaCRequest request =
+   *       GenerateApplicationIaCRequest.newBuilder()
+   *           .setName(
+   *               ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]")
+   *                   .toString())
+   *           .setIacFormat(IACFormat.forNumber(0))
+   *           .setGcsUri("gcsUri-1251224875")
+   *           .setArtifactLocation(ArtifactLocation.newBuilder().build())
+   *           .build();
+   *   GenerateApplicationIaCResponse response = designCenterClient.generateApplicationIaC(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 GenerateApplicationIaCResponse generateApplicationIaC( + GenerateApplicationIaCRequest request) { + return generateApplicationIaCCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Generates Terraform files for an application. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   GenerateApplicationIaCRequest request =
+   *       GenerateApplicationIaCRequest.newBuilder()
+   *           .setName(
+   *               ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]")
+   *                   .toString())
+   *           .setIacFormat(IACFormat.forNumber(0))
+   *           .setGcsUri("gcsUri-1251224875")
+   *           .setArtifactLocation(ArtifactLocation.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       designCenterClient.generateApplicationIaCCallable().futureCall(request);
+   *   // Do something.
+   *   GenerateApplicationIaCResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + generateApplicationIaCCallable() { + return stub.generateApplicationIaCCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Exports Terraform files for an application asynchronously. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   ApplicationName name =
+   *       ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]");
+   *   ExportApplicationIaCResponse response =
+   *       designCenterClient.exportApplicationIaCAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the application. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + exportApplicationIaCAsync(@Nullable ApplicationName name) { + ExportApplicationIaCRequest request = + ExportApplicationIaCRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return exportApplicationIaCAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Exports Terraform files for an application asynchronously. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   String name =
+   *       ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]").toString();
+   *   ExportApplicationIaCResponse response =
+   *       designCenterClient.exportApplicationIaCAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the application. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + exportApplicationIaCAsync(String name) { + ExportApplicationIaCRequest request = + ExportApplicationIaCRequest.newBuilder().setName(name).build(); + return exportApplicationIaCAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Exports Terraform files for an application asynchronously. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   ExportApplicationIaCRequest request =
+   *       ExportApplicationIaCRequest.newBuilder()
+   *           .setName(
+   *               ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]")
+   *                   .toString())
+   *           .setIacFormat(IACFormat.forNumber(0))
+   *           .setArtifactLocation(ArtifactLocation.newBuilder().build())
+   *           .setExportIacConfig(ExportIaCConfig.newBuilder().build())
+   *           .build();
+   *   ExportApplicationIaCResponse response =
+   *       designCenterClient.exportApplicationIaCAsync(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 + exportApplicationIaCAsync(ExportApplicationIaCRequest request) { + return exportApplicationIaCOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Exports Terraform files for an application asynchronously. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   ExportApplicationIaCRequest request =
+   *       ExportApplicationIaCRequest.newBuilder()
+   *           .setName(
+   *               ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]")
+   *                   .toString())
+   *           .setIacFormat(IACFormat.forNumber(0))
+   *           .setArtifactLocation(ArtifactLocation.newBuilder().build())
+   *           .setExportIacConfig(ExportIaCConfig.newBuilder().build())
+   *           .build();
+   *   OperationFuture future =
+   *       designCenterClient.exportApplicationIaCOperationCallable().futureCall(request);
+   *   // Do something.
+   *   ExportApplicationIaCResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + ExportApplicationIaCRequest, ExportApplicationIaCResponse, OperationMetadata> + exportApplicationIaCOperationCallable() { + return stub.exportApplicationIaCOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Exports Terraform files for an application asynchronously. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   ExportApplicationIaCRequest request =
+   *       ExportApplicationIaCRequest.newBuilder()
+   *           .setName(
+   *               ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]")
+   *                   .toString())
+   *           .setIacFormat(IACFormat.forNumber(0))
+   *           .setArtifactLocation(ArtifactLocation.newBuilder().build())
+   *           .setExportIacConfig(ExportIaCConfig.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       designCenterClient.exportApplicationIaCCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + exportApplicationIaCCallable() { + return stub.exportApplicationIaCCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports IaC for an application template. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   ApplicationTemplateName name =
+   *       ApplicationTemplateName.of(
+   *           "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]");
+   *   ImportApplicationTemplateIaCResponse response =
+   *       designCenterClient.importApplicationTemplateIaC(name);
+   * }
+   * }
+ * + * @param name Required. The name of the application template. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ImportApplicationTemplateIaCResponse importApplicationTemplateIaC( + @Nullable ApplicationTemplateName name) { + ImportApplicationTemplateIaCRequest request = + ImportApplicationTemplateIaCRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return importApplicationTemplateIaC(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports IaC for an application template. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   String name =
+   *       ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
+   *           .toString();
+   *   ImportApplicationTemplateIaCResponse response =
+   *       designCenterClient.importApplicationTemplateIaC(name);
+   * }
+   * }
+ * + * @param name Required. The name of the application template. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ImportApplicationTemplateIaCResponse importApplicationTemplateIaC(String name) { + ImportApplicationTemplateIaCRequest request = + ImportApplicationTemplateIaCRequest.newBuilder().setName(name).build(); + return importApplicationTemplateIaC(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports IaC for an application template. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   ImportApplicationTemplateIaCRequest request =
+   *       ImportApplicationTemplateIaCRequest.newBuilder()
+   *           .setName(
+   *               ApplicationTemplateName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
+   *                   .toString())
+   *           .setAllowPartialImport(true)
+   *           .setValidateIac(true)
+   *           .build();
+   *   ImportApplicationTemplateIaCResponse response =
+   *       designCenterClient.importApplicationTemplateIaC(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 ImportApplicationTemplateIaCResponse importApplicationTemplateIaC( + ImportApplicationTemplateIaCRequest request) { + return importApplicationTemplateIaCCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports IaC for an application template. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   ImportApplicationTemplateIaCRequest request =
+   *       ImportApplicationTemplateIaCRequest.newBuilder()
+   *           .setName(
+   *               ApplicationTemplateName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
+   *                   .toString())
+   *           .setAllowPartialImport(true)
+   *           .setValidateIac(true)
+   *           .build();
+   *   ApiFuture future =
+   *       designCenterClient.importApplicationTemplateIaCCallable().futureCall(request);
+   *   // Do something.
+   *   ImportApplicationTemplateIaCResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable< + ImportApplicationTemplateIaCRequest, ImportApplicationTemplateIaCResponse> + importApplicationTemplateIaCCallable() { + return stub.importApplicationTemplateIaCCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Ingests IaC for an application template asynchronously. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   ApplicationTemplateName name =
+   *       ApplicationTemplateName.of(
+   *           "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]");
+   *   IngestApplicationTemplateIaCResponse response =
+   *       designCenterClient.ingestApplicationTemplateIaCAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the application template. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + ingestApplicationTemplateIaCAsync(@Nullable ApplicationTemplateName name) { + IngestApplicationTemplateIaCRequest request = + IngestApplicationTemplateIaCRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return ingestApplicationTemplateIaCAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Ingests IaC for an application template asynchronously. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   String name =
+   *       ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
+   *           .toString();
+   *   IngestApplicationTemplateIaCResponse response =
+   *       designCenterClient.ingestApplicationTemplateIaCAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the application template. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + ingestApplicationTemplateIaCAsync(String name) { + IngestApplicationTemplateIaCRequest request = + IngestApplicationTemplateIaCRequest.newBuilder().setName(name).build(); + return ingestApplicationTemplateIaCAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Ingests IaC for an application template asynchronously. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   IngestApplicationTemplateIaCRequest request =
+   *       IngestApplicationTemplateIaCRequest.newBuilder()
+   *           .setName(
+   *               ApplicationTemplateName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
+   *                   .toString())
+   *           .setValidateCatalogCompatibility(true)
+   *           .setRawTerraformImportEnabled(true)
+   *           .build();
+   *   IngestApplicationTemplateIaCResponse response =
+   *       designCenterClient.ingestApplicationTemplateIaCAsync(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 + ingestApplicationTemplateIaCAsync(IngestApplicationTemplateIaCRequest request) { + return ingestApplicationTemplateIaCOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Ingests IaC for an application template asynchronously. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   IngestApplicationTemplateIaCRequest request =
+   *       IngestApplicationTemplateIaCRequest.newBuilder()
+   *           .setName(
+   *               ApplicationTemplateName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
+   *                   .toString())
+   *           .setValidateCatalogCompatibility(true)
+   *           .setRawTerraformImportEnabled(true)
+   *           .build();
+   *   OperationFuture future =
+   *       designCenterClient.ingestApplicationTemplateIaCOperationCallable().futureCall(request);
+   *   // Do something.
+   *   IngestApplicationTemplateIaCResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + IngestApplicationTemplateIaCRequest, + IngestApplicationTemplateIaCResponse, + OperationMetadata> + ingestApplicationTemplateIaCOperationCallable() { + return stub.ingestApplicationTemplateIaCOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Ingests IaC for an application template asynchronously. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   IngestApplicationTemplateIaCRequest request =
+   *       IngestApplicationTemplateIaCRequest.newBuilder()
+   *           .setName(
+   *               ApplicationTemplateName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
+   *                   .toString())
+   *           .setValidateCatalogCompatibility(true)
+   *           .setRawTerraformImportEnabled(true)
+   *           .build();
+   *   ApiFuture future =
+   *       designCenterClient.ingestApplicationTemplateIaCCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + ingestApplicationTemplateIaCCallable() { + return stub.ingestApplicationTemplateIaCCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports IaC for an application resource. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   ApplicationName name =
+   *       ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]");
+   *   ImportApplicationIaCResponse response = designCenterClient.importApplicationIaC(name);
+   * }
+   * }
+ * + * @param name Required. The name of the application. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ImportApplicationIaCResponse importApplicationIaC(@Nullable ApplicationName name) { + ImportApplicationIaCRequest request = + ImportApplicationIaCRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return importApplicationIaC(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports IaC for an application resource. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   String name =
+   *       ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]").toString();
+   *   ImportApplicationIaCResponse response = designCenterClient.importApplicationIaC(name);
+   * }
+   * }
+ * + * @param name Required. The name of the application. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ImportApplicationIaCResponse importApplicationIaC(String name) { + ImportApplicationIaCRequest request = + ImportApplicationIaCRequest.newBuilder().setName(name).build(); + return importApplicationIaC(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports IaC for an application resource. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   ImportApplicationIaCRequest request =
+   *       ImportApplicationIaCRequest.newBuilder()
+   *           .setName(
+   *               ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]")
+   *                   .toString())
+   *           .setAllowPartialImport(true)
+   *           .setValidateIac(true)
+   *           .build();
+   *   ImportApplicationIaCResponse response = designCenterClient.importApplicationIaC(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 ImportApplicationIaCResponse importApplicationIaC( + ImportApplicationIaCRequest request) { + return importApplicationIaCCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports IaC for an application resource. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   ImportApplicationIaCRequest request =
+   *       ImportApplicationIaCRequest.newBuilder()
+   *           .setName(
+   *               ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]")
+   *                   .toString())
+   *           .setAllowPartialImport(true)
+   *           .setValidateIac(true)
+   *           .build();
+   *   ApiFuture future =
+   *       designCenterClient.importApplicationIaCCallable().futureCall(request);
+   *   // Do something.
+   *   ImportApplicationIaCResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + importApplicationIaCCallable() { + return stub.importApplicationIaCCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Register deployed resources from terraform state file with App Hub without needing a space. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   String apphubApplication = "apphubApplication104302972";
+   *   String tfstateContent = "tfstateContent-1547770342";
+   *   RegisterAppHubApplicationResourcesResponse response =
+   *       designCenterClient
+   *           .registerAppHubApplicationResourcesAsync(parent, apphubApplication, tfstateContent)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. The parent location. Format: projects/{project}/locations/{location} + * @param apphubApplication Required. The name of the AppHub Application. Format: + * projects/{project}/locations/{location}/applications/{application} + * @param tfstateContent Optional. The Terraform state (tfstate) content as a raw string. For + * large state files exceeding 10MB, use the 'tfstate_signed_gcs_uri' field instead. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + registerAppHubApplicationResourcesAsync( + @Nullable LocationName parent, String apphubApplication, String tfstateContent) { + RegisterAppHubApplicationResourcesRequest request = + RegisterAppHubApplicationResourcesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setApphubApplication(apphubApplication) + .setTfstateContent(tfstateContent) + .build(); + return registerAppHubApplicationResourcesAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Register deployed resources from terraform state file with App Hub without needing a space. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   String apphubApplication = "apphubApplication104302972";
+   *   String tfstateContent = "tfstateContent-1547770342";
+   *   RegisterAppHubApplicationResourcesResponse response =
+   *       designCenterClient
+   *           .registerAppHubApplicationResourcesAsync(parent, apphubApplication, tfstateContent)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. The parent location. Format: projects/{project}/locations/{location} + * @param apphubApplication Required. The name of the AppHub Application. Format: + * projects/{project}/locations/{location}/applications/{application} + * @param tfstateContent Optional. The Terraform state (tfstate) content as a raw string. For + * large state files exceeding 10MB, use the 'tfstate_signed_gcs_uri' field instead. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + registerAppHubApplicationResourcesAsync( + String parent, String apphubApplication, String tfstateContent) { + RegisterAppHubApplicationResourcesRequest request = + RegisterAppHubApplicationResourcesRequest.newBuilder() + .setParent(parent) + .setApphubApplication(apphubApplication) + .setTfstateContent(tfstateContent) + .build(); + return registerAppHubApplicationResourcesAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Register deployed resources from terraform state file with App Hub without needing a space. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   RegisterAppHubApplicationResourcesRequest request =
+   *       RegisterAppHubApplicationResourcesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setApphubApplication("apphubApplication104302972")
+   *           .build();
+   *   RegisterAppHubApplicationResourcesResponse response =
+   *       designCenterClient.registerAppHubApplicationResourcesAsync(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 + registerAppHubApplicationResourcesAsync(RegisterAppHubApplicationResourcesRequest request) { + return registerAppHubApplicationResourcesOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Register deployed resources from terraform state file with App Hub without needing a space. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   RegisterAppHubApplicationResourcesRequest request =
+   *       RegisterAppHubApplicationResourcesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setApphubApplication("apphubApplication104302972")
+   *           .build();
+   *   OperationFuture future =
+   *       designCenterClient
+   *           .registerAppHubApplicationResourcesOperationCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   RegisterAppHubApplicationResourcesResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + RegisterAppHubApplicationResourcesRequest, + RegisterAppHubApplicationResourcesResponse, + OperationMetadata> + registerAppHubApplicationResourcesOperationCallable() { + return stub.registerAppHubApplicationResourcesOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Register deployed resources from terraform state file with App Hub without needing a space. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   RegisterAppHubApplicationResourcesRequest request =
+   *       RegisterAppHubApplicationResourcesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setApphubApplication("apphubApplication104302972")
+   *           .build();
+   *   ApiFuture future =
+   *       designCenterClient.registerAppHubApplicationResourcesCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + registerAppHubApplicationResourcesCallable() { + return stub.registerAppHubApplicationResourcesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists application template system revisions in a given application template. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   ApplicationTemplateName parent =
+   *       ApplicationTemplateName.of(
+   *           "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]");
+   *   for (ApplicationTemplateSystemRevision element :
+   *       designCenterClient.listApplicationTemplateSystemRevisions(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent Application Template from which to list the system + * revisions. Format: + * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListApplicationTemplateSystemRevisionsPagedResponse + listApplicationTemplateSystemRevisions(@Nullable ApplicationTemplateName parent) { + ListApplicationTemplateSystemRevisionsRequest request = + ListApplicationTemplateSystemRevisionsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listApplicationTemplateSystemRevisions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists application template system revisions in a given application template. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   String parent =
+   *       ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
+   *           .toString();
+   *   for (ApplicationTemplateSystemRevision element :
+   *       designCenterClient.listApplicationTemplateSystemRevisions(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent Application Template from which to list the system + * revisions. Format: + * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListApplicationTemplateSystemRevisionsPagedResponse + listApplicationTemplateSystemRevisions(String parent) { + ListApplicationTemplateSystemRevisionsRequest request = + ListApplicationTemplateSystemRevisionsRequest.newBuilder().setParent(parent).build(); + return listApplicationTemplateSystemRevisions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists application template system revisions in a given application template. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   ListApplicationTemplateSystemRevisionsRequest request =
+   *       ListApplicationTemplateSystemRevisionsRequest.newBuilder()
+   *           .setParent(
+   *               ApplicationTemplateName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   for (ApplicationTemplateSystemRevision element :
+   *       designCenterClient.listApplicationTemplateSystemRevisions(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 ListApplicationTemplateSystemRevisionsPagedResponse + listApplicationTemplateSystemRevisions( + ListApplicationTemplateSystemRevisionsRequest request) { + return listApplicationTemplateSystemRevisionsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists application template system revisions in a given application template. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   ListApplicationTemplateSystemRevisionsRequest request =
+   *       ListApplicationTemplateSystemRevisionsRequest.newBuilder()
+   *           .setParent(
+   *               ApplicationTemplateName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   ApiFuture future =
+   *       designCenterClient
+   *           .listApplicationTemplateSystemRevisionsPagedCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   for (ApplicationTemplateSystemRevision element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + ListApplicationTemplateSystemRevisionsRequest, + ListApplicationTemplateSystemRevisionsPagedResponse> + listApplicationTemplateSystemRevisionsPagedCallable() { + return stub.listApplicationTemplateSystemRevisionsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists application template system revisions in a given application template. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   ListApplicationTemplateSystemRevisionsRequest request =
+   *       ListApplicationTemplateSystemRevisionsRequest.newBuilder()
+   *           .setParent(
+   *               ApplicationTemplateName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   while (true) {
+   *     ListApplicationTemplateSystemRevisionsResponse response =
+   *         designCenterClient.listApplicationTemplateSystemRevisionsCallable().call(request);
+   *     for (ApplicationTemplateSystemRevision element :
+   *         response.getApplicationTemplateSystemRevisionsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + ListApplicationTemplateSystemRevisionsRequest, + ListApplicationTemplateSystemRevisionsResponse> + listApplicationTemplateSystemRevisionsCallable() { + return stub.listApplicationTemplateSystemRevisionsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the given application template system 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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   ApplicationTemplateSystemRevisionName name =
+   *       ApplicationTemplateSystemRevisionName.of(
+   *           "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[SYSTEM_REVISION]");
+   *   ApplicationTemplateSystemRevision response =
+   *       designCenterClient.getApplicationTemplateSystemRevision(name);
+   * }
+   * }
+ * + * @param name Required. The name of the ApplicationTemplateSystemRevision to retrieve. Format: + * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/systemRevisions/{system_revision} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ApplicationTemplateSystemRevision getApplicationTemplateSystemRevision( + @Nullable ApplicationTemplateSystemRevisionName name) { + GetApplicationTemplateSystemRevisionRequest request = + GetApplicationTemplateSystemRevisionRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getApplicationTemplateSystemRevision(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the given application template system 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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   String name =
+   *       ApplicationTemplateSystemRevisionName.of(
+   *               "[PROJECT]",
+   *               "[LOCATION]",
+   *               "[SPACE]",
+   *               "[APPLICATION_TEMPLATE]",
+   *               "[SYSTEM_REVISION]")
+   *           .toString();
+   *   ApplicationTemplateSystemRevision response =
+   *       designCenterClient.getApplicationTemplateSystemRevision(name);
+   * }
+   * }
+ * + * @param name Required. The name of the ApplicationTemplateSystemRevision to retrieve. Format: + * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/systemRevisions/{system_revision} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ApplicationTemplateSystemRevision getApplicationTemplateSystemRevision(String name) { + GetApplicationTemplateSystemRevisionRequest request = + GetApplicationTemplateSystemRevisionRequest.newBuilder().setName(name).build(); + return getApplicationTemplateSystemRevision(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the given application template system 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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   GetApplicationTemplateSystemRevisionRequest request =
+   *       GetApplicationTemplateSystemRevisionRequest.newBuilder()
+   *           .setName(
+   *               ApplicationTemplateSystemRevisionName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[SPACE]",
+   *                       "[APPLICATION_TEMPLATE]",
+   *                       "[SYSTEM_REVISION]")
+   *                   .toString())
+   *           .build();
+   *   ApplicationTemplateSystemRevision response =
+   *       designCenterClient.getApplicationTemplateSystemRevision(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 ApplicationTemplateSystemRevision getApplicationTemplateSystemRevision( + GetApplicationTemplateSystemRevisionRequest request) { + return getApplicationTemplateSystemRevisionCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the given application template system 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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   GetApplicationTemplateSystemRevisionRequest request =
+   *       GetApplicationTemplateSystemRevisionRequest.newBuilder()
+   *           .setName(
+   *               ApplicationTemplateSystemRevisionName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[SPACE]",
+   *                       "[APPLICATION_TEMPLATE]",
+   *                       "[SYSTEM_REVISION]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       designCenterClient.getApplicationTemplateSystemRevisionCallable().futureCall(request);
+   *   // Do something.
+   *   ApplicationTemplateSystemRevision response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable< + GetApplicationTemplateSystemRevisionRequest, ApplicationTemplateSystemRevision> + getApplicationTemplateSystemRevisionCallable() { + return stub.getApplicationTemplateSystemRevisionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets recommended IAM roles for an application. + * + *

Evaluates the infrastructure resources defined by an application (including its template + * configuration and parameters) to determine the set of IAM roles and Google Cloud APIs that you + * must configure before you deploy across target projects. + * + *

The operation is asynchronous and returns a `google.longrunning.Operation`. Upon completion, + * the operation result contains a `RecommendIAMRolesResponse` with project-level IAM role and API + * recommendations. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   ApplicationName name =
+   *       ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]");
+   *   RecommendIAMRolesResponse response = designCenterClient.recommendIAMRolesAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the application resource for which to recommend IAM roles. + * Format: projects/$project/locations/$location/spaces/$space/applications/$application + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture recommendIAMRolesAsync( + @Nullable ApplicationName name) { + RecommendIAMRolesRequest request = + RecommendIAMRolesRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return recommendIAMRolesAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets recommended IAM roles for an application. + * + *

Evaluates the infrastructure resources defined by an application (including its template + * configuration and parameters) to determine the set of IAM roles and Google Cloud APIs that you + * must configure before you deploy across target projects. + * + *

The operation is asynchronous and returns a `google.longrunning.Operation`. Upon completion, + * the operation result contains a `RecommendIAMRolesResponse` with project-level IAM role and API + * recommendations. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   String name =
+   *       ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]").toString();
+   *   RecommendIAMRolesResponse response = designCenterClient.recommendIAMRolesAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the application resource for which to recommend IAM roles. + * Format: projects/$project/locations/$location/spaces/$space/applications/$application + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture recommendIAMRolesAsync( + String name) { + RecommendIAMRolesRequest request = RecommendIAMRolesRequest.newBuilder().setName(name).build(); + return recommendIAMRolesAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets recommended IAM roles for an application. + * + *

Evaluates the infrastructure resources defined by an application (including its template + * configuration and parameters) to determine the set of IAM roles and Google Cloud APIs that you + * must configure before you deploy across target projects. + * + *

The operation is asynchronous and returns a `google.longrunning.Operation`. Upon completion, + * the operation result contains a `RecommendIAMRolesResponse` with project-level IAM role and API + * recommendations. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   RecommendIAMRolesRequest request =
+   *       RecommendIAMRolesRequest.newBuilder()
+   *           .setName(
+   *               ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]")
+   *                   .toString())
+   *           .build();
+   *   RecommendIAMRolesResponse response = designCenterClient.recommendIAMRolesAsync(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 recommendIAMRolesAsync( + RecommendIAMRolesRequest request) { + return recommendIAMRolesOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets recommended IAM roles for an application. + * + *

Evaluates the infrastructure resources defined by an application (including its template + * configuration and parameters) to determine the set of IAM roles and Google Cloud APIs that you + * must configure before you deploy across target projects. + * + *

The operation is asynchronous and returns a `google.longrunning.Operation`. Upon completion, + * the operation result contains a `RecommendIAMRolesResponse` with project-level IAM role and API + * recommendations. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   RecommendIAMRolesRequest request =
+   *       RecommendIAMRolesRequest.newBuilder()
+   *           .setName(
+   *               ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]")
+   *                   .toString())
+   *           .build();
+   *   OperationFuture future =
+   *       designCenterClient.recommendIAMRolesOperationCallable().futureCall(request);
+   *   // Do something.
+   *   RecommendIAMRolesResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + RecommendIAMRolesRequest, RecommendIAMRolesResponse, OperationMetadata> + recommendIAMRolesOperationCallable() { + return stub.recommendIAMRolesOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets recommended IAM roles for an application. + * + *

Evaluates the infrastructure resources defined by an application (including its template + * configuration and parameters) to determine the set of IAM roles and Google Cloud APIs that you + * must configure before you deploy across target projects. + * + *

The operation is asynchronous and returns a `google.longrunning.Operation`. Upon completion, + * the operation result contains a `RecommendIAMRolesResponse` with project-level IAM role and API + * recommendations. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   RecommendIAMRolesRequest request =
+   *       RecommendIAMRolesRequest.newBuilder()
+   *           .setName(
+   *               ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       designCenterClient.recommendIAMRolesCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable recommendIAMRolesCallable() { + return stub.recommendIAMRolesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Location element : designCenterClient.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. + * + *

This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       designCenterClient.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. + * + *

This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListLocationsResponse response = designCenterClient.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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   Location response = designCenterClient.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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future = designCenterClient.getLocationCallable().futureCall(request);
+   *   // Do something.
+   *   Location response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Policy response = designCenterClient.setIamPolicy(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 Policy setIamPolicy(SetIamPolicyRequest request) { + return setIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = designCenterClient.setIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable setIamPolicyCallable() { + return stub.setIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   Policy response = designCenterClient.getIamPolicy(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 Policy getIamPolicy(GetIamPolicyRequest request) { + return getIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = designCenterClient.getIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getIamPolicyCallable() { + return stub.getIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   TestIamPermissionsResponse response = designCenterClient.testIamPermissions(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 TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { + return testIamPermissionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       designCenterClient.testIamPermissionsCallable().futureCall(request);
+   *   // Do something.
+   *   TestIamPermissionsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + testIamPermissionsCallable() { + return stub.testIamPermissionsCallable(); + } + + @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 ListSpacesPagedResponse + extends AbstractPagedListResponse< + ListSpacesRequest, + ListSpacesResponse, + Space, + ListSpacesPage, + ListSpacesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListSpacesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, input -> new ListSpacesPagedResponse(input), MoreExecutors.directExecutor()); + } + + private ListSpacesPagedResponse(ListSpacesPage page) { + super(page, ListSpacesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListSpacesPage + extends AbstractPage { + + private ListSpacesPage( + @Nullable PageContext context, + @Nullable ListSpacesResponse response) { + super(context, response); + } + + private static ListSpacesPage createEmptyPage() { + return new ListSpacesPage(null, null); + } + + @Override + protected ListSpacesPage createPage( + @Nullable PageContext context, + @Nullable ListSpacesResponse response) { + return new ListSpacesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + @Nullable PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListSpacesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListSpacesRequest, + ListSpacesResponse, + Space, + ListSpacesPage, + ListSpacesFixedSizeCollection> { + + private ListSpacesFixedSizeCollection( + @Nullable List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListSpacesFixedSizeCollection createEmptyCollection() { + return new ListSpacesFixedSizeCollection(null, 0); + } + + @Override + protected ListSpacesFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { + return new ListSpacesFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListApplicationTemplatesPagedResponse + extends AbstractPagedListResponse< + ListApplicationTemplatesRequest, + ListApplicationTemplatesResponse, + ApplicationTemplate, + ListApplicationTemplatesPage, + ListApplicationTemplatesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListApplicationTemplatesRequest, + ListApplicationTemplatesResponse, + ApplicationTemplate> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListApplicationTemplatesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListApplicationTemplatesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListApplicationTemplatesPagedResponse(ListApplicationTemplatesPage page) { + super(page, ListApplicationTemplatesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListApplicationTemplatesPage + extends AbstractPage< + ListApplicationTemplatesRequest, + ListApplicationTemplatesResponse, + ApplicationTemplate, + ListApplicationTemplatesPage> { + + private ListApplicationTemplatesPage( + @Nullable + PageContext< + ListApplicationTemplatesRequest, + ListApplicationTemplatesResponse, + ApplicationTemplate> + context, + @Nullable ListApplicationTemplatesResponse response) { + super(context, response); + } + + private static ListApplicationTemplatesPage createEmptyPage() { + return new ListApplicationTemplatesPage(null, null); + } + + @Override + protected ListApplicationTemplatesPage createPage( + @Nullable + PageContext< + ListApplicationTemplatesRequest, + ListApplicationTemplatesResponse, + ApplicationTemplate> + context, + @Nullable ListApplicationTemplatesResponse response) { + return new ListApplicationTemplatesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + @Nullable + PageContext< + ListApplicationTemplatesRequest, + ListApplicationTemplatesResponse, + ApplicationTemplate> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListApplicationTemplatesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListApplicationTemplatesRequest, + ListApplicationTemplatesResponse, + ApplicationTemplate, + ListApplicationTemplatesPage, + ListApplicationTemplatesFixedSizeCollection> { + + private ListApplicationTemplatesFixedSizeCollection( + @Nullable List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListApplicationTemplatesFixedSizeCollection createEmptyCollection() { + return new ListApplicationTemplatesFixedSizeCollection(null, 0); + } + + @Override + protected ListApplicationTemplatesFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { + return new ListApplicationTemplatesFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListComponentsPagedResponse + extends AbstractPagedListResponse< + ListComponentsRequest, + ListComponentsResponse, + Component, + ListComponentsPage, + ListComponentsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListComponentsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListComponentsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListComponentsPagedResponse(ListComponentsPage page) { + super(page, ListComponentsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListComponentsPage + extends AbstractPage< + ListComponentsRequest, ListComponentsResponse, Component, ListComponentsPage> { + + private ListComponentsPage( + @Nullable PageContext context, + @Nullable ListComponentsResponse response) { + super(context, response); + } + + private static ListComponentsPage createEmptyPage() { + return new ListComponentsPage(null, null); + } + + @Override + protected ListComponentsPage createPage( + @Nullable PageContext context, + @Nullable ListComponentsResponse response) { + return new ListComponentsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + @Nullable PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListComponentsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListComponentsRequest, + ListComponentsResponse, + Component, + ListComponentsPage, + ListComponentsFixedSizeCollection> { + + private ListComponentsFixedSizeCollection( + @Nullable List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListComponentsFixedSizeCollection createEmptyCollection() { + return new ListComponentsFixedSizeCollection(null, 0); + } + + @Override + protected ListComponentsFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { + return new ListComponentsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListConnectionsPagedResponse + extends AbstractPagedListResponse< + ListConnectionsRequest, + ListConnectionsResponse, + Connection, + ListConnectionsPage, + ListConnectionsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListConnectionsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListConnectionsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListConnectionsPagedResponse(ListConnectionsPage page) { + super(page, ListConnectionsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListConnectionsPage + extends AbstractPage< + ListConnectionsRequest, ListConnectionsResponse, Connection, ListConnectionsPage> { + + private ListConnectionsPage( + @Nullable PageContext context, + @Nullable ListConnectionsResponse response) { + super(context, response); + } + + private static ListConnectionsPage createEmptyPage() { + return new ListConnectionsPage(null, null); + } + + @Override + protected ListConnectionsPage createPage( + @Nullable PageContext context, + @Nullable ListConnectionsResponse response) { + return new ListConnectionsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + @Nullable PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListConnectionsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListConnectionsRequest, + ListConnectionsResponse, + Connection, + ListConnectionsPage, + ListConnectionsFixedSizeCollection> { + + private ListConnectionsFixedSizeCollection( + @Nullable List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListConnectionsFixedSizeCollection createEmptyCollection() { + return new ListConnectionsFixedSizeCollection(null, 0); + } + + @Override + protected ListConnectionsFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { + return new ListConnectionsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListApplicationTemplateRevisionsPagedResponse + extends AbstractPagedListResponse< + ListApplicationTemplateRevisionsRequest, + ListApplicationTemplateRevisionsResponse, + ApplicationTemplateRevision, + ListApplicationTemplateRevisionsPage, + ListApplicationTemplateRevisionsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListApplicationTemplateRevisionsRequest, + ListApplicationTemplateRevisionsResponse, + ApplicationTemplateRevision> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListApplicationTemplateRevisionsPage.createEmptyPage() + .createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListApplicationTemplateRevisionsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListApplicationTemplateRevisionsPagedResponse( + ListApplicationTemplateRevisionsPage page) { + super(page, ListApplicationTemplateRevisionsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListApplicationTemplateRevisionsPage + extends AbstractPage< + ListApplicationTemplateRevisionsRequest, + ListApplicationTemplateRevisionsResponse, + ApplicationTemplateRevision, + ListApplicationTemplateRevisionsPage> { + + private ListApplicationTemplateRevisionsPage( + @Nullable + PageContext< + ListApplicationTemplateRevisionsRequest, + ListApplicationTemplateRevisionsResponse, + ApplicationTemplateRevision> + context, + @Nullable ListApplicationTemplateRevisionsResponse response) { + super(context, response); + } + + private static ListApplicationTemplateRevisionsPage createEmptyPage() { + return new ListApplicationTemplateRevisionsPage(null, null); + } + + @Override + protected ListApplicationTemplateRevisionsPage createPage( + @Nullable + PageContext< + ListApplicationTemplateRevisionsRequest, + ListApplicationTemplateRevisionsResponse, + ApplicationTemplateRevision> + context, + @Nullable ListApplicationTemplateRevisionsResponse response) { + return new ListApplicationTemplateRevisionsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + @Nullable + PageContext< + ListApplicationTemplateRevisionsRequest, + ListApplicationTemplateRevisionsResponse, + ApplicationTemplateRevision> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListApplicationTemplateRevisionsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListApplicationTemplateRevisionsRequest, + ListApplicationTemplateRevisionsResponse, + ApplicationTemplateRevision, + ListApplicationTemplateRevisionsPage, + ListApplicationTemplateRevisionsFixedSizeCollection> { + + private ListApplicationTemplateRevisionsFixedSizeCollection( + @Nullable List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListApplicationTemplateRevisionsFixedSizeCollection createEmptyCollection() { + return new ListApplicationTemplateRevisionsFixedSizeCollection(null, 0); + } + + @Override + protected ListApplicationTemplateRevisionsFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { + return new ListApplicationTemplateRevisionsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListCatalogsPagedResponse + extends AbstractPagedListResponse< + ListCatalogsRequest, + ListCatalogsResponse, + Catalog, + ListCatalogsPage, + ListCatalogsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListCatalogsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListCatalogsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListCatalogsPagedResponse(ListCatalogsPage page) { + super(page, ListCatalogsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListCatalogsPage + extends AbstractPage { + + private ListCatalogsPage( + @Nullable PageContext context, + @Nullable ListCatalogsResponse response) { + super(context, response); + } + + private static ListCatalogsPage createEmptyPage() { + return new ListCatalogsPage(null, null); + } + + @Override + protected ListCatalogsPage createPage( + @Nullable PageContext context, + @Nullable ListCatalogsResponse response) { + return new ListCatalogsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + @Nullable PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListCatalogsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListCatalogsRequest, + ListCatalogsResponse, + Catalog, + ListCatalogsPage, + ListCatalogsFixedSizeCollection> { + + private ListCatalogsFixedSizeCollection( + @Nullable List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListCatalogsFixedSizeCollection createEmptyCollection() { + return new ListCatalogsFixedSizeCollection(null, 0); + } + + @Override + protected ListCatalogsFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { + return new ListCatalogsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListCatalogTemplatesPagedResponse + extends AbstractPagedListResponse< + ListCatalogTemplatesRequest, + ListCatalogTemplatesResponse, + CatalogTemplate, + ListCatalogTemplatesPage, + ListCatalogTemplatesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListCatalogTemplatesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListCatalogTemplatesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListCatalogTemplatesPagedResponse(ListCatalogTemplatesPage page) { + super(page, ListCatalogTemplatesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListCatalogTemplatesPage + extends AbstractPage< + ListCatalogTemplatesRequest, + ListCatalogTemplatesResponse, + CatalogTemplate, + ListCatalogTemplatesPage> { + + private ListCatalogTemplatesPage( + @Nullable + PageContext + context, + @Nullable ListCatalogTemplatesResponse response) { + super(context, response); + } + + private static ListCatalogTemplatesPage createEmptyPage() { + return new ListCatalogTemplatesPage(null, null); + } + + @Override + protected ListCatalogTemplatesPage createPage( + @Nullable + PageContext + context, + @Nullable ListCatalogTemplatesResponse response) { + return new ListCatalogTemplatesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + @Nullable + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListCatalogTemplatesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListCatalogTemplatesRequest, + ListCatalogTemplatesResponse, + CatalogTemplate, + ListCatalogTemplatesPage, + ListCatalogTemplatesFixedSizeCollection> { + + private ListCatalogTemplatesFixedSizeCollection( + @Nullable List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListCatalogTemplatesFixedSizeCollection createEmptyCollection() { + return new ListCatalogTemplatesFixedSizeCollection(null, 0); + } + + @Override + protected ListCatalogTemplatesFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { + return new ListCatalogTemplatesFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListSharesPagedResponse + extends AbstractPagedListResponse< + ListSharesRequest, + ListSharesResponse, + Share, + ListSharesPage, + ListSharesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListSharesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, input -> new ListSharesPagedResponse(input), MoreExecutors.directExecutor()); + } + + private ListSharesPagedResponse(ListSharesPage page) { + super(page, ListSharesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListSharesPage + extends AbstractPage { + + private ListSharesPage( + @Nullable PageContext context, + @Nullable ListSharesResponse response) { + super(context, response); + } + + private static ListSharesPage createEmptyPage() { + return new ListSharesPage(null, null); + } + + @Override + protected ListSharesPage createPage( + @Nullable PageContext context, + @Nullable ListSharesResponse response) { + return new ListSharesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + @Nullable PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListSharesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListSharesRequest, + ListSharesResponse, + Share, + ListSharesPage, + ListSharesFixedSizeCollection> { + + private ListSharesFixedSizeCollection( + @Nullable List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListSharesFixedSizeCollection createEmptyCollection() { + return new ListSharesFixedSizeCollection(null, 0); + } + + @Override + protected ListSharesFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { + return new ListSharesFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListSharedTemplatesPagedResponse + extends AbstractPagedListResponse< + ListSharedTemplatesRequest, + ListSharedTemplatesResponse, + SharedTemplate, + ListSharedTemplatesPage, + ListSharedTemplatesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListSharedTemplatesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListSharedTemplatesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListSharedTemplatesPagedResponse(ListSharedTemplatesPage page) { + super(page, ListSharedTemplatesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListSharedTemplatesPage + extends AbstractPage< + ListSharedTemplatesRequest, + ListSharedTemplatesResponse, + SharedTemplate, + ListSharedTemplatesPage> { + + private ListSharedTemplatesPage( + @Nullable + PageContext + context, + @Nullable ListSharedTemplatesResponse response) { + super(context, response); + } + + private static ListSharedTemplatesPage createEmptyPage() { + return new ListSharedTemplatesPage(null, null); + } + + @Override + protected ListSharedTemplatesPage createPage( + @Nullable + PageContext + context, + @Nullable ListSharedTemplatesResponse response) { + return new ListSharedTemplatesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + @Nullable + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListSharedTemplatesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListSharedTemplatesRequest, + ListSharedTemplatesResponse, + SharedTemplate, + ListSharedTemplatesPage, + ListSharedTemplatesFixedSizeCollection> { + + private ListSharedTemplatesFixedSizeCollection( + @Nullable List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListSharedTemplatesFixedSizeCollection createEmptyCollection() { + return new ListSharedTemplatesFixedSizeCollection(null, 0); + } + + @Override + protected ListSharedTemplatesFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { + return new ListSharedTemplatesFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListSharedTemplateRevisionsPagedResponse + extends AbstractPagedListResponse< + ListSharedTemplateRevisionsRequest, + ListSharedTemplateRevisionsResponse, + SharedTemplateRevision, + ListSharedTemplateRevisionsPage, + ListSharedTemplateRevisionsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListSharedTemplateRevisionsRequest, + ListSharedTemplateRevisionsResponse, + SharedTemplateRevision> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListSharedTemplateRevisionsPage.createEmptyPage() + .createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListSharedTemplateRevisionsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListSharedTemplateRevisionsPagedResponse(ListSharedTemplateRevisionsPage page) { + super(page, ListSharedTemplateRevisionsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListSharedTemplateRevisionsPage + extends AbstractPage< + ListSharedTemplateRevisionsRequest, + ListSharedTemplateRevisionsResponse, + SharedTemplateRevision, + ListSharedTemplateRevisionsPage> { + + private ListSharedTemplateRevisionsPage( + @Nullable + PageContext< + ListSharedTemplateRevisionsRequest, + ListSharedTemplateRevisionsResponse, + SharedTemplateRevision> + context, + @Nullable ListSharedTemplateRevisionsResponse response) { + super(context, response); + } + + private static ListSharedTemplateRevisionsPage createEmptyPage() { + return new ListSharedTemplateRevisionsPage(null, null); + } + + @Override + protected ListSharedTemplateRevisionsPage createPage( + @Nullable + PageContext< + ListSharedTemplateRevisionsRequest, + ListSharedTemplateRevisionsResponse, + SharedTemplateRevision> + context, + @Nullable ListSharedTemplateRevisionsResponse response) { + return new ListSharedTemplateRevisionsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + @Nullable + PageContext< + ListSharedTemplateRevisionsRequest, + ListSharedTemplateRevisionsResponse, + SharedTemplateRevision> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListSharedTemplateRevisionsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListSharedTemplateRevisionsRequest, + ListSharedTemplateRevisionsResponse, + SharedTemplateRevision, + ListSharedTemplateRevisionsPage, + ListSharedTemplateRevisionsFixedSizeCollection> { + + private ListSharedTemplateRevisionsFixedSizeCollection( + @Nullable List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListSharedTemplateRevisionsFixedSizeCollection createEmptyCollection() { + return new ListSharedTemplateRevisionsFixedSizeCollection(null, 0); + } + + @Override + protected ListSharedTemplateRevisionsFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { + return new ListSharedTemplateRevisionsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListCatalogTemplateRevisionsPagedResponse + extends AbstractPagedListResponse< + ListCatalogTemplateRevisionsRequest, + ListCatalogTemplateRevisionsResponse, + CatalogTemplateRevision, + ListCatalogTemplateRevisionsPage, + ListCatalogTemplateRevisionsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListCatalogTemplateRevisionsRequest, + ListCatalogTemplateRevisionsResponse, + CatalogTemplateRevision> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListCatalogTemplateRevisionsPage.createEmptyPage() + .createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListCatalogTemplateRevisionsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListCatalogTemplateRevisionsPagedResponse(ListCatalogTemplateRevisionsPage page) { + super(page, ListCatalogTemplateRevisionsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListCatalogTemplateRevisionsPage + extends AbstractPage< + ListCatalogTemplateRevisionsRequest, + ListCatalogTemplateRevisionsResponse, + CatalogTemplateRevision, + ListCatalogTemplateRevisionsPage> { + + private ListCatalogTemplateRevisionsPage( + @Nullable + PageContext< + ListCatalogTemplateRevisionsRequest, + ListCatalogTemplateRevisionsResponse, + CatalogTemplateRevision> + context, + @Nullable ListCatalogTemplateRevisionsResponse response) { + super(context, response); + } + + private static ListCatalogTemplateRevisionsPage createEmptyPage() { + return new ListCatalogTemplateRevisionsPage(null, null); + } + + @Override + protected ListCatalogTemplateRevisionsPage createPage( + @Nullable + PageContext< + ListCatalogTemplateRevisionsRequest, + ListCatalogTemplateRevisionsResponse, + CatalogTemplateRevision> + context, + @Nullable ListCatalogTemplateRevisionsResponse response) { + return new ListCatalogTemplateRevisionsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + @Nullable + PageContext< + ListCatalogTemplateRevisionsRequest, + ListCatalogTemplateRevisionsResponse, + CatalogTemplateRevision> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListCatalogTemplateRevisionsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListCatalogTemplateRevisionsRequest, + ListCatalogTemplateRevisionsResponse, + CatalogTemplateRevision, + ListCatalogTemplateRevisionsPage, + ListCatalogTemplateRevisionsFixedSizeCollection> { + + private ListCatalogTemplateRevisionsFixedSizeCollection( + @Nullable List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListCatalogTemplateRevisionsFixedSizeCollection createEmptyCollection() { + return new ListCatalogTemplateRevisionsFixedSizeCollection(null, 0); + } + + @Override + protected ListCatalogTemplateRevisionsFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { + return new ListCatalogTemplateRevisionsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListApplicationsPagedResponse + extends AbstractPagedListResponse< + ListApplicationsRequest, + ListApplicationsResponse, + Application, + ListApplicationsPage, + ListApplicationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListApplicationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListApplicationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListApplicationsPagedResponse(ListApplicationsPage page) { + super(page, ListApplicationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListApplicationsPage + extends AbstractPage< + ListApplicationsRequest, ListApplicationsResponse, Application, ListApplicationsPage> { + + private ListApplicationsPage( + @Nullable PageContext + context, + @Nullable ListApplicationsResponse response) { + super(context, response); + } + + private static ListApplicationsPage createEmptyPage() { + return new ListApplicationsPage(null, null); + } + + @Override + protected ListApplicationsPage createPage( + @Nullable PageContext + context, + @Nullable ListApplicationsResponse response) { + return new ListApplicationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + @Nullable PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListApplicationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListApplicationsRequest, + ListApplicationsResponse, + Application, + ListApplicationsPage, + ListApplicationsFixedSizeCollection> { + + private ListApplicationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListApplicationsFixedSizeCollection createEmptyCollection() { + return new ListApplicationsFixedSizeCollection(null, 0); + } + + @Override + protected ListApplicationsFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { + return new ListApplicationsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListPoliciesPagedResponse + extends AbstractPagedListResponse< + ListPoliciesRequest, + ListPoliciesResponse, + com.google.cloud.designcenter.v1.Policy, + ListPoliciesPage, + ListPoliciesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListPoliciesRequest, ListPoliciesResponse, com.google.cloud.designcenter.v1.Policy> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListPoliciesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListPoliciesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListPoliciesPagedResponse(ListPoliciesPage page) { + super(page, ListPoliciesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListPoliciesPage + extends AbstractPage< + ListPoliciesRequest, + ListPoliciesResponse, + com.google.cloud.designcenter.v1.Policy, + ListPoliciesPage> { + + private ListPoliciesPage( + @Nullable + PageContext< + ListPoliciesRequest, ListPoliciesResponse, com.google.cloud.designcenter.v1.Policy> + context, + @Nullable ListPoliciesResponse response) { + super(context, response); + } + + private static ListPoliciesPage createEmptyPage() { + return new ListPoliciesPage(null, null); + } + + @Override + protected ListPoliciesPage createPage( + @Nullable + PageContext< + ListPoliciesRequest, ListPoliciesResponse, com.google.cloud.designcenter.v1.Policy> + context, + @Nullable ListPoliciesResponse response) { + return new ListPoliciesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + @Nullable + PageContext< + ListPoliciesRequest, ListPoliciesResponse, com.google.cloud.designcenter.v1.Policy> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListPoliciesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListPoliciesRequest, + ListPoliciesResponse, + com.google.cloud.designcenter.v1.Policy, + ListPoliciesPage, + ListPoliciesFixedSizeCollection> { + + private ListPoliciesFixedSizeCollection( + @Nullable List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListPoliciesFixedSizeCollection createEmptyCollection() { + return new ListPoliciesFixedSizeCollection(null, 0); + } + + @Override + protected ListPoliciesFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { + return new ListPoliciesFixedSizeCollection(pages, collectionSize); + } + } + + public static class FetchFrameworksPagedResponse + extends AbstractPagedListResponse< + FetchFrameworksRequest, + FetchFrameworksResponse, + Framework, + FetchFrameworksPage, + FetchFrameworksFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + FetchFrameworksPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new FetchFrameworksPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private FetchFrameworksPagedResponse(FetchFrameworksPage page) { + super(page, FetchFrameworksFixedSizeCollection.createEmptyCollection()); + } + } + + public static class FetchFrameworksPage + extends AbstractPage< + FetchFrameworksRequest, FetchFrameworksResponse, Framework, FetchFrameworksPage> { + + private FetchFrameworksPage( + @Nullable PageContext context, + @Nullable FetchFrameworksResponse response) { + super(context, response); + } + + private static FetchFrameworksPage createEmptyPage() { + return new FetchFrameworksPage(null, null); + } + + @Override + protected FetchFrameworksPage createPage( + @Nullable PageContext context, + @Nullable FetchFrameworksResponse response) { + return new FetchFrameworksPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + @Nullable PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class FetchFrameworksFixedSizeCollection + extends AbstractFixedSizeCollection< + FetchFrameworksRequest, + FetchFrameworksResponse, + Framework, + FetchFrameworksPage, + FetchFrameworksFixedSizeCollection> { + + private FetchFrameworksFixedSizeCollection( + @Nullable List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static FetchFrameworksFixedSizeCollection createEmptyCollection() { + return new FetchFrameworksFixedSizeCollection(null, 0); + } + + @Override + protected FetchFrameworksFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { + return new FetchFrameworksFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListApplicationTemplateSystemRevisionsPagedResponse + extends AbstractPagedListResponse< + ListApplicationTemplateSystemRevisionsRequest, + ListApplicationTemplateSystemRevisionsResponse, + ApplicationTemplateSystemRevision, + ListApplicationTemplateSystemRevisionsPage, + ListApplicationTemplateSystemRevisionsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListApplicationTemplateSystemRevisionsRequest, + ListApplicationTemplateSystemRevisionsResponse, + ApplicationTemplateSystemRevision> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListApplicationTemplateSystemRevisionsPage.createEmptyPage() + .createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListApplicationTemplateSystemRevisionsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListApplicationTemplateSystemRevisionsPagedResponse( + ListApplicationTemplateSystemRevisionsPage page) { + super( + page, ListApplicationTemplateSystemRevisionsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListApplicationTemplateSystemRevisionsPage + extends AbstractPage< + ListApplicationTemplateSystemRevisionsRequest, + ListApplicationTemplateSystemRevisionsResponse, + ApplicationTemplateSystemRevision, + ListApplicationTemplateSystemRevisionsPage> { + + private ListApplicationTemplateSystemRevisionsPage( + @Nullable + PageContext< + ListApplicationTemplateSystemRevisionsRequest, + ListApplicationTemplateSystemRevisionsResponse, + ApplicationTemplateSystemRevision> + context, + @Nullable ListApplicationTemplateSystemRevisionsResponse response) { + super(context, response); + } + + private static ListApplicationTemplateSystemRevisionsPage createEmptyPage() { + return new ListApplicationTemplateSystemRevisionsPage(null, null); + } + + @Override + protected ListApplicationTemplateSystemRevisionsPage createPage( + @Nullable + PageContext< + ListApplicationTemplateSystemRevisionsRequest, + ListApplicationTemplateSystemRevisionsResponse, + ApplicationTemplateSystemRevision> + context, + @Nullable ListApplicationTemplateSystemRevisionsResponse response) { + return new ListApplicationTemplateSystemRevisionsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + @Nullable + PageContext< + ListApplicationTemplateSystemRevisionsRequest, + ListApplicationTemplateSystemRevisionsResponse, + ApplicationTemplateSystemRevision> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListApplicationTemplateSystemRevisionsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListApplicationTemplateSystemRevisionsRequest, + ListApplicationTemplateSystemRevisionsResponse, + ApplicationTemplateSystemRevision, + ListApplicationTemplateSystemRevisionsPage, + ListApplicationTemplateSystemRevisionsFixedSizeCollection> { + + private ListApplicationTemplateSystemRevisionsFixedSizeCollection( + @Nullable List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListApplicationTemplateSystemRevisionsFixedSizeCollection + createEmptyCollection() { + return new ListApplicationTemplateSystemRevisionsFixedSizeCollection(null, 0); + } + + @Override + protected ListApplicationTemplateSystemRevisionsFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { + return new ListApplicationTemplateSystemRevisionsFixedSizeCollection(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( + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + @Nullable PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-designcenter/google-cloud-designcenter/src/main/java/com/google/cloud/designcenter/v1/DesignCenterSettings.java b/java-designcenter/google-cloud-designcenter/src/main/java/com/google/cloud/designcenter/v1/DesignCenterSettings.java new file mode 100644 index 000000000000..83180e6faf45 --- /dev/null +++ b/java-designcenter/google-cloud-designcenter/src/main/java/com/google/cloud/designcenter/v1/DesignCenterSettings.java @@ -0,0 +1,1696 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1; + +import static com.google.cloud.designcenter.v1.DesignCenterClient.FetchFrameworksPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListApplicationTemplateRevisionsPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListApplicationTemplateSystemRevisionsPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListApplicationTemplatesPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListApplicationsPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListCatalogTemplateRevisionsPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListCatalogTemplatesPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListCatalogsPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListComponentsPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListConnectionsPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListLocationsPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListPoliciesPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListSharedTemplateRevisionsPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListSharedTemplatesPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListSharesPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListSpacesPagedResponse; + +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.designcenter.v1.stub.DesignCenterStubSettings; +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.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link DesignCenterClient}. + * + *

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

    + *
  • The default service address (designcenter.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 + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getSpace: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * DesignCenterSettings.Builder designCenterSettingsBuilder = DesignCenterSettings.newBuilder();
+ * designCenterSettingsBuilder
+ *     .getSpaceSettings()
+ *     .setRetrySettings(
+ *         designCenterSettingsBuilder
+ *             .getSpaceSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * DesignCenterSettings designCenterSettings = designCenterSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + * + *

To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for snapshotApplicationTemplate: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * DesignCenterSettings.Builder designCenterSettingsBuilder = DesignCenterSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ *     OperationalTimedPollAlgorithm.create(
+ *         RetrySettings.newBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ *             .setRetryDelayMultiplier(1.5)
+ *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ *             .setTotalTimeoutDuration(Duration.ofHours(24))
+ *             .build());
+ * designCenterSettingsBuilder
+ *     .createClusterOperationSettings()
+ *     .setPollingAlgorithm(timedRetryAlgorithm)
+ *     .build();
+ * }
+ */ +@NullMarked +@Generated("by gapic-generator-java") +public class DesignCenterSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to getSpace. */ + public UnaryCallSettings getSpaceSettings() { + return ((DesignCenterStubSettings) getStubSettings()).getSpaceSettings(); + } + + /** Returns the object with the settings used for calls to listSpaces. */ + public PagedCallSettings + listSpacesSettings() { + return ((DesignCenterStubSettings) getStubSettings()).listSpacesSettings(); + } + + /** Returns the object with the settings used for calls to createSpace. */ + public UnaryCallSettings createSpaceSettings() { + return ((DesignCenterStubSettings) getStubSettings()).createSpaceSettings(); + } + + /** Returns the object with the settings used for calls to updateSpace. */ + public UnaryCallSettings updateSpaceSettings() { + return ((DesignCenterStubSettings) getStubSettings()).updateSpaceSettings(); + } + + /** Returns the object with the settings used for calls to deleteSpace. */ + public UnaryCallSettings deleteSpaceSettings() { + return ((DesignCenterStubSettings) getStubSettings()).deleteSpaceSettings(); + } + + /** Returns the object with the settings used for calls to getApplicationTemplate. */ + public UnaryCallSettings + getApplicationTemplateSettings() { + return ((DesignCenterStubSettings) getStubSettings()).getApplicationTemplateSettings(); + } + + /** Returns the object with the settings used for calls to listApplicationTemplates. */ + public PagedCallSettings< + ListApplicationTemplatesRequest, + ListApplicationTemplatesResponse, + ListApplicationTemplatesPagedResponse> + listApplicationTemplatesSettings() { + return ((DesignCenterStubSettings) getStubSettings()).listApplicationTemplatesSettings(); + } + + /** Returns the object with the settings used for calls to createApplicationTemplate. */ + public UnaryCallSettings + createApplicationTemplateSettings() { + return ((DesignCenterStubSettings) getStubSettings()).createApplicationTemplateSettings(); + } + + /** Returns the object with the settings used for calls to updateApplicationTemplate. */ + public UnaryCallSettings + updateApplicationTemplateSettings() { + return ((DesignCenterStubSettings) getStubSettings()).updateApplicationTemplateSettings(); + } + + /** Returns the object with the settings used for calls to importApplicationTemplate. */ + public UnaryCallSettings + importApplicationTemplateSettings() { + return ((DesignCenterStubSettings) getStubSettings()).importApplicationTemplateSettings(); + } + + /** Returns the object with the settings used for calls to deleteApplicationTemplate. */ + public UnaryCallSettings + deleteApplicationTemplateSettings() { + return ((DesignCenterStubSettings) getStubSettings()).deleteApplicationTemplateSettings(); + } + + /** Returns the object with the settings used for calls to commitApplicationTemplate. */ + public UnaryCallSettings + commitApplicationTemplateSettings() { + return ((DesignCenterStubSettings) getStubSettings()).commitApplicationTemplateSettings(); + } + + /** Returns the object with the settings used for calls to snapshotApplicationTemplate. */ + public UnaryCallSettings + snapshotApplicationTemplateSettings() { + return ((DesignCenterStubSettings) getStubSettings()).snapshotApplicationTemplateSettings(); + } + + /** Returns the object with the settings used for calls to snapshotApplicationTemplate. */ + public OperationCallSettings< + SnapshotApplicationTemplateRequest, + SnapshotApplicationTemplateResponse, + OperationMetadata> + snapshotApplicationTemplateOperationSettings() { + return ((DesignCenterStubSettings) getStubSettings()) + .snapshotApplicationTemplateOperationSettings(); + } + + /** Returns the object with the settings used for calls to generateApplicationTemplateIaC. */ + public UnaryCallSettings< + GenerateApplicationTemplateIaCRequest, GenerateApplicationTemplateIaCResponse> + generateApplicationTemplateIaCSettings() { + return ((DesignCenterStubSettings) getStubSettings()).generateApplicationTemplateIaCSettings(); + } + + /** Returns the object with the settings used for calls to exportApplicationTemplateIaC. */ + public UnaryCallSettings + exportApplicationTemplateIaCSettings() { + return ((DesignCenterStubSettings) getStubSettings()).exportApplicationTemplateIaCSettings(); + } + + /** Returns the object with the settings used for calls to exportApplicationTemplateIaC. */ + public OperationCallSettings< + ExportApplicationTemplateIaCRequest, + ExportApplicationTemplateIaCResponse, + OperationMetadata> + exportApplicationTemplateIaCOperationSettings() { + return ((DesignCenterStubSettings) getStubSettings()) + .exportApplicationTemplateIaCOperationSettings(); + } + + /** + * Returns the object with the settings used for calls to generateApplicationTemplateRevisionIaC. + */ + public UnaryCallSettings< + GenerateApplicationTemplateRevisionIaCRequest, + GenerateApplicationTemplateRevisionIaCResponse> + generateApplicationTemplateRevisionIaCSettings() { + return ((DesignCenterStubSettings) getStubSettings()) + .generateApplicationTemplateRevisionIaCSettings(); + } + + /** + * Returns the object with the settings used for calls to exportApplicationTemplateRevisionIaC. + */ + public UnaryCallSettings + exportApplicationTemplateRevisionIaCSettings() { + return ((DesignCenterStubSettings) getStubSettings()) + .exportApplicationTemplateRevisionIaCSettings(); + } + + /** + * Returns the object with the settings used for calls to exportApplicationTemplateRevisionIaC. + */ + public OperationCallSettings< + ExportApplicationTemplateRevisionIaCRequest, + ExportApplicationTemplateRevisionIaCResponse, + OperationMetadata> + exportApplicationTemplateRevisionIaCOperationSettings() { + return ((DesignCenterStubSettings) getStubSettings()) + .exportApplicationTemplateRevisionIaCOperationSettings(); + } + + /** Returns the object with the settings used for calls to getComponent. */ + public UnaryCallSettings getComponentSettings() { + return ((DesignCenterStubSettings) getStubSettings()).getComponentSettings(); + } + + /** Returns the object with the settings used for calls to listComponents. */ + public PagedCallSettings< + ListComponentsRequest, ListComponentsResponse, ListComponentsPagedResponse> + listComponentsSettings() { + return ((DesignCenterStubSettings) getStubSettings()).listComponentsSettings(); + } + + /** Returns the object with the settings used for calls to createComponent. */ + public UnaryCallSettings createComponentSettings() { + return ((DesignCenterStubSettings) getStubSettings()).createComponentSettings(); + } + + /** Returns the object with the settings used for calls to updateComponent. */ + public UnaryCallSettings updateComponentSettings() { + return ((DesignCenterStubSettings) getStubSettings()).updateComponentSettings(); + } + + /** Returns the object with the settings used for calls to deleteComponent. */ + public UnaryCallSettings deleteComponentSettings() { + return ((DesignCenterStubSettings) getStubSettings()).deleteComponentSettings(); + } + + /** Returns the object with the settings used for calls to getConnection. */ + public UnaryCallSettings getConnectionSettings() { + return ((DesignCenterStubSettings) getStubSettings()).getConnectionSettings(); + } + + /** Returns the object with the settings used for calls to listConnections. */ + public PagedCallSettings< + ListConnectionsRequest, ListConnectionsResponse, ListConnectionsPagedResponse> + listConnectionsSettings() { + return ((DesignCenterStubSettings) getStubSettings()).listConnectionsSettings(); + } + + /** Returns the object with the settings used for calls to createConnection. */ + public UnaryCallSettings createConnectionSettings() { + return ((DesignCenterStubSettings) getStubSettings()).createConnectionSettings(); + } + + /** Returns the object with the settings used for calls to updateConnection. */ + public UnaryCallSettings updateConnectionSettings() { + return ((DesignCenterStubSettings) getStubSettings()).updateConnectionSettings(); + } + + /** Returns the object with the settings used for calls to deleteConnection. */ + public UnaryCallSettings deleteConnectionSettings() { + return ((DesignCenterStubSettings) getStubSettings()).deleteConnectionSettings(); + } + + /** Returns the object with the settings used for calls to getApplicationTemplateRevision. */ + public UnaryCallSettings + getApplicationTemplateRevisionSettings() { + return ((DesignCenterStubSettings) getStubSettings()).getApplicationTemplateRevisionSettings(); + } + + /** Returns the object with the settings used for calls to listApplicationTemplateRevisions. */ + public PagedCallSettings< + ListApplicationTemplateRevisionsRequest, + ListApplicationTemplateRevisionsResponse, + ListApplicationTemplateRevisionsPagedResponse> + listApplicationTemplateRevisionsSettings() { + return ((DesignCenterStubSettings) getStubSettings()) + .listApplicationTemplateRevisionsSettings(); + } + + /** Returns the object with the settings used for calls to deleteApplicationTemplateRevision. */ + public UnaryCallSettings + deleteApplicationTemplateRevisionSettings() { + return ((DesignCenterStubSettings) getStubSettings()) + .deleteApplicationTemplateRevisionSettings(); + } + + /** Returns the object with the settings used for calls to getCatalog. */ + public UnaryCallSettings getCatalogSettings() { + return ((DesignCenterStubSettings) getStubSettings()).getCatalogSettings(); + } + + /** Returns the object with the settings used for calls to listCatalogs. */ + public PagedCallSettings + listCatalogsSettings() { + return ((DesignCenterStubSettings) getStubSettings()).listCatalogsSettings(); + } + + /** Returns the object with the settings used for calls to createCatalog. */ + public UnaryCallSettings createCatalogSettings() { + return ((DesignCenterStubSettings) getStubSettings()).createCatalogSettings(); + } + + /** Returns the object with the settings used for calls to updateCatalog. */ + public UnaryCallSettings updateCatalogSettings() { + return ((DesignCenterStubSettings) getStubSettings()).updateCatalogSettings(); + } + + /** Returns the object with the settings used for calls to deleteCatalog. */ + public UnaryCallSettings deleteCatalogSettings() { + return ((DesignCenterStubSettings) getStubSettings()).deleteCatalogSettings(); + } + + /** Returns the object with the settings used for calls to deleteCatalog. */ + public OperationCallSettings + deleteCatalogOperationSettings() { + return ((DesignCenterStubSettings) getStubSettings()).deleteCatalogOperationSettings(); + } + + /** Returns the object with the settings used for calls to createCatalogTemplate. */ + public UnaryCallSettings + createCatalogTemplateSettings() { + return ((DesignCenterStubSettings) getStubSettings()).createCatalogTemplateSettings(); + } + + /** Returns the object with the settings used for calls to getCatalogTemplate. */ + public UnaryCallSettings + getCatalogTemplateSettings() { + return ((DesignCenterStubSettings) getStubSettings()).getCatalogTemplateSettings(); + } + + /** Returns the object with the settings used for calls to listCatalogTemplates. */ + public PagedCallSettings< + ListCatalogTemplatesRequest, + ListCatalogTemplatesResponse, + ListCatalogTemplatesPagedResponse> + listCatalogTemplatesSettings() { + return ((DesignCenterStubSettings) getStubSettings()).listCatalogTemplatesSettings(); + } + + /** Returns the object with the settings used for calls to updateCatalogTemplate. */ + public UnaryCallSettings + updateCatalogTemplateSettings() { + return ((DesignCenterStubSettings) getStubSettings()).updateCatalogTemplateSettings(); + } + + /** Returns the object with the settings used for calls to deleteCatalogTemplate. */ + public UnaryCallSettings + deleteCatalogTemplateSettings() { + return ((DesignCenterStubSettings) getStubSettings()).deleteCatalogTemplateSettings(); + } + + /** Returns the object with the settings used for calls to deleteCatalogTemplate. */ + public OperationCallSettings + deleteCatalogTemplateOperationSettings() { + return ((DesignCenterStubSettings) getStubSettings()).deleteCatalogTemplateOperationSettings(); + } + + /** Returns the object with the settings used for calls to createShare. */ + public UnaryCallSettings createShareSettings() { + return ((DesignCenterStubSettings) getStubSettings()).createShareSettings(); + } + + /** Returns the object with the settings used for calls to createShare. */ + public OperationCallSettings + createShareOperationSettings() { + return ((DesignCenterStubSettings) getStubSettings()).createShareOperationSettings(); + } + + /** Returns the object with the settings used for calls to listShares. */ + public PagedCallSettings + listSharesSettings() { + return ((DesignCenterStubSettings) getStubSettings()).listSharesSettings(); + } + + /** Returns the object with the settings used for calls to getShare. */ + public UnaryCallSettings getShareSettings() { + return ((DesignCenterStubSettings) getStubSettings()).getShareSettings(); + } + + /** Returns the object with the settings used for calls to deleteShare. */ + public UnaryCallSettings deleteShareSettings() { + return ((DesignCenterStubSettings) getStubSettings()).deleteShareSettings(); + } + + /** Returns the object with the settings used for calls to deleteShare. */ + public OperationCallSettings + deleteShareOperationSettings() { + return ((DesignCenterStubSettings) getStubSettings()).deleteShareOperationSettings(); + } + + /** Returns the object with the settings used for calls to syncShare. */ + public UnaryCallSettings syncShareSettings() { + return ((DesignCenterStubSettings) getStubSettings()).syncShareSettings(); + } + + /** Returns the object with the settings used for calls to syncShare. */ + public OperationCallSettings + syncShareOperationSettings() { + return ((DesignCenterStubSettings) getStubSettings()).syncShareOperationSettings(); + } + + /** Returns the object with the settings used for calls to getSharedTemplate. */ + public UnaryCallSettings getSharedTemplateSettings() { + return ((DesignCenterStubSettings) getStubSettings()).getSharedTemplateSettings(); + } + + /** Returns the object with the settings used for calls to listSharedTemplates. */ + public PagedCallSettings< + ListSharedTemplatesRequest, ListSharedTemplatesResponse, ListSharedTemplatesPagedResponse> + listSharedTemplatesSettings() { + return ((DesignCenterStubSettings) getStubSettings()).listSharedTemplatesSettings(); + } + + /** Returns the object with the settings used for calls to getSharedTemplateRevision. */ + public UnaryCallSettings + getSharedTemplateRevisionSettings() { + return ((DesignCenterStubSettings) getStubSettings()).getSharedTemplateRevisionSettings(); + } + + /** Returns the object with the settings used for calls to listSharedTemplateRevisions. */ + public PagedCallSettings< + ListSharedTemplateRevisionsRequest, + ListSharedTemplateRevisionsResponse, + ListSharedTemplateRevisionsPagedResponse> + listSharedTemplateRevisionsSettings() { + return ((DesignCenterStubSettings) getStubSettings()).listSharedTemplateRevisionsSettings(); + } + + /** Returns the object with the settings used for calls to createCatalogTemplateRevision. */ + public UnaryCallSettings + createCatalogTemplateRevisionSettings() { + return ((DesignCenterStubSettings) getStubSettings()).createCatalogTemplateRevisionSettings(); + } + + /** Returns the object with the settings used for calls to createCatalogTemplateRevision. */ + public OperationCallSettings< + CreateCatalogTemplateRevisionRequest, CatalogTemplateRevision, OperationMetadata> + createCatalogTemplateRevisionOperationSettings() { + return ((DesignCenterStubSettings) getStubSettings()) + .createCatalogTemplateRevisionOperationSettings(); + } + + /** Returns the object with the settings used for calls to getCatalogTemplateRevision. */ + public UnaryCallSettings + getCatalogTemplateRevisionSettings() { + return ((DesignCenterStubSettings) getStubSettings()).getCatalogTemplateRevisionSettings(); + } + + /** Returns the object with the settings used for calls to listCatalogTemplateRevisions. */ + public PagedCallSettings< + ListCatalogTemplateRevisionsRequest, + ListCatalogTemplateRevisionsResponse, + ListCatalogTemplateRevisionsPagedResponse> + listCatalogTemplateRevisionsSettings() { + return ((DesignCenterStubSettings) getStubSettings()).listCatalogTemplateRevisionsSettings(); + } + + /** Returns the object with the settings used for calls to deleteCatalogTemplateRevision. */ + public UnaryCallSettings + deleteCatalogTemplateRevisionSettings() { + return ((DesignCenterStubSettings) getStubSettings()).deleteCatalogTemplateRevisionSettings(); + } + + /** Returns the object with the settings used for calls to deleteCatalogTemplateRevision. */ + public OperationCallSettings + deleteCatalogTemplateRevisionOperationSettings() { + return ((DesignCenterStubSettings) getStubSettings()) + .deleteCatalogTemplateRevisionOperationSettings(); + } + + /** Returns the object with the settings used for calls to createApplication. */ + public UnaryCallSettings createApplicationSettings() { + return ((DesignCenterStubSettings) getStubSettings()).createApplicationSettings(); + } + + /** Returns the object with the settings used for calls to getApplication. */ + public UnaryCallSettings getApplicationSettings() { + return ((DesignCenterStubSettings) getStubSettings()).getApplicationSettings(); + } + + /** Returns the object with the settings used for calls to listApplications. */ + public PagedCallSettings< + ListApplicationsRequest, ListApplicationsResponse, ListApplicationsPagedResponse> + listApplicationsSettings() { + return ((DesignCenterStubSettings) getStubSettings()).listApplicationsSettings(); + } + + /** Returns the object with the settings used for calls to updateApplication. */ + public UnaryCallSettings updateApplicationSettings() { + return ((DesignCenterStubSettings) getStubSettings()).updateApplicationSettings(); + } + + /** Returns the object with the settings used for calls to deleteApplication. */ + public UnaryCallSettings deleteApplicationSettings() { + return ((DesignCenterStubSettings) getStubSettings()).deleteApplicationSettings(); + } + + /** Returns the object with the settings used for calls to deleteApplication. */ + public OperationCallSettings + deleteApplicationOperationSettings() { + return ((DesignCenterStubSettings) getStubSettings()).deleteApplicationOperationSettings(); + } + + /** Returns the object with the settings used for calls to deployApplication. */ + public UnaryCallSettings deployApplicationSettings() { + return ((DesignCenterStubSettings) getStubSettings()).deployApplicationSettings(); + } + + /** Returns the object with the settings used for calls to deployApplication. */ + public OperationCallSettings< + DeployApplicationRequest, DeployApplicationResponse, OperationMetadata> + deployApplicationOperationSettings() { + return ((DesignCenterStubSettings) getStubSettings()).deployApplicationOperationSettings(); + } + + /** Returns the object with the settings used for calls to previewApplication. */ + public UnaryCallSettings previewApplicationSettings() { + return ((DesignCenterStubSettings) getStubSettings()).previewApplicationSettings(); + } + + /** Returns the object with the settings used for calls to previewApplication. */ + public OperationCallSettings< + PreviewApplicationRequest, PreviewApplicationResponse, OperationMetadata> + previewApplicationOperationSettings() { + return ((DesignCenterStubSettings) getStubSettings()).previewApplicationOperationSettings(); + } + + /** Returns the object with the settings used for calls to fetchApplicationAssessmentReport. */ + public UnaryCallSettings< + FetchApplicationAssessmentReportRequest, FetchApplicationAssessmentReportResponse> + fetchApplicationAssessmentReportSettings() { + return ((DesignCenterStubSettings) getStubSettings()) + .fetchApplicationAssessmentReportSettings(); + } + + /** Returns the object with the settings used for calls to generateApplicationAssessmentReport. */ + public UnaryCallSettings + generateApplicationAssessmentReportSettings() { + return ((DesignCenterStubSettings) getStubSettings()) + .generateApplicationAssessmentReportSettings(); + } + + /** Returns the object with the settings used for calls to generateApplicationAssessmentReport. */ + public OperationCallSettings< + GenerateApplicationAssessmentReportRequest, + GenerateApplicationAssessmentReportResponse, + OperationMetadata> + generateApplicationAssessmentReportOperationSettings() { + return ((DesignCenterStubSettings) getStubSettings()) + .generateApplicationAssessmentReportOperationSettings(); + } + + /** + * Returns the object with the settings used for calls to + * generateApplicationTemplateAssessmentReport. + */ + public UnaryCallSettings + generateApplicationTemplateAssessmentReportSettings() { + return ((DesignCenterStubSettings) getStubSettings()) + .generateApplicationTemplateAssessmentReportSettings(); + } + + /** + * Returns the object with the settings used for calls to + * generateApplicationTemplateAssessmentReport. + */ + public OperationCallSettings< + GenerateApplicationTemplateAssessmentReportRequest, + GenerateApplicationTemplateAssessmentReportResponse, + OperationMetadata> + generateApplicationTemplateAssessmentReportOperationSettings() { + return ((DesignCenterStubSettings) getStubSettings()) + .generateApplicationTemplateAssessmentReportOperationSettings(); + } + + /** + * Returns the object with the settings used for calls to generateAssessmentReport. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated + public UnaryCallSettings + generateAssessmentReportSettings() { + return ((DesignCenterStubSettings) getStubSettings()).generateAssessmentReportSettings(); + } + + /** + * Returns the object with the settings used for calls to generateAssessmentReport. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated + public OperationCallSettings< + GenerateAssessmentReportRequest, GenerateAssessmentReportResponse, OperationMetadata> + generateAssessmentReportOperationSettings() { + return ((DesignCenterStubSettings) getStubSettings()) + .generateAssessmentReportOperationSettings(); + } + + /** + * Returns the object with the settings used for calls to generateTerraformPlanAssessmentReport. + */ + public UnaryCallSettings + generateTerraformPlanAssessmentReportSettings() { + return ((DesignCenterStubSettings) getStubSettings()) + .generateTerraformPlanAssessmentReportSettings(); + } + + /** + * Returns the object with the settings used for calls to generateTerraformPlanAssessmentReport. + */ + public OperationCallSettings< + GenerateTerraformPlanAssessmentReportRequest, + GenerateTerraformPlanAssessmentReportResponse, + OperationMetadata> + generateTerraformPlanAssessmentReportOperationSettings() { + return ((DesignCenterStubSettings) getStubSettings()) + .generateTerraformPlanAssessmentReportOperationSettings(); + } + + /** Returns the object with the settings used for calls to getPolicy. */ + public UnaryCallSettings + getPolicySettings() { + return ((DesignCenterStubSettings) getStubSettings()).getPolicySettings(); + } + + /** Returns the object with the settings used for calls to listPolicies. */ + public PagedCallSettings + listPoliciesSettings() { + return ((DesignCenterStubSettings) getStubSettings()).listPoliciesSettings(); + } + + /** Returns the object with the settings used for calls to createPolicy. */ + public UnaryCallSettings + createPolicySettings() { + return ((DesignCenterStubSettings) getStubSettings()).createPolicySettings(); + } + + /** Returns the object with the settings used for calls to updatePolicy. */ + public UnaryCallSettings + updatePolicySettings() { + return ((DesignCenterStubSettings) getStubSettings()).updatePolicySettings(); + } + + /** Returns the object with the settings used for calls to deletePolicy. */ + public UnaryCallSettings deletePolicySettings() { + return ((DesignCenterStubSettings) getStubSettings()).deletePolicySettings(); + } + + /** Returns the object with the settings used for calls to fetchFrameworks. */ + public PagedCallSettings< + FetchFrameworksRequest, FetchFrameworksResponse, FetchFrameworksPagedResponse> + fetchFrameworksSettings() { + return ((DesignCenterStubSettings) getStubSettings()).fetchFrameworksSettings(); + } + + /** Returns the object with the settings used for calls to generateApplicationIaC. */ + public UnaryCallSettings + generateApplicationIaCSettings() { + return ((DesignCenterStubSettings) getStubSettings()).generateApplicationIaCSettings(); + } + + /** Returns the object with the settings used for calls to exportApplicationIaC. */ + public UnaryCallSettings exportApplicationIaCSettings() { + return ((DesignCenterStubSettings) getStubSettings()).exportApplicationIaCSettings(); + } + + /** Returns the object with the settings used for calls to exportApplicationIaC. */ + public OperationCallSettings< + ExportApplicationIaCRequest, ExportApplicationIaCResponse, OperationMetadata> + exportApplicationIaCOperationSettings() { + return ((DesignCenterStubSettings) getStubSettings()).exportApplicationIaCOperationSettings(); + } + + /** Returns the object with the settings used for calls to importApplicationTemplateIaC. */ + public UnaryCallSettings< + ImportApplicationTemplateIaCRequest, ImportApplicationTemplateIaCResponse> + importApplicationTemplateIaCSettings() { + return ((DesignCenterStubSettings) getStubSettings()).importApplicationTemplateIaCSettings(); + } + + /** Returns the object with the settings used for calls to ingestApplicationTemplateIaC. */ + public UnaryCallSettings + ingestApplicationTemplateIaCSettings() { + return ((DesignCenterStubSettings) getStubSettings()).ingestApplicationTemplateIaCSettings(); + } + + /** Returns the object with the settings used for calls to ingestApplicationTemplateIaC. */ + public OperationCallSettings< + IngestApplicationTemplateIaCRequest, + IngestApplicationTemplateIaCResponse, + OperationMetadata> + ingestApplicationTemplateIaCOperationSettings() { + return ((DesignCenterStubSettings) getStubSettings()) + .ingestApplicationTemplateIaCOperationSettings(); + } + + /** Returns the object with the settings used for calls to importApplicationIaC. */ + public UnaryCallSettings + importApplicationIaCSettings() { + return ((DesignCenterStubSettings) getStubSettings()).importApplicationIaCSettings(); + } + + /** Returns the object with the settings used for calls to registerAppHubApplicationResources. */ + public UnaryCallSettings + registerAppHubApplicationResourcesSettings() { + return ((DesignCenterStubSettings) getStubSettings()) + .registerAppHubApplicationResourcesSettings(); + } + + /** Returns the object with the settings used for calls to registerAppHubApplicationResources. */ + public OperationCallSettings< + RegisterAppHubApplicationResourcesRequest, + RegisterAppHubApplicationResourcesResponse, + OperationMetadata> + registerAppHubApplicationResourcesOperationSettings() { + return ((DesignCenterStubSettings) getStubSettings()) + .registerAppHubApplicationResourcesOperationSettings(); + } + + /** + * Returns the object with the settings used for calls to listApplicationTemplateSystemRevisions. + */ + public PagedCallSettings< + ListApplicationTemplateSystemRevisionsRequest, + ListApplicationTemplateSystemRevisionsResponse, + ListApplicationTemplateSystemRevisionsPagedResponse> + listApplicationTemplateSystemRevisionsSettings() { + return ((DesignCenterStubSettings) getStubSettings()) + .listApplicationTemplateSystemRevisionsSettings(); + } + + /** + * Returns the object with the settings used for calls to getApplicationTemplateSystemRevision. + */ + public UnaryCallSettings< + GetApplicationTemplateSystemRevisionRequest, ApplicationTemplateSystemRevision> + getApplicationTemplateSystemRevisionSettings() { + return ((DesignCenterStubSettings) getStubSettings()) + .getApplicationTemplateSystemRevisionSettings(); + } + + /** Returns the object with the settings used for calls to recommendIAMRoles. */ + public UnaryCallSettings recommendIAMRolesSettings() { + return ((DesignCenterStubSettings) getStubSettings()).recommendIAMRolesSettings(); + } + + /** Returns the object with the settings used for calls to recommendIAMRoles. */ + public OperationCallSettings< + RecommendIAMRolesRequest, RecommendIAMRolesResponse, OperationMetadata> + recommendIAMRolesOperationSettings() { + return ((DesignCenterStubSettings) getStubSettings()).recommendIAMRolesOperationSettings(); + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return ((DesignCenterStubSettings) getStubSettings()).listLocationsSettings(); + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return ((DesignCenterStubSettings) getStubSettings()).getLocationSettings(); + } + + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return ((DesignCenterStubSettings) getStubSettings()).setIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return ((DesignCenterStubSettings) getStubSettings()).getIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to testIamPermissions. */ + public UnaryCallSettings + testIamPermissionsSettings() { + return ((DesignCenterStubSettings) getStubSettings()).testIamPermissionsSettings(); + } + + public static final DesignCenterSettings create(DesignCenterStubSettings stub) + throws IOException { + return new DesignCenterSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return DesignCenterStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return DesignCenterStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DesignCenterStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return DesignCenterStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return DesignCenterStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return DesignCenterStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return DesignCenterStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return DesignCenterStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** 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(@Nullable 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 DesignCenterSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for DesignCenterSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(@Nullable ClientContext clientContext) { + super(DesignCenterStubSettings.newBuilder(clientContext)); + } + + protected Builder(DesignCenterSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(DesignCenterStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(DesignCenterStubSettings.newBuilder()); + } + + private static Builder createHttpJsonDefault() { + return new Builder(DesignCenterStubSettings.newHttpJsonBuilder()); + } + + public DesignCenterStubSettings.Builder getStubSettingsBuilder() { + return ((DesignCenterStubSettings.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 getSpace. */ + public UnaryCallSettings.Builder getSpaceSettings() { + return getStubSettingsBuilder().getSpaceSettings(); + } + + /** Returns the builder for the settings used for calls to listSpaces. */ + public PagedCallSettings.Builder + listSpacesSettings() { + return getStubSettingsBuilder().listSpacesSettings(); + } + + /** Returns the builder for the settings used for calls to createSpace. */ + public UnaryCallSettings.Builder createSpaceSettings() { + return getStubSettingsBuilder().createSpaceSettings(); + } + + /** Returns the builder for the settings used for calls to updateSpace. */ + public UnaryCallSettings.Builder updateSpaceSettings() { + return getStubSettingsBuilder().updateSpaceSettings(); + } + + /** Returns the builder for the settings used for calls to deleteSpace. */ + public UnaryCallSettings.Builder deleteSpaceSettings() { + return getStubSettingsBuilder().deleteSpaceSettings(); + } + + /** Returns the builder for the settings used for calls to getApplicationTemplate. */ + public UnaryCallSettings.Builder + getApplicationTemplateSettings() { + return getStubSettingsBuilder().getApplicationTemplateSettings(); + } + + /** Returns the builder for the settings used for calls to listApplicationTemplates. */ + public PagedCallSettings.Builder< + ListApplicationTemplatesRequest, + ListApplicationTemplatesResponse, + ListApplicationTemplatesPagedResponse> + listApplicationTemplatesSettings() { + return getStubSettingsBuilder().listApplicationTemplatesSettings(); + } + + /** Returns the builder for the settings used for calls to createApplicationTemplate. */ + public UnaryCallSettings.Builder + createApplicationTemplateSettings() { + return getStubSettingsBuilder().createApplicationTemplateSettings(); + } + + /** Returns the builder for the settings used for calls to updateApplicationTemplate. */ + public UnaryCallSettings.Builder + updateApplicationTemplateSettings() { + return getStubSettingsBuilder().updateApplicationTemplateSettings(); + } + + /** Returns the builder for the settings used for calls to importApplicationTemplate. */ + public UnaryCallSettings.Builder + importApplicationTemplateSettings() { + return getStubSettingsBuilder().importApplicationTemplateSettings(); + } + + /** Returns the builder for the settings used for calls to deleteApplicationTemplate. */ + public UnaryCallSettings.Builder + deleteApplicationTemplateSettings() { + return getStubSettingsBuilder().deleteApplicationTemplateSettings(); + } + + /** Returns the builder for the settings used for calls to commitApplicationTemplate. */ + public UnaryCallSettings.Builder + commitApplicationTemplateSettings() { + return getStubSettingsBuilder().commitApplicationTemplateSettings(); + } + + /** Returns the builder for the settings used for calls to snapshotApplicationTemplate. */ + public UnaryCallSettings.Builder + snapshotApplicationTemplateSettings() { + return getStubSettingsBuilder().snapshotApplicationTemplateSettings(); + } + + /** Returns the builder for the settings used for calls to snapshotApplicationTemplate. */ + public OperationCallSettings.Builder< + SnapshotApplicationTemplateRequest, + SnapshotApplicationTemplateResponse, + OperationMetadata> + snapshotApplicationTemplateOperationSettings() { + return getStubSettingsBuilder().snapshotApplicationTemplateOperationSettings(); + } + + /** Returns the builder for the settings used for calls to generateApplicationTemplateIaC. */ + public UnaryCallSettings.Builder< + GenerateApplicationTemplateIaCRequest, GenerateApplicationTemplateIaCResponse> + generateApplicationTemplateIaCSettings() { + return getStubSettingsBuilder().generateApplicationTemplateIaCSettings(); + } + + /** Returns the builder for the settings used for calls to exportApplicationTemplateIaC. */ + public UnaryCallSettings.Builder + exportApplicationTemplateIaCSettings() { + return getStubSettingsBuilder().exportApplicationTemplateIaCSettings(); + } + + /** Returns the builder for the settings used for calls to exportApplicationTemplateIaC. */ + public OperationCallSettings.Builder< + ExportApplicationTemplateIaCRequest, + ExportApplicationTemplateIaCResponse, + OperationMetadata> + exportApplicationTemplateIaCOperationSettings() { + return getStubSettingsBuilder().exportApplicationTemplateIaCOperationSettings(); + } + + /** + * Returns the builder for the settings used for calls to + * generateApplicationTemplateRevisionIaC. + */ + public UnaryCallSettings.Builder< + GenerateApplicationTemplateRevisionIaCRequest, + GenerateApplicationTemplateRevisionIaCResponse> + generateApplicationTemplateRevisionIaCSettings() { + return getStubSettingsBuilder().generateApplicationTemplateRevisionIaCSettings(); + } + + /** + * Returns the builder for the settings used for calls to exportApplicationTemplateRevisionIaC. + */ + public UnaryCallSettings.Builder + exportApplicationTemplateRevisionIaCSettings() { + return getStubSettingsBuilder().exportApplicationTemplateRevisionIaCSettings(); + } + + /** + * Returns the builder for the settings used for calls to exportApplicationTemplateRevisionIaC. + */ + public OperationCallSettings.Builder< + ExportApplicationTemplateRevisionIaCRequest, + ExportApplicationTemplateRevisionIaCResponse, + OperationMetadata> + exportApplicationTemplateRevisionIaCOperationSettings() { + return getStubSettingsBuilder().exportApplicationTemplateRevisionIaCOperationSettings(); + } + + /** Returns the builder for the settings used for calls to getComponent. */ + public UnaryCallSettings.Builder getComponentSettings() { + return getStubSettingsBuilder().getComponentSettings(); + } + + /** Returns the builder for the settings used for calls to listComponents. */ + public PagedCallSettings.Builder< + ListComponentsRequest, ListComponentsResponse, ListComponentsPagedResponse> + listComponentsSettings() { + return getStubSettingsBuilder().listComponentsSettings(); + } + + /** Returns the builder for the settings used for calls to createComponent. */ + public UnaryCallSettings.Builder createComponentSettings() { + return getStubSettingsBuilder().createComponentSettings(); + } + + /** Returns the builder for the settings used for calls to updateComponent. */ + public UnaryCallSettings.Builder updateComponentSettings() { + return getStubSettingsBuilder().updateComponentSettings(); + } + + /** Returns the builder for the settings used for calls to deleteComponent. */ + public UnaryCallSettings.Builder deleteComponentSettings() { + return getStubSettingsBuilder().deleteComponentSettings(); + } + + /** Returns the builder for the settings used for calls to getConnection. */ + public UnaryCallSettings.Builder getConnectionSettings() { + return getStubSettingsBuilder().getConnectionSettings(); + } + + /** Returns the builder for the settings used for calls to listConnections. */ + public PagedCallSettings.Builder< + ListConnectionsRequest, ListConnectionsResponse, ListConnectionsPagedResponse> + listConnectionsSettings() { + return getStubSettingsBuilder().listConnectionsSettings(); + } + + /** Returns the builder for the settings used for calls to createConnection. */ + public UnaryCallSettings.Builder + createConnectionSettings() { + return getStubSettingsBuilder().createConnectionSettings(); + } + + /** Returns the builder for the settings used for calls to updateConnection. */ + public UnaryCallSettings.Builder + updateConnectionSettings() { + return getStubSettingsBuilder().updateConnectionSettings(); + } + + /** Returns the builder for the settings used for calls to deleteConnection. */ + public UnaryCallSettings.Builder deleteConnectionSettings() { + return getStubSettingsBuilder().deleteConnectionSettings(); + } + + /** Returns the builder for the settings used for calls to getApplicationTemplateRevision. */ + public UnaryCallSettings.Builder< + GetApplicationTemplateRevisionRequest, ApplicationTemplateRevision> + getApplicationTemplateRevisionSettings() { + return getStubSettingsBuilder().getApplicationTemplateRevisionSettings(); + } + + /** Returns the builder for the settings used for calls to listApplicationTemplateRevisions. */ + public PagedCallSettings.Builder< + ListApplicationTemplateRevisionsRequest, + ListApplicationTemplateRevisionsResponse, + ListApplicationTemplateRevisionsPagedResponse> + listApplicationTemplateRevisionsSettings() { + return getStubSettingsBuilder().listApplicationTemplateRevisionsSettings(); + } + + /** Returns the builder for the settings used for calls to deleteApplicationTemplateRevision. */ + public UnaryCallSettings.Builder + deleteApplicationTemplateRevisionSettings() { + return getStubSettingsBuilder().deleteApplicationTemplateRevisionSettings(); + } + + /** Returns the builder for the settings used for calls to getCatalog. */ + public UnaryCallSettings.Builder getCatalogSettings() { + return getStubSettingsBuilder().getCatalogSettings(); + } + + /** Returns the builder for the settings used for calls to listCatalogs. */ + public PagedCallSettings.Builder< + ListCatalogsRequest, ListCatalogsResponse, ListCatalogsPagedResponse> + listCatalogsSettings() { + return getStubSettingsBuilder().listCatalogsSettings(); + } + + /** Returns the builder for the settings used for calls to createCatalog. */ + public UnaryCallSettings.Builder createCatalogSettings() { + return getStubSettingsBuilder().createCatalogSettings(); + } + + /** Returns the builder for the settings used for calls to updateCatalog. */ + public UnaryCallSettings.Builder updateCatalogSettings() { + return getStubSettingsBuilder().updateCatalogSettings(); + } + + /** Returns the builder for the settings used for calls to deleteCatalog. */ + public UnaryCallSettings.Builder deleteCatalogSettings() { + return getStubSettingsBuilder().deleteCatalogSettings(); + } + + /** Returns the builder for the settings used for calls to deleteCatalog. */ + public OperationCallSettings.Builder + deleteCatalogOperationSettings() { + return getStubSettingsBuilder().deleteCatalogOperationSettings(); + } + + /** Returns the builder for the settings used for calls to createCatalogTemplate. */ + public UnaryCallSettings.Builder + createCatalogTemplateSettings() { + return getStubSettingsBuilder().createCatalogTemplateSettings(); + } + + /** Returns the builder for the settings used for calls to getCatalogTemplate. */ + public UnaryCallSettings.Builder + getCatalogTemplateSettings() { + return getStubSettingsBuilder().getCatalogTemplateSettings(); + } + + /** Returns the builder for the settings used for calls to listCatalogTemplates. */ + public PagedCallSettings.Builder< + ListCatalogTemplatesRequest, + ListCatalogTemplatesResponse, + ListCatalogTemplatesPagedResponse> + listCatalogTemplatesSettings() { + return getStubSettingsBuilder().listCatalogTemplatesSettings(); + } + + /** Returns the builder for the settings used for calls to updateCatalogTemplate. */ + public UnaryCallSettings.Builder + updateCatalogTemplateSettings() { + return getStubSettingsBuilder().updateCatalogTemplateSettings(); + } + + /** Returns the builder for the settings used for calls to deleteCatalogTemplate. */ + public UnaryCallSettings.Builder + deleteCatalogTemplateSettings() { + return getStubSettingsBuilder().deleteCatalogTemplateSettings(); + } + + /** Returns the builder for the settings used for calls to deleteCatalogTemplate. */ + public OperationCallSettings.Builder + deleteCatalogTemplateOperationSettings() { + return getStubSettingsBuilder().deleteCatalogTemplateOperationSettings(); + } + + /** Returns the builder for the settings used for calls to createShare. */ + public UnaryCallSettings.Builder createShareSettings() { + return getStubSettingsBuilder().createShareSettings(); + } + + /** Returns the builder for the settings used for calls to createShare. */ + public OperationCallSettings.Builder + createShareOperationSettings() { + return getStubSettingsBuilder().createShareOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listShares. */ + public PagedCallSettings.Builder + listSharesSettings() { + return getStubSettingsBuilder().listSharesSettings(); + } + + /** Returns the builder for the settings used for calls to getShare. */ + public UnaryCallSettings.Builder getShareSettings() { + return getStubSettingsBuilder().getShareSettings(); + } + + /** Returns the builder for the settings used for calls to deleteShare. */ + public UnaryCallSettings.Builder deleteShareSettings() { + return getStubSettingsBuilder().deleteShareSettings(); + } + + /** Returns the builder for the settings used for calls to deleteShare. */ + public OperationCallSettings.Builder + deleteShareOperationSettings() { + return getStubSettingsBuilder().deleteShareOperationSettings(); + } + + /** Returns the builder for the settings used for calls to syncShare. */ + public UnaryCallSettings.Builder syncShareSettings() { + return getStubSettingsBuilder().syncShareSettings(); + } + + /** Returns the builder for the settings used for calls to syncShare. */ + public OperationCallSettings.Builder + syncShareOperationSettings() { + return getStubSettingsBuilder().syncShareOperationSettings(); + } + + /** Returns the builder for the settings used for calls to getSharedTemplate. */ + public UnaryCallSettings.Builder + getSharedTemplateSettings() { + return getStubSettingsBuilder().getSharedTemplateSettings(); + } + + /** Returns the builder for the settings used for calls to listSharedTemplates. */ + public PagedCallSettings.Builder< + ListSharedTemplatesRequest, + ListSharedTemplatesResponse, + ListSharedTemplatesPagedResponse> + listSharedTemplatesSettings() { + return getStubSettingsBuilder().listSharedTemplatesSettings(); + } + + /** Returns the builder for the settings used for calls to getSharedTemplateRevision. */ + public UnaryCallSettings.Builder + getSharedTemplateRevisionSettings() { + return getStubSettingsBuilder().getSharedTemplateRevisionSettings(); + } + + /** Returns the builder for the settings used for calls to listSharedTemplateRevisions. */ + public PagedCallSettings.Builder< + ListSharedTemplateRevisionsRequest, + ListSharedTemplateRevisionsResponse, + ListSharedTemplateRevisionsPagedResponse> + listSharedTemplateRevisionsSettings() { + return getStubSettingsBuilder().listSharedTemplateRevisionsSettings(); + } + + /** Returns the builder for the settings used for calls to createCatalogTemplateRevision. */ + public UnaryCallSettings.Builder + createCatalogTemplateRevisionSettings() { + return getStubSettingsBuilder().createCatalogTemplateRevisionSettings(); + } + + /** Returns the builder for the settings used for calls to createCatalogTemplateRevision. */ + public OperationCallSettings.Builder< + CreateCatalogTemplateRevisionRequest, CatalogTemplateRevision, OperationMetadata> + createCatalogTemplateRevisionOperationSettings() { + return getStubSettingsBuilder().createCatalogTemplateRevisionOperationSettings(); + } + + /** Returns the builder for the settings used for calls to getCatalogTemplateRevision. */ + public UnaryCallSettings.Builder + getCatalogTemplateRevisionSettings() { + return getStubSettingsBuilder().getCatalogTemplateRevisionSettings(); + } + + /** Returns the builder for the settings used for calls to listCatalogTemplateRevisions. */ + public PagedCallSettings.Builder< + ListCatalogTemplateRevisionsRequest, + ListCatalogTemplateRevisionsResponse, + ListCatalogTemplateRevisionsPagedResponse> + listCatalogTemplateRevisionsSettings() { + return getStubSettingsBuilder().listCatalogTemplateRevisionsSettings(); + } + + /** Returns the builder for the settings used for calls to deleteCatalogTemplateRevision. */ + public UnaryCallSettings.Builder + deleteCatalogTemplateRevisionSettings() { + return getStubSettingsBuilder().deleteCatalogTemplateRevisionSettings(); + } + + /** Returns the builder for the settings used for calls to deleteCatalogTemplateRevision. */ + public OperationCallSettings.Builder< + DeleteCatalogTemplateRevisionRequest, Empty, OperationMetadata> + deleteCatalogTemplateRevisionOperationSettings() { + return getStubSettingsBuilder().deleteCatalogTemplateRevisionOperationSettings(); + } + + /** Returns the builder for the settings used for calls to createApplication. */ + public UnaryCallSettings.Builder + createApplicationSettings() { + return getStubSettingsBuilder().createApplicationSettings(); + } + + /** Returns the builder for the settings used for calls to getApplication. */ + public UnaryCallSettings.Builder getApplicationSettings() { + return getStubSettingsBuilder().getApplicationSettings(); + } + + /** Returns the builder for the settings used for calls to listApplications. */ + public PagedCallSettings.Builder< + ListApplicationsRequest, ListApplicationsResponse, ListApplicationsPagedResponse> + listApplicationsSettings() { + return getStubSettingsBuilder().listApplicationsSettings(); + } + + /** Returns the builder for the settings used for calls to updateApplication. */ + public UnaryCallSettings.Builder + updateApplicationSettings() { + return getStubSettingsBuilder().updateApplicationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteApplication. */ + public UnaryCallSettings.Builder + deleteApplicationSettings() { + return getStubSettingsBuilder().deleteApplicationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteApplication. */ + public OperationCallSettings.Builder + deleteApplicationOperationSettings() { + return getStubSettingsBuilder().deleteApplicationOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deployApplication. */ + public UnaryCallSettings.Builder + deployApplicationSettings() { + return getStubSettingsBuilder().deployApplicationSettings(); + } + + /** Returns the builder for the settings used for calls to deployApplication. */ + public OperationCallSettings.Builder< + DeployApplicationRequest, DeployApplicationResponse, OperationMetadata> + deployApplicationOperationSettings() { + return getStubSettingsBuilder().deployApplicationOperationSettings(); + } + + /** Returns the builder for the settings used for calls to previewApplication. */ + public UnaryCallSettings.Builder + previewApplicationSettings() { + return getStubSettingsBuilder().previewApplicationSettings(); + } + + /** Returns the builder for the settings used for calls to previewApplication. */ + public OperationCallSettings.Builder< + PreviewApplicationRequest, PreviewApplicationResponse, OperationMetadata> + previewApplicationOperationSettings() { + return getStubSettingsBuilder().previewApplicationOperationSettings(); + } + + /** Returns the builder for the settings used for calls to fetchApplicationAssessmentReport. */ + public UnaryCallSettings.Builder< + FetchApplicationAssessmentReportRequest, FetchApplicationAssessmentReportResponse> + fetchApplicationAssessmentReportSettings() { + return getStubSettingsBuilder().fetchApplicationAssessmentReportSettings(); + } + + /** + * Returns the builder for the settings used for calls to generateApplicationAssessmentReport. + */ + public UnaryCallSettings.Builder + generateApplicationAssessmentReportSettings() { + return getStubSettingsBuilder().generateApplicationAssessmentReportSettings(); + } + + /** + * Returns the builder for the settings used for calls to generateApplicationAssessmentReport. + */ + public OperationCallSettings.Builder< + GenerateApplicationAssessmentReportRequest, + GenerateApplicationAssessmentReportResponse, + OperationMetadata> + generateApplicationAssessmentReportOperationSettings() { + return getStubSettingsBuilder().generateApplicationAssessmentReportOperationSettings(); + } + + /** + * Returns the builder for the settings used for calls to + * generateApplicationTemplateAssessmentReport. + */ + public UnaryCallSettings.Builder + generateApplicationTemplateAssessmentReportSettings() { + return getStubSettingsBuilder().generateApplicationTemplateAssessmentReportSettings(); + } + + /** + * Returns the builder for the settings used for calls to + * generateApplicationTemplateAssessmentReport. + */ + public OperationCallSettings.Builder< + GenerateApplicationTemplateAssessmentReportRequest, + GenerateApplicationTemplateAssessmentReportResponse, + OperationMetadata> + generateApplicationTemplateAssessmentReportOperationSettings() { + return getStubSettingsBuilder() + .generateApplicationTemplateAssessmentReportOperationSettings(); + } + + /** + * Returns the builder for the settings used for calls to generateAssessmentReport. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated + public UnaryCallSettings.Builder + generateAssessmentReportSettings() { + return getStubSettingsBuilder().generateAssessmentReportSettings(); + } + + /** + * Returns the builder for the settings used for calls to generateAssessmentReport. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated + public OperationCallSettings.Builder< + GenerateAssessmentReportRequest, GenerateAssessmentReportResponse, OperationMetadata> + generateAssessmentReportOperationSettings() { + return getStubSettingsBuilder().generateAssessmentReportOperationSettings(); + } + + /** + * Returns the builder for the settings used for calls to generateTerraformPlanAssessmentReport. + */ + public UnaryCallSettings.Builder + generateTerraformPlanAssessmentReportSettings() { + return getStubSettingsBuilder().generateTerraformPlanAssessmentReportSettings(); + } + + /** + * Returns the builder for the settings used for calls to generateTerraformPlanAssessmentReport. + */ + public OperationCallSettings.Builder< + GenerateTerraformPlanAssessmentReportRequest, + GenerateTerraformPlanAssessmentReportResponse, + OperationMetadata> + generateTerraformPlanAssessmentReportOperationSettings() { + return getStubSettingsBuilder().generateTerraformPlanAssessmentReportOperationSettings(); + } + + /** Returns the builder for the settings used for calls to getPolicy. */ + public UnaryCallSettings.Builder + getPolicySettings() { + return getStubSettingsBuilder().getPolicySettings(); + } + + /** Returns the builder for the settings used for calls to listPolicies. */ + public PagedCallSettings.Builder< + ListPoliciesRequest, ListPoliciesResponse, ListPoliciesPagedResponse> + listPoliciesSettings() { + return getStubSettingsBuilder().listPoliciesSettings(); + } + + /** Returns the builder for the settings used for calls to createPolicy. */ + public UnaryCallSettings.Builder + createPolicySettings() { + return getStubSettingsBuilder().createPolicySettings(); + } + + /** Returns the builder for the settings used for calls to updatePolicy. */ + public UnaryCallSettings.Builder + updatePolicySettings() { + return getStubSettingsBuilder().updatePolicySettings(); + } + + /** Returns the builder for the settings used for calls to deletePolicy. */ + public UnaryCallSettings.Builder deletePolicySettings() { + return getStubSettingsBuilder().deletePolicySettings(); + } + + /** Returns the builder for the settings used for calls to fetchFrameworks. */ + public PagedCallSettings.Builder< + FetchFrameworksRequest, FetchFrameworksResponse, FetchFrameworksPagedResponse> + fetchFrameworksSettings() { + return getStubSettingsBuilder().fetchFrameworksSettings(); + } + + /** Returns the builder for the settings used for calls to generateApplicationIaC. */ + public UnaryCallSettings.Builder + generateApplicationIaCSettings() { + return getStubSettingsBuilder().generateApplicationIaCSettings(); + } + + /** Returns the builder for the settings used for calls to exportApplicationIaC. */ + public UnaryCallSettings.Builder + exportApplicationIaCSettings() { + return getStubSettingsBuilder().exportApplicationIaCSettings(); + } + + /** Returns the builder for the settings used for calls to exportApplicationIaC. */ + public OperationCallSettings.Builder< + ExportApplicationIaCRequest, ExportApplicationIaCResponse, OperationMetadata> + exportApplicationIaCOperationSettings() { + return getStubSettingsBuilder().exportApplicationIaCOperationSettings(); + } + + /** Returns the builder for the settings used for calls to importApplicationTemplateIaC. */ + public UnaryCallSettings.Builder< + ImportApplicationTemplateIaCRequest, ImportApplicationTemplateIaCResponse> + importApplicationTemplateIaCSettings() { + return getStubSettingsBuilder().importApplicationTemplateIaCSettings(); + } + + /** Returns the builder for the settings used for calls to ingestApplicationTemplateIaC. */ + public UnaryCallSettings.Builder + ingestApplicationTemplateIaCSettings() { + return getStubSettingsBuilder().ingestApplicationTemplateIaCSettings(); + } + + /** Returns the builder for the settings used for calls to ingestApplicationTemplateIaC. */ + public OperationCallSettings.Builder< + IngestApplicationTemplateIaCRequest, + IngestApplicationTemplateIaCResponse, + OperationMetadata> + ingestApplicationTemplateIaCOperationSettings() { + return getStubSettingsBuilder().ingestApplicationTemplateIaCOperationSettings(); + } + + /** Returns the builder for the settings used for calls to importApplicationIaC. */ + public UnaryCallSettings.Builder + importApplicationIaCSettings() { + return getStubSettingsBuilder().importApplicationIaCSettings(); + } + + /** + * Returns the builder for the settings used for calls to registerAppHubApplicationResources. + */ + public UnaryCallSettings.Builder + registerAppHubApplicationResourcesSettings() { + return getStubSettingsBuilder().registerAppHubApplicationResourcesSettings(); + } + + /** + * Returns the builder for the settings used for calls to registerAppHubApplicationResources. + */ + public OperationCallSettings.Builder< + RegisterAppHubApplicationResourcesRequest, + RegisterAppHubApplicationResourcesResponse, + OperationMetadata> + registerAppHubApplicationResourcesOperationSettings() { + return getStubSettingsBuilder().registerAppHubApplicationResourcesOperationSettings(); + } + + /** + * Returns the builder for the settings used for calls to + * listApplicationTemplateSystemRevisions. + */ + public PagedCallSettings.Builder< + ListApplicationTemplateSystemRevisionsRequest, + ListApplicationTemplateSystemRevisionsResponse, + ListApplicationTemplateSystemRevisionsPagedResponse> + listApplicationTemplateSystemRevisionsSettings() { + return getStubSettingsBuilder().listApplicationTemplateSystemRevisionsSettings(); + } + + /** + * Returns the builder for the settings used for calls to getApplicationTemplateSystemRevision. + */ + public UnaryCallSettings.Builder< + GetApplicationTemplateSystemRevisionRequest, ApplicationTemplateSystemRevision> + getApplicationTemplateSystemRevisionSettings() { + return getStubSettingsBuilder().getApplicationTemplateSystemRevisionSettings(); + } + + /** Returns the builder for the settings used for calls to recommendIAMRoles. */ + public UnaryCallSettings.Builder + recommendIAMRolesSettings() { + return getStubSettingsBuilder().recommendIAMRolesSettings(); + } + + /** Returns the builder for the settings used for calls to recommendIAMRoles. */ + public OperationCallSettings.Builder< + RecommendIAMRolesRequest, RecommendIAMRolesResponse, OperationMetadata> + recommendIAMRolesOperationSettings() { + return getStubSettingsBuilder().recommendIAMRolesOperationSettings(); + } + + /** 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(); + } + + /** Returns the builder for the settings used for calls to setIamPolicy. */ + public UnaryCallSettings.Builder setIamPolicySettings() { + return getStubSettingsBuilder().setIamPolicySettings(); + } + + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder getIamPolicySettings() { + return getStubSettingsBuilder().getIamPolicySettings(); + } + + /** Returns the builder for the settings used for calls to testIamPermissions. */ + public UnaryCallSettings.Builder + testIamPermissionsSettings() { + return getStubSettingsBuilder().testIamPermissionsSettings(); + } + + @Override + public DesignCenterSettings build() throws IOException { + return new DesignCenterSettings(this); + } + } +} diff --git a/java-designcenter/google-cloud-designcenter/src/main/java/com/google/cloud/designcenter/v1/gapic_metadata.json b/java-designcenter/google-cloud-designcenter/src/main/java/com/google/cloud/designcenter/v1/gapic_metadata.json new file mode 100644 index 000000000000..b46aa128467d --- /dev/null +++ b/java-designcenter/google-cloud-designcenter/src/main/java/com/google/cloud/designcenter/v1/gapic_metadata.json @@ -0,0 +1,273 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "java", + "protoPackage": "google.cloud.designcenter.v1", + "libraryPackage": "com.google.cloud.designcenter.v1", + "services": { + "DesignCenter": { + "clients": { + "grpc": { + "libraryClient": "DesignCenterClient", + "rpcs": { + "CommitApplicationTemplate": { + "methods": ["commitApplicationTemplate", "commitApplicationTemplate", "commitApplicationTemplate", "commitApplicationTemplateCallable"] + }, + "CreateApplication": { + "methods": ["createApplication", "createApplication", "createApplication", "createApplicationCallable"] + }, + "CreateApplicationTemplate": { + "methods": ["createApplicationTemplate", "createApplicationTemplate", "createApplicationTemplate", "createApplicationTemplateCallable"] + }, + "CreateCatalog": { + "methods": ["createCatalog", "createCatalog", "createCatalog", "createCatalogCallable"] + }, + "CreateCatalogTemplate": { + "methods": ["createCatalogTemplate", "createCatalogTemplate", "createCatalogTemplate", "createCatalogTemplateCallable"] + }, + "CreateCatalogTemplateRevision": { + "methods": ["createCatalogTemplateRevisionAsync", "createCatalogTemplateRevisionAsync", "createCatalogTemplateRevisionAsync", "createCatalogTemplateRevisionOperationCallable", "createCatalogTemplateRevisionCallable"] + }, + "CreateComponent": { + "methods": ["createComponent", "createComponent", "createComponent", "createComponentCallable"] + }, + "CreateConnection": { + "methods": ["createConnection", "createConnection", "createConnection", "createConnectionCallable"] + }, + "CreatePolicy": { + "methods": ["createPolicy", "createPolicy", "createPolicy", "createPolicyCallable"] + }, + "CreateShare": { + "methods": ["createShareAsync", "createShareAsync", "createShareAsync", "createShareOperationCallable", "createShareCallable"] + }, + "CreateSpace": { + "methods": ["createSpace", "createSpace", "createSpace", "createSpaceCallable"] + }, + "DeleteApplication": { + "methods": ["deleteApplicationAsync", "deleteApplicationAsync", "deleteApplicationAsync", "deleteApplicationOperationCallable", "deleteApplicationCallable"] + }, + "DeleteApplicationTemplate": { + "methods": ["deleteApplicationTemplate", "deleteApplicationTemplate", "deleteApplicationTemplate", "deleteApplicationTemplateCallable"] + }, + "DeleteApplicationTemplateRevision": { + "methods": ["deleteApplicationTemplateRevision", "deleteApplicationTemplateRevision", "deleteApplicationTemplateRevision", "deleteApplicationTemplateRevisionCallable"] + }, + "DeleteCatalog": { + "methods": ["deleteCatalogAsync", "deleteCatalogAsync", "deleteCatalogAsync", "deleteCatalogOperationCallable", "deleteCatalogCallable"] + }, + "DeleteCatalogTemplate": { + "methods": ["deleteCatalogTemplateAsync", "deleteCatalogTemplateAsync", "deleteCatalogTemplateAsync", "deleteCatalogTemplateOperationCallable", "deleteCatalogTemplateCallable"] + }, + "DeleteCatalogTemplateRevision": { + "methods": ["deleteCatalogTemplateRevisionAsync", "deleteCatalogTemplateRevisionAsync", "deleteCatalogTemplateRevisionAsync", "deleteCatalogTemplateRevisionOperationCallable", "deleteCatalogTemplateRevisionCallable"] + }, + "DeleteComponent": { + "methods": ["deleteComponent", "deleteComponent", "deleteComponent", "deleteComponentCallable"] + }, + "DeleteConnection": { + "methods": ["deleteConnection", "deleteConnection", "deleteConnection", "deleteConnectionCallable"] + }, + "DeletePolicy": { + "methods": ["deletePolicy", "deletePolicy", "deletePolicy", "deletePolicyCallable"] + }, + "DeleteShare": { + "methods": ["deleteShareAsync", "deleteShareAsync", "deleteShareAsync", "deleteShareOperationCallable", "deleteShareCallable"] + }, + "DeleteSpace": { + "methods": ["deleteSpace", "deleteSpace", "deleteSpace", "deleteSpaceCallable"] + }, + "DeployApplication": { + "methods": ["deployApplicationAsync", "deployApplicationAsync", "deployApplicationAsync", "deployApplicationOperationCallable", "deployApplicationCallable"] + }, + "ExportApplicationIaC": { + "methods": ["exportApplicationIaCAsync", "exportApplicationIaCAsync", "exportApplicationIaCAsync", "exportApplicationIaCOperationCallable", "exportApplicationIaCCallable"] + }, + "ExportApplicationTemplateIaC": { + "methods": ["exportApplicationTemplateIaCAsync", "exportApplicationTemplateIaCAsync", "exportApplicationTemplateIaCAsync", "exportApplicationTemplateIaCOperationCallable", "exportApplicationTemplateIaCCallable"] + }, + "ExportApplicationTemplateRevisionIaC": { + "methods": ["exportApplicationTemplateRevisionIaCAsync", "exportApplicationTemplateRevisionIaCAsync", "exportApplicationTemplateRevisionIaCAsync", "exportApplicationTemplateRevisionIaCOperationCallable", "exportApplicationTemplateRevisionIaCCallable"] + }, + "FetchApplicationAssessmentReport": { + "methods": ["fetchApplicationAssessmentReport", "fetchApplicationAssessmentReport", "fetchApplicationAssessmentReport", "fetchApplicationAssessmentReportCallable"] + }, + "FetchFrameworks": { + "methods": ["fetchFrameworks", "fetchFrameworks", "fetchFrameworksPagedCallable", "fetchFrameworksCallable"] + }, + "GenerateApplicationAssessmentReport": { + "methods": ["generateApplicationAssessmentReportAsync", "generateApplicationAssessmentReportAsync", "generateApplicationAssessmentReportAsync", "generateApplicationAssessmentReportOperationCallable", "generateApplicationAssessmentReportCallable"] + }, + "GenerateApplicationIaC": { + "methods": ["generateApplicationIaC", "generateApplicationIaC", "generateApplicationIaC", "generateApplicationIaCCallable"] + }, + "GenerateApplicationTemplateAssessmentReport": { + "methods": ["generateApplicationTemplateAssessmentReportAsync", "generateApplicationTemplateAssessmentReportAsync", "generateApplicationTemplateAssessmentReportAsync", "generateApplicationTemplateAssessmentReportOperationCallable", "generateApplicationTemplateAssessmentReportCallable"] + }, + "GenerateApplicationTemplateIaC": { + "methods": ["generateApplicationTemplateIaC", "generateApplicationTemplateIaC", "generateApplicationTemplateIaC", "generateApplicationTemplateIaCCallable"] + }, + "GenerateApplicationTemplateRevisionIaC": { + "methods": ["generateApplicationTemplateRevisionIaC", "generateApplicationTemplateRevisionIaC", "generateApplicationTemplateRevisionIaC", "generateApplicationTemplateRevisionIaCCallable"] + }, + "GenerateAssessmentReport": { + "methods": ["generateAssessmentReportAsync", "generateAssessmentReportAsync", "generateAssessmentReportAsync", "generateAssessmentReportOperationCallable", "generateAssessmentReportCallable"] + }, + "GenerateTerraformPlanAssessmentReport": { + "methods": ["generateTerraformPlanAssessmentReportAsync", "generateTerraformPlanAssessmentReportAsync", "generateTerraformPlanAssessmentReportAsync", "generateTerraformPlanAssessmentReportOperationCallable", "generateTerraformPlanAssessmentReportCallable"] + }, + "GetApplication": { + "methods": ["getApplication", "getApplication", "getApplication", "getApplicationCallable"] + }, + "GetApplicationTemplate": { + "methods": ["getApplicationTemplate", "getApplicationTemplate", "getApplicationTemplate", "getApplicationTemplateCallable"] + }, + "GetApplicationTemplateRevision": { + "methods": ["getApplicationTemplateRevision", "getApplicationTemplateRevision", "getApplicationTemplateRevision", "getApplicationTemplateRevisionCallable"] + }, + "GetApplicationTemplateSystemRevision": { + "methods": ["getApplicationTemplateSystemRevision", "getApplicationTemplateSystemRevision", "getApplicationTemplateSystemRevision", "getApplicationTemplateSystemRevisionCallable"] + }, + "GetCatalog": { + "methods": ["getCatalog", "getCatalog", "getCatalog", "getCatalogCallable"] + }, + "GetCatalogTemplate": { + "methods": ["getCatalogTemplate", "getCatalogTemplate", "getCatalogTemplate", "getCatalogTemplateCallable"] + }, + "GetCatalogTemplateRevision": { + "methods": ["getCatalogTemplateRevision", "getCatalogTemplateRevision", "getCatalogTemplateRevision", "getCatalogTemplateRevisionCallable"] + }, + "GetComponent": { + "methods": ["getComponent", "getComponent", "getComponent", "getComponentCallable"] + }, + "GetConnection": { + "methods": ["getConnection", "getConnection", "getConnection", "getConnectionCallable"] + }, + "GetIamPolicy": { + "methods": ["getIamPolicy", "getIamPolicyCallable"] + }, + "GetLocation": { + "methods": ["getLocation", "getLocationCallable"] + }, + "GetPolicy": { + "methods": ["getPolicy", "getPolicy", "getPolicy", "getPolicyCallable"] + }, + "GetShare": { + "methods": ["getShare", "getShare", "getShare", "getShareCallable"] + }, + "GetSharedTemplate": { + "methods": ["getSharedTemplate", "getSharedTemplate", "getSharedTemplate", "getSharedTemplateCallable"] + }, + "GetSharedTemplateRevision": { + "methods": ["getSharedTemplateRevision", "getSharedTemplateRevision", "getSharedTemplateRevision", "getSharedTemplateRevisionCallable"] + }, + "GetSpace": { + "methods": ["getSpace", "getSpace", "getSpace", "getSpaceCallable"] + }, + "ImportApplicationIaC": { + "methods": ["importApplicationIaC", "importApplicationIaC", "importApplicationIaC", "importApplicationIaCCallable"] + }, + "ImportApplicationTemplate": { + "methods": ["importApplicationTemplate", "importApplicationTemplate", "importApplicationTemplate", "importApplicationTemplate", "importApplicationTemplate", "importApplicationTemplateCallable"] + }, + "ImportApplicationTemplateIaC": { + "methods": ["importApplicationTemplateIaC", "importApplicationTemplateIaC", "importApplicationTemplateIaC", "importApplicationTemplateIaCCallable"] + }, + "IngestApplicationTemplateIaC": { + "methods": ["ingestApplicationTemplateIaCAsync", "ingestApplicationTemplateIaCAsync", "ingestApplicationTemplateIaCAsync", "ingestApplicationTemplateIaCOperationCallable", "ingestApplicationTemplateIaCCallable"] + }, + "ListApplicationTemplateRevisions": { + "methods": ["listApplicationTemplateRevisions", "listApplicationTemplateRevisions", "listApplicationTemplateRevisions", "listApplicationTemplateRevisionsPagedCallable", "listApplicationTemplateRevisionsCallable"] + }, + "ListApplicationTemplateSystemRevisions": { + "methods": ["listApplicationTemplateSystemRevisions", "listApplicationTemplateSystemRevisions", "listApplicationTemplateSystemRevisions", "listApplicationTemplateSystemRevisionsPagedCallable", "listApplicationTemplateSystemRevisionsCallable"] + }, + "ListApplicationTemplates": { + "methods": ["listApplicationTemplates", "listApplicationTemplates", "listApplicationTemplates", "listApplicationTemplatesPagedCallable", "listApplicationTemplatesCallable"] + }, + "ListApplications": { + "methods": ["listApplications", "listApplications", "listApplications", "listApplicationsPagedCallable", "listApplicationsCallable"] + }, + "ListCatalogTemplateRevisions": { + "methods": ["listCatalogTemplateRevisions", "listCatalogTemplateRevisions", "listCatalogTemplateRevisions", "listCatalogTemplateRevisionsPagedCallable", "listCatalogTemplateRevisionsCallable"] + }, + "ListCatalogTemplates": { + "methods": ["listCatalogTemplates", "listCatalogTemplates", "listCatalogTemplates", "listCatalogTemplatesPagedCallable", "listCatalogTemplatesCallable"] + }, + "ListCatalogs": { + "methods": ["listCatalogs", "listCatalogs", "listCatalogs", "listCatalogsPagedCallable", "listCatalogsCallable"] + }, + "ListComponents": { + "methods": ["listComponents", "listComponents", "listComponents", "listComponentsPagedCallable", "listComponentsCallable"] + }, + "ListConnections": { + "methods": ["listConnections", "listConnections", "listConnections", "listConnectionsPagedCallable", "listConnectionsCallable"] + }, + "ListLocations": { + "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] + }, + "ListPolicies": { + "methods": ["listPolicies", "listPolicies", "listPolicies", "listPoliciesPagedCallable", "listPoliciesCallable"] + }, + "ListSharedTemplateRevisions": { + "methods": ["listSharedTemplateRevisions", "listSharedTemplateRevisions", "listSharedTemplateRevisions", "listSharedTemplateRevisionsPagedCallable", "listSharedTemplateRevisionsCallable"] + }, + "ListSharedTemplates": { + "methods": ["listSharedTemplates", "listSharedTemplates", "listSharedTemplates", "listSharedTemplatesPagedCallable", "listSharedTemplatesCallable"] + }, + "ListShares": { + "methods": ["listShares", "listShares", "listShares", "listSharesPagedCallable", "listSharesCallable"] + }, + "ListSpaces": { + "methods": ["listSpaces", "listSpaces", "listSpaces", "listSpacesPagedCallable", "listSpacesCallable"] + }, + "PreviewApplication": { + "methods": ["previewApplicationAsync", "previewApplicationAsync", "previewApplicationAsync", "previewApplicationOperationCallable", "previewApplicationCallable"] + }, + "RecommendIAMRoles": { + "methods": ["recommendIAMRolesAsync", "recommendIAMRolesAsync", "recommendIAMRolesAsync", "recommendIAMRolesOperationCallable", "recommendIAMRolesCallable"] + }, + "RegisterAppHubApplicationResources": { + "methods": ["registerAppHubApplicationResourcesAsync", "registerAppHubApplicationResourcesAsync", "registerAppHubApplicationResourcesAsync", "registerAppHubApplicationResourcesOperationCallable", "registerAppHubApplicationResourcesCallable"] + }, + "SetIamPolicy": { + "methods": ["setIamPolicy", "setIamPolicyCallable"] + }, + "SnapshotApplicationTemplate": { + "methods": ["snapshotApplicationTemplateAsync", "snapshotApplicationTemplateAsync", "snapshotApplicationTemplateAsync", "snapshotApplicationTemplateOperationCallable", "snapshotApplicationTemplateCallable"] + }, + "SyncShare": { + "methods": ["syncShareAsync", "syncShareAsync", "syncShareAsync", "syncShareOperationCallable", "syncShareCallable"] + }, + "TestIamPermissions": { + "methods": ["testIamPermissions", "testIamPermissionsCallable"] + }, + "UpdateApplication": { + "methods": ["updateApplication", "updateApplication", "updateApplicationCallable"] + }, + "UpdateApplicationTemplate": { + "methods": ["updateApplicationTemplate", "updateApplicationTemplate", "updateApplicationTemplateCallable"] + }, + "UpdateCatalog": { + "methods": ["updateCatalog", "updateCatalog", "updateCatalogCallable"] + }, + "UpdateCatalogTemplate": { + "methods": ["updateCatalogTemplate", "updateCatalogTemplate", "updateCatalogTemplateCallable"] + }, + "UpdateComponent": { + "methods": ["updateComponent", "updateComponent", "updateComponentCallable"] + }, + "UpdateConnection": { + "methods": ["updateConnection", "updateConnection", "updateConnectionCallable"] + }, + "UpdatePolicy": { + "methods": ["updatePolicy", "updatePolicy", "updatePolicyCallable"] + }, + "UpdateSpace": { + "methods": ["updateSpace", "updateSpace", "updateSpaceCallable"] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/java-designcenter/google-cloud-designcenter/src/main/java/com/google/cloud/designcenter/v1/package-info.java b/java-designcenter/google-cloud-designcenter/src/main/java/com/google/cloud/designcenter/v1/package-info.java new file mode 100644 index 000000000000..a7e425870d66 --- /dev/null +++ b/java-designcenter/google-cloud-designcenter/src/main/java/com/google/cloud/designcenter/v1/package-info.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 Design Center API + * + *

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

======================= DesignCenterClient ======================= + * + *

Service Description: Service describing handlers for resources + * + *

Sample for DesignCenterClient: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DesignCenterClient designCenterClient = DesignCenterClient.create()) {
+ *   SpaceName name = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]");
+ *   Space response = designCenterClient.getSpace(name);
+ * }
+ * }
+ */ +@Generated("by gapic-generator-java") +package com.google.cloud.designcenter.v1; + +import javax.annotation.Generated; diff --git a/java-designcenter/google-cloud-designcenter/src/main/java/com/google/cloud/designcenter/v1/stub/DesignCenterStub.java b/java-designcenter/google-cloud-designcenter/src/main/java/com/google/cloud/designcenter/v1/stub/DesignCenterStub.java new file mode 100644 index 000000000000..eff30712900e --- /dev/null +++ b/java-designcenter/google-cloud-designcenter/src/main/java/com/google/cloud/designcenter/v1/stub/DesignCenterStub.java @@ -0,0 +1,849 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.stub; + +import static com.google.cloud.designcenter.v1.DesignCenterClient.FetchFrameworksPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListApplicationTemplateRevisionsPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListApplicationTemplateSystemRevisionsPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListApplicationTemplatesPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListApplicationsPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListCatalogTemplateRevisionsPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListCatalogTemplatesPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListCatalogsPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListComponentsPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListConnectionsPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListLocationsPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListPoliciesPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListSharedTemplateRevisionsPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListSharedTemplatesPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListSharesPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListSpacesPagedResponse; + +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.designcenter.v1.Application; +import com.google.cloud.designcenter.v1.ApplicationTemplate; +import com.google.cloud.designcenter.v1.ApplicationTemplateRevision; +import com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision; +import com.google.cloud.designcenter.v1.Catalog; +import com.google.cloud.designcenter.v1.CatalogTemplate; +import com.google.cloud.designcenter.v1.CatalogTemplateRevision; +import com.google.cloud.designcenter.v1.CommitApplicationTemplateRequest; +import com.google.cloud.designcenter.v1.Component; +import com.google.cloud.designcenter.v1.Connection; +import com.google.cloud.designcenter.v1.CreateApplicationRequest; +import com.google.cloud.designcenter.v1.CreateApplicationTemplateRequest; +import com.google.cloud.designcenter.v1.CreateCatalogRequest; +import com.google.cloud.designcenter.v1.CreateCatalogTemplateRequest; +import com.google.cloud.designcenter.v1.CreateCatalogTemplateRevisionRequest; +import com.google.cloud.designcenter.v1.CreateComponentRequest; +import com.google.cloud.designcenter.v1.CreateConnectionRequest; +import com.google.cloud.designcenter.v1.CreatePolicyRequest; +import com.google.cloud.designcenter.v1.CreateShareRequest; +import com.google.cloud.designcenter.v1.CreateSpaceRequest; +import com.google.cloud.designcenter.v1.DeleteApplicationRequest; +import com.google.cloud.designcenter.v1.DeleteApplicationTemplateRequest; +import com.google.cloud.designcenter.v1.DeleteApplicationTemplateRevisionRequest; +import com.google.cloud.designcenter.v1.DeleteCatalogRequest; +import com.google.cloud.designcenter.v1.DeleteCatalogTemplateRequest; +import com.google.cloud.designcenter.v1.DeleteCatalogTemplateRevisionRequest; +import com.google.cloud.designcenter.v1.DeleteComponentRequest; +import com.google.cloud.designcenter.v1.DeleteConnectionRequest; +import com.google.cloud.designcenter.v1.DeletePolicyRequest; +import com.google.cloud.designcenter.v1.DeleteShareRequest; +import com.google.cloud.designcenter.v1.DeleteSpaceRequest; +import com.google.cloud.designcenter.v1.DeployApplicationRequest; +import com.google.cloud.designcenter.v1.DeployApplicationResponse; +import com.google.cloud.designcenter.v1.ExportApplicationIaCRequest; +import com.google.cloud.designcenter.v1.ExportApplicationIaCResponse; +import com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCRequest; +import com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCResponse; +import com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCRequest; +import com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCResponse; +import com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportRequest; +import com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportResponse; +import com.google.cloud.designcenter.v1.FetchFrameworksRequest; +import com.google.cloud.designcenter.v1.FetchFrameworksResponse; +import com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportRequest; +import com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportResponse; +import com.google.cloud.designcenter.v1.GenerateApplicationIaCRequest; +import com.google.cloud.designcenter.v1.GenerateApplicationIaCResponse; +import com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportRequest; +import com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportResponse; +import com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest; +import com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCResponse; +import com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest; +import com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCResponse; +import com.google.cloud.designcenter.v1.GenerateAssessmentReportRequest; +import com.google.cloud.designcenter.v1.GenerateAssessmentReportResponse; +import com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportRequest; +import com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportResponse; +import com.google.cloud.designcenter.v1.GetApplicationRequest; +import com.google.cloud.designcenter.v1.GetApplicationTemplateRequest; +import com.google.cloud.designcenter.v1.GetApplicationTemplateRevisionRequest; +import com.google.cloud.designcenter.v1.GetApplicationTemplateSystemRevisionRequest; +import com.google.cloud.designcenter.v1.GetCatalogRequest; +import com.google.cloud.designcenter.v1.GetCatalogTemplateRequest; +import com.google.cloud.designcenter.v1.GetCatalogTemplateRevisionRequest; +import com.google.cloud.designcenter.v1.GetComponentRequest; +import com.google.cloud.designcenter.v1.GetConnectionRequest; +import com.google.cloud.designcenter.v1.GetPolicyRequest; +import com.google.cloud.designcenter.v1.GetShareRequest; +import com.google.cloud.designcenter.v1.GetSharedTemplateRequest; +import com.google.cloud.designcenter.v1.GetSharedTemplateRevisionRequest; +import com.google.cloud.designcenter.v1.GetSpaceRequest; +import com.google.cloud.designcenter.v1.ImportApplicationIaCRequest; +import com.google.cloud.designcenter.v1.ImportApplicationIaCResponse; +import com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCRequest; +import com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse; +import com.google.cloud.designcenter.v1.ImportApplicationTemplateRequest; +import com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCRequest; +import com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCResponse; +import com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsRequest; +import com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsResponse; +import com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsRequest; +import com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsResponse; +import com.google.cloud.designcenter.v1.ListApplicationTemplatesRequest; +import com.google.cloud.designcenter.v1.ListApplicationTemplatesResponse; +import com.google.cloud.designcenter.v1.ListApplicationsRequest; +import com.google.cloud.designcenter.v1.ListApplicationsResponse; +import com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsRequest; +import com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsResponse; +import com.google.cloud.designcenter.v1.ListCatalogTemplatesRequest; +import com.google.cloud.designcenter.v1.ListCatalogTemplatesResponse; +import com.google.cloud.designcenter.v1.ListCatalogsRequest; +import com.google.cloud.designcenter.v1.ListCatalogsResponse; +import com.google.cloud.designcenter.v1.ListComponentsRequest; +import com.google.cloud.designcenter.v1.ListComponentsResponse; +import com.google.cloud.designcenter.v1.ListConnectionsRequest; +import com.google.cloud.designcenter.v1.ListConnectionsResponse; +import com.google.cloud.designcenter.v1.ListPoliciesRequest; +import com.google.cloud.designcenter.v1.ListPoliciesResponse; +import com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsRequest; +import com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsResponse; +import com.google.cloud.designcenter.v1.ListSharedTemplatesRequest; +import com.google.cloud.designcenter.v1.ListSharedTemplatesResponse; +import com.google.cloud.designcenter.v1.ListSharesRequest; +import com.google.cloud.designcenter.v1.ListSharesResponse; +import com.google.cloud.designcenter.v1.ListSpacesRequest; +import com.google.cloud.designcenter.v1.ListSpacesResponse; +import com.google.cloud.designcenter.v1.OperationMetadata; +import com.google.cloud.designcenter.v1.Policy; +import com.google.cloud.designcenter.v1.PreviewApplicationRequest; +import com.google.cloud.designcenter.v1.PreviewApplicationResponse; +import com.google.cloud.designcenter.v1.RecommendIAMRolesRequest; +import com.google.cloud.designcenter.v1.RecommendIAMRolesResponse; +import com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesRequest; +import com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesResponse; +import com.google.cloud.designcenter.v1.Share; +import com.google.cloud.designcenter.v1.SharedTemplate; +import com.google.cloud.designcenter.v1.SharedTemplateRevision; +import com.google.cloud.designcenter.v1.SnapshotApplicationTemplateRequest; +import com.google.cloud.designcenter.v1.SnapshotApplicationTemplateResponse; +import com.google.cloud.designcenter.v1.Space; +import com.google.cloud.designcenter.v1.SyncShareRequest; +import com.google.cloud.designcenter.v1.UpdateApplicationRequest; +import com.google.cloud.designcenter.v1.UpdateApplicationTemplateRequest; +import com.google.cloud.designcenter.v1.UpdateCatalogRequest; +import com.google.cloud.designcenter.v1.UpdateCatalogTemplateRequest; +import com.google.cloud.designcenter.v1.UpdateComponentRequest; +import com.google.cloud.designcenter.v1.UpdateConnectionRequest; +import com.google.cloud.designcenter.v1.UpdatePolicyRequest; +import com.google.cloud.designcenter.v1.UpdateSpaceRequest; +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.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import com.google.protobuf.Empty; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the DesignCenter service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@NullMarked +@Generated("by gapic-generator-java") +public abstract class DesignCenterStub implements BackgroundResource { + + public @Nullable OperationsStub getOperationsStub() { + return null; + } + + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { + return null; + } + + public UnaryCallable getSpaceCallable() { + throw new UnsupportedOperationException("Not implemented: getSpaceCallable()"); + } + + public UnaryCallable listSpacesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listSpacesPagedCallable()"); + } + + public UnaryCallable listSpacesCallable() { + throw new UnsupportedOperationException("Not implemented: listSpacesCallable()"); + } + + public UnaryCallable createSpaceCallable() { + throw new UnsupportedOperationException("Not implemented: createSpaceCallable()"); + } + + public UnaryCallable updateSpaceCallable() { + throw new UnsupportedOperationException("Not implemented: updateSpaceCallable()"); + } + + public UnaryCallable deleteSpaceCallable() { + throw new UnsupportedOperationException("Not implemented: deleteSpaceCallable()"); + } + + public UnaryCallable + getApplicationTemplateCallable() { + throw new UnsupportedOperationException("Not implemented: getApplicationTemplateCallable()"); + } + + public UnaryCallable + listApplicationTemplatesPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listApplicationTemplatesPagedCallable()"); + } + + public UnaryCallable + listApplicationTemplatesCallable() { + throw new UnsupportedOperationException("Not implemented: listApplicationTemplatesCallable()"); + } + + public UnaryCallable + createApplicationTemplateCallable() { + throw new UnsupportedOperationException("Not implemented: createApplicationTemplateCallable()"); + } + + public UnaryCallable + updateApplicationTemplateCallable() { + throw new UnsupportedOperationException("Not implemented: updateApplicationTemplateCallable()"); + } + + public UnaryCallable + importApplicationTemplateCallable() { + throw new UnsupportedOperationException("Not implemented: importApplicationTemplateCallable()"); + } + + public UnaryCallable + deleteApplicationTemplateCallable() { + throw new UnsupportedOperationException("Not implemented: deleteApplicationTemplateCallable()"); + } + + public UnaryCallable + commitApplicationTemplateCallable() { + throw new UnsupportedOperationException("Not implemented: commitApplicationTemplateCallable()"); + } + + public OperationCallable< + SnapshotApplicationTemplateRequest, + SnapshotApplicationTemplateResponse, + OperationMetadata> + snapshotApplicationTemplateOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: snapshotApplicationTemplateOperationCallable()"); + } + + public UnaryCallable + snapshotApplicationTemplateCallable() { + throw new UnsupportedOperationException( + "Not implemented: snapshotApplicationTemplateCallable()"); + } + + public UnaryCallable< + GenerateApplicationTemplateIaCRequest, GenerateApplicationTemplateIaCResponse> + generateApplicationTemplateIaCCallable() { + throw new UnsupportedOperationException( + "Not implemented: generateApplicationTemplateIaCCallable()"); + } + + public OperationCallable< + ExportApplicationTemplateIaCRequest, + ExportApplicationTemplateIaCResponse, + OperationMetadata> + exportApplicationTemplateIaCOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: exportApplicationTemplateIaCOperationCallable()"); + } + + public UnaryCallable + exportApplicationTemplateIaCCallable() { + throw new UnsupportedOperationException( + "Not implemented: exportApplicationTemplateIaCCallable()"); + } + + public UnaryCallable< + GenerateApplicationTemplateRevisionIaCRequest, + GenerateApplicationTemplateRevisionIaCResponse> + generateApplicationTemplateRevisionIaCCallable() { + throw new UnsupportedOperationException( + "Not implemented: generateApplicationTemplateRevisionIaCCallable()"); + } + + public OperationCallable< + ExportApplicationTemplateRevisionIaCRequest, + ExportApplicationTemplateRevisionIaCResponse, + OperationMetadata> + exportApplicationTemplateRevisionIaCOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: exportApplicationTemplateRevisionIaCOperationCallable()"); + } + + public UnaryCallable + exportApplicationTemplateRevisionIaCCallable() { + throw new UnsupportedOperationException( + "Not implemented: exportApplicationTemplateRevisionIaCCallable()"); + } + + public UnaryCallable getComponentCallable() { + throw new UnsupportedOperationException("Not implemented: getComponentCallable()"); + } + + public UnaryCallable + listComponentsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listComponentsPagedCallable()"); + } + + public UnaryCallable listComponentsCallable() { + throw new UnsupportedOperationException("Not implemented: listComponentsCallable()"); + } + + public UnaryCallable createComponentCallable() { + throw new UnsupportedOperationException("Not implemented: createComponentCallable()"); + } + + public UnaryCallable updateComponentCallable() { + throw new UnsupportedOperationException("Not implemented: updateComponentCallable()"); + } + + public UnaryCallable deleteComponentCallable() { + throw new UnsupportedOperationException("Not implemented: deleteComponentCallable()"); + } + + public UnaryCallable getConnectionCallable() { + throw new UnsupportedOperationException("Not implemented: getConnectionCallable()"); + } + + public UnaryCallable + listConnectionsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listConnectionsPagedCallable()"); + } + + public UnaryCallable listConnectionsCallable() { + throw new UnsupportedOperationException("Not implemented: listConnectionsCallable()"); + } + + public UnaryCallable createConnectionCallable() { + throw new UnsupportedOperationException("Not implemented: createConnectionCallable()"); + } + + public UnaryCallable updateConnectionCallable() { + throw new UnsupportedOperationException("Not implemented: updateConnectionCallable()"); + } + + public UnaryCallable deleteConnectionCallable() { + throw new UnsupportedOperationException("Not implemented: deleteConnectionCallable()"); + } + + public UnaryCallable + getApplicationTemplateRevisionCallable() { + throw new UnsupportedOperationException( + "Not implemented: getApplicationTemplateRevisionCallable()"); + } + + public UnaryCallable< + ListApplicationTemplateRevisionsRequest, ListApplicationTemplateRevisionsPagedResponse> + listApplicationTemplateRevisionsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listApplicationTemplateRevisionsPagedCallable()"); + } + + public UnaryCallable< + ListApplicationTemplateRevisionsRequest, ListApplicationTemplateRevisionsResponse> + listApplicationTemplateRevisionsCallable() { + throw new UnsupportedOperationException( + "Not implemented: listApplicationTemplateRevisionsCallable()"); + } + + public UnaryCallable + deleteApplicationTemplateRevisionCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteApplicationTemplateRevisionCallable()"); + } + + public UnaryCallable getCatalogCallable() { + throw new UnsupportedOperationException("Not implemented: getCatalogCallable()"); + } + + public UnaryCallable listCatalogsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listCatalogsPagedCallable()"); + } + + public UnaryCallable listCatalogsCallable() { + throw new UnsupportedOperationException("Not implemented: listCatalogsCallable()"); + } + + public UnaryCallable createCatalogCallable() { + throw new UnsupportedOperationException("Not implemented: createCatalogCallable()"); + } + + public UnaryCallable updateCatalogCallable() { + throw new UnsupportedOperationException("Not implemented: updateCatalogCallable()"); + } + + public OperationCallable + deleteCatalogOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteCatalogOperationCallable()"); + } + + public UnaryCallable deleteCatalogCallable() { + throw new UnsupportedOperationException("Not implemented: deleteCatalogCallable()"); + } + + public UnaryCallable + createCatalogTemplateCallable() { + throw new UnsupportedOperationException("Not implemented: createCatalogTemplateCallable()"); + } + + public UnaryCallable getCatalogTemplateCallable() { + throw new UnsupportedOperationException("Not implemented: getCatalogTemplateCallable()"); + } + + public UnaryCallable + listCatalogTemplatesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listCatalogTemplatesPagedCallable()"); + } + + public UnaryCallable + listCatalogTemplatesCallable() { + throw new UnsupportedOperationException("Not implemented: listCatalogTemplatesCallable()"); + } + + public UnaryCallable + updateCatalogTemplateCallable() { + throw new UnsupportedOperationException("Not implemented: updateCatalogTemplateCallable()"); + } + + public OperationCallable + deleteCatalogTemplateOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteCatalogTemplateOperationCallable()"); + } + + public UnaryCallable deleteCatalogTemplateCallable() { + throw new UnsupportedOperationException("Not implemented: deleteCatalogTemplateCallable()"); + } + + public OperationCallable + createShareOperationCallable() { + throw new UnsupportedOperationException("Not implemented: createShareOperationCallable()"); + } + + public UnaryCallable createShareCallable() { + throw new UnsupportedOperationException("Not implemented: createShareCallable()"); + } + + public UnaryCallable listSharesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listSharesPagedCallable()"); + } + + public UnaryCallable listSharesCallable() { + throw new UnsupportedOperationException("Not implemented: listSharesCallable()"); + } + + public UnaryCallable getShareCallable() { + throw new UnsupportedOperationException("Not implemented: getShareCallable()"); + } + + public OperationCallable + deleteShareOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteShareOperationCallable()"); + } + + public UnaryCallable deleteShareCallable() { + throw new UnsupportedOperationException("Not implemented: deleteShareCallable()"); + } + + public OperationCallable + syncShareOperationCallable() { + throw new UnsupportedOperationException("Not implemented: syncShareOperationCallable()"); + } + + public UnaryCallable syncShareCallable() { + throw new UnsupportedOperationException("Not implemented: syncShareCallable()"); + } + + public UnaryCallable getSharedTemplateCallable() { + throw new UnsupportedOperationException("Not implemented: getSharedTemplateCallable()"); + } + + public UnaryCallable + listSharedTemplatesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listSharedTemplatesPagedCallable()"); + } + + public UnaryCallable + listSharedTemplatesCallable() { + throw new UnsupportedOperationException("Not implemented: listSharedTemplatesCallable()"); + } + + public UnaryCallable + getSharedTemplateRevisionCallable() { + throw new UnsupportedOperationException("Not implemented: getSharedTemplateRevisionCallable()"); + } + + public UnaryCallable + listSharedTemplateRevisionsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listSharedTemplateRevisionsPagedCallable()"); + } + + public UnaryCallable + listSharedTemplateRevisionsCallable() { + throw new UnsupportedOperationException( + "Not implemented: listSharedTemplateRevisionsCallable()"); + } + + public OperationCallable< + CreateCatalogTemplateRevisionRequest, CatalogTemplateRevision, OperationMetadata> + createCatalogTemplateRevisionOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createCatalogTemplateRevisionOperationCallable()"); + } + + public UnaryCallable + createCatalogTemplateRevisionCallable() { + throw new UnsupportedOperationException( + "Not implemented: createCatalogTemplateRevisionCallable()"); + } + + public UnaryCallable + getCatalogTemplateRevisionCallable() { + throw new UnsupportedOperationException( + "Not implemented: getCatalogTemplateRevisionCallable()"); + } + + public UnaryCallable< + ListCatalogTemplateRevisionsRequest, ListCatalogTemplateRevisionsPagedResponse> + listCatalogTemplateRevisionsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listCatalogTemplateRevisionsPagedCallable()"); + } + + public UnaryCallable + listCatalogTemplateRevisionsCallable() { + throw new UnsupportedOperationException( + "Not implemented: listCatalogTemplateRevisionsCallable()"); + } + + public OperationCallable + deleteCatalogTemplateRevisionOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteCatalogTemplateRevisionOperationCallable()"); + } + + public UnaryCallable + deleteCatalogTemplateRevisionCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteCatalogTemplateRevisionCallable()"); + } + + public UnaryCallable createApplicationCallable() { + throw new UnsupportedOperationException("Not implemented: createApplicationCallable()"); + } + + public UnaryCallable getApplicationCallable() { + throw new UnsupportedOperationException("Not implemented: getApplicationCallable()"); + } + + public UnaryCallable + listApplicationsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listApplicationsPagedCallable()"); + } + + public UnaryCallable + listApplicationsCallable() { + throw new UnsupportedOperationException("Not implemented: listApplicationsCallable()"); + } + + public UnaryCallable updateApplicationCallable() { + throw new UnsupportedOperationException("Not implemented: updateApplicationCallable()"); + } + + public OperationCallable + deleteApplicationOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteApplicationOperationCallable()"); + } + + public UnaryCallable deleteApplicationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteApplicationCallable()"); + } + + public OperationCallable + deployApplicationOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deployApplicationOperationCallable()"); + } + + public UnaryCallable deployApplicationCallable() { + throw new UnsupportedOperationException("Not implemented: deployApplicationCallable()"); + } + + public OperationCallable + previewApplicationOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: previewApplicationOperationCallable()"); + } + + public UnaryCallable previewApplicationCallable() { + throw new UnsupportedOperationException("Not implemented: previewApplicationCallable()"); + } + + public UnaryCallable< + FetchApplicationAssessmentReportRequest, FetchApplicationAssessmentReportResponse> + fetchApplicationAssessmentReportCallable() { + throw new UnsupportedOperationException( + "Not implemented: fetchApplicationAssessmentReportCallable()"); + } + + public OperationCallable< + GenerateApplicationAssessmentReportRequest, + GenerateApplicationAssessmentReportResponse, + OperationMetadata> + generateApplicationAssessmentReportOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: generateApplicationAssessmentReportOperationCallable()"); + } + + public UnaryCallable + generateApplicationAssessmentReportCallable() { + throw new UnsupportedOperationException( + "Not implemented: generateApplicationAssessmentReportCallable()"); + } + + public OperationCallable< + GenerateApplicationTemplateAssessmentReportRequest, + GenerateApplicationTemplateAssessmentReportResponse, + OperationMetadata> + generateApplicationTemplateAssessmentReportOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: generateApplicationTemplateAssessmentReportOperationCallable()"); + } + + public UnaryCallable + generateApplicationTemplateAssessmentReportCallable() { + throw new UnsupportedOperationException( + "Not implemented: generateApplicationTemplateAssessmentReportCallable()"); + } + + @Deprecated + public OperationCallable< + GenerateAssessmentReportRequest, GenerateAssessmentReportResponse, OperationMetadata> + generateAssessmentReportOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: generateAssessmentReportOperationCallable()"); + } + + @Deprecated + public UnaryCallable + generateAssessmentReportCallable() { + throw new UnsupportedOperationException("Not implemented: generateAssessmentReportCallable()"); + } + + public OperationCallable< + GenerateTerraformPlanAssessmentReportRequest, + GenerateTerraformPlanAssessmentReportResponse, + OperationMetadata> + generateTerraformPlanAssessmentReportOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: generateTerraformPlanAssessmentReportOperationCallable()"); + } + + public UnaryCallable + generateTerraformPlanAssessmentReportCallable() { + throw new UnsupportedOperationException( + "Not implemented: generateTerraformPlanAssessmentReportCallable()"); + } + + public UnaryCallable getPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: getPolicyCallable()"); + } + + public UnaryCallable listPoliciesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listPoliciesPagedCallable()"); + } + + public UnaryCallable listPoliciesCallable() { + throw new UnsupportedOperationException("Not implemented: listPoliciesCallable()"); + } + + public UnaryCallable createPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: createPolicyCallable()"); + } + + public UnaryCallable updatePolicyCallable() { + throw new UnsupportedOperationException("Not implemented: updatePolicyCallable()"); + } + + public UnaryCallable deletePolicyCallable() { + throw new UnsupportedOperationException("Not implemented: deletePolicyCallable()"); + } + + public UnaryCallable + fetchFrameworksPagedCallable() { + throw new UnsupportedOperationException("Not implemented: fetchFrameworksPagedCallable()"); + } + + public UnaryCallable fetchFrameworksCallable() { + throw new UnsupportedOperationException("Not implemented: fetchFrameworksCallable()"); + } + + public UnaryCallable + generateApplicationIaCCallable() { + throw new UnsupportedOperationException("Not implemented: generateApplicationIaCCallable()"); + } + + public OperationCallable< + ExportApplicationIaCRequest, ExportApplicationIaCResponse, OperationMetadata> + exportApplicationIaCOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: exportApplicationIaCOperationCallable()"); + } + + public UnaryCallable exportApplicationIaCCallable() { + throw new UnsupportedOperationException("Not implemented: exportApplicationIaCCallable()"); + } + + public UnaryCallable + importApplicationTemplateIaCCallable() { + throw new UnsupportedOperationException( + "Not implemented: importApplicationTemplateIaCCallable()"); + } + + public OperationCallable< + IngestApplicationTemplateIaCRequest, + IngestApplicationTemplateIaCResponse, + OperationMetadata> + ingestApplicationTemplateIaCOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: ingestApplicationTemplateIaCOperationCallable()"); + } + + public UnaryCallable + ingestApplicationTemplateIaCCallable() { + throw new UnsupportedOperationException( + "Not implemented: ingestApplicationTemplateIaCCallable()"); + } + + public UnaryCallable + importApplicationIaCCallable() { + throw new UnsupportedOperationException("Not implemented: importApplicationIaCCallable()"); + } + + public OperationCallable< + RegisterAppHubApplicationResourcesRequest, + RegisterAppHubApplicationResourcesResponse, + OperationMetadata> + registerAppHubApplicationResourcesOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: registerAppHubApplicationResourcesOperationCallable()"); + } + + public UnaryCallable + registerAppHubApplicationResourcesCallable() { + throw new UnsupportedOperationException( + "Not implemented: registerAppHubApplicationResourcesCallable()"); + } + + public UnaryCallable< + ListApplicationTemplateSystemRevisionsRequest, + ListApplicationTemplateSystemRevisionsPagedResponse> + listApplicationTemplateSystemRevisionsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listApplicationTemplateSystemRevisionsPagedCallable()"); + } + + public UnaryCallable< + ListApplicationTemplateSystemRevisionsRequest, + ListApplicationTemplateSystemRevisionsResponse> + listApplicationTemplateSystemRevisionsCallable() { + throw new UnsupportedOperationException( + "Not implemented: listApplicationTemplateSystemRevisionsCallable()"); + } + + public UnaryCallable< + GetApplicationTemplateSystemRevisionRequest, ApplicationTemplateSystemRevision> + getApplicationTemplateSystemRevisionCallable() { + throw new UnsupportedOperationException( + "Not implemented: getApplicationTemplateSystemRevisionCallable()"); + } + + public OperationCallable + recommendIAMRolesOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: recommendIAMRolesOperationCallable()"); + } + + public UnaryCallable recommendIAMRolesCallable() { + throw new UnsupportedOperationException("Not implemented: recommendIAMRolesCallable()"); + } + + 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()"); + } + + public UnaryCallable setIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()"); + } + + public UnaryCallable getIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()"); + } + + public UnaryCallable + testIamPermissionsCallable() { + throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-designcenter/google-cloud-designcenter/src/main/java/com/google/cloud/designcenter/v1/stub/DesignCenterStubSettings.java b/java-designcenter/google-cloud-designcenter/src/main/java/com/google/cloud/designcenter/v1/stub/DesignCenterStubSettings.java new file mode 100644 index 000000000000..83394606e064 --- /dev/null +++ b/java-designcenter/google-cloud-designcenter/src/main/java/com/google/cloud/designcenter/v1/stub/DesignCenterStubSettings.java @@ -0,0 +1,4965 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.stub; + +import static com.google.cloud.designcenter.v1.DesignCenterClient.FetchFrameworksPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListApplicationTemplateRevisionsPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListApplicationTemplateSystemRevisionsPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListApplicationTemplatesPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListApplicationsPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListCatalogTemplateRevisionsPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListCatalogTemplatesPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListCatalogsPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListComponentsPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListConnectionsPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListLocationsPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListPoliciesPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListSharedTemplateRevisionsPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListSharedTemplatesPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListSharesPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListSpacesPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.core.ObsoleteApi; +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.LibraryMetadata; +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.designcenter.v1.Application; +import com.google.cloud.designcenter.v1.ApplicationTemplate; +import com.google.cloud.designcenter.v1.ApplicationTemplateRevision; +import com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision; +import com.google.cloud.designcenter.v1.Catalog; +import com.google.cloud.designcenter.v1.CatalogTemplate; +import com.google.cloud.designcenter.v1.CatalogTemplateRevision; +import com.google.cloud.designcenter.v1.CommitApplicationTemplateRequest; +import com.google.cloud.designcenter.v1.Component; +import com.google.cloud.designcenter.v1.Connection; +import com.google.cloud.designcenter.v1.CreateApplicationRequest; +import com.google.cloud.designcenter.v1.CreateApplicationTemplateRequest; +import com.google.cloud.designcenter.v1.CreateCatalogRequest; +import com.google.cloud.designcenter.v1.CreateCatalogTemplateRequest; +import com.google.cloud.designcenter.v1.CreateCatalogTemplateRevisionRequest; +import com.google.cloud.designcenter.v1.CreateComponentRequest; +import com.google.cloud.designcenter.v1.CreateConnectionRequest; +import com.google.cloud.designcenter.v1.CreatePolicyRequest; +import com.google.cloud.designcenter.v1.CreateShareRequest; +import com.google.cloud.designcenter.v1.CreateSpaceRequest; +import com.google.cloud.designcenter.v1.DeleteApplicationRequest; +import com.google.cloud.designcenter.v1.DeleteApplicationTemplateRequest; +import com.google.cloud.designcenter.v1.DeleteApplicationTemplateRevisionRequest; +import com.google.cloud.designcenter.v1.DeleteCatalogRequest; +import com.google.cloud.designcenter.v1.DeleteCatalogTemplateRequest; +import com.google.cloud.designcenter.v1.DeleteCatalogTemplateRevisionRequest; +import com.google.cloud.designcenter.v1.DeleteComponentRequest; +import com.google.cloud.designcenter.v1.DeleteConnectionRequest; +import com.google.cloud.designcenter.v1.DeletePolicyRequest; +import com.google.cloud.designcenter.v1.DeleteShareRequest; +import com.google.cloud.designcenter.v1.DeleteSpaceRequest; +import com.google.cloud.designcenter.v1.DeployApplicationRequest; +import com.google.cloud.designcenter.v1.DeployApplicationResponse; +import com.google.cloud.designcenter.v1.ExportApplicationIaCRequest; +import com.google.cloud.designcenter.v1.ExportApplicationIaCResponse; +import com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCRequest; +import com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCResponse; +import com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCRequest; +import com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCResponse; +import com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportRequest; +import com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportResponse; +import com.google.cloud.designcenter.v1.FetchFrameworksRequest; +import com.google.cloud.designcenter.v1.FetchFrameworksResponse; +import com.google.cloud.designcenter.v1.Framework; +import com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportRequest; +import com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportResponse; +import com.google.cloud.designcenter.v1.GenerateApplicationIaCRequest; +import com.google.cloud.designcenter.v1.GenerateApplicationIaCResponse; +import com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportRequest; +import com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportResponse; +import com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest; +import com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCResponse; +import com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest; +import com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCResponse; +import com.google.cloud.designcenter.v1.GenerateAssessmentReportRequest; +import com.google.cloud.designcenter.v1.GenerateAssessmentReportResponse; +import com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportRequest; +import com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportResponse; +import com.google.cloud.designcenter.v1.GetApplicationRequest; +import com.google.cloud.designcenter.v1.GetApplicationTemplateRequest; +import com.google.cloud.designcenter.v1.GetApplicationTemplateRevisionRequest; +import com.google.cloud.designcenter.v1.GetApplicationTemplateSystemRevisionRequest; +import com.google.cloud.designcenter.v1.GetCatalogRequest; +import com.google.cloud.designcenter.v1.GetCatalogTemplateRequest; +import com.google.cloud.designcenter.v1.GetCatalogTemplateRevisionRequest; +import com.google.cloud.designcenter.v1.GetComponentRequest; +import com.google.cloud.designcenter.v1.GetConnectionRequest; +import com.google.cloud.designcenter.v1.GetPolicyRequest; +import com.google.cloud.designcenter.v1.GetShareRequest; +import com.google.cloud.designcenter.v1.GetSharedTemplateRequest; +import com.google.cloud.designcenter.v1.GetSharedTemplateRevisionRequest; +import com.google.cloud.designcenter.v1.GetSpaceRequest; +import com.google.cloud.designcenter.v1.ImportApplicationIaCRequest; +import com.google.cloud.designcenter.v1.ImportApplicationIaCResponse; +import com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCRequest; +import com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse; +import com.google.cloud.designcenter.v1.ImportApplicationTemplateRequest; +import com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCRequest; +import com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCResponse; +import com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsRequest; +import com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsResponse; +import com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsRequest; +import com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsResponse; +import com.google.cloud.designcenter.v1.ListApplicationTemplatesRequest; +import com.google.cloud.designcenter.v1.ListApplicationTemplatesResponse; +import com.google.cloud.designcenter.v1.ListApplicationsRequest; +import com.google.cloud.designcenter.v1.ListApplicationsResponse; +import com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsRequest; +import com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsResponse; +import com.google.cloud.designcenter.v1.ListCatalogTemplatesRequest; +import com.google.cloud.designcenter.v1.ListCatalogTemplatesResponse; +import com.google.cloud.designcenter.v1.ListCatalogsRequest; +import com.google.cloud.designcenter.v1.ListCatalogsResponse; +import com.google.cloud.designcenter.v1.ListComponentsRequest; +import com.google.cloud.designcenter.v1.ListComponentsResponse; +import com.google.cloud.designcenter.v1.ListConnectionsRequest; +import com.google.cloud.designcenter.v1.ListConnectionsResponse; +import com.google.cloud.designcenter.v1.ListPoliciesRequest; +import com.google.cloud.designcenter.v1.ListPoliciesResponse; +import com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsRequest; +import com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsResponse; +import com.google.cloud.designcenter.v1.ListSharedTemplatesRequest; +import com.google.cloud.designcenter.v1.ListSharedTemplatesResponse; +import com.google.cloud.designcenter.v1.ListSharesRequest; +import com.google.cloud.designcenter.v1.ListSharesResponse; +import com.google.cloud.designcenter.v1.ListSpacesRequest; +import com.google.cloud.designcenter.v1.ListSpacesResponse; +import com.google.cloud.designcenter.v1.OperationMetadata; +import com.google.cloud.designcenter.v1.Policy; +import com.google.cloud.designcenter.v1.PreviewApplicationRequest; +import com.google.cloud.designcenter.v1.PreviewApplicationResponse; +import com.google.cloud.designcenter.v1.RecommendIAMRolesRequest; +import com.google.cloud.designcenter.v1.RecommendIAMRolesResponse; +import com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesRequest; +import com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesResponse; +import com.google.cloud.designcenter.v1.Share; +import com.google.cloud.designcenter.v1.SharedTemplate; +import com.google.cloud.designcenter.v1.SharedTemplateRevision; +import com.google.cloud.designcenter.v1.SnapshotApplicationTemplateRequest; +import com.google.cloud.designcenter.v1.SnapshotApplicationTemplateResponse; +import com.google.cloud.designcenter.v1.Space; +import com.google.cloud.designcenter.v1.SyncShareRequest; +import com.google.cloud.designcenter.v1.UpdateApplicationRequest; +import com.google.cloud.designcenter.v1.UpdateApplicationTemplateRequest; +import com.google.cloud.designcenter.v1.UpdateCatalogRequest; +import com.google.cloud.designcenter.v1.UpdateCatalogTemplateRequest; +import com.google.cloud.designcenter.v1.UpdateComponentRequest; +import com.google.cloud.designcenter.v1.UpdateConnectionRequest; +import com.google.cloud.designcenter.v1.UpdatePolicyRequest; +import com.google.cloud.designcenter.v1.UpdateSpaceRequest; +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.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.time.Duration; +import java.util.List; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link DesignCenterStub}. + * + *

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

    + *
  • The default service address (designcenter.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 + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getSpace: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * DesignCenterStubSettings.Builder designCenterSettingsBuilder =
+ *     DesignCenterStubSettings.newBuilder();
+ * designCenterSettingsBuilder
+ *     .getSpaceSettings()
+ *     .setRetrySettings(
+ *         designCenterSettingsBuilder
+ *             .getSpaceSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * DesignCenterStubSettings designCenterSettings = designCenterSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + * + *

To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for snapshotApplicationTemplate: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * DesignCenterStubSettings.Builder designCenterSettingsBuilder =
+ *     DesignCenterStubSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ *     OperationalTimedPollAlgorithm.create(
+ *         RetrySettings.newBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ *             .setRetryDelayMultiplier(1.5)
+ *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ *             .setTotalTimeoutDuration(Duration.ofHours(24))
+ *             .build());
+ * designCenterSettingsBuilder
+ *     .createClusterOperationSettings()
+ *     .setPollingAlgorithm(timedRetryAlgorithm)
+ *     .build();
+ * }
+ */ +@NullMarked +@Generated("by gapic-generator-java") +@SuppressWarnings("CanonicalDuration") +public class DesignCenterStubSettings 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 UnaryCallSettings getSpaceSettings; + private final PagedCallSettings + listSpacesSettings; + private final UnaryCallSettings createSpaceSettings; + private final UnaryCallSettings updateSpaceSettings; + private final UnaryCallSettings deleteSpaceSettings; + private final UnaryCallSettings + getApplicationTemplateSettings; + private final PagedCallSettings< + ListApplicationTemplatesRequest, + ListApplicationTemplatesResponse, + ListApplicationTemplatesPagedResponse> + listApplicationTemplatesSettings; + private final UnaryCallSettings + createApplicationTemplateSettings; + private final UnaryCallSettings + updateApplicationTemplateSettings; + private final UnaryCallSettings + importApplicationTemplateSettings; + private final UnaryCallSettings + deleteApplicationTemplateSettings; + private final UnaryCallSettings + commitApplicationTemplateSettings; + private final UnaryCallSettings + snapshotApplicationTemplateSettings; + private final OperationCallSettings< + SnapshotApplicationTemplateRequest, + SnapshotApplicationTemplateResponse, + OperationMetadata> + snapshotApplicationTemplateOperationSettings; + private final UnaryCallSettings< + GenerateApplicationTemplateIaCRequest, GenerateApplicationTemplateIaCResponse> + generateApplicationTemplateIaCSettings; + private final UnaryCallSettings + exportApplicationTemplateIaCSettings; + private final OperationCallSettings< + ExportApplicationTemplateIaCRequest, + ExportApplicationTemplateIaCResponse, + OperationMetadata> + exportApplicationTemplateIaCOperationSettings; + private final UnaryCallSettings< + GenerateApplicationTemplateRevisionIaCRequest, + GenerateApplicationTemplateRevisionIaCResponse> + generateApplicationTemplateRevisionIaCSettings; + private final UnaryCallSettings + exportApplicationTemplateRevisionIaCSettings; + private final OperationCallSettings< + ExportApplicationTemplateRevisionIaCRequest, + ExportApplicationTemplateRevisionIaCResponse, + OperationMetadata> + exportApplicationTemplateRevisionIaCOperationSettings; + private final UnaryCallSettings getComponentSettings; + private final PagedCallSettings< + ListComponentsRequest, ListComponentsResponse, ListComponentsPagedResponse> + listComponentsSettings; + private final UnaryCallSettings createComponentSettings; + private final UnaryCallSettings updateComponentSettings; + private final UnaryCallSettings deleteComponentSettings; + private final UnaryCallSettings getConnectionSettings; + private final PagedCallSettings< + ListConnectionsRequest, ListConnectionsResponse, ListConnectionsPagedResponse> + listConnectionsSettings; + private final UnaryCallSettings createConnectionSettings; + private final UnaryCallSettings updateConnectionSettings; + private final UnaryCallSettings deleteConnectionSettings; + private final UnaryCallSettings< + GetApplicationTemplateRevisionRequest, ApplicationTemplateRevision> + getApplicationTemplateRevisionSettings; + private final PagedCallSettings< + ListApplicationTemplateRevisionsRequest, + ListApplicationTemplateRevisionsResponse, + ListApplicationTemplateRevisionsPagedResponse> + listApplicationTemplateRevisionsSettings; + private final UnaryCallSettings + deleteApplicationTemplateRevisionSettings; + private final UnaryCallSettings getCatalogSettings; + private final PagedCallSettings< + ListCatalogsRequest, ListCatalogsResponse, ListCatalogsPagedResponse> + listCatalogsSettings; + private final UnaryCallSettings createCatalogSettings; + private final UnaryCallSettings updateCatalogSettings; + private final UnaryCallSettings deleteCatalogSettings; + private final OperationCallSettings + deleteCatalogOperationSettings; + private final UnaryCallSettings + createCatalogTemplateSettings; + private final UnaryCallSettings + getCatalogTemplateSettings; + private final PagedCallSettings< + ListCatalogTemplatesRequest, + ListCatalogTemplatesResponse, + ListCatalogTemplatesPagedResponse> + listCatalogTemplatesSettings; + private final UnaryCallSettings + updateCatalogTemplateSettings; + private final UnaryCallSettings + deleteCatalogTemplateSettings; + private final OperationCallSettings + deleteCatalogTemplateOperationSettings; + private final UnaryCallSettings createShareSettings; + private final OperationCallSettings + createShareOperationSettings; + private final PagedCallSettings + listSharesSettings; + private final UnaryCallSettings getShareSettings; + private final UnaryCallSettings deleteShareSettings; + private final OperationCallSettings + deleteShareOperationSettings; + private final UnaryCallSettings syncShareSettings; + private final OperationCallSettings + syncShareOperationSettings; + private final UnaryCallSettings + getSharedTemplateSettings; + private final PagedCallSettings< + ListSharedTemplatesRequest, ListSharedTemplatesResponse, ListSharedTemplatesPagedResponse> + listSharedTemplatesSettings; + private final UnaryCallSettings + getSharedTemplateRevisionSettings; + private final PagedCallSettings< + ListSharedTemplateRevisionsRequest, + ListSharedTemplateRevisionsResponse, + ListSharedTemplateRevisionsPagedResponse> + listSharedTemplateRevisionsSettings; + private final UnaryCallSettings + createCatalogTemplateRevisionSettings; + private final OperationCallSettings< + CreateCatalogTemplateRevisionRequest, CatalogTemplateRevision, OperationMetadata> + createCatalogTemplateRevisionOperationSettings; + private final UnaryCallSettings + getCatalogTemplateRevisionSettings; + private final PagedCallSettings< + ListCatalogTemplateRevisionsRequest, + ListCatalogTemplateRevisionsResponse, + ListCatalogTemplateRevisionsPagedResponse> + listCatalogTemplateRevisionsSettings; + private final UnaryCallSettings + deleteCatalogTemplateRevisionSettings; + private final OperationCallSettings< + DeleteCatalogTemplateRevisionRequest, Empty, OperationMetadata> + deleteCatalogTemplateRevisionOperationSettings; + private final UnaryCallSettings createApplicationSettings; + private final UnaryCallSettings getApplicationSettings; + private final PagedCallSettings< + ListApplicationsRequest, ListApplicationsResponse, ListApplicationsPagedResponse> + listApplicationsSettings; + private final UnaryCallSettings updateApplicationSettings; + private final UnaryCallSettings deleteApplicationSettings; + private final OperationCallSettings + deleteApplicationOperationSettings; + private final UnaryCallSettings deployApplicationSettings; + private final OperationCallSettings< + DeployApplicationRequest, DeployApplicationResponse, OperationMetadata> + deployApplicationOperationSettings; + private final UnaryCallSettings previewApplicationSettings; + private final OperationCallSettings< + PreviewApplicationRequest, PreviewApplicationResponse, OperationMetadata> + previewApplicationOperationSettings; + private final UnaryCallSettings< + FetchApplicationAssessmentReportRequest, FetchApplicationAssessmentReportResponse> + fetchApplicationAssessmentReportSettings; + private final UnaryCallSettings + generateApplicationAssessmentReportSettings; + private final OperationCallSettings< + GenerateApplicationAssessmentReportRequest, + GenerateApplicationAssessmentReportResponse, + OperationMetadata> + generateApplicationAssessmentReportOperationSettings; + private final UnaryCallSettings + generateApplicationTemplateAssessmentReportSettings; + private final OperationCallSettings< + GenerateApplicationTemplateAssessmentReportRequest, + GenerateApplicationTemplateAssessmentReportResponse, + OperationMetadata> + generateApplicationTemplateAssessmentReportOperationSettings; + private final UnaryCallSettings + generateAssessmentReportSettings; + private final OperationCallSettings< + GenerateAssessmentReportRequest, GenerateAssessmentReportResponse, OperationMetadata> + generateAssessmentReportOperationSettings; + private final UnaryCallSettings + generateTerraformPlanAssessmentReportSettings; + private final OperationCallSettings< + GenerateTerraformPlanAssessmentReportRequest, + GenerateTerraformPlanAssessmentReportResponse, + OperationMetadata> + generateTerraformPlanAssessmentReportOperationSettings; + private final UnaryCallSettings getPolicySettings; + private final PagedCallSettings< + ListPoliciesRequest, ListPoliciesResponse, ListPoliciesPagedResponse> + listPoliciesSettings; + private final UnaryCallSettings createPolicySettings; + private final UnaryCallSettings updatePolicySettings; + private final UnaryCallSettings deletePolicySettings; + private final PagedCallSettings< + FetchFrameworksRequest, FetchFrameworksResponse, FetchFrameworksPagedResponse> + fetchFrameworksSettings; + private final UnaryCallSettings + generateApplicationIaCSettings; + private final UnaryCallSettings + exportApplicationIaCSettings; + private final OperationCallSettings< + ExportApplicationIaCRequest, ExportApplicationIaCResponse, OperationMetadata> + exportApplicationIaCOperationSettings; + private final UnaryCallSettings< + ImportApplicationTemplateIaCRequest, ImportApplicationTemplateIaCResponse> + importApplicationTemplateIaCSettings; + private final UnaryCallSettings + ingestApplicationTemplateIaCSettings; + private final OperationCallSettings< + IngestApplicationTemplateIaCRequest, + IngestApplicationTemplateIaCResponse, + OperationMetadata> + ingestApplicationTemplateIaCOperationSettings; + private final UnaryCallSettings + importApplicationIaCSettings; + private final UnaryCallSettings + registerAppHubApplicationResourcesSettings; + private final OperationCallSettings< + RegisterAppHubApplicationResourcesRequest, + RegisterAppHubApplicationResourcesResponse, + OperationMetadata> + registerAppHubApplicationResourcesOperationSettings; + private final PagedCallSettings< + ListApplicationTemplateSystemRevisionsRequest, + ListApplicationTemplateSystemRevisionsResponse, + ListApplicationTemplateSystemRevisionsPagedResponse> + listApplicationTemplateSystemRevisionsSettings; + private final UnaryCallSettings< + GetApplicationTemplateSystemRevisionRequest, ApplicationTemplateSystemRevision> + getApplicationTemplateSystemRevisionSettings; + private final UnaryCallSettings recommendIAMRolesSettings; + private final OperationCallSettings< + RecommendIAMRolesRequest, RecommendIAMRolesResponse, OperationMetadata> + recommendIAMRolesOperationSettings; + private final PagedCallSettings< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings getLocationSettings; + private final UnaryCallSettings + setIamPolicySettings; + private final UnaryCallSettings + getIamPolicySettings; + private final UnaryCallSettings + testIamPermissionsSettings; + + private static final PagedListDescriptor + LIST_SPACES_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListSpacesRequest injectToken(ListSpacesRequest payload, String token) { + return ListSpacesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListSpacesRequest injectPageSize(ListSpacesRequest payload, int pageSize) { + return ListSpacesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListSpacesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListSpacesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListSpacesResponse payload) { + return payload.getSpacesList(); + } + }; + + private static final PagedListDescriptor< + ListApplicationTemplatesRequest, ListApplicationTemplatesResponse, ApplicationTemplate> + LIST_APPLICATION_TEMPLATES_PAGE_STR_DESC = + new PagedListDescriptor< + ListApplicationTemplatesRequest, + ListApplicationTemplatesResponse, + ApplicationTemplate>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListApplicationTemplatesRequest injectToken( + ListApplicationTemplatesRequest payload, String token) { + return ListApplicationTemplatesRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListApplicationTemplatesRequest injectPageSize( + ListApplicationTemplatesRequest payload, int pageSize) { + return ListApplicationTemplatesRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListApplicationTemplatesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListApplicationTemplatesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListApplicationTemplatesResponse payload) { + return payload.getApplicationTemplatesList(); + } + }; + + private static final PagedListDescriptor + LIST_COMPONENTS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListComponentsRequest injectToken(ListComponentsRequest payload, String token) { + return ListComponentsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListComponentsRequest injectPageSize( + ListComponentsRequest payload, int pageSize) { + return ListComponentsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListComponentsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListComponentsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListComponentsResponse payload) { + return payload.getComponentsList(); + } + }; + + private static final PagedListDescriptor< + ListConnectionsRequest, ListConnectionsResponse, Connection> + LIST_CONNECTIONS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListConnectionsRequest injectToken( + ListConnectionsRequest payload, String token) { + return ListConnectionsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListConnectionsRequest injectPageSize( + ListConnectionsRequest payload, int pageSize) { + return ListConnectionsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListConnectionsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListConnectionsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListConnectionsResponse payload) { + return payload.getConnectionsList(); + } + }; + + private static final PagedListDescriptor< + ListApplicationTemplateRevisionsRequest, + ListApplicationTemplateRevisionsResponse, + ApplicationTemplateRevision> + LIST_APPLICATION_TEMPLATE_REVISIONS_PAGE_STR_DESC = + new PagedListDescriptor< + ListApplicationTemplateRevisionsRequest, + ListApplicationTemplateRevisionsResponse, + ApplicationTemplateRevision>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListApplicationTemplateRevisionsRequest injectToken( + ListApplicationTemplateRevisionsRequest payload, String token) { + return ListApplicationTemplateRevisionsRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListApplicationTemplateRevisionsRequest injectPageSize( + ListApplicationTemplateRevisionsRequest payload, int pageSize) { + return ListApplicationTemplateRevisionsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListApplicationTemplateRevisionsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListApplicationTemplateRevisionsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListApplicationTemplateRevisionsResponse payload) { + return payload.getApplicationTemplateRevisionsList(); + } + }; + + private static final PagedListDescriptor + LIST_CATALOGS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListCatalogsRequest injectToken(ListCatalogsRequest payload, String token) { + return ListCatalogsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListCatalogsRequest injectPageSize(ListCatalogsRequest payload, int pageSize) { + return ListCatalogsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListCatalogsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListCatalogsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListCatalogsResponse payload) { + return payload.getCatalogsList(); + } + }; + + private static final PagedListDescriptor< + ListCatalogTemplatesRequest, ListCatalogTemplatesResponse, CatalogTemplate> + LIST_CATALOG_TEMPLATES_PAGE_STR_DESC = + new PagedListDescriptor< + ListCatalogTemplatesRequest, ListCatalogTemplatesResponse, CatalogTemplate>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListCatalogTemplatesRequest injectToken( + ListCatalogTemplatesRequest payload, String token) { + return ListCatalogTemplatesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListCatalogTemplatesRequest injectPageSize( + ListCatalogTemplatesRequest payload, int pageSize) { + return ListCatalogTemplatesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListCatalogTemplatesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListCatalogTemplatesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListCatalogTemplatesResponse payload) { + return payload.getCatalogTemplatesList(); + } + }; + + private static final PagedListDescriptor + LIST_SHARES_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListSharesRequest injectToken(ListSharesRequest payload, String token) { + return ListSharesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListSharesRequest injectPageSize(ListSharesRequest payload, int pageSize) { + return ListSharesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListSharesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListSharesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListSharesResponse payload) { + return payload.getSharesList(); + } + }; + + private static final PagedListDescriptor< + ListSharedTemplatesRequest, ListSharedTemplatesResponse, SharedTemplate> + LIST_SHARED_TEMPLATES_PAGE_STR_DESC = + new PagedListDescriptor< + ListSharedTemplatesRequest, ListSharedTemplatesResponse, SharedTemplate>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListSharedTemplatesRequest injectToken( + ListSharedTemplatesRequest payload, String token) { + return ListSharedTemplatesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListSharedTemplatesRequest injectPageSize( + ListSharedTemplatesRequest payload, int pageSize) { + return ListSharedTemplatesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListSharedTemplatesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListSharedTemplatesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListSharedTemplatesResponse payload) { + return payload.getSharedTemplatesList(); + } + }; + + private static final PagedListDescriptor< + ListSharedTemplateRevisionsRequest, + ListSharedTemplateRevisionsResponse, + SharedTemplateRevision> + LIST_SHARED_TEMPLATE_REVISIONS_PAGE_STR_DESC = + new PagedListDescriptor< + ListSharedTemplateRevisionsRequest, + ListSharedTemplateRevisionsResponse, + SharedTemplateRevision>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListSharedTemplateRevisionsRequest injectToken( + ListSharedTemplateRevisionsRequest payload, String token) { + return ListSharedTemplateRevisionsRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListSharedTemplateRevisionsRequest injectPageSize( + ListSharedTemplateRevisionsRequest payload, int pageSize) { + return ListSharedTemplateRevisionsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListSharedTemplateRevisionsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListSharedTemplateRevisionsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListSharedTemplateRevisionsResponse payload) { + return payload.getSharedTemplateRevisionsList(); + } + }; + + private static final PagedListDescriptor< + ListCatalogTemplateRevisionsRequest, + ListCatalogTemplateRevisionsResponse, + CatalogTemplateRevision> + LIST_CATALOG_TEMPLATE_REVISIONS_PAGE_STR_DESC = + new PagedListDescriptor< + ListCatalogTemplateRevisionsRequest, + ListCatalogTemplateRevisionsResponse, + CatalogTemplateRevision>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListCatalogTemplateRevisionsRequest injectToken( + ListCatalogTemplateRevisionsRequest payload, String token) { + return ListCatalogTemplateRevisionsRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListCatalogTemplateRevisionsRequest injectPageSize( + ListCatalogTemplateRevisionsRequest payload, int pageSize) { + return ListCatalogTemplateRevisionsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListCatalogTemplateRevisionsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListCatalogTemplateRevisionsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListCatalogTemplateRevisionsResponse payload) { + return payload.getCatalogTemplateRevisionsList(); + } + }; + + private static final PagedListDescriptor< + ListApplicationsRequest, ListApplicationsResponse, Application> + LIST_APPLICATIONS_PAGE_STR_DESC = + new PagedListDescriptor< + ListApplicationsRequest, ListApplicationsResponse, Application>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListApplicationsRequest injectToken( + ListApplicationsRequest payload, String token) { + return ListApplicationsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListApplicationsRequest injectPageSize( + ListApplicationsRequest payload, int pageSize) { + return ListApplicationsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListApplicationsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListApplicationsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListApplicationsResponse payload) { + return payload.getApplicationsList(); + } + }; + + private static final PagedListDescriptor + LIST_POLICIES_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListPoliciesRequest injectToken(ListPoliciesRequest payload, String token) { + return ListPoliciesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListPoliciesRequest injectPageSize(ListPoliciesRequest payload, int pageSize) { + return ListPoliciesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListPoliciesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListPoliciesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListPoliciesResponse payload) { + return payload.getPoliciesList(); + } + }; + + private static final PagedListDescriptor< + FetchFrameworksRequest, FetchFrameworksResponse, Framework> + FETCH_FRAMEWORKS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public FetchFrameworksRequest injectToken( + FetchFrameworksRequest payload, String token) { + return FetchFrameworksRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public FetchFrameworksRequest injectPageSize( + FetchFrameworksRequest payload, int pageSize) { + return FetchFrameworksRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(FetchFrameworksRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(FetchFrameworksResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(FetchFrameworksResponse payload) { + return payload.getFrameworksList(); + } + }; + + private static final PagedListDescriptor< + ListApplicationTemplateSystemRevisionsRequest, + ListApplicationTemplateSystemRevisionsResponse, + ApplicationTemplateSystemRevision> + LIST_APPLICATION_TEMPLATE_SYSTEM_REVISIONS_PAGE_STR_DESC = + new PagedListDescriptor< + ListApplicationTemplateSystemRevisionsRequest, + ListApplicationTemplateSystemRevisionsResponse, + ApplicationTemplateSystemRevision>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListApplicationTemplateSystemRevisionsRequest injectToken( + ListApplicationTemplateSystemRevisionsRequest payload, String token) { + return ListApplicationTemplateSystemRevisionsRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListApplicationTemplateSystemRevisionsRequest injectPageSize( + ListApplicationTemplateSystemRevisionsRequest payload, int pageSize) { + return ListApplicationTemplateSystemRevisionsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListApplicationTemplateSystemRevisionsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListApplicationTemplateSystemRevisionsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListApplicationTemplateSystemRevisionsResponse payload) { + return payload.getApplicationTemplateSystemRevisionsList(); + } + }; + + 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(); + } + }; + + private static final PagedListResponseFactory< + ListSpacesRequest, ListSpacesResponse, ListSpacesPagedResponse> + LIST_SPACES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListSpacesRequest, ListSpacesResponse, ListSpacesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListSpacesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_SPACES_PAGE_STR_DESC, request, context); + return ListSpacesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListApplicationTemplatesRequest, + ListApplicationTemplatesResponse, + ListApplicationTemplatesPagedResponse> + LIST_APPLICATION_TEMPLATES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListApplicationTemplatesRequest, + ListApplicationTemplatesResponse, + ListApplicationTemplatesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + ListApplicationTemplatesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListApplicationTemplatesRequest, + ListApplicationTemplatesResponse, + ApplicationTemplate> + pageContext = + PageContext.create( + callable, LIST_APPLICATION_TEMPLATES_PAGE_STR_DESC, request, context); + return ListApplicationTemplatesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListComponentsRequest, ListComponentsResponse, ListComponentsPagedResponse> + LIST_COMPONENTS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListComponentsRequest, ListComponentsResponse, ListComponentsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListComponentsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_COMPONENTS_PAGE_STR_DESC, request, context); + return ListComponentsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListConnectionsRequest, ListConnectionsResponse, ListConnectionsPagedResponse> + LIST_CONNECTIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListConnectionsRequest, ListConnectionsResponse, ListConnectionsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListConnectionsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_CONNECTIONS_PAGE_STR_DESC, request, context); + return ListConnectionsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListApplicationTemplateRevisionsRequest, + ListApplicationTemplateRevisionsResponse, + ListApplicationTemplateRevisionsPagedResponse> + LIST_APPLICATION_TEMPLATE_REVISIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListApplicationTemplateRevisionsRequest, + ListApplicationTemplateRevisionsResponse, + ListApplicationTemplateRevisionsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable< + ListApplicationTemplateRevisionsRequest, + ListApplicationTemplateRevisionsResponse> + callable, + ListApplicationTemplateRevisionsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListApplicationTemplateRevisionsRequest, + ListApplicationTemplateRevisionsResponse, + ApplicationTemplateRevision> + pageContext = + PageContext.create( + callable, + LIST_APPLICATION_TEMPLATE_REVISIONS_PAGE_STR_DESC, + request, + context); + return ListApplicationTemplateRevisionsPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListCatalogsRequest, ListCatalogsResponse, ListCatalogsPagedResponse> + LIST_CATALOGS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListCatalogsRequest, ListCatalogsResponse, ListCatalogsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListCatalogsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_CATALOGS_PAGE_STR_DESC, request, context); + return ListCatalogsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListCatalogTemplatesRequest, + ListCatalogTemplatesResponse, + ListCatalogTemplatesPagedResponse> + LIST_CATALOG_TEMPLATES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListCatalogTemplatesRequest, + ListCatalogTemplatesResponse, + ListCatalogTemplatesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListCatalogTemplatesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListCatalogTemplatesRequest, ListCatalogTemplatesResponse, CatalogTemplate> + pageContext = + PageContext.create( + callable, LIST_CATALOG_TEMPLATES_PAGE_STR_DESC, request, context); + return ListCatalogTemplatesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListSharesRequest, ListSharesResponse, ListSharesPagedResponse> + LIST_SHARES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListSharesRequest, ListSharesResponse, ListSharesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListSharesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_SHARES_PAGE_STR_DESC, request, context); + return ListSharesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListSharedTemplatesRequest, ListSharedTemplatesResponse, ListSharedTemplatesPagedResponse> + LIST_SHARED_TEMPLATES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListSharedTemplatesRequest, + ListSharedTemplatesResponse, + ListSharedTemplatesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListSharedTemplatesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_SHARED_TEMPLATES_PAGE_STR_DESC, request, context); + return ListSharedTemplatesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListSharedTemplateRevisionsRequest, + ListSharedTemplateRevisionsResponse, + ListSharedTemplateRevisionsPagedResponse> + LIST_SHARED_TEMPLATE_REVISIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListSharedTemplateRevisionsRequest, + ListSharedTemplateRevisionsResponse, + ListSharedTemplateRevisionsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable< + ListSharedTemplateRevisionsRequest, ListSharedTemplateRevisionsResponse> + callable, + ListSharedTemplateRevisionsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListSharedTemplateRevisionsRequest, + ListSharedTemplateRevisionsResponse, + SharedTemplateRevision> + pageContext = + PageContext.create( + callable, LIST_SHARED_TEMPLATE_REVISIONS_PAGE_STR_DESC, request, context); + return ListSharedTemplateRevisionsPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListCatalogTemplateRevisionsRequest, + ListCatalogTemplateRevisionsResponse, + ListCatalogTemplateRevisionsPagedResponse> + LIST_CATALOG_TEMPLATE_REVISIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListCatalogTemplateRevisionsRequest, + ListCatalogTemplateRevisionsResponse, + ListCatalogTemplateRevisionsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable< + ListCatalogTemplateRevisionsRequest, ListCatalogTemplateRevisionsResponse> + callable, + ListCatalogTemplateRevisionsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListCatalogTemplateRevisionsRequest, + ListCatalogTemplateRevisionsResponse, + CatalogTemplateRevision> + pageContext = + PageContext.create( + callable, + LIST_CATALOG_TEMPLATE_REVISIONS_PAGE_STR_DESC, + request, + context); + return ListCatalogTemplateRevisionsPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListApplicationsRequest, ListApplicationsResponse, ListApplicationsPagedResponse> + LIST_APPLICATIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListApplicationsRequest, ListApplicationsResponse, ListApplicationsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListApplicationsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_APPLICATIONS_PAGE_STR_DESC, request, context); + return ListApplicationsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListPoliciesRequest, ListPoliciesResponse, ListPoliciesPagedResponse> + LIST_POLICIES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListPoliciesRequest, ListPoliciesResponse, ListPoliciesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListPoliciesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_POLICIES_PAGE_STR_DESC, request, context); + return ListPoliciesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + FetchFrameworksRequest, FetchFrameworksResponse, FetchFrameworksPagedResponse> + FETCH_FRAMEWORKS_PAGE_STR_FACT = + new PagedListResponseFactory< + FetchFrameworksRequest, FetchFrameworksResponse, FetchFrameworksPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + FetchFrameworksRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, FETCH_FRAMEWORKS_PAGE_STR_DESC, request, context); + return FetchFrameworksPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListApplicationTemplateSystemRevisionsRequest, + ListApplicationTemplateSystemRevisionsResponse, + ListApplicationTemplateSystemRevisionsPagedResponse> + LIST_APPLICATION_TEMPLATE_SYSTEM_REVISIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListApplicationTemplateSystemRevisionsRequest, + ListApplicationTemplateSystemRevisionsResponse, + ListApplicationTemplateSystemRevisionsPagedResponse>() { + @Override + public ApiFuture + getFuturePagedResponse( + UnaryCallable< + ListApplicationTemplateSystemRevisionsRequest, + ListApplicationTemplateSystemRevisionsResponse> + callable, + ListApplicationTemplateSystemRevisionsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListApplicationTemplateSystemRevisionsRequest, + ListApplicationTemplateSystemRevisionsResponse, + ApplicationTemplateSystemRevision> + pageContext = + PageContext.create( + callable, + LIST_APPLICATION_TEMPLATE_SYSTEM_REVISIONS_PAGE_STR_DESC, + request, + context); + return ListApplicationTemplateSystemRevisionsPagedResponse.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 getSpace. */ + public UnaryCallSettings getSpaceSettings() { + return getSpaceSettings; + } + + /** Returns the object with the settings used for calls to listSpaces. */ + public PagedCallSettings + listSpacesSettings() { + return listSpacesSettings; + } + + /** Returns the object with the settings used for calls to createSpace. */ + public UnaryCallSettings createSpaceSettings() { + return createSpaceSettings; + } + + /** Returns the object with the settings used for calls to updateSpace. */ + public UnaryCallSettings updateSpaceSettings() { + return updateSpaceSettings; + } + + /** Returns the object with the settings used for calls to deleteSpace. */ + public UnaryCallSettings deleteSpaceSettings() { + return deleteSpaceSettings; + } + + /** Returns the object with the settings used for calls to getApplicationTemplate. */ + public UnaryCallSettings + getApplicationTemplateSettings() { + return getApplicationTemplateSettings; + } + + /** Returns the object with the settings used for calls to listApplicationTemplates. */ + public PagedCallSettings< + ListApplicationTemplatesRequest, + ListApplicationTemplatesResponse, + ListApplicationTemplatesPagedResponse> + listApplicationTemplatesSettings() { + return listApplicationTemplatesSettings; + } + + /** Returns the object with the settings used for calls to createApplicationTemplate. */ + public UnaryCallSettings + createApplicationTemplateSettings() { + return createApplicationTemplateSettings; + } + + /** Returns the object with the settings used for calls to updateApplicationTemplate. */ + public UnaryCallSettings + updateApplicationTemplateSettings() { + return updateApplicationTemplateSettings; + } + + /** Returns the object with the settings used for calls to importApplicationTemplate. */ + public UnaryCallSettings + importApplicationTemplateSettings() { + return importApplicationTemplateSettings; + } + + /** Returns the object with the settings used for calls to deleteApplicationTemplate. */ + public UnaryCallSettings + deleteApplicationTemplateSettings() { + return deleteApplicationTemplateSettings; + } + + /** Returns the object with the settings used for calls to commitApplicationTemplate. */ + public UnaryCallSettings + commitApplicationTemplateSettings() { + return commitApplicationTemplateSettings; + } + + /** Returns the object with the settings used for calls to snapshotApplicationTemplate. */ + public UnaryCallSettings + snapshotApplicationTemplateSettings() { + return snapshotApplicationTemplateSettings; + } + + /** Returns the object with the settings used for calls to snapshotApplicationTemplate. */ + public OperationCallSettings< + SnapshotApplicationTemplateRequest, + SnapshotApplicationTemplateResponse, + OperationMetadata> + snapshotApplicationTemplateOperationSettings() { + return snapshotApplicationTemplateOperationSettings; + } + + /** Returns the object with the settings used for calls to generateApplicationTemplateIaC. */ + public UnaryCallSettings< + GenerateApplicationTemplateIaCRequest, GenerateApplicationTemplateIaCResponse> + generateApplicationTemplateIaCSettings() { + return generateApplicationTemplateIaCSettings; + } + + /** Returns the object with the settings used for calls to exportApplicationTemplateIaC. */ + public UnaryCallSettings + exportApplicationTemplateIaCSettings() { + return exportApplicationTemplateIaCSettings; + } + + /** Returns the object with the settings used for calls to exportApplicationTemplateIaC. */ + public OperationCallSettings< + ExportApplicationTemplateIaCRequest, + ExportApplicationTemplateIaCResponse, + OperationMetadata> + exportApplicationTemplateIaCOperationSettings() { + return exportApplicationTemplateIaCOperationSettings; + } + + /** + * Returns the object with the settings used for calls to generateApplicationTemplateRevisionIaC. + */ + public UnaryCallSettings< + GenerateApplicationTemplateRevisionIaCRequest, + GenerateApplicationTemplateRevisionIaCResponse> + generateApplicationTemplateRevisionIaCSettings() { + return generateApplicationTemplateRevisionIaCSettings; + } + + /** + * Returns the object with the settings used for calls to exportApplicationTemplateRevisionIaC. + */ + public UnaryCallSettings + exportApplicationTemplateRevisionIaCSettings() { + return exportApplicationTemplateRevisionIaCSettings; + } + + /** + * Returns the object with the settings used for calls to exportApplicationTemplateRevisionIaC. + */ + public OperationCallSettings< + ExportApplicationTemplateRevisionIaCRequest, + ExportApplicationTemplateRevisionIaCResponse, + OperationMetadata> + exportApplicationTemplateRevisionIaCOperationSettings() { + return exportApplicationTemplateRevisionIaCOperationSettings; + } + + /** Returns the object with the settings used for calls to getComponent. */ + public UnaryCallSettings getComponentSettings() { + return getComponentSettings; + } + + /** Returns the object with the settings used for calls to listComponents. */ + public PagedCallSettings< + ListComponentsRequest, ListComponentsResponse, ListComponentsPagedResponse> + listComponentsSettings() { + return listComponentsSettings; + } + + /** Returns the object with the settings used for calls to createComponent. */ + public UnaryCallSettings createComponentSettings() { + return createComponentSettings; + } + + /** Returns the object with the settings used for calls to updateComponent. */ + public UnaryCallSettings updateComponentSettings() { + return updateComponentSettings; + } + + /** Returns the object with the settings used for calls to deleteComponent. */ + public UnaryCallSettings deleteComponentSettings() { + return deleteComponentSettings; + } + + /** Returns the object with the settings used for calls to getConnection. */ + public UnaryCallSettings getConnectionSettings() { + return getConnectionSettings; + } + + /** Returns the object with the settings used for calls to listConnections. */ + public PagedCallSettings< + ListConnectionsRequest, ListConnectionsResponse, ListConnectionsPagedResponse> + listConnectionsSettings() { + return listConnectionsSettings; + } + + /** Returns the object with the settings used for calls to createConnection. */ + public UnaryCallSettings createConnectionSettings() { + return createConnectionSettings; + } + + /** Returns the object with the settings used for calls to updateConnection. */ + public UnaryCallSettings updateConnectionSettings() { + return updateConnectionSettings; + } + + /** Returns the object with the settings used for calls to deleteConnection. */ + public UnaryCallSettings deleteConnectionSettings() { + return deleteConnectionSettings; + } + + /** Returns the object with the settings used for calls to getApplicationTemplateRevision. */ + public UnaryCallSettings + getApplicationTemplateRevisionSettings() { + return getApplicationTemplateRevisionSettings; + } + + /** Returns the object with the settings used for calls to listApplicationTemplateRevisions. */ + public PagedCallSettings< + ListApplicationTemplateRevisionsRequest, + ListApplicationTemplateRevisionsResponse, + ListApplicationTemplateRevisionsPagedResponse> + listApplicationTemplateRevisionsSettings() { + return listApplicationTemplateRevisionsSettings; + } + + /** Returns the object with the settings used for calls to deleteApplicationTemplateRevision. */ + public UnaryCallSettings + deleteApplicationTemplateRevisionSettings() { + return deleteApplicationTemplateRevisionSettings; + } + + /** Returns the object with the settings used for calls to getCatalog. */ + public UnaryCallSettings getCatalogSettings() { + return getCatalogSettings; + } + + /** Returns the object with the settings used for calls to listCatalogs. */ + public PagedCallSettings + listCatalogsSettings() { + return listCatalogsSettings; + } + + /** Returns the object with the settings used for calls to createCatalog. */ + public UnaryCallSettings createCatalogSettings() { + return createCatalogSettings; + } + + /** Returns the object with the settings used for calls to updateCatalog. */ + public UnaryCallSettings updateCatalogSettings() { + return updateCatalogSettings; + } + + /** Returns the object with the settings used for calls to deleteCatalog. */ + public UnaryCallSettings deleteCatalogSettings() { + return deleteCatalogSettings; + } + + /** Returns the object with the settings used for calls to deleteCatalog. */ + public OperationCallSettings + deleteCatalogOperationSettings() { + return deleteCatalogOperationSettings; + } + + /** Returns the object with the settings used for calls to createCatalogTemplate. */ + public UnaryCallSettings + createCatalogTemplateSettings() { + return createCatalogTemplateSettings; + } + + /** Returns the object with the settings used for calls to getCatalogTemplate. */ + public UnaryCallSettings + getCatalogTemplateSettings() { + return getCatalogTemplateSettings; + } + + /** Returns the object with the settings used for calls to listCatalogTemplates. */ + public PagedCallSettings< + ListCatalogTemplatesRequest, + ListCatalogTemplatesResponse, + ListCatalogTemplatesPagedResponse> + listCatalogTemplatesSettings() { + return listCatalogTemplatesSettings; + } + + /** Returns the object with the settings used for calls to updateCatalogTemplate. */ + public UnaryCallSettings + updateCatalogTemplateSettings() { + return updateCatalogTemplateSettings; + } + + /** Returns the object with the settings used for calls to deleteCatalogTemplate. */ + public UnaryCallSettings + deleteCatalogTemplateSettings() { + return deleteCatalogTemplateSettings; + } + + /** Returns the object with the settings used for calls to deleteCatalogTemplate. */ + public OperationCallSettings + deleteCatalogTemplateOperationSettings() { + return deleteCatalogTemplateOperationSettings; + } + + /** Returns the object with the settings used for calls to createShare. */ + public UnaryCallSettings createShareSettings() { + return createShareSettings; + } + + /** Returns the object with the settings used for calls to createShare. */ + public OperationCallSettings + createShareOperationSettings() { + return createShareOperationSettings; + } + + /** Returns the object with the settings used for calls to listShares. */ + public PagedCallSettings + listSharesSettings() { + return listSharesSettings; + } + + /** Returns the object with the settings used for calls to getShare. */ + public UnaryCallSettings getShareSettings() { + return getShareSettings; + } + + /** Returns the object with the settings used for calls to deleteShare. */ + public UnaryCallSettings deleteShareSettings() { + return deleteShareSettings; + } + + /** Returns the object with the settings used for calls to deleteShare. */ + public OperationCallSettings + deleteShareOperationSettings() { + return deleteShareOperationSettings; + } + + /** Returns the object with the settings used for calls to syncShare. */ + public UnaryCallSettings syncShareSettings() { + return syncShareSettings; + } + + /** Returns the object with the settings used for calls to syncShare. */ + public OperationCallSettings + syncShareOperationSettings() { + return syncShareOperationSettings; + } + + /** Returns the object with the settings used for calls to getSharedTemplate. */ + public UnaryCallSettings getSharedTemplateSettings() { + return getSharedTemplateSettings; + } + + /** Returns the object with the settings used for calls to listSharedTemplates. */ + public PagedCallSettings< + ListSharedTemplatesRequest, ListSharedTemplatesResponse, ListSharedTemplatesPagedResponse> + listSharedTemplatesSettings() { + return listSharedTemplatesSettings; + } + + /** Returns the object with the settings used for calls to getSharedTemplateRevision. */ + public UnaryCallSettings + getSharedTemplateRevisionSettings() { + return getSharedTemplateRevisionSettings; + } + + /** Returns the object with the settings used for calls to listSharedTemplateRevisions. */ + public PagedCallSettings< + ListSharedTemplateRevisionsRequest, + ListSharedTemplateRevisionsResponse, + ListSharedTemplateRevisionsPagedResponse> + listSharedTemplateRevisionsSettings() { + return listSharedTemplateRevisionsSettings; + } + + /** Returns the object with the settings used for calls to createCatalogTemplateRevision. */ + public UnaryCallSettings + createCatalogTemplateRevisionSettings() { + return createCatalogTemplateRevisionSettings; + } + + /** Returns the object with the settings used for calls to createCatalogTemplateRevision. */ + public OperationCallSettings< + CreateCatalogTemplateRevisionRequest, CatalogTemplateRevision, OperationMetadata> + createCatalogTemplateRevisionOperationSettings() { + return createCatalogTemplateRevisionOperationSettings; + } + + /** Returns the object with the settings used for calls to getCatalogTemplateRevision. */ + public UnaryCallSettings + getCatalogTemplateRevisionSettings() { + return getCatalogTemplateRevisionSettings; + } + + /** Returns the object with the settings used for calls to listCatalogTemplateRevisions. */ + public PagedCallSettings< + ListCatalogTemplateRevisionsRequest, + ListCatalogTemplateRevisionsResponse, + ListCatalogTemplateRevisionsPagedResponse> + listCatalogTemplateRevisionsSettings() { + return listCatalogTemplateRevisionsSettings; + } + + /** Returns the object with the settings used for calls to deleteCatalogTemplateRevision. */ + public UnaryCallSettings + deleteCatalogTemplateRevisionSettings() { + return deleteCatalogTemplateRevisionSettings; + } + + /** Returns the object with the settings used for calls to deleteCatalogTemplateRevision. */ + public OperationCallSettings + deleteCatalogTemplateRevisionOperationSettings() { + return deleteCatalogTemplateRevisionOperationSettings; + } + + /** Returns the object with the settings used for calls to createApplication. */ + public UnaryCallSettings createApplicationSettings() { + return createApplicationSettings; + } + + /** Returns the object with the settings used for calls to getApplication. */ + public UnaryCallSettings getApplicationSettings() { + return getApplicationSettings; + } + + /** Returns the object with the settings used for calls to listApplications. */ + public PagedCallSettings< + ListApplicationsRequest, ListApplicationsResponse, ListApplicationsPagedResponse> + listApplicationsSettings() { + return listApplicationsSettings; + } + + /** Returns the object with the settings used for calls to updateApplication. */ + public UnaryCallSettings updateApplicationSettings() { + return updateApplicationSettings; + } + + /** Returns the object with the settings used for calls to deleteApplication. */ + public UnaryCallSettings deleteApplicationSettings() { + return deleteApplicationSettings; + } + + /** Returns the object with the settings used for calls to deleteApplication. */ + public OperationCallSettings + deleteApplicationOperationSettings() { + return deleteApplicationOperationSettings; + } + + /** Returns the object with the settings used for calls to deployApplication. */ + public UnaryCallSettings deployApplicationSettings() { + return deployApplicationSettings; + } + + /** Returns the object with the settings used for calls to deployApplication. */ + public OperationCallSettings< + DeployApplicationRequest, DeployApplicationResponse, OperationMetadata> + deployApplicationOperationSettings() { + return deployApplicationOperationSettings; + } + + /** Returns the object with the settings used for calls to previewApplication. */ + public UnaryCallSettings previewApplicationSettings() { + return previewApplicationSettings; + } + + /** Returns the object with the settings used for calls to previewApplication. */ + public OperationCallSettings< + PreviewApplicationRequest, PreviewApplicationResponse, OperationMetadata> + previewApplicationOperationSettings() { + return previewApplicationOperationSettings; + } + + /** Returns the object with the settings used for calls to fetchApplicationAssessmentReport. */ + public UnaryCallSettings< + FetchApplicationAssessmentReportRequest, FetchApplicationAssessmentReportResponse> + fetchApplicationAssessmentReportSettings() { + return fetchApplicationAssessmentReportSettings; + } + + /** Returns the object with the settings used for calls to generateApplicationAssessmentReport. */ + public UnaryCallSettings + generateApplicationAssessmentReportSettings() { + return generateApplicationAssessmentReportSettings; + } + + /** Returns the object with the settings used for calls to generateApplicationAssessmentReport. */ + public OperationCallSettings< + GenerateApplicationAssessmentReportRequest, + GenerateApplicationAssessmentReportResponse, + OperationMetadata> + generateApplicationAssessmentReportOperationSettings() { + return generateApplicationAssessmentReportOperationSettings; + } + + /** + * Returns the object with the settings used for calls to + * generateApplicationTemplateAssessmentReport. + */ + public UnaryCallSettings + generateApplicationTemplateAssessmentReportSettings() { + return generateApplicationTemplateAssessmentReportSettings; + } + + /** + * Returns the object with the settings used for calls to + * generateApplicationTemplateAssessmentReport. + */ + public OperationCallSettings< + GenerateApplicationTemplateAssessmentReportRequest, + GenerateApplicationTemplateAssessmentReportResponse, + OperationMetadata> + generateApplicationTemplateAssessmentReportOperationSettings() { + return generateApplicationTemplateAssessmentReportOperationSettings; + } + + /** + * Returns the object with the settings used for calls to generateAssessmentReport. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated + public UnaryCallSettings + generateAssessmentReportSettings() { + return generateAssessmentReportSettings; + } + + /** Returns the object with the settings used for calls to generateAssessmentReport. */ + public OperationCallSettings< + GenerateAssessmentReportRequest, GenerateAssessmentReportResponse, OperationMetadata> + generateAssessmentReportOperationSettings() { + return generateAssessmentReportOperationSettings; + } + + /** + * Returns the object with the settings used for calls to generateTerraformPlanAssessmentReport. + */ + public UnaryCallSettings + generateTerraformPlanAssessmentReportSettings() { + return generateTerraformPlanAssessmentReportSettings; + } + + /** + * Returns the object with the settings used for calls to generateTerraformPlanAssessmentReport. + */ + public OperationCallSettings< + GenerateTerraformPlanAssessmentReportRequest, + GenerateTerraformPlanAssessmentReportResponse, + OperationMetadata> + generateTerraformPlanAssessmentReportOperationSettings() { + return generateTerraformPlanAssessmentReportOperationSettings; + } + + /** Returns the object with the settings used for calls to getPolicy. */ + public UnaryCallSettings getPolicySettings() { + return getPolicySettings; + } + + /** Returns the object with the settings used for calls to listPolicies. */ + public PagedCallSettings + listPoliciesSettings() { + return listPoliciesSettings; + } + + /** Returns the object with the settings used for calls to createPolicy. */ + public UnaryCallSettings createPolicySettings() { + return createPolicySettings; + } + + /** Returns the object with the settings used for calls to updatePolicy. */ + public UnaryCallSettings updatePolicySettings() { + return updatePolicySettings; + } + + /** Returns the object with the settings used for calls to deletePolicy. */ + public UnaryCallSettings deletePolicySettings() { + return deletePolicySettings; + } + + /** Returns the object with the settings used for calls to fetchFrameworks. */ + public PagedCallSettings< + FetchFrameworksRequest, FetchFrameworksResponse, FetchFrameworksPagedResponse> + fetchFrameworksSettings() { + return fetchFrameworksSettings; + } + + /** Returns the object with the settings used for calls to generateApplicationIaC. */ + public UnaryCallSettings + generateApplicationIaCSettings() { + return generateApplicationIaCSettings; + } + + /** Returns the object with the settings used for calls to exportApplicationIaC. */ + public UnaryCallSettings exportApplicationIaCSettings() { + return exportApplicationIaCSettings; + } + + /** Returns the object with the settings used for calls to exportApplicationIaC. */ + public OperationCallSettings< + ExportApplicationIaCRequest, ExportApplicationIaCResponse, OperationMetadata> + exportApplicationIaCOperationSettings() { + return exportApplicationIaCOperationSettings; + } + + /** Returns the object with the settings used for calls to importApplicationTemplateIaC. */ + public UnaryCallSettings< + ImportApplicationTemplateIaCRequest, ImportApplicationTemplateIaCResponse> + importApplicationTemplateIaCSettings() { + return importApplicationTemplateIaCSettings; + } + + /** Returns the object with the settings used for calls to ingestApplicationTemplateIaC. */ + public UnaryCallSettings + ingestApplicationTemplateIaCSettings() { + return ingestApplicationTemplateIaCSettings; + } + + /** Returns the object with the settings used for calls to ingestApplicationTemplateIaC. */ + public OperationCallSettings< + IngestApplicationTemplateIaCRequest, + IngestApplicationTemplateIaCResponse, + OperationMetadata> + ingestApplicationTemplateIaCOperationSettings() { + return ingestApplicationTemplateIaCOperationSettings; + } + + /** Returns the object with the settings used for calls to importApplicationIaC. */ + public UnaryCallSettings + importApplicationIaCSettings() { + return importApplicationIaCSettings; + } + + /** Returns the object with the settings used for calls to registerAppHubApplicationResources. */ + public UnaryCallSettings + registerAppHubApplicationResourcesSettings() { + return registerAppHubApplicationResourcesSettings; + } + + /** Returns the object with the settings used for calls to registerAppHubApplicationResources. */ + public OperationCallSettings< + RegisterAppHubApplicationResourcesRequest, + RegisterAppHubApplicationResourcesResponse, + OperationMetadata> + registerAppHubApplicationResourcesOperationSettings() { + return registerAppHubApplicationResourcesOperationSettings; + } + + /** + * Returns the object with the settings used for calls to listApplicationTemplateSystemRevisions. + */ + public PagedCallSettings< + ListApplicationTemplateSystemRevisionsRequest, + ListApplicationTemplateSystemRevisionsResponse, + ListApplicationTemplateSystemRevisionsPagedResponse> + listApplicationTemplateSystemRevisionsSettings() { + return listApplicationTemplateSystemRevisionsSettings; + } + + /** + * Returns the object with the settings used for calls to getApplicationTemplateSystemRevision. + */ + public UnaryCallSettings< + GetApplicationTemplateSystemRevisionRequest, ApplicationTemplateSystemRevision> + getApplicationTemplateSystemRevisionSettings() { + return getApplicationTemplateSystemRevisionSettings; + } + + /** Returns the object with the settings used for calls to recommendIAMRoles. */ + public UnaryCallSettings recommendIAMRolesSettings() { + return recommendIAMRolesSettings; + } + + /** Returns the object with the settings used for calls to recommendIAMRoles. */ + public OperationCallSettings< + RecommendIAMRolesRequest, RecommendIAMRolesResponse, OperationMetadata> + recommendIAMRolesOperationSettings() { + return recommendIAMRolesOperationSettings; + } + + /** 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; + } + + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return setIamPolicySettings; + } + + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the object with the settings used for calls to testIamPermissions. */ + public UnaryCallSettings + testIamPermissionsSettings() { + return testIamPermissionsSettings; + } + + public DesignCenterStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcDesignCenterStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonDesignCenterStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "designcenter"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "designcenter.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "designcenter.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(); + } + + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(DesignCenterStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(DesignCenterStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return DesignCenterStubSettings.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(@Nullable 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 DesignCenterStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + getSpaceSettings = settingsBuilder.getSpaceSettings().build(); + listSpacesSettings = settingsBuilder.listSpacesSettings().build(); + createSpaceSettings = settingsBuilder.createSpaceSettings().build(); + updateSpaceSettings = settingsBuilder.updateSpaceSettings().build(); + deleteSpaceSettings = settingsBuilder.deleteSpaceSettings().build(); + getApplicationTemplateSettings = settingsBuilder.getApplicationTemplateSettings().build(); + listApplicationTemplatesSettings = settingsBuilder.listApplicationTemplatesSettings().build(); + createApplicationTemplateSettings = settingsBuilder.createApplicationTemplateSettings().build(); + updateApplicationTemplateSettings = settingsBuilder.updateApplicationTemplateSettings().build(); + importApplicationTemplateSettings = settingsBuilder.importApplicationTemplateSettings().build(); + deleteApplicationTemplateSettings = settingsBuilder.deleteApplicationTemplateSettings().build(); + commitApplicationTemplateSettings = settingsBuilder.commitApplicationTemplateSettings().build(); + snapshotApplicationTemplateSettings = + settingsBuilder.snapshotApplicationTemplateSettings().build(); + snapshotApplicationTemplateOperationSettings = + settingsBuilder.snapshotApplicationTemplateOperationSettings().build(); + generateApplicationTemplateIaCSettings = + settingsBuilder.generateApplicationTemplateIaCSettings().build(); + exportApplicationTemplateIaCSettings = + settingsBuilder.exportApplicationTemplateIaCSettings().build(); + exportApplicationTemplateIaCOperationSettings = + settingsBuilder.exportApplicationTemplateIaCOperationSettings().build(); + generateApplicationTemplateRevisionIaCSettings = + settingsBuilder.generateApplicationTemplateRevisionIaCSettings().build(); + exportApplicationTemplateRevisionIaCSettings = + settingsBuilder.exportApplicationTemplateRevisionIaCSettings().build(); + exportApplicationTemplateRevisionIaCOperationSettings = + settingsBuilder.exportApplicationTemplateRevisionIaCOperationSettings().build(); + getComponentSettings = settingsBuilder.getComponentSettings().build(); + listComponentsSettings = settingsBuilder.listComponentsSettings().build(); + createComponentSettings = settingsBuilder.createComponentSettings().build(); + updateComponentSettings = settingsBuilder.updateComponentSettings().build(); + deleteComponentSettings = settingsBuilder.deleteComponentSettings().build(); + getConnectionSettings = settingsBuilder.getConnectionSettings().build(); + listConnectionsSettings = settingsBuilder.listConnectionsSettings().build(); + createConnectionSettings = settingsBuilder.createConnectionSettings().build(); + updateConnectionSettings = settingsBuilder.updateConnectionSettings().build(); + deleteConnectionSettings = settingsBuilder.deleteConnectionSettings().build(); + getApplicationTemplateRevisionSettings = + settingsBuilder.getApplicationTemplateRevisionSettings().build(); + listApplicationTemplateRevisionsSettings = + settingsBuilder.listApplicationTemplateRevisionsSettings().build(); + deleteApplicationTemplateRevisionSettings = + settingsBuilder.deleteApplicationTemplateRevisionSettings().build(); + getCatalogSettings = settingsBuilder.getCatalogSettings().build(); + listCatalogsSettings = settingsBuilder.listCatalogsSettings().build(); + createCatalogSettings = settingsBuilder.createCatalogSettings().build(); + updateCatalogSettings = settingsBuilder.updateCatalogSettings().build(); + deleteCatalogSettings = settingsBuilder.deleteCatalogSettings().build(); + deleteCatalogOperationSettings = settingsBuilder.deleteCatalogOperationSettings().build(); + createCatalogTemplateSettings = settingsBuilder.createCatalogTemplateSettings().build(); + getCatalogTemplateSettings = settingsBuilder.getCatalogTemplateSettings().build(); + listCatalogTemplatesSettings = settingsBuilder.listCatalogTemplatesSettings().build(); + updateCatalogTemplateSettings = settingsBuilder.updateCatalogTemplateSettings().build(); + deleteCatalogTemplateSettings = settingsBuilder.deleteCatalogTemplateSettings().build(); + deleteCatalogTemplateOperationSettings = + settingsBuilder.deleteCatalogTemplateOperationSettings().build(); + createShareSettings = settingsBuilder.createShareSettings().build(); + createShareOperationSettings = settingsBuilder.createShareOperationSettings().build(); + listSharesSettings = settingsBuilder.listSharesSettings().build(); + getShareSettings = settingsBuilder.getShareSettings().build(); + deleteShareSettings = settingsBuilder.deleteShareSettings().build(); + deleteShareOperationSettings = settingsBuilder.deleteShareOperationSettings().build(); + syncShareSettings = settingsBuilder.syncShareSettings().build(); + syncShareOperationSettings = settingsBuilder.syncShareOperationSettings().build(); + getSharedTemplateSettings = settingsBuilder.getSharedTemplateSettings().build(); + listSharedTemplatesSettings = settingsBuilder.listSharedTemplatesSettings().build(); + getSharedTemplateRevisionSettings = settingsBuilder.getSharedTemplateRevisionSettings().build(); + listSharedTemplateRevisionsSettings = + settingsBuilder.listSharedTemplateRevisionsSettings().build(); + createCatalogTemplateRevisionSettings = + settingsBuilder.createCatalogTemplateRevisionSettings().build(); + createCatalogTemplateRevisionOperationSettings = + settingsBuilder.createCatalogTemplateRevisionOperationSettings().build(); + getCatalogTemplateRevisionSettings = + settingsBuilder.getCatalogTemplateRevisionSettings().build(); + listCatalogTemplateRevisionsSettings = + settingsBuilder.listCatalogTemplateRevisionsSettings().build(); + deleteCatalogTemplateRevisionSettings = + settingsBuilder.deleteCatalogTemplateRevisionSettings().build(); + deleteCatalogTemplateRevisionOperationSettings = + settingsBuilder.deleteCatalogTemplateRevisionOperationSettings().build(); + createApplicationSettings = settingsBuilder.createApplicationSettings().build(); + getApplicationSettings = settingsBuilder.getApplicationSettings().build(); + listApplicationsSettings = settingsBuilder.listApplicationsSettings().build(); + updateApplicationSettings = settingsBuilder.updateApplicationSettings().build(); + deleteApplicationSettings = settingsBuilder.deleteApplicationSettings().build(); + deleteApplicationOperationSettings = + settingsBuilder.deleteApplicationOperationSettings().build(); + deployApplicationSettings = settingsBuilder.deployApplicationSettings().build(); + deployApplicationOperationSettings = + settingsBuilder.deployApplicationOperationSettings().build(); + previewApplicationSettings = settingsBuilder.previewApplicationSettings().build(); + previewApplicationOperationSettings = + settingsBuilder.previewApplicationOperationSettings().build(); + fetchApplicationAssessmentReportSettings = + settingsBuilder.fetchApplicationAssessmentReportSettings().build(); + generateApplicationAssessmentReportSettings = + settingsBuilder.generateApplicationAssessmentReportSettings().build(); + generateApplicationAssessmentReportOperationSettings = + settingsBuilder.generateApplicationAssessmentReportOperationSettings().build(); + generateApplicationTemplateAssessmentReportSettings = + settingsBuilder.generateApplicationTemplateAssessmentReportSettings().build(); + generateApplicationTemplateAssessmentReportOperationSettings = + settingsBuilder.generateApplicationTemplateAssessmentReportOperationSettings().build(); + generateAssessmentReportSettings = settingsBuilder.generateAssessmentReportSettings().build(); + generateAssessmentReportOperationSettings = + settingsBuilder.generateAssessmentReportOperationSettings().build(); + generateTerraformPlanAssessmentReportSettings = + settingsBuilder.generateTerraformPlanAssessmentReportSettings().build(); + generateTerraformPlanAssessmentReportOperationSettings = + settingsBuilder.generateTerraformPlanAssessmentReportOperationSettings().build(); + getPolicySettings = settingsBuilder.getPolicySettings().build(); + listPoliciesSettings = settingsBuilder.listPoliciesSettings().build(); + createPolicySettings = settingsBuilder.createPolicySettings().build(); + updatePolicySettings = settingsBuilder.updatePolicySettings().build(); + deletePolicySettings = settingsBuilder.deletePolicySettings().build(); + fetchFrameworksSettings = settingsBuilder.fetchFrameworksSettings().build(); + generateApplicationIaCSettings = settingsBuilder.generateApplicationIaCSettings().build(); + exportApplicationIaCSettings = settingsBuilder.exportApplicationIaCSettings().build(); + exportApplicationIaCOperationSettings = + settingsBuilder.exportApplicationIaCOperationSettings().build(); + importApplicationTemplateIaCSettings = + settingsBuilder.importApplicationTemplateIaCSettings().build(); + ingestApplicationTemplateIaCSettings = + settingsBuilder.ingestApplicationTemplateIaCSettings().build(); + ingestApplicationTemplateIaCOperationSettings = + settingsBuilder.ingestApplicationTemplateIaCOperationSettings().build(); + importApplicationIaCSettings = settingsBuilder.importApplicationIaCSettings().build(); + registerAppHubApplicationResourcesSettings = + settingsBuilder.registerAppHubApplicationResourcesSettings().build(); + registerAppHubApplicationResourcesOperationSettings = + settingsBuilder.registerAppHubApplicationResourcesOperationSettings().build(); + listApplicationTemplateSystemRevisionsSettings = + settingsBuilder.listApplicationTemplateSystemRevisionsSettings().build(); + getApplicationTemplateSystemRevisionSettings = + settingsBuilder.getApplicationTemplateSystemRevisionSettings().build(); + recommendIAMRolesSettings = settingsBuilder.recommendIAMRolesSettings().build(); + recommendIAMRolesOperationSettings = + settingsBuilder.recommendIAMRolesOperationSettings().build(); + listLocationsSettings = settingsBuilder.listLocationsSettings().build(); + getLocationSettings = settingsBuilder.getLocationSettings().build(); + setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); + getIamPolicySettings = settingsBuilder.getIamPolicySettings().build(); + testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build(); + } + + @Override + protected LibraryMetadata getLibraryMetadata() { + return LibraryMetadata.newBuilder() + .setArtifactName("com.google.cloud:google-cloud-designcenter") + .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) + .build(); + } + + /** Builder for DesignCenterStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder getSpaceSettings; + private final PagedCallSettings.Builder< + ListSpacesRequest, ListSpacesResponse, ListSpacesPagedResponse> + listSpacesSettings; + private final UnaryCallSettings.Builder createSpaceSettings; + private final UnaryCallSettings.Builder updateSpaceSettings; + private final UnaryCallSettings.Builder deleteSpaceSettings; + private final UnaryCallSettings.Builder + getApplicationTemplateSettings; + private final PagedCallSettings.Builder< + ListApplicationTemplatesRequest, + ListApplicationTemplatesResponse, + ListApplicationTemplatesPagedResponse> + listApplicationTemplatesSettings; + private final UnaryCallSettings.Builder + createApplicationTemplateSettings; + private final UnaryCallSettings.Builder + updateApplicationTemplateSettings; + private final UnaryCallSettings.Builder + importApplicationTemplateSettings; + private final UnaryCallSettings.Builder + deleteApplicationTemplateSettings; + private final UnaryCallSettings.Builder< + CommitApplicationTemplateRequest, ApplicationTemplateRevision> + commitApplicationTemplateSettings; + private final UnaryCallSettings.Builder + snapshotApplicationTemplateSettings; + private final OperationCallSettings.Builder< + SnapshotApplicationTemplateRequest, + SnapshotApplicationTemplateResponse, + OperationMetadata> + snapshotApplicationTemplateOperationSettings; + private final UnaryCallSettings.Builder< + GenerateApplicationTemplateIaCRequest, GenerateApplicationTemplateIaCResponse> + generateApplicationTemplateIaCSettings; + private final UnaryCallSettings.Builder + exportApplicationTemplateIaCSettings; + private final OperationCallSettings.Builder< + ExportApplicationTemplateIaCRequest, + ExportApplicationTemplateIaCResponse, + OperationMetadata> + exportApplicationTemplateIaCOperationSettings; + private final UnaryCallSettings.Builder< + GenerateApplicationTemplateRevisionIaCRequest, + GenerateApplicationTemplateRevisionIaCResponse> + generateApplicationTemplateRevisionIaCSettings; + private final UnaryCallSettings.Builder + exportApplicationTemplateRevisionIaCSettings; + private final OperationCallSettings.Builder< + ExportApplicationTemplateRevisionIaCRequest, + ExportApplicationTemplateRevisionIaCResponse, + OperationMetadata> + exportApplicationTemplateRevisionIaCOperationSettings; + private final UnaryCallSettings.Builder getComponentSettings; + private final PagedCallSettings.Builder< + ListComponentsRequest, ListComponentsResponse, ListComponentsPagedResponse> + listComponentsSettings; + private final UnaryCallSettings.Builder + createComponentSettings; + private final UnaryCallSettings.Builder + updateComponentSettings; + private final UnaryCallSettings.Builder deleteComponentSettings; + private final UnaryCallSettings.Builder getConnectionSettings; + private final PagedCallSettings.Builder< + ListConnectionsRequest, ListConnectionsResponse, ListConnectionsPagedResponse> + listConnectionsSettings; + private final UnaryCallSettings.Builder + createConnectionSettings; + private final UnaryCallSettings.Builder + updateConnectionSettings; + private final UnaryCallSettings.Builder + deleteConnectionSettings; + private final UnaryCallSettings.Builder< + GetApplicationTemplateRevisionRequest, ApplicationTemplateRevision> + getApplicationTemplateRevisionSettings; + private final PagedCallSettings.Builder< + ListApplicationTemplateRevisionsRequest, + ListApplicationTemplateRevisionsResponse, + ListApplicationTemplateRevisionsPagedResponse> + listApplicationTemplateRevisionsSettings; + private final UnaryCallSettings.Builder + deleteApplicationTemplateRevisionSettings; + private final UnaryCallSettings.Builder getCatalogSettings; + private final PagedCallSettings.Builder< + ListCatalogsRequest, ListCatalogsResponse, ListCatalogsPagedResponse> + listCatalogsSettings; + private final UnaryCallSettings.Builder createCatalogSettings; + private final UnaryCallSettings.Builder updateCatalogSettings; + private final UnaryCallSettings.Builder deleteCatalogSettings; + private final OperationCallSettings.Builder + deleteCatalogOperationSettings; + private final UnaryCallSettings.Builder + createCatalogTemplateSettings; + private final UnaryCallSettings.Builder + getCatalogTemplateSettings; + private final PagedCallSettings.Builder< + ListCatalogTemplatesRequest, + ListCatalogTemplatesResponse, + ListCatalogTemplatesPagedResponse> + listCatalogTemplatesSettings; + private final UnaryCallSettings.Builder + updateCatalogTemplateSettings; + private final UnaryCallSettings.Builder + deleteCatalogTemplateSettings; + private final OperationCallSettings.Builder< + DeleteCatalogTemplateRequest, Empty, OperationMetadata> + deleteCatalogTemplateOperationSettings; + private final UnaryCallSettings.Builder createShareSettings; + private final OperationCallSettings.Builder + createShareOperationSettings; + private final PagedCallSettings.Builder< + ListSharesRequest, ListSharesResponse, ListSharesPagedResponse> + listSharesSettings; + private final UnaryCallSettings.Builder getShareSettings; + private final UnaryCallSettings.Builder deleteShareSettings; + private final OperationCallSettings.Builder + deleteShareOperationSettings; + private final UnaryCallSettings.Builder syncShareSettings; + private final OperationCallSettings.Builder + syncShareOperationSettings; + private final UnaryCallSettings.Builder + getSharedTemplateSettings; + private final PagedCallSettings.Builder< + ListSharedTemplatesRequest, + ListSharedTemplatesResponse, + ListSharedTemplatesPagedResponse> + listSharedTemplatesSettings; + private final UnaryCallSettings.Builder< + GetSharedTemplateRevisionRequest, SharedTemplateRevision> + getSharedTemplateRevisionSettings; + private final PagedCallSettings.Builder< + ListSharedTemplateRevisionsRequest, + ListSharedTemplateRevisionsResponse, + ListSharedTemplateRevisionsPagedResponse> + listSharedTemplateRevisionsSettings; + private final UnaryCallSettings.Builder + createCatalogTemplateRevisionSettings; + private final OperationCallSettings.Builder< + CreateCatalogTemplateRevisionRequest, CatalogTemplateRevision, OperationMetadata> + createCatalogTemplateRevisionOperationSettings; + private final UnaryCallSettings.Builder< + GetCatalogTemplateRevisionRequest, CatalogTemplateRevision> + getCatalogTemplateRevisionSettings; + private final PagedCallSettings.Builder< + ListCatalogTemplateRevisionsRequest, + ListCatalogTemplateRevisionsResponse, + ListCatalogTemplateRevisionsPagedResponse> + listCatalogTemplateRevisionsSettings; + private final UnaryCallSettings.Builder + deleteCatalogTemplateRevisionSettings; + private final OperationCallSettings.Builder< + DeleteCatalogTemplateRevisionRequest, Empty, OperationMetadata> + deleteCatalogTemplateRevisionOperationSettings; + private final UnaryCallSettings.Builder + createApplicationSettings; + private final UnaryCallSettings.Builder + getApplicationSettings; + private final PagedCallSettings.Builder< + ListApplicationsRequest, ListApplicationsResponse, ListApplicationsPagedResponse> + listApplicationsSettings; + private final UnaryCallSettings.Builder + updateApplicationSettings; + private final UnaryCallSettings.Builder + deleteApplicationSettings; + private final OperationCallSettings.Builder + deleteApplicationOperationSettings; + private final UnaryCallSettings.Builder + deployApplicationSettings; + private final OperationCallSettings.Builder< + DeployApplicationRequest, DeployApplicationResponse, OperationMetadata> + deployApplicationOperationSettings; + private final UnaryCallSettings.Builder + previewApplicationSettings; + private final OperationCallSettings.Builder< + PreviewApplicationRequest, PreviewApplicationResponse, OperationMetadata> + previewApplicationOperationSettings; + private final UnaryCallSettings.Builder< + FetchApplicationAssessmentReportRequest, FetchApplicationAssessmentReportResponse> + fetchApplicationAssessmentReportSettings; + private final UnaryCallSettings.Builder + generateApplicationAssessmentReportSettings; + private final OperationCallSettings.Builder< + GenerateApplicationAssessmentReportRequest, + GenerateApplicationAssessmentReportResponse, + OperationMetadata> + generateApplicationAssessmentReportOperationSettings; + private final UnaryCallSettings.Builder< + GenerateApplicationTemplateAssessmentReportRequest, Operation> + generateApplicationTemplateAssessmentReportSettings; + private final OperationCallSettings.Builder< + GenerateApplicationTemplateAssessmentReportRequest, + GenerateApplicationTemplateAssessmentReportResponse, + OperationMetadata> + generateApplicationTemplateAssessmentReportOperationSettings; + private final UnaryCallSettings.Builder + generateAssessmentReportSettings; + private final OperationCallSettings.Builder< + GenerateAssessmentReportRequest, GenerateAssessmentReportResponse, OperationMetadata> + generateAssessmentReportOperationSettings; + private final UnaryCallSettings.Builder + generateTerraformPlanAssessmentReportSettings; + private final OperationCallSettings.Builder< + GenerateTerraformPlanAssessmentReportRequest, + GenerateTerraformPlanAssessmentReportResponse, + OperationMetadata> + generateTerraformPlanAssessmentReportOperationSettings; + private final UnaryCallSettings.Builder getPolicySettings; + private final PagedCallSettings.Builder< + ListPoliciesRequest, ListPoliciesResponse, ListPoliciesPagedResponse> + listPoliciesSettings; + private final UnaryCallSettings.Builder createPolicySettings; + private final UnaryCallSettings.Builder updatePolicySettings; + private final UnaryCallSettings.Builder deletePolicySettings; + private final PagedCallSettings.Builder< + FetchFrameworksRequest, FetchFrameworksResponse, FetchFrameworksPagedResponse> + fetchFrameworksSettings; + private final UnaryCallSettings.Builder< + GenerateApplicationIaCRequest, GenerateApplicationIaCResponse> + generateApplicationIaCSettings; + private final UnaryCallSettings.Builder + exportApplicationIaCSettings; + private final OperationCallSettings.Builder< + ExportApplicationIaCRequest, ExportApplicationIaCResponse, OperationMetadata> + exportApplicationIaCOperationSettings; + private final UnaryCallSettings.Builder< + ImportApplicationTemplateIaCRequest, ImportApplicationTemplateIaCResponse> + importApplicationTemplateIaCSettings; + private final UnaryCallSettings.Builder + ingestApplicationTemplateIaCSettings; + private final OperationCallSettings.Builder< + IngestApplicationTemplateIaCRequest, + IngestApplicationTemplateIaCResponse, + OperationMetadata> + ingestApplicationTemplateIaCOperationSettings; + private final UnaryCallSettings.Builder< + ImportApplicationIaCRequest, ImportApplicationIaCResponse> + importApplicationIaCSettings; + private final UnaryCallSettings.Builder + registerAppHubApplicationResourcesSettings; + private final OperationCallSettings.Builder< + RegisterAppHubApplicationResourcesRequest, + RegisterAppHubApplicationResourcesResponse, + OperationMetadata> + registerAppHubApplicationResourcesOperationSettings; + private final PagedCallSettings.Builder< + ListApplicationTemplateSystemRevisionsRequest, + ListApplicationTemplateSystemRevisionsResponse, + ListApplicationTemplateSystemRevisionsPagedResponse> + listApplicationTemplateSystemRevisionsSettings; + private final UnaryCallSettings.Builder< + GetApplicationTemplateSystemRevisionRequest, ApplicationTemplateSystemRevision> + getApplicationTemplateSystemRevisionSettings; + private final UnaryCallSettings.Builder + recommendIAMRolesSettings; + private final OperationCallSettings.Builder< + RecommendIAMRolesRequest, RecommendIAMRolesResponse, OperationMetadata> + recommendIAMRolesOperationSettings; + private final PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings.Builder getLocationSettings; + private final UnaryCallSettings.Builder + setIamPolicySettings; + private final UnaryCallSettings.Builder + getIamPolicySettings; + private final UnaryCallSettings.Builder + testIamPermissionsSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "retry_policy_0_codes", + ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); + definitions.put( + "no_retry_1_codes", ImmutableSet.copyOf(Lists.newArrayList())); + definitions.put( + "no_retry_2_codes", ImmutableSet.copyOf(Lists.newArrayList())); + 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() + .setInitialRetryDelayDuration(Duration.ofMillis(1000L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelayDuration(Duration.ofMillis(10000L)) + .setInitialRpcTimeoutDuration(Duration.ofMillis(60000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ofMillis(60000L)) + .setTotalTimeoutDuration(Duration.ofMillis(60000L)) + .build(); + definitions.put("retry_policy_0_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRpcTimeoutDuration(Duration.ofMillis(120000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ofMillis(120000L)) + .setTotalTimeoutDuration(Duration.ofMillis(120000L)) + .build(); + definitions.put("no_retry_1_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRpcTimeoutDuration(Duration.ofMillis(60000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ofMillis(60000L)) + .setTotalTimeoutDuration(Duration.ofMillis(60000L)) + .build(); + definitions.put("no_retry_2_params", settings); + 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(@Nullable ClientContext clientContext) { + super(clientContext); + + getSpaceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listSpacesSettings = PagedCallSettings.newBuilder(LIST_SPACES_PAGE_STR_FACT); + createSpaceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateSpaceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteSpaceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getApplicationTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listApplicationTemplatesSettings = + PagedCallSettings.newBuilder(LIST_APPLICATION_TEMPLATES_PAGE_STR_FACT); + createApplicationTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateApplicationTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + importApplicationTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteApplicationTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + commitApplicationTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + snapshotApplicationTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + snapshotApplicationTemplateOperationSettings = OperationCallSettings.newBuilder(); + generateApplicationTemplateIaCSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + exportApplicationTemplateIaCSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + exportApplicationTemplateIaCOperationSettings = OperationCallSettings.newBuilder(); + generateApplicationTemplateRevisionIaCSettings = + UnaryCallSettings.newUnaryCallSettingsBuilder(); + exportApplicationTemplateRevisionIaCSettings = + UnaryCallSettings.newUnaryCallSettingsBuilder(); + exportApplicationTemplateRevisionIaCOperationSettings = OperationCallSettings.newBuilder(); + getComponentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listComponentsSettings = PagedCallSettings.newBuilder(LIST_COMPONENTS_PAGE_STR_FACT); + createComponentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateComponentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteComponentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getConnectionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listConnectionsSettings = PagedCallSettings.newBuilder(LIST_CONNECTIONS_PAGE_STR_FACT); + createConnectionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateConnectionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteConnectionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getApplicationTemplateRevisionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listApplicationTemplateRevisionsSettings = + PagedCallSettings.newBuilder(LIST_APPLICATION_TEMPLATE_REVISIONS_PAGE_STR_FACT); + deleteApplicationTemplateRevisionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getCatalogSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listCatalogsSettings = PagedCallSettings.newBuilder(LIST_CATALOGS_PAGE_STR_FACT); + createCatalogSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateCatalogSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteCatalogSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteCatalogOperationSettings = OperationCallSettings.newBuilder(); + createCatalogTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getCatalogTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listCatalogTemplatesSettings = + PagedCallSettings.newBuilder(LIST_CATALOG_TEMPLATES_PAGE_STR_FACT); + updateCatalogTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteCatalogTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteCatalogTemplateOperationSettings = OperationCallSettings.newBuilder(); + createShareSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createShareOperationSettings = OperationCallSettings.newBuilder(); + listSharesSettings = PagedCallSettings.newBuilder(LIST_SHARES_PAGE_STR_FACT); + getShareSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteShareSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteShareOperationSettings = OperationCallSettings.newBuilder(); + syncShareSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + syncShareOperationSettings = OperationCallSettings.newBuilder(); + getSharedTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listSharedTemplatesSettings = + PagedCallSettings.newBuilder(LIST_SHARED_TEMPLATES_PAGE_STR_FACT); + getSharedTemplateRevisionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listSharedTemplateRevisionsSettings = + PagedCallSettings.newBuilder(LIST_SHARED_TEMPLATE_REVISIONS_PAGE_STR_FACT); + createCatalogTemplateRevisionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createCatalogTemplateRevisionOperationSettings = OperationCallSettings.newBuilder(); + getCatalogTemplateRevisionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listCatalogTemplateRevisionsSettings = + PagedCallSettings.newBuilder(LIST_CATALOG_TEMPLATE_REVISIONS_PAGE_STR_FACT); + deleteCatalogTemplateRevisionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteCatalogTemplateRevisionOperationSettings = OperationCallSettings.newBuilder(); + createApplicationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getApplicationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listApplicationsSettings = PagedCallSettings.newBuilder(LIST_APPLICATIONS_PAGE_STR_FACT); + updateApplicationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteApplicationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteApplicationOperationSettings = OperationCallSettings.newBuilder(); + deployApplicationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deployApplicationOperationSettings = OperationCallSettings.newBuilder(); + previewApplicationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + previewApplicationOperationSettings = OperationCallSettings.newBuilder(); + fetchApplicationAssessmentReportSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + generateApplicationAssessmentReportSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + generateApplicationAssessmentReportOperationSettings = OperationCallSettings.newBuilder(); + generateApplicationTemplateAssessmentReportSettings = + UnaryCallSettings.newUnaryCallSettingsBuilder(); + generateApplicationTemplateAssessmentReportOperationSettings = + OperationCallSettings.newBuilder(); + generateAssessmentReportSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + generateAssessmentReportOperationSettings = OperationCallSettings.newBuilder(); + generateTerraformPlanAssessmentReportSettings = + UnaryCallSettings.newUnaryCallSettingsBuilder(); + generateTerraformPlanAssessmentReportOperationSettings = OperationCallSettings.newBuilder(); + getPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listPoliciesSettings = PagedCallSettings.newBuilder(LIST_POLICIES_PAGE_STR_FACT); + createPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updatePolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deletePolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + fetchFrameworksSettings = PagedCallSettings.newBuilder(FETCH_FRAMEWORKS_PAGE_STR_FACT); + generateApplicationIaCSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + exportApplicationIaCSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + exportApplicationIaCOperationSettings = OperationCallSettings.newBuilder(); + importApplicationTemplateIaCSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + ingestApplicationTemplateIaCSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + ingestApplicationTemplateIaCOperationSettings = OperationCallSettings.newBuilder(); + importApplicationIaCSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + registerAppHubApplicationResourcesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + registerAppHubApplicationResourcesOperationSettings = OperationCallSettings.newBuilder(); + listApplicationTemplateSystemRevisionsSettings = + PagedCallSettings.newBuilder(LIST_APPLICATION_TEMPLATE_SYSTEM_REVISIONS_PAGE_STR_FACT); + getApplicationTemplateSystemRevisionSettings = + UnaryCallSettings.newUnaryCallSettingsBuilder(); + recommendIAMRolesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + recommendIAMRolesOperationSettings = OperationCallSettings.newBuilder(); + listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); + getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getSpaceSettings, + listSpacesSettings, + createSpaceSettings, + updateSpaceSettings, + deleteSpaceSettings, + getApplicationTemplateSettings, + listApplicationTemplatesSettings, + createApplicationTemplateSettings, + updateApplicationTemplateSettings, + importApplicationTemplateSettings, + deleteApplicationTemplateSettings, + commitApplicationTemplateSettings, + snapshotApplicationTemplateSettings, + generateApplicationTemplateIaCSettings, + exportApplicationTemplateIaCSettings, + generateApplicationTemplateRevisionIaCSettings, + exportApplicationTemplateRevisionIaCSettings, + getComponentSettings, + listComponentsSettings, + createComponentSettings, + updateComponentSettings, + deleteComponentSettings, + getConnectionSettings, + listConnectionsSettings, + createConnectionSettings, + updateConnectionSettings, + deleteConnectionSettings, + getApplicationTemplateRevisionSettings, + listApplicationTemplateRevisionsSettings, + deleteApplicationTemplateRevisionSettings, + getCatalogSettings, + listCatalogsSettings, + createCatalogSettings, + updateCatalogSettings, + deleteCatalogSettings, + createCatalogTemplateSettings, + getCatalogTemplateSettings, + listCatalogTemplatesSettings, + updateCatalogTemplateSettings, + deleteCatalogTemplateSettings, + createShareSettings, + listSharesSettings, + getShareSettings, + deleteShareSettings, + syncShareSettings, + getSharedTemplateSettings, + listSharedTemplatesSettings, + getSharedTemplateRevisionSettings, + listSharedTemplateRevisionsSettings, + createCatalogTemplateRevisionSettings, + getCatalogTemplateRevisionSettings, + listCatalogTemplateRevisionsSettings, + deleteCatalogTemplateRevisionSettings, + createApplicationSettings, + getApplicationSettings, + listApplicationsSettings, + updateApplicationSettings, + deleteApplicationSettings, + deployApplicationSettings, + previewApplicationSettings, + fetchApplicationAssessmentReportSettings, + generateApplicationAssessmentReportSettings, + generateApplicationTemplateAssessmentReportSettings, + generateAssessmentReportSettings, + generateTerraformPlanAssessmentReportSettings, + getPolicySettings, + listPoliciesSettings, + createPolicySettings, + updatePolicySettings, + deletePolicySettings, + fetchFrameworksSettings, + generateApplicationIaCSettings, + exportApplicationIaCSettings, + importApplicationTemplateIaCSettings, + ingestApplicationTemplateIaCSettings, + importApplicationIaCSettings, + registerAppHubApplicationResourcesSettings, + listApplicationTemplateSystemRevisionsSettings, + getApplicationTemplateSystemRevisionSettings, + recommendIAMRolesSettings, + listLocationsSettings, + getLocationSettings, + setIamPolicySettings, + getIamPolicySettings, + testIamPermissionsSettings); + initDefaults(this); + } + + protected Builder(DesignCenterStubSettings settings) { + super(settings); + + getSpaceSettings = settings.getSpaceSettings.toBuilder(); + listSpacesSettings = settings.listSpacesSettings.toBuilder(); + createSpaceSettings = settings.createSpaceSettings.toBuilder(); + updateSpaceSettings = settings.updateSpaceSettings.toBuilder(); + deleteSpaceSettings = settings.deleteSpaceSettings.toBuilder(); + getApplicationTemplateSettings = settings.getApplicationTemplateSettings.toBuilder(); + listApplicationTemplatesSettings = settings.listApplicationTemplatesSettings.toBuilder(); + createApplicationTemplateSettings = settings.createApplicationTemplateSettings.toBuilder(); + updateApplicationTemplateSettings = settings.updateApplicationTemplateSettings.toBuilder(); + importApplicationTemplateSettings = settings.importApplicationTemplateSettings.toBuilder(); + deleteApplicationTemplateSettings = settings.deleteApplicationTemplateSettings.toBuilder(); + commitApplicationTemplateSettings = settings.commitApplicationTemplateSettings.toBuilder(); + snapshotApplicationTemplateSettings = + settings.snapshotApplicationTemplateSettings.toBuilder(); + snapshotApplicationTemplateOperationSettings = + settings.snapshotApplicationTemplateOperationSettings.toBuilder(); + generateApplicationTemplateIaCSettings = + settings.generateApplicationTemplateIaCSettings.toBuilder(); + exportApplicationTemplateIaCSettings = + settings.exportApplicationTemplateIaCSettings.toBuilder(); + exportApplicationTemplateIaCOperationSettings = + settings.exportApplicationTemplateIaCOperationSettings.toBuilder(); + generateApplicationTemplateRevisionIaCSettings = + settings.generateApplicationTemplateRevisionIaCSettings.toBuilder(); + exportApplicationTemplateRevisionIaCSettings = + settings.exportApplicationTemplateRevisionIaCSettings.toBuilder(); + exportApplicationTemplateRevisionIaCOperationSettings = + settings.exportApplicationTemplateRevisionIaCOperationSettings.toBuilder(); + getComponentSettings = settings.getComponentSettings.toBuilder(); + listComponentsSettings = settings.listComponentsSettings.toBuilder(); + createComponentSettings = settings.createComponentSettings.toBuilder(); + updateComponentSettings = settings.updateComponentSettings.toBuilder(); + deleteComponentSettings = settings.deleteComponentSettings.toBuilder(); + getConnectionSettings = settings.getConnectionSettings.toBuilder(); + listConnectionsSettings = settings.listConnectionsSettings.toBuilder(); + createConnectionSettings = settings.createConnectionSettings.toBuilder(); + updateConnectionSettings = settings.updateConnectionSettings.toBuilder(); + deleteConnectionSettings = settings.deleteConnectionSettings.toBuilder(); + getApplicationTemplateRevisionSettings = + settings.getApplicationTemplateRevisionSettings.toBuilder(); + listApplicationTemplateRevisionsSettings = + settings.listApplicationTemplateRevisionsSettings.toBuilder(); + deleteApplicationTemplateRevisionSettings = + settings.deleteApplicationTemplateRevisionSettings.toBuilder(); + getCatalogSettings = settings.getCatalogSettings.toBuilder(); + listCatalogsSettings = settings.listCatalogsSettings.toBuilder(); + createCatalogSettings = settings.createCatalogSettings.toBuilder(); + updateCatalogSettings = settings.updateCatalogSettings.toBuilder(); + deleteCatalogSettings = settings.deleteCatalogSettings.toBuilder(); + deleteCatalogOperationSettings = settings.deleteCatalogOperationSettings.toBuilder(); + createCatalogTemplateSettings = settings.createCatalogTemplateSettings.toBuilder(); + getCatalogTemplateSettings = settings.getCatalogTemplateSettings.toBuilder(); + listCatalogTemplatesSettings = settings.listCatalogTemplatesSettings.toBuilder(); + updateCatalogTemplateSettings = settings.updateCatalogTemplateSettings.toBuilder(); + deleteCatalogTemplateSettings = settings.deleteCatalogTemplateSettings.toBuilder(); + deleteCatalogTemplateOperationSettings = + settings.deleteCatalogTemplateOperationSettings.toBuilder(); + createShareSettings = settings.createShareSettings.toBuilder(); + createShareOperationSettings = settings.createShareOperationSettings.toBuilder(); + listSharesSettings = settings.listSharesSettings.toBuilder(); + getShareSettings = settings.getShareSettings.toBuilder(); + deleteShareSettings = settings.deleteShareSettings.toBuilder(); + deleteShareOperationSettings = settings.deleteShareOperationSettings.toBuilder(); + syncShareSettings = settings.syncShareSettings.toBuilder(); + syncShareOperationSettings = settings.syncShareOperationSettings.toBuilder(); + getSharedTemplateSettings = settings.getSharedTemplateSettings.toBuilder(); + listSharedTemplatesSettings = settings.listSharedTemplatesSettings.toBuilder(); + getSharedTemplateRevisionSettings = settings.getSharedTemplateRevisionSettings.toBuilder(); + listSharedTemplateRevisionsSettings = + settings.listSharedTemplateRevisionsSettings.toBuilder(); + createCatalogTemplateRevisionSettings = + settings.createCatalogTemplateRevisionSettings.toBuilder(); + createCatalogTemplateRevisionOperationSettings = + settings.createCatalogTemplateRevisionOperationSettings.toBuilder(); + getCatalogTemplateRevisionSettings = settings.getCatalogTemplateRevisionSettings.toBuilder(); + listCatalogTemplateRevisionsSettings = + settings.listCatalogTemplateRevisionsSettings.toBuilder(); + deleteCatalogTemplateRevisionSettings = + settings.deleteCatalogTemplateRevisionSettings.toBuilder(); + deleteCatalogTemplateRevisionOperationSettings = + settings.deleteCatalogTemplateRevisionOperationSettings.toBuilder(); + createApplicationSettings = settings.createApplicationSettings.toBuilder(); + getApplicationSettings = settings.getApplicationSettings.toBuilder(); + listApplicationsSettings = settings.listApplicationsSettings.toBuilder(); + updateApplicationSettings = settings.updateApplicationSettings.toBuilder(); + deleteApplicationSettings = settings.deleteApplicationSettings.toBuilder(); + deleteApplicationOperationSettings = settings.deleteApplicationOperationSettings.toBuilder(); + deployApplicationSettings = settings.deployApplicationSettings.toBuilder(); + deployApplicationOperationSettings = settings.deployApplicationOperationSettings.toBuilder(); + previewApplicationSettings = settings.previewApplicationSettings.toBuilder(); + previewApplicationOperationSettings = + settings.previewApplicationOperationSettings.toBuilder(); + fetchApplicationAssessmentReportSettings = + settings.fetchApplicationAssessmentReportSettings.toBuilder(); + generateApplicationAssessmentReportSettings = + settings.generateApplicationAssessmentReportSettings.toBuilder(); + generateApplicationAssessmentReportOperationSettings = + settings.generateApplicationAssessmentReportOperationSettings.toBuilder(); + generateApplicationTemplateAssessmentReportSettings = + settings.generateApplicationTemplateAssessmentReportSettings.toBuilder(); + generateApplicationTemplateAssessmentReportOperationSettings = + settings.generateApplicationTemplateAssessmentReportOperationSettings.toBuilder(); + generateAssessmentReportSettings = settings.generateAssessmentReportSettings.toBuilder(); + generateAssessmentReportOperationSettings = + settings.generateAssessmentReportOperationSettings.toBuilder(); + generateTerraformPlanAssessmentReportSettings = + settings.generateTerraformPlanAssessmentReportSettings.toBuilder(); + generateTerraformPlanAssessmentReportOperationSettings = + settings.generateTerraformPlanAssessmentReportOperationSettings.toBuilder(); + getPolicySettings = settings.getPolicySettings.toBuilder(); + listPoliciesSettings = settings.listPoliciesSettings.toBuilder(); + createPolicySettings = settings.createPolicySettings.toBuilder(); + updatePolicySettings = settings.updatePolicySettings.toBuilder(); + deletePolicySettings = settings.deletePolicySettings.toBuilder(); + fetchFrameworksSettings = settings.fetchFrameworksSettings.toBuilder(); + generateApplicationIaCSettings = settings.generateApplicationIaCSettings.toBuilder(); + exportApplicationIaCSettings = settings.exportApplicationIaCSettings.toBuilder(); + exportApplicationIaCOperationSettings = + settings.exportApplicationIaCOperationSettings.toBuilder(); + importApplicationTemplateIaCSettings = + settings.importApplicationTemplateIaCSettings.toBuilder(); + ingestApplicationTemplateIaCSettings = + settings.ingestApplicationTemplateIaCSettings.toBuilder(); + ingestApplicationTemplateIaCOperationSettings = + settings.ingestApplicationTemplateIaCOperationSettings.toBuilder(); + importApplicationIaCSettings = settings.importApplicationIaCSettings.toBuilder(); + registerAppHubApplicationResourcesSettings = + settings.registerAppHubApplicationResourcesSettings.toBuilder(); + registerAppHubApplicationResourcesOperationSettings = + settings.registerAppHubApplicationResourcesOperationSettings.toBuilder(); + listApplicationTemplateSystemRevisionsSettings = + settings.listApplicationTemplateSystemRevisionsSettings.toBuilder(); + getApplicationTemplateSystemRevisionSettings = + settings.getApplicationTemplateSystemRevisionSettings.toBuilder(); + recommendIAMRolesSettings = settings.recommendIAMRolesSettings.toBuilder(); + recommendIAMRolesOperationSettings = settings.recommendIAMRolesOperationSettings.toBuilder(); + listLocationsSettings = settings.listLocationsSettings.toBuilder(); + getLocationSettings = settings.getLocationSettings.toBuilder(); + setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); + getIamPolicySettings = settings.getIamPolicySettings.toBuilder(); + testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getSpaceSettings, + listSpacesSettings, + createSpaceSettings, + updateSpaceSettings, + deleteSpaceSettings, + getApplicationTemplateSettings, + listApplicationTemplatesSettings, + createApplicationTemplateSettings, + updateApplicationTemplateSettings, + importApplicationTemplateSettings, + deleteApplicationTemplateSettings, + commitApplicationTemplateSettings, + snapshotApplicationTemplateSettings, + generateApplicationTemplateIaCSettings, + exportApplicationTemplateIaCSettings, + generateApplicationTemplateRevisionIaCSettings, + exportApplicationTemplateRevisionIaCSettings, + getComponentSettings, + listComponentsSettings, + createComponentSettings, + updateComponentSettings, + deleteComponentSettings, + getConnectionSettings, + listConnectionsSettings, + createConnectionSettings, + updateConnectionSettings, + deleteConnectionSettings, + getApplicationTemplateRevisionSettings, + listApplicationTemplateRevisionsSettings, + deleteApplicationTemplateRevisionSettings, + getCatalogSettings, + listCatalogsSettings, + createCatalogSettings, + updateCatalogSettings, + deleteCatalogSettings, + createCatalogTemplateSettings, + getCatalogTemplateSettings, + listCatalogTemplatesSettings, + updateCatalogTemplateSettings, + deleteCatalogTemplateSettings, + createShareSettings, + listSharesSettings, + getShareSettings, + deleteShareSettings, + syncShareSettings, + getSharedTemplateSettings, + listSharedTemplatesSettings, + getSharedTemplateRevisionSettings, + listSharedTemplateRevisionsSettings, + createCatalogTemplateRevisionSettings, + getCatalogTemplateRevisionSettings, + listCatalogTemplateRevisionsSettings, + deleteCatalogTemplateRevisionSettings, + createApplicationSettings, + getApplicationSettings, + listApplicationsSettings, + updateApplicationSettings, + deleteApplicationSettings, + deployApplicationSettings, + previewApplicationSettings, + fetchApplicationAssessmentReportSettings, + generateApplicationAssessmentReportSettings, + generateApplicationTemplateAssessmentReportSettings, + generateAssessmentReportSettings, + generateTerraformPlanAssessmentReportSettings, + getPolicySettings, + listPoliciesSettings, + createPolicySettings, + updatePolicySettings, + deletePolicySettings, + fetchFrameworksSettings, + generateApplicationIaCSettings, + exportApplicationIaCSettings, + importApplicationTemplateIaCSettings, + ingestApplicationTemplateIaCSettings, + importApplicationIaCSettings, + registerAppHubApplicationResourcesSettings, + listApplicationTemplateSystemRevisionsSettings, + getApplicationTemplateSystemRevisionSettings, + recommendIAMRolesSettings, + listLocationsSettings, + getLocationSettings, + setIamPolicySettings, + getIamPolicySettings, + testIamPermissionsSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + 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.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .getSpaceSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listSpacesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createSpaceSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .updateSpaceSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + + builder + .deleteSpaceSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + + builder + .getApplicationTemplateSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listApplicationTemplatesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createApplicationTemplateSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + + builder + .updateApplicationTemplateSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + + builder + .importApplicationTemplateSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + + builder + .deleteApplicationTemplateSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + + builder + .commitApplicationTemplateSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + + builder + .snapshotApplicationTemplateSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + + builder + .generateApplicationTemplateIaCSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + + builder + .exportApplicationTemplateIaCSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + + builder + .generateApplicationTemplateRevisionIaCSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + + builder + .exportApplicationTemplateRevisionIaCSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + + builder + .getComponentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listComponentsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createComponentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + + builder + .updateComponentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + + builder + .deleteComponentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + + builder + .getConnectionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listConnectionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createConnectionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + + builder + .updateConnectionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + + builder + .deleteConnectionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + + builder + .getApplicationTemplateRevisionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listApplicationTemplateRevisionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .deleteApplicationTemplateRevisionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + + builder + .getCatalogSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listCatalogsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createCatalogSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + + builder + .updateCatalogSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + + builder + .deleteCatalogSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + + builder + .createCatalogTemplateSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + + builder + .getCatalogTemplateSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listCatalogTemplatesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .updateCatalogTemplateSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + + builder + .deleteCatalogTemplateSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + + builder + .createShareSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + + builder + .listSharesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getShareSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .deleteShareSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + + builder + .syncShareSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + + builder + .getSharedTemplateSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listSharedTemplatesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getSharedTemplateRevisionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listSharedTemplateRevisionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createCatalogTemplateRevisionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + + builder + .getCatalogTemplateRevisionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listCatalogTemplateRevisionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .deleteCatalogTemplateRevisionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + + builder + .createApplicationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + + builder + .getApplicationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listApplicationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .updateApplicationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + + builder + .deleteApplicationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + + builder + .deployApplicationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + + builder + .previewApplicationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + + builder + .fetchApplicationAssessmentReportSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .generateApplicationAssessmentReportSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + + builder + .generateApplicationTemplateAssessmentReportSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + + builder + .generateAssessmentReportSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + + builder + .generateTerraformPlanAssessmentReportSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + + builder + .getPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listPoliciesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + + builder + .updatePolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + + builder + .deletePolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + + builder + .fetchFrameworksSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .generateApplicationIaCSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + + builder + .exportApplicationIaCSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .importApplicationTemplateIaCSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + + builder + .ingestApplicationTemplateIaCSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .importApplicationIaCSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + + builder + .registerAppHubApplicationResourcesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + + builder + .listApplicationTemplateSystemRevisionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getApplicationTemplateSystemRevisionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .recommendIAMRolesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_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 + .setIamPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getIamPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .testIamPermissionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .snapshotApplicationTemplateOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create( + SnapshotApplicationTemplateResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .exportApplicationTemplateIaCOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create( + ExportApplicationTemplateIaCResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .exportApplicationTemplateRevisionIaCOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create( + ExportApplicationTemplateRevisionIaCResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteCatalogOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteCatalogTemplateOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .createShareOperationSettings() + .setInitialCallSettings( + UnaryCallSettings.newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Share.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteShareOperationSettings() + .setInitialCallSettings( + UnaryCallSettings.newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .syncShareOperationSettings() + .setInitialCallSettings( + UnaryCallSettings.newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Share.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .createCatalogTemplateRevisionOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(CatalogTemplateRevision.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteCatalogTemplateRevisionOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteApplicationOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .deployApplicationOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create( + DeployApplicationResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .previewApplicationOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create( + PreviewApplicationResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .generateApplicationAssessmentReportOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create( + GenerateApplicationAssessmentReportResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .generateApplicationTemplateAssessmentReportOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create( + GenerateApplicationTemplateAssessmentReportResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .generateAssessmentReportOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create( + GenerateAssessmentReportResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .generateTerraformPlanAssessmentReportOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create( + GenerateTerraformPlanAssessmentReportResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .exportApplicationIaCOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create( + ExportApplicationIaCResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .ingestApplicationTemplateIaCOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create( + IngestApplicationTemplateIaCResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .registerAppHubApplicationResourcesOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create( + RegisterAppHubApplicationResourcesResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .recommendIAMRolesOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create( + RecommendIAMRolesResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(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 getSpace. */ + public UnaryCallSettings.Builder getSpaceSettings() { + return getSpaceSettings; + } + + /** Returns the builder for the settings used for calls to listSpaces. */ + public PagedCallSettings.Builder + listSpacesSettings() { + return listSpacesSettings; + } + + /** Returns the builder for the settings used for calls to createSpace. */ + public UnaryCallSettings.Builder createSpaceSettings() { + return createSpaceSettings; + } + + /** Returns the builder for the settings used for calls to updateSpace. */ + public UnaryCallSettings.Builder updateSpaceSettings() { + return updateSpaceSettings; + } + + /** Returns the builder for the settings used for calls to deleteSpace. */ + public UnaryCallSettings.Builder deleteSpaceSettings() { + return deleteSpaceSettings; + } + + /** Returns the builder for the settings used for calls to getApplicationTemplate. */ + public UnaryCallSettings.Builder + getApplicationTemplateSettings() { + return getApplicationTemplateSettings; + } + + /** Returns the builder for the settings used for calls to listApplicationTemplates. */ + public PagedCallSettings.Builder< + ListApplicationTemplatesRequest, + ListApplicationTemplatesResponse, + ListApplicationTemplatesPagedResponse> + listApplicationTemplatesSettings() { + return listApplicationTemplatesSettings; + } + + /** Returns the builder for the settings used for calls to createApplicationTemplate. */ + public UnaryCallSettings.Builder + createApplicationTemplateSettings() { + return createApplicationTemplateSettings; + } + + /** Returns the builder for the settings used for calls to updateApplicationTemplate. */ + public UnaryCallSettings.Builder + updateApplicationTemplateSettings() { + return updateApplicationTemplateSettings; + } + + /** Returns the builder for the settings used for calls to importApplicationTemplate. */ + public UnaryCallSettings.Builder + importApplicationTemplateSettings() { + return importApplicationTemplateSettings; + } + + /** Returns the builder for the settings used for calls to deleteApplicationTemplate. */ + public UnaryCallSettings.Builder + deleteApplicationTemplateSettings() { + return deleteApplicationTemplateSettings; + } + + /** Returns the builder for the settings used for calls to commitApplicationTemplate. */ + public UnaryCallSettings.Builder + commitApplicationTemplateSettings() { + return commitApplicationTemplateSettings; + } + + /** Returns the builder for the settings used for calls to snapshotApplicationTemplate. */ + public UnaryCallSettings.Builder + snapshotApplicationTemplateSettings() { + return snapshotApplicationTemplateSettings; + } + + /** Returns the builder for the settings used for calls to snapshotApplicationTemplate. */ + public OperationCallSettings.Builder< + SnapshotApplicationTemplateRequest, + SnapshotApplicationTemplateResponse, + OperationMetadata> + snapshotApplicationTemplateOperationSettings() { + return snapshotApplicationTemplateOperationSettings; + } + + /** Returns the builder for the settings used for calls to generateApplicationTemplateIaC. */ + public UnaryCallSettings.Builder< + GenerateApplicationTemplateIaCRequest, GenerateApplicationTemplateIaCResponse> + generateApplicationTemplateIaCSettings() { + return generateApplicationTemplateIaCSettings; + } + + /** Returns the builder for the settings used for calls to exportApplicationTemplateIaC. */ + public UnaryCallSettings.Builder + exportApplicationTemplateIaCSettings() { + return exportApplicationTemplateIaCSettings; + } + + /** Returns the builder for the settings used for calls to exportApplicationTemplateIaC. */ + public OperationCallSettings.Builder< + ExportApplicationTemplateIaCRequest, + ExportApplicationTemplateIaCResponse, + OperationMetadata> + exportApplicationTemplateIaCOperationSettings() { + return exportApplicationTemplateIaCOperationSettings; + } + + /** + * Returns the builder for the settings used for calls to + * generateApplicationTemplateRevisionIaC. + */ + public UnaryCallSettings.Builder< + GenerateApplicationTemplateRevisionIaCRequest, + GenerateApplicationTemplateRevisionIaCResponse> + generateApplicationTemplateRevisionIaCSettings() { + return generateApplicationTemplateRevisionIaCSettings; + } + + /** + * Returns the builder for the settings used for calls to exportApplicationTemplateRevisionIaC. + */ + public UnaryCallSettings.Builder + exportApplicationTemplateRevisionIaCSettings() { + return exportApplicationTemplateRevisionIaCSettings; + } + + /** + * Returns the builder for the settings used for calls to exportApplicationTemplateRevisionIaC. + */ + public OperationCallSettings.Builder< + ExportApplicationTemplateRevisionIaCRequest, + ExportApplicationTemplateRevisionIaCResponse, + OperationMetadata> + exportApplicationTemplateRevisionIaCOperationSettings() { + return exportApplicationTemplateRevisionIaCOperationSettings; + } + + /** Returns the builder for the settings used for calls to getComponent. */ + public UnaryCallSettings.Builder getComponentSettings() { + return getComponentSettings; + } + + /** Returns the builder for the settings used for calls to listComponents. */ + public PagedCallSettings.Builder< + ListComponentsRequest, ListComponentsResponse, ListComponentsPagedResponse> + listComponentsSettings() { + return listComponentsSettings; + } + + /** Returns the builder for the settings used for calls to createComponent. */ + public UnaryCallSettings.Builder createComponentSettings() { + return createComponentSettings; + } + + /** Returns the builder for the settings used for calls to updateComponent. */ + public UnaryCallSettings.Builder updateComponentSettings() { + return updateComponentSettings; + } + + /** Returns the builder for the settings used for calls to deleteComponent. */ + public UnaryCallSettings.Builder deleteComponentSettings() { + return deleteComponentSettings; + } + + /** Returns the builder for the settings used for calls to getConnection. */ + public UnaryCallSettings.Builder getConnectionSettings() { + return getConnectionSettings; + } + + /** Returns the builder for the settings used for calls to listConnections. */ + public PagedCallSettings.Builder< + ListConnectionsRequest, ListConnectionsResponse, ListConnectionsPagedResponse> + listConnectionsSettings() { + return listConnectionsSettings; + } + + /** Returns the builder for the settings used for calls to createConnection. */ + public UnaryCallSettings.Builder + createConnectionSettings() { + return createConnectionSettings; + } + + /** Returns the builder for the settings used for calls to updateConnection. */ + public UnaryCallSettings.Builder + updateConnectionSettings() { + return updateConnectionSettings; + } + + /** Returns the builder for the settings used for calls to deleteConnection. */ + public UnaryCallSettings.Builder deleteConnectionSettings() { + return deleteConnectionSettings; + } + + /** Returns the builder for the settings used for calls to getApplicationTemplateRevision. */ + public UnaryCallSettings.Builder< + GetApplicationTemplateRevisionRequest, ApplicationTemplateRevision> + getApplicationTemplateRevisionSettings() { + return getApplicationTemplateRevisionSettings; + } + + /** Returns the builder for the settings used for calls to listApplicationTemplateRevisions. */ + public PagedCallSettings.Builder< + ListApplicationTemplateRevisionsRequest, + ListApplicationTemplateRevisionsResponse, + ListApplicationTemplateRevisionsPagedResponse> + listApplicationTemplateRevisionsSettings() { + return listApplicationTemplateRevisionsSettings; + } + + /** Returns the builder for the settings used for calls to deleteApplicationTemplateRevision. */ + public UnaryCallSettings.Builder + deleteApplicationTemplateRevisionSettings() { + return deleteApplicationTemplateRevisionSettings; + } + + /** Returns the builder for the settings used for calls to getCatalog. */ + public UnaryCallSettings.Builder getCatalogSettings() { + return getCatalogSettings; + } + + /** Returns the builder for the settings used for calls to listCatalogs. */ + public PagedCallSettings.Builder< + ListCatalogsRequest, ListCatalogsResponse, ListCatalogsPagedResponse> + listCatalogsSettings() { + return listCatalogsSettings; + } + + /** Returns the builder for the settings used for calls to createCatalog. */ + public UnaryCallSettings.Builder createCatalogSettings() { + return createCatalogSettings; + } + + /** Returns the builder for the settings used for calls to updateCatalog. */ + public UnaryCallSettings.Builder updateCatalogSettings() { + return updateCatalogSettings; + } + + /** Returns the builder for the settings used for calls to deleteCatalog. */ + public UnaryCallSettings.Builder deleteCatalogSettings() { + return deleteCatalogSettings; + } + + /** Returns the builder for the settings used for calls to deleteCatalog. */ + public OperationCallSettings.Builder + deleteCatalogOperationSettings() { + return deleteCatalogOperationSettings; + } + + /** Returns the builder for the settings used for calls to createCatalogTemplate. */ + public UnaryCallSettings.Builder + createCatalogTemplateSettings() { + return createCatalogTemplateSettings; + } + + /** Returns the builder for the settings used for calls to getCatalogTemplate. */ + public UnaryCallSettings.Builder + getCatalogTemplateSettings() { + return getCatalogTemplateSettings; + } + + /** Returns the builder for the settings used for calls to listCatalogTemplates. */ + public PagedCallSettings.Builder< + ListCatalogTemplatesRequest, + ListCatalogTemplatesResponse, + ListCatalogTemplatesPagedResponse> + listCatalogTemplatesSettings() { + return listCatalogTemplatesSettings; + } + + /** Returns the builder for the settings used for calls to updateCatalogTemplate. */ + public UnaryCallSettings.Builder + updateCatalogTemplateSettings() { + return updateCatalogTemplateSettings; + } + + /** Returns the builder for the settings used for calls to deleteCatalogTemplate. */ + public UnaryCallSettings.Builder + deleteCatalogTemplateSettings() { + return deleteCatalogTemplateSettings; + } + + /** Returns the builder for the settings used for calls to deleteCatalogTemplate. */ + public OperationCallSettings.Builder + deleteCatalogTemplateOperationSettings() { + return deleteCatalogTemplateOperationSettings; + } + + /** Returns the builder for the settings used for calls to createShare. */ + public UnaryCallSettings.Builder createShareSettings() { + return createShareSettings; + } + + /** Returns the builder for the settings used for calls to createShare. */ + public OperationCallSettings.Builder + createShareOperationSettings() { + return createShareOperationSettings; + } + + /** Returns the builder for the settings used for calls to listShares. */ + public PagedCallSettings.Builder + listSharesSettings() { + return listSharesSettings; + } + + /** Returns the builder for the settings used for calls to getShare. */ + public UnaryCallSettings.Builder getShareSettings() { + return getShareSettings; + } + + /** Returns the builder for the settings used for calls to deleteShare. */ + public UnaryCallSettings.Builder deleteShareSettings() { + return deleteShareSettings; + } + + /** Returns the builder for the settings used for calls to deleteShare. */ + public OperationCallSettings.Builder + deleteShareOperationSettings() { + return deleteShareOperationSettings; + } + + /** Returns the builder for the settings used for calls to syncShare. */ + public UnaryCallSettings.Builder syncShareSettings() { + return syncShareSettings; + } + + /** Returns the builder for the settings used for calls to syncShare. */ + public OperationCallSettings.Builder + syncShareOperationSettings() { + return syncShareOperationSettings; + } + + /** Returns the builder for the settings used for calls to getSharedTemplate. */ + public UnaryCallSettings.Builder + getSharedTemplateSettings() { + return getSharedTemplateSettings; + } + + /** Returns the builder for the settings used for calls to listSharedTemplates. */ + public PagedCallSettings.Builder< + ListSharedTemplatesRequest, + ListSharedTemplatesResponse, + ListSharedTemplatesPagedResponse> + listSharedTemplatesSettings() { + return listSharedTemplatesSettings; + } + + /** Returns the builder for the settings used for calls to getSharedTemplateRevision. */ + public UnaryCallSettings.Builder + getSharedTemplateRevisionSettings() { + return getSharedTemplateRevisionSettings; + } + + /** Returns the builder for the settings used for calls to listSharedTemplateRevisions. */ + public PagedCallSettings.Builder< + ListSharedTemplateRevisionsRequest, + ListSharedTemplateRevisionsResponse, + ListSharedTemplateRevisionsPagedResponse> + listSharedTemplateRevisionsSettings() { + return listSharedTemplateRevisionsSettings; + } + + /** Returns the builder for the settings used for calls to createCatalogTemplateRevision. */ + public UnaryCallSettings.Builder + createCatalogTemplateRevisionSettings() { + return createCatalogTemplateRevisionSettings; + } + + /** Returns the builder for the settings used for calls to createCatalogTemplateRevision. */ + public OperationCallSettings.Builder< + CreateCatalogTemplateRevisionRequest, CatalogTemplateRevision, OperationMetadata> + createCatalogTemplateRevisionOperationSettings() { + return createCatalogTemplateRevisionOperationSettings; + } + + /** Returns the builder for the settings used for calls to getCatalogTemplateRevision. */ + public UnaryCallSettings.Builder + getCatalogTemplateRevisionSettings() { + return getCatalogTemplateRevisionSettings; + } + + /** Returns the builder for the settings used for calls to listCatalogTemplateRevisions. */ + public PagedCallSettings.Builder< + ListCatalogTemplateRevisionsRequest, + ListCatalogTemplateRevisionsResponse, + ListCatalogTemplateRevisionsPagedResponse> + listCatalogTemplateRevisionsSettings() { + return listCatalogTemplateRevisionsSettings; + } + + /** Returns the builder for the settings used for calls to deleteCatalogTemplateRevision. */ + public UnaryCallSettings.Builder + deleteCatalogTemplateRevisionSettings() { + return deleteCatalogTemplateRevisionSettings; + } + + /** Returns the builder for the settings used for calls to deleteCatalogTemplateRevision. */ + public OperationCallSettings.Builder< + DeleteCatalogTemplateRevisionRequest, Empty, OperationMetadata> + deleteCatalogTemplateRevisionOperationSettings() { + return deleteCatalogTemplateRevisionOperationSettings; + } + + /** Returns the builder for the settings used for calls to createApplication. */ + public UnaryCallSettings.Builder + createApplicationSettings() { + return createApplicationSettings; + } + + /** Returns the builder for the settings used for calls to getApplication. */ + public UnaryCallSettings.Builder getApplicationSettings() { + return getApplicationSettings; + } + + /** Returns the builder for the settings used for calls to listApplications. */ + public PagedCallSettings.Builder< + ListApplicationsRequest, ListApplicationsResponse, ListApplicationsPagedResponse> + listApplicationsSettings() { + return listApplicationsSettings; + } + + /** Returns the builder for the settings used for calls to updateApplication. */ + public UnaryCallSettings.Builder + updateApplicationSettings() { + return updateApplicationSettings; + } + + /** Returns the builder for the settings used for calls to deleteApplication. */ + public UnaryCallSettings.Builder + deleteApplicationSettings() { + return deleteApplicationSettings; + } + + /** Returns the builder for the settings used for calls to deleteApplication. */ + public OperationCallSettings.Builder + deleteApplicationOperationSettings() { + return deleteApplicationOperationSettings; + } + + /** Returns the builder for the settings used for calls to deployApplication. */ + public UnaryCallSettings.Builder + deployApplicationSettings() { + return deployApplicationSettings; + } + + /** Returns the builder for the settings used for calls to deployApplication. */ + public OperationCallSettings.Builder< + DeployApplicationRequest, DeployApplicationResponse, OperationMetadata> + deployApplicationOperationSettings() { + return deployApplicationOperationSettings; + } + + /** Returns the builder for the settings used for calls to previewApplication. */ + public UnaryCallSettings.Builder + previewApplicationSettings() { + return previewApplicationSettings; + } + + /** Returns the builder for the settings used for calls to previewApplication. */ + public OperationCallSettings.Builder< + PreviewApplicationRequest, PreviewApplicationResponse, OperationMetadata> + previewApplicationOperationSettings() { + return previewApplicationOperationSettings; + } + + /** Returns the builder for the settings used for calls to fetchApplicationAssessmentReport. */ + public UnaryCallSettings.Builder< + FetchApplicationAssessmentReportRequest, FetchApplicationAssessmentReportResponse> + fetchApplicationAssessmentReportSettings() { + return fetchApplicationAssessmentReportSettings; + } + + /** + * Returns the builder for the settings used for calls to generateApplicationAssessmentReport. + */ + public UnaryCallSettings.Builder + generateApplicationAssessmentReportSettings() { + return generateApplicationAssessmentReportSettings; + } + + /** + * Returns the builder for the settings used for calls to generateApplicationAssessmentReport. + */ + public OperationCallSettings.Builder< + GenerateApplicationAssessmentReportRequest, + GenerateApplicationAssessmentReportResponse, + OperationMetadata> + generateApplicationAssessmentReportOperationSettings() { + return generateApplicationAssessmentReportOperationSettings; + } + + /** + * Returns the builder for the settings used for calls to + * generateApplicationTemplateAssessmentReport. + */ + public UnaryCallSettings.Builder + generateApplicationTemplateAssessmentReportSettings() { + return generateApplicationTemplateAssessmentReportSettings; + } + + /** + * Returns the builder for the settings used for calls to + * generateApplicationTemplateAssessmentReport. + */ + public OperationCallSettings.Builder< + GenerateApplicationTemplateAssessmentReportRequest, + GenerateApplicationTemplateAssessmentReportResponse, + OperationMetadata> + generateApplicationTemplateAssessmentReportOperationSettings() { + return generateApplicationTemplateAssessmentReportOperationSettings; + } + + /** + * Returns the builder for the settings used for calls to generateAssessmentReport. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated + public UnaryCallSettings.Builder + generateAssessmentReportSettings() { + return generateAssessmentReportSettings; + } + + /** Returns the builder for the settings used for calls to generateAssessmentReport. */ + public OperationCallSettings.Builder< + GenerateAssessmentReportRequest, GenerateAssessmentReportResponse, OperationMetadata> + generateAssessmentReportOperationSettings() { + return generateAssessmentReportOperationSettings; + } + + /** + * Returns the builder for the settings used for calls to generateTerraformPlanAssessmentReport. + */ + public UnaryCallSettings.Builder + generateTerraformPlanAssessmentReportSettings() { + return generateTerraformPlanAssessmentReportSettings; + } + + /** + * Returns the builder for the settings used for calls to generateTerraformPlanAssessmentReport. + */ + public OperationCallSettings.Builder< + GenerateTerraformPlanAssessmentReportRequest, + GenerateTerraformPlanAssessmentReportResponse, + OperationMetadata> + generateTerraformPlanAssessmentReportOperationSettings() { + return generateTerraformPlanAssessmentReportOperationSettings; + } + + /** Returns the builder for the settings used for calls to getPolicy. */ + public UnaryCallSettings.Builder getPolicySettings() { + return getPolicySettings; + } + + /** Returns the builder for the settings used for calls to listPolicies. */ + public PagedCallSettings.Builder< + ListPoliciesRequest, ListPoliciesResponse, ListPoliciesPagedResponse> + listPoliciesSettings() { + return listPoliciesSettings; + } + + /** Returns the builder for the settings used for calls to createPolicy. */ + public UnaryCallSettings.Builder createPolicySettings() { + return createPolicySettings; + } + + /** Returns the builder for the settings used for calls to updatePolicy. */ + public UnaryCallSettings.Builder updatePolicySettings() { + return updatePolicySettings; + } + + /** Returns the builder for the settings used for calls to deletePolicy. */ + public UnaryCallSettings.Builder deletePolicySettings() { + return deletePolicySettings; + } + + /** Returns the builder for the settings used for calls to fetchFrameworks. */ + public PagedCallSettings.Builder< + FetchFrameworksRequest, FetchFrameworksResponse, FetchFrameworksPagedResponse> + fetchFrameworksSettings() { + return fetchFrameworksSettings; + } + + /** Returns the builder for the settings used for calls to generateApplicationIaC. */ + public UnaryCallSettings.Builder + generateApplicationIaCSettings() { + return generateApplicationIaCSettings; + } + + /** Returns the builder for the settings used for calls to exportApplicationIaC. */ + public UnaryCallSettings.Builder + exportApplicationIaCSettings() { + return exportApplicationIaCSettings; + } + + /** Returns the builder for the settings used for calls to exportApplicationIaC. */ + public OperationCallSettings.Builder< + ExportApplicationIaCRequest, ExportApplicationIaCResponse, OperationMetadata> + exportApplicationIaCOperationSettings() { + return exportApplicationIaCOperationSettings; + } + + /** Returns the builder for the settings used for calls to importApplicationTemplateIaC. */ + public UnaryCallSettings.Builder< + ImportApplicationTemplateIaCRequest, ImportApplicationTemplateIaCResponse> + importApplicationTemplateIaCSettings() { + return importApplicationTemplateIaCSettings; + } + + /** Returns the builder for the settings used for calls to ingestApplicationTemplateIaC. */ + public UnaryCallSettings.Builder + ingestApplicationTemplateIaCSettings() { + return ingestApplicationTemplateIaCSettings; + } + + /** Returns the builder for the settings used for calls to ingestApplicationTemplateIaC. */ + public OperationCallSettings.Builder< + IngestApplicationTemplateIaCRequest, + IngestApplicationTemplateIaCResponse, + OperationMetadata> + ingestApplicationTemplateIaCOperationSettings() { + return ingestApplicationTemplateIaCOperationSettings; + } + + /** Returns the builder for the settings used for calls to importApplicationIaC. */ + public UnaryCallSettings.Builder + importApplicationIaCSettings() { + return importApplicationIaCSettings; + } + + /** + * Returns the builder for the settings used for calls to registerAppHubApplicationResources. + */ + public UnaryCallSettings.Builder + registerAppHubApplicationResourcesSettings() { + return registerAppHubApplicationResourcesSettings; + } + + /** + * Returns the builder for the settings used for calls to registerAppHubApplicationResources. + */ + public OperationCallSettings.Builder< + RegisterAppHubApplicationResourcesRequest, + RegisterAppHubApplicationResourcesResponse, + OperationMetadata> + registerAppHubApplicationResourcesOperationSettings() { + return registerAppHubApplicationResourcesOperationSettings; + } + + /** + * Returns the builder for the settings used for calls to + * listApplicationTemplateSystemRevisions. + */ + public PagedCallSettings.Builder< + ListApplicationTemplateSystemRevisionsRequest, + ListApplicationTemplateSystemRevisionsResponse, + ListApplicationTemplateSystemRevisionsPagedResponse> + listApplicationTemplateSystemRevisionsSettings() { + return listApplicationTemplateSystemRevisionsSettings; + } + + /** + * Returns the builder for the settings used for calls to getApplicationTemplateSystemRevision. + */ + public UnaryCallSettings.Builder< + GetApplicationTemplateSystemRevisionRequest, ApplicationTemplateSystemRevision> + getApplicationTemplateSystemRevisionSettings() { + return getApplicationTemplateSystemRevisionSettings; + } + + /** Returns the builder for the settings used for calls to recommendIAMRoles. */ + public UnaryCallSettings.Builder + recommendIAMRolesSettings() { + return recommendIAMRolesSettings; + } + + /** Returns the builder for the settings used for calls to recommendIAMRoles. */ + public OperationCallSettings.Builder< + RecommendIAMRolesRequest, RecommendIAMRolesResponse, OperationMetadata> + recommendIAMRolesOperationSettings() { + return recommendIAMRolesOperationSettings; + } + + /** 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; + } + + /** Returns the builder for the settings used for calls to setIamPolicy. */ + public UnaryCallSettings.Builder + setIamPolicySettings() { + return setIamPolicySettings; + } + + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder + getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the builder for the settings used for calls to testIamPermissions. */ + public UnaryCallSettings.Builder + testIamPermissionsSettings() { + return testIamPermissionsSettings; + } + + @Override + public DesignCenterStubSettings build() throws IOException { + return new DesignCenterStubSettings(this); + } + } +} diff --git a/java-designcenter/google-cloud-designcenter/src/main/java/com/google/cloud/designcenter/v1/stub/GrpcDesignCenterCallableFactory.java b/java-designcenter/google-cloud-designcenter/src/main/java/com/google/cloud/designcenter/v1/stub/GrpcDesignCenterCallableFactory.java new file mode 100644 index 000000000000..ca65accf15a5 --- /dev/null +++ b/java-designcenter/google-cloud-designcenter/src/main/java/com/google/cloud/designcenter/v1/stub/GrpcDesignCenterCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.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; +import org.jspecify.annotations.NullMarked; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the DesignCenter service API. + * + *

This class is for advanced usage. + */ +@NullMarked +@Generated("by gapic-generator-java") +public class GrpcDesignCenterCallableFactory 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-designcenter/google-cloud-designcenter/src/main/java/com/google/cloud/designcenter/v1/stub/GrpcDesignCenterStub.java b/java-designcenter/google-cloud-designcenter/src/main/java/com/google/cloud/designcenter/v1/stub/GrpcDesignCenterStub.java new file mode 100644 index 000000000000..ed4ac64104a7 --- /dev/null +++ b/java-designcenter/google-cloud-designcenter/src/main/java/com/google/cloud/designcenter/v1/stub/GrpcDesignCenterStub.java @@ -0,0 +1,3818 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.stub; + +import static com.google.cloud.designcenter.v1.DesignCenterClient.FetchFrameworksPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListApplicationTemplateRevisionsPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListApplicationTemplateSystemRevisionsPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListApplicationTemplatesPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListApplicationsPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListCatalogTemplateRevisionsPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListCatalogTemplatesPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListCatalogsPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListComponentsPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListConnectionsPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListLocationsPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListPoliciesPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListSharedTemplateRevisionsPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListSharedTemplatesPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListSharesPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListSpacesPagedResponse; + +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.designcenter.v1.Application; +import com.google.cloud.designcenter.v1.ApplicationTemplate; +import com.google.cloud.designcenter.v1.ApplicationTemplateRevision; +import com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision; +import com.google.cloud.designcenter.v1.Catalog; +import com.google.cloud.designcenter.v1.CatalogTemplate; +import com.google.cloud.designcenter.v1.CatalogTemplateRevision; +import com.google.cloud.designcenter.v1.CommitApplicationTemplateRequest; +import com.google.cloud.designcenter.v1.Component; +import com.google.cloud.designcenter.v1.Connection; +import com.google.cloud.designcenter.v1.CreateApplicationRequest; +import com.google.cloud.designcenter.v1.CreateApplicationTemplateRequest; +import com.google.cloud.designcenter.v1.CreateCatalogRequest; +import com.google.cloud.designcenter.v1.CreateCatalogTemplateRequest; +import com.google.cloud.designcenter.v1.CreateCatalogTemplateRevisionRequest; +import com.google.cloud.designcenter.v1.CreateComponentRequest; +import com.google.cloud.designcenter.v1.CreateConnectionRequest; +import com.google.cloud.designcenter.v1.CreatePolicyRequest; +import com.google.cloud.designcenter.v1.CreateShareRequest; +import com.google.cloud.designcenter.v1.CreateSpaceRequest; +import com.google.cloud.designcenter.v1.DeleteApplicationRequest; +import com.google.cloud.designcenter.v1.DeleteApplicationTemplateRequest; +import com.google.cloud.designcenter.v1.DeleteApplicationTemplateRevisionRequest; +import com.google.cloud.designcenter.v1.DeleteCatalogRequest; +import com.google.cloud.designcenter.v1.DeleteCatalogTemplateRequest; +import com.google.cloud.designcenter.v1.DeleteCatalogTemplateRevisionRequest; +import com.google.cloud.designcenter.v1.DeleteComponentRequest; +import com.google.cloud.designcenter.v1.DeleteConnectionRequest; +import com.google.cloud.designcenter.v1.DeletePolicyRequest; +import com.google.cloud.designcenter.v1.DeleteShareRequest; +import com.google.cloud.designcenter.v1.DeleteSpaceRequest; +import com.google.cloud.designcenter.v1.DeployApplicationRequest; +import com.google.cloud.designcenter.v1.DeployApplicationResponse; +import com.google.cloud.designcenter.v1.ExportApplicationIaCRequest; +import com.google.cloud.designcenter.v1.ExportApplicationIaCResponse; +import com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCRequest; +import com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCResponse; +import com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCRequest; +import com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCResponse; +import com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportRequest; +import com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportResponse; +import com.google.cloud.designcenter.v1.FetchFrameworksRequest; +import com.google.cloud.designcenter.v1.FetchFrameworksResponse; +import com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportRequest; +import com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportResponse; +import com.google.cloud.designcenter.v1.GenerateApplicationIaCRequest; +import com.google.cloud.designcenter.v1.GenerateApplicationIaCResponse; +import com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportRequest; +import com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportResponse; +import com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest; +import com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCResponse; +import com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest; +import com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCResponse; +import com.google.cloud.designcenter.v1.GenerateAssessmentReportRequest; +import com.google.cloud.designcenter.v1.GenerateAssessmentReportResponse; +import com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportRequest; +import com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportResponse; +import com.google.cloud.designcenter.v1.GetApplicationRequest; +import com.google.cloud.designcenter.v1.GetApplicationTemplateRequest; +import com.google.cloud.designcenter.v1.GetApplicationTemplateRevisionRequest; +import com.google.cloud.designcenter.v1.GetApplicationTemplateSystemRevisionRequest; +import com.google.cloud.designcenter.v1.GetCatalogRequest; +import com.google.cloud.designcenter.v1.GetCatalogTemplateRequest; +import com.google.cloud.designcenter.v1.GetCatalogTemplateRevisionRequest; +import com.google.cloud.designcenter.v1.GetComponentRequest; +import com.google.cloud.designcenter.v1.GetConnectionRequest; +import com.google.cloud.designcenter.v1.GetPolicyRequest; +import com.google.cloud.designcenter.v1.GetShareRequest; +import com.google.cloud.designcenter.v1.GetSharedTemplateRequest; +import com.google.cloud.designcenter.v1.GetSharedTemplateRevisionRequest; +import com.google.cloud.designcenter.v1.GetSpaceRequest; +import com.google.cloud.designcenter.v1.ImportApplicationIaCRequest; +import com.google.cloud.designcenter.v1.ImportApplicationIaCResponse; +import com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCRequest; +import com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse; +import com.google.cloud.designcenter.v1.ImportApplicationTemplateRequest; +import com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCRequest; +import com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCResponse; +import com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsRequest; +import com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsResponse; +import com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsRequest; +import com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsResponse; +import com.google.cloud.designcenter.v1.ListApplicationTemplatesRequest; +import com.google.cloud.designcenter.v1.ListApplicationTemplatesResponse; +import com.google.cloud.designcenter.v1.ListApplicationsRequest; +import com.google.cloud.designcenter.v1.ListApplicationsResponse; +import com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsRequest; +import com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsResponse; +import com.google.cloud.designcenter.v1.ListCatalogTemplatesRequest; +import com.google.cloud.designcenter.v1.ListCatalogTemplatesResponse; +import com.google.cloud.designcenter.v1.ListCatalogsRequest; +import com.google.cloud.designcenter.v1.ListCatalogsResponse; +import com.google.cloud.designcenter.v1.ListComponentsRequest; +import com.google.cloud.designcenter.v1.ListComponentsResponse; +import com.google.cloud.designcenter.v1.ListConnectionsRequest; +import com.google.cloud.designcenter.v1.ListConnectionsResponse; +import com.google.cloud.designcenter.v1.ListPoliciesRequest; +import com.google.cloud.designcenter.v1.ListPoliciesResponse; +import com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsRequest; +import com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsResponse; +import com.google.cloud.designcenter.v1.ListSharedTemplatesRequest; +import com.google.cloud.designcenter.v1.ListSharedTemplatesResponse; +import com.google.cloud.designcenter.v1.ListSharesRequest; +import com.google.cloud.designcenter.v1.ListSharesResponse; +import com.google.cloud.designcenter.v1.ListSpacesRequest; +import com.google.cloud.designcenter.v1.ListSpacesResponse; +import com.google.cloud.designcenter.v1.OperationMetadata; +import com.google.cloud.designcenter.v1.Policy; +import com.google.cloud.designcenter.v1.PreviewApplicationRequest; +import com.google.cloud.designcenter.v1.PreviewApplicationResponse; +import com.google.cloud.designcenter.v1.RecommendIAMRolesRequest; +import com.google.cloud.designcenter.v1.RecommendIAMRolesResponse; +import com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesRequest; +import com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesResponse; +import com.google.cloud.designcenter.v1.Share; +import com.google.cloud.designcenter.v1.SharedTemplate; +import com.google.cloud.designcenter.v1.SharedTemplateRevision; +import com.google.cloud.designcenter.v1.SnapshotApplicationTemplateRequest; +import com.google.cloud.designcenter.v1.SnapshotApplicationTemplateResponse; +import com.google.cloud.designcenter.v1.Space; +import com.google.cloud.designcenter.v1.SyncShareRequest; +import com.google.cloud.designcenter.v1.UpdateApplicationRequest; +import com.google.cloud.designcenter.v1.UpdateApplicationTemplateRequest; +import com.google.cloud.designcenter.v1.UpdateCatalogRequest; +import com.google.cloud.designcenter.v1.UpdateCatalogTemplateRequest; +import com.google.cloud.designcenter.v1.UpdateComponentRequest; +import com.google.cloud.designcenter.v1.UpdateConnectionRequest; +import com.google.cloud.designcenter.v1.UpdatePolicyRequest; +import com.google.cloud.designcenter.v1.UpdateSpaceRequest; +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.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +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; +import org.jspecify.annotations.NullMarked; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the DesignCenter service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@NullMarked +@Generated("by gapic-generator-java") +public class GrpcDesignCenterStub extends DesignCenterStub { + private static final MethodDescriptor getSpaceMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/GetSpace") + .setRequestMarshaller(ProtoUtils.marshaller(GetSpaceRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Space.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listSpacesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/ListSpaces") + .setRequestMarshaller(ProtoUtils.marshaller(ListSpacesRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ListSpacesResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor createSpaceMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/CreateSpace") + .setRequestMarshaller(ProtoUtils.marshaller(CreateSpaceRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Space.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor updateSpaceMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/UpdateSpace") + .setRequestMarshaller(ProtoUtils.marshaller(UpdateSpaceRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Space.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor deleteSpaceMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/DeleteSpace") + .setRequestMarshaller(ProtoUtils.marshaller(DeleteSpaceRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getApplicationTemplateMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/GetApplicationTemplate") + .setRequestMarshaller( + ProtoUtils.marshaller(GetApplicationTemplateRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ApplicationTemplate.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + ListApplicationTemplatesRequest, ListApplicationTemplatesResponse> + listApplicationTemplatesMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.designcenter.v1.DesignCenter/ListApplicationTemplates") + .setRequestMarshaller( + ProtoUtils.marshaller(ListApplicationTemplatesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListApplicationTemplatesResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + createApplicationTemplateMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.designcenter.v1.DesignCenter/CreateApplicationTemplate") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateApplicationTemplateRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ApplicationTemplate.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateApplicationTemplateMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.designcenter.v1.DesignCenter/UpdateApplicationTemplate") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateApplicationTemplateRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ApplicationTemplate.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + importApplicationTemplateMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.designcenter.v1.DesignCenter/ImportApplicationTemplate") + .setRequestMarshaller( + ProtoUtils.marshaller(ImportApplicationTemplateRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ApplicationTemplate.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteApplicationTemplateMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.designcenter.v1.DesignCenter/DeleteApplicationTemplate") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteApplicationTemplateRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + CommitApplicationTemplateRequest, ApplicationTemplateRevision> + commitApplicationTemplateMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.designcenter.v1.DesignCenter/CommitApplicationTemplate") + .setRequestMarshaller( + ProtoUtils.marshaller(CommitApplicationTemplateRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ApplicationTemplateRevision.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + snapshotApplicationTemplateMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.designcenter.v1.DesignCenter/SnapshotApplicationTemplate") + .setRequestMarshaller( + ProtoUtils.marshaller(SnapshotApplicationTemplateRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + GenerateApplicationTemplateIaCRequest, GenerateApplicationTemplateIaCResponse> + generateApplicationTemplateIaCMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.designcenter.v1.DesignCenter/GenerateApplicationTemplateIaC") + .setRequestMarshaller( + ProtoUtils.marshaller(GenerateApplicationTemplateIaCRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller( + GenerateApplicationTemplateIaCResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + exportApplicationTemplateIaCMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.designcenter.v1.DesignCenter/ExportApplicationTemplateIaC") + .setRequestMarshaller( + ProtoUtils.marshaller(ExportApplicationTemplateIaCRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + GenerateApplicationTemplateRevisionIaCRequest, + GenerateApplicationTemplateRevisionIaCResponse> + generateApplicationTemplateRevisionIaCMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.designcenter.v1.DesignCenter/GenerateApplicationTemplateRevisionIaC") + .setRequestMarshaller( + ProtoUtils.marshaller( + GenerateApplicationTemplateRevisionIaCRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller( + GenerateApplicationTemplateRevisionIaCResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + exportApplicationTemplateRevisionIaCMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.designcenter.v1.DesignCenter/ExportApplicationTemplateRevisionIaC") + .setRequestMarshaller( + ProtoUtils.marshaller( + ExportApplicationTemplateRevisionIaCRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getComponentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/GetComponent") + .setRequestMarshaller(ProtoUtils.marshaller(GetComponentRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Component.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listComponentsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/ListComponents") + .setRequestMarshaller( + ProtoUtils.marshaller(ListComponentsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListComponentsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + createComponentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/CreateComponent") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateComponentRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Component.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateComponentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/UpdateComponent") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateComponentRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Component.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteComponentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/DeleteComponent") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteComponentRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getConnectionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/GetConnection") + .setRequestMarshaller( + ProtoUtils.marshaller(GetConnectionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Connection.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listConnectionsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/ListConnections") + .setRequestMarshaller( + ProtoUtils.marshaller(ListConnectionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListConnectionsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + createConnectionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/CreateConnection") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateConnectionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Connection.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateConnectionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/UpdateConnection") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateConnectionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Connection.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteConnectionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/DeleteConnection") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteConnectionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + GetApplicationTemplateRevisionRequest, ApplicationTemplateRevision> + getApplicationTemplateRevisionMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.designcenter.v1.DesignCenter/GetApplicationTemplateRevision") + .setRequestMarshaller( + ProtoUtils.marshaller(GetApplicationTemplateRevisionRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ApplicationTemplateRevision.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + ListApplicationTemplateRevisionsRequest, ListApplicationTemplateRevisionsResponse> + listApplicationTemplateRevisionsMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.designcenter.v1.DesignCenter/ListApplicationTemplateRevisions") + .setRequestMarshaller( + ProtoUtils.marshaller( + ListApplicationTemplateRevisionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller( + ListApplicationTemplateRevisionsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteApplicationTemplateRevisionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.designcenter.v1.DesignCenter/DeleteApplicationTemplateRevision") + .setRequestMarshaller( + ProtoUtils.marshaller( + DeleteApplicationTemplateRevisionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor getCatalogMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/GetCatalog") + .setRequestMarshaller(ProtoUtils.marshaller(GetCatalogRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Catalog.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listCatalogsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/ListCatalogs") + .setRequestMarshaller(ProtoUtils.marshaller(ListCatalogsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListCatalogsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + createCatalogMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/CreateCatalog") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateCatalogRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Catalog.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateCatalogMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/UpdateCatalog") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateCatalogRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Catalog.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteCatalogMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/DeleteCatalog") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteCatalogRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + createCatalogTemplateMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/CreateCatalogTemplate") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateCatalogTemplateRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(CatalogTemplate.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getCatalogTemplateMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/GetCatalogTemplate") + .setRequestMarshaller( + ProtoUtils.marshaller(GetCatalogTemplateRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(CatalogTemplate.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listCatalogTemplatesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/ListCatalogTemplates") + .setRequestMarshaller( + ProtoUtils.marshaller(ListCatalogTemplatesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListCatalogTemplatesResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateCatalogTemplateMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/UpdateCatalogTemplate") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateCatalogTemplateRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(CatalogTemplate.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteCatalogTemplateMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/DeleteCatalogTemplate") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteCatalogTemplateRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor createShareMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/CreateShare") + .setRequestMarshaller(ProtoUtils.marshaller(CreateShareRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listSharesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/ListShares") + .setRequestMarshaller(ProtoUtils.marshaller(ListSharesRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ListSharesResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor getShareMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/GetShare") + .setRequestMarshaller(ProtoUtils.marshaller(GetShareRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Share.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor deleteShareMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/DeleteShare") + .setRequestMarshaller(ProtoUtils.marshaller(DeleteShareRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor syncShareMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/SyncShare") + .setRequestMarshaller(ProtoUtils.marshaller(SyncShareRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getSharedTemplateMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/GetSharedTemplate") + .setRequestMarshaller( + ProtoUtils.marshaller(GetSharedTemplateRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(SharedTemplate.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listSharedTemplatesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/ListSharedTemplates") + .setRequestMarshaller( + ProtoUtils.marshaller(ListSharedTemplatesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListSharedTemplatesResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getSharedTemplateRevisionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.designcenter.v1.DesignCenter/GetSharedTemplateRevision") + .setRequestMarshaller( + ProtoUtils.marshaller(GetSharedTemplateRevisionRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(SharedTemplateRevision.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + ListSharedTemplateRevisionsRequest, ListSharedTemplateRevisionsResponse> + listSharedTemplateRevisionsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.designcenter.v1.DesignCenter/ListSharedTemplateRevisions") + .setRequestMarshaller( + ProtoUtils.marshaller(ListSharedTemplateRevisionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListSharedTemplateRevisionsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + createCatalogTemplateRevisionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.designcenter.v1.DesignCenter/CreateCatalogTemplateRevision") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateCatalogTemplateRevisionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getCatalogTemplateRevisionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.designcenter.v1.DesignCenter/GetCatalogTemplateRevision") + .setRequestMarshaller( + ProtoUtils.marshaller(GetCatalogTemplateRevisionRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(CatalogTemplateRevision.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + ListCatalogTemplateRevisionsRequest, ListCatalogTemplateRevisionsResponse> + listCatalogTemplateRevisionsMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.designcenter.v1.DesignCenter/ListCatalogTemplateRevisions") + .setRequestMarshaller( + ProtoUtils.marshaller(ListCatalogTemplateRevisionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListCatalogTemplateRevisionsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteCatalogTemplateRevisionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.designcenter.v1.DesignCenter/DeleteCatalogTemplateRevision") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteCatalogTemplateRevisionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + createApplicationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/CreateApplication") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateApplicationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Application.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getApplicationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/GetApplication") + .setRequestMarshaller( + ProtoUtils.marshaller(GetApplicationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Application.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listApplicationsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/ListApplications") + .setRequestMarshaller( + ProtoUtils.marshaller(ListApplicationsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListApplicationsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateApplicationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/UpdateApplication") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateApplicationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Application.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteApplicationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/DeleteApplication") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteApplicationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deployApplicationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/DeployApplication") + .setRequestMarshaller( + ProtoUtils.marshaller(DeployApplicationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + previewApplicationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/PreviewApplication") + .setRequestMarshaller( + ProtoUtils.marshaller(PreviewApplicationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + FetchApplicationAssessmentReportRequest, FetchApplicationAssessmentReportResponse> + fetchApplicationAssessmentReportMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.designcenter.v1.DesignCenter/FetchApplicationAssessmentReport") + .setRequestMarshaller( + ProtoUtils.marshaller( + FetchApplicationAssessmentReportRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller( + FetchApplicationAssessmentReportResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + generateApplicationAssessmentReportMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.designcenter.v1.DesignCenter/GenerateApplicationAssessmentReport") + .setRequestMarshaller( + ProtoUtils.marshaller( + GenerateApplicationAssessmentReportRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + GenerateApplicationTemplateAssessmentReportRequest, Operation> + generateApplicationTemplateAssessmentReportMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.designcenter.v1.DesignCenter/GenerateApplicationTemplateAssessmentReport") + .setRequestMarshaller( + ProtoUtils.marshaller( + GenerateApplicationTemplateAssessmentReportRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + generateAssessmentReportMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.designcenter.v1.DesignCenter/GenerateAssessmentReport") + .setRequestMarshaller( + ProtoUtils.marshaller(GenerateAssessmentReportRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + generateTerraformPlanAssessmentReportMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.designcenter.v1.DesignCenter/GenerateTerraformPlanAssessmentReport") + .setRequestMarshaller( + ProtoUtils.marshaller( + GenerateTerraformPlanAssessmentReportRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor getPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/GetPolicy") + .setRequestMarshaller(ProtoUtils.marshaller(GetPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listPoliciesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/ListPolicies") + .setRequestMarshaller(ProtoUtils.marshaller(ListPoliciesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListPoliciesResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor createPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/CreatePolicy") + .setRequestMarshaller(ProtoUtils.marshaller(CreatePolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor updatePolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/UpdatePolicy") + .setRequestMarshaller(ProtoUtils.marshaller(UpdatePolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor deletePolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/DeletePolicy") + .setRequestMarshaller(ProtoUtils.marshaller(DeletePolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + fetchFrameworksMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/FetchFrameworks") + .setRequestMarshaller( + ProtoUtils.marshaller(FetchFrameworksRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(FetchFrameworksResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + GenerateApplicationIaCRequest, GenerateApplicationIaCResponse> + generateApplicationIaCMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/GenerateApplicationIaC") + .setRequestMarshaller( + ProtoUtils.marshaller(GenerateApplicationIaCRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(GenerateApplicationIaCResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + exportApplicationIaCMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/ExportApplicationIaC") + .setRequestMarshaller( + ProtoUtils.marshaller(ExportApplicationIaCRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + ImportApplicationTemplateIaCRequest, ImportApplicationTemplateIaCResponse> + importApplicationTemplateIaCMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.designcenter.v1.DesignCenter/ImportApplicationTemplateIaC") + .setRequestMarshaller( + ProtoUtils.marshaller(ImportApplicationTemplateIaCRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ImportApplicationTemplateIaCResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + ingestApplicationTemplateIaCMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.designcenter.v1.DesignCenter/IngestApplicationTemplateIaC") + .setRequestMarshaller( + ProtoUtils.marshaller(IngestApplicationTemplateIaCRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + importApplicationIaCMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/ImportApplicationIaC") + .setRequestMarshaller( + ProtoUtils.marshaller(ImportApplicationIaCRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ImportApplicationIaCResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + registerAppHubApplicationResourcesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.designcenter.v1.DesignCenter/RegisterAppHubApplicationResources") + .setRequestMarshaller( + ProtoUtils.marshaller( + RegisterAppHubApplicationResourcesRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + ListApplicationTemplateSystemRevisionsRequest, + ListApplicationTemplateSystemRevisionsResponse> + listApplicationTemplateSystemRevisionsMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.designcenter.v1.DesignCenter/ListApplicationTemplateSystemRevisions") + .setRequestMarshaller( + ProtoUtils.marshaller( + ListApplicationTemplateSystemRevisionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller( + ListApplicationTemplateSystemRevisionsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + GetApplicationTemplateSystemRevisionRequest, ApplicationTemplateSystemRevision> + getApplicationTemplateSystemRevisionMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.designcenter.v1.DesignCenter/GetApplicationTemplateSystemRevision") + .setRequestMarshaller( + ProtoUtils.marshaller( + GetApplicationTemplateSystemRevisionRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ApplicationTemplateSystemRevision.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + recommendIAMRolesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/RecommendIAMRoles") + .setRequestMarshaller( + ProtoUtils.marshaller(RecommendIAMRolesRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .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())) + .setSampledToLocalTracing(true) + .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())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + setIamPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy") + .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(com.google.iam.v1.Policy.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getIamPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy") + .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(com.google.iam.v1.Policy.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + testIamPermissionsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions") + .setRequestMarshaller( + ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private final UnaryCallable getSpaceCallable; + private final UnaryCallable listSpacesCallable; + private final UnaryCallable listSpacesPagedCallable; + private final UnaryCallable createSpaceCallable; + private final UnaryCallable updateSpaceCallable; + private final UnaryCallable deleteSpaceCallable; + private final UnaryCallable + getApplicationTemplateCallable; + private final UnaryCallable + listApplicationTemplatesCallable; + private final UnaryCallable< + ListApplicationTemplatesRequest, ListApplicationTemplatesPagedResponse> + listApplicationTemplatesPagedCallable; + private final UnaryCallable + createApplicationTemplateCallable; + private final UnaryCallable + updateApplicationTemplateCallable; + private final UnaryCallable + importApplicationTemplateCallable; + private final UnaryCallable + deleteApplicationTemplateCallable; + private final UnaryCallable + commitApplicationTemplateCallable; + private final UnaryCallable + snapshotApplicationTemplateCallable; + private final OperationCallable< + SnapshotApplicationTemplateRequest, + SnapshotApplicationTemplateResponse, + OperationMetadata> + snapshotApplicationTemplateOperationCallable; + private final UnaryCallable< + GenerateApplicationTemplateIaCRequest, GenerateApplicationTemplateIaCResponse> + generateApplicationTemplateIaCCallable; + private final UnaryCallable + exportApplicationTemplateIaCCallable; + private final OperationCallable< + ExportApplicationTemplateIaCRequest, + ExportApplicationTemplateIaCResponse, + OperationMetadata> + exportApplicationTemplateIaCOperationCallable; + private final UnaryCallable< + GenerateApplicationTemplateRevisionIaCRequest, + GenerateApplicationTemplateRevisionIaCResponse> + generateApplicationTemplateRevisionIaCCallable; + private final UnaryCallable + exportApplicationTemplateRevisionIaCCallable; + private final OperationCallable< + ExportApplicationTemplateRevisionIaCRequest, + ExportApplicationTemplateRevisionIaCResponse, + OperationMetadata> + exportApplicationTemplateRevisionIaCOperationCallable; + private final UnaryCallable getComponentCallable; + private final UnaryCallable listComponentsCallable; + private final UnaryCallable + listComponentsPagedCallable; + private final UnaryCallable createComponentCallable; + private final UnaryCallable updateComponentCallable; + private final UnaryCallable deleteComponentCallable; + private final UnaryCallable getConnectionCallable; + private final UnaryCallable + listConnectionsCallable; + private final UnaryCallable + listConnectionsPagedCallable; + private final UnaryCallable createConnectionCallable; + private final UnaryCallable updateConnectionCallable; + private final UnaryCallable deleteConnectionCallable; + private final UnaryCallable + getApplicationTemplateRevisionCallable; + private final UnaryCallable< + ListApplicationTemplateRevisionsRequest, ListApplicationTemplateRevisionsResponse> + listApplicationTemplateRevisionsCallable; + private final UnaryCallable< + ListApplicationTemplateRevisionsRequest, ListApplicationTemplateRevisionsPagedResponse> + listApplicationTemplateRevisionsPagedCallable; + private final UnaryCallable + deleteApplicationTemplateRevisionCallable; + private final UnaryCallable getCatalogCallable; + private final UnaryCallable listCatalogsCallable; + private final UnaryCallable + listCatalogsPagedCallable; + private final UnaryCallable createCatalogCallable; + private final UnaryCallable updateCatalogCallable; + private final UnaryCallable deleteCatalogCallable; + private final OperationCallable + deleteCatalogOperationCallable; + private final UnaryCallable + createCatalogTemplateCallable; + private final UnaryCallable + getCatalogTemplateCallable; + private final UnaryCallable + listCatalogTemplatesCallable; + private final UnaryCallable + listCatalogTemplatesPagedCallable; + private final UnaryCallable + updateCatalogTemplateCallable; + private final UnaryCallable + deleteCatalogTemplateCallable; + private final OperationCallable + deleteCatalogTemplateOperationCallable; + private final UnaryCallable createShareCallable; + private final OperationCallable + createShareOperationCallable; + private final UnaryCallable listSharesCallable; + private final UnaryCallable listSharesPagedCallable; + private final UnaryCallable getShareCallable; + private final UnaryCallable deleteShareCallable; + private final OperationCallable + deleteShareOperationCallable; + private final UnaryCallable syncShareCallable; + private final OperationCallable + syncShareOperationCallable; + private final UnaryCallable getSharedTemplateCallable; + private final UnaryCallable + listSharedTemplatesCallable; + private final UnaryCallable + listSharedTemplatesPagedCallable; + private final UnaryCallable + getSharedTemplateRevisionCallable; + private final UnaryCallable< + ListSharedTemplateRevisionsRequest, ListSharedTemplateRevisionsResponse> + listSharedTemplateRevisionsCallable; + private final UnaryCallable< + ListSharedTemplateRevisionsRequest, ListSharedTemplateRevisionsPagedResponse> + listSharedTemplateRevisionsPagedCallable; + private final UnaryCallable + createCatalogTemplateRevisionCallable; + private final OperationCallable< + CreateCatalogTemplateRevisionRequest, CatalogTemplateRevision, OperationMetadata> + createCatalogTemplateRevisionOperationCallable; + private final UnaryCallable + getCatalogTemplateRevisionCallable; + private final UnaryCallable< + ListCatalogTemplateRevisionsRequest, ListCatalogTemplateRevisionsResponse> + listCatalogTemplateRevisionsCallable; + private final UnaryCallable< + ListCatalogTemplateRevisionsRequest, ListCatalogTemplateRevisionsPagedResponse> + listCatalogTemplateRevisionsPagedCallable; + private final UnaryCallable + deleteCatalogTemplateRevisionCallable; + private final OperationCallable + deleteCatalogTemplateRevisionOperationCallable; + private final UnaryCallable createApplicationCallable; + private final UnaryCallable getApplicationCallable; + private final UnaryCallable + listApplicationsCallable; + private final UnaryCallable + listApplicationsPagedCallable; + private final UnaryCallable updateApplicationCallable; + private final UnaryCallable deleteApplicationCallable; + private final OperationCallable + deleteApplicationOperationCallable; + private final UnaryCallable deployApplicationCallable; + private final OperationCallable< + DeployApplicationRequest, DeployApplicationResponse, OperationMetadata> + deployApplicationOperationCallable; + private final UnaryCallable previewApplicationCallable; + private final OperationCallable< + PreviewApplicationRequest, PreviewApplicationResponse, OperationMetadata> + previewApplicationOperationCallable; + private final UnaryCallable< + FetchApplicationAssessmentReportRequest, FetchApplicationAssessmentReportResponse> + fetchApplicationAssessmentReportCallable; + private final UnaryCallable + generateApplicationAssessmentReportCallable; + private final OperationCallable< + GenerateApplicationAssessmentReportRequest, + GenerateApplicationAssessmentReportResponse, + OperationMetadata> + generateApplicationAssessmentReportOperationCallable; + private final UnaryCallable + generateApplicationTemplateAssessmentReportCallable; + private final OperationCallable< + GenerateApplicationTemplateAssessmentReportRequest, + GenerateApplicationTemplateAssessmentReportResponse, + OperationMetadata> + generateApplicationTemplateAssessmentReportOperationCallable; + private final UnaryCallable + generateAssessmentReportCallable; + private final OperationCallable< + GenerateAssessmentReportRequest, GenerateAssessmentReportResponse, OperationMetadata> + generateAssessmentReportOperationCallable; + private final UnaryCallable + generateTerraformPlanAssessmentReportCallable; + private final OperationCallable< + GenerateTerraformPlanAssessmentReportRequest, + GenerateTerraformPlanAssessmentReportResponse, + OperationMetadata> + generateTerraformPlanAssessmentReportOperationCallable; + private final UnaryCallable getPolicyCallable; + private final UnaryCallable listPoliciesCallable; + private final UnaryCallable + listPoliciesPagedCallable; + private final UnaryCallable createPolicyCallable; + private final UnaryCallable updatePolicyCallable; + private final UnaryCallable deletePolicyCallable; + private final UnaryCallable + fetchFrameworksCallable; + private final UnaryCallable + fetchFrameworksPagedCallable; + private final UnaryCallable + generateApplicationIaCCallable; + private final UnaryCallable exportApplicationIaCCallable; + private final OperationCallable< + ExportApplicationIaCRequest, ExportApplicationIaCResponse, OperationMetadata> + exportApplicationIaCOperationCallable; + private final UnaryCallable< + ImportApplicationTemplateIaCRequest, ImportApplicationTemplateIaCResponse> + importApplicationTemplateIaCCallable; + private final UnaryCallable + ingestApplicationTemplateIaCCallable; + private final OperationCallable< + IngestApplicationTemplateIaCRequest, + IngestApplicationTemplateIaCResponse, + OperationMetadata> + ingestApplicationTemplateIaCOperationCallable; + private final UnaryCallable + importApplicationIaCCallable; + private final UnaryCallable + registerAppHubApplicationResourcesCallable; + private final OperationCallable< + RegisterAppHubApplicationResourcesRequest, + RegisterAppHubApplicationResourcesResponse, + OperationMetadata> + registerAppHubApplicationResourcesOperationCallable; + private final UnaryCallable< + ListApplicationTemplateSystemRevisionsRequest, + ListApplicationTemplateSystemRevisionsResponse> + listApplicationTemplateSystemRevisionsCallable; + private final UnaryCallable< + ListApplicationTemplateSystemRevisionsRequest, + ListApplicationTemplateSystemRevisionsPagedResponse> + listApplicationTemplateSystemRevisionsPagedCallable; + private final UnaryCallable< + GetApplicationTemplateSystemRevisionRequest, ApplicationTemplateSystemRevision> + getApplicationTemplateSystemRevisionCallable; + private final UnaryCallable recommendIAMRolesCallable; + private final OperationCallable< + RecommendIAMRolesRequest, RecommendIAMRolesResponse, OperationMetadata> + recommendIAMRolesOperationCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + private final UnaryCallable setIamPolicyCallable; + private final UnaryCallable getIamPolicyCallable; + private final UnaryCallable + testIamPermissionsCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcDesignCenterStub create(DesignCenterStubSettings settings) + throws IOException { + return new GrpcDesignCenterStub(settings, ClientContext.create(settings)); + } + + public static final GrpcDesignCenterStub create(ClientContext clientContext) throws IOException { + return new GrpcDesignCenterStub(DesignCenterStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcDesignCenterStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcDesignCenterStub( + DesignCenterStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcDesignCenterStub, 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 GrpcDesignCenterStub(DesignCenterStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcDesignCenterCallableFactory()); + } + + /** + * Constructs an instance of GrpcDesignCenterStub, 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 GrpcDesignCenterStub( + DesignCenterStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings getSpaceTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getSpaceMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings listSpacesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listSpacesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings createSpaceTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createSpaceMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings updateSpaceTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateSpaceMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("space.name", String.valueOf(request.getSpace().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteSpaceTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteSpaceMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + getApplicationTemplateTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getApplicationTemplateMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + listApplicationTemplatesTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listApplicationTemplatesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + createApplicationTemplateTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createApplicationTemplateMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + updateApplicationTemplateTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateApplicationTemplateMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "application_template.name", + String.valueOf(request.getApplicationTemplate().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + importApplicationTemplateTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(importApplicationTemplateMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getApplicationTemplateRevisionUri()) + .build(); + GrpcCallSettings + deleteApplicationTemplateTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteApplicationTemplateMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + commitApplicationTemplateTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(commitApplicationTemplateMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + snapshotApplicationTemplateTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(snapshotApplicationTemplateMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + generateApplicationTemplateIaCTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(generateApplicationTemplateIaCMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + exportApplicationTemplateIaCTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(exportApplicationTemplateIaCMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings< + GenerateApplicationTemplateRevisionIaCRequest, + GenerateApplicationTemplateRevisionIaCResponse> + generateApplicationTemplateRevisionIaCTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(generateApplicationTemplateRevisionIaCMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + exportApplicationTemplateRevisionIaCTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(exportApplicationTemplateRevisionIaCMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings getComponentTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getComponentMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + listComponentsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listComponentsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings createComponentTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createComponentMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings updateComponentTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateComponentMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("component.name", String.valueOf(request.getComponent().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteComponentTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteComponentMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings getConnectionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getConnectionMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + listConnectionsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listConnectionsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings createConnectionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createConnectionMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings updateConnectionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateConnectionMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("connection.name", String.valueOf(request.getConnection().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteConnectionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteConnectionMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + getApplicationTemplateRevisionTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(getApplicationTemplateRevisionMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings< + ListApplicationTemplateRevisionsRequest, ListApplicationTemplateRevisionsResponse> + listApplicationTemplateRevisionsTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(listApplicationTemplateRevisionsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + deleteApplicationTemplateRevisionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteApplicationTemplateRevisionMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings getCatalogTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getCatalogMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings listCatalogsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listCatalogsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings createCatalogTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createCatalogMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings updateCatalogTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateCatalogMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("catalog.name", String.valueOf(request.getCatalog().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteCatalogTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteCatalogMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + createCatalogTemplateTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createCatalogTemplateMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + getCatalogTemplateTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getCatalogTemplateMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + listCatalogTemplatesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listCatalogTemplatesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + updateCatalogTemplateTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateCatalogTemplateMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "catalog_template.name", + String.valueOf(request.getCatalogTemplate().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + deleteCatalogTemplateTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteCatalogTemplateMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings createShareTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createShareMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings listSharesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listSharesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings getShareTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getShareMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings deleteShareTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteShareMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings syncShareTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(syncShareMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings getSharedTemplateTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getSharedTemplateMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + listSharedTemplatesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listSharedTemplatesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + getSharedTemplateRevisionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getSharedTemplateRevisionMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + listSharedTemplateRevisionsTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(listSharedTemplateRevisionsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + createCatalogTemplateRevisionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createCatalogTemplateRevisionMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + getCatalogTemplateRevisionTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(getCatalogTemplateRevisionMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + listCatalogTemplateRevisionsTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(listCatalogTemplateRevisionsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + deleteCatalogTemplateRevisionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteCatalogTemplateRevisionMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings createApplicationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createApplicationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings getApplicationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getApplicationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + listApplicationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listApplicationsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings updateApplicationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateApplicationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "application.name", String.valueOf(request.getApplication().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteApplicationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteApplicationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings deployApplicationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deployApplicationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings previewApplicationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(previewApplicationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings< + FetchApplicationAssessmentReportRequest, FetchApplicationAssessmentReportResponse> + fetchApplicationAssessmentReportTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(fetchApplicationAssessmentReportMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + generateApplicationAssessmentReportTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(generateApplicationAssessmentReportMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + generateApplicationTemplateAssessmentReportTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(generateApplicationTemplateAssessmentReportMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + generateAssessmentReportTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(generateAssessmentReportMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("space_name", String.valueOf(request.getSpaceName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getSpaceName()) + .build(); + GrpcCallSettings + generateTerraformPlanAssessmentReportTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(generateTerraformPlanAssessmentReportMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings getPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings listPoliciesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listPoliciesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings createPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings updatePolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updatePolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("policy.name", String.valueOf(request.getPolicy().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deletePolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deletePolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + fetchFrameworksTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(fetchFrameworksMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + generateApplicationIaCTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(generateApplicationIaCMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings exportApplicationIaCTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(exportApplicationIaCMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + importApplicationTemplateIaCTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(importApplicationTemplateIaCMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + ingestApplicationTemplateIaCTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(ingestApplicationTemplateIaCMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + importApplicationIaCTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(importApplicationIaCMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + registerAppHubApplicationResourcesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(registerAppHubApplicationResourcesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings< + ListApplicationTemplateSystemRevisionsRequest, + ListApplicationTemplateSystemRevisionsResponse> + listApplicationTemplateSystemRevisionsTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(listApplicationTemplateSystemRevisionsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + getApplicationTemplateSystemRevisionTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(getApplicationTemplateSystemRevisionMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings recommendIAMRolesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(recommendIAMRolesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .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(); + GrpcCallSettings setIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setIamPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getResource()) + .build(); + GrpcCallSettings getIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getResource()) + .build(); + GrpcCallSettings + testIamPermissionsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(testIamPermissionsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getResource()) + .build(); + + this.getSpaceCallable = + callableFactory.createUnaryCallable( + getSpaceTransportSettings, settings.getSpaceSettings(), clientContext); + this.listSpacesCallable = + callableFactory.createUnaryCallable( + listSpacesTransportSettings, settings.listSpacesSettings(), clientContext); + this.listSpacesPagedCallable = + callableFactory.createPagedCallable( + listSpacesTransportSettings, settings.listSpacesSettings(), clientContext); + this.createSpaceCallable = + callableFactory.createUnaryCallable( + createSpaceTransportSettings, settings.createSpaceSettings(), clientContext); + this.updateSpaceCallable = + callableFactory.createUnaryCallable( + updateSpaceTransportSettings, settings.updateSpaceSettings(), clientContext); + this.deleteSpaceCallable = + callableFactory.createUnaryCallable( + deleteSpaceTransportSettings, settings.deleteSpaceSettings(), clientContext); + this.getApplicationTemplateCallable = + callableFactory.createUnaryCallable( + getApplicationTemplateTransportSettings, + settings.getApplicationTemplateSettings(), + clientContext); + this.listApplicationTemplatesCallable = + callableFactory.createUnaryCallable( + listApplicationTemplatesTransportSettings, + settings.listApplicationTemplatesSettings(), + clientContext); + this.listApplicationTemplatesPagedCallable = + callableFactory.createPagedCallable( + listApplicationTemplatesTransportSettings, + settings.listApplicationTemplatesSettings(), + clientContext); + this.createApplicationTemplateCallable = + callableFactory.createUnaryCallable( + createApplicationTemplateTransportSettings, + settings.createApplicationTemplateSettings(), + clientContext); + this.updateApplicationTemplateCallable = + callableFactory.createUnaryCallable( + updateApplicationTemplateTransportSettings, + settings.updateApplicationTemplateSettings(), + clientContext); + this.importApplicationTemplateCallable = + callableFactory.createUnaryCallable( + importApplicationTemplateTransportSettings, + settings.importApplicationTemplateSettings(), + clientContext); + this.deleteApplicationTemplateCallable = + callableFactory.createUnaryCallable( + deleteApplicationTemplateTransportSettings, + settings.deleteApplicationTemplateSettings(), + clientContext); + this.commitApplicationTemplateCallable = + callableFactory.createUnaryCallable( + commitApplicationTemplateTransportSettings, + settings.commitApplicationTemplateSettings(), + clientContext); + this.snapshotApplicationTemplateCallable = + callableFactory.createUnaryCallable( + snapshotApplicationTemplateTransportSettings, + settings.snapshotApplicationTemplateSettings(), + clientContext); + this.snapshotApplicationTemplateOperationCallable = + callableFactory.createOperationCallable( + snapshotApplicationTemplateTransportSettings, + settings.snapshotApplicationTemplateOperationSettings(), + clientContext, + operationsStub); + this.generateApplicationTemplateIaCCallable = + callableFactory.createUnaryCallable( + generateApplicationTemplateIaCTransportSettings, + settings.generateApplicationTemplateIaCSettings(), + clientContext); + this.exportApplicationTemplateIaCCallable = + callableFactory.createUnaryCallable( + exportApplicationTemplateIaCTransportSettings, + settings.exportApplicationTemplateIaCSettings(), + clientContext); + this.exportApplicationTemplateIaCOperationCallable = + callableFactory.createOperationCallable( + exportApplicationTemplateIaCTransportSettings, + settings.exportApplicationTemplateIaCOperationSettings(), + clientContext, + operationsStub); + this.generateApplicationTemplateRevisionIaCCallable = + callableFactory.createUnaryCallable( + generateApplicationTemplateRevisionIaCTransportSettings, + settings.generateApplicationTemplateRevisionIaCSettings(), + clientContext); + this.exportApplicationTemplateRevisionIaCCallable = + callableFactory.createUnaryCallable( + exportApplicationTemplateRevisionIaCTransportSettings, + settings.exportApplicationTemplateRevisionIaCSettings(), + clientContext); + this.exportApplicationTemplateRevisionIaCOperationCallable = + callableFactory.createOperationCallable( + exportApplicationTemplateRevisionIaCTransportSettings, + settings.exportApplicationTemplateRevisionIaCOperationSettings(), + clientContext, + operationsStub); + this.getComponentCallable = + callableFactory.createUnaryCallable( + getComponentTransportSettings, settings.getComponentSettings(), clientContext); + this.listComponentsCallable = + callableFactory.createUnaryCallable( + listComponentsTransportSettings, settings.listComponentsSettings(), clientContext); + this.listComponentsPagedCallable = + callableFactory.createPagedCallable( + listComponentsTransportSettings, settings.listComponentsSettings(), clientContext); + this.createComponentCallable = + callableFactory.createUnaryCallable( + createComponentTransportSettings, settings.createComponentSettings(), clientContext); + this.updateComponentCallable = + callableFactory.createUnaryCallable( + updateComponentTransportSettings, settings.updateComponentSettings(), clientContext); + this.deleteComponentCallable = + callableFactory.createUnaryCallable( + deleteComponentTransportSettings, settings.deleteComponentSettings(), clientContext); + this.getConnectionCallable = + callableFactory.createUnaryCallable( + getConnectionTransportSettings, settings.getConnectionSettings(), clientContext); + this.listConnectionsCallable = + callableFactory.createUnaryCallable( + listConnectionsTransportSettings, settings.listConnectionsSettings(), clientContext); + this.listConnectionsPagedCallable = + callableFactory.createPagedCallable( + listConnectionsTransportSettings, settings.listConnectionsSettings(), clientContext); + this.createConnectionCallable = + callableFactory.createUnaryCallable( + createConnectionTransportSettings, settings.createConnectionSettings(), clientContext); + this.updateConnectionCallable = + callableFactory.createUnaryCallable( + updateConnectionTransportSettings, settings.updateConnectionSettings(), clientContext); + this.deleteConnectionCallable = + callableFactory.createUnaryCallable( + deleteConnectionTransportSettings, settings.deleteConnectionSettings(), clientContext); + this.getApplicationTemplateRevisionCallable = + callableFactory.createUnaryCallable( + getApplicationTemplateRevisionTransportSettings, + settings.getApplicationTemplateRevisionSettings(), + clientContext); + this.listApplicationTemplateRevisionsCallable = + callableFactory.createUnaryCallable( + listApplicationTemplateRevisionsTransportSettings, + settings.listApplicationTemplateRevisionsSettings(), + clientContext); + this.listApplicationTemplateRevisionsPagedCallable = + callableFactory.createPagedCallable( + listApplicationTemplateRevisionsTransportSettings, + settings.listApplicationTemplateRevisionsSettings(), + clientContext); + this.deleteApplicationTemplateRevisionCallable = + callableFactory.createUnaryCallable( + deleteApplicationTemplateRevisionTransportSettings, + settings.deleteApplicationTemplateRevisionSettings(), + clientContext); + this.getCatalogCallable = + callableFactory.createUnaryCallable( + getCatalogTransportSettings, settings.getCatalogSettings(), clientContext); + this.listCatalogsCallable = + callableFactory.createUnaryCallable( + listCatalogsTransportSettings, settings.listCatalogsSettings(), clientContext); + this.listCatalogsPagedCallable = + callableFactory.createPagedCallable( + listCatalogsTransportSettings, settings.listCatalogsSettings(), clientContext); + this.createCatalogCallable = + callableFactory.createUnaryCallable( + createCatalogTransportSettings, settings.createCatalogSettings(), clientContext); + this.updateCatalogCallable = + callableFactory.createUnaryCallable( + updateCatalogTransportSettings, settings.updateCatalogSettings(), clientContext); + this.deleteCatalogCallable = + callableFactory.createUnaryCallable( + deleteCatalogTransportSettings, settings.deleteCatalogSettings(), clientContext); + this.deleteCatalogOperationCallable = + callableFactory.createOperationCallable( + deleteCatalogTransportSettings, + settings.deleteCatalogOperationSettings(), + clientContext, + operationsStub); + this.createCatalogTemplateCallable = + callableFactory.createUnaryCallable( + createCatalogTemplateTransportSettings, + settings.createCatalogTemplateSettings(), + clientContext); + this.getCatalogTemplateCallable = + callableFactory.createUnaryCallable( + getCatalogTemplateTransportSettings, + settings.getCatalogTemplateSettings(), + clientContext); + this.listCatalogTemplatesCallable = + callableFactory.createUnaryCallable( + listCatalogTemplatesTransportSettings, + settings.listCatalogTemplatesSettings(), + clientContext); + this.listCatalogTemplatesPagedCallable = + callableFactory.createPagedCallable( + listCatalogTemplatesTransportSettings, + settings.listCatalogTemplatesSettings(), + clientContext); + this.updateCatalogTemplateCallable = + callableFactory.createUnaryCallable( + updateCatalogTemplateTransportSettings, + settings.updateCatalogTemplateSettings(), + clientContext); + this.deleteCatalogTemplateCallable = + callableFactory.createUnaryCallable( + deleteCatalogTemplateTransportSettings, + settings.deleteCatalogTemplateSettings(), + clientContext); + this.deleteCatalogTemplateOperationCallable = + callableFactory.createOperationCallable( + deleteCatalogTemplateTransportSettings, + settings.deleteCatalogTemplateOperationSettings(), + clientContext, + operationsStub); + this.createShareCallable = + callableFactory.createUnaryCallable( + createShareTransportSettings, settings.createShareSettings(), clientContext); + this.createShareOperationCallable = + callableFactory.createOperationCallable( + createShareTransportSettings, + settings.createShareOperationSettings(), + clientContext, + operationsStub); + this.listSharesCallable = + callableFactory.createUnaryCallable( + listSharesTransportSettings, settings.listSharesSettings(), clientContext); + this.listSharesPagedCallable = + callableFactory.createPagedCallable( + listSharesTransportSettings, settings.listSharesSettings(), clientContext); + this.getShareCallable = + callableFactory.createUnaryCallable( + getShareTransportSettings, settings.getShareSettings(), clientContext); + this.deleteShareCallable = + callableFactory.createUnaryCallable( + deleteShareTransportSettings, settings.deleteShareSettings(), clientContext); + this.deleteShareOperationCallable = + callableFactory.createOperationCallable( + deleteShareTransportSettings, + settings.deleteShareOperationSettings(), + clientContext, + operationsStub); + this.syncShareCallable = + callableFactory.createUnaryCallable( + syncShareTransportSettings, settings.syncShareSettings(), clientContext); + this.syncShareOperationCallable = + callableFactory.createOperationCallable( + syncShareTransportSettings, + settings.syncShareOperationSettings(), + clientContext, + operationsStub); + this.getSharedTemplateCallable = + callableFactory.createUnaryCallable( + getSharedTemplateTransportSettings, + settings.getSharedTemplateSettings(), + clientContext); + this.listSharedTemplatesCallable = + callableFactory.createUnaryCallable( + listSharedTemplatesTransportSettings, + settings.listSharedTemplatesSettings(), + clientContext); + this.listSharedTemplatesPagedCallable = + callableFactory.createPagedCallable( + listSharedTemplatesTransportSettings, + settings.listSharedTemplatesSettings(), + clientContext); + this.getSharedTemplateRevisionCallable = + callableFactory.createUnaryCallable( + getSharedTemplateRevisionTransportSettings, + settings.getSharedTemplateRevisionSettings(), + clientContext); + this.listSharedTemplateRevisionsCallable = + callableFactory.createUnaryCallable( + listSharedTemplateRevisionsTransportSettings, + settings.listSharedTemplateRevisionsSettings(), + clientContext); + this.listSharedTemplateRevisionsPagedCallable = + callableFactory.createPagedCallable( + listSharedTemplateRevisionsTransportSettings, + settings.listSharedTemplateRevisionsSettings(), + clientContext); + this.createCatalogTemplateRevisionCallable = + callableFactory.createUnaryCallable( + createCatalogTemplateRevisionTransportSettings, + settings.createCatalogTemplateRevisionSettings(), + clientContext); + this.createCatalogTemplateRevisionOperationCallable = + callableFactory.createOperationCallable( + createCatalogTemplateRevisionTransportSettings, + settings.createCatalogTemplateRevisionOperationSettings(), + clientContext, + operationsStub); + this.getCatalogTemplateRevisionCallable = + callableFactory.createUnaryCallable( + getCatalogTemplateRevisionTransportSettings, + settings.getCatalogTemplateRevisionSettings(), + clientContext); + this.listCatalogTemplateRevisionsCallable = + callableFactory.createUnaryCallable( + listCatalogTemplateRevisionsTransportSettings, + settings.listCatalogTemplateRevisionsSettings(), + clientContext); + this.listCatalogTemplateRevisionsPagedCallable = + callableFactory.createPagedCallable( + listCatalogTemplateRevisionsTransportSettings, + settings.listCatalogTemplateRevisionsSettings(), + clientContext); + this.deleteCatalogTemplateRevisionCallable = + callableFactory.createUnaryCallable( + deleteCatalogTemplateRevisionTransportSettings, + settings.deleteCatalogTemplateRevisionSettings(), + clientContext); + this.deleteCatalogTemplateRevisionOperationCallable = + callableFactory.createOperationCallable( + deleteCatalogTemplateRevisionTransportSettings, + settings.deleteCatalogTemplateRevisionOperationSettings(), + clientContext, + operationsStub); + this.createApplicationCallable = + callableFactory.createUnaryCallable( + createApplicationTransportSettings, + settings.createApplicationSettings(), + clientContext); + this.getApplicationCallable = + callableFactory.createUnaryCallable( + getApplicationTransportSettings, settings.getApplicationSettings(), clientContext); + this.listApplicationsCallable = + callableFactory.createUnaryCallable( + listApplicationsTransportSettings, settings.listApplicationsSettings(), clientContext); + this.listApplicationsPagedCallable = + callableFactory.createPagedCallable( + listApplicationsTransportSettings, settings.listApplicationsSettings(), clientContext); + this.updateApplicationCallable = + callableFactory.createUnaryCallable( + updateApplicationTransportSettings, + settings.updateApplicationSettings(), + clientContext); + this.deleteApplicationCallable = + callableFactory.createUnaryCallable( + deleteApplicationTransportSettings, + settings.deleteApplicationSettings(), + clientContext); + this.deleteApplicationOperationCallable = + callableFactory.createOperationCallable( + deleteApplicationTransportSettings, + settings.deleteApplicationOperationSettings(), + clientContext, + operationsStub); + this.deployApplicationCallable = + callableFactory.createUnaryCallable( + deployApplicationTransportSettings, + settings.deployApplicationSettings(), + clientContext); + this.deployApplicationOperationCallable = + callableFactory.createOperationCallable( + deployApplicationTransportSettings, + settings.deployApplicationOperationSettings(), + clientContext, + operationsStub); + this.previewApplicationCallable = + callableFactory.createUnaryCallable( + previewApplicationTransportSettings, + settings.previewApplicationSettings(), + clientContext); + this.previewApplicationOperationCallable = + callableFactory.createOperationCallable( + previewApplicationTransportSettings, + settings.previewApplicationOperationSettings(), + clientContext, + operationsStub); + this.fetchApplicationAssessmentReportCallable = + callableFactory.createUnaryCallable( + fetchApplicationAssessmentReportTransportSettings, + settings.fetchApplicationAssessmentReportSettings(), + clientContext); + this.generateApplicationAssessmentReportCallable = + callableFactory.createUnaryCallable( + generateApplicationAssessmentReportTransportSettings, + settings.generateApplicationAssessmentReportSettings(), + clientContext); + this.generateApplicationAssessmentReportOperationCallable = + callableFactory.createOperationCallable( + generateApplicationAssessmentReportTransportSettings, + settings.generateApplicationAssessmentReportOperationSettings(), + clientContext, + operationsStub); + this.generateApplicationTemplateAssessmentReportCallable = + callableFactory.createUnaryCallable( + generateApplicationTemplateAssessmentReportTransportSettings, + settings.generateApplicationTemplateAssessmentReportSettings(), + clientContext); + this.generateApplicationTemplateAssessmentReportOperationCallable = + callableFactory.createOperationCallable( + generateApplicationTemplateAssessmentReportTransportSettings, + settings.generateApplicationTemplateAssessmentReportOperationSettings(), + clientContext, + operationsStub); + this.generateAssessmentReportCallable = + callableFactory.createUnaryCallable( + generateAssessmentReportTransportSettings, + settings.generateAssessmentReportSettings(), + clientContext); + this.generateAssessmentReportOperationCallable = + callableFactory.createOperationCallable( + generateAssessmentReportTransportSettings, + settings.generateAssessmentReportOperationSettings(), + clientContext, + operationsStub); + this.generateTerraformPlanAssessmentReportCallable = + callableFactory.createUnaryCallable( + generateTerraformPlanAssessmentReportTransportSettings, + settings.generateTerraformPlanAssessmentReportSettings(), + clientContext); + this.generateTerraformPlanAssessmentReportOperationCallable = + callableFactory.createOperationCallable( + generateTerraformPlanAssessmentReportTransportSettings, + settings.generateTerraformPlanAssessmentReportOperationSettings(), + clientContext, + operationsStub); + this.getPolicyCallable = + callableFactory.createUnaryCallable( + getPolicyTransportSettings, settings.getPolicySettings(), clientContext); + this.listPoliciesCallable = + callableFactory.createUnaryCallable( + listPoliciesTransportSettings, settings.listPoliciesSettings(), clientContext); + this.listPoliciesPagedCallable = + callableFactory.createPagedCallable( + listPoliciesTransportSettings, settings.listPoliciesSettings(), clientContext); + this.createPolicyCallable = + callableFactory.createUnaryCallable( + createPolicyTransportSettings, settings.createPolicySettings(), clientContext); + this.updatePolicyCallable = + callableFactory.createUnaryCallable( + updatePolicyTransportSettings, settings.updatePolicySettings(), clientContext); + this.deletePolicyCallable = + callableFactory.createUnaryCallable( + deletePolicyTransportSettings, settings.deletePolicySettings(), clientContext); + this.fetchFrameworksCallable = + callableFactory.createUnaryCallable( + fetchFrameworksTransportSettings, settings.fetchFrameworksSettings(), clientContext); + this.fetchFrameworksPagedCallable = + callableFactory.createPagedCallable( + fetchFrameworksTransportSettings, settings.fetchFrameworksSettings(), clientContext); + this.generateApplicationIaCCallable = + callableFactory.createUnaryCallable( + generateApplicationIaCTransportSettings, + settings.generateApplicationIaCSettings(), + clientContext); + this.exportApplicationIaCCallable = + callableFactory.createUnaryCallable( + exportApplicationIaCTransportSettings, + settings.exportApplicationIaCSettings(), + clientContext); + this.exportApplicationIaCOperationCallable = + callableFactory.createOperationCallable( + exportApplicationIaCTransportSettings, + settings.exportApplicationIaCOperationSettings(), + clientContext, + operationsStub); + this.importApplicationTemplateIaCCallable = + callableFactory.createUnaryCallable( + importApplicationTemplateIaCTransportSettings, + settings.importApplicationTemplateIaCSettings(), + clientContext); + this.ingestApplicationTemplateIaCCallable = + callableFactory.createUnaryCallable( + ingestApplicationTemplateIaCTransportSettings, + settings.ingestApplicationTemplateIaCSettings(), + clientContext); + this.ingestApplicationTemplateIaCOperationCallable = + callableFactory.createOperationCallable( + ingestApplicationTemplateIaCTransportSettings, + settings.ingestApplicationTemplateIaCOperationSettings(), + clientContext, + operationsStub); + this.importApplicationIaCCallable = + callableFactory.createUnaryCallable( + importApplicationIaCTransportSettings, + settings.importApplicationIaCSettings(), + clientContext); + this.registerAppHubApplicationResourcesCallable = + callableFactory.createUnaryCallable( + registerAppHubApplicationResourcesTransportSettings, + settings.registerAppHubApplicationResourcesSettings(), + clientContext); + this.registerAppHubApplicationResourcesOperationCallable = + callableFactory.createOperationCallable( + registerAppHubApplicationResourcesTransportSettings, + settings.registerAppHubApplicationResourcesOperationSettings(), + clientContext, + operationsStub); + this.listApplicationTemplateSystemRevisionsCallable = + callableFactory.createUnaryCallable( + listApplicationTemplateSystemRevisionsTransportSettings, + settings.listApplicationTemplateSystemRevisionsSettings(), + clientContext); + this.listApplicationTemplateSystemRevisionsPagedCallable = + callableFactory.createPagedCallable( + listApplicationTemplateSystemRevisionsTransportSettings, + settings.listApplicationTemplateSystemRevisionsSettings(), + clientContext); + this.getApplicationTemplateSystemRevisionCallable = + callableFactory.createUnaryCallable( + getApplicationTemplateSystemRevisionTransportSettings, + settings.getApplicationTemplateSystemRevisionSettings(), + clientContext); + this.recommendIAMRolesCallable = + callableFactory.createUnaryCallable( + recommendIAMRolesTransportSettings, + settings.recommendIAMRolesSettings(), + clientContext); + this.recommendIAMRolesOperationCallable = + callableFactory.createOperationCallable( + recommendIAMRolesTransportSettings, + settings.recommendIAMRolesOperationSettings(), + clientContext, + operationsStub); + 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.setIamPolicyCallable = + callableFactory.createUnaryCallable( + setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); + this.getIamPolicyCallable = + callableFactory.createUnaryCallable( + getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); + this.testIamPermissionsCallable = + callableFactory.createUnaryCallable( + testIamPermissionsTransportSettings, + settings.testIamPermissionsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable getSpaceCallable() { + return getSpaceCallable; + } + + @Override + public UnaryCallable listSpacesCallable() { + return listSpacesCallable; + } + + @Override + public UnaryCallable listSpacesPagedCallable() { + return listSpacesPagedCallable; + } + + @Override + public UnaryCallable createSpaceCallable() { + return createSpaceCallable; + } + + @Override + public UnaryCallable updateSpaceCallable() { + return updateSpaceCallable; + } + + @Override + public UnaryCallable deleteSpaceCallable() { + return deleteSpaceCallable; + } + + @Override + public UnaryCallable + getApplicationTemplateCallable() { + return getApplicationTemplateCallable; + } + + @Override + public UnaryCallable + listApplicationTemplatesCallable() { + return listApplicationTemplatesCallable; + } + + @Override + public UnaryCallable + listApplicationTemplatesPagedCallable() { + return listApplicationTemplatesPagedCallable; + } + + @Override + public UnaryCallable + createApplicationTemplateCallable() { + return createApplicationTemplateCallable; + } + + @Override + public UnaryCallable + updateApplicationTemplateCallable() { + return updateApplicationTemplateCallable; + } + + @Override + public UnaryCallable + importApplicationTemplateCallable() { + return importApplicationTemplateCallable; + } + + @Override + public UnaryCallable + deleteApplicationTemplateCallable() { + return deleteApplicationTemplateCallable; + } + + @Override + public UnaryCallable + commitApplicationTemplateCallable() { + return commitApplicationTemplateCallable; + } + + @Override + public UnaryCallable + snapshotApplicationTemplateCallable() { + return snapshotApplicationTemplateCallable; + } + + @Override + public OperationCallable< + SnapshotApplicationTemplateRequest, + SnapshotApplicationTemplateResponse, + OperationMetadata> + snapshotApplicationTemplateOperationCallable() { + return snapshotApplicationTemplateOperationCallable; + } + + @Override + public UnaryCallable< + GenerateApplicationTemplateIaCRequest, GenerateApplicationTemplateIaCResponse> + generateApplicationTemplateIaCCallable() { + return generateApplicationTemplateIaCCallable; + } + + @Override + public UnaryCallable + exportApplicationTemplateIaCCallable() { + return exportApplicationTemplateIaCCallable; + } + + @Override + public OperationCallable< + ExportApplicationTemplateIaCRequest, + ExportApplicationTemplateIaCResponse, + OperationMetadata> + exportApplicationTemplateIaCOperationCallable() { + return exportApplicationTemplateIaCOperationCallable; + } + + @Override + public UnaryCallable< + GenerateApplicationTemplateRevisionIaCRequest, + GenerateApplicationTemplateRevisionIaCResponse> + generateApplicationTemplateRevisionIaCCallable() { + return generateApplicationTemplateRevisionIaCCallable; + } + + @Override + public UnaryCallable + exportApplicationTemplateRevisionIaCCallable() { + return exportApplicationTemplateRevisionIaCCallable; + } + + @Override + public OperationCallable< + ExportApplicationTemplateRevisionIaCRequest, + ExportApplicationTemplateRevisionIaCResponse, + OperationMetadata> + exportApplicationTemplateRevisionIaCOperationCallable() { + return exportApplicationTemplateRevisionIaCOperationCallable; + } + + @Override + public UnaryCallable getComponentCallable() { + return getComponentCallable; + } + + @Override + public UnaryCallable listComponentsCallable() { + return listComponentsCallable; + } + + @Override + public UnaryCallable + listComponentsPagedCallable() { + return listComponentsPagedCallable; + } + + @Override + public UnaryCallable createComponentCallable() { + return createComponentCallable; + } + + @Override + public UnaryCallable updateComponentCallable() { + return updateComponentCallable; + } + + @Override + public UnaryCallable deleteComponentCallable() { + return deleteComponentCallable; + } + + @Override + public UnaryCallable getConnectionCallable() { + return getConnectionCallable; + } + + @Override + public UnaryCallable listConnectionsCallable() { + return listConnectionsCallable; + } + + @Override + public UnaryCallable + listConnectionsPagedCallable() { + return listConnectionsPagedCallable; + } + + @Override + public UnaryCallable createConnectionCallable() { + return createConnectionCallable; + } + + @Override + public UnaryCallable updateConnectionCallable() { + return updateConnectionCallable; + } + + @Override + public UnaryCallable deleteConnectionCallable() { + return deleteConnectionCallable; + } + + @Override + public UnaryCallable + getApplicationTemplateRevisionCallable() { + return getApplicationTemplateRevisionCallable; + } + + @Override + public UnaryCallable< + ListApplicationTemplateRevisionsRequest, ListApplicationTemplateRevisionsResponse> + listApplicationTemplateRevisionsCallable() { + return listApplicationTemplateRevisionsCallable; + } + + @Override + public UnaryCallable< + ListApplicationTemplateRevisionsRequest, ListApplicationTemplateRevisionsPagedResponse> + listApplicationTemplateRevisionsPagedCallable() { + return listApplicationTemplateRevisionsPagedCallable; + } + + @Override + public UnaryCallable + deleteApplicationTemplateRevisionCallable() { + return deleteApplicationTemplateRevisionCallable; + } + + @Override + public UnaryCallable getCatalogCallable() { + return getCatalogCallable; + } + + @Override + public UnaryCallable listCatalogsCallable() { + return listCatalogsCallable; + } + + @Override + public UnaryCallable listCatalogsPagedCallable() { + return listCatalogsPagedCallable; + } + + @Override + public UnaryCallable createCatalogCallable() { + return createCatalogCallable; + } + + @Override + public UnaryCallable updateCatalogCallable() { + return updateCatalogCallable; + } + + @Override + public UnaryCallable deleteCatalogCallable() { + return deleteCatalogCallable; + } + + @Override + public OperationCallable + deleteCatalogOperationCallable() { + return deleteCatalogOperationCallable; + } + + @Override + public UnaryCallable + createCatalogTemplateCallable() { + return createCatalogTemplateCallable; + } + + @Override + public UnaryCallable getCatalogTemplateCallable() { + return getCatalogTemplateCallable; + } + + @Override + public UnaryCallable + listCatalogTemplatesCallable() { + return listCatalogTemplatesCallable; + } + + @Override + public UnaryCallable + listCatalogTemplatesPagedCallable() { + return listCatalogTemplatesPagedCallable; + } + + @Override + public UnaryCallable + updateCatalogTemplateCallable() { + return updateCatalogTemplateCallable; + } + + @Override + public UnaryCallable deleteCatalogTemplateCallable() { + return deleteCatalogTemplateCallable; + } + + @Override + public OperationCallable + deleteCatalogTemplateOperationCallable() { + return deleteCatalogTemplateOperationCallable; + } + + @Override + public UnaryCallable createShareCallable() { + return createShareCallable; + } + + @Override + public OperationCallable + createShareOperationCallable() { + return createShareOperationCallable; + } + + @Override + public UnaryCallable listSharesCallable() { + return listSharesCallable; + } + + @Override + public UnaryCallable listSharesPagedCallable() { + return listSharesPagedCallable; + } + + @Override + public UnaryCallable getShareCallable() { + return getShareCallable; + } + + @Override + public UnaryCallable deleteShareCallable() { + return deleteShareCallable; + } + + @Override + public OperationCallable + deleteShareOperationCallable() { + return deleteShareOperationCallable; + } + + @Override + public UnaryCallable syncShareCallable() { + return syncShareCallable; + } + + @Override + public OperationCallable + syncShareOperationCallable() { + return syncShareOperationCallable; + } + + @Override + public UnaryCallable getSharedTemplateCallable() { + return getSharedTemplateCallable; + } + + @Override + public UnaryCallable + listSharedTemplatesCallable() { + return listSharedTemplatesCallable; + } + + @Override + public UnaryCallable + listSharedTemplatesPagedCallable() { + return listSharedTemplatesPagedCallable; + } + + @Override + public UnaryCallable + getSharedTemplateRevisionCallable() { + return getSharedTemplateRevisionCallable; + } + + @Override + public UnaryCallable + listSharedTemplateRevisionsCallable() { + return listSharedTemplateRevisionsCallable; + } + + @Override + public UnaryCallable + listSharedTemplateRevisionsPagedCallable() { + return listSharedTemplateRevisionsPagedCallable; + } + + @Override + public UnaryCallable + createCatalogTemplateRevisionCallable() { + return createCatalogTemplateRevisionCallable; + } + + @Override + public OperationCallable< + CreateCatalogTemplateRevisionRequest, CatalogTemplateRevision, OperationMetadata> + createCatalogTemplateRevisionOperationCallable() { + return createCatalogTemplateRevisionOperationCallable; + } + + @Override + public UnaryCallable + getCatalogTemplateRevisionCallable() { + return getCatalogTemplateRevisionCallable; + } + + @Override + public UnaryCallable + listCatalogTemplateRevisionsCallable() { + return listCatalogTemplateRevisionsCallable; + } + + @Override + public UnaryCallable< + ListCatalogTemplateRevisionsRequest, ListCatalogTemplateRevisionsPagedResponse> + listCatalogTemplateRevisionsPagedCallable() { + return listCatalogTemplateRevisionsPagedCallable; + } + + @Override + public UnaryCallable + deleteCatalogTemplateRevisionCallable() { + return deleteCatalogTemplateRevisionCallable; + } + + @Override + public OperationCallable + deleteCatalogTemplateRevisionOperationCallable() { + return deleteCatalogTemplateRevisionOperationCallable; + } + + @Override + public UnaryCallable createApplicationCallable() { + return createApplicationCallable; + } + + @Override + public UnaryCallable getApplicationCallable() { + return getApplicationCallable; + } + + @Override + public UnaryCallable + listApplicationsCallable() { + return listApplicationsCallable; + } + + @Override + public UnaryCallable + listApplicationsPagedCallable() { + return listApplicationsPagedCallable; + } + + @Override + public UnaryCallable updateApplicationCallable() { + return updateApplicationCallable; + } + + @Override + public UnaryCallable deleteApplicationCallable() { + return deleteApplicationCallable; + } + + @Override + public OperationCallable + deleteApplicationOperationCallable() { + return deleteApplicationOperationCallable; + } + + @Override + public UnaryCallable deployApplicationCallable() { + return deployApplicationCallable; + } + + @Override + public OperationCallable + deployApplicationOperationCallable() { + return deployApplicationOperationCallable; + } + + @Override + public UnaryCallable previewApplicationCallable() { + return previewApplicationCallable; + } + + @Override + public OperationCallable + previewApplicationOperationCallable() { + return previewApplicationOperationCallable; + } + + @Override + public UnaryCallable< + FetchApplicationAssessmentReportRequest, FetchApplicationAssessmentReportResponse> + fetchApplicationAssessmentReportCallable() { + return fetchApplicationAssessmentReportCallable; + } + + @Override + public UnaryCallable + generateApplicationAssessmentReportCallable() { + return generateApplicationAssessmentReportCallable; + } + + @Override + public OperationCallable< + GenerateApplicationAssessmentReportRequest, + GenerateApplicationAssessmentReportResponse, + OperationMetadata> + generateApplicationAssessmentReportOperationCallable() { + return generateApplicationAssessmentReportOperationCallable; + } + + @Override + public UnaryCallable + generateApplicationTemplateAssessmentReportCallable() { + return generateApplicationTemplateAssessmentReportCallable; + } + + @Override + public OperationCallable< + GenerateApplicationTemplateAssessmentReportRequest, + GenerateApplicationTemplateAssessmentReportResponse, + OperationMetadata> + generateApplicationTemplateAssessmentReportOperationCallable() { + return generateApplicationTemplateAssessmentReportOperationCallable; + } + + @Override + public UnaryCallable + generateAssessmentReportCallable() { + return generateAssessmentReportCallable; + } + + @Override + public OperationCallable< + GenerateAssessmentReportRequest, GenerateAssessmentReportResponse, OperationMetadata> + generateAssessmentReportOperationCallable() { + return generateAssessmentReportOperationCallable; + } + + @Override + public UnaryCallable + generateTerraformPlanAssessmentReportCallable() { + return generateTerraformPlanAssessmentReportCallable; + } + + @Override + public OperationCallable< + GenerateTerraformPlanAssessmentReportRequest, + GenerateTerraformPlanAssessmentReportResponse, + OperationMetadata> + generateTerraformPlanAssessmentReportOperationCallable() { + return generateTerraformPlanAssessmentReportOperationCallable; + } + + @Override + public UnaryCallable getPolicyCallable() { + return getPolicyCallable; + } + + @Override + public UnaryCallable listPoliciesCallable() { + return listPoliciesCallable; + } + + @Override + public UnaryCallable listPoliciesPagedCallable() { + return listPoliciesPagedCallable; + } + + @Override + public UnaryCallable createPolicyCallable() { + return createPolicyCallable; + } + + @Override + public UnaryCallable updatePolicyCallable() { + return updatePolicyCallable; + } + + @Override + public UnaryCallable deletePolicyCallable() { + return deletePolicyCallable; + } + + @Override + public UnaryCallable fetchFrameworksCallable() { + return fetchFrameworksCallable; + } + + @Override + public UnaryCallable + fetchFrameworksPagedCallable() { + return fetchFrameworksPagedCallable; + } + + @Override + public UnaryCallable + generateApplicationIaCCallable() { + return generateApplicationIaCCallable; + } + + @Override + public UnaryCallable exportApplicationIaCCallable() { + return exportApplicationIaCCallable; + } + + @Override + public OperationCallable< + ExportApplicationIaCRequest, ExportApplicationIaCResponse, OperationMetadata> + exportApplicationIaCOperationCallable() { + return exportApplicationIaCOperationCallable; + } + + @Override + public UnaryCallable + importApplicationTemplateIaCCallable() { + return importApplicationTemplateIaCCallable; + } + + @Override + public UnaryCallable + ingestApplicationTemplateIaCCallable() { + return ingestApplicationTemplateIaCCallable; + } + + @Override + public OperationCallable< + IngestApplicationTemplateIaCRequest, + IngestApplicationTemplateIaCResponse, + OperationMetadata> + ingestApplicationTemplateIaCOperationCallable() { + return ingestApplicationTemplateIaCOperationCallable; + } + + @Override + public UnaryCallable + importApplicationIaCCallable() { + return importApplicationIaCCallable; + } + + @Override + public UnaryCallable + registerAppHubApplicationResourcesCallable() { + return registerAppHubApplicationResourcesCallable; + } + + @Override + public OperationCallable< + RegisterAppHubApplicationResourcesRequest, + RegisterAppHubApplicationResourcesResponse, + OperationMetadata> + registerAppHubApplicationResourcesOperationCallable() { + return registerAppHubApplicationResourcesOperationCallable; + } + + @Override + public UnaryCallable< + ListApplicationTemplateSystemRevisionsRequest, + ListApplicationTemplateSystemRevisionsResponse> + listApplicationTemplateSystemRevisionsCallable() { + return listApplicationTemplateSystemRevisionsCallable; + } + + @Override + public UnaryCallable< + ListApplicationTemplateSystemRevisionsRequest, + ListApplicationTemplateSystemRevisionsPagedResponse> + listApplicationTemplateSystemRevisionsPagedCallable() { + return listApplicationTemplateSystemRevisionsPagedCallable; + } + + @Override + public UnaryCallable< + GetApplicationTemplateSystemRevisionRequest, ApplicationTemplateSystemRevision> + getApplicationTemplateSystemRevisionCallable() { + return getApplicationTemplateSystemRevisionCallable; + } + + @Override + public UnaryCallable recommendIAMRolesCallable() { + return recommendIAMRolesCallable; + } + + @Override + public OperationCallable + recommendIAMRolesOperationCallable() { + return recommendIAMRolesOperationCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @Override + public UnaryCallable setIamPolicyCallable() { + return setIamPolicyCallable; + } + + @Override + public UnaryCallable getIamPolicyCallable() { + return getIamPolicyCallable; + } + + @Override + public UnaryCallable + testIamPermissionsCallable() { + return testIamPermissionsCallable; + } + + @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-designcenter/google-cloud-designcenter/src/main/java/com/google/cloud/designcenter/v1/stub/HttpJsonDesignCenterCallableFactory.java b/java-designcenter/google-cloud-designcenter/src/main/java/com/google/cloud/designcenter/v1/stub/HttpJsonDesignCenterCallableFactory.java new file mode 100644 index 000000000000..d365fd922a08 --- /dev/null +++ b/java-designcenter/google-cloud-designcenter/src/main/java/com/google/cloud/designcenter/v1/stub/HttpJsonDesignCenterCallableFactory.java @@ -0,0 +1,103 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.stub; + +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; +import org.jspecify.annotations.NullMarked; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the DesignCenter service API. + * + *

This class is for advanced usage. + */ +@NullMarked +@Generated("by gapic-generator-java") +public class HttpJsonDesignCenterCallableFactory + 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); + } + + @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-designcenter/google-cloud-designcenter/src/main/java/com/google/cloud/designcenter/v1/stub/HttpJsonDesignCenterStub.java b/java-designcenter/google-cloud-designcenter/src/main/java/com/google/cloud/designcenter/v1/stub/HttpJsonDesignCenterStub.java new file mode 100644 index 000000000000..96d3cf126889 --- /dev/null +++ b/java-designcenter/google-cloud-designcenter/src/main/java/com/google/cloud/designcenter/v1/stub/HttpJsonDesignCenterStub.java @@ -0,0 +1,6319 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.stub; + +import static com.google.cloud.designcenter.v1.DesignCenterClient.FetchFrameworksPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListApplicationTemplateRevisionsPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListApplicationTemplateSystemRevisionsPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListApplicationTemplatesPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListApplicationsPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListCatalogTemplateRevisionsPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListCatalogTemplatesPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListCatalogsPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListComponentsPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListConnectionsPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListLocationsPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListPoliciesPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListSharedTemplateRevisionsPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListSharedTemplatesPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListSharesPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListSpacesPagedResponse; + +import com.google.api.HttpRule; +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.designcenter.v1.Application; +import com.google.cloud.designcenter.v1.ApplicationTemplate; +import com.google.cloud.designcenter.v1.ApplicationTemplateRevision; +import com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision; +import com.google.cloud.designcenter.v1.Catalog; +import com.google.cloud.designcenter.v1.CatalogTemplate; +import com.google.cloud.designcenter.v1.CatalogTemplateRevision; +import com.google.cloud.designcenter.v1.CommitApplicationTemplateRequest; +import com.google.cloud.designcenter.v1.Component; +import com.google.cloud.designcenter.v1.Connection; +import com.google.cloud.designcenter.v1.CreateApplicationRequest; +import com.google.cloud.designcenter.v1.CreateApplicationTemplateRequest; +import com.google.cloud.designcenter.v1.CreateCatalogRequest; +import com.google.cloud.designcenter.v1.CreateCatalogTemplateRequest; +import com.google.cloud.designcenter.v1.CreateCatalogTemplateRevisionRequest; +import com.google.cloud.designcenter.v1.CreateComponentRequest; +import com.google.cloud.designcenter.v1.CreateConnectionRequest; +import com.google.cloud.designcenter.v1.CreatePolicyRequest; +import com.google.cloud.designcenter.v1.CreateShareRequest; +import com.google.cloud.designcenter.v1.CreateSpaceRequest; +import com.google.cloud.designcenter.v1.DeleteApplicationRequest; +import com.google.cloud.designcenter.v1.DeleteApplicationTemplateRequest; +import com.google.cloud.designcenter.v1.DeleteApplicationTemplateRevisionRequest; +import com.google.cloud.designcenter.v1.DeleteCatalogRequest; +import com.google.cloud.designcenter.v1.DeleteCatalogTemplateRequest; +import com.google.cloud.designcenter.v1.DeleteCatalogTemplateRevisionRequest; +import com.google.cloud.designcenter.v1.DeleteComponentRequest; +import com.google.cloud.designcenter.v1.DeleteConnectionRequest; +import com.google.cloud.designcenter.v1.DeletePolicyRequest; +import com.google.cloud.designcenter.v1.DeleteShareRequest; +import com.google.cloud.designcenter.v1.DeleteSpaceRequest; +import com.google.cloud.designcenter.v1.DeployApplicationRequest; +import com.google.cloud.designcenter.v1.DeployApplicationResponse; +import com.google.cloud.designcenter.v1.ExportApplicationIaCRequest; +import com.google.cloud.designcenter.v1.ExportApplicationIaCResponse; +import com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCRequest; +import com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCResponse; +import com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCRequest; +import com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCResponse; +import com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportRequest; +import com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportResponse; +import com.google.cloud.designcenter.v1.FetchFrameworksRequest; +import com.google.cloud.designcenter.v1.FetchFrameworksResponse; +import com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportRequest; +import com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportResponse; +import com.google.cloud.designcenter.v1.GenerateApplicationIaCRequest; +import com.google.cloud.designcenter.v1.GenerateApplicationIaCResponse; +import com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportRequest; +import com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportResponse; +import com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest; +import com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCResponse; +import com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest; +import com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCResponse; +import com.google.cloud.designcenter.v1.GenerateAssessmentReportRequest; +import com.google.cloud.designcenter.v1.GenerateAssessmentReportResponse; +import com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportRequest; +import com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportResponse; +import com.google.cloud.designcenter.v1.GetApplicationRequest; +import com.google.cloud.designcenter.v1.GetApplicationTemplateRequest; +import com.google.cloud.designcenter.v1.GetApplicationTemplateRevisionRequest; +import com.google.cloud.designcenter.v1.GetApplicationTemplateSystemRevisionRequest; +import com.google.cloud.designcenter.v1.GetCatalogRequest; +import com.google.cloud.designcenter.v1.GetCatalogTemplateRequest; +import com.google.cloud.designcenter.v1.GetCatalogTemplateRevisionRequest; +import com.google.cloud.designcenter.v1.GetComponentRequest; +import com.google.cloud.designcenter.v1.GetConnectionRequest; +import com.google.cloud.designcenter.v1.GetPolicyRequest; +import com.google.cloud.designcenter.v1.GetShareRequest; +import com.google.cloud.designcenter.v1.GetSharedTemplateRequest; +import com.google.cloud.designcenter.v1.GetSharedTemplateRevisionRequest; +import com.google.cloud.designcenter.v1.GetSpaceRequest; +import com.google.cloud.designcenter.v1.ImportApplicationIaCRequest; +import com.google.cloud.designcenter.v1.ImportApplicationIaCResponse; +import com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCRequest; +import com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse; +import com.google.cloud.designcenter.v1.ImportApplicationTemplateRequest; +import com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCRequest; +import com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCResponse; +import com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsRequest; +import com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsResponse; +import com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsRequest; +import com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsResponse; +import com.google.cloud.designcenter.v1.ListApplicationTemplatesRequest; +import com.google.cloud.designcenter.v1.ListApplicationTemplatesResponse; +import com.google.cloud.designcenter.v1.ListApplicationsRequest; +import com.google.cloud.designcenter.v1.ListApplicationsResponse; +import com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsRequest; +import com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsResponse; +import com.google.cloud.designcenter.v1.ListCatalogTemplatesRequest; +import com.google.cloud.designcenter.v1.ListCatalogTemplatesResponse; +import com.google.cloud.designcenter.v1.ListCatalogsRequest; +import com.google.cloud.designcenter.v1.ListCatalogsResponse; +import com.google.cloud.designcenter.v1.ListComponentsRequest; +import com.google.cloud.designcenter.v1.ListComponentsResponse; +import com.google.cloud.designcenter.v1.ListConnectionsRequest; +import com.google.cloud.designcenter.v1.ListConnectionsResponse; +import com.google.cloud.designcenter.v1.ListPoliciesRequest; +import com.google.cloud.designcenter.v1.ListPoliciesResponse; +import com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsRequest; +import com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsResponse; +import com.google.cloud.designcenter.v1.ListSharedTemplatesRequest; +import com.google.cloud.designcenter.v1.ListSharedTemplatesResponse; +import com.google.cloud.designcenter.v1.ListSharesRequest; +import com.google.cloud.designcenter.v1.ListSharesResponse; +import com.google.cloud.designcenter.v1.ListSpacesRequest; +import com.google.cloud.designcenter.v1.ListSpacesResponse; +import com.google.cloud.designcenter.v1.OperationMetadata; +import com.google.cloud.designcenter.v1.Policy; +import com.google.cloud.designcenter.v1.PreviewApplicationRequest; +import com.google.cloud.designcenter.v1.PreviewApplicationResponse; +import com.google.cloud.designcenter.v1.RecommendIAMRolesRequest; +import com.google.cloud.designcenter.v1.RecommendIAMRolesResponse; +import com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesRequest; +import com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesResponse; +import com.google.cloud.designcenter.v1.Share; +import com.google.cloud.designcenter.v1.SharedTemplate; +import com.google.cloud.designcenter.v1.SharedTemplateRevision; +import com.google.cloud.designcenter.v1.SnapshotApplicationTemplateRequest; +import com.google.cloud.designcenter.v1.SnapshotApplicationTemplateResponse; +import com.google.cloud.designcenter.v1.Space; +import com.google.cloud.designcenter.v1.SyncShareRequest; +import com.google.cloud.designcenter.v1.UpdateApplicationRequest; +import com.google.cloud.designcenter.v1.UpdateApplicationTemplateRequest; +import com.google.cloud.designcenter.v1.UpdateCatalogRequest; +import com.google.cloud.designcenter.v1.UpdateCatalogTemplateRequest; +import com.google.cloud.designcenter.v1.UpdateComponentRequest; +import com.google.cloud.designcenter.v1.UpdateConnectionRequest; +import com.google.cloud.designcenter.v1.UpdatePolicyRequest; +import com.google.cloud.designcenter.v1.UpdateSpaceRequest; +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.ImmutableMap; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +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; +import org.jspecify.annotations.NullMarked; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the DesignCenter service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@NullMarked +@Generated("by gapic-generator-java") +public class HttpJsonDesignCenterStub extends DesignCenterStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder() + .add(GenerateApplicationTemplateAssessmentReportResponse.getDescriptor()) + .add(GenerateApplicationAssessmentReportResponse.getDescriptor()) + .add(ExportApplicationTemplateIaCResponse.getDescriptor()) + .add(OperationMetadata.getDescriptor()) + .add(RecommendIAMRolesResponse.getDescriptor()) + .add(ExportApplicationTemplateRevisionIaCResponse.getDescriptor()) + .add(ExportApplicationIaCResponse.getDescriptor()) + .add(CatalogTemplateRevision.getDescriptor()) + .add(IngestApplicationTemplateIaCResponse.getDescriptor()) + .add(Empty.getDescriptor()) + .add(GenerateAssessmentReportResponse.getDescriptor()) + .add(SnapshotApplicationTemplateResponse.getDescriptor()) + .add(DeployApplicationResponse.getDescriptor()) + .add(PreviewApplicationResponse.getDescriptor()) + .add(Share.getDescriptor()) + .add(RegisterAppHubApplicationResourcesResponse.getDescriptor()) + .add(GenerateTerraformPlanAssessmentReportResponse.getDescriptor()) + .build(); + + private static final ApiMethodDescriptor getSpaceMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/GetSpace") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/spaces/*}", + 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(Space.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listSpacesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/ListSpaces") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/spaces", + 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(ListSpacesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor createSpaceMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/CreateSpace") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/spaces", + 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, "spaceId", request.getSpaceId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create().toBody("space", request.getSpace(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Space.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor updateSpaceMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/UpdateSpace") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{space.name=projects/*/locations/*/spaces/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "space.name", request.getSpace().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("space", request.getSpace(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Space.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor deleteSpaceMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/DeleteSpace") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/spaces/*}", + 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, "force", request.getForce()); + 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 + getApplicationTemplateMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/GetApplicationTemplate") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/spaces/*/applicationTemplates/*}", + 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(ApplicationTemplate.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListApplicationTemplatesRequest, ListApplicationTemplatesResponse> + listApplicationTemplatesMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.designcenter.v1.DesignCenter/ListApplicationTemplates") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/spaces/*}/applicationTemplates", + 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(ListApplicationTemplatesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createApplicationTemplateMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.designcenter.v1.DesignCenter/CreateApplicationTemplate") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/spaces/*}/applicationTemplates", + 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, + "applicationTemplateId", + request.getApplicationTemplateId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "applicationTemplate", + request.getApplicationTemplate(), + true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ApplicationTemplate.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateApplicationTemplateMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.designcenter.v1.DesignCenter/UpdateApplicationTemplate") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{applicationTemplate.name=projects/*/locations/*/spaces/*/applicationTemplates/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "applicationTemplate.name", + request.getApplicationTemplate().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( + "applicationTemplate", + request.getApplicationTemplate(), + true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ApplicationTemplate.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + importApplicationTemplateMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.designcenter.v1.DesignCenter/ImportApplicationTemplate") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/spaces/*/applicationTemplates/*}:import", + 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(ApplicationTemplate.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteApplicationTemplateMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.designcenter.v1.DesignCenter/DeleteApplicationTemplate") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/spaces/*/applicationTemplates/*}", + 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, "force", request.getForce()); + 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< + CommitApplicationTemplateRequest, ApplicationTemplateRevision> + commitApplicationTemplateMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.designcenter.v1.DesignCenter/CommitApplicationTemplate") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/spaces/*/applicationTemplates/*}:commit", + 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(ApplicationTemplateRevision.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + snapshotApplicationTemplateMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.designcenter.v1.DesignCenter/SnapshotApplicationTemplate") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/spaces/*/applicationTemplates/*}:snapshot", + 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(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (SnapshotApplicationTemplateRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor< + GenerateApplicationTemplateIaCRequest, GenerateApplicationTemplateIaCResponse> + generateApplicationTemplateIaCMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.cloud.designcenter.v1.DesignCenter/GenerateApplicationTemplateIaC") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/spaces/*/applicationTemplates/*}:generate", + 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( + GenerateApplicationTemplateIaCResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + exportApplicationTemplateIaCMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.designcenter.v1.DesignCenter/ExportApplicationTemplateIaC") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/spaces/*/applicationTemplates/*}:export", + 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(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (ExportApplicationTemplateIaCRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor< + GenerateApplicationTemplateRevisionIaCRequest, + GenerateApplicationTemplateRevisionIaCResponse> + generateApplicationTemplateRevisionIaCMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.cloud.designcenter.v1.DesignCenter/GenerateApplicationTemplateRevisionIaC") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter + .newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/spaces/*/applicationTemplates/*/revisions/*}:generate", + 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( + GenerateApplicationTemplateRevisionIaCResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + exportApplicationTemplateRevisionIaCMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.designcenter.v1.DesignCenter/ExportApplicationTemplateRevisionIaC") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter + .newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/spaces/*/applicationTemplates/*/revisions/*}:export", + 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(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (ExportApplicationTemplateRevisionIaCRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + getComponentMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/GetComponent") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/spaces/*/applicationTemplates/*/components/*}", + 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(Component.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listComponentsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/ListComponents") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/spaces/*/applicationTemplates/*}/components", + 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(ListComponentsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createComponentMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/CreateComponent") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/spaces/*/applicationTemplates/*}/components", + 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, "componentId", request.getComponentId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("component", request.getComponent(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Component.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateComponentMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/UpdateComponent") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{component.name=projects/*/locations/*/spaces/*/applicationTemplates/*/components/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "component.name", request.getComponent().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("component", request.getComponent(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Component.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteComponentMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/DeleteComponent") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/spaces/*/applicationTemplates/*/components/*}", + 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, "force", request.getForce()); + 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 + getConnectionMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/GetConnection") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/spaces/*/applicationTemplates/*/components/*/connections/*}", + 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(Connection.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listConnectionsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/ListConnections") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/spaces/*/applicationTemplates/*/components/*}/connections", + 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(ListConnectionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createConnectionMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/CreateConnection") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/spaces/*/applicationTemplates/*/components/*}/connections", + 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, "connectionId", request.getConnectionId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("connection", request.getConnection(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Connection.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateConnectionMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/UpdateConnection") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{connection.name=projects/*/locations/*/spaces/*/applicationTemplates/*/components/*/connections/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "connection.name", request.getConnection().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("connection", request.getConnection(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Connection.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteConnectionMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/DeleteConnection") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/spaces/*/applicationTemplates/*/components/*/connections/*}", + 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< + GetApplicationTemplateRevisionRequest, ApplicationTemplateRevision> + getApplicationTemplateRevisionMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.designcenter.v1.DesignCenter/GetApplicationTemplateRevision") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/spaces/*/applicationTemplates/*/revisions/*}", + 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(ApplicationTemplateRevision.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListApplicationTemplateRevisionsRequest, ListApplicationTemplateRevisionsResponse> + listApplicationTemplateRevisionsMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.cloud.designcenter.v1.DesignCenter/ListApplicationTemplateRevisions") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/spaces/*/applicationTemplates/*}/revisions", + 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( + ListApplicationTemplateRevisionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteApplicationTemplateRevisionMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.designcenter.v1.DesignCenter/DeleteApplicationTemplateRevision") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter + .newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/spaces/*/applicationTemplates/*/revisions/*}", + 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 getCatalogMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/GetCatalog") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/spaces/*/catalogs/*}", + 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(Catalog.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listCatalogsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/ListCatalogs") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/spaces/*}/catalogs", + 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(ListCatalogsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createCatalogMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/CreateCatalog") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/spaces/*}/catalogs", + 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, "catalogId", request.getCatalogId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("catalog", request.getCatalog(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Catalog.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateCatalogMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/UpdateCatalog") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{catalog.name=projects/*/locations/*/spaces/*/catalogs/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "catalog.name", request.getCatalog().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("catalog", request.getCatalog(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Catalog.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteCatalogMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/DeleteCatalog") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/spaces/*/catalogs/*}", + 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, "force", request.getForce()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteCatalogRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + createCatalogTemplateMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/CreateCatalogTemplate") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/spaces/*/catalogs/*}/templates", + 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, "catalogTemplateId", request.getCatalogTemplateId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("catalogTemplate", request.getCatalogTemplate(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(CatalogTemplate.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getCatalogTemplateMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/GetCatalogTemplate") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/spaces/*/catalogs/*/templates/*}", + 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(CatalogTemplate.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListCatalogTemplatesRequest, ListCatalogTemplatesResponse> + listCatalogTemplatesMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/ListCatalogTemplates") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/spaces/*/catalogs/*}/templates", + 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(ListCatalogTemplatesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateCatalogTemplateMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/UpdateCatalogTemplate") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{catalogTemplate.name=projects/*/locations/*/spaces/*/catalogs/*/templates/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "catalogTemplate.name", + request.getCatalogTemplate().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("catalogTemplate", request.getCatalogTemplate(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(CatalogTemplate.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteCatalogTemplateMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/DeleteCatalogTemplate") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/spaces/*/catalogs/*/templates/*}", + 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, "force", request.getForce()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteCatalogTemplateRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + createShareMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/CreateShare") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/spaces/*/catalogs/*}/shares", + 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, "shareId", request.getShareId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("share", request.getShare(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateShareRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + listSharesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/ListShares") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/spaces/*/catalogs/*}/shares", + 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, "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(ListSharesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor getShareMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/GetShare") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/spaces/*/catalogs/*/shares/*}", + 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(Share.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteShareMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/DeleteShare") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/spaces/*/catalogs/*/shares/*}", + 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(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteShareRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor syncShareMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/SyncShare") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/spaces/*/catalogs/*/shares/*}:sync", + 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(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (SyncShareRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + getSharedTemplateMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/GetSharedTemplate") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/spaces/*/sharedTemplates/*}", + 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(SharedTemplate.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listSharedTemplatesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/ListSharedTemplates") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/spaces/*}/sharedTemplates", + 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(ListSharedTemplatesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getSharedTemplateRevisionMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.designcenter.v1.DesignCenter/GetSharedTemplateRevision") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/spaces/*/sharedTemplates/*/revisions/*}", + 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(SharedTemplateRevision.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListSharedTemplateRevisionsRequest, ListSharedTemplateRevisionsResponse> + listSharedTemplateRevisionsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.designcenter.v1.DesignCenter/ListSharedTemplateRevisions") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/spaces/*/sharedTemplates/*}/revisions", + 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(ListSharedTemplateRevisionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createCatalogTemplateRevisionMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.designcenter.v1.DesignCenter/CreateCatalogTemplateRevision") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/spaces/*/catalogs/*/templates/*}/revisions", + 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, + "catalogTemplateRevisionId", + request.getCatalogTemplateRevisionId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "catalogTemplateRevision", + request.getCatalogTemplateRevision(), + true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateCatalogTemplateRevisionRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor< + GetCatalogTemplateRevisionRequest, CatalogTemplateRevision> + getCatalogTemplateRevisionMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.designcenter.v1.DesignCenter/GetCatalogTemplateRevision") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/spaces/*/catalogs/*/templates/*/revisions/*}", + 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(CatalogTemplateRevision.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListCatalogTemplateRevisionsRequest, ListCatalogTemplateRevisionsResponse> + listCatalogTemplateRevisionsMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.cloud.designcenter.v1.DesignCenter/ListCatalogTemplateRevisions") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/spaces/*/catalogs/*/templates/*}/revisions", + 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(ListCatalogTemplateRevisionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteCatalogTemplateRevisionMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.designcenter.v1.DesignCenter/DeleteCatalogTemplateRevision") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/spaces/*/catalogs/*/templates/*/revisions/*}", + 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(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteCatalogTemplateRevisionRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + createApplicationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/CreateApplication") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/spaces/*}/applications", + 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, "applicationId", request.getApplicationId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("application", request.getApplication(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Application.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getApplicationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/GetApplication") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/spaces/*/applications/*}", + 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(Application.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listApplicationsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/ListApplications") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/spaces/*}/applications", + 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(ListApplicationsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateApplicationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/UpdateApplication") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{application.name=projects/*/locations/*/spaces/*/applications/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "application.name", request.getApplication().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("application", request.getApplication(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Application.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteApplicationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/DeleteApplication") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/spaces/*/applications/*}", + 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, "force", request.getForce()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteApplicationRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deployApplicationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/DeployApplication") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/spaces/*/applications/*}:deploy", + 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(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeployApplicationRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + previewApplicationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/PreviewApplication") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/spaces/*/applications/*}:preview", + 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(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (PreviewApplicationRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor< + FetchApplicationAssessmentReportRequest, FetchApplicationAssessmentReportResponse> + fetchApplicationAssessmentReportMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.cloud.designcenter.v1.DesignCenter/FetchApplicationAssessmentReport") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/spaces/*/applications/*}:fetchAssessmentReport", + 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( + FetchApplicationAssessmentReportResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + generateApplicationAssessmentReportMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.designcenter.v1.DesignCenter/GenerateApplicationAssessmentReport") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter + .newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/spaces/*/applications/*}:generateAssessmentReport", + 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(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (GenerateApplicationAssessmentReportRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor< + GenerateApplicationTemplateAssessmentReportRequest, Operation> + generateApplicationTemplateAssessmentReportMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.designcenter.v1.DesignCenter/GenerateApplicationTemplateAssessmentReport") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter + .newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/spaces/*/applicationTemplates/*}:generateAssessmentReport", + 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(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (GenerateApplicationTemplateAssessmentReportRequest request, + Operation response) -> HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + generateAssessmentReportMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.designcenter.v1.DesignCenter/GenerateAssessmentReport") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{spaceName=projects/*/locations/*/spaces/*}:generateAssessmentReport", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "spaceName", request.getSpaceName()); + 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().clearSpaceName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (GenerateAssessmentReportRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + generateTerraformPlanAssessmentReportMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.designcenter.v1.DesignCenter/GenerateTerraformPlanAssessmentReport") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter + .newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/spaces/*}:generateTerraformPlanAssessmentReport", + 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(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (GenerateTerraformPlanAssessmentReportRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor getPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/GetPolicy") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/spaces/*/applicationTemplates/*/policies/*}", + 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(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listPoliciesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/ListPolicies") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/spaces/*/applicationTemplates/*}/policies", + 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(ListPoliciesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/CreatePolicy") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/spaces/*/applicationTemplates/*}/policies", + 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, "policyId", request.getPolicyId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("policy", request.getPolicy(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updatePolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/UpdatePolicy") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{policy.name=projects/*/locations/*/spaces/*/applicationTemplates/*/policies/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "policy.name", request.getPolicy().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("policy", request.getPolicy(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deletePolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/DeletePolicy") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/spaces/*/applicationTemplates/*/policies/*}", + 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 + fetchFrameworksMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/FetchFrameworks") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}:fetchFrameworks", + 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, "projects", request.getProjectsList()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(FetchFrameworksResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + GenerateApplicationIaCRequest, GenerateApplicationIaCResponse> + generateApplicationIaCMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/GenerateApplicationIaC") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/spaces/*/applications/*}:generate", + 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(GenerateApplicationIaCResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + exportApplicationIaCMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/ExportApplicationIaC") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/spaces/*/applications/*}:export", + 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(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (ExportApplicationIaCRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor< + ImportApplicationTemplateIaCRequest, ImportApplicationTemplateIaCResponse> + importApplicationTemplateIaCMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.cloud.designcenter.v1.DesignCenter/ImportApplicationTemplateIaC") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/spaces/*/applicationTemplates/*}:importIaC", + 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(ImportApplicationTemplateIaCResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + ingestApplicationTemplateIaCMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.designcenter.v1.DesignCenter/IngestApplicationTemplateIaC") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/spaces/*/applicationTemplates/*}:ingestIaC", + 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(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (IngestApplicationTemplateIaCRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor< + ImportApplicationIaCRequest, ImportApplicationIaCResponse> + importApplicationIaCMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/ImportApplicationIaC") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/spaces/*/applications/*}:importIaC", + 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(ImportApplicationIaCResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + registerAppHubApplicationResourcesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.designcenter.v1.DesignCenter/RegisterAppHubApplicationResources") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter + .newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/spaces:registerAppHubApplicationResources", + 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, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (RegisterAppHubApplicationResourcesRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor< + ListApplicationTemplateSystemRevisionsRequest, + ListApplicationTemplateSystemRevisionsResponse> + listApplicationTemplateSystemRevisionsMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.cloud.designcenter.v1.DesignCenter/ListApplicationTemplateSystemRevisions") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter + .newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/spaces/*/applicationTemplates/*}/systemRevisions", + 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( + ListApplicationTemplateSystemRevisionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + GetApplicationTemplateSystemRevisionRequest, ApplicationTemplateSystemRevision> + getApplicationTemplateSystemRevisionMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.cloud.designcenter.v1.DesignCenter/GetApplicationTemplateSystemRevision") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter + .newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/spaces/*/applicationTemplates/*/systemRevisions/*}", + 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(ApplicationTemplateSystemRevision.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + recommendIAMRolesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.designcenter.v1.DesignCenter/RecommendIAMRoles") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/spaces/*/applications/*}:recommendIAMRoles", + 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(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (RecommendIAMRolesRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .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 static final ApiMethodDescriptor + setIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{resource=projects/*/locations/*/spaces/*}:setIamPolicy", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + 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().clearResource().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(com.google.iam.v1.Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{resource=projects/*/locations/*/spaces/*}:getIamPolicy", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + 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(com.google.iam.v1.Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + testIamPermissionsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{resource=projects/*/locations/*/spaces/*}:testIamPermissions", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + 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().clearResource().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(TestIamPermissionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable getSpaceCallable; + private final UnaryCallable listSpacesCallable; + private final UnaryCallable listSpacesPagedCallable; + private final UnaryCallable createSpaceCallable; + private final UnaryCallable updateSpaceCallable; + private final UnaryCallable deleteSpaceCallable; + private final UnaryCallable + getApplicationTemplateCallable; + private final UnaryCallable + listApplicationTemplatesCallable; + private final UnaryCallable< + ListApplicationTemplatesRequest, ListApplicationTemplatesPagedResponse> + listApplicationTemplatesPagedCallable; + private final UnaryCallable + createApplicationTemplateCallable; + private final UnaryCallable + updateApplicationTemplateCallable; + private final UnaryCallable + importApplicationTemplateCallable; + private final UnaryCallable + deleteApplicationTemplateCallable; + private final UnaryCallable + commitApplicationTemplateCallable; + private final UnaryCallable + snapshotApplicationTemplateCallable; + private final OperationCallable< + SnapshotApplicationTemplateRequest, + SnapshotApplicationTemplateResponse, + OperationMetadata> + snapshotApplicationTemplateOperationCallable; + private final UnaryCallable< + GenerateApplicationTemplateIaCRequest, GenerateApplicationTemplateIaCResponse> + generateApplicationTemplateIaCCallable; + private final UnaryCallable + exportApplicationTemplateIaCCallable; + private final OperationCallable< + ExportApplicationTemplateIaCRequest, + ExportApplicationTemplateIaCResponse, + OperationMetadata> + exportApplicationTemplateIaCOperationCallable; + private final UnaryCallable< + GenerateApplicationTemplateRevisionIaCRequest, + GenerateApplicationTemplateRevisionIaCResponse> + generateApplicationTemplateRevisionIaCCallable; + private final UnaryCallable + exportApplicationTemplateRevisionIaCCallable; + private final OperationCallable< + ExportApplicationTemplateRevisionIaCRequest, + ExportApplicationTemplateRevisionIaCResponse, + OperationMetadata> + exportApplicationTemplateRevisionIaCOperationCallable; + private final UnaryCallable getComponentCallable; + private final UnaryCallable listComponentsCallable; + private final UnaryCallable + listComponentsPagedCallable; + private final UnaryCallable createComponentCallable; + private final UnaryCallable updateComponentCallable; + private final UnaryCallable deleteComponentCallable; + private final UnaryCallable getConnectionCallable; + private final UnaryCallable + listConnectionsCallable; + private final UnaryCallable + listConnectionsPagedCallable; + private final UnaryCallable createConnectionCallable; + private final UnaryCallable updateConnectionCallable; + private final UnaryCallable deleteConnectionCallable; + private final UnaryCallable + getApplicationTemplateRevisionCallable; + private final UnaryCallable< + ListApplicationTemplateRevisionsRequest, ListApplicationTemplateRevisionsResponse> + listApplicationTemplateRevisionsCallable; + private final UnaryCallable< + ListApplicationTemplateRevisionsRequest, ListApplicationTemplateRevisionsPagedResponse> + listApplicationTemplateRevisionsPagedCallable; + private final UnaryCallable + deleteApplicationTemplateRevisionCallable; + private final UnaryCallable getCatalogCallable; + private final UnaryCallable listCatalogsCallable; + private final UnaryCallable + listCatalogsPagedCallable; + private final UnaryCallable createCatalogCallable; + private final UnaryCallable updateCatalogCallable; + private final UnaryCallable deleteCatalogCallable; + private final OperationCallable + deleteCatalogOperationCallable; + private final UnaryCallable + createCatalogTemplateCallable; + private final UnaryCallable + getCatalogTemplateCallable; + private final UnaryCallable + listCatalogTemplatesCallable; + private final UnaryCallable + listCatalogTemplatesPagedCallable; + private final UnaryCallable + updateCatalogTemplateCallable; + private final UnaryCallable + deleteCatalogTemplateCallable; + private final OperationCallable + deleteCatalogTemplateOperationCallable; + private final UnaryCallable createShareCallable; + private final OperationCallable + createShareOperationCallable; + private final UnaryCallable listSharesCallable; + private final UnaryCallable listSharesPagedCallable; + private final UnaryCallable getShareCallable; + private final UnaryCallable deleteShareCallable; + private final OperationCallable + deleteShareOperationCallable; + private final UnaryCallable syncShareCallable; + private final OperationCallable + syncShareOperationCallable; + private final UnaryCallable getSharedTemplateCallable; + private final UnaryCallable + listSharedTemplatesCallable; + private final UnaryCallable + listSharedTemplatesPagedCallable; + private final UnaryCallable + getSharedTemplateRevisionCallable; + private final UnaryCallable< + ListSharedTemplateRevisionsRequest, ListSharedTemplateRevisionsResponse> + listSharedTemplateRevisionsCallable; + private final UnaryCallable< + ListSharedTemplateRevisionsRequest, ListSharedTemplateRevisionsPagedResponse> + listSharedTemplateRevisionsPagedCallable; + private final UnaryCallable + createCatalogTemplateRevisionCallable; + private final OperationCallable< + CreateCatalogTemplateRevisionRequest, CatalogTemplateRevision, OperationMetadata> + createCatalogTemplateRevisionOperationCallable; + private final UnaryCallable + getCatalogTemplateRevisionCallable; + private final UnaryCallable< + ListCatalogTemplateRevisionsRequest, ListCatalogTemplateRevisionsResponse> + listCatalogTemplateRevisionsCallable; + private final UnaryCallable< + ListCatalogTemplateRevisionsRequest, ListCatalogTemplateRevisionsPagedResponse> + listCatalogTemplateRevisionsPagedCallable; + private final UnaryCallable + deleteCatalogTemplateRevisionCallable; + private final OperationCallable + deleteCatalogTemplateRevisionOperationCallable; + private final UnaryCallable createApplicationCallable; + private final UnaryCallable getApplicationCallable; + private final UnaryCallable + listApplicationsCallable; + private final UnaryCallable + listApplicationsPagedCallable; + private final UnaryCallable updateApplicationCallable; + private final UnaryCallable deleteApplicationCallable; + private final OperationCallable + deleteApplicationOperationCallable; + private final UnaryCallable deployApplicationCallable; + private final OperationCallable< + DeployApplicationRequest, DeployApplicationResponse, OperationMetadata> + deployApplicationOperationCallable; + private final UnaryCallable previewApplicationCallable; + private final OperationCallable< + PreviewApplicationRequest, PreviewApplicationResponse, OperationMetadata> + previewApplicationOperationCallable; + private final UnaryCallable< + FetchApplicationAssessmentReportRequest, FetchApplicationAssessmentReportResponse> + fetchApplicationAssessmentReportCallable; + private final UnaryCallable + generateApplicationAssessmentReportCallable; + private final OperationCallable< + GenerateApplicationAssessmentReportRequest, + GenerateApplicationAssessmentReportResponse, + OperationMetadata> + generateApplicationAssessmentReportOperationCallable; + private final UnaryCallable + generateApplicationTemplateAssessmentReportCallable; + private final OperationCallable< + GenerateApplicationTemplateAssessmentReportRequest, + GenerateApplicationTemplateAssessmentReportResponse, + OperationMetadata> + generateApplicationTemplateAssessmentReportOperationCallable; + private final UnaryCallable + generateAssessmentReportCallable; + private final OperationCallable< + GenerateAssessmentReportRequest, GenerateAssessmentReportResponse, OperationMetadata> + generateAssessmentReportOperationCallable; + private final UnaryCallable + generateTerraformPlanAssessmentReportCallable; + private final OperationCallable< + GenerateTerraformPlanAssessmentReportRequest, + GenerateTerraformPlanAssessmentReportResponse, + OperationMetadata> + generateTerraformPlanAssessmentReportOperationCallable; + private final UnaryCallable getPolicyCallable; + private final UnaryCallable listPoliciesCallable; + private final UnaryCallable + listPoliciesPagedCallable; + private final UnaryCallable createPolicyCallable; + private final UnaryCallable updatePolicyCallable; + private final UnaryCallable deletePolicyCallable; + private final UnaryCallable + fetchFrameworksCallable; + private final UnaryCallable + fetchFrameworksPagedCallable; + private final UnaryCallable + generateApplicationIaCCallable; + private final UnaryCallable exportApplicationIaCCallable; + private final OperationCallable< + ExportApplicationIaCRequest, ExportApplicationIaCResponse, OperationMetadata> + exportApplicationIaCOperationCallable; + private final UnaryCallable< + ImportApplicationTemplateIaCRequest, ImportApplicationTemplateIaCResponse> + importApplicationTemplateIaCCallable; + private final UnaryCallable + ingestApplicationTemplateIaCCallable; + private final OperationCallable< + IngestApplicationTemplateIaCRequest, + IngestApplicationTemplateIaCResponse, + OperationMetadata> + ingestApplicationTemplateIaCOperationCallable; + private final UnaryCallable + importApplicationIaCCallable; + private final UnaryCallable + registerAppHubApplicationResourcesCallable; + private final OperationCallable< + RegisterAppHubApplicationResourcesRequest, + RegisterAppHubApplicationResourcesResponse, + OperationMetadata> + registerAppHubApplicationResourcesOperationCallable; + private final UnaryCallable< + ListApplicationTemplateSystemRevisionsRequest, + ListApplicationTemplateSystemRevisionsResponse> + listApplicationTemplateSystemRevisionsCallable; + private final UnaryCallable< + ListApplicationTemplateSystemRevisionsRequest, + ListApplicationTemplateSystemRevisionsPagedResponse> + listApplicationTemplateSystemRevisionsPagedCallable; + private final UnaryCallable< + GetApplicationTemplateSystemRevisionRequest, ApplicationTemplateSystemRevision> + getApplicationTemplateSystemRevisionCallable; + private final UnaryCallable recommendIAMRolesCallable; + private final OperationCallable< + RecommendIAMRolesRequest, RecommendIAMRolesResponse, OperationMetadata> + recommendIAMRolesOperationCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + private final UnaryCallable setIamPolicyCallable; + private final UnaryCallable getIamPolicyCallable; + private final UnaryCallable + testIamPermissionsCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonDesignCenterStub create(DesignCenterStubSettings settings) + throws IOException { + return new HttpJsonDesignCenterStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonDesignCenterStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonDesignCenterStub( + DesignCenterStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonDesignCenterStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonDesignCenterStub( + DesignCenterStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonDesignCenterStub, 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 HttpJsonDesignCenterStub(DesignCenterStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonDesignCenterCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonDesignCenterStub, 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 HttpJsonDesignCenterStub( + DesignCenterStubSettings 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 getSpaceTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getSpaceMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings listSpacesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listSpacesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings createSpaceTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createSpaceMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings updateSpaceTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateSpaceMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("space.name", String.valueOf(request.getSpace().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteSpaceTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteSpaceMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + getApplicationTemplateTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getApplicationTemplateMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + listApplicationTemplatesTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listApplicationTemplatesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings + createApplicationTemplateTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createApplicationTemplateMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings + updateApplicationTemplateTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateApplicationTemplateMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "application_template.name", + String.valueOf(request.getApplicationTemplate().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + importApplicationTemplateTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(importApplicationTemplateMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getApplicationTemplateRevisionUri()) + .build(); + HttpJsonCallSettings + deleteApplicationTemplateTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteApplicationTemplateMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + commitApplicationTemplateTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(commitApplicationTemplateMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + snapshotApplicationTemplateTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(snapshotApplicationTemplateMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings< + GenerateApplicationTemplateIaCRequest, GenerateApplicationTemplateIaCResponse> + generateApplicationTemplateIaCTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(generateApplicationTemplateIaCMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + exportApplicationTemplateIaCTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(exportApplicationTemplateIaCMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings< + GenerateApplicationTemplateRevisionIaCRequest, + GenerateApplicationTemplateRevisionIaCResponse> + generateApplicationTemplateRevisionIaCTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(generateApplicationTemplateRevisionIaCMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + exportApplicationTemplateRevisionIaCTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(exportApplicationTemplateRevisionIaCMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings getComponentTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getComponentMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + listComponentsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listComponentsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings createComponentTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createComponentMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings updateComponentTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateComponentMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("component.name", String.valueOf(request.getComponent().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteComponentTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteComponentMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings getConnectionTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getConnectionMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + listConnectionsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listConnectionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings createConnectionTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createConnectionMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings updateConnectionTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateConnectionMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("connection.name", String.valueOf(request.getConnection().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteConnectionTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteConnectionMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + getApplicationTemplateRevisionTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(getApplicationTemplateRevisionMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings< + ListApplicationTemplateRevisionsRequest, ListApplicationTemplateRevisionsResponse> + listApplicationTemplateRevisionsTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(listApplicationTemplateRevisionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings + deleteApplicationTemplateRevisionTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteApplicationTemplateRevisionMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings getCatalogTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getCatalogMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings listCatalogsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listCatalogsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings createCatalogTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createCatalogMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings updateCatalogTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateCatalogMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("catalog.name", String.valueOf(request.getCatalog().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteCatalogTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteCatalogMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + createCatalogTemplateTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createCatalogTemplateMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings + getCatalogTemplateTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getCatalogTemplateMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + listCatalogTemplatesTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listCatalogTemplatesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings + updateCatalogTemplateTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateCatalogTemplateMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "catalog_template.name", + String.valueOf(request.getCatalogTemplate().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + deleteCatalogTemplateTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteCatalogTemplateMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings createShareTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createShareMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings listSharesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listSharesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings getShareTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getShareMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings deleteShareTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteShareMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings syncShareTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(syncShareMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + getSharedTemplateTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getSharedTemplateMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + listSharedTemplatesTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listSharedTemplatesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings + getSharedTemplateRevisionTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(getSharedTemplateRevisionMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + listSharedTemplateRevisionsTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(listSharedTemplateRevisionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings + createCatalogTemplateRevisionTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createCatalogTemplateRevisionMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings + getCatalogTemplateRevisionTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(getCatalogTemplateRevisionMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + listCatalogTemplateRevisionsTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(listCatalogTemplateRevisionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings + deleteCatalogTemplateRevisionTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteCatalogTemplateRevisionMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings createApplicationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createApplicationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings getApplicationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getApplicationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + listApplicationsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listApplicationsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings updateApplicationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateApplicationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "application.name", String.valueOf(request.getApplication().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteApplicationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteApplicationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings deployApplicationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deployApplicationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings previewApplicationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(previewApplicationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings< + FetchApplicationAssessmentReportRequest, FetchApplicationAssessmentReportResponse> + fetchApplicationAssessmentReportTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(fetchApplicationAssessmentReportMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + generateApplicationAssessmentReportTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(generateApplicationAssessmentReportMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + generateApplicationTemplateAssessmentReportTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(generateApplicationTemplateAssessmentReportMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + generateAssessmentReportTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(generateAssessmentReportMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("space_name", String.valueOf(request.getSpaceName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getSpaceName()) + .build(); + HttpJsonCallSettings + generateTerraformPlanAssessmentReportTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(generateTerraformPlanAssessmentReportMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings getPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings listPoliciesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listPoliciesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings createPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings updatePolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updatePolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("policy.name", String.valueOf(request.getPolicy().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deletePolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deletePolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + fetchFrameworksTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(fetchFrameworksMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + generateApplicationIaCTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(generateApplicationIaCMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + exportApplicationIaCTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(exportApplicationIaCMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + importApplicationTemplateIaCTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(importApplicationTemplateIaCMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + ingestApplicationTemplateIaCTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(ingestApplicationTemplateIaCMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + importApplicationIaCTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(importApplicationIaCMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + registerAppHubApplicationResourcesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(registerAppHubApplicationResourcesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings< + ListApplicationTemplateSystemRevisionsRequest, + ListApplicationTemplateSystemRevisionsResponse> + listApplicationTemplateSystemRevisionsTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(listApplicationTemplateSystemRevisionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings< + GetApplicationTemplateSystemRevisionRequest, ApplicationTemplateSystemRevision> + getApplicationTemplateSystemRevisionTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(getApplicationTemplateSystemRevisionMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings recommendIAMRolesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(recommendIAMRolesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .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(); + HttpJsonCallSettings + setIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(setIamPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getResource()) + .build(); + HttpJsonCallSettings + getIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getResource()) + .build(); + HttpJsonCallSettings + testIamPermissionsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(testIamPermissionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getResource()) + .build(); + + this.getSpaceCallable = + callableFactory.createUnaryCallable( + getSpaceTransportSettings, settings.getSpaceSettings(), clientContext); + this.listSpacesCallable = + callableFactory.createUnaryCallable( + listSpacesTransportSettings, settings.listSpacesSettings(), clientContext); + this.listSpacesPagedCallable = + callableFactory.createPagedCallable( + listSpacesTransportSettings, settings.listSpacesSettings(), clientContext); + this.createSpaceCallable = + callableFactory.createUnaryCallable( + createSpaceTransportSettings, settings.createSpaceSettings(), clientContext); + this.updateSpaceCallable = + callableFactory.createUnaryCallable( + updateSpaceTransportSettings, settings.updateSpaceSettings(), clientContext); + this.deleteSpaceCallable = + callableFactory.createUnaryCallable( + deleteSpaceTransportSettings, settings.deleteSpaceSettings(), clientContext); + this.getApplicationTemplateCallable = + callableFactory.createUnaryCallable( + getApplicationTemplateTransportSettings, + settings.getApplicationTemplateSettings(), + clientContext); + this.listApplicationTemplatesCallable = + callableFactory.createUnaryCallable( + listApplicationTemplatesTransportSettings, + settings.listApplicationTemplatesSettings(), + clientContext); + this.listApplicationTemplatesPagedCallable = + callableFactory.createPagedCallable( + listApplicationTemplatesTransportSettings, + settings.listApplicationTemplatesSettings(), + clientContext); + this.createApplicationTemplateCallable = + callableFactory.createUnaryCallable( + createApplicationTemplateTransportSettings, + settings.createApplicationTemplateSettings(), + clientContext); + this.updateApplicationTemplateCallable = + callableFactory.createUnaryCallable( + updateApplicationTemplateTransportSettings, + settings.updateApplicationTemplateSettings(), + clientContext); + this.importApplicationTemplateCallable = + callableFactory.createUnaryCallable( + importApplicationTemplateTransportSettings, + settings.importApplicationTemplateSettings(), + clientContext); + this.deleteApplicationTemplateCallable = + callableFactory.createUnaryCallable( + deleteApplicationTemplateTransportSettings, + settings.deleteApplicationTemplateSettings(), + clientContext); + this.commitApplicationTemplateCallable = + callableFactory.createUnaryCallable( + commitApplicationTemplateTransportSettings, + settings.commitApplicationTemplateSettings(), + clientContext); + this.snapshotApplicationTemplateCallable = + callableFactory.createUnaryCallable( + snapshotApplicationTemplateTransportSettings, + settings.snapshotApplicationTemplateSettings(), + clientContext); + this.snapshotApplicationTemplateOperationCallable = + callableFactory.createOperationCallable( + snapshotApplicationTemplateTransportSettings, + settings.snapshotApplicationTemplateOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.generateApplicationTemplateIaCCallable = + callableFactory.createUnaryCallable( + generateApplicationTemplateIaCTransportSettings, + settings.generateApplicationTemplateIaCSettings(), + clientContext); + this.exportApplicationTemplateIaCCallable = + callableFactory.createUnaryCallable( + exportApplicationTemplateIaCTransportSettings, + settings.exportApplicationTemplateIaCSettings(), + clientContext); + this.exportApplicationTemplateIaCOperationCallable = + callableFactory.createOperationCallable( + exportApplicationTemplateIaCTransportSettings, + settings.exportApplicationTemplateIaCOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.generateApplicationTemplateRevisionIaCCallable = + callableFactory.createUnaryCallable( + generateApplicationTemplateRevisionIaCTransportSettings, + settings.generateApplicationTemplateRevisionIaCSettings(), + clientContext); + this.exportApplicationTemplateRevisionIaCCallable = + callableFactory.createUnaryCallable( + exportApplicationTemplateRevisionIaCTransportSettings, + settings.exportApplicationTemplateRevisionIaCSettings(), + clientContext); + this.exportApplicationTemplateRevisionIaCOperationCallable = + callableFactory.createOperationCallable( + exportApplicationTemplateRevisionIaCTransportSettings, + settings.exportApplicationTemplateRevisionIaCOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.getComponentCallable = + callableFactory.createUnaryCallable( + getComponentTransportSettings, settings.getComponentSettings(), clientContext); + this.listComponentsCallable = + callableFactory.createUnaryCallable( + listComponentsTransportSettings, settings.listComponentsSettings(), clientContext); + this.listComponentsPagedCallable = + callableFactory.createPagedCallable( + listComponentsTransportSettings, settings.listComponentsSettings(), clientContext); + this.createComponentCallable = + callableFactory.createUnaryCallable( + createComponentTransportSettings, settings.createComponentSettings(), clientContext); + this.updateComponentCallable = + callableFactory.createUnaryCallable( + updateComponentTransportSettings, settings.updateComponentSettings(), clientContext); + this.deleteComponentCallable = + callableFactory.createUnaryCallable( + deleteComponentTransportSettings, settings.deleteComponentSettings(), clientContext); + this.getConnectionCallable = + callableFactory.createUnaryCallable( + getConnectionTransportSettings, settings.getConnectionSettings(), clientContext); + this.listConnectionsCallable = + callableFactory.createUnaryCallable( + listConnectionsTransportSettings, settings.listConnectionsSettings(), clientContext); + this.listConnectionsPagedCallable = + callableFactory.createPagedCallable( + listConnectionsTransportSettings, settings.listConnectionsSettings(), clientContext); + this.createConnectionCallable = + callableFactory.createUnaryCallable( + createConnectionTransportSettings, settings.createConnectionSettings(), clientContext); + this.updateConnectionCallable = + callableFactory.createUnaryCallable( + updateConnectionTransportSettings, settings.updateConnectionSettings(), clientContext); + this.deleteConnectionCallable = + callableFactory.createUnaryCallable( + deleteConnectionTransportSettings, settings.deleteConnectionSettings(), clientContext); + this.getApplicationTemplateRevisionCallable = + callableFactory.createUnaryCallable( + getApplicationTemplateRevisionTransportSettings, + settings.getApplicationTemplateRevisionSettings(), + clientContext); + this.listApplicationTemplateRevisionsCallable = + callableFactory.createUnaryCallable( + listApplicationTemplateRevisionsTransportSettings, + settings.listApplicationTemplateRevisionsSettings(), + clientContext); + this.listApplicationTemplateRevisionsPagedCallable = + callableFactory.createPagedCallable( + listApplicationTemplateRevisionsTransportSettings, + settings.listApplicationTemplateRevisionsSettings(), + clientContext); + this.deleteApplicationTemplateRevisionCallable = + callableFactory.createUnaryCallable( + deleteApplicationTemplateRevisionTransportSettings, + settings.deleteApplicationTemplateRevisionSettings(), + clientContext); + this.getCatalogCallable = + callableFactory.createUnaryCallable( + getCatalogTransportSettings, settings.getCatalogSettings(), clientContext); + this.listCatalogsCallable = + callableFactory.createUnaryCallable( + listCatalogsTransportSettings, settings.listCatalogsSettings(), clientContext); + this.listCatalogsPagedCallable = + callableFactory.createPagedCallable( + listCatalogsTransportSettings, settings.listCatalogsSettings(), clientContext); + this.createCatalogCallable = + callableFactory.createUnaryCallable( + createCatalogTransportSettings, settings.createCatalogSettings(), clientContext); + this.updateCatalogCallable = + callableFactory.createUnaryCallable( + updateCatalogTransportSettings, settings.updateCatalogSettings(), clientContext); + this.deleteCatalogCallable = + callableFactory.createUnaryCallable( + deleteCatalogTransportSettings, settings.deleteCatalogSettings(), clientContext); + this.deleteCatalogOperationCallable = + callableFactory.createOperationCallable( + deleteCatalogTransportSettings, + settings.deleteCatalogOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.createCatalogTemplateCallable = + callableFactory.createUnaryCallable( + createCatalogTemplateTransportSettings, + settings.createCatalogTemplateSettings(), + clientContext); + this.getCatalogTemplateCallable = + callableFactory.createUnaryCallable( + getCatalogTemplateTransportSettings, + settings.getCatalogTemplateSettings(), + clientContext); + this.listCatalogTemplatesCallable = + callableFactory.createUnaryCallable( + listCatalogTemplatesTransportSettings, + settings.listCatalogTemplatesSettings(), + clientContext); + this.listCatalogTemplatesPagedCallable = + callableFactory.createPagedCallable( + listCatalogTemplatesTransportSettings, + settings.listCatalogTemplatesSettings(), + clientContext); + this.updateCatalogTemplateCallable = + callableFactory.createUnaryCallable( + updateCatalogTemplateTransportSettings, + settings.updateCatalogTemplateSettings(), + clientContext); + this.deleteCatalogTemplateCallable = + callableFactory.createUnaryCallable( + deleteCatalogTemplateTransportSettings, + settings.deleteCatalogTemplateSettings(), + clientContext); + this.deleteCatalogTemplateOperationCallable = + callableFactory.createOperationCallable( + deleteCatalogTemplateTransportSettings, + settings.deleteCatalogTemplateOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.createShareCallable = + callableFactory.createUnaryCallable( + createShareTransportSettings, settings.createShareSettings(), clientContext); + this.createShareOperationCallable = + callableFactory.createOperationCallable( + createShareTransportSettings, + settings.createShareOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.listSharesCallable = + callableFactory.createUnaryCallable( + listSharesTransportSettings, settings.listSharesSettings(), clientContext); + this.listSharesPagedCallable = + callableFactory.createPagedCallable( + listSharesTransportSettings, settings.listSharesSettings(), clientContext); + this.getShareCallable = + callableFactory.createUnaryCallable( + getShareTransportSettings, settings.getShareSettings(), clientContext); + this.deleteShareCallable = + callableFactory.createUnaryCallable( + deleteShareTransportSettings, settings.deleteShareSettings(), clientContext); + this.deleteShareOperationCallable = + callableFactory.createOperationCallable( + deleteShareTransportSettings, + settings.deleteShareOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.syncShareCallable = + callableFactory.createUnaryCallable( + syncShareTransportSettings, settings.syncShareSettings(), clientContext); + this.syncShareOperationCallable = + callableFactory.createOperationCallable( + syncShareTransportSettings, + settings.syncShareOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.getSharedTemplateCallable = + callableFactory.createUnaryCallable( + getSharedTemplateTransportSettings, + settings.getSharedTemplateSettings(), + clientContext); + this.listSharedTemplatesCallable = + callableFactory.createUnaryCallable( + listSharedTemplatesTransportSettings, + settings.listSharedTemplatesSettings(), + clientContext); + this.listSharedTemplatesPagedCallable = + callableFactory.createPagedCallable( + listSharedTemplatesTransportSettings, + settings.listSharedTemplatesSettings(), + clientContext); + this.getSharedTemplateRevisionCallable = + callableFactory.createUnaryCallable( + getSharedTemplateRevisionTransportSettings, + settings.getSharedTemplateRevisionSettings(), + clientContext); + this.listSharedTemplateRevisionsCallable = + callableFactory.createUnaryCallable( + listSharedTemplateRevisionsTransportSettings, + settings.listSharedTemplateRevisionsSettings(), + clientContext); + this.listSharedTemplateRevisionsPagedCallable = + callableFactory.createPagedCallable( + listSharedTemplateRevisionsTransportSettings, + settings.listSharedTemplateRevisionsSettings(), + clientContext); + this.createCatalogTemplateRevisionCallable = + callableFactory.createUnaryCallable( + createCatalogTemplateRevisionTransportSettings, + settings.createCatalogTemplateRevisionSettings(), + clientContext); + this.createCatalogTemplateRevisionOperationCallable = + callableFactory.createOperationCallable( + createCatalogTemplateRevisionTransportSettings, + settings.createCatalogTemplateRevisionOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.getCatalogTemplateRevisionCallable = + callableFactory.createUnaryCallable( + getCatalogTemplateRevisionTransportSettings, + settings.getCatalogTemplateRevisionSettings(), + clientContext); + this.listCatalogTemplateRevisionsCallable = + callableFactory.createUnaryCallable( + listCatalogTemplateRevisionsTransportSettings, + settings.listCatalogTemplateRevisionsSettings(), + clientContext); + this.listCatalogTemplateRevisionsPagedCallable = + callableFactory.createPagedCallable( + listCatalogTemplateRevisionsTransportSettings, + settings.listCatalogTemplateRevisionsSettings(), + clientContext); + this.deleteCatalogTemplateRevisionCallable = + callableFactory.createUnaryCallable( + deleteCatalogTemplateRevisionTransportSettings, + settings.deleteCatalogTemplateRevisionSettings(), + clientContext); + this.deleteCatalogTemplateRevisionOperationCallable = + callableFactory.createOperationCallable( + deleteCatalogTemplateRevisionTransportSettings, + settings.deleteCatalogTemplateRevisionOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.createApplicationCallable = + callableFactory.createUnaryCallable( + createApplicationTransportSettings, + settings.createApplicationSettings(), + clientContext); + this.getApplicationCallable = + callableFactory.createUnaryCallable( + getApplicationTransportSettings, settings.getApplicationSettings(), clientContext); + this.listApplicationsCallable = + callableFactory.createUnaryCallable( + listApplicationsTransportSettings, settings.listApplicationsSettings(), clientContext); + this.listApplicationsPagedCallable = + callableFactory.createPagedCallable( + listApplicationsTransportSettings, settings.listApplicationsSettings(), clientContext); + this.updateApplicationCallable = + callableFactory.createUnaryCallable( + updateApplicationTransportSettings, + settings.updateApplicationSettings(), + clientContext); + this.deleteApplicationCallable = + callableFactory.createUnaryCallable( + deleteApplicationTransportSettings, + settings.deleteApplicationSettings(), + clientContext); + this.deleteApplicationOperationCallable = + callableFactory.createOperationCallable( + deleteApplicationTransportSettings, + settings.deleteApplicationOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deployApplicationCallable = + callableFactory.createUnaryCallable( + deployApplicationTransportSettings, + settings.deployApplicationSettings(), + clientContext); + this.deployApplicationOperationCallable = + callableFactory.createOperationCallable( + deployApplicationTransportSettings, + settings.deployApplicationOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.previewApplicationCallable = + callableFactory.createUnaryCallable( + previewApplicationTransportSettings, + settings.previewApplicationSettings(), + clientContext); + this.previewApplicationOperationCallable = + callableFactory.createOperationCallable( + previewApplicationTransportSettings, + settings.previewApplicationOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.fetchApplicationAssessmentReportCallable = + callableFactory.createUnaryCallable( + fetchApplicationAssessmentReportTransportSettings, + settings.fetchApplicationAssessmentReportSettings(), + clientContext); + this.generateApplicationAssessmentReportCallable = + callableFactory.createUnaryCallable( + generateApplicationAssessmentReportTransportSettings, + settings.generateApplicationAssessmentReportSettings(), + clientContext); + this.generateApplicationAssessmentReportOperationCallable = + callableFactory.createOperationCallable( + generateApplicationAssessmentReportTransportSettings, + settings.generateApplicationAssessmentReportOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.generateApplicationTemplateAssessmentReportCallable = + callableFactory.createUnaryCallable( + generateApplicationTemplateAssessmentReportTransportSettings, + settings.generateApplicationTemplateAssessmentReportSettings(), + clientContext); + this.generateApplicationTemplateAssessmentReportOperationCallable = + callableFactory.createOperationCallable( + generateApplicationTemplateAssessmentReportTransportSettings, + settings.generateApplicationTemplateAssessmentReportOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.generateAssessmentReportCallable = + callableFactory.createUnaryCallable( + generateAssessmentReportTransportSettings, + settings.generateAssessmentReportSettings(), + clientContext); + this.generateAssessmentReportOperationCallable = + callableFactory.createOperationCallable( + generateAssessmentReportTransportSettings, + settings.generateAssessmentReportOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.generateTerraformPlanAssessmentReportCallable = + callableFactory.createUnaryCallable( + generateTerraformPlanAssessmentReportTransportSettings, + settings.generateTerraformPlanAssessmentReportSettings(), + clientContext); + this.generateTerraformPlanAssessmentReportOperationCallable = + callableFactory.createOperationCallable( + generateTerraformPlanAssessmentReportTransportSettings, + settings.generateTerraformPlanAssessmentReportOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.getPolicyCallable = + callableFactory.createUnaryCallable( + getPolicyTransportSettings, settings.getPolicySettings(), clientContext); + this.listPoliciesCallable = + callableFactory.createUnaryCallable( + listPoliciesTransportSettings, settings.listPoliciesSettings(), clientContext); + this.listPoliciesPagedCallable = + callableFactory.createPagedCallable( + listPoliciesTransportSettings, settings.listPoliciesSettings(), clientContext); + this.createPolicyCallable = + callableFactory.createUnaryCallable( + createPolicyTransportSettings, settings.createPolicySettings(), clientContext); + this.updatePolicyCallable = + callableFactory.createUnaryCallable( + updatePolicyTransportSettings, settings.updatePolicySettings(), clientContext); + this.deletePolicyCallable = + callableFactory.createUnaryCallable( + deletePolicyTransportSettings, settings.deletePolicySettings(), clientContext); + this.fetchFrameworksCallable = + callableFactory.createUnaryCallable( + fetchFrameworksTransportSettings, settings.fetchFrameworksSettings(), clientContext); + this.fetchFrameworksPagedCallable = + callableFactory.createPagedCallable( + fetchFrameworksTransportSettings, settings.fetchFrameworksSettings(), clientContext); + this.generateApplicationIaCCallable = + callableFactory.createUnaryCallable( + generateApplicationIaCTransportSettings, + settings.generateApplicationIaCSettings(), + clientContext); + this.exportApplicationIaCCallable = + callableFactory.createUnaryCallable( + exportApplicationIaCTransportSettings, + settings.exportApplicationIaCSettings(), + clientContext); + this.exportApplicationIaCOperationCallable = + callableFactory.createOperationCallable( + exportApplicationIaCTransportSettings, + settings.exportApplicationIaCOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.importApplicationTemplateIaCCallable = + callableFactory.createUnaryCallable( + importApplicationTemplateIaCTransportSettings, + settings.importApplicationTemplateIaCSettings(), + clientContext); + this.ingestApplicationTemplateIaCCallable = + callableFactory.createUnaryCallable( + ingestApplicationTemplateIaCTransportSettings, + settings.ingestApplicationTemplateIaCSettings(), + clientContext); + this.ingestApplicationTemplateIaCOperationCallable = + callableFactory.createOperationCallable( + ingestApplicationTemplateIaCTransportSettings, + settings.ingestApplicationTemplateIaCOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.importApplicationIaCCallable = + callableFactory.createUnaryCallable( + importApplicationIaCTransportSettings, + settings.importApplicationIaCSettings(), + clientContext); + this.registerAppHubApplicationResourcesCallable = + callableFactory.createUnaryCallable( + registerAppHubApplicationResourcesTransportSettings, + settings.registerAppHubApplicationResourcesSettings(), + clientContext); + this.registerAppHubApplicationResourcesOperationCallable = + callableFactory.createOperationCallable( + registerAppHubApplicationResourcesTransportSettings, + settings.registerAppHubApplicationResourcesOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.listApplicationTemplateSystemRevisionsCallable = + callableFactory.createUnaryCallable( + listApplicationTemplateSystemRevisionsTransportSettings, + settings.listApplicationTemplateSystemRevisionsSettings(), + clientContext); + this.listApplicationTemplateSystemRevisionsPagedCallable = + callableFactory.createPagedCallable( + listApplicationTemplateSystemRevisionsTransportSettings, + settings.listApplicationTemplateSystemRevisionsSettings(), + clientContext); + this.getApplicationTemplateSystemRevisionCallable = + callableFactory.createUnaryCallable( + getApplicationTemplateSystemRevisionTransportSettings, + settings.getApplicationTemplateSystemRevisionSettings(), + clientContext); + this.recommendIAMRolesCallable = + callableFactory.createUnaryCallable( + recommendIAMRolesTransportSettings, + settings.recommendIAMRolesSettings(), + clientContext); + this.recommendIAMRolesOperationCallable = + callableFactory.createOperationCallable( + recommendIAMRolesTransportSettings, + settings.recommendIAMRolesOperationSettings(), + clientContext, + httpJsonOperationsStub); + 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.setIamPolicyCallable = + callableFactory.createUnaryCallable( + setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); + this.getIamPolicyCallable = + callableFactory.createUnaryCallable( + getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); + this.testIamPermissionsCallable = + callableFactory.createUnaryCallable( + testIamPermissionsTransportSettings, + settings.testIamPermissionsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(getSpaceMethodDescriptor); + methodDescriptors.add(listSpacesMethodDescriptor); + methodDescriptors.add(createSpaceMethodDescriptor); + methodDescriptors.add(updateSpaceMethodDescriptor); + methodDescriptors.add(deleteSpaceMethodDescriptor); + methodDescriptors.add(getApplicationTemplateMethodDescriptor); + methodDescriptors.add(listApplicationTemplatesMethodDescriptor); + methodDescriptors.add(createApplicationTemplateMethodDescriptor); + methodDescriptors.add(updateApplicationTemplateMethodDescriptor); + methodDescriptors.add(importApplicationTemplateMethodDescriptor); + methodDescriptors.add(deleteApplicationTemplateMethodDescriptor); + methodDescriptors.add(commitApplicationTemplateMethodDescriptor); + methodDescriptors.add(snapshotApplicationTemplateMethodDescriptor); + methodDescriptors.add(generateApplicationTemplateIaCMethodDescriptor); + methodDescriptors.add(exportApplicationTemplateIaCMethodDescriptor); + methodDescriptors.add(generateApplicationTemplateRevisionIaCMethodDescriptor); + methodDescriptors.add(exportApplicationTemplateRevisionIaCMethodDescriptor); + methodDescriptors.add(getComponentMethodDescriptor); + methodDescriptors.add(listComponentsMethodDescriptor); + methodDescriptors.add(createComponentMethodDescriptor); + methodDescriptors.add(updateComponentMethodDescriptor); + methodDescriptors.add(deleteComponentMethodDescriptor); + methodDescriptors.add(getConnectionMethodDescriptor); + methodDescriptors.add(listConnectionsMethodDescriptor); + methodDescriptors.add(createConnectionMethodDescriptor); + methodDescriptors.add(updateConnectionMethodDescriptor); + methodDescriptors.add(deleteConnectionMethodDescriptor); + methodDescriptors.add(getApplicationTemplateRevisionMethodDescriptor); + methodDescriptors.add(listApplicationTemplateRevisionsMethodDescriptor); + methodDescriptors.add(deleteApplicationTemplateRevisionMethodDescriptor); + methodDescriptors.add(getCatalogMethodDescriptor); + methodDescriptors.add(listCatalogsMethodDescriptor); + methodDescriptors.add(createCatalogMethodDescriptor); + methodDescriptors.add(updateCatalogMethodDescriptor); + methodDescriptors.add(deleteCatalogMethodDescriptor); + methodDescriptors.add(createCatalogTemplateMethodDescriptor); + methodDescriptors.add(getCatalogTemplateMethodDescriptor); + methodDescriptors.add(listCatalogTemplatesMethodDescriptor); + methodDescriptors.add(updateCatalogTemplateMethodDescriptor); + methodDescriptors.add(deleteCatalogTemplateMethodDescriptor); + methodDescriptors.add(createShareMethodDescriptor); + methodDescriptors.add(listSharesMethodDescriptor); + methodDescriptors.add(getShareMethodDescriptor); + methodDescriptors.add(deleteShareMethodDescriptor); + methodDescriptors.add(syncShareMethodDescriptor); + methodDescriptors.add(getSharedTemplateMethodDescriptor); + methodDescriptors.add(listSharedTemplatesMethodDescriptor); + methodDescriptors.add(getSharedTemplateRevisionMethodDescriptor); + methodDescriptors.add(listSharedTemplateRevisionsMethodDescriptor); + methodDescriptors.add(createCatalogTemplateRevisionMethodDescriptor); + methodDescriptors.add(getCatalogTemplateRevisionMethodDescriptor); + methodDescriptors.add(listCatalogTemplateRevisionsMethodDescriptor); + methodDescriptors.add(deleteCatalogTemplateRevisionMethodDescriptor); + methodDescriptors.add(createApplicationMethodDescriptor); + methodDescriptors.add(getApplicationMethodDescriptor); + methodDescriptors.add(listApplicationsMethodDescriptor); + methodDescriptors.add(updateApplicationMethodDescriptor); + methodDescriptors.add(deleteApplicationMethodDescriptor); + methodDescriptors.add(deployApplicationMethodDescriptor); + methodDescriptors.add(previewApplicationMethodDescriptor); + methodDescriptors.add(fetchApplicationAssessmentReportMethodDescriptor); + methodDescriptors.add(generateApplicationAssessmentReportMethodDescriptor); + methodDescriptors.add(generateApplicationTemplateAssessmentReportMethodDescriptor); + methodDescriptors.add(generateAssessmentReportMethodDescriptor); + methodDescriptors.add(generateTerraformPlanAssessmentReportMethodDescriptor); + methodDescriptors.add(getPolicyMethodDescriptor); + methodDescriptors.add(listPoliciesMethodDescriptor); + methodDescriptors.add(createPolicyMethodDescriptor); + methodDescriptors.add(updatePolicyMethodDescriptor); + methodDescriptors.add(deletePolicyMethodDescriptor); + methodDescriptors.add(fetchFrameworksMethodDescriptor); + methodDescriptors.add(generateApplicationIaCMethodDescriptor); + methodDescriptors.add(exportApplicationIaCMethodDescriptor); + methodDescriptors.add(importApplicationTemplateIaCMethodDescriptor); + methodDescriptors.add(ingestApplicationTemplateIaCMethodDescriptor); + methodDescriptors.add(importApplicationIaCMethodDescriptor); + methodDescriptors.add(registerAppHubApplicationResourcesMethodDescriptor); + methodDescriptors.add(listApplicationTemplateSystemRevisionsMethodDescriptor); + methodDescriptors.add(getApplicationTemplateSystemRevisionMethodDescriptor); + methodDescriptors.add(recommendIAMRolesMethodDescriptor); + methodDescriptors.add(listLocationsMethodDescriptor); + methodDescriptors.add(getLocationMethodDescriptor); + methodDescriptors.add(setIamPolicyMethodDescriptor); + methodDescriptors.add(getIamPolicyMethodDescriptor); + methodDescriptors.add(testIamPermissionsMethodDescriptor); + return methodDescriptors; + } + + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable getSpaceCallable() { + return getSpaceCallable; + } + + @Override + public UnaryCallable listSpacesCallable() { + return listSpacesCallable; + } + + @Override + public UnaryCallable listSpacesPagedCallable() { + return listSpacesPagedCallable; + } + + @Override + public UnaryCallable createSpaceCallable() { + return createSpaceCallable; + } + + @Override + public UnaryCallable updateSpaceCallable() { + return updateSpaceCallable; + } + + @Override + public UnaryCallable deleteSpaceCallable() { + return deleteSpaceCallable; + } + + @Override + public UnaryCallable + getApplicationTemplateCallable() { + return getApplicationTemplateCallable; + } + + @Override + public UnaryCallable + listApplicationTemplatesCallable() { + return listApplicationTemplatesCallable; + } + + @Override + public UnaryCallable + listApplicationTemplatesPagedCallable() { + return listApplicationTemplatesPagedCallable; + } + + @Override + public UnaryCallable + createApplicationTemplateCallable() { + return createApplicationTemplateCallable; + } + + @Override + public UnaryCallable + updateApplicationTemplateCallable() { + return updateApplicationTemplateCallable; + } + + @Override + public UnaryCallable + importApplicationTemplateCallable() { + return importApplicationTemplateCallable; + } + + @Override + public UnaryCallable + deleteApplicationTemplateCallable() { + return deleteApplicationTemplateCallable; + } + + @Override + public UnaryCallable + commitApplicationTemplateCallable() { + return commitApplicationTemplateCallable; + } + + @Override + public UnaryCallable + snapshotApplicationTemplateCallable() { + return snapshotApplicationTemplateCallable; + } + + @Override + public OperationCallable< + SnapshotApplicationTemplateRequest, + SnapshotApplicationTemplateResponse, + OperationMetadata> + snapshotApplicationTemplateOperationCallable() { + return snapshotApplicationTemplateOperationCallable; + } + + @Override + public UnaryCallable< + GenerateApplicationTemplateIaCRequest, GenerateApplicationTemplateIaCResponse> + generateApplicationTemplateIaCCallable() { + return generateApplicationTemplateIaCCallable; + } + + @Override + public UnaryCallable + exportApplicationTemplateIaCCallable() { + return exportApplicationTemplateIaCCallable; + } + + @Override + public OperationCallable< + ExportApplicationTemplateIaCRequest, + ExportApplicationTemplateIaCResponse, + OperationMetadata> + exportApplicationTemplateIaCOperationCallable() { + return exportApplicationTemplateIaCOperationCallable; + } + + @Override + public UnaryCallable< + GenerateApplicationTemplateRevisionIaCRequest, + GenerateApplicationTemplateRevisionIaCResponse> + generateApplicationTemplateRevisionIaCCallable() { + return generateApplicationTemplateRevisionIaCCallable; + } + + @Override + public UnaryCallable + exportApplicationTemplateRevisionIaCCallable() { + return exportApplicationTemplateRevisionIaCCallable; + } + + @Override + public OperationCallable< + ExportApplicationTemplateRevisionIaCRequest, + ExportApplicationTemplateRevisionIaCResponse, + OperationMetadata> + exportApplicationTemplateRevisionIaCOperationCallable() { + return exportApplicationTemplateRevisionIaCOperationCallable; + } + + @Override + public UnaryCallable getComponentCallable() { + return getComponentCallable; + } + + @Override + public UnaryCallable listComponentsCallable() { + return listComponentsCallable; + } + + @Override + public UnaryCallable + listComponentsPagedCallable() { + return listComponentsPagedCallable; + } + + @Override + public UnaryCallable createComponentCallable() { + return createComponentCallable; + } + + @Override + public UnaryCallable updateComponentCallable() { + return updateComponentCallable; + } + + @Override + public UnaryCallable deleteComponentCallable() { + return deleteComponentCallable; + } + + @Override + public UnaryCallable getConnectionCallable() { + return getConnectionCallable; + } + + @Override + public UnaryCallable listConnectionsCallable() { + return listConnectionsCallable; + } + + @Override + public UnaryCallable + listConnectionsPagedCallable() { + return listConnectionsPagedCallable; + } + + @Override + public UnaryCallable createConnectionCallable() { + return createConnectionCallable; + } + + @Override + public UnaryCallable updateConnectionCallable() { + return updateConnectionCallable; + } + + @Override + public UnaryCallable deleteConnectionCallable() { + return deleteConnectionCallable; + } + + @Override + public UnaryCallable + getApplicationTemplateRevisionCallable() { + return getApplicationTemplateRevisionCallable; + } + + @Override + public UnaryCallable< + ListApplicationTemplateRevisionsRequest, ListApplicationTemplateRevisionsResponse> + listApplicationTemplateRevisionsCallable() { + return listApplicationTemplateRevisionsCallable; + } + + @Override + public UnaryCallable< + ListApplicationTemplateRevisionsRequest, ListApplicationTemplateRevisionsPagedResponse> + listApplicationTemplateRevisionsPagedCallable() { + return listApplicationTemplateRevisionsPagedCallable; + } + + @Override + public UnaryCallable + deleteApplicationTemplateRevisionCallable() { + return deleteApplicationTemplateRevisionCallable; + } + + @Override + public UnaryCallable getCatalogCallable() { + return getCatalogCallable; + } + + @Override + public UnaryCallable listCatalogsCallable() { + return listCatalogsCallable; + } + + @Override + public UnaryCallable listCatalogsPagedCallable() { + return listCatalogsPagedCallable; + } + + @Override + public UnaryCallable createCatalogCallable() { + return createCatalogCallable; + } + + @Override + public UnaryCallable updateCatalogCallable() { + return updateCatalogCallable; + } + + @Override + public UnaryCallable deleteCatalogCallable() { + return deleteCatalogCallable; + } + + @Override + public OperationCallable + deleteCatalogOperationCallable() { + return deleteCatalogOperationCallable; + } + + @Override + public UnaryCallable + createCatalogTemplateCallable() { + return createCatalogTemplateCallable; + } + + @Override + public UnaryCallable getCatalogTemplateCallable() { + return getCatalogTemplateCallable; + } + + @Override + public UnaryCallable + listCatalogTemplatesCallable() { + return listCatalogTemplatesCallable; + } + + @Override + public UnaryCallable + listCatalogTemplatesPagedCallable() { + return listCatalogTemplatesPagedCallable; + } + + @Override + public UnaryCallable + updateCatalogTemplateCallable() { + return updateCatalogTemplateCallable; + } + + @Override + public UnaryCallable deleteCatalogTemplateCallable() { + return deleteCatalogTemplateCallable; + } + + @Override + public OperationCallable + deleteCatalogTemplateOperationCallable() { + return deleteCatalogTemplateOperationCallable; + } + + @Override + public UnaryCallable createShareCallable() { + return createShareCallable; + } + + @Override + public OperationCallable + createShareOperationCallable() { + return createShareOperationCallable; + } + + @Override + public UnaryCallable listSharesCallable() { + return listSharesCallable; + } + + @Override + public UnaryCallable listSharesPagedCallable() { + return listSharesPagedCallable; + } + + @Override + public UnaryCallable getShareCallable() { + return getShareCallable; + } + + @Override + public UnaryCallable deleteShareCallable() { + return deleteShareCallable; + } + + @Override + public OperationCallable + deleteShareOperationCallable() { + return deleteShareOperationCallable; + } + + @Override + public UnaryCallable syncShareCallable() { + return syncShareCallable; + } + + @Override + public OperationCallable + syncShareOperationCallable() { + return syncShareOperationCallable; + } + + @Override + public UnaryCallable getSharedTemplateCallable() { + return getSharedTemplateCallable; + } + + @Override + public UnaryCallable + listSharedTemplatesCallable() { + return listSharedTemplatesCallable; + } + + @Override + public UnaryCallable + listSharedTemplatesPagedCallable() { + return listSharedTemplatesPagedCallable; + } + + @Override + public UnaryCallable + getSharedTemplateRevisionCallable() { + return getSharedTemplateRevisionCallable; + } + + @Override + public UnaryCallable + listSharedTemplateRevisionsCallable() { + return listSharedTemplateRevisionsCallable; + } + + @Override + public UnaryCallable + listSharedTemplateRevisionsPagedCallable() { + return listSharedTemplateRevisionsPagedCallable; + } + + @Override + public UnaryCallable + createCatalogTemplateRevisionCallable() { + return createCatalogTemplateRevisionCallable; + } + + @Override + public OperationCallable< + CreateCatalogTemplateRevisionRequest, CatalogTemplateRevision, OperationMetadata> + createCatalogTemplateRevisionOperationCallable() { + return createCatalogTemplateRevisionOperationCallable; + } + + @Override + public UnaryCallable + getCatalogTemplateRevisionCallable() { + return getCatalogTemplateRevisionCallable; + } + + @Override + public UnaryCallable + listCatalogTemplateRevisionsCallable() { + return listCatalogTemplateRevisionsCallable; + } + + @Override + public UnaryCallable< + ListCatalogTemplateRevisionsRequest, ListCatalogTemplateRevisionsPagedResponse> + listCatalogTemplateRevisionsPagedCallable() { + return listCatalogTemplateRevisionsPagedCallable; + } + + @Override + public UnaryCallable + deleteCatalogTemplateRevisionCallable() { + return deleteCatalogTemplateRevisionCallable; + } + + @Override + public OperationCallable + deleteCatalogTemplateRevisionOperationCallable() { + return deleteCatalogTemplateRevisionOperationCallable; + } + + @Override + public UnaryCallable createApplicationCallable() { + return createApplicationCallable; + } + + @Override + public UnaryCallable getApplicationCallable() { + return getApplicationCallable; + } + + @Override + public UnaryCallable + listApplicationsCallable() { + return listApplicationsCallable; + } + + @Override + public UnaryCallable + listApplicationsPagedCallable() { + return listApplicationsPagedCallable; + } + + @Override + public UnaryCallable updateApplicationCallable() { + return updateApplicationCallable; + } + + @Override + public UnaryCallable deleteApplicationCallable() { + return deleteApplicationCallable; + } + + @Override + public OperationCallable + deleteApplicationOperationCallable() { + return deleteApplicationOperationCallable; + } + + @Override + public UnaryCallable deployApplicationCallable() { + return deployApplicationCallable; + } + + @Override + public OperationCallable + deployApplicationOperationCallable() { + return deployApplicationOperationCallable; + } + + @Override + public UnaryCallable previewApplicationCallable() { + return previewApplicationCallable; + } + + @Override + public OperationCallable + previewApplicationOperationCallable() { + return previewApplicationOperationCallable; + } + + @Override + public UnaryCallable< + FetchApplicationAssessmentReportRequest, FetchApplicationAssessmentReportResponse> + fetchApplicationAssessmentReportCallable() { + return fetchApplicationAssessmentReportCallable; + } + + @Override + public UnaryCallable + generateApplicationAssessmentReportCallable() { + return generateApplicationAssessmentReportCallable; + } + + @Override + public OperationCallable< + GenerateApplicationAssessmentReportRequest, + GenerateApplicationAssessmentReportResponse, + OperationMetadata> + generateApplicationAssessmentReportOperationCallable() { + return generateApplicationAssessmentReportOperationCallable; + } + + @Override + public UnaryCallable + generateApplicationTemplateAssessmentReportCallable() { + return generateApplicationTemplateAssessmentReportCallable; + } + + @Override + public OperationCallable< + GenerateApplicationTemplateAssessmentReportRequest, + GenerateApplicationTemplateAssessmentReportResponse, + OperationMetadata> + generateApplicationTemplateAssessmentReportOperationCallable() { + return generateApplicationTemplateAssessmentReportOperationCallable; + } + + @Override + public UnaryCallable + generateAssessmentReportCallable() { + return generateAssessmentReportCallable; + } + + @Override + public OperationCallable< + GenerateAssessmentReportRequest, GenerateAssessmentReportResponse, OperationMetadata> + generateAssessmentReportOperationCallable() { + return generateAssessmentReportOperationCallable; + } + + @Override + public UnaryCallable + generateTerraformPlanAssessmentReportCallable() { + return generateTerraformPlanAssessmentReportCallable; + } + + @Override + public OperationCallable< + GenerateTerraformPlanAssessmentReportRequest, + GenerateTerraformPlanAssessmentReportResponse, + OperationMetadata> + generateTerraformPlanAssessmentReportOperationCallable() { + return generateTerraformPlanAssessmentReportOperationCallable; + } + + @Override + public UnaryCallable getPolicyCallable() { + return getPolicyCallable; + } + + @Override + public UnaryCallable listPoliciesCallable() { + return listPoliciesCallable; + } + + @Override + public UnaryCallable listPoliciesPagedCallable() { + return listPoliciesPagedCallable; + } + + @Override + public UnaryCallable createPolicyCallable() { + return createPolicyCallable; + } + + @Override + public UnaryCallable updatePolicyCallable() { + return updatePolicyCallable; + } + + @Override + public UnaryCallable deletePolicyCallable() { + return deletePolicyCallable; + } + + @Override + public UnaryCallable fetchFrameworksCallable() { + return fetchFrameworksCallable; + } + + @Override + public UnaryCallable + fetchFrameworksPagedCallable() { + return fetchFrameworksPagedCallable; + } + + @Override + public UnaryCallable + generateApplicationIaCCallable() { + return generateApplicationIaCCallable; + } + + @Override + public UnaryCallable exportApplicationIaCCallable() { + return exportApplicationIaCCallable; + } + + @Override + public OperationCallable< + ExportApplicationIaCRequest, ExportApplicationIaCResponse, OperationMetadata> + exportApplicationIaCOperationCallable() { + return exportApplicationIaCOperationCallable; + } + + @Override + public UnaryCallable + importApplicationTemplateIaCCallable() { + return importApplicationTemplateIaCCallable; + } + + @Override + public UnaryCallable + ingestApplicationTemplateIaCCallable() { + return ingestApplicationTemplateIaCCallable; + } + + @Override + public OperationCallable< + IngestApplicationTemplateIaCRequest, + IngestApplicationTemplateIaCResponse, + OperationMetadata> + ingestApplicationTemplateIaCOperationCallable() { + return ingestApplicationTemplateIaCOperationCallable; + } + + @Override + public UnaryCallable + importApplicationIaCCallable() { + return importApplicationIaCCallable; + } + + @Override + public UnaryCallable + registerAppHubApplicationResourcesCallable() { + return registerAppHubApplicationResourcesCallable; + } + + @Override + public OperationCallable< + RegisterAppHubApplicationResourcesRequest, + RegisterAppHubApplicationResourcesResponse, + OperationMetadata> + registerAppHubApplicationResourcesOperationCallable() { + return registerAppHubApplicationResourcesOperationCallable; + } + + @Override + public UnaryCallable< + ListApplicationTemplateSystemRevisionsRequest, + ListApplicationTemplateSystemRevisionsResponse> + listApplicationTemplateSystemRevisionsCallable() { + return listApplicationTemplateSystemRevisionsCallable; + } + + @Override + public UnaryCallable< + ListApplicationTemplateSystemRevisionsRequest, + ListApplicationTemplateSystemRevisionsPagedResponse> + listApplicationTemplateSystemRevisionsPagedCallable() { + return listApplicationTemplateSystemRevisionsPagedCallable; + } + + @Override + public UnaryCallable< + GetApplicationTemplateSystemRevisionRequest, ApplicationTemplateSystemRevision> + getApplicationTemplateSystemRevisionCallable() { + return getApplicationTemplateSystemRevisionCallable; + } + + @Override + public UnaryCallable recommendIAMRolesCallable() { + return recommendIAMRolesCallable; + } + + @Override + public OperationCallable + recommendIAMRolesOperationCallable() { + return recommendIAMRolesOperationCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @Override + public UnaryCallable setIamPolicyCallable() { + return setIamPolicyCallable; + } + + @Override + public UnaryCallable getIamPolicyCallable() { + return getIamPolicyCallable; + } + + @Override + public UnaryCallable + testIamPermissionsCallable() { + return testIamPermissionsCallable; + } + + @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-designcenter/google-cloud-designcenter/src/main/java/com/google/cloud/designcenter/v1/stub/Version.java b/java-designcenter/google-cloud-designcenter/src/main/java/com/google/cloud/designcenter/v1/stub/Version.java new file mode 100644 index 000000000000..cf709b733524 --- /dev/null +++ b/java-designcenter/google-cloud-designcenter/src/main/java/com/google/cloud/designcenter/v1/stub/Version.java @@ -0,0 +1,27 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.stub; + +import com.google.api.core.InternalApi; + +@InternalApi("For internal use only") +final class Version { + // {x-version-update-start:google-cloud-designcenter:current} + static final String VERSION = "0.0.0-SNAPSHOT"; + // {x-version-update-end} + +} diff --git a/java-designcenter/google-cloud-designcenter/src/main/resources/META-INF/native-image/com.google.cloud.designcenter.v1/reflect-config.json b/java-designcenter/google-cloud-designcenter/src/main/resources/META-INF/native-image/com.google.cloud.designcenter.v1/reflect-config.json new file mode 100644 index 000000000000..26679938bfac --- /dev/null +++ b/java-designcenter/google-cloud-designcenter/src/main/resources/META-INF/native-image/com.google.cloud.designcenter.v1/reflect-config.json @@ -0,0 +1,9182 @@ +[ + { + "name": "com.google.api.BatchingConfigProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingConfigProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingSettingsProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingSettingsProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "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.FieldInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FieldInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FieldInfo$Format", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FlowControlLimitExceededBehaviorProto", + "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.PythonSettings$ExperimentalFeatures", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings$ExperimentalFeatures$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.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.TypeReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.TypeReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.apphub.v1.Application", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.apphub.v1.Application$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.apphub.v1.Application$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.apphub.v1.ApplicationProperties", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.apphub.v1.ApplicationProperties$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.apphub.v1.ApplicationType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.apphub.v1.ApplicationType$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.apphub.v1.ApplicationType$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.apphub.v1.Attributes", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.apphub.v1.Attributes$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.apphub.v1.ContactInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.apphub.v1.ContactInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.apphub.v1.Criticality", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.apphub.v1.Criticality$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.apphub.v1.Criticality$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.apphub.v1.Environment", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.apphub.v1.Environment$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.apphub.v1.Environment$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.apphub.v1.ExtendedMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.apphub.v1.ExtendedMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.apphub.v1.FunctionalType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.apphub.v1.FunctionalType$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.apphub.v1.FunctionalType$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.apphub.v1.Identity", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.apphub.v1.Identity$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.apphub.v1.RegistrationType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.apphub.v1.RegistrationType$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.apphub.v1.RegistrationType$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.apphub.v1.Scope", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.apphub.v1.Scope$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.apphub.v1.Scope$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ApplyResults", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ApplyResults$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.AutoMigrationConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.AutoMigrationConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.CreateDeploymentGroupRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.CreateDeploymentGroupRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.CreateDeploymentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.CreateDeploymentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.CreatePreviewRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.CreatePreviewRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.DeleteDeploymentGroupRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.DeleteDeploymentGroupRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.DeleteDeploymentGroupRequest$DeploymentReferencePolicy", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.DeleteDeploymentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.DeleteDeploymentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.DeleteDeploymentRequest$DeletePolicy", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.DeletePreviewRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.DeletePreviewRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.DeleteStatefileRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.DeleteStatefileRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.Deployment", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.Deployment$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.Deployment$ErrorCode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.Deployment$LockState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.Deployment$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.DeploymentGroup", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.DeploymentGroup$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.DeploymentGroup$ProvisioningState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.DeploymentGroup$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.DeploymentGroupRevision", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.DeploymentGroupRevision$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.DeploymentOperationMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.DeploymentOperationMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.DeploymentOperationMetadata$DeploymentStep", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.DeploymentOperationSummary", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.DeploymentOperationSummary$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.DeploymentSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.DeploymentSource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.DeploymentSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.DeploymentSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.DeploymentUnit", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.DeploymentUnit$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.DeploymentUnitProgress", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.DeploymentUnitProgress$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.DeploymentUnitProgress$Intent", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.DeploymentUnitProgress$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.DeprovisionDeploymentGroupRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.DeprovisionDeploymentGroupRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ExportDeploymentStatefileRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ExportDeploymentStatefileRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ExportLockInfoRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ExportLockInfoRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ExportPreviewResultRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ExportPreviewResultRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ExportPreviewResultResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ExportPreviewResultResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ExportRevisionStatefileRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ExportRevisionStatefileRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ExternalValueSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ExternalValueSource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.GetAutoMigrationConfigRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.GetAutoMigrationConfigRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.GetDeploymentGroupRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.GetDeploymentGroupRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.GetDeploymentGroupRevisionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.GetDeploymentGroupRevisionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.GetDeploymentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.GetDeploymentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.GetPreviewRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.GetPreviewRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.GetResourceChangeRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.GetResourceChangeRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.GetResourceDriftRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.GetResourceDriftRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.GetResourceRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.GetResourceRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.GetRevisionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.GetRevisionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.GetTerraformVersionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.GetTerraformVersionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.GitSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.GitSource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ImportStatefileRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ImportStatefileRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ListDeploymentGroupRevisionsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ListDeploymentGroupRevisionsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ListDeploymentGroupRevisionsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ListDeploymentGroupRevisionsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ListDeploymentGroupsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ListDeploymentGroupsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ListDeploymentGroupsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ListDeploymentGroupsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ListDeploymentsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ListDeploymentsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ListDeploymentsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ListDeploymentsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ListPreviewsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ListPreviewsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ListPreviewsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ListPreviewsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ListResourceChangesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ListResourceChangesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ListResourceChangesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ListResourceChangesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ListResourceDriftsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ListResourceDriftsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ListResourceDriftsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ListResourceDriftsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ListResourcesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ListResourcesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ListResourcesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ListResourcesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ListRevisionsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ListRevisionsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ListRevisionsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ListRevisionsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ListTerraformVersionsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ListTerraformVersionsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ListTerraformVersionsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ListTerraformVersionsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.LockDeploymentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.LockDeploymentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.LockInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.LockInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.OperationMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.OperationMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.Preview", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.Preview$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.Preview$ErrorCode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.Preview$PreviewMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.Preview$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.PreviewArtifacts", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.PreviewArtifacts$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.PreviewOperationMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.PreviewOperationMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.PreviewOperationMetadata$PreviewStep", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.PreviewResult", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.PreviewResult$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.PropertyChange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.PropertyChange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.PropertyDrift", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.PropertyDrift$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ProviderConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ProviderConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ProviderConfig$ProviderSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata$ProvisionDeploymentGroupStep", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ProvisionDeploymentGroupRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ProvisionDeploymentGroupRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.QuotaValidation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.Resource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.Resource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.Resource$Intent", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.Resource$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ResourceCAIInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ResourceCAIInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ResourceChange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ResourceChange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ResourceChange$Intent", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ResourceChangeTerraformInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ResourceChangeTerraformInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ResourceDrift", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ResourceDrift$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ResourceDriftTerraformInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ResourceDriftTerraformInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ResourceTerraformInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ResourceTerraformInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.Revision", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.Revision$Action", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.Revision$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.Revision$ErrorCode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.Revision$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.Statefile", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.Statefile$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.TerraformBlueprint", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.TerraformBlueprint$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.TerraformError", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.TerraformError$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.TerraformOutput", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.TerraformOutput$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.TerraformVariable", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.TerraformVariable$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.TerraformVersion", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.TerraformVersion$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.TerraformVersion$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.UnlockDeploymentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.UnlockDeploymentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.UpdateAutoMigrationConfigRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.UpdateAutoMigrationConfigRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.UpdateDeploymentGroupRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.UpdateDeploymentGroupRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.UpdateDeploymentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.UpdateDeploymentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.AdcMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.AdcMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.AlternateDefault", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.AlternateDefault$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.AlternateDefaultInput", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.AlternateDefaultInput$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ApiInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ApiInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.AppHubApplicationParameters", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.AppHubApplicationParameters$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.Application", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.Application$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.Application$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.Application$UpdateStrategy", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ApplicationCompositionType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ApplicationOperation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ApplicationOperationMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ApplicationOperationMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ApplicationOutputParameters", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ApplicationOutputParameters$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ApplicationTemplate", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ApplicationTemplate$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ApplicationTemplate$IACFormat", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ApplicationTemplateOperation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ApplicationTemplateRevision", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ApplicationTemplateRevision$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ApplicationType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ApplyCondition", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ApplyCondition$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ArtifactLocation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ArtifactLocation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.AssessedFramework", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.AssessedFramework$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.AssessmentFinding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.AssessmentFinding$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.AssessmentFinding$FindingADCMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.AssessmentFinding$FindingADCMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.AssessmentFinding$Severity", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.AssessmentFinding$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.AssessmentReport", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.AssessmentReport$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.AssetDetails", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.AssetDetails$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.Catalog", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.Catalog$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.CatalogTemplate", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.CatalogTemplate$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.CatalogTemplateRevision", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.CatalogTemplateRevision$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.CatalogTemplateRevision$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.CloudControl", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.CloudControl$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.CloudControl$EnforcementMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.CloudControlConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.CloudControlConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.CodePosition", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.CodePosition$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.CodeRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.CodeRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.CommitApplicationTemplateRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.CommitApplicationTemplateRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.Component", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.Component$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ComponentApplicationInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ComponentApplicationInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ComponentOutputParameters", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ComponentOutputParameters$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ComponentParameterSchema", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ComponentParameterSchema$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ComponentParameters", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ComponentParameters$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ComponentParameters$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ComponentVariable", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ComponentVariable$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.CompositeApplicationParameters", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.CompositeApplicationParameters$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ConfigureAndDeployTemplateRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ConfigureAndDeployTemplateRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ConfigureAndDeployTemplateResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ConfigureAndDeployTemplateResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.Connection", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.Connection$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ConnectionConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ConnectionConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ConnectionDependencyType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ConnectionParameters", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ConnectionParameters$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ConnectionSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ConnectionSource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ConnectionSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ConnectionSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.CreateApplicationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.CreateApplicationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.CreateApplicationTemplateRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.CreateApplicationTemplateRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.CreateCatalogRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.CreateCatalogRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.CreateCatalogTemplateRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.CreateCatalogTemplateRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.CreateCatalogTemplateRevisionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.CreateCatalogTemplateRevisionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.CreateComponentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.CreateComponentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.CreateConnectionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.CreateConnectionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.CreatePolicyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.CreatePolicyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.CreateShareRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.CreateShareRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.CreateSpaceRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.CreateSpaceRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.DeleteApplicationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.DeleteApplicationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.DeleteApplicationTemplateRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.DeleteApplicationTemplateRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.DeleteApplicationTemplateRevisionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.DeleteApplicationTemplateRevisionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.DeleteCatalogRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.DeleteCatalogRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.DeleteCatalogTemplateRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.DeleteCatalogTemplateRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.DeleteCatalogTemplateRevisionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.DeleteCatalogTemplateRevisionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.DeleteComponentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.DeleteComponentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.DeleteConnectionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.DeleteConnectionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.DeletePolicyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.DeletePolicyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.DeleteShareRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.DeleteShareRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.DeleteSpaceRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.DeleteSpaceRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.DeployApplicationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.DeployApplicationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.DeployApplicationResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.DeployApplicationResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.DeployedResource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.DeployedResource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.DeployedResourceResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.DeployedResourceResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.DeploymentAttemptMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.DeploymentAttemptMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.DeploymentError", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.DeploymentError$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.DeploymentError$ErrorType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.DeploymentFailureResolutionInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.DeploymentFailureResolutionInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.DeploymentGroupMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.DeploymentGroupMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.DeploymentMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.DeploymentMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.DeploymentOperationMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.DeploymentOperationMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.DeploymentSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.DeploymentSource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.DeploymentTarget", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.DeploymentTarget$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.DeploymentUnitProgress", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.DeploymentUnitProgress$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.DeveloperConnectConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.DeveloperConnectConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.DeveloperConnectExportConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.DeveloperConnectExportConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.DisplayVariable", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.DisplayVariable$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.DisplayVariableAlternateType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.DisplayVariableToggle", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.DisplayVariableToggle$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.DisplayVariableToggle$ToggleVariableType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.DisplayVariableVisibility", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.Domain", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.Domain$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.DomainAssessmentReport", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.DomainAssessmentReport$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.DomainAssessmentReport$DomainRedirectInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.DomainAssessmentReport$DomainRedirectInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.DomainAssessmentReport$Status", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ExportApplicationIaCRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ExportApplicationIaCRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ExportApplicationIaCResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ExportApplicationIaCResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ExportIaCConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ExportIaCConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.FetchFrameworksRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.FetchFrameworksRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.FetchFrameworksResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.FetchFrameworksResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.Framework", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.Framework$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.Framework$DeploymentStatus", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.GKEDeploymentTarget", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.GKEDeploymentTarget$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.GenerateApplicationIaCRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.GenerateApplicationIaCRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.GenerateApplicationIaCResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.GenerateApplicationIaCResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest$IACFormat", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest$IACFormat", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata$AssessmentStep", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.GenerateAssessmentReportRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.GenerateAssessmentReportRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.GenerateAssessmentReportResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.GenerateAssessmentReportResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.GetApplicationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.GetApplicationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.GetApplicationTemplateRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.GetApplicationTemplateRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.GetApplicationTemplateRevisionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.GetApplicationTemplateRevisionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.GetApplicationTemplateSystemRevisionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.GetApplicationTemplateSystemRevisionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.GetCatalogRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.GetCatalogRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.GetCatalogTemplateRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.GetCatalogTemplateRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.GetCatalogTemplateRevisionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.GetCatalogTemplateRevisionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.GetComponentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.GetComponentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.GetConnectionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.GetConnectionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.GetPolicyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.GetPolicyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.GetShareRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.GetShareRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.GetSharedTemplateRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.GetSharedTemplateRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.GetSharedTemplateRevisionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.GetSharedTemplateRevisionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.GetSpaceRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.GetSpaceRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.GitReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.GitReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.GitSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.GitSource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.HelmApplicationOutputParameters", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.HelmApplicationOutputParameters$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.HelmChartInput", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.HelmChartInput$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.HelmChartMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.HelmChartMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.HelmChartOutput", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.HelmChartOutput$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.IACFormat", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.IACSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.IaCFile", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.IaCFile$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.IaCModule", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.IaCModule$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.IacFormatInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.IacFormatInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ImportApplicationIaCRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ImportApplicationIaCRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ImportApplicationIaCResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ImportApplicationIaCResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ImportApplicationIaCResponse$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ImportApplicationTemplateRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ImportApplicationTemplateRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ImportIaCError", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ImportIaCError$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ImportIaCError$ErrorCode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ImportIaCError$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ImportSerializedApplicationTemplateRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ImportSerializedApplicationTemplateRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.InferredMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.InferredMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.InputVariableAlias", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.InputVariableAlias$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ListApplicationTemplatesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ListApplicationTemplatesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ListApplicationTemplatesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ListApplicationTemplatesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ListApplicationsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ListApplicationsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ListApplicationsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ListApplicationsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionMetadataResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionMetadataResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ListCatalogTemplatesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ListCatalogTemplatesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ListCatalogTemplatesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ListCatalogTemplatesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ListCatalogsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ListCatalogsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ListCatalogsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ListCatalogsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ListComponentsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ListComponentsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ListComponentsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ListComponentsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ListConnectionsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ListConnectionsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ListConnectionsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ListConnectionsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ListPoliciesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ListPoliciesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ListPoliciesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ListPoliciesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ListSharedTemplatesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ListSharedTemplatesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ListSharedTemplatesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ListSharedTemplatesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ListSharesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ListSharesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ListSharesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ListSharesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ListSpacesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ListSpacesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ListSpacesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ListSpacesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.LogicalProduct", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.LogicalProduct$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.MetadataInput", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.MetadataInput$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.MetadataInputSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.MetadataInputSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ModuleDependency", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ModuleDependency$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ModuleDetails", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ModuleDetails$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ModuleInput", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ModuleInput$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ModuleOutput", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ModuleOutput$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ModuleResource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ModuleResource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.OciRepo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.OciRepo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.OperationMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.OperationMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.Parameter", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.Parameter$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ParameterSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ParameterSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ParameterSpec$ValueType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.Policy", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.Policy$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.Policy$PolicyType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.PreviewApplicationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.PreviewApplicationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.PreviewApplicationResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.PreviewApplicationResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.PreviewOperationMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.PreviewOperationMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ProjectParameters", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ProjectParameters$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ProjectParametersList", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ProjectParametersList$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ProviderDependency", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ProviderDependency$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ProviderVersion", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ProviderVersion$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata$DeploymentStep", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.RecommendIAMRolesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.RecommendIAMRolesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.RecommendIAMRolesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.RecommendIAMRolesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.RemediationStep", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.RemediationStep$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.Resource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.Resource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.Resource$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ResourceType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ResourceType$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.RoleInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.RoleInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.RolesAndApisConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.RolesAndApisConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.RootInputVariable", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.RootInputVariable$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.RootModule", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.RootModule$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.RootModuleDependency", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.RootModuleDependency$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.RootModulesMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.RootModulesMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.RootOutputVariable", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.RootOutputVariable$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.SCCMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.SCCMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.SaaSRuntimeContext", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.SaaSRuntimeContext$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ScoreCard", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ScoreCard$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.SerializedApplicationTemplate", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.SerializedApplicationTemplate$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.SerializedComponent", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.SerializedComponent$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.SerializedConnection", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.SerializedConnection$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.SerializedPolicy", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.SerializedPolicy$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.SerializedPolicy$PolicyType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.SerializedProvider", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.SerializedProvider$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.Share", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.Share$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.Share$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.SharedTemplate", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.SharedTemplate$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.SharedTemplateRevision", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.SharedTemplateRevision$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.SkippedDomain", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.SkippedDomain$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.SkippedDomain$Reason", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.SnapshotApplicationTemplateRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.SnapshotApplicationTemplateRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.SnapshotApplicationTemplateResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.SnapshotApplicationTemplateResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.Space", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.Space$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.SyncShareRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.SyncShareRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.TFBlueprintMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.TFBlueprintMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.TemplateCategory", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.TemplateConnections", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.TemplateConnections$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.TemplateInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.TemplateInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.TemplateRequirements", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.TemplateRequirements$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.TemplateRoles", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.TemplateRoles$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.TemplateSchema", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.TemplateSchema$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.TemplateType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.TemplateUi", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.TemplateUi$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.TemplateUiInput", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.TemplateUiInput$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.TemplateUiOutput", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.TemplateUiOutput$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.TemplateVariable", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.TemplateVariable$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.TerraformBlueprintUiMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.TerraformBlueprintUiMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.TerraformConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.TerraformConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.TerraformFile", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.TerraformFile$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.TerraformInput", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.TerraformInput$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.TerraformInputConnections", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.TerraformInputConnections$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.TerraformModule", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.TerraformModule$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.TerraformModuleConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.TerraformModuleConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.TerraformModuleMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.TerraformModuleMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.TerraformOutput", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.TerraformOutput$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.TerraformUiInput", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.TerraformUiInput$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.TerraformUiOutput", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.TerraformUiOutput$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.TerraformUiOutputDisplay", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.TerraformUiOutputDisplay$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.TerraformVariableValidation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.TerraformVariableValidation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.UnregisteredResource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.UnregisteredResource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.UpdateApplicationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.UpdateApplicationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.UpdateApplicationTemplateRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.UpdateApplicationTemplateRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.UpdateCatalogRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.UpdateCatalogRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.UpdateCatalogTemplateRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.UpdateCatalogTemplateRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.UpdateComponentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.UpdateComponentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.UpdateConnectionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.UpdateConnectionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.UpdatePolicyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.UpdatePolicyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.UpdateSpaceRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.UpdateSpaceRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.UpdatedTemplateRevision", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.UpdatedTemplateRevision$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ValueLabel", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ValueLabel$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ValueLabelInput", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.designcenter.v1.ValueLabelInput$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.iam.v1.AuditConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.AuditConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.AuditConfigDelta", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.AuditConfigDelta$Action", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.AuditConfigDelta$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.AuditLogConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.AuditLogConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.AuditLogConfig$LogType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.Binding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.Binding$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.BindingDelta", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.BindingDelta$Action", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.BindingDelta$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.GetIamPolicyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.GetIamPolicyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.GetPolicyOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.GetPolicyOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.Policy", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.Policy$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.PolicyDelta", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.PolicyDelta$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.SetIamPolicyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.SetIamPolicyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.TestIamPermissionsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.TestIamPermissionsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.TestIamPermissionsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.TestIamPermissionsResponse$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$Edition", + "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$FeatureSet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$EnforceNamingStyle", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$EnumType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$FieldPresence", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$JsonFormat", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$MessageEncoding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$RepeatedFieldEncoding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$Utf8Validation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$VisibilityFeature", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$VisibilityFeature$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$VisibilityFeature$DefaultSymbolVisibility", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$FeatureSetEditionDefault", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$FeatureSetEditionDefault$Builder", + "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$EditionDefault", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$EditionDefault$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$FeatureSupport", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$FeatureSupport$Builder", + "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$SymbolVisibility", + "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.ListValue", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.ListValue$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.NullValue", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Struct", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Struct$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.protobuf.Value", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Value$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 + }, + { + "name": "com.google.type.Expr", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.type.Expr$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + } +] \ No newline at end of file diff --git a/java-designcenter/google-cloud-designcenter/src/test/java/com/google/cloud/designcenter/v1/DesignCenterClientHttpJsonTest.java b/java-designcenter/google-cloud-designcenter/src/test/java/com/google/cloud/designcenter/v1/DesignCenterClientHttpJsonTest.java new file mode 100644 index 000000000000..e63d636fdc02 --- /dev/null +++ b/java-designcenter/google-cloud-designcenter/src/test/java/com/google/cloud/designcenter/v1/DesignCenterClientHttpJsonTest.java @@ -0,0 +1,9302 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1; + +import static com.google.cloud.designcenter.v1.DesignCenterClient.FetchFrameworksPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListApplicationTemplateRevisionsPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListApplicationTemplateSystemRevisionsPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListApplicationTemplatesPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListApplicationsPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListCatalogTemplateRevisionsPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListCatalogTemplatesPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListCatalogsPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListComponentsPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListConnectionsPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListLocationsPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListPoliciesPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListSharedTemplateRevisionsPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListSharedTemplatesPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListSharesPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListSpacesPagedResponse; + +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.apphub.v1.Attributes; +import com.google.cloud.apphub.v1.Scope; +import com.google.cloud.config.v1.Deployment; +import com.google.cloud.config.v1.DeploymentGroup; +import com.google.cloud.config.v1.Preview; +import com.google.cloud.designcenter.v1.stub.HttpJsonDesignCenterStub; +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.iam.v1.AuditConfig; +import com.google.iam.v1.Binding; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.Any; +import com.google.protobuf.ByteString; +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 DesignCenterClientHttpJsonTest { + private static MockHttpService mockService; + private static DesignCenterClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonDesignCenterStub.getMethodDescriptors(), + DesignCenterSettings.getDefaultEndpoint()); + DesignCenterSettings settings = + DesignCenterSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + DesignCenterSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = DesignCenterClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void getSpaceTest() throws Exception { + Space expectedResponse = + Space.newBuilder() + .setName(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEnableGcpSharedTemplates(true) + .setGcsBucket("gcsBucket239654881") + .putAllTags(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + SpaceName name = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]"); + + Space actualResponse = client.getSpace(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 getSpaceExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SpaceName name = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]"); + client.getSpace(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSpaceTest2() throws Exception { + Space expectedResponse = + Space.newBuilder() + .setName(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEnableGcpSharedTemplates(true) + .setGcsBucket("gcsBucket239654881") + .putAllTags(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-1635/locations/location-1635/spaces/space-1635"; + + Space actualResponse = client.getSpace(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 getSpaceExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-1635/locations/location-1635/spaces/space-1635"; + client.getSpace(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSpacesTest() throws Exception { + Space responsesElement = Space.newBuilder().build(); + ListSpacesResponse expectedResponse = + ListSpacesResponse.newBuilder() + .setNextPageToken("") + .addAllSpaces(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListSpacesPagedResponse pagedListResponse = client.listSpaces(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSpacesList().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 listSpacesExceptionTest() 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.listSpaces(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSpacesTest2() throws Exception { + Space responsesElement = Space.newBuilder().build(); + ListSpacesResponse expectedResponse = + ListSpacesResponse.newBuilder() + .setNextPageToken("") + .addAllSpaces(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListSpacesPagedResponse pagedListResponse = client.listSpaces(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSpacesList().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 listSpacesExceptionTest2() 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.listSpaces(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createSpaceTest() throws Exception { + Space expectedResponse = + Space.newBuilder() + .setName(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEnableGcpSharedTemplates(true) + .setGcsBucket("gcsBucket239654881") + .putAllTags(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Space space = Space.newBuilder().build(); + String spaceId = "spaceId-2012163903"; + + Space actualResponse = client.createSpace(parent, space, spaceId); + 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 createSpaceExceptionTest() 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]"); + Space space = Space.newBuilder().build(); + String spaceId = "spaceId-2012163903"; + client.createSpace(parent, space, spaceId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createSpaceTest2() throws Exception { + Space expectedResponse = + Space.newBuilder() + .setName(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEnableGcpSharedTemplates(true) + .setGcsBucket("gcsBucket239654881") + .putAllTags(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + Space space = Space.newBuilder().build(); + String spaceId = "spaceId-2012163903"; + + Space actualResponse = client.createSpace(parent, space, spaceId); + 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 createSpaceExceptionTest2() 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"; + Space space = Space.newBuilder().build(); + String spaceId = "spaceId-2012163903"; + client.createSpace(parent, space, spaceId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateSpaceTest() throws Exception { + Space expectedResponse = + Space.newBuilder() + .setName(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEnableGcpSharedTemplates(true) + .setGcsBucket("gcsBucket239654881") + .putAllTags(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + Space space = + Space.newBuilder() + .setName(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEnableGcpSharedTemplates(true) + .setGcsBucket("gcsBucket239654881") + .putAllTags(new HashMap()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Space actualResponse = client.updateSpace(space, 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 updateSpaceExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Space space = + Space.newBuilder() + .setName(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEnableGcpSharedTemplates(true) + .setGcsBucket("gcsBucket239654881") + .putAllTags(new HashMap()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateSpace(space, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteSpaceTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + SpaceName name = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]"); + + client.deleteSpace(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 deleteSpaceExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SpaceName name = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]"); + client.deleteSpace(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteSpaceTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-1635/locations/location-1635/spaces/space-1635"; + + client.deleteSpace(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 deleteSpaceExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-1635/locations/location-1635/spaces/space-1635"; + client.deleteSpace(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getApplicationTemplateTest() throws Exception { + ApplicationTemplate expectedResponse = + ApplicationTemplate.newBuilder() + .setName( + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllApplicationParameters(new ArrayList()) + .setSerializedApplicationTemplate(SerializedApplicationTemplate.newBuilder().build()) + .setLatestRevision("latestRevision-1002490750") + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .setCompositionType(ApplicationCompositionType.forNumber(0)) + .addAllRootInputVariables(new ArrayList()) + .addAllRootOutputVariables(new ArrayList()) + .setSaasRuntimeContext(SaaSRuntimeContext.newBuilder().build()) + .setLatestSystemRevisionUri( + ApplicationTemplateSystemRevisionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[SYSTEM_REVISION]") + .toString()) + .setIacSource(IACSource.forNumber(0)) + .setTemplateMetadata(TFBlueprintMetadata.newBuilder().build()) + .setInputsAsRootModuleVariables(true) + .build(); + mockService.addResponse(expectedResponse); + + ApplicationTemplateName name = + ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + + ApplicationTemplate actualResponse = client.getApplicationTemplate(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 getApplicationTemplateExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ApplicationTemplateName name = + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + client.getApplicationTemplate(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getApplicationTemplateTest2() throws Exception { + ApplicationTemplate expectedResponse = + ApplicationTemplate.newBuilder() + .setName( + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllApplicationParameters(new ArrayList()) + .setSerializedApplicationTemplate(SerializedApplicationTemplate.newBuilder().build()) + .setLatestRevision("latestRevision-1002490750") + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .setCompositionType(ApplicationCompositionType.forNumber(0)) + .addAllRootInputVariables(new ArrayList()) + .addAllRootOutputVariables(new ArrayList()) + .setSaasRuntimeContext(SaaSRuntimeContext.newBuilder().build()) + .setLatestSystemRevisionUri( + ApplicationTemplateSystemRevisionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[SYSTEM_REVISION]") + .toString()) + .setIacSource(IACSource.forNumber(0)) + .setTemplateMetadata(TFBlueprintMetadata.newBuilder().build()) + .setInputsAsRootModuleVariables(true) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-2810/locations/location-2810/spaces/space-2810/applicationTemplates/applicationTemplate-2810"; + + ApplicationTemplate actualResponse = client.getApplicationTemplate(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 getApplicationTemplateExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-2810/locations/location-2810/spaces/space-2810/applicationTemplates/applicationTemplate-2810"; + client.getApplicationTemplate(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listApplicationTemplatesTest() throws Exception { + ApplicationTemplate responsesElement = ApplicationTemplate.newBuilder().build(); + ListApplicationTemplatesResponse expectedResponse = + ListApplicationTemplatesResponse.newBuilder() + .setNextPageToken("") + .addAllApplicationTemplates(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + SpaceName parent = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]"); + + ListApplicationTemplatesPagedResponse pagedListResponse = + client.listApplicationTemplates(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getApplicationTemplatesList().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 listApplicationTemplatesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SpaceName parent = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]"); + client.listApplicationTemplates(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listApplicationTemplatesTest2() throws Exception { + ApplicationTemplate responsesElement = ApplicationTemplate.newBuilder().build(); + ListApplicationTemplatesResponse expectedResponse = + ListApplicationTemplatesResponse.newBuilder() + .setNextPageToken("") + .addAllApplicationTemplates(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-2462/locations/location-2462/spaces/space-2462"; + + ListApplicationTemplatesPagedResponse pagedListResponse = + client.listApplicationTemplates(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getApplicationTemplatesList().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 listApplicationTemplatesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-2462/locations/location-2462/spaces/space-2462"; + client.listApplicationTemplates(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createApplicationTemplateTest() throws Exception { + ApplicationTemplate expectedResponse = + ApplicationTemplate.newBuilder() + .setName( + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllApplicationParameters(new ArrayList()) + .setSerializedApplicationTemplate(SerializedApplicationTemplate.newBuilder().build()) + .setLatestRevision("latestRevision-1002490750") + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .setCompositionType(ApplicationCompositionType.forNumber(0)) + .addAllRootInputVariables(new ArrayList()) + .addAllRootOutputVariables(new ArrayList()) + .setSaasRuntimeContext(SaaSRuntimeContext.newBuilder().build()) + .setLatestSystemRevisionUri( + ApplicationTemplateSystemRevisionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[SYSTEM_REVISION]") + .toString()) + .setIacSource(IACSource.forNumber(0)) + .setTemplateMetadata(TFBlueprintMetadata.newBuilder().build()) + .setInputsAsRootModuleVariables(true) + .build(); + mockService.addResponse(expectedResponse); + + SpaceName parent = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]"); + ApplicationTemplate applicationTemplate = ApplicationTemplate.newBuilder().build(); + String applicationTemplateId = "applicationTemplateId-1557848923"; + + ApplicationTemplate actualResponse = + client.createApplicationTemplate(parent, applicationTemplate, applicationTemplateId); + 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 createApplicationTemplateExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SpaceName parent = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]"); + ApplicationTemplate applicationTemplate = ApplicationTemplate.newBuilder().build(); + String applicationTemplateId = "applicationTemplateId-1557848923"; + client.createApplicationTemplate(parent, applicationTemplate, applicationTemplateId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createApplicationTemplateTest2() throws Exception { + ApplicationTemplate expectedResponse = + ApplicationTemplate.newBuilder() + .setName( + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllApplicationParameters(new ArrayList()) + .setSerializedApplicationTemplate(SerializedApplicationTemplate.newBuilder().build()) + .setLatestRevision("latestRevision-1002490750") + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .setCompositionType(ApplicationCompositionType.forNumber(0)) + .addAllRootInputVariables(new ArrayList()) + .addAllRootOutputVariables(new ArrayList()) + .setSaasRuntimeContext(SaaSRuntimeContext.newBuilder().build()) + .setLatestSystemRevisionUri( + ApplicationTemplateSystemRevisionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[SYSTEM_REVISION]") + .toString()) + .setIacSource(IACSource.forNumber(0)) + .setTemplateMetadata(TFBlueprintMetadata.newBuilder().build()) + .setInputsAsRootModuleVariables(true) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-2462/locations/location-2462/spaces/space-2462"; + ApplicationTemplate applicationTemplate = ApplicationTemplate.newBuilder().build(); + String applicationTemplateId = "applicationTemplateId-1557848923"; + + ApplicationTemplate actualResponse = + client.createApplicationTemplate(parent, applicationTemplate, applicationTemplateId); + 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 createApplicationTemplateExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-2462/locations/location-2462/spaces/space-2462"; + ApplicationTemplate applicationTemplate = ApplicationTemplate.newBuilder().build(); + String applicationTemplateId = "applicationTemplateId-1557848923"; + client.createApplicationTemplate(parent, applicationTemplate, applicationTemplateId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateApplicationTemplateTest() throws Exception { + ApplicationTemplate expectedResponse = + ApplicationTemplate.newBuilder() + .setName( + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllApplicationParameters(new ArrayList()) + .setSerializedApplicationTemplate(SerializedApplicationTemplate.newBuilder().build()) + .setLatestRevision("latestRevision-1002490750") + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .setCompositionType(ApplicationCompositionType.forNumber(0)) + .addAllRootInputVariables(new ArrayList()) + .addAllRootOutputVariables(new ArrayList()) + .setSaasRuntimeContext(SaaSRuntimeContext.newBuilder().build()) + .setLatestSystemRevisionUri( + ApplicationTemplateSystemRevisionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[SYSTEM_REVISION]") + .toString()) + .setIacSource(IACSource.forNumber(0)) + .setTemplateMetadata(TFBlueprintMetadata.newBuilder().build()) + .setInputsAsRootModuleVariables(true) + .build(); + mockService.addResponse(expectedResponse); + + ApplicationTemplate applicationTemplate = + ApplicationTemplate.newBuilder() + .setName( + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllApplicationParameters(new ArrayList()) + .setSerializedApplicationTemplate(SerializedApplicationTemplate.newBuilder().build()) + .setLatestRevision("latestRevision-1002490750") + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .setCompositionType(ApplicationCompositionType.forNumber(0)) + .addAllRootInputVariables(new ArrayList()) + .addAllRootOutputVariables(new ArrayList()) + .setSaasRuntimeContext(SaaSRuntimeContext.newBuilder().build()) + .setLatestSystemRevisionUri( + ApplicationTemplateSystemRevisionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[SYSTEM_REVISION]") + .toString()) + .setIacSource(IACSource.forNumber(0)) + .setTemplateMetadata(TFBlueprintMetadata.newBuilder().build()) + .setInputsAsRootModuleVariables(true) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + ApplicationTemplate actualResponse = + client.updateApplicationTemplate(applicationTemplate, 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 updateApplicationTemplateExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ApplicationTemplate applicationTemplate = + ApplicationTemplate.newBuilder() + .setName( + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllApplicationParameters(new ArrayList()) + .setSerializedApplicationTemplate(SerializedApplicationTemplate.newBuilder().build()) + .setLatestRevision("latestRevision-1002490750") + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .setCompositionType(ApplicationCompositionType.forNumber(0)) + .addAllRootInputVariables(new ArrayList()) + .addAllRootOutputVariables(new ArrayList()) + .setSaasRuntimeContext(SaaSRuntimeContext.newBuilder().build()) + .setLatestSystemRevisionUri( + ApplicationTemplateSystemRevisionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[SYSTEM_REVISION]") + .toString()) + .setIacSource(IACSource.forNumber(0)) + .setTemplateMetadata(TFBlueprintMetadata.newBuilder().build()) + .setInputsAsRootModuleVariables(true) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateApplicationTemplate(applicationTemplate, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void importApplicationTemplateTest() throws Exception { + ApplicationTemplate expectedResponse = + ApplicationTemplate.newBuilder() + .setName( + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllApplicationParameters(new ArrayList()) + .setSerializedApplicationTemplate(SerializedApplicationTemplate.newBuilder().build()) + .setLatestRevision("latestRevision-1002490750") + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .setCompositionType(ApplicationCompositionType.forNumber(0)) + .addAllRootInputVariables(new ArrayList()) + .addAllRootOutputVariables(new ArrayList()) + .setSaasRuntimeContext(SaaSRuntimeContext.newBuilder().build()) + .setLatestSystemRevisionUri( + ApplicationTemplateSystemRevisionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[SYSTEM_REVISION]") + .toString()) + .setIacSource(IACSource.forNumber(0)) + .setTemplateMetadata(TFBlueprintMetadata.newBuilder().build()) + .setInputsAsRootModuleVariables(true) + .build(); + mockService.addResponse(expectedResponse); + + ApplicationTemplateName name = + ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + ApplicationTemplateRevisionName applicationTemplateRevisionUri = + ApplicationTemplateRevisionName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[REVISION]"); + + ApplicationTemplate actualResponse = + client.importApplicationTemplate(name, applicationTemplateRevisionUri); + 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 importApplicationTemplateExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ApplicationTemplateName name = + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + ApplicationTemplateRevisionName applicationTemplateRevisionUri = + ApplicationTemplateRevisionName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[REVISION]"); + client.importApplicationTemplate(name, applicationTemplateRevisionUri); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void importApplicationTemplateTest2() throws Exception { + ApplicationTemplate expectedResponse = + ApplicationTemplate.newBuilder() + .setName( + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllApplicationParameters(new ArrayList()) + .setSerializedApplicationTemplate(SerializedApplicationTemplate.newBuilder().build()) + .setLatestRevision("latestRevision-1002490750") + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .setCompositionType(ApplicationCompositionType.forNumber(0)) + .addAllRootInputVariables(new ArrayList()) + .addAllRootOutputVariables(new ArrayList()) + .setSaasRuntimeContext(SaaSRuntimeContext.newBuilder().build()) + .setLatestSystemRevisionUri( + ApplicationTemplateSystemRevisionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[SYSTEM_REVISION]") + .toString()) + .setIacSource(IACSource.forNumber(0)) + .setTemplateMetadata(TFBlueprintMetadata.newBuilder().build()) + .setInputsAsRootModuleVariables(true) + .build(); + mockService.addResponse(expectedResponse); + + ApplicationTemplateName name = + ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + String applicationTemplateRevisionUri = "applicationTemplateRevisionUri844336967"; + + ApplicationTemplate actualResponse = + client.importApplicationTemplate(name, applicationTemplateRevisionUri); + 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 importApplicationTemplateExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ApplicationTemplateName name = + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + String applicationTemplateRevisionUri = "applicationTemplateRevisionUri844336967"; + client.importApplicationTemplate(name, applicationTemplateRevisionUri); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void importApplicationTemplateTest3() throws Exception { + ApplicationTemplate expectedResponse = + ApplicationTemplate.newBuilder() + .setName( + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllApplicationParameters(new ArrayList()) + .setSerializedApplicationTemplate(SerializedApplicationTemplate.newBuilder().build()) + .setLatestRevision("latestRevision-1002490750") + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .setCompositionType(ApplicationCompositionType.forNumber(0)) + .addAllRootInputVariables(new ArrayList()) + .addAllRootOutputVariables(new ArrayList()) + .setSaasRuntimeContext(SaaSRuntimeContext.newBuilder().build()) + .setLatestSystemRevisionUri( + ApplicationTemplateSystemRevisionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[SYSTEM_REVISION]") + .toString()) + .setIacSource(IACSource.forNumber(0)) + .setTemplateMetadata(TFBlueprintMetadata.newBuilder().build()) + .setInputsAsRootModuleVariables(true) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-2810/locations/location-2810/spaces/space-2810/applicationTemplates/applicationTemplate-2810"; + ApplicationTemplateRevisionName applicationTemplateRevisionUri = + ApplicationTemplateRevisionName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[REVISION]"); + + ApplicationTemplate actualResponse = + client.importApplicationTemplate(name, applicationTemplateRevisionUri); + 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 importApplicationTemplateExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-2810/locations/location-2810/spaces/space-2810/applicationTemplates/applicationTemplate-2810"; + ApplicationTemplateRevisionName applicationTemplateRevisionUri = + ApplicationTemplateRevisionName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[REVISION]"); + client.importApplicationTemplate(name, applicationTemplateRevisionUri); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void importApplicationTemplateTest4() throws Exception { + ApplicationTemplate expectedResponse = + ApplicationTemplate.newBuilder() + .setName( + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllApplicationParameters(new ArrayList()) + .setSerializedApplicationTemplate(SerializedApplicationTemplate.newBuilder().build()) + .setLatestRevision("latestRevision-1002490750") + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .setCompositionType(ApplicationCompositionType.forNumber(0)) + .addAllRootInputVariables(new ArrayList()) + .addAllRootOutputVariables(new ArrayList()) + .setSaasRuntimeContext(SaaSRuntimeContext.newBuilder().build()) + .setLatestSystemRevisionUri( + ApplicationTemplateSystemRevisionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[SYSTEM_REVISION]") + .toString()) + .setIacSource(IACSource.forNumber(0)) + .setTemplateMetadata(TFBlueprintMetadata.newBuilder().build()) + .setInputsAsRootModuleVariables(true) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-2810/locations/location-2810/spaces/space-2810/applicationTemplates/applicationTemplate-2810"; + String applicationTemplateRevisionUri = "applicationTemplateRevisionUri844336967"; + + ApplicationTemplate actualResponse = + client.importApplicationTemplate(name, applicationTemplateRevisionUri); + 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 importApplicationTemplateExceptionTest4() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-2810/locations/location-2810/spaces/space-2810/applicationTemplates/applicationTemplate-2810"; + String applicationTemplateRevisionUri = "applicationTemplateRevisionUri844336967"; + client.importApplicationTemplate(name, applicationTemplateRevisionUri); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteApplicationTemplateTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + ApplicationTemplateName name = + ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + + client.deleteApplicationTemplate(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 deleteApplicationTemplateExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ApplicationTemplateName name = + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + client.deleteApplicationTemplate(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteApplicationTemplateTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-2810/locations/location-2810/spaces/space-2810/applicationTemplates/applicationTemplate-2810"; + + client.deleteApplicationTemplate(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 deleteApplicationTemplateExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-2810/locations/location-2810/spaces/space-2810/applicationTemplates/applicationTemplate-2810"; + client.deleteApplicationTemplate(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void commitApplicationTemplateTest() throws Exception { + ApplicationTemplateRevision expectedResponse = + ApplicationTemplateRevision.newBuilder() + .setName( + ApplicationTemplateRevisionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[REVISION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setSnapshot(SerializedApplicationTemplate.newBuilder().build()) + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .setTemplateMetadata(TFBlueprintMetadata.newBuilder().build()) + .addAllApplicationParameters(new ArrayList()) + .setIacSource(IACSource.forNumber(0)) + .build(); + mockService.addResponse(expectedResponse); + + ApplicationTemplateName name = + ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + + ApplicationTemplateRevision actualResponse = client.commitApplicationTemplate(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 commitApplicationTemplateExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ApplicationTemplateName name = + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + client.commitApplicationTemplate(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void commitApplicationTemplateTest2() throws Exception { + ApplicationTemplateRevision expectedResponse = + ApplicationTemplateRevision.newBuilder() + .setName( + ApplicationTemplateRevisionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[REVISION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setSnapshot(SerializedApplicationTemplate.newBuilder().build()) + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .setTemplateMetadata(TFBlueprintMetadata.newBuilder().build()) + .addAllApplicationParameters(new ArrayList()) + .setIacSource(IACSource.forNumber(0)) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-2810/locations/location-2810/spaces/space-2810/applicationTemplates/applicationTemplate-2810"; + + ApplicationTemplateRevision actualResponse = client.commitApplicationTemplate(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 commitApplicationTemplateExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-2810/locations/location-2810/spaces/space-2810/applicationTemplates/applicationTemplate-2810"; + client.commitApplicationTemplate(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void snapshotApplicationTemplateTest() throws Exception { + SnapshotApplicationTemplateResponse expectedResponse = + SnapshotApplicationTemplateResponse.newBuilder() + .setApplicationTemplateRevision(ApplicationTemplateRevision.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("snapshotApplicationTemplateTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ApplicationTemplateName name = + ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + + SnapshotApplicationTemplateResponse actualResponse = + client.snapshotApplicationTemplateAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void snapshotApplicationTemplateExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ApplicationTemplateName name = + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + client.snapshotApplicationTemplateAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void snapshotApplicationTemplateTest2() throws Exception { + SnapshotApplicationTemplateResponse expectedResponse = + SnapshotApplicationTemplateResponse.newBuilder() + .setApplicationTemplateRevision(ApplicationTemplateRevision.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("snapshotApplicationTemplateTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-2810/locations/location-2810/spaces/space-2810/applicationTemplates/applicationTemplate-2810"; + + SnapshotApplicationTemplateResponse actualResponse = + client.snapshotApplicationTemplateAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void snapshotApplicationTemplateExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-2810/locations/location-2810/spaces/space-2810/applicationTemplates/applicationTemplate-2810"; + client.snapshotApplicationTemplateAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void generateApplicationTemplateIaCTest() throws Exception { + GenerateApplicationTemplateIaCResponse expectedResponse = + GenerateApplicationTemplateIaCResponse.newBuilder() + .setGcsUri("gcsUri-1251224875") + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .setRootModulesMetadata(RootModulesMetadata.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + ApplicationTemplateName name = + ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + + GenerateApplicationTemplateIaCResponse actualResponse = + client.generateApplicationTemplateIaC(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 generateApplicationTemplateIaCExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ApplicationTemplateName name = + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + client.generateApplicationTemplateIaC(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void generateApplicationTemplateIaCTest2() throws Exception { + GenerateApplicationTemplateIaCResponse expectedResponse = + GenerateApplicationTemplateIaCResponse.newBuilder() + .setGcsUri("gcsUri-1251224875") + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .setRootModulesMetadata(RootModulesMetadata.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-2810/locations/location-2810/spaces/space-2810/applicationTemplates/applicationTemplate-2810"; + + GenerateApplicationTemplateIaCResponse actualResponse = + client.generateApplicationTemplateIaC(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 generateApplicationTemplateIaCExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-2810/locations/location-2810/spaces/space-2810/applicationTemplates/applicationTemplate-2810"; + client.generateApplicationTemplateIaC(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void exportApplicationTemplateIaCTest() throws Exception { + ExportApplicationTemplateIaCResponse expectedResponse = + ExportApplicationTemplateIaCResponse.newBuilder() + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .setRootModulesMetadata(RootModulesMetadata.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("exportApplicationTemplateIaCTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ApplicationTemplateName name = + ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + + ExportApplicationTemplateIaCResponse actualResponse = + client.exportApplicationTemplateIaCAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void exportApplicationTemplateIaCExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ApplicationTemplateName name = + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + client.exportApplicationTemplateIaCAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void exportApplicationTemplateIaCTest2() throws Exception { + ExportApplicationTemplateIaCResponse expectedResponse = + ExportApplicationTemplateIaCResponse.newBuilder() + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .setRootModulesMetadata(RootModulesMetadata.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("exportApplicationTemplateIaCTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-2810/locations/location-2810/spaces/space-2810/applicationTemplates/applicationTemplate-2810"; + + ExportApplicationTemplateIaCResponse actualResponse = + client.exportApplicationTemplateIaCAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void exportApplicationTemplateIaCExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-2810/locations/location-2810/spaces/space-2810/applicationTemplates/applicationTemplate-2810"; + client.exportApplicationTemplateIaCAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void generateApplicationTemplateRevisionIaCTest() throws Exception { + GenerateApplicationTemplateRevisionIaCResponse expectedResponse = + GenerateApplicationTemplateRevisionIaCResponse.newBuilder() + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .setRootModulesMetadata(RootModulesMetadata.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + ApplicationTemplateRevisionName name = + ApplicationTemplateRevisionName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[REVISION]"); + + GenerateApplicationTemplateRevisionIaCResponse actualResponse = + client.generateApplicationTemplateRevisionIaC(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 generateApplicationTemplateRevisionIaCExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ApplicationTemplateRevisionName name = + ApplicationTemplateRevisionName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[REVISION]"); + client.generateApplicationTemplateRevisionIaC(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void generateApplicationTemplateRevisionIaCTest2() throws Exception { + GenerateApplicationTemplateRevisionIaCResponse expectedResponse = + GenerateApplicationTemplateRevisionIaCResponse.newBuilder() + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .setRootModulesMetadata(RootModulesMetadata.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-8918/locations/location-8918/spaces/space-8918/applicationTemplates/applicationTemplate-8918/revisions/revision-8918"; + + GenerateApplicationTemplateRevisionIaCResponse actualResponse = + client.generateApplicationTemplateRevisionIaC(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 generateApplicationTemplateRevisionIaCExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-8918/locations/location-8918/spaces/space-8918/applicationTemplates/applicationTemplate-8918/revisions/revision-8918"; + client.generateApplicationTemplateRevisionIaC(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void exportApplicationTemplateRevisionIaCTest() throws Exception { + ExportApplicationTemplateRevisionIaCResponse expectedResponse = + ExportApplicationTemplateRevisionIaCResponse.newBuilder() + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .setRootModulesMetadata(RootModulesMetadata.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("exportApplicationTemplateRevisionIaCTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ApplicationTemplateRevisionName name = + ApplicationTemplateRevisionName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[REVISION]"); + + ExportApplicationTemplateRevisionIaCResponse actualResponse = + client.exportApplicationTemplateRevisionIaCAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void exportApplicationTemplateRevisionIaCExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ApplicationTemplateRevisionName name = + ApplicationTemplateRevisionName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[REVISION]"); + client.exportApplicationTemplateRevisionIaCAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void exportApplicationTemplateRevisionIaCTest2() throws Exception { + ExportApplicationTemplateRevisionIaCResponse expectedResponse = + ExportApplicationTemplateRevisionIaCResponse.newBuilder() + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .setRootModulesMetadata(RootModulesMetadata.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("exportApplicationTemplateRevisionIaCTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-8918/locations/location-8918/spaces/space-8918/applicationTemplates/applicationTemplate-8918/revisions/revision-8918"; + + ExportApplicationTemplateRevisionIaCResponse actualResponse = + client.exportApplicationTemplateRevisionIaCAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void exportApplicationTemplateRevisionIaCExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-8918/locations/location-8918/spaces/space-8918/applicationTemplates/applicationTemplate-8918/revisions/revision-8918"; + client.exportApplicationTemplateRevisionIaCAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void getComponentTest() throws Exception { + Component expectedResponse = + Component.newBuilder() + .setName( + ComponentName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[COMPONENT]") + .toString()) + .setSharedTemplateRevisionUri("sharedTemplateRevisionUri1743920658") + .addAllParameters(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllRoles(new ArrayList()) + .addAllApis(new ArrayList()) + .setDisplayName("displayName1714148973") + .addAllConnectionsParameters(new ArrayList()) + .addAllComponentParameterSchema(new ArrayList()) + .setApplicationInfo(ComponentApplicationInfo.newBuilder().build()) + .setUseAsRootModule(true) + .addAllInputVariableAliases(new ArrayList()) + .setApplicationTemplateRevisionUri("applicationTemplateRevisionUri844336967") + .build(); + mockService.addResponse(expectedResponse); + + ComponentName name = + ComponentName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[COMPONENT]"); + + Component actualResponse = client.getComponent(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 getComponentExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ComponentName name = + ComponentName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[COMPONENT]"); + client.getComponent(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getComponentTest2() throws Exception { + Component expectedResponse = + Component.newBuilder() + .setName( + ComponentName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[COMPONENT]") + .toString()) + .setSharedTemplateRevisionUri("sharedTemplateRevisionUri1743920658") + .addAllParameters(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllRoles(new ArrayList()) + .addAllApis(new ArrayList()) + .setDisplayName("displayName1714148973") + .addAllConnectionsParameters(new ArrayList()) + .addAllComponentParameterSchema(new ArrayList()) + .setApplicationInfo(ComponentApplicationInfo.newBuilder().build()) + .setUseAsRootModule(true) + .addAllInputVariableAliases(new ArrayList()) + .setApplicationTemplateRevisionUri("applicationTemplateRevisionUri844336967") + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-4394/locations/location-4394/spaces/space-4394/applicationTemplates/applicationTemplate-4394/components/component-4394"; + + Component actualResponse = client.getComponent(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 getComponentExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-4394/locations/location-4394/spaces/space-4394/applicationTemplates/applicationTemplate-4394/components/component-4394"; + client.getComponent(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listComponentsTest() throws Exception { + Component responsesElement = Component.newBuilder().build(); + ListComponentsResponse expectedResponse = + ListComponentsResponse.newBuilder() + .setNextPageToken("") + .addAllComponents(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ApplicationTemplateName parent = + ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + + ListComponentsPagedResponse pagedListResponse = client.listComponents(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getComponentsList().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 listComponentsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ApplicationTemplateName parent = + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + client.listComponents(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listComponentsTest2() throws Exception { + Component responsesElement = Component.newBuilder().build(); + ListComponentsResponse expectedResponse = + ListComponentsResponse.newBuilder() + .setNextPageToken("") + .addAllComponents(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = + "projects/project-9797/locations/location-9797/spaces/space-9797/applicationTemplates/applicationTemplate-9797"; + + ListComponentsPagedResponse pagedListResponse = client.listComponents(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getComponentsList().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 listComponentsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-9797/locations/location-9797/spaces/space-9797/applicationTemplates/applicationTemplate-9797"; + client.listComponents(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createComponentTest() throws Exception { + Component expectedResponse = + Component.newBuilder() + .setName( + ComponentName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[COMPONENT]") + .toString()) + .setSharedTemplateRevisionUri("sharedTemplateRevisionUri1743920658") + .addAllParameters(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllRoles(new ArrayList()) + .addAllApis(new ArrayList()) + .setDisplayName("displayName1714148973") + .addAllConnectionsParameters(new ArrayList()) + .addAllComponentParameterSchema(new ArrayList()) + .setApplicationInfo(ComponentApplicationInfo.newBuilder().build()) + .setUseAsRootModule(true) + .addAllInputVariableAliases(new ArrayList()) + .setApplicationTemplateRevisionUri("applicationTemplateRevisionUri844336967") + .build(); + mockService.addResponse(expectedResponse); + + ApplicationTemplateName parent = + ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + Component component = Component.newBuilder().build(); + String componentId = "componentId-985933064"; + + Component actualResponse = client.createComponent(parent, component, componentId); + 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 createComponentExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ApplicationTemplateName parent = + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + Component component = Component.newBuilder().build(); + String componentId = "componentId-985933064"; + client.createComponent(parent, component, componentId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createComponentTest2() throws Exception { + Component expectedResponse = + Component.newBuilder() + .setName( + ComponentName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[COMPONENT]") + .toString()) + .setSharedTemplateRevisionUri("sharedTemplateRevisionUri1743920658") + .addAllParameters(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllRoles(new ArrayList()) + .addAllApis(new ArrayList()) + .setDisplayName("displayName1714148973") + .addAllConnectionsParameters(new ArrayList()) + .addAllComponentParameterSchema(new ArrayList()) + .setApplicationInfo(ComponentApplicationInfo.newBuilder().build()) + .setUseAsRootModule(true) + .addAllInputVariableAliases(new ArrayList()) + .setApplicationTemplateRevisionUri("applicationTemplateRevisionUri844336967") + .build(); + mockService.addResponse(expectedResponse); + + String parent = + "projects/project-9797/locations/location-9797/spaces/space-9797/applicationTemplates/applicationTemplate-9797"; + Component component = Component.newBuilder().build(); + String componentId = "componentId-985933064"; + + Component actualResponse = client.createComponent(parent, component, componentId); + 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 createComponentExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-9797/locations/location-9797/spaces/space-9797/applicationTemplates/applicationTemplate-9797"; + Component component = Component.newBuilder().build(); + String componentId = "componentId-985933064"; + client.createComponent(parent, component, componentId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateComponentTest() throws Exception { + Component expectedResponse = + Component.newBuilder() + .setName( + ComponentName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[COMPONENT]") + .toString()) + .setSharedTemplateRevisionUri("sharedTemplateRevisionUri1743920658") + .addAllParameters(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllRoles(new ArrayList()) + .addAllApis(new ArrayList()) + .setDisplayName("displayName1714148973") + .addAllConnectionsParameters(new ArrayList()) + .addAllComponentParameterSchema(new ArrayList()) + .setApplicationInfo(ComponentApplicationInfo.newBuilder().build()) + .setUseAsRootModule(true) + .addAllInputVariableAliases(new ArrayList()) + .setApplicationTemplateRevisionUri("applicationTemplateRevisionUri844336967") + .build(); + mockService.addResponse(expectedResponse); + + Component component = + Component.newBuilder() + .setName( + ComponentName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[COMPONENT]") + .toString()) + .setSharedTemplateRevisionUri("sharedTemplateRevisionUri1743920658") + .addAllParameters(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllRoles(new ArrayList()) + .addAllApis(new ArrayList()) + .setDisplayName("displayName1714148973") + .addAllConnectionsParameters(new ArrayList()) + .addAllComponentParameterSchema(new ArrayList()) + .setApplicationInfo(ComponentApplicationInfo.newBuilder().build()) + .setUseAsRootModule(true) + .addAllInputVariableAliases(new ArrayList()) + .setApplicationTemplateRevisionUri("applicationTemplateRevisionUri844336967") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Component actualResponse = client.updateComponent(component, 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 updateComponentExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Component component = + Component.newBuilder() + .setName( + ComponentName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[COMPONENT]") + .toString()) + .setSharedTemplateRevisionUri("sharedTemplateRevisionUri1743920658") + .addAllParameters(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllRoles(new ArrayList()) + .addAllApis(new ArrayList()) + .setDisplayName("displayName1714148973") + .addAllConnectionsParameters(new ArrayList()) + .addAllComponentParameterSchema(new ArrayList()) + .setApplicationInfo(ComponentApplicationInfo.newBuilder().build()) + .setUseAsRootModule(true) + .addAllInputVariableAliases(new ArrayList()) + .setApplicationTemplateRevisionUri("applicationTemplateRevisionUri844336967") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateComponent(component, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteComponentTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + ComponentName name = + ComponentName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[COMPONENT]"); + + client.deleteComponent(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 deleteComponentExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ComponentName name = + ComponentName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[COMPONENT]"); + client.deleteComponent(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteComponentTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-4394/locations/location-4394/spaces/space-4394/applicationTemplates/applicationTemplate-4394/components/component-4394"; + + client.deleteComponent(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 deleteComponentExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-4394/locations/location-4394/spaces/space-4394/applicationTemplates/applicationTemplate-4394/components/component-4394"; + client.deleteComponent(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getConnectionTest() throws Exception { + Connection expectedResponse = + Connection.newBuilder() + .setName( + ConnectionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[COMPONENT]", + "[CONNECTION]") + .toString()) + .setDestinationComponentUri( + ComponentName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[COMPONENT]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllSourceComponentParameters(new ArrayList()) + .addAllDestinationComponentParameters(new ArrayList()) + .setDependencyType(ConnectionDependencyType.forNumber(0)) + .build(); + mockService.addResponse(expectedResponse); + + ConnectionName name = + ConnectionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[COMPONENT]", + "[CONNECTION]"); + + Connection actualResponse = client.getConnection(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 getConnectionExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ConnectionName name = + ConnectionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[COMPONENT]", + "[CONNECTION]"); + client.getConnection(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getConnectionTest2() throws Exception { + Connection expectedResponse = + Connection.newBuilder() + .setName( + ConnectionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[COMPONENT]", + "[CONNECTION]") + .toString()) + .setDestinationComponentUri( + ComponentName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[COMPONENT]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllSourceComponentParameters(new ArrayList()) + .addAllDestinationComponentParameters(new ArrayList()) + .setDependencyType(ConnectionDependencyType.forNumber(0)) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-5243/locations/location-5243/spaces/space-5243/applicationTemplates/applicationTemplate-5243/components/component-5243/connections/connection-5243"; + + Connection actualResponse = client.getConnection(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 getConnectionExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-5243/locations/location-5243/spaces/space-5243/applicationTemplates/applicationTemplate-5243/components/component-5243/connections/connection-5243"; + client.getConnection(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listConnectionsTest() throws Exception { + Connection responsesElement = Connection.newBuilder().build(); + ListConnectionsResponse expectedResponse = + ListConnectionsResponse.newBuilder() + .setNextPageToken("") + .addAllConnections(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ComponentName parent = + ComponentName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[COMPONENT]"); + + ListConnectionsPagedResponse pagedListResponse = client.listConnections(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getConnectionsList().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 listConnectionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ComponentName parent = + ComponentName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[COMPONENT]"); + client.listConnections(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listConnectionsTest2() throws Exception { + Connection responsesElement = Connection.newBuilder().build(); + ListConnectionsResponse expectedResponse = + ListConnectionsResponse.newBuilder() + .setNextPageToken("") + .addAllConnections(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = + "projects/project-2731/locations/location-2731/spaces/space-2731/applicationTemplates/applicationTemplate-2731/components/component-2731"; + + ListConnectionsPagedResponse pagedListResponse = client.listConnections(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getConnectionsList().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 listConnectionsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-2731/locations/location-2731/spaces/space-2731/applicationTemplates/applicationTemplate-2731/components/component-2731"; + client.listConnections(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createConnectionTest() throws Exception { + Connection expectedResponse = + Connection.newBuilder() + .setName( + ConnectionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[COMPONENT]", + "[CONNECTION]") + .toString()) + .setDestinationComponentUri( + ComponentName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[COMPONENT]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllSourceComponentParameters(new ArrayList()) + .addAllDestinationComponentParameters(new ArrayList()) + .setDependencyType(ConnectionDependencyType.forNumber(0)) + .build(); + mockService.addResponse(expectedResponse); + + ComponentName parent = + ComponentName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[COMPONENT]"); + Connection connection = Connection.newBuilder().build(); + String connectionId = "connectionId1923106969"; + + Connection actualResponse = client.createConnection(parent, connection, connectionId); + 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 createConnectionExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ComponentName parent = + ComponentName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[COMPONENT]"); + Connection connection = Connection.newBuilder().build(); + String connectionId = "connectionId1923106969"; + client.createConnection(parent, connection, connectionId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createConnectionTest2() throws Exception { + Connection expectedResponse = + Connection.newBuilder() + .setName( + ConnectionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[COMPONENT]", + "[CONNECTION]") + .toString()) + .setDestinationComponentUri( + ComponentName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[COMPONENT]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllSourceComponentParameters(new ArrayList()) + .addAllDestinationComponentParameters(new ArrayList()) + .setDependencyType(ConnectionDependencyType.forNumber(0)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = + "projects/project-2731/locations/location-2731/spaces/space-2731/applicationTemplates/applicationTemplate-2731/components/component-2731"; + Connection connection = Connection.newBuilder().build(); + String connectionId = "connectionId1923106969"; + + Connection actualResponse = client.createConnection(parent, connection, connectionId); + 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 createConnectionExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-2731/locations/location-2731/spaces/space-2731/applicationTemplates/applicationTemplate-2731/components/component-2731"; + Connection connection = Connection.newBuilder().build(); + String connectionId = "connectionId1923106969"; + client.createConnection(parent, connection, connectionId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateConnectionTest() throws Exception { + Connection expectedResponse = + Connection.newBuilder() + .setName( + ConnectionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[COMPONENT]", + "[CONNECTION]") + .toString()) + .setDestinationComponentUri( + ComponentName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[COMPONENT]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllSourceComponentParameters(new ArrayList()) + .addAllDestinationComponentParameters(new ArrayList()) + .setDependencyType(ConnectionDependencyType.forNumber(0)) + .build(); + mockService.addResponse(expectedResponse); + + Connection connection = + Connection.newBuilder() + .setName( + ConnectionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[COMPONENT]", + "[CONNECTION]") + .toString()) + .setDestinationComponentUri( + ComponentName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[COMPONENT]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllSourceComponentParameters(new ArrayList()) + .addAllDestinationComponentParameters(new ArrayList()) + .setDependencyType(ConnectionDependencyType.forNumber(0)) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Connection actualResponse = client.updateConnection(connection, 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 updateConnectionExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Connection connection = + Connection.newBuilder() + .setName( + ConnectionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[COMPONENT]", + "[CONNECTION]") + .toString()) + .setDestinationComponentUri( + ComponentName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[COMPONENT]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllSourceComponentParameters(new ArrayList()) + .addAllDestinationComponentParameters(new ArrayList()) + .setDependencyType(ConnectionDependencyType.forNumber(0)) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateConnection(connection, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteConnectionTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + ConnectionName name = + ConnectionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[COMPONENT]", + "[CONNECTION]"); + + client.deleteConnection(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 deleteConnectionExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ConnectionName name = + ConnectionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[COMPONENT]", + "[CONNECTION]"); + client.deleteConnection(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteConnectionTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-5243/locations/location-5243/spaces/space-5243/applicationTemplates/applicationTemplate-5243/components/component-5243/connections/connection-5243"; + + client.deleteConnection(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 deleteConnectionExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-5243/locations/location-5243/spaces/space-5243/applicationTemplates/applicationTemplate-5243/components/component-5243/connections/connection-5243"; + client.deleteConnection(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getApplicationTemplateRevisionTest() throws Exception { + ApplicationTemplateRevision expectedResponse = + ApplicationTemplateRevision.newBuilder() + .setName( + ApplicationTemplateRevisionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[REVISION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setSnapshot(SerializedApplicationTemplate.newBuilder().build()) + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .setTemplateMetadata(TFBlueprintMetadata.newBuilder().build()) + .addAllApplicationParameters(new ArrayList()) + .setIacSource(IACSource.forNumber(0)) + .build(); + mockService.addResponse(expectedResponse); + + ApplicationTemplateRevisionName name = + ApplicationTemplateRevisionName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[REVISION]"); + + ApplicationTemplateRevision actualResponse = client.getApplicationTemplateRevision(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 getApplicationTemplateRevisionExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ApplicationTemplateRevisionName name = + ApplicationTemplateRevisionName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[REVISION]"); + client.getApplicationTemplateRevision(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getApplicationTemplateRevisionTest2() throws Exception { + ApplicationTemplateRevision expectedResponse = + ApplicationTemplateRevision.newBuilder() + .setName( + ApplicationTemplateRevisionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[REVISION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setSnapshot(SerializedApplicationTemplate.newBuilder().build()) + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .setTemplateMetadata(TFBlueprintMetadata.newBuilder().build()) + .addAllApplicationParameters(new ArrayList()) + .setIacSource(IACSource.forNumber(0)) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-8918/locations/location-8918/spaces/space-8918/applicationTemplates/applicationTemplate-8918/revisions/revision-8918"; + + ApplicationTemplateRevision actualResponse = client.getApplicationTemplateRevision(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 getApplicationTemplateRevisionExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-8918/locations/location-8918/spaces/space-8918/applicationTemplates/applicationTemplate-8918/revisions/revision-8918"; + client.getApplicationTemplateRevision(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listApplicationTemplateRevisionsTest() throws Exception { + ApplicationTemplateRevision responsesElement = ApplicationTemplateRevision.newBuilder().build(); + ListApplicationTemplateRevisionsResponse expectedResponse = + ListApplicationTemplateRevisionsResponse.newBuilder() + .setNextPageToken("") + .addAllApplicationTemplateRevisions(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ApplicationTemplateName parent = + ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + + ListApplicationTemplateRevisionsPagedResponse pagedListResponse = + client.listApplicationTemplateRevisions(parent); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getApplicationTemplateRevisionsList().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 listApplicationTemplateRevisionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ApplicationTemplateName parent = + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + client.listApplicationTemplateRevisions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listApplicationTemplateRevisionsTest2() throws Exception { + ApplicationTemplateRevision responsesElement = ApplicationTemplateRevision.newBuilder().build(); + ListApplicationTemplateRevisionsResponse expectedResponse = + ListApplicationTemplateRevisionsResponse.newBuilder() + .setNextPageToken("") + .addAllApplicationTemplateRevisions(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = + "projects/project-9797/locations/location-9797/spaces/space-9797/applicationTemplates/applicationTemplate-9797"; + + ListApplicationTemplateRevisionsPagedResponse pagedListResponse = + client.listApplicationTemplateRevisions(parent); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getApplicationTemplateRevisionsList().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 listApplicationTemplateRevisionsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-9797/locations/location-9797/spaces/space-9797/applicationTemplates/applicationTemplate-9797"; + client.listApplicationTemplateRevisions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteApplicationTemplateRevisionTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + ApplicationTemplateRevisionName name = + ApplicationTemplateRevisionName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[REVISION]"); + + client.deleteApplicationTemplateRevision(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 deleteApplicationTemplateRevisionExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ApplicationTemplateRevisionName name = + ApplicationTemplateRevisionName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[REVISION]"); + client.deleteApplicationTemplateRevision(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteApplicationTemplateRevisionTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-8918/locations/location-8918/spaces/space-8918/applicationTemplates/applicationTemplate-8918/revisions/revision-8918"; + + client.deleteApplicationTemplateRevision(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 deleteApplicationTemplateRevisionExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-8918/locations/location-8918/spaces/space-8918/applicationTemplates/applicationTemplate-8918/revisions/revision-8918"; + client.deleteApplicationTemplateRevision(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getCatalogTest() throws Exception { + Catalog expectedResponse = + Catalog.newBuilder() + .setName(CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + CatalogName name = CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]"); + + Catalog actualResponse = client.getCatalog(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 getCatalogExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CatalogName name = CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]"); + client.getCatalog(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getCatalogTest2() throws Exception { + Catalog expectedResponse = + Catalog.newBuilder() + .setName(CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-201/locations/location-201/spaces/space-201/catalogs/catalog-201"; + + Catalog actualResponse = client.getCatalog(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 getCatalogExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-201/locations/location-201/spaces/space-201/catalogs/catalog-201"; + client.getCatalog(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCatalogsTest() throws Exception { + Catalog responsesElement = Catalog.newBuilder().build(); + ListCatalogsResponse expectedResponse = + ListCatalogsResponse.newBuilder() + .setNextPageToken("") + .addAllCatalogs(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + SpaceName parent = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]"); + + ListCatalogsPagedResponse pagedListResponse = client.listCatalogs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCatalogsList().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 listCatalogsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SpaceName parent = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]"); + client.listCatalogs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCatalogsTest2() throws Exception { + Catalog responsesElement = Catalog.newBuilder().build(); + ListCatalogsResponse expectedResponse = + ListCatalogsResponse.newBuilder() + .setNextPageToken("") + .addAllCatalogs(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-2462/locations/location-2462/spaces/space-2462"; + + ListCatalogsPagedResponse pagedListResponse = client.listCatalogs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCatalogsList().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 listCatalogsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-2462/locations/location-2462/spaces/space-2462"; + client.listCatalogs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createCatalogTest() throws Exception { + Catalog expectedResponse = + Catalog.newBuilder() + .setName(CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + SpaceName parent = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]"); + Catalog catalog = Catalog.newBuilder().build(); + String catalogId = "catalogId1455933204"; + + Catalog actualResponse = client.createCatalog(parent, catalog, catalogId); + 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 createCatalogExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SpaceName parent = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]"); + Catalog catalog = Catalog.newBuilder().build(); + String catalogId = "catalogId1455933204"; + client.createCatalog(parent, catalog, catalogId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createCatalogTest2() throws Exception { + Catalog expectedResponse = + Catalog.newBuilder() + .setName(CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-2462/locations/location-2462/spaces/space-2462"; + Catalog catalog = Catalog.newBuilder().build(); + String catalogId = "catalogId1455933204"; + + Catalog actualResponse = client.createCatalog(parent, catalog, catalogId); + 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 createCatalogExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-2462/locations/location-2462/spaces/space-2462"; + Catalog catalog = Catalog.newBuilder().build(); + String catalogId = "catalogId1455933204"; + client.createCatalog(parent, catalog, catalogId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateCatalogTest() throws Exception { + Catalog expectedResponse = + Catalog.newBuilder() + .setName(CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + Catalog catalog = + Catalog.newBuilder() + .setName(CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Catalog actualResponse = client.updateCatalog(catalog, 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 updateCatalogExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Catalog catalog = + Catalog.newBuilder() + .setName(CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateCatalog(catalog, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteCatalogTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteCatalogTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + CatalogName name = CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]"); + + client.deleteCatalogAsync(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 deleteCatalogExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CatalogName name = CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]"); + client.deleteCatalogAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteCatalogTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteCatalogTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-201/locations/location-201/spaces/space-201/catalogs/catalog-201"; + + client.deleteCatalogAsync(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 deleteCatalogExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-201/locations/location-201/spaces/space-201/catalogs/catalog-201"; + client.deleteCatalogAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createCatalogTemplateTest() throws Exception { + CatalogTemplate expectedResponse = + CatalogTemplate.newBuilder() + .setName( + CatalogTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setUuid("uuid3601339") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setLatestRevisionId("latestRevisionId-1320934083") + .setTemplateCategory(TemplateCategory.forNumber(0)) + .setType(TemplateType.forNumber(0)) + .build(); + mockService.addResponse(expectedResponse); + + CatalogName parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]"); + CatalogTemplate catalogTemplate = CatalogTemplate.newBuilder().build(); + String catalogTemplateId = "catalogTemplateId-1740091346"; + + CatalogTemplate actualResponse = + client.createCatalogTemplate(parent, catalogTemplate, catalogTemplateId); + 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 createCatalogTemplateExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CatalogName parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]"); + CatalogTemplate catalogTemplate = CatalogTemplate.newBuilder().build(); + String catalogTemplateId = "catalogTemplateId-1740091346"; + client.createCatalogTemplate(parent, catalogTemplate, catalogTemplateId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createCatalogTemplateTest2() throws Exception { + CatalogTemplate expectedResponse = + CatalogTemplate.newBuilder() + .setName( + CatalogTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setUuid("uuid3601339") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setLatestRevisionId("latestRevisionId-1320934083") + .setTemplateCategory(TemplateCategory.forNumber(0)) + .setType(TemplateType.forNumber(0)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = + "projects/project-7146/locations/location-7146/spaces/space-7146/catalogs/catalog-7146"; + CatalogTemplate catalogTemplate = CatalogTemplate.newBuilder().build(); + String catalogTemplateId = "catalogTemplateId-1740091346"; + + CatalogTemplate actualResponse = + client.createCatalogTemplate(parent, catalogTemplate, catalogTemplateId); + 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 createCatalogTemplateExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-7146/locations/location-7146/spaces/space-7146/catalogs/catalog-7146"; + CatalogTemplate catalogTemplate = CatalogTemplate.newBuilder().build(); + String catalogTemplateId = "catalogTemplateId-1740091346"; + client.createCatalogTemplate(parent, catalogTemplate, catalogTemplateId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getCatalogTemplateTest() throws Exception { + CatalogTemplate expectedResponse = + CatalogTemplate.newBuilder() + .setName( + CatalogTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setUuid("uuid3601339") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setLatestRevisionId("latestRevisionId-1320934083") + .setTemplateCategory(TemplateCategory.forNumber(0)) + .setType(TemplateType.forNumber(0)) + .build(); + mockService.addResponse(expectedResponse); + + CatalogTemplateName name = + CatalogTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]"); + + CatalogTemplate actualResponse = client.getCatalogTemplate(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 getCatalogTemplateExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CatalogTemplateName name = + CatalogTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]"); + client.getCatalogTemplate(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getCatalogTemplateTest2() throws Exception { + CatalogTemplate expectedResponse = + CatalogTemplate.newBuilder() + .setName( + CatalogTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setUuid("uuid3601339") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setLatestRevisionId("latestRevisionId-1320934083") + .setTemplateCategory(TemplateCategory.forNumber(0)) + .setType(TemplateType.forNumber(0)) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-4572/locations/location-4572/spaces/space-4572/catalogs/catalog-4572/templates/template-4572"; + + CatalogTemplate actualResponse = client.getCatalogTemplate(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 getCatalogTemplateExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-4572/locations/location-4572/spaces/space-4572/catalogs/catalog-4572/templates/template-4572"; + client.getCatalogTemplate(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCatalogTemplatesTest() throws Exception { + CatalogTemplate responsesElement = CatalogTemplate.newBuilder().build(); + ListCatalogTemplatesResponse expectedResponse = + ListCatalogTemplatesResponse.newBuilder() + .setNextPageToken("") + .addAllCatalogTemplates(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + CatalogName parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]"); + + ListCatalogTemplatesPagedResponse pagedListResponse = client.listCatalogTemplates(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCatalogTemplatesList().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 listCatalogTemplatesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CatalogName parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]"); + client.listCatalogTemplates(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCatalogTemplatesTest2() throws Exception { + CatalogTemplate responsesElement = CatalogTemplate.newBuilder().build(); + ListCatalogTemplatesResponse expectedResponse = + ListCatalogTemplatesResponse.newBuilder() + .setNextPageToken("") + .addAllCatalogTemplates(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = + "projects/project-7146/locations/location-7146/spaces/space-7146/catalogs/catalog-7146"; + + ListCatalogTemplatesPagedResponse pagedListResponse = client.listCatalogTemplates(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCatalogTemplatesList().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 listCatalogTemplatesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-7146/locations/location-7146/spaces/space-7146/catalogs/catalog-7146"; + client.listCatalogTemplates(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateCatalogTemplateTest() throws Exception { + CatalogTemplate expectedResponse = + CatalogTemplate.newBuilder() + .setName( + CatalogTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setUuid("uuid3601339") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setLatestRevisionId("latestRevisionId-1320934083") + .setTemplateCategory(TemplateCategory.forNumber(0)) + .setType(TemplateType.forNumber(0)) + .build(); + mockService.addResponse(expectedResponse); + + CatalogTemplate catalogTemplate = + CatalogTemplate.newBuilder() + .setName( + CatalogTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setUuid("uuid3601339") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setLatestRevisionId("latestRevisionId-1320934083") + .setTemplateCategory(TemplateCategory.forNumber(0)) + .setType(TemplateType.forNumber(0)) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + CatalogTemplate actualResponse = client.updateCatalogTemplate(catalogTemplate, 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 updateCatalogTemplateExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CatalogTemplate catalogTemplate = + CatalogTemplate.newBuilder() + .setName( + CatalogTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setUuid("uuid3601339") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setLatestRevisionId("latestRevisionId-1320934083") + .setTemplateCategory(TemplateCategory.forNumber(0)) + .setType(TemplateType.forNumber(0)) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateCatalogTemplate(catalogTemplate, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteCatalogTemplateTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteCatalogTemplateTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + CatalogTemplateName name = + CatalogTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]"); + + client.deleteCatalogTemplateAsync(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 deleteCatalogTemplateExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CatalogTemplateName name = + CatalogTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]"); + client.deleteCatalogTemplateAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteCatalogTemplateTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteCatalogTemplateTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-4572/locations/location-4572/spaces/space-4572/catalogs/catalog-4572/templates/template-4572"; + + client.deleteCatalogTemplateAsync(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 deleteCatalogTemplateExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-4572/locations/location-4572/spaces/space-4572/catalogs/catalog-4572/templates/template-4572"; + client.deleteCatalogTemplateAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createShareTest() throws Exception { + Share expectedResponse = + Share.newBuilder() + .setName( + ShareName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[SHARE]") + .toString()) + .setDestinationSpace(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createShareTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + CatalogName parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]"); + Share share = Share.newBuilder().build(); + String shareId = "shareId2054217050"; + + Share actualResponse = client.createShareAsync(parent, share, shareId).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 createShareExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CatalogName parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]"); + Share share = Share.newBuilder().build(); + String shareId = "shareId2054217050"; + client.createShareAsync(parent, share, shareId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createShareTest2() throws Exception { + Share expectedResponse = + Share.newBuilder() + .setName( + ShareName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[SHARE]") + .toString()) + .setDestinationSpace(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createShareTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = + "projects/project-7146/locations/location-7146/spaces/space-7146/catalogs/catalog-7146"; + Share share = Share.newBuilder().build(); + String shareId = "shareId2054217050"; + + Share actualResponse = client.createShareAsync(parent, share, shareId).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 createShareExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-7146/locations/location-7146/spaces/space-7146/catalogs/catalog-7146"; + Share share = Share.newBuilder().build(); + String shareId = "shareId2054217050"; + client.createShareAsync(parent, share, shareId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listSharesTest() throws Exception { + Share responsesElement = Share.newBuilder().build(); + ListSharesResponse expectedResponse = + ListSharesResponse.newBuilder() + .setNextPageToken("") + .addAllShares(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + CatalogName parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]"); + + ListSharesPagedResponse pagedListResponse = client.listShares(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSharesList().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 listSharesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CatalogName parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]"); + client.listShares(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSharesTest2() throws Exception { + Share responsesElement = Share.newBuilder().build(); + ListSharesResponse expectedResponse = + ListSharesResponse.newBuilder() + .setNextPageToken("") + .addAllShares(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = + "projects/project-7146/locations/location-7146/spaces/space-7146/catalogs/catalog-7146"; + + ListSharesPagedResponse pagedListResponse = client.listShares(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSharesList().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 listSharesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-7146/locations/location-7146/spaces/space-7146/catalogs/catalog-7146"; + client.listShares(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getShareTest() throws Exception { + Share expectedResponse = + Share.newBuilder() + .setName( + ShareName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[SHARE]") + .toString()) + .setDestinationSpace(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + ShareName name = ShareName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[SHARE]"); + + Share actualResponse = client.getShare(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 getShareExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ShareName name = ShareName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[SHARE]"); + client.getShare(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getShareTest2() throws Exception { + Share expectedResponse = + Share.newBuilder() + .setName( + ShareName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[SHARE]") + .toString()) + .setDestinationSpace(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-8569/locations/location-8569/spaces/space-8569/catalogs/catalog-8569/shares/share-8569"; + + Share actualResponse = client.getShare(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 getShareExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-8569/locations/location-8569/spaces/space-8569/catalogs/catalog-8569/shares/share-8569"; + client.getShare(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteShareTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteShareTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ShareName name = ShareName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[SHARE]"); + + client.deleteShareAsync(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 deleteShareExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ShareName name = ShareName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[SHARE]"); + client.deleteShareAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteShareTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteShareTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-8569/locations/location-8569/spaces/space-8569/catalogs/catalog-8569/shares/share-8569"; + + client.deleteShareAsync(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 deleteShareExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-8569/locations/location-8569/spaces/space-8569/catalogs/catalog-8569/shares/share-8569"; + client.deleteShareAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void syncShareTest() throws Exception { + Share expectedResponse = + Share.newBuilder() + .setName( + ShareName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[SHARE]") + .toString()) + .setDestinationSpace(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("syncShareTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ShareName name = ShareName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[SHARE]"); + + Share actualResponse = client.syncShareAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void syncShareExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ShareName name = ShareName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[SHARE]"); + client.syncShareAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void syncShareTest2() throws Exception { + Share expectedResponse = + Share.newBuilder() + .setName( + ShareName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[SHARE]") + .toString()) + .setDestinationSpace(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("syncShareTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-8569/locations/location-8569/spaces/space-8569/catalogs/catalog-8569/shares/share-8569"; + + Share actualResponse = client.syncShareAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void syncShareExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-8569/locations/location-8569/spaces/space-8569/catalogs/catalog-8569/shares/share-8569"; + client.syncShareAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void getSharedTemplateTest() throws Exception { + SharedTemplate expectedResponse = + SharedTemplate.newBuilder() + .setName( + SharedTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[SHARED_TEMPLATE]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setOriginTemplate( + CatalogTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setLatestRevisionId("latestRevisionId-1320934083") + .setTemplateCategory(TemplateCategory.forNumber(0)) + .setType(TemplateType.forNumber(0)) + .build(); + mockService.addResponse(expectedResponse); + + SharedTemplateName name = + SharedTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[SHARED_TEMPLATE]"); + + SharedTemplate actualResponse = client.getSharedTemplate(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 getSharedTemplateExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SharedTemplateName name = + SharedTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[SHARED_TEMPLATE]"); + client.getSharedTemplate(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSharedTemplateTest2() throws Exception { + SharedTemplate expectedResponse = + SharedTemplate.newBuilder() + .setName( + SharedTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[SHARED_TEMPLATE]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setOriginTemplate( + CatalogTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setLatestRevisionId("latestRevisionId-1320934083") + .setTemplateCategory(TemplateCategory.forNumber(0)) + .setType(TemplateType.forNumber(0)) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-6621/locations/location-6621/spaces/space-6621/sharedTemplates/sharedTemplate-6621"; + + SharedTemplate actualResponse = client.getSharedTemplate(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 getSharedTemplateExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-6621/locations/location-6621/spaces/space-6621/sharedTemplates/sharedTemplate-6621"; + client.getSharedTemplate(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSharedTemplatesTest() throws Exception { + SharedTemplate responsesElement = SharedTemplate.newBuilder().build(); + ListSharedTemplatesResponse expectedResponse = + ListSharedTemplatesResponse.newBuilder() + .setNextPageToken("") + .addAllSharedTemplates(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + SpaceName parent = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]"); + + ListSharedTemplatesPagedResponse pagedListResponse = client.listSharedTemplates(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSharedTemplatesList().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 listSharedTemplatesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SpaceName parent = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]"); + client.listSharedTemplates(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSharedTemplatesTest2() throws Exception { + SharedTemplate responsesElement = SharedTemplate.newBuilder().build(); + ListSharedTemplatesResponse expectedResponse = + ListSharedTemplatesResponse.newBuilder() + .setNextPageToken("") + .addAllSharedTemplates(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-2462/locations/location-2462/spaces/space-2462"; + + ListSharedTemplatesPagedResponse pagedListResponse = client.listSharedTemplates(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSharedTemplatesList().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 listSharedTemplatesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-2462/locations/location-2462/spaces/space-2462"; + client.listSharedTemplates(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSharedTemplateRevisionTest() throws Exception { + SharedTemplateRevision expectedResponse = + SharedTemplateRevision.newBuilder() + .setName( + SharedTemplateRevisionName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[SHARED_TEMPLATE]", "[REVISION]") + .toString()) + .setDescription("description-1724546052") + .setType(TemplateType.forNumber(0)) + .setSharedTemplateMetadata(TFBlueprintMetadata.newBuilder().build()) + .setOriginTemplateRevision( + CatalogTemplateRevisionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[CATALOG]", + "[CATALOG_TEMPLATE]", + "[REVISION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setApplicationTemplateRevision(SerializedApplicationTemplate.newBuilder().build()) + .setHelmChartMetadata(HelmChartMetadata.newBuilder().build()) + .setTemplateCategory(TemplateCategory.forNumber(0)) + .addAllLogicalProducts(new ArrayList()) + .putAllAnnotations(new HashMap()) + .setInferredMetadata(InferredMetadata.newBuilder().build()) + .addAllResourceTypes(new ArrayList()) + .setIacSource(IACSource.forNumber(0)) + .addAllApplicationParameters(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + SharedTemplateRevisionName name = + SharedTemplateRevisionName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[SHARED_TEMPLATE]", "[REVISION]"); + + SharedTemplateRevision actualResponse = client.getSharedTemplateRevision(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 getSharedTemplateRevisionExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SharedTemplateRevisionName name = + SharedTemplateRevisionName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[SHARED_TEMPLATE]", "[REVISION]"); + client.getSharedTemplateRevision(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSharedTemplateRevisionTest2() throws Exception { + SharedTemplateRevision expectedResponse = + SharedTemplateRevision.newBuilder() + .setName( + SharedTemplateRevisionName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[SHARED_TEMPLATE]", "[REVISION]") + .toString()) + .setDescription("description-1724546052") + .setType(TemplateType.forNumber(0)) + .setSharedTemplateMetadata(TFBlueprintMetadata.newBuilder().build()) + .setOriginTemplateRevision( + CatalogTemplateRevisionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[CATALOG]", + "[CATALOG_TEMPLATE]", + "[REVISION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setApplicationTemplateRevision(SerializedApplicationTemplate.newBuilder().build()) + .setHelmChartMetadata(HelmChartMetadata.newBuilder().build()) + .setTemplateCategory(TemplateCategory.forNumber(0)) + .addAllLogicalProducts(new ArrayList()) + .putAllAnnotations(new HashMap()) + .setInferredMetadata(InferredMetadata.newBuilder().build()) + .addAllResourceTypes(new ArrayList()) + .setIacSource(IACSource.forNumber(0)) + .addAllApplicationParameters(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-8735/locations/location-8735/spaces/space-8735/sharedTemplates/sharedTemplate-8735/revisions/revision-8735"; + + SharedTemplateRevision actualResponse = client.getSharedTemplateRevision(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 getSharedTemplateRevisionExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-8735/locations/location-8735/spaces/space-8735/sharedTemplates/sharedTemplate-8735/revisions/revision-8735"; + client.getSharedTemplateRevision(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSharedTemplateRevisionsTest() throws Exception { + SharedTemplateRevision responsesElement = SharedTemplateRevision.newBuilder().build(); + ListSharedTemplateRevisionsResponse expectedResponse = + ListSharedTemplateRevisionsResponse.newBuilder() + .setNextPageToken("") + .addAllSharedTemplateRevisions(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + SharedTemplateName parent = + SharedTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[SHARED_TEMPLATE]"); + + ListSharedTemplateRevisionsPagedResponse pagedListResponse = + client.listSharedTemplateRevisions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSharedTemplateRevisionsList().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 listSharedTemplateRevisionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SharedTemplateName parent = + SharedTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[SHARED_TEMPLATE]"); + client.listSharedTemplateRevisions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSharedTemplateRevisionsTest2() throws Exception { + SharedTemplateRevision responsesElement = SharedTemplateRevision.newBuilder().build(); + ListSharedTemplateRevisionsResponse expectedResponse = + ListSharedTemplateRevisionsResponse.newBuilder() + .setNextPageToken("") + .addAllSharedTemplateRevisions(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = + "projects/project-7150/locations/location-7150/spaces/space-7150/sharedTemplates/sharedTemplate-7150"; + + ListSharedTemplateRevisionsPagedResponse pagedListResponse = + client.listSharedTemplateRevisions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSharedTemplateRevisionsList().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 listSharedTemplateRevisionsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-7150/locations/location-7150/spaces/space-7150/sharedTemplates/sharedTemplate-7150"; + client.listSharedTemplateRevisions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createCatalogTemplateRevisionTest() throws Exception { + CatalogTemplateRevision expectedResponse = + CatalogTemplateRevision.newBuilder() + .setName( + CatalogTemplateRevisionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[CATALOG]", + "[CATALOG_TEMPLATE]", + "[REVISION]") + .toString()) + .setDescription("description-1724546052") + .setType(TemplateType.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setTemplateMetadata(TFBlueprintMetadata.newBuilder().build()) + .setApplicationTemplateRevision(SerializedApplicationTemplate.newBuilder().build()) + .setHelmChartMetadata(HelmChartMetadata.newBuilder().build()) + .setUuid("uuid3601339") + .setMetadataInput(MetadataInput.newBuilder().build()) + .setTemplateCategory(TemplateCategory.forNumber(0)) + .addAllLogicalProducts(new ArrayList()) + .putAllAnnotations(new HashMap()) + .setInferredMetadata(InferredMetadata.newBuilder().build()) + .addAllResourceTypes(new ArrayList()) + .setIacSource(IACSource.forNumber(0)) + .addAllApplicationParameters(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createCatalogTemplateRevisionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + CatalogTemplateName parent = + CatalogTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]"); + CatalogTemplateRevision catalogTemplateRevision = CatalogTemplateRevision.newBuilder().build(); + String catalogTemplateRevisionId = "catalogTemplateRevisionId1620031081"; + + CatalogTemplateRevision actualResponse = + client + .createCatalogTemplateRevisionAsync( + parent, catalogTemplateRevision, catalogTemplateRevisionId) + .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 createCatalogTemplateRevisionExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CatalogTemplateName parent = + CatalogTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]"); + CatalogTemplateRevision catalogTemplateRevision = + CatalogTemplateRevision.newBuilder().build(); + String catalogTemplateRevisionId = "catalogTemplateRevisionId1620031081"; + client + .createCatalogTemplateRevisionAsync( + parent, catalogTemplateRevision, catalogTemplateRevisionId) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createCatalogTemplateRevisionTest2() throws Exception { + CatalogTemplateRevision expectedResponse = + CatalogTemplateRevision.newBuilder() + .setName( + CatalogTemplateRevisionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[CATALOG]", + "[CATALOG_TEMPLATE]", + "[REVISION]") + .toString()) + .setDescription("description-1724546052") + .setType(TemplateType.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setTemplateMetadata(TFBlueprintMetadata.newBuilder().build()) + .setApplicationTemplateRevision(SerializedApplicationTemplate.newBuilder().build()) + .setHelmChartMetadata(HelmChartMetadata.newBuilder().build()) + .setUuid("uuid3601339") + .setMetadataInput(MetadataInput.newBuilder().build()) + .setTemplateCategory(TemplateCategory.forNumber(0)) + .addAllLogicalProducts(new ArrayList()) + .putAllAnnotations(new HashMap()) + .setInferredMetadata(InferredMetadata.newBuilder().build()) + .addAllResourceTypes(new ArrayList()) + .setIacSource(IACSource.forNumber(0)) + .addAllApplicationParameters(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createCatalogTemplateRevisionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = + "projects/project-7179/locations/location-7179/spaces/space-7179/catalogs/catalog-7179/templates/template-7179"; + CatalogTemplateRevision catalogTemplateRevision = CatalogTemplateRevision.newBuilder().build(); + String catalogTemplateRevisionId = "catalogTemplateRevisionId1620031081"; + + CatalogTemplateRevision actualResponse = + client + .createCatalogTemplateRevisionAsync( + parent, catalogTemplateRevision, catalogTemplateRevisionId) + .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 createCatalogTemplateRevisionExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-7179/locations/location-7179/spaces/space-7179/catalogs/catalog-7179/templates/template-7179"; + CatalogTemplateRevision catalogTemplateRevision = + CatalogTemplateRevision.newBuilder().build(); + String catalogTemplateRevisionId = "catalogTemplateRevisionId1620031081"; + client + .createCatalogTemplateRevisionAsync( + parent, catalogTemplateRevision, catalogTemplateRevisionId) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void getCatalogTemplateRevisionTest() throws Exception { + CatalogTemplateRevision expectedResponse = + CatalogTemplateRevision.newBuilder() + .setName( + CatalogTemplateRevisionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[CATALOG]", + "[CATALOG_TEMPLATE]", + "[REVISION]") + .toString()) + .setDescription("description-1724546052") + .setType(TemplateType.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setTemplateMetadata(TFBlueprintMetadata.newBuilder().build()) + .setApplicationTemplateRevision(SerializedApplicationTemplate.newBuilder().build()) + .setHelmChartMetadata(HelmChartMetadata.newBuilder().build()) + .setUuid("uuid3601339") + .setMetadataInput(MetadataInput.newBuilder().build()) + .setTemplateCategory(TemplateCategory.forNumber(0)) + .addAllLogicalProducts(new ArrayList()) + .putAllAnnotations(new HashMap()) + .setInferredMetadata(InferredMetadata.newBuilder().build()) + .addAllResourceTypes(new ArrayList()) + .setIacSource(IACSource.forNumber(0)) + .addAllApplicationParameters(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + CatalogTemplateRevisionName name = + CatalogTemplateRevisionName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]", "[REVISION]"); + + CatalogTemplateRevision actualResponse = client.getCatalogTemplateRevision(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 getCatalogTemplateRevisionExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CatalogTemplateRevisionName name = + CatalogTemplateRevisionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[CATALOG]", + "[CATALOG_TEMPLATE]", + "[REVISION]"); + client.getCatalogTemplateRevision(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getCatalogTemplateRevisionTest2() throws Exception { + CatalogTemplateRevision expectedResponse = + CatalogTemplateRevision.newBuilder() + .setName( + CatalogTemplateRevisionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[CATALOG]", + "[CATALOG_TEMPLATE]", + "[REVISION]") + .toString()) + .setDescription("description-1724546052") + .setType(TemplateType.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setTemplateMetadata(TFBlueprintMetadata.newBuilder().build()) + .setApplicationTemplateRevision(SerializedApplicationTemplate.newBuilder().build()) + .setHelmChartMetadata(HelmChartMetadata.newBuilder().build()) + .setUuid("uuid3601339") + .setMetadataInput(MetadataInput.newBuilder().build()) + .setTemplateCategory(TemplateCategory.forNumber(0)) + .addAllLogicalProducts(new ArrayList()) + .putAllAnnotations(new HashMap()) + .setInferredMetadata(InferredMetadata.newBuilder().build()) + .addAllResourceTypes(new ArrayList()) + .setIacSource(IACSource.forNumber(0)) + .addAllApplicationParameters(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-336/locations/location-336/spaces/space-336/catalogs/catalog-336/templates/template-336/revisions/revision-336"; + + CatalogTemplateRevision actualResponse = client.getCatalogTemplateRevision(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 getCatalogTemplateRevisionExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-336/locations/location-336/spaces/space-336/catalogs/catalog-336/templates/template-336/revisions/revision-336"; + client.getCatalogTemplateRevision(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCatalogTemplateRevisionsTest() throws Exception { + CatalogTemplateRevision responsesElement = CatalogTemplateRevision.newBuilder().build(); + ListCatalogTemplateRevisionsResponse expectedResponse = + ListCatalogTemplateRevisionsResponse.newBuilder() + .setNextPageToken("") + .addAllCatalogTemplateRevisions(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + CatalogTemplateName parent = + CatalogTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]"); + + ListCatalogTemplateRevisionsPagedResponse pagedListResponse = + client.listCatalogTemplateRevisions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getCatalogTemplateRevisionsList().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 listCatalogTemplateRevisionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CatalogTemplateName parent = + CatalogTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]"); + client.listCatalogTemplateRevisions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCatalogTemplateRevisionsTest2() throws Exception { + CatalogTemplateRevision responsesElement = CatalogTemplateRevision.newBuilder().build(); + ListCatalogTemplateRevisionsResponse expectedResponse = + ListCatalogTemplateRevisionsResponse.newBuilder() + .setNextPageToken("") + .addAllCatalogTemplateRevisions(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = + "projects/project-7179/locations/location-7179/spaces/space-7179/catalogs/catalog-7179/templates/template-7179"; + + ListCatalogTemplateRevisionsPagedResponse pagedListResponse = + client.listCatalogTemplateRevisions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getCatalogTemplateRevisionsList().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 listCatalogTemplateRevisionsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-7179/locations/location-7179/spaces/space-7179/catalogs/catalog-7179/templates/template-7179"; + client.listCatalogTemplateRevisions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteCatalogTemplateRevisionTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteCatalogTemplateRevisionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + CatalogTemplateRevisionName name = + CatalogTemplateRevisionName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]", "[REVISION]"); + + client.deleteCatalogTemplateRevisionAsync(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 deleteCatalogTemplateRevisionExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CatalogTemplateRevisionName name = + CatalogTemplateRevisionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[CATALOG]", + "[CATALOG_TEMPLATE]", + "[REVISION]"); + client.deleteCatalogTemplateRevisionAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteCatalogTemplateRevisionTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteCatalogTemplateRevisionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-336/locations/location-336/spaces/space-336/catalogs/catalog-336/templates/template-336/revisions/revision-336"; + + client.deleteCatalogTemplateRevisionAsync(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 deleteCatalogTemplateRevisionExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-336/locations/location-336/spaces/space-336/catalogs/catalog-336/templates/template-336/revisions/revision-336"; + client.deleteCatalogTemplateRevisionAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createApplicationTest() throws Exception { + Application expectedResponse = + Application.newBuilder() + .setName( + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSource(DeploymentSource.newBuilder().build()) + .addAllAppParameters(new ArrayList()) + .addAllComponentParameters(new ArrayList()) + .setServiceAccount("serviceAccount1079137720") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setAttributes(Attributes.newBuilder().build()) + .setScope(Scope.newBuilder().build()) + .setImportExistingResources(true) + .setPreviewReference("previewReference1962163299") + .setDeploymentRevision("deploymentRevision-13024832") + .setApphubApplication("apphubApplication104302972") + .setSerializedApplicationTemplate(SerializedApplicationTemplate.newBuilder().build()) + .setDeploymentMetadata(DeploymentMetadata.newBuilder().build()) + .addAllProjectParameters(new ArrayList()) + .setDeploymentRegion("deploymentRegion1711269401") + .setUpdatedTemplateRevision(UpdatedTemplateRevision.newBuilder().build()) + .setDeploymentProject("deploymentProject114323604") + .addAllConnectionConfigs(new ArrayList()) + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .setType(ApplicationType.forNumber(0)) + .setDeploymentTarget(DeploymentTarget.newBuilder().build()) + .setCompositionType(ApplicationCompositionType.forNumber(0)) + .setCompositeApplicationParameters(CompositeApplicationParameters.newBuilder().build()) + .setDeploymentGroupMetadata(DeploymentGroupMetadata.newBuilder().build()) + .addAllRolesApisConfig(new ArrayList()) + .setTemplateMetadata(TFBlueprintMetadata.newBuilder().build()) + .setIacSource(IACSource.forNumber(0)) + .build(); + mockService.addResponse(expectedResponse); + + SpaceName parent = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]"); + Application application = Application.newBuilder().build(); + String applicationId = "applicationId-1011352949"; + + Application actualResponse = client.createApplication(parent, application, applicationId); + 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 createApplicationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SpaceName parent = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]"); + Application application = Application.newBuilder().build(); + String applicationId = "applicationId-1011352949"; + client.createApplication(parent, application, applicationId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createApplicationTest2() throws Exception { + Application expectedResponse = + Application.newBuilder() + .setName( + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSource(DeploymentSource.newBuilder().build()) + .addAllAppParameters(new ArrayList()) + .addAllComponentParameters(new ArrayList()) + .setServiceAccount("serviceAccount1079137720") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setAttributes(Attributes.newBuilder().build()) + .setScope(Scope.newBuilder().build()) + .setImportExistingResources(true) + .setPreviewReference("previewReference1962163299") + .setDeploymentRevision("deploymentRevision-13024832") + .setApphubApplication("apphubApplication104302972") + .setSerializedApplicationTemplate(SerializedApplicationTemplate.newBuilder().build()) + .setDeploymentMetadata(DeploymentMetadata.newBuilder().build()) + .addAllProjectParameters(new ArrayList()) + .setDeploymentRegion("deploymentRegion1711269401") + .setUpdatedTemplateRevision(UpdatedTemplateRevision.newBuilder().build()) + .setDeploymentProject("deploymentProject114323604") + .addAllConnectionConfigs(new ArrayList()) + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .setType(ApplicationType.forNumber(0)) + .setDeploymentTarget(DeploymentTarget.newBuilder().build()) + .setCompositionType(ApplicationCompositionType.forNumber(0)) + .setCompositeApplicationParameters(CompositeApplicationParameters.newBuilder().build()) + .setDeploymentGroupMetadata(DeploymentGroupMetadata.newBuilder().build()) + .addAllRolesApisConfig(new ArrayList()) + .setTemplateMetadata(TFBlueprintMetadata.newBuilder().build()) + .setIacSource(IACSource.forNumber(0)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-2462/locations/location-2462/spaces/space-2462"; + Application application = Application.newBuilder().build(); + String applicationId = "applicationId-1011352949"; + + Application actualResponse = client.createApplication(parent, application, applicationId); + 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 createApplicationExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-2462/locations/location-2462/spaces/space-2462"; + Application application = Application.newBuilder().build(); + String applicationId = "applicationId-1011352949"; + client.createApplication(parent, application, applicationId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getApplicationTest() throws Exception { + Application expectedResponse = + Application.newBuilder() + .setName( + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSource(DeploymentSource.newBuilder().build()) + .addAllAppParameters(new ArrayList()) + .addAllComponentParameters(new ArrayList()) + .setServiceAccount("serviceAccount1079137720") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setAttributes(Attributes.newBuilder().build()) + .setScope(Scope.newBuilder().build()) + .setImportExistingResources(true) + .setPreviewReference("previewReference1962163299") + .setDeploymentRevision("deploymentRevision-13024832") + .setApphubApplication("apphubApplication104302972") + .setSerializedApplicationTemplate(SerializedApplicationTemplate.newBuilder().build()) + .setDeploymentMetadata(DeploymentMetadata.newBuilder().build()) + .addAllProjectParameters(new ArrayList()) + .setDeploymentRegion("deploymentRegion1711269401") + .setUpdatedTemplateRevision(UpdatedTemplateRevision.newBuilder().build()) + .setDeploymentProject("deploymentProject114323604") + .addAllConnectionConfigs(new ArrayList()) + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .setType(ApplicationType.forNumber(0)) + .setDeploymentTarget(DeploymentTarget.newBuilder().build()) + .setCompositionType(ApplicationCompositionType.forNumber(0)) + .setCompositeApplicationParameters(CompositeApplicationParameters.newBuilder().build()) + .setDeploymentGroupMetadata(DeploymentGroupMetadata.newBuilder().build()) + .addAllRolesApisConfig(new ArrayList()) + .setTemplateMetadata(TFBlueprintMetadata.newBuilder().build()) + .setIacSource(IACSource.forNumber(0)) + .build(); + mockService.addResponse(expectedResponse); + + ApplicationName name = + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]"); + + Application actualResponse = client.getApplication(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 getApplicationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ApplicationName name = + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]"); + client.getApplication(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getApplicationTest2() throws Exception { + Application expectedResponse = + Application.newBuilder() + .setName( + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSource(DeploymentSource.newBuilder().build()) + .addAllAppParameters(new ArrayList()) + .addAllComponentParameters(new ArrayList()) + .setServiceAccount("serviceAccount1079137720") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setAttributes(Attributes.newBuilder().build()) + .setScope(Scope.newBuilder().build()) + .setImportExistingResources(true) + .setPreviewReference("previewReference1962163299") + .setDeploymentRevision("deploymentRevision-13024832") + .setApphubApplication("apphubApplication104302972") + .setSerializedApplicationTemplate(SerializedApplicationTemplate.newBuilder().build()) + .setDeploymentMetadata(DeploymentMetadata.newBuilder().build()) + .addAllProjectParameters(new ArrayList()) + .setDeploymentRegion("deploymentRegion1711269401") + .setUpdatedTemplateRevision(UpdatedTemplateRevision.newBuilder().build()) + .setDeploymentProject("deploymentProject114323604") + .addAllConnectionConfigs(new ArrayList()) + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .setType(ApplicationType.forNumber(0)) + .setDeploymentTarget(DeploymentTarget.newBuilder().build()) + .setCompositionType(ApplicationCompositionType.forNumber(0)) + .setCompositeApplicationParameters(CompositeApplicationParameters.newBuilder().build()) + .setDeploymentGroupMetadata(DeploymentGroupMetadata.newBuilder().build()) + .addAllRolesApisConfig(new ArrayList()) + .setTemplateMetadata(TFBlueprintMetadata.newBuilder().build()) + .setIacSource(IACSource.forNumber(0)) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-4448/locations/location-4448/spaces/space-4448/applications/application-4448"; + + Application actualResponse = client.getApplication(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 getApplicationExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-4448/locations/location-4448/spaces/space-4448/applications/application-4448"; + client.getApplication(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listApplicationsTest() throws Exception { + Application responsesElement = Application.newBuilder().build(); + ListApplicationsResponse expectedResponse = + ListApplicationsResponse.newBuilder() + .setNextPageToken("") + .addAllApplications(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + SpaceName parent = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]"); + + ListApplicationsPagedResponse pagedListResponse = client.listApplications(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getApplicationsList().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 listApplicationsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SpaceName parent = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]"); + client.listApplications(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listApplicationsTest2() throws Exception { + Application responsesElement = Application.newBuilder().build(); + ListApplicationsResponse expectedResponse = + ListApplicationsResponse.newBuilder() + .setNextPageToken("") + .addAllApplications(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-2462/locations/location-2462/spaces/space-2462"; + + ListApplicationsPagedResponse pagedListResponse = client.listApplications(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getApplicationsList().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 listApplicationsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-2462/locations/location-2462/spaces/space-2462"; + client.listApplications(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateApplicationTest() throws Exception { + Application expectedResponse = + Application.newBuilder() + .setName( + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSource(DeploymentSource.newBuilder().build()) + .addAllAppParameters(new ArrayList()) + .addAllComponentParameters(new ArrayList()) + .setServiceAccount("serviceAccount1079137720") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setAttributes(Attributes.newBuilder().build()) + .setScope(Scope.newBuilder().build()) + .setImportExistingResources(true) + .setPreviewReference("previewReference1962163299") + .setDeploymentRevision("deploymentRevision-13024832") + .setApphubApplication("apphubApplication104302972") + .setSerializedApplicationTemplate(SerializedApplicationTemplate.newBuilder().build()) + .setDeploymentMetadata(DeploymentMetadata.newBuilder().build()) + .addAllProjectParameters(new ArrayList()) + .setDeploymentRegion("deploymentRegion1711269401") + .setUpdatedTemplateRevision(UpdatedTemplateRevision.newBuilder().build()) + .setDeploymentProject("deploymentProject114323604") + .addAllConnectionConfigs(new ArrayList()) + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .setType(ApplicationType.forNumber(0)) + .setDeploymentTarget(DeploymentTarget.newBuilder().build()) + .setCompositionType(ApplicationCompositionType.forNumber(0)) + .setCompositeApplicationParameters(CompositeApplicationParameters.newBuilder().build()) + .setDeploymentGroupMetadata(DeploymentGroupMetadata.newBuilder().build()) + .addAllRolesApisConfig(new ArrayList()) + .setTemplateMetadata(TFBlueprintMetadata.newBuilder().build()) + .setIacSource(IACSource.forNumber(0)) + .build(); + mockService.addResponse(expectedResponse); + + Application application = + Application.newBuilder() + .setName( + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSource(DeploymentSource.newBuilder().build()) + .addAllAppParameters(new ArrayList()) + .addAllComponentParameters(new ArrayList()) + .setServiceAccount("serviceAccount1079137720") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setAttributes(Attributes.newBuilder().build()) + .setScope(Scope.newBuilder().build()) + .setImportExistingResources(true) + .setPreviewReference("previewReference1962163299") + .setDeploymentRevision("deploymentRevision-13024832") + .setApphubApplication("apphubApplication104302972") + .setSerializedApplicationTemplate(SerializedApplicationTemplate.newBuilder().build()) + .setDeploymentMetadata(DeploymentMetadata.newBuilder().build()) + .addAllProjectParameters(new ArrayList()) + .setDeploymentRegion("deploymentRegion1711269401") + .setUpdatedTemplateRevision(UpdatedTemplateRevision.newBuilder().build()) + .setDeploymentProject("deploymentProject114323604") + .addAllConnectionConfigs(new ArrayList()) + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .setType(ApplicationType.forNumber(0)) + .setDeploymentTarget(DeploymentTarget.newBuilder().build()) + .setCompositionType(ApplicationCompositionType.forNumber(0)) + .setCompositeApplicationParameters(CompositeApplicationParameters.newBuilder().build()) + .setDeploymentGroupMetadata(DeploymentGroupMetadata.newBuilder().build()) + .addAllRolesApisConfig(new ArrayList()) + .setTemplateMetadata(TFBlueprintMetadata.newBuilder().build()) + .setIacSource(IACSource.forNumber(0)) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Application actualResponse = client.updateApplication(application, 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 updateApplicationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Application application = + Application.newBuilder() + .setName( + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSource(DeploymentSource.newBuilder().build()) + .addAllAppParameters(new ArrayList()) + .addAllComponentParameters(new ArrayList()) + .setServiceAccount("serviceAccount1079137720") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setAttributes(Attributes.newBuilder().build()) + .setScope(Scope.newBuilder().build()) + .setImportExistingResources(true) + .setPreviewReference("previewReference1962163299") + .setDeploymentRevision("deploymentRevision-13024832") + .setApphubApplication("apphubApplication104302972") + .setSerializedApplicationTemplate(SerializedApplicationTemplate.newBuilder().build()) + .setDeploymentMetadata(DeploymentMetadata.newBuilder().build()) + .addAllProjectParameters(new ArrayList()) + .setDeploymentRegion("deploymentRegion1711269401") + .setUpdatedTemplateRevision(UpdatedTemplateRevision.newBuilder().build()) + .setDeploymentProject("deploymentProject114323604") + .addAllConnectionConfigs(new ArrayList()) + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .setType(ApplicationType.forNumber(0)) + .setDeploymentTarget(DeploymentTarget.newBuilder().build()) + .setCompositionType(ApplicationCompositionType.forNumber(0)) + .setCompositeApplicationParameters( + CompositeApplicationParameters.newBuilder().build()) + .setDeploymentGroupMetadata(DeploymentGroupMetadata.newBuilder().build()) + .addAllRolesApisConfig(new ArrayList()) + .setTemplateMetadata(TFBlueprintMetadata.newBuilder().build()) + .setIacSource(IACSource.forNumber(0)) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateApplication(application, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteApplicationTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteApplicationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ApplicationName name = + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]"); + + client.deleteApplicationAsync(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 deleteApplicationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ApplicationName name = + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]"); + client.deleteApplicationAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteApplicationTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteApplicationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-4448/locations/location-4448/spaces/space-4448/applications/application-4448"; + + client.deleteApplicationAsync(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 deleteApplicationExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-4448/locations/location-4448/spaces/space-4448/applications/application-4448"; + client.deleteApplicationAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deployApplicationTest() throws Exception { + DeployApplicationResponse expectedResponse = + DeployApplicationResponse.newBuilder() + .setDeployment(Deployment.newBuilder().build()) + .setBuildId("buildId230943785") + .setDeploymentGroup(DeploymentGroup.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deployApplicationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ApplicationName name = + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]"); + + DeployApplicationResponse actualResponse = client.deployApplicationAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deployApplicationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ApplicationName name = + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]"); + client.deployApplicationAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deployApplicationTest2() throws Exception { + DeployApplicationResponse expectedResponse = + DeployApplicationResponse.newBuilder() + .setDeployment(Deployment.newBuilder().build()) + .setBuildId("buildId230943785") + .setDeploymentGroup(DeploymentGroup.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deployApplicationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-4448/locations/location-4448/spaces/space-4448/applications/application-4448"; + + DeployApplicationResponse actualResponse = client.deployApplicationAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deployApplicationExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-4448/locations/location-4448/spaces/space-4448/applications/application-4448"; + client.deployApplicationAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void previewApplicationTest() throws Exception { + PreviewApplicationResponse expectedResponse = + PreviewApplicationResponse.newBuilder() + .setPreview(Preview.newBuilder().build()) + .setAssessmentReport(AssessmentReport.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("previewApplicationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ApplicationName name = + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]"); + + PreviewApplicationResponse actualResponse = client.previewApplicationAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void previewApplicationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ApplicationName name = + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]"); + client.previewApplicationAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void previewApplicationTest2() throws Exception { + PreviewApplicationResponse expectedResponse = + PreviewApplicationResponse.newBuilder() + .setPreview(Preview.newBuilder().build()) + .setAssessmentReport(AssessmentReport.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("previewApplicationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-4448/locations/location-4448/spaces/space-4448/applications/application-4448"; + + PreviewApplicationResponse actualResponse = client.previewApplicationAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void previewApplicationExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-4448/locations/location-4448/spaces/space-4448/applications/application-4448"; + client.previewApplicationAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void fetchApplicationAssessmentReportTest() throws Exception { + FetchApplicationAssessmentReportResponse expectedResponse = + FetchApplicationAssessmentReportResponse.newBuilder() + .setAssessmentReport(AssessmentReport.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + ApplicationName name = + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]"); + + FetchApplicationAssessmentReportResponse actualResponse = + client.fetchApplicationAssessmentReport(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 fetchApplicationAssessmentReportExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ApplicationName name = + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]"); + client.fetchApplicationAssessmentReport(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void fetchApplicationAssessmentReportTest2() throws Exception { + FetchApplicationAssessmentReportResponse expectedResponse = + FetchApplicationAssessmentReportResponse.newBuilder() + .setAssessmentReport(AssessmentReport.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-4448/locations/location-4448/spaces/space-4448/applications/application-4448"; + + FetchApplicationAssessmentReportResponse actualResponse = + client.fetchApplicationAssessmentReport(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 fetchApplicationAssessmentReportExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-4448/locations/location-4448/spaces/space-4448/applications/application-4448"; + client.fetchApplicationAssessmentReport(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void generateApplicationAssessmentReportTest() throws Exception { + GenerateApplicationAssessmentReportResponse expectedResponse = + GenerateApplicationAssessmentReportResponse.newBuilder() + .setAssessmentReport(AssessmentReport.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("generateApplicationAssessmentReportTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ApplicationName name = + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]"); + + GenerateApplicationAssessmentReportResponse actualResponse = + client.generateApplicationAssessmentReportAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void generateApplicationAssessmentReportExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ApplicationName name = + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]"); + client.generateApplicationAssessmentReportAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void generateApplicationAssessmentReportTest2() throws Exception { + GenerateApplicationAssessmentReportResponse expectedResponse = + GenerateApplicationAssessmentReportResponse.newBuilder() + .setAssessmentReport(AssessmentReport.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("generateApplicationAssessmentReportTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-4448/locations/location-4448/spaces/space-4448/applications/application-4448"; + + GenerateApplicationAssessmentReportResponse actualResponse = + client.generateApplicationAssessmentReportAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void generateApplicationAssessmentReportExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-4448/locations/location-4448/spaces/space-4448/applications/application-4448"; + client.generateApplicationAssessmentReportAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void generateApplicationTemplateAssessmentReportTest() throws Exception { + GenerateApplicationTemplateAssessmentReportResponse expectedResponse = + GenerateApplicationTemplateAssessmentReportResponse.newBuilder() + .setPreview(Preview.newBuilder().build()) + .setAssessmentReport(AssessmentReport.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("generateApplicationTemplateAssessmentReportTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ApplicationTemplateName name = + ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + + GenerateApplicationTemplateAssessmentReportResponse actualResponse = + client.generateApplicationTemplateAssessmentReportAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void generateApplicationTemplateAssessmentReportExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ApplicationTemplateName name = + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + client.generateApplicationTemplateAssessmentReportAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void generateApplicationTemplateAssessmentReportTest2() throws Exception { + GenerateApplicationTemplateAssessmentReportResponse expectedResponse = + GenerateApplicationTemplateAssessmentReportResponse.newBuilder() + .setPreview(Preview.newBuilder().build()) + .setAssessmentReport(AssessmentReport.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("generateApplicationTemplateAssessmentReportTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-2810/locations/location-2810/spaces/space-2810/applicationTemplates/applicationTemplate-2810"; + + GenerateApplicationTemplateAssessmentReportResponse actualResponse = + client.generateApplicationTemplateAssessmentReportAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void generateApplicationTemplateAssessmentReportExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-2810/locations/location-2810/spaces/space-2810/applicationTemplates/applicationTemplate-2810"; + client.generateApplicationTemplateAssessmentReportAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void generateAssessmentReportTest() throws Exception { + GenerateAssessmentReportResponse expectedResponse = + GenerateAssessmentReportResponse.newBuilder() + .setAssessmentReport(AssessmentReport.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("generateAssessmentReportTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + SpaceName spaceName = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]"); + + GenerateAssessmentReportResponse actualResponse = + client.generateAssessmentReportAsync(spaceName).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 generateAssessmentReportExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SpaceName spaceName = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]"); + client.generateAssessmentReportAsync(spaceName).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void generateAssessmentReportTest2() throws Exception { + GenerateAssessmentReportResponse expectedResponse = + GenerateAssessmentReportResponse.newBuilder() + .setAssessmentReport(AssessmentReport.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("generateAssessmentReportTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String spaceName = "projects/project-1015/locations/location-1015/spaces/space-1015"; + + GenerateAssessmentReportResponse actualResponse = + client.generateAssessmentReportAsync(spaceName).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 generateAssessmentReportExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String spaceName = "projects/project-1015/locations/location-1015/spaces/space-1015"; + client.generateAssessmentReportAsync(spaceName).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void generateTerraformPlanAssessmentReportTest() throws Exception { + GenerateTerraformPlanAssessmentReportResponse expectedResponse = + GenerateTerraformPlanAssessmentReportResponse.newBuilder() + .setAssessmentReport(AssessmentReport.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("generateTerraformPlanAssessmentReportTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + SpaceName name = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]"); + ByteString terraformPlan = ByteString.EMPTY; + + GenerateTerraformPlanAssessmentReportResponse actualResponse = + client.generateTerraformPlanAssessmentReportAsync(name, terraformPlan).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 generateTerraformPlanAssessmentReportExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SpaceName name = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]"); + ByteString terraformPlan = ByteString.EMPTY; + client.generateTerraformPlanAssessmentReportAsync(name, terraformPlan).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void generateTerraformPlanAssessmentReportTest2() throws Exception { + GenerateTerraformPlanAssessmentReportResponse expectedResponse = + GenerateTerraformPlanAssessmentReportResponse.newBuilder() + .setAssessmentReport(AssessmentReport.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("generateTerraformPlanAssessmentReportTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-1635/locations/location-1635/spaces/space-1635"; + ByteString terraformPlan = ByteString.EMPTY; + + GenerateTerraformPlanAssessmentReportResponse actualResponse = + client.generateTerraformPlanAssessmentReportAsync(name, terraformPlan).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 generateTerraformPlanAssessmentReportExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-1635/locations/location-1635/spaces/space-1635"; + ByteString terraformPlan = ByteString.EMPTY; + client.generateTerraformPlanAssessmentReportAsync(name, terraformPlan).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void getPolicyTest() throws Exception { + com.google.cloud.designcenter.v1.Policy expectedResponse = + com.google.cloud.designcenter.v1.Policy.newBuilder() + .setName( + PolicyName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[POLICY]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllApplyConditions(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllCloudControlConfigs(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + PolicyName name = + PolicyName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[POLICY]"); + + com.google.cloud.designcenter.v1.Policy actualResponse = client.getPolicy(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 getPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + PolicyName name = + PolicyName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[POLICY]"); + client.getPolicy(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getPolicyTest2() throws Exception { + com.google.cloud.designcenter.v1.Policy expectedResponse = + com.google.cloud.designcenter.v1.Policy.newBuilder() + .setName( + PolicyName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[POLICY]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllApplyConditions(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllCloudControlConfigs(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-740/locations/location-740/spaces/space-740/applicationTemplates/applicationTemplate-740/policies/policie-740"; + + com.google.cloud.designcenter.v1.Policy actualResponse = client.getPolicy(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 getPolicyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-740/locations/location-740/spaces/space-740/applicationTemplates/applicationTemplate-740/policies/policie-740"; + client.getPolicy(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listPoliciesTest() throws Exception { + com.google.cloud.designcenter.v1.Policy responsesElement = + com.google.cloud.designcenter.v1.Policy.newBuilder().build(); + ListPoliciesResponse expectedResponse = + ListPoliciesResponse.newBuilder() + .setNextPageToken("") + .addAllPolicies(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ApplicationTemplateName parent = + ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + + ListPoliciesPagedResponse pagedListResponse = client.listPolicies(parent); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getPoliciesList().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 listPoliciesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ApplicationTemplateName parent = + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + client.listPolicies(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listPoliciesTest2() throws Exception { + com.google.cloud.designcenter.v1.Policy responsesElement = + com.google.cloud.designcenter.v1.Policy.newBuilder().build(); + ListPoliciesResponse expectedResponse = + ListPoliciesResponse.newBuilder() + .setNextPageToken("") + .addAllPolicies(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = + "projects/project-9797/locations/location-9797/spaces/space-9797/applicationTemplates/applicationTemplate-9797"; + + ListPoliciesPagedResponse pagedListResponse = client.listPolicies(parent); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getPoliciesList().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 listPoliciesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-9797/locations/location-9797/spaces/space-9797/applicationTemplates/applicationTemplate-9797"; + client.listPolicies(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createPolicyTest() throws Exception { + com.google.cloud.designcenter.v1.Policy expectedResponse = + com.google.cloud.designcenter.v1.Policy.newBuilder() + .setName( + PolicyName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[POLICY]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllApplyConditions(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllCloudControlConfigs(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + ApplicationTemplateName parent = + ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + com.google.cloud.designcenter.v1.Policy policy = + com.google.cloud.designcenter.v1.Policy.newBuilder().build(); + String policyId = "policyId546908653"; + + com.google.cloud.designcenter.v1.Policy actualResponse = + client.createPolicy(parent, policy, policyId); + 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 createPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ApplicationTemplateName parent = + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + com.google.cloud.designcenter.v1.Policy policy = + com.google.cloud.designcenter.v1.Policy.newBuilder().build(); + String policyId = "policyId546908653"; + client.createPolicy(parent, policy, policyId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createPolicyTest2() throws Exception { + com.google.cloud.designcenter.v1.Policy expectedResponse = + com.google.cloud.designcenter.v1.Policy.newBuilder() + .setName( + PolicyName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[POLICY]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllApplyConditions(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllCloudControlConfigs(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = + "projects/project-9797/locations/location-9797/spaces/space-9797/applicationTemplates/applicationTemplate-9797"; + com.google.cloud.designcenter.v1.Policy policy = + com.google.cloud.designcenter.v1.Policy.newBuilder().build(); + String policyId = "policyId546908653"; + + com.google.cloud.designcenter.v1.Policy actualResponse = + client.createPolicy(parent, policy, policyId); + 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 createPolicyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-9797/locations/location-9797/spaces/space-9797/applicationTemplates/applicationTemplate-9797"; + com.google.cloud.designcenter.v1.Policy policy = + com.google.cloud.designcenter.v1.Policy.newBuilder().build(); + String policyId = "policyId546908653"; + client.createPolicy(parent, policy, policyId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updatePolicyTest() throws Exception { + com.google.cloud.designcenter.v1.Policy expectedResponse = + com.google.cloud.designcenter.v1.Policy.newBuilder() + .setName( + PolicyName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[POLICY]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllApplyConditions(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllCloudControlConfigs(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + com.google.cloud.designcenter.v1.Policy policy = + com.google.cloud.designcenter.v1.Policy.newBuilder() + .setName( + PolicyName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[POLICY]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllApplyConditions(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllCloudControlConfigs(new ArrayList()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + com.google.cloud.designcenter.v1.Policy actualResponse = + client.updatePolicy(policy, 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 updatePolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + com.google.cloud.designcenter.v1.Policy policy = + com.google.cloud.designcenter.v1.Policy.newBuilder() + .setName( + PolicyName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[POLICY]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllApplyConditions(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllCloudControlConfigs(new ArrayList()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updatePolicy(policy, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deletePolicyTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + PolicyName name = + PolicyName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[POLICY]"); + + client.deletePolicy(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 deletePolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + PolicyName name = + PolicyName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[POLICY]"); + client.deletePolicy(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deletePolicyTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-740/locations/location-740/spaces/space-740/applicationTemplates/applicationTemplate-740/policies/policie-740"; + + client.deletePolicy(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 deletePolicyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-740/locations/location-740/spaces/space-740/applicationTemplates/applicationTemplate-740/policies/policie-740"; + client.deletePolicy(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void fetchFrameworksTest() throws Exception { + Framework responsesElement = Framework.newBuilder().build(); + FetchFrameworksResponse expectedResponse = + FetchFrameworksResponse.newBuilder() + .setNextPageToken("") + .addAllFrameworks(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + FetchFrameworksPagedResponse pagedListResponse = client.fetchFrameworks(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getFrameworksList().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 fetchFrameworksExceptionTest() 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.fetchFrameworks(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void generateApplicationIaCTest() throws Exception { + GenerateApplicationIaCResponse expectedResponse = + GenerateApplicationIaCResponse.newBuilder() + .setGcsUri("gcsUri-1251224875") + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .setRootModulesMetadata(RootModulesMetadata.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + ApplicationName name = + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]"); + + GenerateApplicationIaCResponse actualResponse = client.generateApplicationIaC(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 generateApplicationIaCExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ApplicationName name = + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]"); + client.generateApplicationIaC(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void generateApplicationIaCTest2() throws Exception { + GenerateApplicationIaCResponse expectedResponse = + GenerateApplicationIaCResponse.newBuilder() + .setGcsUri("gcsUri-1251224875") + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .setRootModulesMetadata(RootModulesMetadata.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-4448/locations/location-4448/spaces/space-4448/applications/application-4448"; + + GenerateApplicationIaCResponse actualResponse = client.generateApplicationIaC(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 generateApplicationIaCExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-4448/locations/location-4448/spaces/space-4448/applications/application-4448"; + client.generateApplicationIaC(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void exportApplicationIaCTest() throws Exception { + ExportApplicationIaCResponse expectedResponse = + ExportApplicationIaCResponse.newBuilder() + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .setRootModulesMetadata(RootModulesMetadata.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("exportApplicationIaCTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ApplicationName name = + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]"); + + ExportApplicationIaCResponse actualResponse = client.exportApplicationIaCAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void exportApplicationIaCExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ApplicationName name = + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]"); + client.exportApplicationIaCAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void exportApplicationIaCTest2() throws Exception { + ExportApplicationIaCResponse expectedResponse = + ExportApplicationIaCResponse.newBuilder() + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .setRootModulesMetadata(RootModulesMetadata.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("exportApplicationIaCTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-4448/locations/location-4448/spaces/space-4448/applications/application-4448"; + + ExportApplicationIaCResponse actualResponse = client.exportApplicationIaCAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void exportApplicationIaCExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-4448/locations/location-4448/spaces/space-4448/applications/application-4448"; + client.exportApplicationIaCAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void importApplicationTemplateIaCTest() throws Exception { + ImportApplicationTemplateIaCResponse expectedResponse = + ImportApplicationTemplateIaCResponse.newBuilder() + .setApplicationTemplate(ApplicationTemplate.newBuilder().build()) + .addAllErrors(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + ApplicationTemplateName name = + ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + + ImportApplicationTemplateIaCResponse actualResponse = client.importApplicationTemplateIaC(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 importApplicationTemplateIaCExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ApplicationTemplateName name = + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + client.importApplicationTemplateIaC(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void importApplicationTemplateIaCTest2() throws Exception { + ImportApplicationTemplateIaCResponse expectedResponse = + ImportApplicationTemplateIaCResponse.newBuilder() + .setApplicationTemplate(ApplicationTemplate.newBuilder().build()) + .addAllErrors(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-2810/locations/location-2810/spaces/space-2810/applicationTemplates/applicationTemplate-2810"; + + ImportApplicationTemplateIaCResponse actualResponse = client.importApplicationTemplateIaC(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 importApplicationTemplateIaCExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-2810/locations/location-2810/spaces/space-2810/applicationTemplates/applicationTemplate-2810"; + client.importApplicationTemplateIaC(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void ingestApplicationTemplateIaCTest() throws Exception { + IngestApplicationTemplateIaCResponse expectedResponse = + IngestApplicationTemplateIaCResponse.newBuilder() + .setApplicationTemplate(ApplicationTemplate.newBuilder().build()) + .addAllErrors(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("ingestApplicationTemplateIaCTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ApplicationTemplateName name = + ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + + IngestApplicationTemplateIaCResponse actualResponse = + client.ingestApplicationTemplateIaCAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void ingestApplicationTemplateIaCExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ApplicationTemplateName name = + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + client.ingestApplicationTemplateIaCAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void ingestApplicationTemplateIaCTest2() throws Exception { + IngestApplicationTemplateIaCResponse expectedResponse = + IngestApplicationTemplateIaCResponse.newBuilder() + .setApplicationTemplate(ApplicationTemplate.newBuilder().build()) + .addAllErrors(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("ingestApplicationTemplateIaCTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-2810/locations/location-2810/spaces/space-2810/applicationTemplates/applicationTemplate-2810"; + + IngestApplicationTemplateIaCResponse actualResponse = + client.ingestApplicationTemplateIaCAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void ingestApplicationTemplateIaCExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-2810/locations/location-2810/spaces/space-2810/applicationTemplates/applicationTemplate-2810"; + client.ingestApplicationTemplateIaCAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void importApplicationIaCTest() throws Exception { + ImportApplicationIaCResponse expectedResponse = + ImportApplicationIaCResponse.newBuilder() + .setApplication(Application.newBuilder().build()) + .addAllErrors(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + ApplicationName name = + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]"); + + ImportApplicationIaCResponse actualResponse = client.importApplicationIaC(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 importApplicationIaCExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ApplicationName name = + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]"); + client.importApplicationIaC(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void importApplicationIaCTest2() throws Exception { + ImportApplicationIaCResponse expectedResponse = + ImportApplicationIaCResponse.newBuilder() + .setApplication(Application.newBuilder().build()) + .addAllErrors(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-4448/locations/location-4448/spaces/space-4448/applications/application-4448"; + + ImportApplicationIaCResponse actualResponse = client.importApplicationIaC(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 importApplicationIaCExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-4448/locations/location-4448/spaces/space-4448/applications/application-4448"; + client.importApplicationIaC(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void registerAppHubApplicationResourcesTest() throws Exception { + RegisterAppHubApplicationResourcesResponse expectedResponse = + RegisterAppHubApplicationResourcesResponse.newBuilder() + .setResponse(DeployedResourceResponse.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("registerAppHubApplicationResourcesTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String apphubApplication = "apphubApplication104302972"; + String tfstateContent = "tfstateContent-1547770342"; + + RegisterAppHubApplicationResourcesResponse actualResponse = + client + .registerAppHubApplicationResourcesAsync(parent, apphubApplication, tfstateContent) + .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 registerAppHubApplicationResourcesExceptionTest() 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]"); + String apphubApplication = "apphubApplication104302972"; + String tfstateContent = "tfstateContent-1547770342"; + client + .registerAppHubApplicationResourcesAsync(parent, apphubApplication, tfstateContent) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void registerAppHubApplicationResourcesTest2() throws Exception { + RegisterAppHubApplicationResourcesResponse expectedResponse = + RegisterAppHubApplicationResourcesResponse.newBuilder() + .setResponse(DeployedResourceResponse.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("registerAppHubApplicationResourcesTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + String apphubApplication = "apphubApplication104302972"; + String tfstateContent = "tfstateContent-1547770342"; + + RegisterAppHubApplicationResourcesResponse actualResponse = + client + .registerAppHubApplicationResourcesAsync(parent, apphubApplication, tfstateContent) + .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 registerAppHubApplicationResourcesExceptionTest2() 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"; + String apphubApplication = "apphubApplication104302972"; + String tfstateContent = "tfstateContent-1547770342"; + client + .registerAppHubApplicationResourcesAsync(parent, apphubApplication, tfstateContent) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listApplicationTemplateSystemRevisionsTest() throws Exception { + ApplicationTemplateSystemRevision responsesElement = + ApplicationTemplateSystemRevision.newBuilder().build(); + ListApplicationTemplateSystemRevisionsResponse expectedResponse = + ListApplicationTemplateSystemRevisionsResponse.newBuilder() + .setNextPageToken("") + .addAllApplicationTemplateSystemRevisions(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ApplicationTemplateName parent = + ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + + ListApplicationTemplateSystemRevisionsPagedResponse pagedListResponse = + client.listApplicationTemplateSystemRevisions(parent); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getApplicationTemplateSystemRevisionsList().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 listApplicationTemplateSystemRevisionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ApplicationTemplateName parent = + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + client.listApplicationTemplateSystemRevisions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listApplicationTemplateSystemRevisionsTest2() throws Exception { + ApplicationTemplateSystemRevision responsesElement = + ApplicationTemplateSystemRevision.newBuilder().build(); + ListApplicationTemplateSystemRevisionsResponse expectedResponse = + ListApplicationTemplateSystemRevisionsResponse.newBuilder() + .setNextPageToken("") + .addAllApplicationTemplateSystemRevisions(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = + "projects/project-9797/locations/location-9797/spaces/space-9797/applicationTemplates/applicationTemplate-9797"; + + ListApplicationTemplateSystemRevisionsPagedResponse pagedListResponse = + client.listApplicationTemplateSystemRevisions(parent); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getApplicationTemplateSystemRevisionsList().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 listApplicationTemplateSystemRevisionsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-9797/locations/location-9797/spaces/space-9797/applicationTemplates/applicationTemplate-9797"; + client.listApplicationTemplateSystemRevisions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getApplicationTemplateSystemRevisionTest() throws Exception { + ApplicationTemplateSystemRevision expectedResponse = + ApplicationTemplateSystemRevision.newBuilder() + .setName( + ApplicationTemplateSystemRevisionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[SYSTEM_REVISION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .putAllAnnotations(new HashMap()) + .setSnapshot(SerializedApplicationTemplate.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + ApplicationTemplateSystemRevisionName name = + ApplicationTemplateSystemRevisionName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[SYSTEM_REVISION]"); + + ApplicationTemplateSystemRevision actualResponse = + client.getApplicationTemplateSystemRevision(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 getApplicationTemplateSystemRevisionExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ApplicationTemplateSystemRevisionName name = + ApplicationTemplateSystemRevisionName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[SYSTEM_REVISION]"); + client.getApplicationTemplateSystemRevision(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getApplicationTemplateSystemRevisionTest2() throws Exception { + ApplicationTemplateSystemRevision expectedResponse = + ApplicationTemplateSystemRevision.newBuilder() + .setName( + ApplicationTemplateSystemRevisionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[SYSTEM_REVISION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .putAllAnnotations(new HashMap()) + .setSnapshot(SerializedApplicationTemplate.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-4133/locations/location-4133/spaces/space-4133/applicationTemplates/applicationTemplate-4133/systemRevisions/systemRevision-4133"; + + ApplicationTemplateSystemRevision actualResponse = + client.getApplicationTemplateSystemRevision(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 getApplicationTemplateSystemRevisionExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-4133/locations/location-4133/spaces/space-4133/applicationTemplates/applicationTemplate-4133/systemRevisions/systemRevision-4133"; + client.getApplicationTemplateSystemRevision(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void recommendIAMRolesTest() throws Exception { + RecommendIAMRolesResponse expectedResponse = + RecommendIAMRolesResponse.newBuilder() + .addAllProjectConfigurations(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("recommendIAMRolesTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ApplicationName name = + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]"); + + RecommendIAMRolesResponse actualResponse = client.recommendIAMRolesAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void recommendIAMRolesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ApplicationName name = + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]"); + client.recommendIAMRolesAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void recommendIAMRolesTest2() throws Exception { + RecommendIAMRolesResponse expectedResponse = + RecommendIAMRolesResponse.newBuilder() + .addAllProjectConfigurations(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("recommendIAMRolesTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-4448/locations/location-4448/spaces/space-4448/applications/application-4448"; + + RecommendIAMRolesResponse actualResponse = client.recommendIAMRolesAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void recommendIAMRolesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-4448/locations/location-4448/spaces/space-4448/applications/application-4448"; + client.recommendIAMRolesAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @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. + } + } + + @Test + public void setIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + + Policy actualResponse = client.setIamPolicy(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 setIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + client.setIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + + Policy actualResponse = client.getIamPolicy(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 getIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + client.getIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(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 testIamPermissionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + client.testIamPermissions(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-designcenter/google-cloud-designcenter/src/test/java/com/google/cloud/designcenter/v1/DesignCenterClientTest.java b/java-designcenter/google-cloud-designcenter/src/test/java/com/google/cloud/designcenter/v1/DesignCenterClientTest.java new file mode 100644 index 000000000000..8747cde444a9 --- /dev/null +++ b/java-designcenter/google-cloud-designcenter/src/test/java/com/google/cloud/designcenter/v1/DesignCenterClientTest.java @@ -0,0 +1,8203 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1; + +import static com.google.cloud.designcenter.v1.DesignCenterClient.FetchFrameworksPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListApplicationTemplateRevisionsPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListApplicationTemplateSystemRevisionsPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListApplicationTemplatesPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListApplicationsPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListCatalogTemplateRevisionsPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListCatalogTemplatesPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListCatalogsPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListComponentsPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListConnectionsPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListLocationsPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListPoliciesPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListSharedTemplateRevisionsPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListSharedTemplatesPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListSharesPagedResponse; +import static com.google.cloud.designcenter.v1.DesignCenterClient.ListSpacesPagedResponse; + +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.apphub.v1.Attributes; +import com.google.cloud.apphub.v1.Scope; +import com.google.cloud.config.v1.Deployment; +import com.google.cloud.config.v1.DeploymentGroup; +import com.google.cloud.config.v1.Preview; +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.iam.v1.AuditConfig; +import com.google.iam.v1.Binding; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.ByteString; +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 DesignCenterClientTest { + private static MockDesignCenter mockDesignCenter; + private static MockIAMPolicy mockIAMPolicy; + private static MockLocations mockLocations; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private DesignCenterClient client; + + @BeforeClass + public static void startStaticServer() { + mockDesignCenter = new MockDesignCenter(); + mockLocations = new MockLocations(); + mockIAMPolicy = new MockIAMPolicy(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockDesignCenter, mockLocations, mockIAMPolicy)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + DesignCenterSettings settings = + DesignCenterSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = DesignCenterClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void getSpaceTest() throws Exception { + Space expectedResponse = + Space.newBuilder() + .setName(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEnableGcpSharedTemplates(true) + .setGcsBucket("gcsBucket239654881") + .putAllTags(new HashMap()) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + SpaceName name = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]"); + + Space actualResponse = client.getSpace(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetSpaceRequest actualRequest = ((GetSpaceRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getSpaceExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + SpaceName name = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]"); + client.getSpace(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSpaceTest2() throws Exception { + Space expectedResponse = + Space.newBuilder() + .setName(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEnableGcpSharedTemplates(true) + .setGcsBucket("gcsBucket239654881") + .putAllTags(new HashMap()) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + String name = "name3373707"; + + Space actualResponse = client.getSpace(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetSpaceRequest actualRequest = ((GetSpaceRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getSpaceExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + String name = "name3373707"; + client.getSpace(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSpacesTest() throws Exception { + Space responsesElement = Space.newBuilder().build(); + ListSpacesResponse expectedResponse = + ListSpacesResponse.newBuilder() + .setNextPageToken("") + .addAllSpaces(Arrays.asList(responsesElement)) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListSpacesPagedResponse pagedListResponse = client.listSpaces(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSpacesList().get(0), resources.get(0)); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListSpacesRequest actualRequest = ((ListSpacesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listSpacesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listSpaces(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSpacesTest2() throws Exception { + Space responsesElement = Space.newBuilder().build(); + ListSpacesResponse expectedResponse = + ListSpacesResponse.newBuilder() + .setNextPageToken("") + .addAllSpaces(Arrays.asList(responsesElement)) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListSpacesPagedResponse pagedListResponse = client.listSpaces(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSpacesList().get(0), resources.get(0)); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListSpacesRequest actualRequest = ((ListSpacesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listSpacesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + String parent = "parent-995424086"; + client.listSpaces(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createSpaceTest() throws Exception { + Space expectedResponse = + Space.newBuilder() + .setName(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEnableGcpSharedTemplates(true) + .setGcsBucket("gcsBucket239654881") + .putAllTags(new HashMap()) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Space space = Space.newBuilder().build(); + String spaceId = "spaceId-2012163903"; + + Space actualResponse = client.createSpace(parent, space, spaceId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateSpaceRequest actualRequest = ((CreateSpaceRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(space, actualRequest.getSpace()); + Assert.assertEquals(spaceId, actualRequest.getSpaceId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createSpaceExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Space space = Space.newBuilder().build(); + String spaceId = "spaceId-2012163903"; + client.createSpace(parent, space, spaceId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createSpaceTest2() throws Exception { + Space expectedResponse = + Space.newBuilder() + .setName(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEnableGcpSharedTemplates(true) + .setGcsBucket("gcsBucket239654881") + .putAllTags(new HashMap()) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + String parent = "parent-995424086"; + Space space = Space.newBuilder().build(); + String spaceId = "spaceId-2012163903"; + + Space actualResponse = client.createSpace(parent, space, spaceId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateSpaceRequest actualRequest = ((CreateSpaceRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(space, actualRequest.getSpace()); + Assert.assertEquals(spaceId, actualRequest.getSpaceId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createSpaceExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + String parent = "parent-995424086"; + Space space = Space.newBuilder().build(); + String spaceId = "spaceId-2012163903"; + client.createSpace(parent, space, spaceId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateSpaceTest() throws Exception { + Space expectedResponse = + Space.newBuilder() + .setName(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEnableGcpSharedTemplates(true) + .setGcsBucket("gcsBucket239654881") + .putAllTags(new HashMap()) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + Space space = Space.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Space actualResponse = client.updateSpace(space, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateSpaceRequest actualRequest = ((UpdateSpaceRequest) actualRequests.get(0)); + + Assert.assertEquals(space, actualRequest.getSpace()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateSpaceExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + Space space = Space.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateSpace(space, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteSpaceTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockDesignCenter.addResponse(expectedResponse); + + SpaceName name = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]"); + + client.deleteSpace(name); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteSpaceRequest actualRequest = ((DeleteSpaceRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteSpaceExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + SpaceName name = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]"); + client.deleteSpace(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteSpaceTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockDesignCenter.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteSpace(name); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteSpaceRequest actualRequest = ((DeleteSpaceRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteSpaceExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + String name = "name3373707"; + client.deleteSpace(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getApplicationTemplateTest() throws Exception { + ApplicationTemplate expectedResponse = + ApplicationTemplate.newBuilder() + .setName( + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllApplicationParameters(new ArrayList()) + .setSerializedApplicationTemplate(SerializedApplicationTemplate.newBuilder().build()) + .setLatestRevision("latestRevision-1002490750") + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .setCompositionType(ApplicationCompositionType.forNumber(0)) + .addAllRootInputVariables(new ArrayList()) + .addAllRootOutputVariables(new ArrayList()) + .setSaasRuntimeContext(SaaSRuntimeContext.newBuilder().build()) + .setLatestSystemRevisionUri( + ApplicationTemplateSystemRevisionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[SYSTEM_REVISION]") + .toString()) + .setIacSource(IACSource.forNumber(0)) + .setTemplateMetadata(TFBlueprintMetadata.newBuilder().build()) + .setInputsAsRootModuleVariables(true) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + ApplicationTemplateName name = + ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + + ApplicationTemplate actualResponse = client.getApplicationTemplate(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetApplicationTemplateRequest actualRequest = + ((GetApplicationTemplateRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getApplicationTemplateExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + ApplicationTemplateName name = + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + client.getApplicationTemplate(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getApplicationTemplateTest2() throws Exception { + ApplicationTemplate expectedResponse = + ApplicationTemplate.newBuilder() + .setName( + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllApplicationParameters(new ArrayList()) + .setSerializedApplicationTemplate(SerializedApplicationTemplate.newBuilder().build()) + .setLatestRevision("latestRevision-1002490750") + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .setCompositionType(ApplicationCompositionType.forNumber(0)) + .addAllRootInputVariables(new ArrayList()) + .addAllRootOutputVariables(new ArrayList()) + .setSaasRuntimeContext(SaaSRuntimeContext.newBuilder().build()) + .setLatestSystemRevisionUri( + ApplicationTemplateSystemRevisionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[SYSTEM_REVISION]") + .toString()) + .setIacSource(IACSource.forNumber(0)) + .setTemplateMetadata(TFBlueprintMetadata.newBuilder().build()) + .setInputsAsRootModuleVariables(true) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + String name = "name3373707"; + + ApplicationTemplate actualResponse = client.getApplicationTemplate(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetApplicationTemplateRequest actualRequest = + ((GetApplicationTemplateRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getApplicationTemplateExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + String name = "name3373707"; + client.getApplicationTemplate(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listApplicationTemplatesTest() throws Exception { + ApplicationTemplate responsesElement = ApplicationTemplate.newBuilder().build(); + ListApplicationTemplatesResponse expectedResponse = + ListApplicationTemplatesResponse.newBuilder() + .setNextPageToken("") + .addAllApplicationTemplates(Arrays.asList(responsesElement)) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + SpaceName parent = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]"); + + ListApplicationTemplatesPagedResponse pagedListResponse = + client.listApplicationTemplates(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getApplicationTemplatesList().get(0), resources.get(0)); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListApplicationTemplatesRequest actualRequest = + ((ListApplicationTemplatesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listApplicationTemplatesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + SpaceName parent = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]"); + client.listApplicationTemplates(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listApplicationTemplatesTest2() throws Exception { + ApplicationTemplate responsesElement = ApplicationTemplate.newBuilder().build(); + ListApplicationTemplatesResponse expectedResponse = + ListApplicationTemplatesResponse.newBuilder() + .setNextPageToken("") + .addAllApplicationTemplates(Arrays.asList(responsesElement)) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListApplicationTemplatesPagedResponse pagedListResponse = + client.listApplicationTemplates(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getApplicationTemplatesList().get(0), resources.get(0)); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListApplicationTemplatesRequest actualRequest = + ((ListApplicationTemplatesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listApplicationTemplatesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + String parent = "parent-995424086"; + client.listApplicationTemplates(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createApplicationTemplateTest() throws Exception { + ApplicationTemplate expectedResponse = + ApplicationTemplate.newBuilder() + .setName( + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllApplicationParameters(new ArrayList()) + .setSerializedApplicationTemplate(SerializedApplicationTemplate.newBuilder().build()) + .setLatestRevision("latestRevision-1002490750") + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .setCompositionType(ApplicationCompositionType.forNumber(0)) + .addAllRootInputVariables(new ArrayList()) + .addAllRootOutputVariables(new ArrayList()) + .setSaasRuntimeContext(SaaSRuntimeContext.newBuilder().build()) + .setLatestSystemRevisionUri( + ApplicationTemplateSystemRevisionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[SYSTEM_REVISION]") + .toString()) + .setIacSource(IACSource.forNumber(0)) + .setTemplateMetadata(TFBlueprintMetadata.newBuilder().build()) + .setInputsAsRootModuleVariables(true) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + SpaceName parent = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]"); + ApplicationTemplate applicationTemplate = ApplicationTemplate.newBuilder().build(); + String applicationTemplateId = "applicationTemplateId-1557848923"; + + ApplicationTemplate actualResponse = + client.createApplicationTemplate(parent, applicationTemplate, applicationTemplateId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateApplicationTemplateRequest actualRequest = + ((CreateApplicationTemplateRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(applicationTemplate, actualRequest.getApplicationTemplate()); + Assert.assertEquals(applicationTemplateId, actualRequest.getApplicationTemplateId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createApplicationTemplateExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + SpaceName parent = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]"); + ApplicationTemplate applicationTemplate = ApplicationTemplate.newBuilder().build(); + String applicationTemplateId = "applicationTemplateId-1557848923"; + client.createApplicationTemplate(parent, applicationTemplate, applicationTemplateId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createApplicationTemplateTest2() throws Exception { + ApplicationTemplate expectedResponse = + ApplicationTemplate.newBuilder() + .setName( + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllApplicationParameters(new ArrayList()) + .setSerializedApplicationTemplate(SerializedApplicationTemplate.newBuilder().build()) + .setLatestRevision("latestRevision-1002490750") + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .setCompositionType(ApplicationCompositionType.forNumber(0)) + .addAllRootInputVariables(new ArrayList()) + .addAllRootOutputVariables(new ArrayList()) + .setSaasRuntimeContext(SaaSRuntimeContext.newBuilder().build()) + .setLatestSystemRevisionUri( + ApplicationTemplateSystemRevisionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[SYSTEM_REVISION]") + .toString()) + .setIacSource(IACSource.forNumber(0)) + .setTemplateMetadata(TFBlueprintMetadata.newBuilder().build()) + .setInputsAsRootModuleVariables(true) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + String parent = "parent-995424086"; + ApplicationTemplate applicationTemplate = ApplicationTemplate.newBuilder().build(); + String applicationTemplateId = "applicationTemplateId-1557848923"; + + ApplicationTemplate actualResponse = + client.createApplicationTemplate(parent, applicationTemplate, applicationTemplateId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateApplicationTemplateRequest actualRequest = + ((CreateApplicationTemplateRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(applicationTemplate, actualRequest.getApplicationTemplate()); + Assert.assertEquals(applicationTemplateId, actualRequest.getApplicationTemplateId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createApplicationTemplateExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + String parent = "parent-995424086"; + ApplicationTemplate applicationTemplate = ApplicationTemplate.newBuilder().build(); + String applicationTemplateId = "applicationTemplateId-1557848923"; + client.createApplicationTemplate(parent, applicationTemplate, applicationTemplateId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateApplicationTemplateTest() throws Exception { + ApplicationTemplate expectedResponse = + ApplicationTemplate.newBuilder() + .setName( + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllApplicationParameters(new ArrayList()) + .setSerializedApplicationTemplate(SerializedApplicationTemplate.newBuilder().build()) + .setLatestRevision("latestRevision-1002490750") + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .setCompositionType(ApplicationCompositionType.forNumber(0)) + .addAllRootInputVariables(new ArrayList()) + .addAllRootOutputVariables(new ArrayList()) + .setSaasRuntimeContext(SaaSRuntimeContext.newBuilder().build()) + .setLatestSystemRevisionUri( + ApplicationTemplateSystemRevisionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[SYSTEM_REVISION]") + .toString()) + .setIacSource(IACSource.forNumber(0)) + .setTemplateMetadata(TFBlueprintMetadata.newBuilder().build()) + .setInputsAsRootModuleVariables(true) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + ApplicationTemplate applicationTemplate = ApplicationTemplate.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + ApplicationTemplate actualResponse = + client.updateApplicationTemplate(applicationTemplate, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateApplicationTemplateRequest actualRequest = + ((UpdateApplicationTemplateRequest) actualRequests.get(0)); + + Assert.assertEquals(applicationTemplate, actualRequest.getApplicationTemplate()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateApplicationTemplateExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + ApplicationTemplate applicationTemplate = ApplicationTemplate.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateApplicationTemplate(applicationTemplate, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void importApplicationTemplateTest() throws Exception { + ApplicationTemplate expectedResponse = + ApplicationTemplate.newBuilder() + .setName( + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllApplicationParameters(new ArrayList()) + .setSerializedApplicationTemplate(SerializedApplicationTemplate.newBuilder().build()) + .setLatestRevision("latestRevision-1002490750") + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .setCompositionType(ApplicationCompositionType.forNumber(0)) + .addAllRootInputVariables(new ArrayList()) + .addAllRootOutputVariables(new ArrayList()) + .setSaasRuntimeContext(SaaSRuntimeContext.newBuilder().build()) + .setLatestSystemRevisionUri( + ApplicationTemplateSystemRevisionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[SYSTEM_REVISION]") + .toString()) + .setIacSource(IACSource.forNumber(0)) + .setTemplateMetadata(TFBlueprintMetadata.newBuilder().build()) + .setInputsAsRootModuleVariables(true) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + ApplicationTemplateName name = + ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + ApplicationTemplateRevisionName applicationTemplateRevisionUri = + ApplicationTemplateRevisionName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[REVISION]"); + + ApplicationTemplate actualResponse = + client.importApplicationTemplate(name, applicationTemplateRevisionUri); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ImportApplicationTemplateRequest actualRequest = + ((ImportApplicationTemplateRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals( + applicationTemplateRevisionUri.toString(), + actualRequest.getApplicationTemplateRevisionUri()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void importApplicationTemplateExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + ApplicationTemplateName name = + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + ApplicationTemplateRevisionName applicationTemplateRevisionUri = + ApplicationTemplateRevisionName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[REVISION]"); + client.importApplicationTemplate(name, applicationTemplateRevisionUri); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void importApplicationTemplateTest2() throws Exception { + ApplicationTemplate expectedResponse = + ApplicationTemplate.newBuilder() + .setName( + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllApplicationParameters(new ArrayList()) + .setSerializedApplicationTemplate(SerializedApplicationTemplate.newBuilder().build()) + .setLatestRevision("latestRevision-1002490750") + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .setCompositionType(ApplicationCompositionType.forNumber(0)) + .addAllRootInputVariables(new ArrayList()) + .addAllRootOutputVariables(new ArrayList()) + .setSaasRuntimeContext(SaaSRuntimeContext.newBuilder().build()) + .setLatestSystemRevisionUri( + ApplicationTemplateSystemRevisionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[SYSTEM_REVISION]") + .toString()) + .setIacSource(IACSource.forNumber(0)) + .setTemplateMetadata(TFBlueprintMetadata.newBuilder().build()) + .setInputsAsRootModuleVariables(true) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + ApplicationTemplateName name = + ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + String applicationTemplateRevisionUri = "applicationTemplateRevisionUri844336967"; + + ApplicationTemplate actualResponse = + client.importApplicationTemplate(name, applicationTemplateRevisionUri); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ImportApplicationTemplateRequest actualRequest = + ((ImportApplicationTemplateRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals( + applicationTemplateRevisionUri, actualRequest.getApplicationTemplateRevisionUri()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void importApplicationTemplateExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + ApplicationTemplateName name = + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + String applicationTemplateRevisionUri = "applicationTemplateRevisionUri844336967"; + client.importApplicationTemplate(name, applicationTemplateRevisionUri); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void importApplicationTemplateTest3() throws Exception { + ApplicationTemplate expectedResponse = + ApplicationTemplate.newBuilder() + .setName( + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllApplicationParameters(new ArrayList()) + .setSerializedApplicationTemplate(SerializedApplicationTemplate.newBuilder().build()) + .setLatestRevision("latestRevision-1002490750") + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .setCompositionType(ApplicationCompositionType.forNumber(0)) + .addAllRootInputVariables(new ArrayList()) + .addAllRootOutputVariables(new ArrayList()) + .setSaasRuntimeContext(SaaSRuntimeContext.newBuilder().build()) + .setLatestSystemRevisionUri( + ApplicationTemplateSystemRevisionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[SYSTEM_REVISION]") + .toString()) + .setIacSource(IACSource.forNumber(0)) + .setTemplateMetadata(TFBlueprintMetadata.newBuilder().build()) + .setInputsAsRootModuleVariables(true) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + String name = "name3373707"; + ApplicationTemplateRevisionName applicationTemplateRevisionUri = + ApplicationTemplateRevisionName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[REVISION]"); + + ApplicationTemplate actualResponse = + client.importApplicationTemplate(name, applicationTemplateRevisionUri); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ImportApplicationTemplateRequest actualRequest = + ((ImportApplicationTemplateRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals( + applicationTemplateRevisionUri.toString(), + actualRequest.getApplicationTemplateRevisionUri()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void importApplicationTemplateExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + String name = "name3373707"; + ApplicationTemplateRevisionName applicationTemplateRevisionUri = + ApplicationTemplateRevisionName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[REVISION]"); + client.importApplicationTemplate(name, applicationTemplateRevisionUri); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void importApplicationTemplateTest4() throws Exception { + ApplicationTemplate expectedResponse = + ApplicationTemplate.newBuilder() + .setName( + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllApplicationParameters(new ArrayList()) + .setSerializedApplicationTemplate(SerializedApplicationTemplate.newBuilder().build()) + .setLatestRevision("latestRevision-1002490750") + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .setCompositionType(ApplicationCompositionType.forNumber(0)) + .addAllRootInputVariables(new ArrayList()) + .addAllRootOutputVariables(new ArrayList()) + .setSaasRuntimeContext(SaaSRuntimeContext.newBuilder().build()) + .setLatestSystemRevisionUri( + ApplicationTemplateSystemRevisionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[SYSTEM_REVISION]") + .toString()) + .setIacSource(IACSource.forNumber(0)) + .setTemplateMetadata(TFBlueprintMetadata.newBuilder().build()) + .setInputsAsRootModuleVariables(true) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + String name = "name3373707"; + String applicationTemplateRevisionUri = "applicationTemplateRevisionUri844336967"; + + ApplicationTemplate actualResponse = + client.importApplicationTemplate(name, applicationTemplateRevisionUri); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ImportApplicationTemplateRequest actualRequest = + ((ImportApplicationTemplateRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals( + applicationTemplateRevisionUri, actualRequest.getApplicationTemplateRevisionUri()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void importApplicationTemplateExceptionTest4() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + String name = "name3373707"; + String applicationTemplateRevisionUri = "applicationTemplateRevisionUri844336967"; + client.importApplicationTemplate(name, applicationTemplateRevisionUri); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteApplicationTemplateTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockDesignCenter.addResponse(expectedResponse); + + ApplicationTemplateName name = + ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + + client.deleteApplicationTemplate(name); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteApplicationTemplateRequest actualRequest = + ((DeleteApplicationTemplateRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteApplicationTemplateExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + ApplicationTemplateName name = + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + client.deleteApplicationTemplate(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteApplicationTemplateTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockDesignCenter.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteApplicationTemplate(name); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteApplicationTemplateRequest actualRequest = + ((DeleteApplicationTemplateRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteApplicationTemplateExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + String name = "name3373707"; + client.deleteApplicationTemplate(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void commitApplicationTemplateTest() throws Exception { + ApplicationTemplateRevision expectedResponse = + ApplicationTemplateRevision.newBuilder() + .setName( + ApplicationTemplateRevisionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[REVISION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setSnapshot(SerializedApplicationTemplate.newBuilder().build()) + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .setTemplateMetadata(TFBlueprintMetadata.newBuilder().build()) + .addAllApplicationParameters(new ArrayList()) + .setIacSource(IACSource.forNumber(0)) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + ApplicationTemplateName name = + ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + + ApplicationTemplateRevision actualResponse = client.commitApplicationTemplate(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CommitApplicationTemplateRequest actualRequest = + ((CommitApplicationTemplateRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void commitApplicationTemplateExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + ApplicationTemplateName name = + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + client.commitApplicationTemplate(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void commitApplicationTemplateTest2() throws Exception { + ApplicationTemplateRevision expectedResponse = + ApplicationTemplateRevision.newBuilder() + .setName( + ApplicationTemplateRevisionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[REVISION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setSnapshot(SerializedApplicationTemplate.newBuilder().build()) + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .setTemplateMetadata(TFBlueprintMetadata.newBuilder().build()) + .addAllApplicationParameters(new ArrayList()) + .setIacSource(IACSource.forNumber(0)) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + String name = "name3373707"; + + ApplicationTemplateRevision actualResponse = client.commitApplicationTemplate(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CommitApplicationTemplateRequest actualRequest = + ((CommitApplicationTemplateRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void commitApplicationTemplateExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + String name = "name3373707"; + client.commitApplicationTemplate(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void snapshotApplicationTemplateTest() throws Exception { + SnapshotApplicationTemplateResponse expectedResponse = + SnapshotApplicationTemplateResponse.newBuilder() + .setApplicationTemplateRevision(ApplicationTemplateRevision.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("snapshotApplicationTemplateTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDesignCenter.addResponse(resultOperation); + + ApplicationTemplateName name = + ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + + SnapshotApplicationTemplateResponse actualResponse = + client.snapshotApplicationTemplateAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SnapshotApplicationTemplateRequest actualRequest = + ((SnapshotApplicationTemplateRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void snapshotApplicationTemplateExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + ApplicationTemplateName name = + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + client.snapshotApplicationTemplateAsync(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 snapshotApplicationTemplateTest2() throws Exception { + SnapshotApplicationTemplateResponse expectedResponse = + SnapshotApplicationTemplateResponse.newBuilder() + .setApplicationTemplateRevision(ApplicationTemplateRevision.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("snapshotApplicationTemplateTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDesignCenter.addResponse(resultOperation); + + String name = "name3373707"; + + SnapshotApplicationTemplateResponse actualResponse = + client.snapshotApplicationTemplateAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SnapshotApplicationTemplateRequest actualRequest = + ((SnapshotApplicationTemplateRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void snapshotApplicationTemplateExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + String name = "name3373707"; + client.snapshotApplicationTemplateAsync(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 generateApplicationTemplateIaCTest() throws Exception { + GenerateApplicationTemplateIaCResponse expectedResponse = + GenerateApplicationTemplateIaCResponse.newBuilder() + .setGcsUri("gcsUri-1251224875") + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .setRootModulesMetadata(RootModulesMetadata.newBuilder().build()) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + ApplicationTemplateName name = + ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + + GenerateApplicationTemplateIaCResponse actualResponse = + client.generateApplicationTemplateIaC(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GenerateApplicationTemplateIaCRequest actualRequest = + ((GenerateApplicationTemplateIaCRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void generateApplicationTemplateIaCExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + ApplicationTemplateName name = + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + client.generateApplicationTemplateIaC(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void generateApplicationTemplateIaCTest2() throws Exception { + GenerateApplicationTemplateIaCResponse expectedResponse = + GenerateApplicationTemplateIaCResponse.newBuilder() + .setGcsUri("gcsUri-1251224875") + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .setRootModulesMetadata(RootModulesMetadata.newBuilder().build()) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + String name = "name3373707"; + + GenerateApplicationTemplateIaCResponse actualResponse = + client.generateApplicationTemplateIaC(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GenerateApplicationTemplateIaCRequest actualRequest = + ((GenerateApplicationTemplateIaCRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void generateApplicationTemplateIaCExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + String name = "name3373707"; + client.generateApplicationTemplateIaC(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void exportApplicationTemplateIaCTest() throws Exception { + ExportApplicationTemplateIaCResponse expectedResponse = + ExportApplicationTemplateIaCResponse.newBuilder() + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .setRootModulesMetadata(RootModulesMetadata.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("exportApplicationTemplateIaCTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDesignCenter.addResponse(resultOperation); + + ApplicationTemplateName name = + ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + + ExportApplicationTemplateIaCResponse actualResponse = + client.exportApplicationTemplateIaCAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ExportApplicationTemplateIaCRequest actualRequest = + ((ExportApplicationTemplateIaCRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void exportApplicationTemplateIaCExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + ApplicationTemplateName name = + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + client.exportApplicationTemplateIaCAsync(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 exportApplicationTemplateIaCTest2() throws Exception { + ExportApplicationTemplateIaCResponse expectedResponse = + ExportApplicationTemplateIaCResponse.newBuilder() + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .setRootModulesMetadata(RootModulesMetadata.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("exportApplicationTemplateIaCTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDesignCenter.addResponse(resultOperation); + + String name = "name3373707"; + + ExportApplicationTemplateIaCResponse actualResponse = + client.exportApplicationTemplateIaCAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ExportApplicationTemplateIaCRequest actualRequest = + ((ExportApplicationTemplateIaCRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void exportApplicationTemplateIaCExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + String name = "name3373707"; + client.exportApplicationTemplateIaCAsync(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 generateApplicationTemplateRevisionIaCTest() throws Exception { + GenerateApplicationTemplateRevisionIaCResponse expectedResponse = + GenerateApplicationTemplateRevisionIaCResponse.newBuilder() + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .setRootModulesMetadata(RootModulesMetadata.newBuilder().build()) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + ApplicationTemplateRevisionName name = + ApplicationTemplateRevisionName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[REVISION]"); + + GenerateApplicationTemplateRevisionIaCResponse actualResponse = + client.generateApplicationTemplateRevisionIaC(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GenerateApplicationTemplateRevisionIaCRequest actualRequest = + ((GenerateApplicationTemplateRevisionIaCRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void generateApplicationTemplateRevisionIaCExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + ApplicationTemplateRevisionName name = + ApplicationTemplateRevisionName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[REVISION]"); + client.generateApplicationTemplateRevisionIaC(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void generateApplicationTemplateRevisionIaCTest2() throws Exception { + GenerateApplicationTemplateRevisionIaCResponse expectedResponse = + GenerateApplicationTemplateRevisionIaCResponse.newBuilder() + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .setRootModulesMetadata(RootModulesMetadata.newBuilder().build()) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + String name = "name3373707"; + + GenerateApplicationTemplateRevisionIaCResponse actualResponse = + client.generateApplicationTemplateRevisionIaC(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GenerateApplicationTemplateRevisionIaCRequest actualRequest = + ((GenerateApplicationTemplateRevisionIaCRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void generateApplicationTemplateRevisionIaCExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + String name = "name3373707"; + client.generateApplicationTemplateRevisionIaC(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void exportApplicationTemplateRevisionIaCTest() throws Exception { + ExportApplicationTemplateRevisionIaCResponse expectedResponse = + ExportApplicationTemplateRevisionIaCResponse.newBuilder() + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .setRootModulesMetadata(RootModulesMetadata.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("exportApplicationTemplateRevisionIaCTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDesignCenter.addResponse(resultOperation); + + ApplicationTemplateRevisionName name = + ApplicationTemplateRevisionName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[REVISION]"); + + ExportApplicationTemplateRevisionIaCResponse actualResponse = + client.exportApplicationTemplateRevisionIaCAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ExportApplicationTemplateRevisionIaCRequest actualRequest = + ((ExportApplicationTemplateRevisionIaCRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void exportApplicationTemplateRevisionIaCExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + ApplicationTemplateRevisionName name = + ApplicationTemplateRevisionName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[REVISION]"); + client.exportApplicationTemplateRevisionIaCAsync(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 exportApplicationTemplateRevisionIaCTest2() throws Exception { + ExportApplicationTemplateRevisionIaCResponse expectedResponse = + ExportApplicationTemplateRevisionIaCResponse.newBuilder() + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .setRootModulesMetadata(RootModulesMetadata.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("exportApplicationTemplateRevisionIaCTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDesignCenter.addResponse(resultOperation); + + String name = "name3373707"; + + ExportApplicationTemplateRevisionIaCResponse actualResponse = + client.exportApplicationTemplateRevisionIaCAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ExportApplicationTemplateRevisionIaCRequest actualRequest = + ((ExportApplicationTemplateRevisionIaCRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void exportApplicationTemplateRevisionIaCExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + String name = "name3373707"; + client.exportApplicationTemplateRevisionIaCAsync(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 getComponentTest() throws Exception { + Component expectedResponse = + Component.newBuilder() + .setName( + ComponentName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[COMPONENT]") + .toString()) + .setSharedTemplateRevisionUri("sharedTemplateRevisionUri1743920658") + .addAllParameters(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllRoles(new ArrayList()) + .addAllApis(new ArrayList()) + .setDisplayName("displayName1714148973") + .addAllConnectionsParameters(new ArrayList()) + .addAllComponentParameterSchema(new ArrayList()) + .setApplicationInfo(ComponentApplicationInfo.newBuilder().build()) + .setUseAsRootModule(true) + .addAllInputVariableAliases(new ArrayList()) + .setApplicationTemplateRevisionUri("applicationTemplateRevisionUri844336967") + .build(); + mockDesignCenter.addResponse(expectedResponse); + + ComponentName name = + ComponentName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[COMPONENT]"); + + Component actualResponse = client.getComponent(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetComponentRequest actualRequest = ((GetComponentRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getComponentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + ComponentName name = + ComponentName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[COMPONENT]"); + client.getComponent(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getComponentTest2() throws Exception { + Component expectedResponse = + Component.newBuilder() + .setName( + ComponentName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[COMPONENT]") + .toString()) + .setSharedTemplateRevisionUri("sharedTemplateRevisionUri1743920658") + .addAllParameters(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllRoles(new ArrayList()) + .addAllApis(new ArrayList()) + .setDisplayName("displayName1714148973") + .addAllConnectionsParameters(new ArrayList()) + .addAllComponentParameterSchema(new ArrayList()) + .setApplicationInfo(ComponentApplicationInfo.newBuilder().build()) + .setUseAsRootModule(true) + .addAllInputVariableAliases(new ArrayList()) + .setApplicationTemplateRevisionUri("applicationTemplateRevisionUri844336967") + .build(); + mockDesignCenter.addResponse(expectedResponse); + + String name = "name3373707"; + + Component actualResponse = client.getComponent(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetComponentRequest actualRequest = ((GetComponentRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getComponentExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + String name = "name3373707"; + client.getComponent(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listComponentsTest() throws Exception { + Component responsesElement = Component.newBuilder().build(); + ListComponentsResponse expectedResponse = + ListComponentsResponse.newBuilder() + .setNextPageToken("") + .addAllComponents(Arrays.asList(responsesElement)) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + ApplicationTemplateName parent = + ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + + ListComponentsPagedResponse pagedListResponse = client.listComponents(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getComponentsList().get(0), resources.get(0)); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListComponentsRequest actualRequest = ((ListComponentsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listComponentsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + ApplicationTemplateName parent = + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + client.listComponents(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listComponentsTest2() throws Exception { + Component responsesElement = Component.newBuilder().build(); + ListComponentsResponse expectedResponse = + ListComponentsResponse.newBuilder() + .setNextPageToken("") + .addAllComponents(Arrays.asList(responsesElement)) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListComponentsPagedResponse pagedListResponse = client.listComponents(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getComponentsList().get(0), resources.get(0)); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListComponentsRequest actualRequest = ((ListComponentsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listComponentsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + String parent = "parent-995424086"; + client.listComponents(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createComponentTest() throws Exception { + Component expectedResponse = + Component.newBuilder() + .setName( + ComponentName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[COMPONENT]") + .toString()) + .setSharedTemplateRevisionUri("sharedTemplateRevisionUri1743920658") + .addAllParameters(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllRoles(new ArrayList()) + .addAllApis(new ArrayList()) + .setDisplayName("displayName1714148973") + .addAllConnectionsParameters(new ArrayList()) + .addAllComponentParameterSchema(new ArrayList()) + .setApplicationInfo(ComponentApplicationInfo.newBuilder().build()) + .setUseAsRootModule(true) + .addAllInputVariableAliases(new ArrayList()) + .setApplicationTemplateRevisionUri("applicationTemplateRevisionUri844336967") + .build(); + mockDesignCenter.addResponse(expectedResponse); + + ApplicationTemplateName parent = + ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + Component component = Component.newBuilder().build(); + String componentId = "componentId-985933064"; + + Component actualResponse = client.createComponent(parent, component, componentId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateComponentRequest actualRequest = ((CreateComponentRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(component, actualRequest.getComponent()); + Assert.assertEquals(componentId, actualRequest.getComponentId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createComponentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + ApplicationTemplateName parent = + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + Component component = Component.newBuilder().build(); + String componentId = "componentId-985933064"; + client.createComponent(parent, component, componentId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createComponentTest2() throws Exception { + Component expectedResponse = + Component.newBuilder() + .setName( + ComponentName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[COMPONENT]") + .toString()) + .setSharedTemplateRevisionUri("sharedTemplateRevisionUri1743920658") + .addAllParameters(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllRoles(new ArrayList()) + .addAllApis(new ArrayList()) + .setDisplayName("displayName1714148973") + .addAllConnectionsParameters(new ArrayList()) + .addAllComponentParameterSchema(new ArrayList()) + .setApplicationInfo(ComponentApplicationInfo.newBuilder().build()) + .setUseAsRootModule(true) + .addAllInputVariableAliases(new ArrayList()) + .setApplicationTemplateRevisionUri("applicationTemplateRevisionUri844336967") + .build(); + mockDesignCenter.addResponse(expectedResponse); + + String parent = "parent-995424086"; + Component component = Component.newBuilder().build(); + String componentId = "componentId-985933064"; + + Component actualResponse = client.createComponent(parent, component, componentId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateComponentRequest actualRequest = ((CreateComponentRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(component, actualRequest.getComponent()); + Assert.assertEquals(componentId, actualRequest.getComponentId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createComponentExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + String parent = "parent-995424086"; + Component component = Component.newBuilder().build(); + String componentId = "componentId-985933064"; + client.createComponent(parent, component, componentId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateComponentTest() throws Exception { + Component expectedResponse = + Component.newBuilder() + .setName( + ComponentName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[COMPONENT]") + .toString()) + .setSharedTemplateRevisionUri("sharedTemplateRevisionUri1743920658") + .addAllParameters(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllRoles(new ArrayList()) + .addAllApis(new ArrayList()) + .setDisplayName("displayName1714148973") + .addAllConnectionsParameters(new ArrayList()) + .addAllComponentParameterSchema(new ArrayList()) + .setApplicationInfo(ComponentApplicationInfo.newBuilder().build()) + .setUseAsRootModule(true) + .addAllInputVariableAliases(new ArrayList()) + .setApplicationTemplateRevisionUri("applicationTemplateRevisionUri844336967") + .build(); + mockDesignCenter.addResponse(expectedResponse); + + Component component = Component.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Component actualResponse = client.updateComponent(component, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateComponentRequest actualRequest = ((UpdateComponentRequest) actualRequests.get(0)); + + Assert.assertEquals(component, actualRequest.getComponent()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateComponentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + Component component = Component.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateComponent(component, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteComponentTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockDesignCenter.addResponse(expectedResponse); + + ComponentName name = + ComponentName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[COMPONENT]"); + + client.deleteComponent(name); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteComponentRequest actualRequest = ((DeleteComponentRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteComponentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + ComponentName name = + ComponentName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[COMPONENT]"); + client.deleteComponent(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteComponentTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockDesignCenter.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteComponent(name); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteComponentRequest actualRequest = ((DeleteComponentRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteComponentExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + String name = "name3373707"; + client.deleteComponent(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getConnectionTest() throws Exception { + Connection expectedResponse = + Connection.newBuilder() + .setName( + ConnectionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[COMPONENT]", + "[CONNECTION]") + .toString()) + .setDestinationComponentUri( + ComponentName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[COMPONENT]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllSourceComponentParameters(new ArrayList()) + .addAllDestinationComponentParameters(new ArrayList()) + .setDependencyType(ConnectionDependencyType.forNumber(0)) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + ConnectionName name = + ConnectionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[COMPONENT]", + "[CONNECTION]"); + + Connection actualResponse = client.getConnection(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetConnectionRequest actualRequest = ((GetConnectionRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getConnectionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + ConnectionName name = + ConnectionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[COMPONENT]", + "[CONNECTION]"); + client.getConnection(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getConnectionTest2() throws Exception { + Connection expectedResponse = + Connection.newBuilder() + .setName( + ConnectionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[COMPONENT]", + "[CONNECTION]") + .toString()) + .setDestinationComponentUri( + ComponentName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[COMPONENT]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllSourceComponentParameters(new ArrayList()) + .addAllDestinationComponentParameters(new ArrayList()) + .setDependencyType(ConnectionDependencyType.forNumber(0)) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + String name = "name3373707"; + + Connection actualResponse = client.getConnection(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetConnectionRequest actualRequest = ((GetConnectionRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getConnectionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + String name = "name3373707"; + client.getConnection(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listConnectionsTest() throws Exception { + Connection responsesElement = Connection.newBuilder().build(); + ListConnectionsResponse expectedResponse = + ListConnectionsResponse.newBuilder() + .setNextPageToken("") + .addAllConnections(Arrays.asList(responsesElement)) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + ComponentName parent = + ComponentName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[COMPONENT]"); + + ListConnectionsPagedResponse pagedListResponse = client.listConnections(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getConnectionsList().get(0), resources.get(0)); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListConnectionsRequest actualRequest = ((ListConnectionsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listConnectionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + ComponentName parent = + ComponentName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[COMPONENT]"); + client.listConnections(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listConnectionsTest2() throws Exception { + Connection responsesElement = Connection.newBuilder().build(); + ListConnectionsResponse expectedResponse = + ListConnectionsResponse.newBuilder() + .setNextPageToken("") + .addAllConnections(Arrays.asList(responsesElement)) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListConnectionsPagedResponse pagedListResponse = client.listConnections(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getConnectionsList().get(0), resources.get(0)); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListConnectionsRequest actualRequest = ((ListConnectionsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listConnectionsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + String parent = "parent-995424086"; + client.listConnections(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createConnectionTest() throws Exception { + Connection expectedResponse = + Connection.newBuilder() + .setName( + ConnectionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[COMPONENT]", + "[CONNECTION]") + .toString()) + .setDestinationComponentUri( + ComponentName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[COMPONENT]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllSourceComponentParameters(new ArrayList()) + .addAllDestinationComponentParameters(new ArrayList()) + .setDependencyType(ConnectionDependencyType.forNumber(0)) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + ComponentName parent = + ComponentName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[COMPONENT]"); + Connection connection = Connection.newBuilder().build(); + String connectionId = "connectionId1923106969"; + + Connection actualResponse = client.createConnection(parent, connection, connectionId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateConnectionRequest actualRequest = ((CreateConnectionRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(connection, actualRequest.getConnection()); + Assert.assertEquals(connectionId, actualRequest.getConnectionId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createConnectionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + ComponentName parent = + ComponentName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[COMPONENT]"); + Connection connection = Connection.newBuilder().build(); + String connectionId = "connectionId1923106969"; + client.createConnection(parent, connection, connectionId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createConnectionTest2() throws Exception { + Connection expectedResponse = + Connection.newBuilder() + .setName( + ConnectionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[COMPONENT]", + "[CONNECTION]") + .toString()) + .setDestinationComponentUri( + ComponentName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[COMPONENT]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllSourceComponentParameters(new ArrayList()) + .addAllDestinationComponentParameters(new ArrayList()) + .setDependencyType(ConnectionDependencyType.forNumber(0)) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + String parent = "parent-995424086"; + Connection connection = Connection.newBuilder().build(); + String connectionId = "connectionId1923106969"; + + Connection actualResponse = client.createConnection(parent, connection, connectionId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateConnectionRequest actualRequest = ((CreateConnectionRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(connection, actualRequest.getConnection()); + Assert.assertEquals(connectionId, actualRequest.getConnectionId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createConnectionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + String parent = "parent-995424086"; + Connection connection = Connection.newBuilder().build(); + String connectionId = "connectionId1923106969"; + client.createConnection(parent, connection, connectionId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateConnectionTest() throws Exception { + Connection expectedResponse = + Connection.newBuilder() + .setName( + ConnectionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[COMPONENT]", + "[CONNECTION]") + .toString()) + .setDestinationComponentUri( + ComponentName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[COMPONENT]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllSourceComponentParameters(new ArrayList()) + .addAllDestinationComponentParameters(new ArrayList()) + .setDependencyType(ConnectionDependencyType.forNumber(0)) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + Connection connection = Connection.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Connection actualResponse = client.updateConnection(connection, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateConnectionRequest actualRequest = ((UpdateConnectionRequest) actualRequests.get(0)); + + Assert.assertEquals(connection, actualRequest.getConnection()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateConnectionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + Connection connection = Connection.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateConnection(connection, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteConnectionTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockDesignCenter.addResponse(expectedResponse); + + ConnectionName name = + ConnectionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[COMPONENT]", + "[CONNECTION]"); + + client.deleteConnection(name); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteConnectionRequest actualRequest = ((DeleteConnectionRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteConnectionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + ConnectionName name = + ConnectionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[COMPONENT]", + "[CONNECTION]"); + client.deleteConnection(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteConnectionTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockDesignCenter.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteConnection(name); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteConnectionRequest actualRequest = ((DeleteConnectionRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteConnectionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + String name = "name3373707"; + client.deleteConnection(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getApplicationTemplateRevisionTest() throws Exception { + ApplicationTemplateRevision expectedResponse = + ApplicationTemplateRevision.newBuilder() + .setName( + ApplicationTemplateRevisionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[REVISION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setSnapshot(SerializedApplicationTemplate.newBuilder().build()) + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .setTemplateMetadata(TFBlueprintMetadata.newBuilder().build()) + .addAllApplicationParameters(new ArrayList()) + .setIacSource(IACSource.forNumber(0)) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + ApplicationTemplateRevisionName name = + ApplicationTemplateRevisionName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[REVISION]"); + + ApplicationTemplateRevision actualResponse = client.getApplicationTemplateRevision(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetApplicationTemplateRevisionRequest actualRequest = + ((GetApplicationTemplateRevisionRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getApplicationTemplateRevisionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + ApplicationTemplateRevisionName name = + ApplicationTemplateRevisionName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[REVISION]"); + client.getApplicationTemplateRevision(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getApplicationTemplateRevisionTest2() throws Exception { + ApplicationTemplateRevision expectedResponse = + ApplicationTemplateRevision.newBuilder() + .setName( + ApplicationTemplateRevisionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[REVISION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setSnapshot(SerializedApplicationTemplate.newBuilder().build()) + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .setTemplateMetadata(TFBlueprintMetadata.newBuilder().build()) + .addAllApplicationParameters(new ArrayList()) + .setIacSource(IACSource.forNumber(0)) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + String name = "name3373707"; + + ApplicationTemplateRevision actualResponse = client.getApplicationTemplateRevision(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetApplicationTemplateRevisionRequest actualRequest = + ((GetApplicationTemplateRevisionRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getApplicationTemplateRevisionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + String name = "name3373707"; + client.getApplicationTemplateRevision(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listApplicationTemplateRevisionsTest() throws Exception { + ApplicationTemplateRevision responsesElement = ApplicationTemplateRevision.newBuilder().build(); + ListApplicationTemplateRevisionsResponse expectedResponse = + ListApplicationTemplateRevisionsResponse.newBuilder() + .setNextPageToken("") + .addAllApplicationTemplateRevisions(Arrays.asList(responsesElement)) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + ApplicationTemplateName parent = + ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + + ListApplicationTemplateRevisionsPagedResponse pagedListResponse = + client.listApplicationTemplateRevisions(parent); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getApplicationTemplateRevisionsList().get(0), resources.get(0)); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListApplicationTemplateRevisionsRequest actualRequest = + ((ListApplicationTemplateRevisionsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listApplicationTemplateRevisionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + ApplicationTemplateName parent = + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + client.listApplicationTemplateRevisions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listApplicationTemplateRevisionsTest2() throws Exception { + ApplicationTemplateRevision responsesElement = ApplicationTemplateRevision.newBuilder().build(); + ListApplicationTemplateRevisionsResponse expectedResponse = + ListApplicationTemplateRevisionsResponse.newBuilder() + .setNextPageToken("") + .addAllApplicationTemplateRevisions(Arrays.asList(responsesElement)) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListApplicationTemplateRevisionsPagedResponse pagedListResponse = + client.listApplicationTemplateRevisions(parent); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getApplicationTemplateRevisionsList().get(0), resources.get(0)); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListApplicationTemplateRevisionsRequest actualRequest = + ((ListApplicationTemplateRevisionsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listApplicationTemplateRevisionsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + String parent = "parent-995424086"; + client.listApplicationTemplateRevisions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteApplicationTemplateRevisionTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockDesignCenter.addResponse(expectedResponse); + + ApplicationTemplateRevisionName name = + ApplicationTemplateRevisionName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[REVISION]"); + + client.deleteApplicationTemplateRevision(name); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteApplicationTemplateRevisionRequest actualRequest = + ((DeleteApplicationTemplateRevisionRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteApplicationTemplateRevisionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + ApplicationTemplateRevisionName name = + ApplicationTemplateRevisionName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[REVISION]"); + client.deleteApplicationTemplateRevision(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteApplicationTemplateRevisionTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockDesignCenter.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteApplicationTemplateRevision(name); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteApplicationTemplateRevisionRequest actualRequest = + ((DeleteApplicationTemplateRevisionRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteApplicationTemplateRevisionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + String name = "name3373707"; + client.deleteApplicationTemplateRevision(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getCatalogTest() throws Exception { + Catalog expectedResponse = + Catalog.newBuilder() + .setName(CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + CatalogName name = CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]"); + + Catalog actualResponse = client.getCatalog(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetCatalogRequest actualRequest = ((GetCatalogRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getCatalogExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + CatalogName name = CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]"); + client.getCatalog(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getCatalogTest2() throws Exception { + Catalog expectedResponse = + Catalog.newBuilder() + .setName(CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + String name = "name3373707"; + + Catalog actualResponse = client.getCatalog(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetCatalogRequest actualRequest = ((GetCatalogRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getCatalogExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + String name = "name3373707"; + client.getCatalog(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCatalogsTest() throws Exception { + Catalog responsesElement = Catalog.newBuilder().build(); + ListCatalogsResponse expectedResponse = + ListCatalogsResponse.newBuilder() + .setNextPageToken("") + .addAllCatalogs(Arrays.asList(responsesElement)) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + SpaceName parent = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]"); + + ListCatalogsPagedResponse pagedListResponse = client.listCatalogs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCatalogsList().get(0), resources.get(0)); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListCatalogsRequest actualRequest = ((ListCatalogsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listCatalogsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + SpaceName parent = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]"); + client.listCatalogs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCatalogsTest2() throws Exception { + Catalog responsesElement = Catalog.newBuilder().build(); + ListCatalogsResponse expectedResponse = + ListCatalogsResponse.newBuilder() + .setNextPageToken("") + .addAllCatalogs(Arrays.asList(responsesElement)) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListCatalogsPagedResponse pagedListResponse = client.listCatalogs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCatalogsList().get(0), resources.get(0)); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListCatalogsRequest actualRequest = ((ListCatalogsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listCatalogsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + String parent = "parent-995424086"; + client.listCatalogs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createCatalogTest() throws Exception { + Catalog expectedResponse = + Catalog.newBuilder() + .setName(CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + SpaceName parent = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]"); + Catalog catalog = Catalog.newBuilder().build(); + String catalogId = "catalogId1455933204"; + + Catalog actualResponse = client.createCatalog(parent, catalog, catalogId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateCatalogRequest actualRequest = ((CreateCatalogRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(catalog, actualRequest.getCatalog()); + Assert.assertEquals(catalogId, actualRequest.getCatalogId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createCatalogExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + SpaceName parent = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]"); + Catalog catalog = Catalog.newBuilder().build(); + String catalogId = "catalogId1455933204"; + client.createCatalog(parent, catalog, catalogId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createCatalogTest2() throws Exception { + Catalog expectedResponse = + Catalog.newBuilder() + .setName(CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + String parent = "parent-995424086"; + Catalog catalog = Catalog.newBuilder().build(); + String catalogId = "catalogId1455933204"; + + Catalog actualResponse = client.createCatalog(parent, catalog, catalogId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateCatalogRequest actualRequest = ((CreateCatalogRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(catalog, actualRequest.getCatalog()); + Assert.assertEquals(catalogId, actualRequest.getCatalogId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createCatalogExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + String parent = "parent-995424086"; + Catalog catalog = Catalog.newBuilder().build(); + String catalogId = "catalogId1455933204"; + client.createCatalog(parent, catalog, catalogId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateCatalogTest() throws Exception { + Catalog expectedResponse = + Catalog.newBuilder() + .setName(CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + Catalog catalog = Catalog.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Catalog actualResponse = client.updateCatalog(catalog, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateCatalogRequest actualRequest = ((UpdateCatalogRequest) actualRequests.get(0)); + + Assert.assertEquals(catalog, actualRequest.getCatalog()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateCatalogExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + Catalog catalog = Catalog.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateCatalog(catalog, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteCatalogTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteCatalogTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDesignCenter.addResponse(resultOperation); + + CatalogName name = CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]"); + + client.deleteCatalogAsync(name).get(); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteCatalogRequest actualRequest = ((DeleteCatalogRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteCatalogExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + CatalogName name = CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]"); + client.deleteCatalogAsync(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 deleteCatalogTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteCatalogTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDesignCenter.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteCatalogAsync(name).get(); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteCatalogRequest actualRequest = ((DeleteCatalogRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteCatalogExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + String name = "name3373707"; + client.deleteCatalogAsync(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 createCatalogTemplateTest() throws Exception { + CatalogTemplate expectedResponse = + CatalogTemplate.newBuilder() + .setName( + CatalogTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setUuid("uuid3601339") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setLatestRevisionId("latestRevisionId-1320934083") + .setTemplateCategory(TemplateCategory.forNumber(0)) + .setType(TemplateType.forNumber(0)) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + CatalogName parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]"); + CatalogTemplate catalogTemplate = CatalogTemplate.newBuilder().build(); + String catalogTemplateId = "catalogTemplateId-1740091346"; + + CatalogTemplate actualResponse = + client.createCatalogTemplate(parent, catalogTemplate, catalogTemplateId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateCatalogTemplateRequest actualRequest = + ((CreateCatalogTemplateRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(catalogTemplate, actualRequest.getCatalogTemplate()); + Assert.assertEquals(catalogTemplateId, actualRequest.getCatalogTemplateId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createCatalogTemplateExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + CatalogName parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]"); + CatalogTemplate catalogTemplate = CatalogTemplate.newBuilder().build(); + String catalogTemplateId = "catalogTemplateId-1740091346"; + client.createCatalogTemplate(parent, catalogTemplate, catalogTemplateId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createCatalogTemplateTest2() throws Exception { + CatalogTemplate expectedResponse = + CatalogTemplate.newBuilder() + .setName( + CatalogTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setUuid("uuid3601339") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setLatestRevisionId("latestRevisionId-1320934083") + .setTemplateCategory(TemplateCategory.forNumber(0)) + .setType(TemplateType.forNumber(0)) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + String parent = "parent-995424086"; + CatalogTemplate catalogTemplate = CatalogTemplate.newBuilder().build(); + String catalogTemplateId = "catalogTemplateId-1740091346"; + + CatalogTemplate actualResponse = + client.createCatalogTemplate(parent, catalogTemplate, catalogTemplateId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateCatalogTemplateRequest actualRequest = + ((CreateCatalogTemplateRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(catalogTemplate, actualRequest.getCatalogTemplate()); + Assert.assertEquals(catalogTemplateId, actualRequest.getCatalogTemplateId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createCatalogTemplateExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + String parent = "parent-995424086"; + CatalogTemplate catalogTemplate = CatalogTemplate.newBuilder().build(); + String catalogTemplateId = "catalogTemplateId-1740091346"; + client.createCatalogTemplate(parent, catalogTemplate, catalogTemplateId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getCatalogTemplateTest() throws Exception { + CatalogTemplate expectedResponse = + CatalogTemplate.newBuilder() + .setName( + CatalogTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setUuid("uuid3601339") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setLatestRevisionId("latestRevisionId-1320934083") + .setTemplateCategory(TemplateCategory.forNumber(0)) + .setType(TemplateType.forNumber(0)) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + CatalogTemplateName name = + CatalogTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]"); + + CatalogTemplate actualResponse = client.getCatalogTemplate(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetCatalogTemplateRequest actualRequest = ((GetCatalogTemplateRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getCatalogTemplateExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + CatalogTemplateName name = + CatalogTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]"); + client.getCatalogTemplate(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getCatalogTemplateTest2() throws Exception { + CatalogTemplate expectedResponse = + CatalogTemplate.newBuilder() + .setName( + CatalogTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setUuid("uuid3601339") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setLatestRevisionId("latestRevisionId-1320934083") + .setTemplateCategory(TemplateCategory.forNumber(0)) + .setType(TemplateType.forNumber(0)) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + String name = "name3373707"; + + CatalogTemplate actualResponse = client.getCatalogTemplate(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetCatalogTemplateRequest actualRequest = ((GetCatalogTemplateRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getCatalogTemplateExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + String name = "name3373707"; + client.getCatalogTemplate(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCatalogTemplatesTest() throws Exception { + CatalogTemplate responsesElement = CatalogTemplate.newBuilder().build(); + ListCatalogTemplatesResponse expectedResponse = + ListCatalogTemplatesResponse.newBuilder() + .setNextPageToken("") + .addAllCatalogTemplates(Arrays.asList(responsesElement)) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + CatalogName parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]"); + + ListCatalogTemplatesPagedResponse pagedListResponse = client.listCatalogTemplates(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCatalogTemplatesList().get(0), resources.get(0)); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListCatalogTemplatesRequest actualRequest = + ((ListCatalogTemplatesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listCatalogTemplatesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + CatalogName parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]"); + client.listCatalogTemplates(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCatalogTemplatesTest2() throws Exception { + CatalogTemplate responsesElement = CatalogTemplate.newBuilder().build(); + ListCatalogTemplatesResponse expectedResponse = + ListCatalogTemplatesResponse.newBuilder() + .setNextPageToken("") + .addAllCatalogTemplates(Arrays.asList(responsesElement)) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListCatalogTemplatesPagedResponse pagedListResponse = client.listCatalogTemplates(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCatalogTemplatesList().get(0), resources.get(0)); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListCatalogTemplatesRequest actualRequest = + ((ListCatalogTemplatesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listCatalogTemplatesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + String parent = "parent-995424086"; + client.listCatalogTemplates(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateCatalogTemplateTest() throws Exception { + CatalogTemplate expectedResponse = + CatalogTemplate.newBuilder() + .setName( + CatalogTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setUuid("uuid3601339") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setLatestRevisionId("latestRevisionId-1320934083") + .setTemplateCategory(TemplateCategory.forNumber(0)) + .setType(TemplateType.forNumber(0)) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + CatalogTemplate catalogTemplate = CatalogTemplate.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + CatalogTemplate actualResponse = client.updateCatalogTemplate(catalogTemplate, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateCatalogTemplateRequest actualRequest = + ((UpdateCatalogTemplateRequest) actualRequests.get(0)); + + Assert.assertEquals(catalogTemplate, actualRequest.getCatalogTemplate()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateCatalogTemplateExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + CatalogTemplate catalogTemplate = CatalogTemplate.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateCatalogTemplate(catalogTemplate, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteCatalogTemplateTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteCatalogTemplateTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDesignCenter.addResponse(resultOperation); + + CatalogTemplateName name = + CatalogTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]"); + + client.deleteCatalogTemplateAsync(name).get(); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteCatalogTemplateRequest actualRequest = + ((DeleteCatalogTemplateRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteCatalogTemplateExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + CatalogTemplateName name = + CatalogTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]"); + client.deleteCatalogTemplateAsync(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 deleteCatalogTemplateTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteCatalogTemplateTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDesignCenter.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteCatalogTemplateAsync(name).get(); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteCatalogTemplateRequest actualRequest = + ((DeleteCatalogTemplateRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteCatalogTemplateExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + String name = "name3373707"; + client.deleteCatalogTemplateAsync(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 createShareTest() throws Exception { + Share expectedResponse = + Share.newBuilder() + .setName( + ShareName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[SHARE]") + .toString()) + .setDestinationSpace(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createShareTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDesignCenter.addResponse(resultOperation); + + CatalogName parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]"); + Share share = Share.newBuilder().build(); + String shareId = "shareId2054217050"; + + Share actualResponse = client.createShareAsync(parent, share, shareId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateShareRequest actualRequest = ((CreateShareRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(share, actualRequest.getShare()); + Assert.assertEquals(shareId, actualRequest.getShareId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createShareExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + CatalogName parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]"); + Share share = Share.newBuilder().build(); + String shareId = "shareId2054217050"; + client.createShareAsync(parent, share, shareId).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 createShareTest2() throws Exception { + Share expectedResponse = + Share.newBuilder() + .setName( + ShareName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[SHARE]") + .toString()) + .setDestinationSpace(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createShareTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDesignCenter.addResponse(resultOperation); + + String parent = "parent-995424086"; + Share share = Share.newBuilder().build(); + String shareId = "shareId2054217050"; + + Share actualResponse = client.createShareAsync(parent, share, shareId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateShareRequest actualRequest = ((CreateShareRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(share, actualRequest.getShare()); + Assert.assertEquals(shareId, actualRequest.getShareId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createShareExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + String parent = "parent-995424086"; + Share share = Share.newBuilder().build(); + String shareId = "shareId2054217050"; + client.createShareAsync(parent, share, shareId).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 listSharesTest() throws Exception { + Share responsesElement = Share.newBuilder().build(); + ListSharesResponse expectedResponse = + ListSharesResponse.newBuilder() + .setNextPageToken("") + .addAllShares(Arrays.asList(responsesElement)) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + CatalogName parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]"); + + ListSharesPagedResponse pagedListResponse = client.listShares(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSharesList().get(0), resources.get(0)); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListSharesRequest actualRequest = ((ListSharesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listSharesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + CatalogName parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]"); + client.listShares(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSharesTest2() throws Exception { + Share responsesElement = Share.newBuilder().build(); + ListSharesResponse expectedResponse = + ListSharesResponse.newBuilder() + .setNextPageToken("") + .addAllShares(Arrays.asList(responsesElement)) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListSharesPagedResponse pagedListResponse = client.listShares(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSharesList().get(0), resources.get(0)); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListSharesRequest actualRequest = ((ListSharesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listSharesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + String parent = "parent-995424086"; + client.listShares(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getShareTest() throws Exception { + Share expectedResponse = + Share.newBuilder() + .setName( + ShareName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[SHARE]") + .toString()) + .setDestinationSpace(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + ShareName name = ShareName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[SHARE]"); + + Share actualResponse = client.getShare(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetShareRequest actualRequest = ((GetShareRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getShareExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + ShareName name = ShareName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[SHARE]"); + client.getShare(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getShareTest2() throws Exception { + Share expectedResponse = + Share.newBuilder() + .setName( + ShareName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[SHARE]") + .toString()) + .setDestinationSpace(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + String name = "name3373707"; + + Share actualResponse = client.getShare(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetShareRequest actualRequest = ((GetShareRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getShareExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + String name = "name3373707"; + client.getShare(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteShareTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteShareTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDesignCenter.addResponse(resultOperation); + + ShareName name = ShareName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[SHARE]"); + + client.deleteShareAsync(name).get(); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteShareRequest actualRequest = ((DeleteShareRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteShareExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + ShareName name = ShareName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[SHARE]"); + client.deleteShareAsync(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 deleteShareTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteShareTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDesignCenter.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteShareAsync(name).get(); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteShareRequest actualRequest = ((DeleteShareRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteShareExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + String name = "name3373707"; + client.deleteShareAsync(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 syncShareTest() throws Exception { + Share expectedResponse = + Share.newBuilder() + .setName( + ShareName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[SHARE]") + .toString()) + .setDestinationSpace(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("syncShareTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDesignCenter.addResponse(resultOperation); + + ShareName name = ShareName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[SHARE]"); + + Share actualResponse = client.syncShareAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SyncShareRequest actualRequest = ((SyncShareRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void syncShareExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + ShareName name = ShareName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[SHARE]"); + client.syncShareAsync(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 syncShareTest2() throws Exception { + Share expectedResponse = + Share.newBuilder() + .setName( + ShareName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[SHARE]") + .toString()) + .setDestinationSpace(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("syncShareTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDesignCenter.addResponse(resultOperation); + + String name = "name3373707"; + + Share actualResponse = client.syncShareAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SyncShareRequest actualRequest = ((SyncShareRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void syncShareExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + String name = "name3373707"; + client.syncShareAsync(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 getSharedTemplateTest() throws Exception { + SharedTemplate expectedResponse = + SharedTemplate.newBuilder() + .setName( + SharedTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[SHARED_TEMPLATE]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setOriginTemplate( + CatalogTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setLatestRevisionId("latestRevisionId-1320934083") + .setTemplateCategory(TemplateCategory.forNumber(0)) + .setType(TemplateType.forNumber(0)) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + SharedTemplateName name = + SharedTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[SHARED_TEMPLATE]"); + + SharedTemplate actualResponse = client.getSharedTemplate(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetSharedTemplateRequest actualRequest = ((GetSharedTemplateRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getSharedTemplateExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + SharedTemplateName name = + SharedTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[SHARED_TEMPLATE]"); + client.getSharedTemplate(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSharedTemplateTest2() throws Exception { + SharedTemplate expectedResponse = + SharedTemplate.newBuilder() + .setName( + SharedTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[SHARED_TEMPLATE]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setOriginTemplate( + CatalogTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setLatestRevisionId("latestRevisionId-1320934083") + .setTemplateCategory(TemplateCategory.forNumber(0)) + .setType(TemplateType.forNumber(0)) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + String name = "name3373707"; + + SharedTemplate actualResponse = client.getSharedTemplate(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetSharedTemplateRequest actualRequest = ((GetSharedTemplateRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getSharedTemplateExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + String name = "name3373707"; + client.getSharedTemplate(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSharedTemplatesTest() throws Exception { + SharedTemplate responsesElement = SharedTemplate.newBuilder().build(); + ListSharedTemplatesResponse expectedResponse = + ListSharedTemplatesResponse.newBuilder() + .setNextPageToken("") + .addAllSharedTemplates(Arrays.asList(responsesElement)) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + SpaceName parent = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]"); + + ListSharedTemplatesPagedResponse pagedListResponse = client.listSharedTemplates(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSharedTemplatesList().get(0), resources.get(0)); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListSharedTemplatesRequest actualRequest = ((ListSharedTemplatesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listSharedTemplatesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + SpaceName parent = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]"); + client.listSharedTemplates(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSharedTemplatesTest2() throws Exception { + SharedTemplate responsesElement = SharedTemplate.newBuilder().build(); + ListSharedTemplatesResponse expectedResponse = + ListSharedTemplatesResponse.newBuilder() + .setNextPageToken("") + .addAllSharedTemplates(Arrays.asList(responsesElement)) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListSharedTemplatesPagedResponse pagedListResponse = client.listSharedTemplates(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSharedTemplatesList().get(0), resources.get(0)); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListSharedTemplatesRequest actualRequest = ((ListSharedTemplatesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listSharedTemplatesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + String parent = "parent-995424086"; + client.listSharedTemplates(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSharedTemplateRevisionTest() throws Exception { + SharedTemplateRevision expectedResponse = + SharedTemplateRevision.newBuilder() + .setName( + SharedTemplateRevisionName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[SHARED_TEMPLATE]", "[REVISION]") + .toString()) + .setDescription("description-1724546052") + .setType(TemplateType.forNumber(0)) + .setSharedTemplateMetadata(TFBlueprintMetadata.newBuilder().build()) + .setOriginTemplateRevision( + CatalogTemplateRevisionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[CATALOG]", + "[CATALOG_TEMPLATE]", + "[REVISION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setApplicationTemplateRevision(SerializedApplicationTemplate.newBuilder().build()) + .setHelmChartMetadata(HelmChartMetadata.newBuilder().build()) + .setTemplateCategory(TemplateCategory.forNumber(0)) + .addAllLogicalProducts(new ArrayList()) + .putAllAnnotations(new HashMap()) + .setInferredMetadata(InferredMetadata.newBuilder().build()) + .addAllResourceTypes(new ArrayList()) + .setIacSource(IACSource.forNumber(0)) + .addAllApplicationParameters(new ArrayList()) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + SharedTemplateRevisionName name = + SharedTemplateRevisionName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[SHARED_TEMPLATE]", "[REVISION]"); + + SharedTemplateRevision actualResponse = client.getSharedTemplateRevision(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetSharedTemplateRevisionRequest actualRequest = + ((GetSharedTemplateRevisionRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getSharedTemplateRevisionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + SharedTemplateRevisionName name = + SharedTemplateRevisionName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[SHARED_TEMPLATE]", "[REVISION]"); + client.getSharedTemplateRevision(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSharedTemplateRevisionTest2() throws Exception { + SharedTemplateRevision expectedResponse = + SharedTemplateRevision.newBuilder() + .setName( + SharedTemplateRevisionName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[SHARED_TEMPLATE]", "[REVISION]") + .toString()) + .setDescription("description-1724546052") + .setType(TemplateType.forNumber(0)) + .setSharedTemplateMetadata(TFBlueprintMetadata.newBuilder().build()) + .setOriginTemplateRevision( + CatalogTemplateRevisionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[CATALOG]", + "[CATALOG_TEMPLATE]", + "[REVISION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setApplicationTemplateRevision(SerializedApplicationTemplate.newBuilder().build()) + .setHelmChartMetadata(HelmChartMetadata.newBuilder().build()) + .setTemplateCategory(TemplateCategory.forNumber(0)) + .addAllLogicalProducts(new ArrayList()) + .putAllAnnotations(new HashMap()) + .setInferredMetadata(InferredMetadata.newBuilder().build()) + .addAllResourceTypes(new ArrayList()) + .setIacSource(IACSource.forNumber(0)) + .addAllApplicationParameters(new ArrayList()) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + String name = "name3373707"; + + SharedTemplateRevision actualResponse = client.getSharedTemplateRevision(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetSharedTemplateRevisionRequest actualRequest = + ((GetSharedTemplateRevisionRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getSharedTemplateRevisionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + String name = "name3373707"; + client.getSharedTemplateRevision(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSharedTemplateRevisionsTest() throws Exception { + SharedTemplateRevision responsesElement = SharedTemplateRevision.newBuilder().build(); + ListSharedTemplateRevisionsResponse expectedResponse = + ListSharedTemplateRevisionsResponse.newBuilder() + .setNextPageToken("") + .addAllSharedTemplateRevisions(Arrays.asList(responsesElement)) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + SharedTemplateName parent = + SharedTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[SHARED_TEMPLATE]"); + + ListSharedTemplateRevisionsPagedResponse pagedListResponse = + client.listSharedTemplateRevisions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSharedTemplateRevisionsList().get(0), resources.get(0)); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListSharedTemplateRevisionsRequest actualRequest = + ((ListSharedTemplateRevisionsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listSharedTemplateRevisionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + SharedTemplateName parent = + SharedTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[SHARED_TEMPLATE]"); + client.listSharedTemplateRevisions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSharedTemplateRevisionsTest2() throws Exception { + SharedTemplateRevision responsesElement = SharedTemplateRevision.newBuilder().build(); + ListSharedTemplateRevisionsResponse expectedResponse = + ListSharedTemplateRevisionsResponse.newBuilder() + .setNextPageToken("") + .addAllSharedTemplateRevisions(Arrays.asList(responsesElement)) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListSharedTemplateRevisionsPagedResponse pagedListResponse = + client.listSharedTemplateRevisions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSharedTemplateRevisionsList().get(0), resources.get(0)); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListSharedTemplateRevisionsRequest actualRequest = + ((ListSharedTemplateRevisionsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listSharedTemplateRevisionsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + String parent = "parent-995424086"; + client.listSharedTemplateRevisions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createCatalogTemplateRevisionTest() throws Exception { + CatalogTemplateRevision expectedResponse = + CatalogTemplateRevision.newBuilder() + .setName( + CatalogTemplateRevisionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[CATALOG]", + "[CATALOG_TEMPLATE]", + "[REVISION]") + .toString()) + .setDescription("description-1724546052") + .setType(TemplateType.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setTemplateMetadata(TFBlueprintMetadata.newBuilder().build()) + .setApplicationTemplateRevision(SerializedApplicationTemplate.newBuilder().build()) + .setHelmChartMetadata(HelmChartMetadata.newBuilder().build()) + .setUuid("uuid3601339") + .setMetadataInput(MetadataInput.newBuilder().build()) + .setTemplateCategory(TemplateCategory.forNumber(0)) + .addAllLogicalProducts(new ArrayList()) + .putAllAnnotations(new HashMap()) + .setInferredMetadata(InferredMetadata.newBuilder().build()) + .addAllResourceTypes(new ArrayList()) + .setIacSource(IACSource.forNumber(0)) + .addAllApplicationParameters(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createCatalogTemplateRevisionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDesignCenter.addResponse(resultOperation); + + CatalogTemplateName parent = + CatalogTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]"); + CatalogTemplateRevision catalogTemplateRevision = CatalogTemplateRevision.newBuilder().build(); + String catalogTemplateRevisionId = "catalogTemplateRevisionId1620031081"; + + CatalogTemplateRevision actualResponse = + client + .createCatalogTemplateRevisionAsync( + parent, catalogTemplateRevision, catalogTemplateRevisionId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateCatalogTemplateRevisionRequest actualRequest = + ((CreateCatalogTemplateRevisionRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(catalogTemplateRevision, actualRequest.getCatalogTemplateRevision()); + Assert.assertEquals(catalogTemplateRevisionId, actualRequest.getCatalogTemplateRevisionId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createCatalogTemplateRevisionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + CatalogTemplateName parent = + CatalogTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]"); + CatalogTemplateRevision catalogTemplateRevision = + CatalogTemplateRevision.newBuilder().build(); + String catalogTemplateRevisionId = "catalogTemplateRevisionId1620031081"; + client + .createCatalogTemplateRevisionAsync( + parent, catalogTemplateRevision, catalogTemplateRevisionId) + .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 createCatalogTemplateRevisionTest2() throws Exception { + CatalogTemplateRevision expectedResponse = + CatalogTemplateRevision.newBuilder() + .setName( + CatalogTemplateRevisionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[CATALOG]", + "[CATALOG_TEMPLATE]", + "[REVISION]") + .toString()) + .setDescription("description-1724546052") + .setType(TemplateType.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setTemplateMetadata(TFBlueprintMetadata.newBuilder().build()) + .setApplicationTemplateRevision(SerializedApplicationTemplate.newBuilder().build()) + .setHelmChartMetadata(HelmChartMetadata.newBuilder().build()) + .setUuid("uuid3601339") + .setMetadataInput(MetadataInput.newBuilder().build()) + .setTemplateCategory(TemplateCategory.forNumber(0)) + .addAllLogicalProducts(new ArrayList()) + .putAllAnnotations(new HashMap()) + .setInferredMetadata(InferredMetadata.newBuilder().build()) + .addAllResourceTypes(new ArrayList()) + .setIacSource(IACSource.forNumber(0)) + .addAllApplicationParameters(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createCatalogTemplateRevisionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDesignCenter.addResponse(resultOperation); + + String parent = "parent-995424086"; + CatalogTemplateRevision catalogTemplateRevision = CatalogTemplateRevision.newBuilder().build(); + String catalogTemplateRevisionId = "catalogTemplateRevisionId1620031081"; + + CatalogTemplateRevision actualResponse = + client + .createCatalogTemplateRevisionAsync( + parent, catalogTemplateRevision, catalogTemplateRevisionId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateCatalogTemplateRevisionRequest actualRequest = + ((CreateCatalogTemplateRevisionRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(catalogTemplateRevision, actualRequest.getCatalogTemplateRevision()); + Assert.assertEquals(catalogTemplateRevisionId, actualRequest.getCatalogTemplateRevisionId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createCatalogTemplateRevisionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + String parent = "parent-995424086"; + CatalogTemplateRevision catalogTemplateRevision = + CatalogTemplateRevision.newBuilder().build(); + String catalogTemplateRevisionId = "catalogTemplateRevisionId1620031081"; + client + .createCatalogTemplateRevisionAsync( + parent, catalogTemplateRevision, catalogTemplateRevisionId) + .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 getCatalogTemplateRevisionTest() throws Exception { + CatalogTemplateRevision expectedResponse = + CatalogTemplateRevision.newBuilder() + .setName( + CatalogTemplateRevisionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[CATALOG]", + "[CATALOG_TEMPLATE]", + "[REVISION]") + .toString()) + .setDescription("description-1724546052") + .setType(TemplateType.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setTemplateMetadata(TFBlueprintMetadata.newBuilder().build()) + .setApplicationTemplateRevision(SerializedApplicationTemplate.newBuilder().build()) + .setHelmChartMetadata(HelmChartMetadata.newBuilder().build()) + .setUuid("uuid3601339") + .setMetadataInput(MetadataInput.newBuilder().build()) + .setTemplateCategory(TemplateCategory.forNumber(0)) + .addAllLogicalProducts(new ArrayList()) + .putAllAnnotations(new HashMap()) + .setInferredMetadata(InferredMetadata.newBuilder().build()) + .addAllResourceTypes(new ArrayList()) + .setIacSource(IACSource.forNumber(0)) + .addAllApplicationParameters(new ArrayList()) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + CatalogTemplateRevisionName name = + CatalogTemplateRevisionName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]", "[REVISION]"); + + CatalogTemplateRevision actualResponse = client.getCatalogTemplateRevision(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetCatalogTemplateRevisionRequest actualRequest = + ((GetCatalogTemplateRevisionRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getCatalogTemplateRevisionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + CatalogTemplateRevisionName name = + CatalogTemplateRevisionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[CATALOG]", + "[CATALOG_TEMPLATE]", + "[REVISION]"); + client.getCatalogTemplateRevision(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getCatalogTemplateRevisionTest2() throws Exception { + CatalogTemplateRevision expectedResponse = + CatalogTemplateRevision.newBuilder() + .setName( + CatalogTemplateRevisionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[CATALOG]", + "[CATALOG_TEMPLATE]", + "[REVISION]") + .toString()) + .setDescription("description-1724546052") + .setType(TemplateType.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setTemplateMetadata(TFBlueprintMetadata.newBuilder().build()) + .setApplicationTemplateRevision(SerializedApplicationTemplate.newBuilder().build()) + .setHelmChartMetadata(HelmChartMetadata.newBuilder().build()) + .setUuid("uuid3601339") + .setMetadataInput(MetadataInput.newBuilder().build()) + .setTemplateCategory(TemplateCategory.forNumber(0)) + .addAllLogicalProducts(new ArrayList()) + .putAllAnnotations(new HashMap()) + .setInferredMetadata(InferredMetadata.newBuilder().build()) + .addAllResourceTypes(new ArrayList()) + .setIacSource(IACSource.forNumber(0)) + .addAllApplicationParameters(new ArrayList()) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + String name = "name3373707"; + + CatalogTemplateRevision actualResponse = client.getCatalogTemplateRevision(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetCatalogTemplateRevisionRequest actualRequest = + ((GetCatalogTemplateRevisionRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getCatalogTemplateRevisionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + String name = "name3373707"; + client.getCatalogTemplateRevision(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCatalogTemplateRevisionsTest() throws Exception { + CatalogTemplateRevision responsesElement = CatalogTemplateRevision.newBuilder().build(); + ListCatalogTemplateRevisionsResponse expectedResponse = + ListCatalogTemplateRevisionsResponse.newBuilder() + .setNextPageToken("") + .addAllCatalogTemplateRevisions(Arrays.asList(responsesElement)) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + CatalogTemplateName parent = + CatalogTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]"); + + ListCatalogTemplateRevisionsPagedResponse pagedListResponse = + client.listCatalogTemplateRevisions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getCatalogTemplateRevisionsList().get(0), resources.get(0)); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListCatalogTemplateRevisionsRequest actualRequest = + ((ListCatalogTemplateRevisionsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listCatalogTemplateRevisionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + CatalogTemplateName parent = + CatalogTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]"); + client.listCatalogTemplateRevisions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCatalogTemplateRevisionsTest2() throws Exception { + CatalogTemplateRevision responsesElement = CatalogTemplateRevision.newBuilder().build(); + ListCatalogTemplateRevisionsResponse expectedResponse = + ListCatalogTemplateRevisionsResponse.newBuilder() + .setNextPageToken("") + .addAllCatalogTemplateRevisions(Arrays.asList(responsesElement)) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListCatalogTemplateRevisionsPagedResponse pagedListResponse = + client.listCatalogTemplateRevisions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getCatalogTemplateRevisionsList().get(0), resources.get(0)); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListCatalogTemplateRevisionsRequest actualRequest = + ((ListCatalogTemplateRevisionsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listCatalogTemplateRevisionsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + String parent = "parent-995424086"; + client.listCatalogTemplateRevisions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteCatalogTemplateRevisionTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteCatalogTemplateRevisionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDesignCenter.addResponse(resultOperation); + + CatalogTemplateRevisionName name = + CatalogTemplateRevisionName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]", "[REVISION]"); + + client.deleteCatalogTemplateRevisionAsync(name).get(); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteCatalogTemplateRevisionRequest actualRequest = + ((DeleteCatalogTemplateRevisionRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteCatalogTemplateRevisionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + CatalogTemplateRevisionName name = + CatalogTemplateRevisionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[CATALOG]", + "[CATALOG_TEMPLATE]", + "[REVISION]"); + client.deleteCatalogTemplateRevisionAsync(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 deleteCatalogTemplateRevisionTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteCatalogTemplateRevisionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDesignCenter.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteCatalogTemplateRevisionAsync(name).get(); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteCatalogTemplateRevisionRequest actualRequest = + ((DeleteCatalogTemplateRevisionRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteCatalogTemplateRevisionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + String name = "name3373707"; + client.deleteCatalogTemplateRevisionAsync(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 createApplicationTest() throws Exception { + Application expectedResponse = + Application.newBuilder() + .setName( + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSource(DeploymentSource.newBuilder().build()) + .addAllAppParameters(new ArrayList()) + .addAllComponentParameters(new ArrayList()) + .setServiceAccount("serviceAccount1079137720") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setAttributes(Attributes.newBuilder().build()) + .setScope(Scope.newBuilder().build()) + .setImportExistingResources(true) + .setPreviewReference("previewReference1962163299") + .setDeploymentRevision("deploymentRevision-13024832") + .setApphubApplication("apphubApplication104302972") + .setSerializedApplicationTemplate(SerializedApplicationTemplate.newBuilder().build()) + .setDeploymentMetadata(DeploymentMetadata.newBuilder().build()) + .addAllProjectParameters(new ArrayList()) + .setDeploymentRegion("deploymentRegion1711269401") + .setUpdatedTemplateRevision(UpdatedTemplateRevision.newBuilder().build()) + .setDeploymentProject("deploymentProject114323604") + .addAllConnectionConfigs(new ArrayList()) + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .setType(ApplicationType.forNumber(0)) + .setDeploymentTarget(DeploymentTarget.newBuilder().build()) + .setCompositionType(ApplicationCompositionType.forNumber(0)) + .setCompositeApplicationParameters(CompositeApplicationParameters.newBuilder().build()) + .setDeploymentGroupMetadata(DeploymentGroupMetadata.newBuilder().build()) + .addAllRolesApisConfig(new ArrayList()) + .setTemplateMetadata(TFBlueprintMetadata.newBuilder().build()) + .setIacSource(IACSource.forNumber(0)) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + SpaceName parent = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]"); + Application application = Application.newBuilder().build(); + String applicationId = "applicationId-1011352949"; + + Application actualResponse = client.createApplication(parent, application, applicationId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateApplicationRequest actualRequest = ((CreateApplicationRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(application, actualRequest.getApplication()); + Assert.assertEquals(applicationId, actualRequest.getApplicationId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createApplicationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + SpaceName parent = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]"); + Application application = Application.newBuilder().build(); + String applicationId = "applicationId-1011352949"; + client.createApplication(parent, application, applicationId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createApplicationTest2() throws Exception { + Application expectedResponse = + Application.newBuilder() + .setName( + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSource(DeploymentSource.newBuilder().build()) + .addAllAppParameters(new ArrayList()) + .addAllComponentParameters(new ArrayList()) + .setServiceAccount("serviceAccount1079137720") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setAttributes(Attributes.newBuilder().build()) + .setScope(Scope.newBuilder().build()) + .setImportExistingResources(true) + .setPreviewReference("previewReference1962163299") + .setDeploymentRevision("deploymentRevision-13024832") + .setApphubApplication("apphubApplication104302972") + .setSerializedApplicationTemplate(SerializedApplicationTemplate.newBuilder().build()) + .setDeploymentMetadata(DeploymentMetadata.newBuilder().build()) + .addAllProjectParameters(new ArrayList()) + .setDeploymentRegion("deploymentRegion1711269401") + .setUpdatedTemplateRevision(UpdatedTemplateRevision.newBuilder().build()) + .setDeploymentProject("deploymentProject114323604") + .addAllConnectionConfigs(new ArrayList()) + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .setType(ApplicationType.forNumber(0)) + .setDeploymentTarget(DeploymentTarget.newBuilder().build()) + .setCompositionType(ApplicationCompositionType.forNumber(0)) + .setCompositeApplicationParameters(CompositeApplicationParameters.newBuilder().build()) + .setDeploymentGroupMetadata(DeploymentGroupMetadata.newBuilder().build()) + .addAllRolesApisConfig(new ArrayList()) + .setTemplateMetadata(TFBlueprintMetadata.newBuilder().build()) + .setIacSource(IACSource.forNumber(0)) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + String parent = "parent-995424086"; + Application application = Application.newBuilder().build(); + String applicationId = "applicationId-1011352949"; + + Application actualResponse = client.createApplication(parent, application, applicationId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateApplicationRequest actualRequest = ((CreateApplicationRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(application, actualRequest.getApplication()); + Assert.assertEquals(applicationId, actualRequest.getApplicationId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createApplicationExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + String parent = "parent-995424086"; + Application application = Application.newBuilder().build(); + String applicationId = "applicationId-1011352949"; + client.createApplication(parent, application, applicationId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getApplicationTest() throws Exception { + Application expectedResponse = + Application.newBuilder() + .setName( + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSource(DeploymentSource.newBuilder().build()) + .addAllAppParameters(new ArrayList()) + .addAllComponentParameters(new ArrayList()) + .setServiceAccount("serviceAccount1079137720") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setAttributes(Attributes.newBuilder().build()) + .setScope(Scope.newBuilder().build()) + .setImportExistingResources(true) + .setPreviewReference("previewReference1962163299") + .setDeploymentRevision("deploymentRevision-13024832") + .setApphubApplication("apphubApplication104302972") + .setSerializedApplicationTemplate(SerializedApplicationTemplate.newBuilder().build()) + .setDeploymentMetadata(DeploymentMetadata.newBuilder().build()) + .addAllProjectParameters(new ArrayList()) + .setDeploymentRegion("deploymentRegion1711269401") + .setUpdatedTemplateRevision(UpdatedTemplateRevision.newBuilder().build()) + .setDeploymentProject("deploymentProject114323604") + .addAllConnectionConfigs(new ArrayList()) + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .setType(ApplicationType.forNumber(0)) + .setDeploymentTarget(DeploymentTarget.newBuilder().build()) + .setCompositionType(ApplicationCompositionType.forNumber(0)) + .setCompositeApplicationParameters(CompositeApplicationParameters.newBuilder().build()) + .setDeploymentGroupMetadata(DeploymentGroupMetadata.newBuilder().build()) + .addAllRolesApisConfig(new ArrayList()) + .setTemplateMetadata(TFBlueprintMetadata.newBuilder().build()) + .setIacSource(IACSource.forNumber(0)) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + ApplicationName name = + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]"); + + Application actualResponse = client.getApplication(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetApplicationRequest actualRequest = ((GetApplicationRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getApplicationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + ApplicationName name = + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]"); + client.getApplication(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getApplicationTest2() throws Exception { + Application expectedResponse = + Application.newBuilder() + .setName( + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSource(DeploymentSource.newBuilder().build()) + .addAllAppParameters(new ArrayList()) + .addAllComponentParameters(new ArrayList()) + .setServiceAccount("serviceAccount1079137720") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setAttributes(Attributes.newBuilder().build()) + .setScope(Scope.newBuilder().build()) + .setImportExistingResources(true) + .setPreviewReference("previewReference1962163299") + .setDeploymentRevision("deploymentRevision-13024832") + .setApphubApplication("apphubApplication104302972") + .setSerializedApplicationTemplate(SerializedApplicationTemplate.newBuilder().build()) + .setDeploymentMetadata(DeploymentMetadata.newBuilder().build()) + .addAllProjectParameters(new ArrayList()) + .setDeploymentRegion("deploymentRegion1711269401") + .setUpdatedTemplateRevision(UpdatedTemplateRevision.newBuilder().build()) + .setDeploymentProject("deploymentProject114323604") + .addAllConnectionConfigs(new ArrayList()) + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .setType(ApplicationType.forNumber(0)) + .setDeploymentTarget(DeploymentTarget.newBuilder().build()) + .setCompositionType(ApplicationCompositionType.forNumber(0)) + .setCompositeApplicationParameters(CompositeApplicationParameters.newBuilder().build()) + .setDeploymentGroupMetadata(DeploymentGroupMetadata.newBuilder().build()) + .addAllRolesApisConfig(new ArrayList()) + .setTemplateMetadata(TFBlueprintMetadata.newBuilder().build()) + .setIacSource(IACSource.forNumber(0)) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + String name = "name3373707"; + + Application actualResponse = client.getApplication(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetApplicationRequest actualRequest = ((GetApplicationRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getApplicationExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + String name = "name3373707"; + client.getApplication(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listApplicationsTest() throws Exception { + Application responsesElement = Application.newBuilder().build(); + ListApplicationsResponse expectedResponse = + ListApplicationsResponse.newBuilder() + .setNextPageToken("") + .addAllApplications(Arrays.asList(responsesElement)) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + SpaceName parent = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]"); + + ListApplicationsPagedResponse pagedListResponse = client.listApplications(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getApplicationsList().get(0), resources.get(0)); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListApplicationsRequest actualRequest = ((ListApplicationsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listApplicationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + SpaceName parent = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]"); + client.listApplications(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listApplicationsTest2() throws Exception { + Application responsesElement = Application.newBuilder().build(); + ListApplicationsResponse expectedResponse = + ListApplicationsResponse.newBuilder() + .setNextPageToken("") + .addAllApplications(Arrays.asList(responsesElement)) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListApplicationsPagedResponse pagedListResponse = client.listApplications(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getApplicationsList().get(0), resources.get(0)); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListApplicationsRequest actualRequest = ((ListApplicationsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listApplicationsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + String parent = "parent-995424086"; + client.listApplications(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateApplicationTest() throws Exception { + Application expectedResponse = + Application.newBuilder() + .setName( + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSource(DeploymentSource.newBuilder().build()) + .addAllAppParameters(new ArrayList()) + .addAllComponentParameters(new ArrayList()) + .setServiceAccount("serviceAccount1079137720") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setAttributes(Attributes.newBuilder().build()) + .setScope(Scope.newBuilder().build()) + .setImportExistingResources(true) + .setPreviewReference("previewReference1962163299") + .setDeploymentRevision("deploymentRevision-13024832") + .setApphubApplication("apphubApplication104302972") + .setSerializedApplicationTemplate(SerializedApplicationTemplate.newBuilder().build()) + .setDeploymentMetadata(DeploymentMetadata.newBuilder().build()) + .addAllProjectParameters(new ArrayList()) + .setDeploymentRegion("deploymentRegion1711269401") + .setUpdatedTemplateRevision(UpdatedTemplateRevision.newBuilder().build()) + .setDeploymentProject("deploymentProject114323604") + .addAllConnectionConfigs(new ArrayList()) + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .setType(ApplicationType.forNumber(0)) + .setDeploymentTarget(DeploymentTarget.newBuilder().build()) + .setCompositionType(ApplicationCompositionType.forNumber(0)) + .setCompositeApplicationParameters(CompositeApplicationParameters.newBuilder().build()) + .setDeploymentGroupMetadata(DeploymentGroupMetadata.newBuilder().build()) + .addAllRolesApisConfig(new ArrayList()) + .setTemplateMetadata(TFBlueprintMetadata.newBuilder().build()) + .setIacSource(IACSource.forNumber(0)) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + Application application = Application.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Application actualResponse = client.updateApplication(application, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateApplicationRequest actualRequest = ((UpdateApplicationRequest) actualRequests.get(0)); + + Assert.assertEquals(application, actualRequest.getApplication()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateApplicationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + Application application = Application.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateApplication(application, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteApplicationTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteApplicationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDesignCenter.addResponse(resultOperation); + + ApplicationName name = + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]"); + + client.deleteApplicationAsync(name).get(); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteApplicationRequest actualRequest = ((DeleteApplicationRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteApplicationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + ApplicationName name = + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]"); + client.deleteApplicationAsync(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 deleteApplicationTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteApplicationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDesignCenter.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteApplicationAsync(name).get(); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteApplicationRequest actualRequest = ((DeleteApplicationRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteApplicationExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + String name = "name3373707"; + client.deleteApplicationAsync(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 deployApplicationTest() throws Exception { + DeployApplicationResponse expectedResponse = + DeployApplicationResponse.newBuilder() + .setDeployment(Deployment.newBuilder().build()) + .setBuildId("buildId230943785") + .setDeploymentGroup(DeploymentGroup.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deployApplicationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDesignCenter.addResponse(resultOperation); + + ApplicationName name = + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]"); + + DeployApplicationResponse actualResponse = client.deployApplicationAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeployApplicationRequest actualRequest = ((DeployApplicationRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deployApplicationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + ApplicationName name = + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]"); + client.deployApplicationAsync(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 deployApplicationTest2() throws Exception { + DeployApplicationResponse expectedResponse = + DeployApplicationResponse.newBuilder() + .setDeployment(Deployment.newBuilder().build()) + .setBuildId("buildId230943785") + .setDeploymentGroup(DeploymentGroup.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deployApplicationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDesignCenter.addResponse(resultOperation); + + String name = "name3373707"; + + DeployApplicationResponse actualResponse = client.deployApplicationAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeployApplicationRequest actualRequest = ((DeployApplicationRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deployApplicationExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + String name = "name3373707"; + client.deployApplicationAsync(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 previewApplicationTest() throws Exception { + PreviewApplicationResponse expectedResponse = + PreviewApplicationResponse.newBuilder() + .setPreview(Preview.newBuilder().build()) + .setAssessmentReport(AssessmentReport.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("previewApplicationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDesignCenter.addResponse(resultOperation); + + ApplicationName name = + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]"); + + PreviewApplicationResponse actualResponse = client.previewApplicationAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + PreviewApplicationRequest actualRequest = ((PreviewApplicationRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void previewApplicationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + ApplicationName name = + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]"); + client.previewApplicationAsync(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 previewApplicationTest2() throws Exception { + PreviewApplicationResponse expectedResponse = + PreviewApplicationResponse.newBuilder() + .setPreview(Preview.newBuilder().build()) + .setAssessmentReport(AssessmentReport.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("previewApplicationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDesignCenter.addResponse(resultOperation); + + String name = "name3373707"; + + PreviewApplicationResponse actualResponse = client.previewApplicationAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + PreviewApplicationRequest actualRequest = ((PreviewApplicationRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void previewApplicationExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + String name = "name3373707"; + client.previewApplicationAsync(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 fetchApplicationAssessmentReportTest() throws Exception { + FetchApplicationAssessmentReportResponse expectedResponse = + FetchApplicationAssessmentReportResponse.newBuilder() + .setAssessmentReport(AssessmentReport.newBuilder().build()) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + ApplicationName name = + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]"); + + FetchApplicationAssessmentReportResponse actualResponse = + client.fetchApplicationAssessmentReport(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + FetchApplicationAssessmentReportRequest actualRequest = + ((FetchApplicationAssessmentReportRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void fetchApplicationAssessmentReportExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + ApplicationName name = + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]"); + client.fetchApplicationAssessmentReport(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void fetchApplicationAssessmentReportTest2() throws Exception { + FetchApplicationAssessmentReportResponse expectedResponse = + FetchApplicationAssessmentReportResponse.newBuilder() + .setAssessmentReport(AssessmentReport.newBuilder().build()) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + String name = "name3373707"; + + FetchApplicationAssessmentReportResponse actualResponse = + client.fetchApplicationAssessmentReport(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + FetchApplicationAssessmentReportRequest actualRequest = + ((FetchApplicationAssessmentReportRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void fetchApplicationAssessmentReportExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + String name = "name3373707"; + client.fetchApplicationAssessmentReport(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void generateApplicationAssessmentReportTest() throws Exception { + GenerateApplicationAssessmentReportResponse expectedResponse = + GenerateApplicationAssessmentReportResponse.newBuilder() + .setAssessmentReport(AssessmentReport.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("generateApplicationAssessmentReportTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDesignCenter.addResponse(resultOperation); + + ApplicationName name = + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]"); + + GenerateApplicationAssessmentReportResponse actualResponse = + client.generateApplicationAssessmentReportAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GenerateApplicationAssessmentReportRequest actualRequest = + ((GenerateApplicationAssessmentReportRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void generateApplicationAssessmentReportExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + ApplicationName name = + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]"); + client.generateApplicationAssessmentReportAsync(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 generateApplicationAssessmentReportTest2() throws Exception { + GenerateApplicationAssessmentReportResponse expectedResponse = + GenerateApplicationAssessmentReportResponse.newBuilder() + .setAssessmentReport(AssessmentReport.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("generateApplicationAssessmentReportTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDesignCenter.addResponse(resultOperation); + + String name = "name3373707"; + + GenerateApplicationAssessmentReportResponse actualResponse = + client.generateApplicationAssessmentReportAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GenerateApplicationAssessmentReportRequest actualRequest = + ((GenerateApplicationAssessmentReportRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void generateApplicationAssessmentReportExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + String name = "name3373707"; + client.generateApplicationAssessmentReportAsync(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 generateApplicationTemplateAssessmentReportTest() throws Exception { + GenerateApplicationTemplateAssessmentReportResponse expectedResponse = + GenerateApplicationTemplateAssessmentReportResponse.newBuilder() + .setPreview(Preview.newBuilder().build()) + .setAssessmentReport(AssessmentReport.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("generateApplicationTemplateAssessmentReportTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDesignCenter.addResponse(resultOperation); + + ApplicationTemplateName name = + ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + + GenerateApplicationTemplateAssessmentReportResponse actualResponse = + client.generateApplicationTemplateAssessmentReportAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GenerateApplicationTemplateAssessmentReportRequest actualRequest = + ((GenerateApplicationTemplateAssessmentReportRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void generateApplicationTemplateAssessmentReportExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + ApplicationTemplateName name = + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + client.generateApplicationTemplateAssessmentReportAsync(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 generateApplicationTemplateAssessmentReportTest2() throws Exception { + GenerateApplicationTemplateAssessmentReportResponse expectedResponse = + GenerateApplicationTemplateAssessmentReportResponse.newBuilder() + .setPreview(Preview.newBuilder().build()) + .setAssessmentReport(AssessmentReport.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("generateApplicationTemplateAssessmentReportTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDesignCenter.addResponse(resultOperation); + + String name = "name3373707"; + + GenerateApplicationTemplateAssessmentReportResponse actualResponse = + client.generateApplicationTemplateAssessmentReportAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GenerateApplicationTemplateAssessmentReportRequest actualRequest = + ((GenerateApplicationTemplateAssessmentReportRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void generateApplicationTemplateAssessmentReportExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + String name = "name3373707"; + client.generateApplicationTemplateAssessmentReportAsync(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 generateAssessmentReportTest() throws Exception { + GenerateAssessmentReportResponse expectedResponse = + GenerateAssessmentReportResponse.newBuilder() + .setAssessmentReport(AssessmentReport.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("generateAssessmentReportTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDesignCenter.addResponse(resultOperation); + + SpaceName spaceName = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]"); + + GenerateAssessmentReportResponse actualResponse = + client.generateAssessmentReportAsync(spaceName).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GenerateAssessmentReportRequest actualRequest = + ((GenerateAssessmentReportRequest) actualRequests.get(0)); + + Assert.assertEquals(spaceName.toString(), actualRequest.getSpaceName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void generateAssessmentReportExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + SpaceName spaceName = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]"); + client.generateAssessmentReportAsync(spaceName).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 generateAssessmentReportTest2() throws Exception { + GenerateAssessmentReportResponse expectedResponse = + GenerateAssessmentReportResponse.newBuilder() + .setAssessmentReport(AssessmentReport.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("generateAssessmentReportTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDesignCenter.addResponse(resultOperation); + + String spaceName = "spaceName-954078031"; + + GenerateAssessmentReportResponse actualResponse = + client.generateAssessmentReportAsync(spaceName).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GenerateAssessmentReportRequest actualRequest = + ((GenerateAssessmentReportRequest) actualRequests.get(0)); + + Assert.assertEquals(spaceName, actualRequest.getSpaceName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void generateAssessmentReportExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + String spaceName = "spaceName-954078031"; + client.generateAssessmentReportAsync(spaceName).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 generateTerraformPlanAssessmentReportTest() throws Exception { + GenerateTerraformPlanAssessmentReportResponse expectedResponse = + GenerateTerraformPlanAssessmentReportResponse.newBuilder() + .setAssessmentReport(AssessmentReport.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("generateTerraformPlanAssessmentReportTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDesignCenter.addResponse(resultOperation); + + SpaceName name = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]"); + ByteString terraformPlan = ByteString.EMPTY; + + GenerateTerraformPlanAssessmentReportResponse actualResponse = + client.generateTerraformPlanAssessmentReportAsync(name, terraformPlan).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GenerateTerraformPlanAssessmentReportRequest actualRequest = + ((GenerateTerraformPlanAssessmentReportRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(terraformPlan, actualRequest.getTerraformPlan()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void generateTerraformPlanAssessmentReportExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + SpaceName name = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]"); + ByteString terraformPlan = ByteString.EMPTY; + client.generateTerraformPlanAssessmentReportAsync(name, terraformPlan).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 generateTerraformPlanAssessmentReportTest2() throws Exception { + GenerateTerraformPlanAssessmentReportResponse expectedResponse = + GenerateTerraformPlanAssessmentReportResponse.newBuilder() + .setAssessmentReport(AssessmentReport.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("generateTerraformPlanAssessmentReportTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDesignCenter.addResponse(resultOperation); + + String name = "name3373707"; + ByteString terraformPlan = ByteString.EMPTY; + + GenerateTerraformPlanAssessmentReportResponse actualResponse = + client.generateTerraformPlanAssessmentReportAsync(name, terraformPlan).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GenerateTerraformPlanAssessmentReportRequest actualRequest = + ((GenerateTerraformPlanAssessmentReportRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(terraformPlan, actualRequest.getTerraformPlan()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void generateTerraformPlanAssessmentReportExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + String name = "name3373707"; + ByteString terraformPlan = ByteString.EMPTY; + client.generateTerraformPlanAssessmentReportAsync(name, terraformPlan).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 getPolicyTest() throws Exception { + com.google.cloud.designcenter.v1.Policy expectedResponse = + com.google.cloud.designcenter.v1.Policy.newBuilder() + .setName( + PolicyName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[POLICY]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllApplyConditions(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllCloudControlConfigs(new ArrayList()) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + PolicyName name = + PolicyName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[POLICY]"); + + com.google.cloud.designcenter.v1.Policy actualResponse = client.getPolicy(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetPolicyRequest actualRequest = ((GetPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + PolicyName name = + PolicyName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[POLICY]"); + client.getPolicy(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getPolicyTest2() throws Exception { + com.google.cloud.designcenter.v1.Policy expectedResponse = + com.google.cloud.designcenter.v1.Policy.newBuilder() + .setName( + PolicyName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[POLICY]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllApplyConditions(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllCloudControlConfigs(new ArrayList()) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + String name = "name3373707"; + + com.google.cloud.designcenter.v1.Policy actualResponse = client.getPolicy(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetPolicyRequest actualRequest = ((GetPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getPolicyExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + String name = "name3373707"; + client.getPolicy(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listPoliciesTest() throws Exception { + com.google.cloud.designcenter.v1.Policy responsesElement = + com.google.cloud.designcenter.v1.Policy.newBuilder().build(); + ListPoliciesResponse expectedResponse = + ListPoliciesResponse.newBuilder() + .setNextPageToken("") + .addAllPolicies(Arrays.asList(responsesElement)) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + ApplicationTemplateName parent = + ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + + ListPoliciesPagedResponse pagedListResponse = client.listPolicies(parent); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getPoliciesList().get(0), resources.get(0)); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListPoliciesRequest actualRequest = ((ListPoliciesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listPoliciesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + ApplicationTemplateName parent = + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + client.listPolicies(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listPoliciesTest2() throws Exception { + com.google.cloud.designcenter.v1.Policy responsesElement = + com.google.cloud.designcenter.v1.Policy.newBuilder().build(); + ListPoliciesResponse expectedResponse = + ListPoliciesResponse.newBuilder() + .setNextPageToken("") + .addAllPolicies(Arrays.asList(responsesElement)) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListPoliciesPagedResponse pagedListResponse = client.listPolicies(parent); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getPoliciesList().get(0), resources.get(0)); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListPoliciesRequest actualRequest = ((ListPoliciesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listPoliciesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + String parent = "parent-995424086"; + client.listPolicies(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createPolicyTest() throws Exception { + com.google.cloud.designcenter.v1.Policy expectedResponse = + com.google.cloud.designcenter.v1.Policy.newBuilder() + .setName( + PolicyName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[POLICY]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllApplyConditions(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllCloudControlConfigs(new ArrayList()) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + ApplicationTemplateName parent = + ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + com.google.cloud.designcenter.v1.Policy policy = + com.google.cloud.designcenter.v1.Policy.newBuilder().build(); + String policyId = "policyId546908653"; + + com.google.cloud.designcenter.v1.Policy actualResponse = + client.createPolicy(parent, policy, policyId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreatePolicyRequest actualRequest = ((CreatePolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(policy, actualRequest.getPolicy()); + Assert.assertEquals(policyId, actualRequest.getPolicyId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + ApplicationTemplateName parent = + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + com.google.cloud.designcenter.v1.Policy policy = + com.google.cloud.designcenter.v1.Policy.newBuilder().build(); + String policyId = "policyId546908653"; + client.createPolicy(parent, policy, policyId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createPolicyTest2() throws Exception { + com.google.cloud.designcenter.v1.Policy expectedResponse = + com.google.cloud.designcenter.v1.Policy.newBuilder() + .setName( + PolicyName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[POLICY]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllApplyConditions(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllCloudControlConfigs(new ArrayList()) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + String parent = "parent-995424086"; + com.google.cloud.designcenter.v1.Policy policy = + com.google.cloud.designcenter.v1.Policy.newBuilder().build(); + String policyId = "policyId546908653"; + + com.google.cloud.designcenter.v1.Policy actualResponse = + client.createPolicy(parent, policy, policyId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreatePolicyRequest actualRequest = ((CreatePolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(policy, actualRequest.getPolicy()); + Assert.assertEquals(policyId, actualRequest.getPolicyId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createPolicyExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + String parent = "parent-995424086"; + com.google.cloud.designcenter.v1.Policy policy = + com.google.cloud.designcenter.v1.Policy.newBuilder().build(); + String policyId = "policyId546908653"; + client.createPolicy(parent, policy, policyId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updatePolicyTest() throws Exception { + com.google.cloud.designcenter.v1.Policy expectedResponse = + com.google.cloud.designcenter.v1.Policy.newBuilder() + .setName( + PolicyName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[POLICY]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllApplyConditions(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllCloudControlConfigs(new ArrayList()) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + com.google.cloud.designcenter.v1.Policy policy = + com.google.cloud.designcenter.v1.Policy.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + com.google.cloud.designcenter.v1.Policy actualResponse = + client.updatePolicy(policy, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdatePolicyRequest actualRequest = ((UpdatePolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(policy, actualRequest.getPolicy()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updatePolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + com.google.cloud.designcenter.v1.Policy policy = + com.google.cloud.designcenter.v1.Policy.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updatePolicy(policy, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deletePolicyTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockDesignCenter.addResponse(expectedResponse); + + PolicyName name = + PolicyName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[POLICY]"); + + client.deletePolicy(name); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeletePolicyRequest actualRequest = ((DeletePolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deletePolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + PolicyName name = + PolicyName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[POLICY]"); + client.deletePolicy(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deletePolicyTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockDesignCenter.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deletePolicy(name); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeletePolicyRequest actualRequest = ((DeletePolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deletePolicyExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + String name = "name3373707"; + client.deletePolicy(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void fetchFrameworksTest() throws Exception { + Framework responsesElement = Framework.newBuilder().build(); + FetchFrameworksResponse expectedResponse = + FetchFrameworksResponse.newBuilder() + .setNextPageToken("") + .addAllFrameworks(Arrays.asList(responsesElement)) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + FetchFrameworksPagedResponse pagedListResponse = client.fetchFrameworks(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getFrameworksList().get(0), resources.get(0)); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + FetchFrameworksRequest actualRequest = ((FetchFrameworksRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void fetchFrameworksExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + String parent = "parent-995424086"; + client.fetchFrameworks(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void generateApplicationIaCTest() throws Exception { + GenerateApplicationIaCResponse expectedResponse = + GenerateApplicationIaCResponse.newBuilder() + .setGcsUri("gcsUri-1251224875") + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .setRootModulesMetadata(RootModulesMetadata.newBuilder().build()) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + ApplicationName name = + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]"); + + GenerateApplicationIaCResponse actualResponse = client.generateApplicationIaC(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GenerateApplicationIaCRequest actualRequest = + ((GenerateApplicationIaCRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void generateApplicationIaCExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + ApplicationName name = + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]"); + client.generateApplicationIaC(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void generateApplicationIaCTest2() throws Exception { + GenerateApplicationIaCResponse expectedResponse = + GenerateApplicationIaCResponse.newBuilder() + .setGcsUri("gcsUri-1251224875") + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .setRootModulesMetadata(RootModulesMetadata.newBuilder().build()) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + String name = "name3373707"; + + GenerateApplicationIaCResponse actualResponse = client.generateApplicationIaC(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GenerateApplicationIaCRequest actualRequest = + ((GenerateApplicationIaCRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void generateApplicationIaCExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + String name = "name3373707"; + client.generateApplicationIaC(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void exportApplicationIaCTest() throws Exception { + ExportApplicationIaCResponse expectedResponse = + ExportApplicationIaCResponse.newBuilder() + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .setRootModulesMetadata(RootModulesMetadata.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("exportApplicationIaCTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDesignCenter.addResponse(resultOperation); + + ApplicationName name = + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]"); + + ExportApplicationIaCResponse actualResponse = client.exportApplicationIaCAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ExportApplicationIaCRequest actualRequest = + ((ExportApplicationIaCRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void exportApplicationIaCExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + ApplicationName name = + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]"); + client.exportApplicationIaCAsync(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 exportApplicationIaCTest2() throws Exception { + ExportApplicationIaCResponse expectedResponse = + ExportApplicationIaCResponse.newBuilder() + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .setRootModulesMetadata(RootModulesMetadata.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("exportApplicationIaCTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDesignCenter.addResponse(resultOperation); + + String name = "name3373707"; + + ExportApplicationIaCResponse actualResponse = client.exportApplicationIaCAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ExportApplicationIaCRequest actualRequest = + ((ExportApplicationIaCRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void exportApplicationIaCExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + String name = "name3373707"; + client.exportApplicationIaCAsync(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 importApplicationTemplateIaCTest() throws Exception { + ImportApplicationTemplateIaCResponse expectedResponse = + ImportApplicationTemplateIaCResponse.newBuilder() + .setApplicationTemplate(ApplicationTemplate.newBuilder().build()) + .addAllErrors(new ArrayList()) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + ApplicationTemplateName name = + ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + + ImportApplicationTemplateIaCResponse actualResponse = client.importApplicationTemplateIaC(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ImportApplicationTemplateIaCRequest actualRequest = + ((ImportApplicationTemplateIaCRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void importApplicationTemplateIaCExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + ApplicationTemplateName name = + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + client.importApplicationTemplateIaC(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void importApplicationTemplateIaCTest2() throws Exception { + ImportApplicationTemplateIaCResponse expectedResponse = + ImportApplicationTemplateIaCResponse.newBuilder() + .setApplicationTemplate(ApplicationTemplate.newBuilder().build()) + .addAllErrors(new ArrayList()) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + String name = "name3373707"; + + ImportApplicationTemplateIaCResponse actualResponse = client.importApplicationTemplateIaC(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ImportApplicationTemplateIaCRequest actualRequest = + ((ImportApplicationTemplateIaCRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void importApplicationTemplateIaCExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + String name = "name3373707"; + client.importApplicationTemplateIaC(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void ingestApplicationTemplateIaCTest() throws Exception { + IngestApplicationTemplateIaCResponse expectedResponse = + IngestApplicationTemplateIaCResponse.newBuilder() + .setApplicationTemplate(ApplicationTemplate.newBuilder().build()) + .addAllErrors(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("ingestApplicationTemplateIaCTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDesignCenter.addResponse(resultOperation); + + ApplicationTemplateName name = + ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + + IngestApplicationTemplateIaCResponse actualResponse = + client.ingestApplicationTemplateIaCAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + IngestApplicationTemplateIaCRequest actualRequest = + ((IngestApplicationTemplateIaCRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void ingestApplicationTemplateIaCExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + ApplicationTemplateName name = + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + client.ingestApplicationTemplateIaCAsync(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 ingestApplicationTemplateIaCTest2() throws Exception { + IngestApplicationTemplateIaCResponse expectedResponse = + IngestApplicationTemplateIaCResponse.newBuilder() + .setApplicationTemplate(ApplicationTemplate.newBuilder().build()) + .addAllErrors(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("ingestApplicationTemplateIaCTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDesignCenter.addResponse(resultOperation); + + String name = "name3373707"; + + IngestApplicationTemplateIaCResponse actualResponse = + client.ingestApplicationTemplateIaCAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + IngestApplicationTemplateIaCRequest actualRequest = + ((IngestApplicationTemplateIaCRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void ingestApplicationTemplateIaCExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + String name = "name3373707"; + client.ingestApplicationTemplateIaCAsync(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 importApplicationIaCTest() throws Exception { + ImportApplicationIaCResponse expectedResponse = + ImportApplicationIaCResponse.newBuilder() + .setApplication(Application.newBuilder().build()) + .addAllErrors(new ArrayList()) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + ApplicationName name = + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]"); + + ImportApplicationIaCResponse actualResponse = client.importApplicationIaC(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ImportApplicationIaCRequest actualRequest = + ((ImportApplicationIaCRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void importApplicationIaCExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + ApplicationName name = + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]"); + client.importApplicationIaC(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void importApplicationIaCTest2() throws Exception { + ImportApplicationIaCResponse expectedResponse = + ImportApplicationIaCResponse.newBuilder() + .setApplication(Application.newBuilder().build()) + .addAllErrors(new ArrayList()) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + String name = "name3373707"; + + ImportApplicationIaCResponse actualResponse = client.importApplicationIaC(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ImportApplicationIaCRequest actualRequest = + ((ImportApplicationIaCRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void importApplicationIaCExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + String name = "name3373707"; + client.importApplicationIaC(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void registerAppHubApplicationResourcesTest() throws Exception { + RegisterAppHubApplicationResourcesResponse expectedResponse = + RegisterAppHubApplicationResourcesResponse.newBuilder() + .setResponse(DeployedResourceResponse.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("registerAppHubApplicationResourcesTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDesignCenter.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String apphubApplication = "apphubApplication104302972"; + String tfstateContent = "tfstateContent-1547770342"; + + RegisterAppHubApplicationResourcesResponse actualResponse = + client + .registerAppHubApplicationResourcesAsync(parent, apphubApplication, tfstateContent) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RegisterAppHubApplicationResourcesRequest actualRequest = + ((RegisterAppHubApplicationResourcesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(apphubApplication, actualRequest.getApphubApplication()); + Assert.assertEquals(tfstateContent, actualRequest.getTfstateContent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void registerAppHubApplicationResourcesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String apphubApplication = "apphubApplication104302972"; + String tfstateContent = "tfstateContent-1547770342"; + client + .registerAppHubApplicationResourcesAsync(parent, apphubApplication, tfstateContent) + .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 registerAppHubApplicationResourcesTest2() throws Exception { + RegisterAppHubApplicationResourcesResponse expectedResponse = + RegisterAppHubApplicationResourcesResponse.newBuilder() + .setResponse(DeployedResourceResponse.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("registerAppHubApplicationResourcesTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDesignCenter.addResponse(resultOperation); + + String parent = "parent-995424086"; + String apphubApplication = "apphubApplication104302972"; + String tfstateContent = "tfstateContent-1547770342"; + + RegisterAppHubApplicationResourcesResponse actualResponse = + client + .registerAppHubApplicationResourcesAsync(parent, apphubApplication, tfstateContent) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RegisterAppHubApplicationResourcesRequest actualRequest = + ((RegisterAppHubApplicationResourcesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(apphubApplication, actualRequest.getApphubApplication()); + Assert.assertEquals(tfstateContent, actualRequest.getTfstateContent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void registerAppHubApplicationResourcesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + String parent = "parent-995424086"; + String apphubApplication = "apphubApplication104302972"; + String tfstateContent = "tfstateContent-1547770342"; + client + .registerAppHubApplicationResourcesAsync(parent, apphubApplication, tfstateContent) + .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 listApplicationTemplateSystemRevisionsTest() throws Exception { + ApplicationTemplateSystemRevision responsesElement = + ApplicationTemplateSystemRevision.newBuilder().build(); + ListApplicationTemplateSystemRevisionsResponse expectedResponse = + ListApplicationTemplateSystemRevisionsResponse.newBuilder() + .setNextPageToken("") + .addAllApplicationTemplateSystemRevisions(Arrays.asList(responsesElement)) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + ApplicationTemplateName parent = + ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + + ListApplicationTemplateSystemRevisionsPagedResponse pagedListResponse = + client.listApplicationTemplateSystemRevisions(parent); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getApplicationTemplateSystemRevisionsList().get(0), resources.get(0)); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListApplicationTemplateSystemRevisionsRequest actualRequest = + ((ListApplicationTemplateSystemRevisionsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listApplicationTemplateSystemRevisionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + ApplicationTemplateName parent = + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + client.listApplicationTemplateSystemRevisions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listApplicationTemplateSystemRevisionsTest2() throws Exception { + ApplicationTemplateSystemRevision responsesElement = + ApplicationTemplateSystemRevision.newBuilder().build(); + ListApplicationTemplateSystemRevisionsResponse expectedResponse = + ListApplicationTemplateSystemRevisionsResponse.newBuilder() + .setNextPageToken("") + .addAllApplicationTemplateSystemRevisions(Arrays.asList(responsesElement)) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListApplicationTemplateSystemRevisionsPagedResponse pagedListResponse = + client.listApplicationTemplateSystemRevisions(parent); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getApplicationTemplateSystemRevisionsList().get(0), resources.get(0)); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListApplicationTemplateSystemRevisionsRequest actualRequest = + ((ListApplicationTemplateSystemRevisionsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listApplicationTemplateSystemRevisionsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + String parent = "parent-995424086"; + client.listApplicationTemplateSystemRevisions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getApplicationTemplateSystemRevisionTest() throws Exception { + ApplicationTemplateSystemRevision expectedResponse = + ApplicationTemplateSystemRevision.newBuilder() + .setName( + ApplicationTemplateSystemRevisionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[SYSTEM_REVISION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .putAllAnnotations(new HashMap()) + .setSnapshot(SerializedApplicationTemplate.newBuilder().build()) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + ApplicationTemplateSystemRevisionName name = + ApplicationTemplateSystemRevisionName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[SYSTEM_REVISION]"); + + ApplicationTemplateSystemRevision actualResponse = + client.getApplicationTemplateSystemRevision(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetApplicationTemplateSystemRevisionRequest actualRequest = + ((GetApplicationTemplateSystemRevisionRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getApplicationTemplateSystemRevisionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + ApplicationTemplateSystemRevisionName name = + ApplicationTemplateSystemRevisionName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[SYSTEM_REVISION]"); + client.getApplicationTemplateSystemRevision(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getApplicationTemplateSystemRevisionTest2() throws Exception { + ApplicationTemplateSystemRevision expectedResponse = + ApplicationTemplateSystemRevision.newBuilder() + .setName( + ApplicationTemplateSystemRevisionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[SYSTEM_REVISION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .putAllAnnotations(new HashMap()) + .setSnapshot(SerializedApplicationTemplate.newBuilder().build()) + .build(); + mockDesignCenter.addResponse(expectedResponse); + + String name = "name3373707"; + + ApplicationTemplateSystemRevision actualResponse = + client.getApplicationTemplateSystemRevision(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetApplicationTemplateSystemRevisionRequest actualRequest = + ((GetApplicationTemplateSystemRevisionRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getApplicationTemplateSystemRevisionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + String name = "name3373707"; + client.getApplicationTemplateSystemRevision(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void recommendIAMRolesTest() throws Exception { + RecommendIAMRolesResponse expectedResponse = + RecommendIAMRolesResponse.newBuilder() + .addAllProjectConfigurations(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("recommendIAMRolesTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDesignCenter.addResponse(resultOperation); + + ApplicationName name = + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]"); + + RecommendIAMRolesResponse actualResponse = client.recommendIAMRolesAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RecommendIAMRolesRequest actualRequest = ((RecommendIAMRolesRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void recommendIAMRolesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + ApplicationName name = + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]"); + client.recommendIAMRolesAsync(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 recommendIAMRolesTest2() throws Exception { + RecommendIAMRolesResponse expectedResponse = + RecommendIAMRolesResponse.newBuilder() + .addAllProjectConfigurations(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("recommendIAMRolesTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDesignCenter.addResponse(resultOperation); + + String name = "name3373707"; + + RecommendIAMRolesResponse actualResponse = client.recommendIAMRolesAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDesignCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RecommendIAMRolesRequest actualRequest = ((RecommendIAMRolesRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void recommendIAMRolesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDesignCenter.addException(exception); + + try { + String name = "name3373707"; + client.recommendIAMRolesAsync(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 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. + } + } + + @Test + public void setIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockIAMPolicy.addResponse(expectedResponse); + + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + + Policy actualResponse = client.setIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getPolicy(), actualRequest.getPolicy()); + Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void setIamPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + client.setIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockIAMPolicy.addResponse(expectedResponse); + + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + + Policy actualResponse = client.getIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getOptions(), actualRequest.getOptions()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getIamPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + client.getIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + mockIAMPolicy.addResponse(expectedResponse); + + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getPermissionsList(), actualRequest.getPermissionsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void testIamPermissionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + client.testIamPermissions(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-designcenter/google-cloud-designcenter/src/test/java/com/google/cloud/designcenter/v1/MockDesignCenter.java b/java-designcenter/google-cloud-designcenter/src/test/java/com/google/cloud/designcenter/v1/MockDesignCenter.java new file mode 100644 index 000000000000..05d24e59a4ca --- /dev/null +++ b/java-designcenter/google-cloud-designcenter/src/test/java/com/google/cloud/designcenter/v1/MockDesignCenter.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.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 MockDesignCenter implements MockGrpcService { + private final MockDesignCenterImpl serviceImpl; + + public MockDesignCenter() { + serviceImpl = new MockDesignCenterImpl(); + } + + @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-designcenter/google-cloud-designcenter/src/test/java/com/google/cloud/designcenter/v1/MockDesignCenterImpl.java b/java-designcenter/google-cloud-designcenter/src/test/java/com/google/cloud/designcenter/v1/MockDesignCenterImpl.java new file mode 100644 index 000000000000..f18c466b9fbd --- /dev/null +++ b/java-designcenter/google-cloud-designcenter/src/test/java/com/google/cloud/designcenter/v1/MockDesignCenterImpl.java @@ -0,0 +1,1793 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1; + +import com.google.api.core.BetaApi; +import com.google.cloud.designcenter.v1.DesignCenterGrpc.DesignCenterImplBase; +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 MockDesignCenterImpl extends DesignCenterImplBase { + private List requests; + private Queue responses; + + public MockDesignCenterImpl() { + 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 getSpace(GetSpaceRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Space) { + requests.add(request); + responseObserver.onNext(((Space) 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 GetSpace, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Space.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listSpaces( + ListSpacesRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListSpacesResponse) { + requests.add(request); + responseObserver.onNext(((ListSpacesResponse) 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 ListSpaces, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListSpacesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createSpace(CreateSpaceRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Space) { + requests.add(request); + responseObserver.onNext(((Space) 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 CreateSpace, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Space.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateSpace(UpdateSpaceRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Space) { + requests.add(request); + responseObserver.onNext(((Space) 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 UpdateSpace, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Space.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteSpace(DeleteSpaceRequest 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 DeleteSpace, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getApplicationTemplate( + GetApplicationTemplateRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ApplicationTemplate) { + requests.add(request); + responseObserver.onNext(((ApplicationTemplate) 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 GetApplicationTemplate, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + ApplicationTemplate.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listApplicationTemplates( + ListApplicationTemplatesRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListApplicationTemplatesResponse) { + requests.add(request); + responseObserver.onNext(((ListApplicationTemplatesResponse) 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 ListApplicationTemplates, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + ListApplicationTemplatesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createApplicationTemplate( + CreateApplicationTemplateRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ApplicationTemplate) { + requests.add(request); + responseObserver.onNext(((ApplicationTemplate) 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 CreateApplicationTemplate, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + ApplicationTemplate.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateApplicationTemplate( + UpdateApplicationTemplateRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ApplicationTemplate) { + requests.add(request); + responseObserver.onNext(((ApplicationTemplate) 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 UpdateApplicationTemplate, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + ApplicationTemplate.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void importApplicationTemplate( + ImportApplicationTemplateRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ApplicationTemplate) { + requests.add(request); + responseObserver.onNext(((ApplicationTemplate) 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 ImportApplicationTemplate, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + ApplicationTemplate.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteApplicationTemplate( + DeleteApplicationTemplateRequest 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 DeleteApplicationTemplate, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void commitApplicationTemplate( + CommitApplicationTemplateRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ApplicationTemplateRevision) { + requests.add(request); + responseObserver.onNext(((ApplicationTemplateRevision) 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 CommitApplicationTemplate, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + ApplicationTemplateRevision.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void snapshotApplicationTemplate( + SnapshotApplicationTemplateRequest 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 SnapshotApplicationTemplate, expected" + + " %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void generateApplicationTemplateIaC( + GenerateApplicationTemplateIaCRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof GenerateApplicationTemplateIaCResponse) { + requests.add(request); + responseObserver.onNext(((GenerateApplicationTemplateIaCResponse) 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 GenerateApplicationTemplateIaC," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + GenerateApplicationTemplateIaCResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void exportApplicationTemplateIaC( + ExportApplicationTemplateIaCRequest 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 ExportApplicationTemplateIaC, expected" + + " %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void generateApplicationTemplateRevisionIaC( + GenerateApplicationTemplateRevisionIaCRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof GenerateApplicationTemplateRevisionIaCResponse) { + requests.add(request); + responseObserver.onNext(((GenerateApplicationTemplateRevisionIaCResponse) 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 GenerateApplicationTemplateRevisionIaC," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + GenerateApplicationTemplateRevisionIaCResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void exportApplicationTemplateRevisionIaC( + ExportApplicationTemplateRevisionIaCRequest 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 ExportApplicationTemplateRevisionIaC," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getComponent( + GetComponentRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Component) { + requests.add(request); + responseObserver.onNext(((Component) 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 GetComponent, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Component.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listComponents( + ListComponentsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListComponentsResponse) { + requests.add(request); + responseObserver.onNext(((ListComponentsResponse) 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 ListComponents, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListComponentsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createComponent( + CreateComponentRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Component) { + requests.add(request); + responseObserver.onNext(((Component) 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 CreateComponent, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Component.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateComponent( + UpdateComponentRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Component) { + requests.add(request); + responseObserver.onNext(((Component) 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 UpdateComponent, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Component.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteComponent( + DeleteComponentRequest 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 DeleteComponent, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getConnection( + GetConnectionRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Connection) { + requests.add(request); + responseObserver.onNext(((Connection) 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 GetConnection, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Connection.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listConnections( + ListConnectionsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListConnectionsResponse) { + requests.add(request); + responseObserver.onNext(((ListConnectionsResponse) 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 ListConnections, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListConnectionsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createConnection( + CreateConnectionRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Connection) { + requests.add(request); + responseObserver.onNext(((Connection) 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 CreateConnection, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Connection.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateConnection( + UpdateConnectionRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Connection) { + requests.add(request); + responseObserver.onNext(((Connection) 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 UpdateConnection, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Connection.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteConnection( + DeleteConnectionRequest 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 DeleteConnection, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getApplicationTemplateRevision( + GetApplicationTemplateRevisionRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ApplicationTemplateRevision) { + requests.add(request); + responseObserver.onNext(((ApplicationTemplateRevision) 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 GetApplicationTemplateRevision," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ApplicationTemplateRevision.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listApplicationTemplateRevisions( + ListApplicationTemplateRevisionsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListApplicationTemplateRevisionsResponse) { + requests.add(request); + responseObserver.onNext(((ListApplicationTemplateRevisionsResponse) 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 ListApplicationTemplateRevisions," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListApplicationTemplateRevisionsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteApplicationTemplateRevision( + DeleteApplicationTemplateRevisionRequest 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 DeleteApplicationTemplateRevision," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getCatalog(GetCatalogRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Catalog) { + requests.add(request); + responseObserver.onNext(((Catalog) 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 GetCatalog, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Catalog.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listCatalogs( + ListCatalogsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListCatalogsResponse) { + requests.add(request); + responseObserver.onNext(((ListCatalogsResponse) 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 ListCatalogs, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListCatalogsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createCatalog( + CreateCatalogRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Catalog) { + requests.add(request); + responseObserver.onNext(((Catalog) 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 CreateCatalog, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Catalog.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateCatalog( + UpdateCatalogRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Catalog) { + requests.add(request); + responseObserver.onNext(((Catalog) 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 UpdateCatalog, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Catalog.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteCatalog( + DeleteCatalogRequest 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 DeleteCatalog, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createCatalogTemplate( + CreateCatalogTemplateRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof CatalogTemplate) { + requests.add(request); + responseObserver.onNext(((CatalogTemplate) 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 CreateCatalogTemplate, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + CatalogTemplate.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getCatalogTemplate( + GetCatalogTemplateRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof CatalogTemplate) { + requests.add(request); + responseObserver.onNext(((CatalogTemplate) 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 GetCatalogTemplate, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + CatalogTemplate.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listCatalogTemplates( + ListCatalogTemplatesRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListCatalogTemplatesResponse) { + requests.add(request); + responseObserver.onNext(((ListCatalogTemplatesResponse) 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 ListCatalogTemplates, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + ListCatalogTemplatesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateCatalogTemplate( + UpdateCatalogTemplateRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof CatalogTemplate) { + requests.add(request); + responseObserver.onNext(((CatalogTemplate) 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 UpdateCatalogTemplate, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + CatalogTemplate.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteCatalogTemplate( + DeleteCatalogTemplateRequest 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 DeleteCatalogTemplate, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createShare(CreateShareRequest 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 CreateShare, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listShares( + ListSharesRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListSharesResponse) { + requests.add(request); + responseObserver.onNext(((ListSharesResponse) 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 ListShares, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListSharesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getShare(GetShareRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Share) { + requests.add(request); + responseObserver.onNext(((Share) 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 GetShare, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Share.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteShare(DeleteShareRequest 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 DeleteShare, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void syncShare(SyncShareRequest 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 SyncShare, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getSharedTemplate( + GetSharedTemplateRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof SharedTemplate) { + requests.add(request); + responseObserver.onNext(((SharedTemplate) 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 GetSharedTemplate, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + SharedTemplate.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listSharedTemplates( + ListSharedTemplatesRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListSharedTemplatesResponse) { + requests.add(request); + responseObserver.onNext(((ListSharedTemplatesResponse) 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 ListSharedTemplates, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListSharedTemplatesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getSharedTemplateRevision( + GetSharedTemplateRevisionRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof SharedTemplateRevision) { + requests.add(request); + responseObserver.onNext(((SharedTemplateRevision) 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 GetSharedTemplateRevision, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + SharedTemplateRevision.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listSharedTemplateRevisions( + ListSharedTemplateRevisionsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListSharedTemplateRevisionsResponse) { + requests.add(request); + responseObserver.onNext(((ListSharedTemplateRevisionsResponse) 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 ListSharedTemplateRevisions, expected" + + " %s or %s", + response == null ? "null" : response.getClass().getName(), + ListSharedTemplateRevisionsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createCatalogTemplateRevision( + CreateCatalogTemplateRevisionRequest 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 CreateCatalogTemplateRevision, expected" + + " %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getCatalogTemplateRevision( + GetCatalogTemplateRevisionRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof CatalogTemplateRevision) { + requests.add(request); + responseObserver.onNext(((CatalogTemplateRevision) 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 GetCatalogTemplateRevision, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + CatalogTemplateRevision.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listCatalogTemplateRevisions( + ListCatalogTemplateRevisionsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListCatalogTemplateRevisionsResponse) { + requests.add(request); + responseObserver.onNext(((ListCatalogTemplateRevisionsResponse) 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 ListCatalogTemplateRevisions, expected" + + " %s or %s", + response == null ? "null" : response.getClass().getName(), + ListCatalogTemplateRevisionsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteCatalogTemplateRevision( + DeleteCatalogTemplateRevisionRequest 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 DeleteCatalogTemplateRevision, expected" + + " %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createApplication( + CreateApplicationRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Application) { + requests.add(request); + responseObserver.onNext(((Application) 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 CreateApplication, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Application.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getApplication( + GetApplicationRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Application) { + requests.add(request); + responseObserver.onNext(((Application) 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 GetApplication, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Application.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listApplications( + ListApplicationsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListApplicationsResponse) { + requests.add(request); + responseObserver.onNext(((ListApplicationsResponse) 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 ListApplications, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListApplicationsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateApplication( + UpdateApplicationRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Application) { + requests.add(request); + responseObserver.onNext(((Application) 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 UpdateApplication, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Application.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteApplication( + DeleteApplicationRequest 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 DeleteApplication, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deployApplication( + DeployApplicationRequest 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 DeployApplication, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void previewApplication( + PreviewApplicationRequest 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 PreviewApplication, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void fetchApplicationAssessmentReport( + FetchApplicationAssessmentReportRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof FetchApplicationAssessmentReportResponse) { + requests.add(request); + responseObserver.onNext(((FetchApplicationAssessmentReportResponse) 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 FetchApplicationAssessmentReport," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + FetchApplicationAssessmentReportResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void generateApplicationAssessmentReport( + GenerateApplicationAssessmentReportRequest 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 GenerateApplicationAssessmentReport," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void generateApplicationTemplateAssessmentReport( + GenerateApplicationTemplateAssessmentReportRequest 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" + + " GenerateApplicationTemplateAssessmentReport, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void generateAssessmentReport( + GenerateAssessmentReportRequest 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 GenerateAssessmentReport, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void generateTerraformPlanAssessmentReport( + GenerateTerraformPlanAssessmentReportRequest 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 GenerateTerraformPlanAssessmentReport," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getPolicy(GetPolicyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Policy) { + requests.add(request); + responseObserver.onNext(((Policy) 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 GetPolicy, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Policy.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listPolicies( + ListPoliciesRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListPoliciesResponse) { + requests.add(request); + responseObserver.onNext(((ListPoliciesResponse) 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 ListPolicies, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListPoliciesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createPolicy(CreatePolicyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Policy) { + requests.add(request); + responseObserver.onNext(((Policy) 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 CreatePolicy, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Policy.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updatePolicy(UpdatePolicyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Policy) { + requests.add(request); + responseObserver.onNext(((Policy) 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 UpdatePolicy, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Policy.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deletePolicy(DeletePolicyRequest 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 DeletePolicy, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void fetchFrameworks( + FetchFrameworksRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof FetchFrameworksResponse) { + requests.add(request); + responseObserver.onNext(((FetchFrameworksResponse) 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 FetchFrameworks, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + FetchFrameworksResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void generateApplicationIaC( + GenerateApplicationIaCRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof GenerateApplicationIaCResponse) { + requests.add(request); + responseObserver.onNext(((GenerateApplicationIaCResponse) 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 GenerateApplicationIaC, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + GenerateApplicationIaCResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void exportApplicationIaC( + ExportApplicationIaCRequest 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 ExportApplicationIaC, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void importApplicationTemplateIaC( + ImportApplicationTemplateIaCRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ImportApplicationTemplateIaCResponse) { + requests.add(request); + responseObserver.onNext(((ImportApplicationTemplateIaCResponse) 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 ImportApplicationTemplateIaC, expected" + + " %s or %s", + response == null ? "null" : response.getClass().getName(), + ImportApplicationTemplateIaCResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void ingestApplicationTemplateIaC( + IngestApplicationTemplateIaCRequest 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 IngestApplicationTemplateIaC, expected" + + " %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void importApplicationIaC( + ImportApplicationIaCRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ImportApplicationIaCResponse) { + requests.add(request); + responseObserver.onNext(((ImportApplicationIaCResponse) 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 ImportApplicationIaC, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + ImportApplicationIaCResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void registerAppHubApplicationResources( + RegisterAppHubApplicationResourcesRequest 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 RegisterAppHubApplicationResources," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listApplicationTemplateSystemRevisions( + ListApplicationTemplateSystemRevisionsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListApplicationTemplateSystemRevisionsResponse) { + requests.add(request); + responseObserver.onNext(((ListApplicationTemplateSystemRevisionsResponse) 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 ListApplicationTemplateSystemRevisions," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListApplicationTemplateSystemRevisionsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getApplicationTemplateSystemRevision( + GetApplicationTemplateSystemRevisionRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ApplicationTemplateSystemRevision) { + requests.add(request); + responseObserver.onNext(((ApplicationTemplateSystemRevision) 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 GetApplicationTemplateSystemRevision," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ApplicationTemplateSystemRevision.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void recommendIAMRoles( + RecommendIAMRolesRequest 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 RecommendIAMRoles, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-designcenter/google-cloud-designcenter/src/test/java/com/google/cloud/designcenter/v1/MockIAMPolicy.java b/java-designcenter/google-cloud-designcenter/src/test/java/com/google/cloud/designcenter/v1/MockIAMPolicy.java new file mode 100644 index 000000000000..25f900f7a470 --- /dev/null +++ b/java-designcenter/google-cloud-designcenter/src/test/java/com/google/cloud/designcenter/v1/MockIAMPolicy.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.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 MockIAMPolicy implements MockGrpcService { + private final MockIAMPolicyImpl serviceImpl; + + public MockIAMPolicy() { + serviceImpl = new MockIAMPolicyImpl(); + } + + @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-designcenter/google-cloud-designcenter/src/test/java/com/google/cloud/designcenter/v1/MockIAMPolicyImpl.java b/java-designcenter/google-cloud-designcenter/src/test/java/com/google/cloud/designcenter/v1/MockIAMPolicyImpl.java new file mode 100644 index 000000000000..593df635f81c --- /dev/null +++ b/java-designcenter/google-cloud-designcenter/src/test/java/com/google/cloud/designcenter/v1/MockIAMPolicyImpl.java @@ -0,0 +1,127 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1; + +import com.google.api.core.BetaApi; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.IAMPolicyGrpc.IAMPolicyImplBase; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.protobuf.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 MockIAMPolicyImpl extends IAMPolicyImplBase { + private List requests; + private Queue responses; + + public MockIAMPolicyImpl() { + 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 testIamPermissions( + TestIamPermissionsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof TestIamPermissionsResponse) { + requests.add(request); + responseObserver.onNext(((TestIamPermissionsResponse) 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 TestIamPermissions, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + TestIamPermissionsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void setIamPolicy(SetIamPolicyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Policy) { + requests.add(request); + responseObserver.onNext(((Policy) 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 SetIamPolicy, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Policy.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getIamPolicy(GetIamPolicyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Policy) { + requests.add(request); + responseObserver.onNext(((Policy) 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 GetIamPolicy, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Policy.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-designcenter/google-cloud-designcenter/src/test/java/com/google/cloud/designcenter/v1/MockLocations.java b/java-designcenter/google-cloud-designcenter/src/test/java/com/google/cloud/designcenter/v1/MockLocations.java new file mode 100644 index 000000000000..f374192457c4 --- /dev/null +++ b/java-designcenter/google-cloud-designcenter/src/test/java/com/google/cloud/designcenter/v1/MockLocations.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.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-designcenter/google-cloud-designcenter/src/test/java/com/google/cloud/designcenter/v1/MockLocationsImpl.java b/java-designcenter/google-cloud-designcenter/src/test/java/com/google/cloud/designcenter/v1/MockLocationsImpl.java new file mode 100644 index 000000000000..ba2c3b738a15 --- /dev/null +++ b/java-designcenter/google-cloud-designcenter/src/test/java/com/google/cloud/designcenter/v1/MockLocationsImpl.java @@ -0,0 +1,105 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.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-designcenter/grpc-google-cloud-designcenter-v1/pom.xml b/java-designcenter/grpc-google-cloud-designcenter-v1/pom.xml new file mode 100644 index 000000000000..5c4c4c153d2f --- /dev/null +++ b/java-designcenter/grpc-google-cloud-designcenter-v1/pom.xml @@ -0,0 +1,45 @@ + + 4.0.0 + com.google.api.grpc + grpc-google-cloud-designcenter-v1 + 0.1.0-SNAPSHOT + grpc-google-cloud-designcenter-v1 + GRPC library for google-cloud-designcenter + + com.google.cloud + google-cloud-designcenter-parent + 0.1.0-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-designcenter-v1 + + + com.google.guava + guava + + + diff --git a/java-designcenter/grpc-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DesignCenterGrpc.java b/java-designcenter/grpc-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DesignCenterGrpc.java new file mode 100644 index 000000000000..51b23378258c --- /dev/null +++ b/java-designcenter/grpc-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DesignCenterGrpc.java @@ -0,0 +1,11285 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.designcenter.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Service describing handlers for resources
+ * 
+ */ +@io.grpc.stub.annotations.GrpcGenerated +public final class DesignCenterGrpc { + + private DesignCenterGrpc() {} + + public static final java.lang.String SERVICE_NAME = "google.cloud.designcenter.v1.DesignCenter"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.GetSpaceRequest, com.google.cloud.designcenter.v1.Space> + getGetSpaceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSpace", + requestType = com.google.cloud.designcenter.v1.GetSpaceRequest.class, + responseType = com.google.cloud.designcenter.v1.Space.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.GetSpaceRequest, com.google.cloud.designcenter.v1.Space> + getGetSpaceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.GetSpaceRequest, + com.google.cloud.designcenter.v1.Space> + getGetSpaceMethod; + if ((getGetSpaceMethod = DesignCenterGrpc.getGetSpaceMethod) == null) { + synchronized (DesignCenterGrpc.class) { + if ((getGetSpaceMethod = DesignCenterGrpc.getGetSpaceMethod) == null) { + DesignCenterGrpc.getGetSpaceMethod = + getGetSpaceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSpace")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.GetSpaceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.Space.getDefaultInstance())) + .setSchemaDescriptor(new DesignCenterMethodDescriptorSupplier("GetSpace")) + .build(); + } + } + } + return getGetSpaceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.ListSpacesRequest, + com.google.cloud.designcenter.v1.ListSpacesResponse> + getListSpacesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListSpaces", + requestType = com.google.cloud.designcenter.v1.ListSpacesRequest.class, + responseType = com.google.cloud.designcenter.v1.ListSpacesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.ListSpacesRequest, + com.google.cloud.designcenter.v1.ListSpacesResponse> + getListSpacesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.ListSpacesRequest, + com.google.cloud.designcenter.v1.ListSpacesResponse> + getListSpacesMethod; + if ((getListSpacesMethod = DesignCenterGrpc.getListSpacesMethod) == null) { + synchronized (DesignCenterGrpc.class) { + if ((getListSpacesMethod = DesignCenterGrpc.getListSpacesMethod) == null) { + DesignCenterGrpc.getListSpacesMethod = + getListSpacesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSpaces")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.ListSpacesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.ListSpacesResponse + .getDefaultInstance())) + .setSchemaDescriptor(new DesignCenterMethodDescriptorSupplier("ListSpaces")) + .build(); + } + } + } + return getListSpacesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.CreateSpaceRequest, + com.google.cloud.designcenter.v1.Space> + getCreateSpaceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateSpace", + requestType = com.google.cloud.designcenter.v1.CreateSpaceRequest.class, + responseType = com.google.cloud.designcenter.v1.Space.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.CreateSpaceRequest, + com.google.cloud.designcenter.v1.Space> + getCreateSpaceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.CreateSpaceRequest, + com.google.cloud.designcenter.v1.Space> + getCreateSpaceMethod; + if ((getCreateSpaceMethod = DesignCenterGrpc.getCreateSpaceMethod) == null) { + synchronized (DesignCenterGrpc.class) { + if ((getCreateSpaceMethod = DesignCenterGrpc.getCreateSpaceMethod) == null) { + DesignCenterGrpc.getCreateSpaceMethod = + getCreateSpaceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSpace")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.CreateSpaceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.Space.getDefaultInstance())) + .setSchemaDescriptor(new DesignCenterMethodDescriptorSupplier("CreateSpace")) + .build(); + } + } + } + return getCreateSpaceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.UpdateSpaceRequest, + com.google.cloud.designcenter.v1.Space> + getUpdateSpaceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateSpace", + requestType = com.google.cloud.designcenter.v1.UpdateSpaceRequest.class, + responseType = com.google.cloud.designcenter.v1.Space.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.UpdateSpaceRequest, + com.google.cloud.designcenter.v1.Space> + getUpdateSpaceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.UpdateSpaceRequest, + com.google.cloud.designcenter.v1.Space> + getUpdateSpaceMethod; + if ((getUpdateSpaceMethod = DesignCenterGrpc.getUpdateSpaceMethod) == null) { + synchronized (DesignCenterGrpc.class) { + if ((getUpdateSpaceMethod = DesignCenterGrpc.getUpdateSpaceMethod) == null) { + DesignCenterGrpc.getUpdateSpaceMethod = + getUpdateSpaceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSpace")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.UpdateSpaceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.Space.getDefaultInstance())) + .setSchemaDescriptor(new DesignCenterMethodDescriptorSupplier("UpdateSpace")) + .build(); + } + } + } + return getUpdateSpaceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.DeleteSpaceRequest, com.google.protobuf.Empty> + getDeleteSpaceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteSpace", + requestType = com.google.cloud.designcenter.v1.DeleteSpaceRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.DeleteSpaceRequest, com.google.protobuf.Empty> + getDeleteSpaceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.DeleteSpaceRequest, com.google.protobuf.Empty> + getDeleteSpaceMethod; + if ((getDeleteSpaceMethod = DesignCenterGrpc.getDeleteSpaceMethod) == null) { + synchronized (DesignCenterGrpc.class) { + if ((getDeleteSpaceMethod = DesignCenterGrpc.getDeleteSpaceMethod) == null) { + DesignCenterGrpc.getDeleteSpaceMethod = + getDeleteSpaceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSpace")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.DeleteSpaceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new DesignCenterMethodDescriptorSupplier("DeleteSpace")) + .build(); + } + } + } + return getDeleteSpaceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.GetApplicationTemplateRequest, + com.google.cloud.designcenter.v1.ApplicationTemplate> + getGetApplicationTemplateMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetApplicationTemplate", + requestType = com.google.cloud.designcenter.v1.GetApplicationTemplateRequest.class, + responseType = com.google.cloud.designcenter.v1.ApplicationTemplate.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.GetApplicationTemplateRequest, + com.google.cloud.designcenter.v1.ApplicationTemplate> + getGetApplicationTemplateMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.GetApplicationTemplateRequest, + com.google.cloud.designcenter.v1.ApplicationTemplate> + getGetApplicationTemplateMethod; + if ((getGetApplicationTemplateMethod = DesignCenterGrpc.getGetApplicationTemplateMethod) + == null) { + synchronized (DesignCenterGrpc.class) { + if ((getGetApplicationTemplateMethod = DesignCenterGrpc.getGetApplicationTemplateMethod) + == null) { + DesignCenterGrpc.getGetApplicationTemplateMethod = + getGetApplicationTemplateMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetApplicationTemplate")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.GetApplicationTemplateRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.ApplicationTemplate + .getDefaultInstance())) + .setSchemaDescriptor( + new DesignCenterMethodDescriptorSupplier("GetApplicationTemplate")) + .build(); + } + } + } + return getGetApplicationTemplateMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.ListApplicationTemplatesRequest, + com.google.cloud.designcenter.v1.ListApplicationTemplatesResponse> + getListApplicationTemplatesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListApplicationTemplates", + requestType = com.google.cloud.designcenter.v1.ListApplicationTemplatesRequest.class, + responseType = com.google.cloud.designcenter.v1.ListApplicationTemplatesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.ListApplicationTemplatesRequest, + com.google.cloud.designcenter.v1.ListApplicationTemplatesResponse> + getListApplicationTemplatesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.ListApplicationTemplatesRequest, + com.google.cloud.designcenter.v1.ListApplicationTemplatesResponse> + getListApplicationTemplatesMethod; + if ((getListApplicationTemplatesMethod = DesignCenterGrpc.getListApplicationTemplatesMethod) + == null) { + synchronized (DesignCenterGrpc.class) { + if ((getListApplicationTemplatesMethod = DesignCenterGrpc.getListApplicationTemplatesMethod) + == null) { + DesignCenterGrpc.getListApplicationTemplatesMethod = + getListApplicationTemplatesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListApplicationTemplates")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.ListApplicationTemplatesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.ListApplicationTemplatesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DesignCenterMethodDescriptorSupplier("ListApplicationTemplates")) + .build(); + } + } + } + return getListApplicationTemplatesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.CreateApplicationTemplateRequest, + com.google.cloud.designcenter.v1.ApplicationTemplate> + getCreateApplicationTemplateMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateApplicationTemplate", + requestType = com.google.cloud.designcenter.v1.CreateApplicationTemplateRequest.class, + responseType = com.google.cloud.designcenter.v1.ApplicationTemplate.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.CreateApplicationTemplateRequest, + com.google.cloud.designcenter.v1.ApplicationTemplate> + getCreateApplicationTemplateMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.CreateApplicationTemplateRequest, + com.google.cloud.designcenter.v1.ApplicationTemplate> + getCreateApplicationTemplateMethod; + if ((getCreateApplicationTemplateMethod = DesignCenterGrpc.getCreateApplicationTemplateMethod) + == null) { + synchronized (DesignCenterGrpc.class) { + if ((getCreateApplicationTemplateMethod = + DesignCenterGrpc.getCreateApplicationTemplateMethod) + == null) { + DesignCenterGrpc.getCreateApplicationTemplateMethod = + getCreateApplicationTemplateMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateApplicationTemplate")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.CreateApplicationTemplateRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.ApplicationTemplate + .getDefaultInstance())) + .setSchemaDescriptor( + new DesignCenterMethodDescriptorSupplier("CreateApplicationTemplate")) + .build(); + } + } + } + return getCreateApplicationTemplateMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.UpdateApplicationTemplateRequest, + com.google.cloud.designcenter.v1.ApplicationTemplate> + getUpdateApplicationTemplateMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateApplicationTemplate", + requestType = com.google.cloud.designcenter.v1.UpdateApplicationTemplateRequest.class, + responseType = com.google.cloud.designcenter.v1.ApplicationTemplate.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.UpdateApplicationTemplateRequest, + com.google.cloud.designcenter.v1.ApplicationTemplate> + getUpdateApplicationTemplateMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.UpdateApplicationTemplateRequest, + com.google.cloud.designcenter.v1.ApplicationTemplate> + getUpdateApplicationTemplateMethod; + if ((getUpdateApplicationTemplateMethod = DesignCenterGrpc.getUpdateApplicationTemplateMethod) + == null) { + synchronized (DesignCenterGrpc.class) { + if ((getUpdateApplicationTemplateMethod = + DesignCenterGrpc.getUpdateApplicationTemplateMethod) + == null) { + DesignCenterGrpc.getUpdateApplicationTemplateMethod = + getUpdateApplicationTemplateMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateApplicationTemplate")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.UpdateApplicationTemplateRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.ApplicationTemplate + .getDefaultInstance())) + .setSchemaDescriptor( + new DesignCenterMethodDescriptorSupplier("UpdateApplicationTemplate")) + .build(); + } + } + } + return getUpdateApplicationTemplateMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.ImportApplicationTemplateRequest, + com.google.cloud.designcenter.v1.ApplicationTemplate> + getImportApplicationTemplateMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ImportApplicationTemplate", + requestType = com.google.cloud.designcenter.v1.ImportApplicationTemplateRequest.class, + responseType = com.google.cloud.designcenter.v1.ApplicationTemplate.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.ImportApplicationTemplateRequest, + com.google.cloud.designcenter.v1.ApplicationTemplate> + getImportApplicationTemplateMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.ImportApplicationTemplateRequest, + com.google.cloud.designcenter.v1.ApplicationTemplate> + getImportApplicationTemplateMethod; + if ((getImportApplicationTemplateMethod = DesignCenterGrpc.getImportApplicationTemplateMethod) + == null) { + synchronized (DesignCenterGrpc.class) { + if ((getImportApplicationTemplateMethod = + DesignCenterGrpc.getImportApplicationTemplateMethod) + == null) { + DesignCenterGrpc.getImportApplicationTemplateMethod = + getImportApplicationTemplateMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ImportApplicationTemplate")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.ImportApplicationTemplateRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.ApplicationTemplate + .getDefaultInstance())) + .setSchemaDescriptor( + new DesignCenterMethodDescriptorSupplier("ImportApplicationTemplate")) + .build(); + } + } + } + return getImportApplicationTemplateMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.DeleteApplicationTemplateRequest, + com.google.protobuf.Empty> + getDeleteApplicationTemplateMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteApplicationTemplate", + requestType = com.google.cloud.designcenter.v1.DeleteApplicationTemplateRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.DeleteApplicationTemplateRequest, + com.google.protobuf.Empty> + getDeleteApplicationTemplateMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.DeleteApplicationTemplateRequest, + com.google.protobuf.Empty> + getDeleteApplicationTemplateMethod; + if ((getDeleteApplicationTemplateMethod = DesignCenterGrpc.getDeleteApplicationTemplateMethod) + == null) { + synchronized (DesignCenterGrpc.class) { + if ((getDeleteApplicationTemplateMethod = + DesignCenterGrpc.getDeleteApplicationTemplateMethod) + == null) { + DesignCenterGrpc.getDeleteApplicationTemplateMethod = + getDeleteApplicationTemplateMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteApplicationTemplate")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.DeleteApplicationTemplateRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new DesignCenterMethodDescriptorSupplier("DeleteApplicationTemplate")) + .build(); + } + } + } + return getDeleteApplicationTemplateMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.CommitApplicationTemplateRequest, + com.google.cloud.designcenter.v1.ApplicationTemplateRevision> + getCommitApplicationTemplateMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CommitApplicationTemplate", + requestType = com.google.cloud.designcenter.v1.CommitApplicationTemplateRequest.class, + responseType = com.google.cloud.designcenter.v1.ApplicationTemplateRevision.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.CommitApplicationTemplateRequest, + com.google.cloud.designcenter.v1.ApplicationTemplateRevision> + getCommitApplicationTemplateMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.CommitApplicationTemplateRequest, + com.google.cloud.designcenter.v1.ApplicationTemplateRevision> + getCommitApplicationTemplateMethod; + if ((getCommitApplicationTemplateMethod = DesignCenterGrpc.getCommitApplicationTemplateMethod) + == null) { + synchronized (DesignCenterGrpc.class) { + if ((getCommitApplicationTemplateMethod = + DesignCenterGrpc.getCommitApplicationTemplateMethod) + == null) { + DesignCenterGrpc.getCommitApplicationTemplateMethod = + getCommitApplicationTemplateMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CommitApplicationTemplate")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.CommitApplicationTemplateRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.ApplicationTemplateRevision + .getDefaultInstance())) + .setSchemaDescriptor( + new DesignCenterMethodDescriptorSupplier("CommitApplicationTemplate")) + .build(); + } + } + } + return getCommitApplicationTemplateMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.SnapshotApplicationTemplateRequest, + com.google.longrunning.Operation> + getSnapshotApplicationTemplateMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SnapshotApplicationTemplate", + requestType = com.google.cloud.designcenter.v1.SnapshotApplicationTemplateRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.SnapshotApplicationTemplateRequest, + com.google.longrunning.Operation> + getSnapshotApplicationTemplateMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.SnapshotApplicationTemplateRequest, + com.google.longrunning.Operation> + getSnapshotApplicationTemplateMethod; + if ((getSnapshotApplicationTemplateMethod = + DesignCenterGrpc.getSnapshotApplicationTemplateMethod) + == null) { + synchronized (DesignCenterGrpc.class) { + if ((getSnapshotApplicationTemplateMethod = + DesignCenterGrpc.getSnapshotApplicationTemplateMethod) + == null) { + DesignCenterGrpc.getSnapshotApplicationTemplateMethod = + getSnapshotApplicationTemplateMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "SnapshotApplicationTemplate")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.SnapshotApplicationTemplateRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DesignCenterMethodDescriptorSupplier("SnapshotApplicationTemplate")) + .build(); + } + } + } + return getSnapshotApplicationTemplateMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest, + com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCResponse> + getGenerateApplicationTemplateIaCMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GenerateApplicationTemplateIaC", + requestType = com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest.class, + responseType = com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest, + com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCResponse> + getGenerateApplicationTemplateIaCMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest, + com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCResponse> + getGenerateApplicationTemplateIaCMethod; + if ((getGenerateApplicationTemplateIaCMethod = + DesignCenterGrpc.getGenerateApplicationTemplateIaCMethod) + == null) { + synchronized (DesignCenterGrpc.class) { + if ((getGenerateApplicationTemplateIaCMethod = + DesignCenterGrpc.getGenerateApplicationTemplateIaCMethod) + == null) { + DesignCenterGrpc.getGenerateApplicationTemplateIaCMethod = + getGenerateApplicationTemplateIaCMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GenerateApplicationTemplateIaC")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1 + .GenerateApplicationTemplateIaCResponse.getDefaultInstance())) + .setSchemaDescriptor( + new DesignCenterMethodDescriptorSupplier( + "GenerateApplicationTemplateIaC")) + .build(); + } + } + } + return getGenerateApplicationTemplateIaCMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCRequest, + com.google.longrunning.Operation> + getExportApplicationTemplateIaCMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ExportApplicationTemplateIaC", + requestType = com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCRequest, + com.google.longrunning.Operation> + getExportApplicationTemplateIaCMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCRequest, + com.google.longrunning.Operation> + getExportApplicationTemplateIaCMethod; + if ((getExportApplicationTemplateIaCMethod = + DesignCenterGrpc.getExportApplicationTemplateIaCMethod) + == null) { + synchronized (DesignCenterGrpc.class) { + if ((getExportApplicationTemplateIaCMethod = + DesignCenterGrpc.getExportApplicationTemplateIaCMethod) + == null) { + DesignCenterGrpc.getExportApplicationTemplateIaCMethod = + getExportApplicationTemplateIaCMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ExportApplicationTemplateIaC")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DesignCenterMethodDescriptorSupplier("ExportApplicationTemplateIaC")) + .build(); + } + } + } + return getExportApplicationTemplateIaCMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest, + com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCResponse> + getGenerateApplicationTemplateRevisionIaCMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GenerateApplicationTemplateRevisionIaC", + requestType = + com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest.class, + responseType = + com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest, + com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCResponse> + getGenerateApplicationTemplateRevisionIaCMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest, + com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCResponse> + getGenerateApplicationTemplateRevisionIaCMethod; + if ((getGenerateApplicationTemplateRevisionIaCMethod = + DesignCenterGrpc.getGenerateApplicationTemplateRevisionIaCMethod) + == null) { + synchronized (DesignCenterGrpc.class) { + if ((getGenerateApplicationTemplateRevisionIaCMethod = + DesignCenterGrpc.getGenerateApplicationTemplateRevisionIaCMethod) + == null) { + DesignCenterGrpc.getGenerateApplicationTemplateRevisionIaCMethod = + getGenerateApplicationTemplateRevisionIaCMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "GenerateApplicationTemplateRevisionIaC")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1 + .GenerateApplicationTemplateRevisionIaCRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1 + .GenerateApplicationTemplateRevisionIaCResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DesignCenterMethodDescriptorSupplier( + "GenerateApplicationTemplateRevisionIaC")) + .build(); + } + } + } + return getGenerateApplicationTemplateRevisionIaCMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCRequest, + com.google.longrunning.Operation> + getExportApplicationTemplateRevisionIaCMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ExportApplicationTemplateRevisionIaC", + requestType = + com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCRequest, + com.google.longrunning.Operation> + getExportApplicationTemplateRevisionIaCMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCRequest, + com.google.longrunning.Operation> + getExportApplicationTemplateRevisionIaCMethod; + if ((getExportApplicationTemplateRevisionIaCMethod = + DesignCenterGrpc.getExportApplicationTemplateRevisionIaCMethod) + == null) { + synchronized (DesignCenterGrpc.class) { + if ((getExportApplicationTemplateRevisionIaCMethod = + DesignCenterGrpc.getExportApplicationTemplateRevisionIaCMethod) + == null) { + DesignCenterGrpc.getExportApplicationTemplateRevisionIaCMethod = + getExportApplicationTemplateRevisionIaCMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "ExportApplicationTemplateRevisionIaC")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1 + .ExportApplicationTemplateRevisionIaCRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DesignCenterMethodDescriptorSupplier( + "ExportApplicationTemplateRevisionIaC")) + .build(); + } + } + } + return getExportApplicationTemplateRevisionIaCMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.GetComponentRequest, + com.google.cloud.designcenter.v1.Component> + getGetComponentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetComponent", + requestType = com.google.cloud.designcenter.v1.GetComponentRequest.class, + responseType = com.google.cloud.designcenter.v1.Component.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.GetComponentRequest, + com.google.cloud.designcenter.v1.Component> + getGetComponentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.GetComponentRequest, + com.google.cloud.designcenter.v1.Component> + getGetComponentMethod; + if ((getGetComponentMethod = DesignCenterGrpc.getGetComponentMethod) == null) { + synchronized (DesignCenterGrpc.class) { + if ((getGetComponentMethod = DesignCenterGrpc.getGetComponentMethod) == null) { + DesignCenterGrpc.getGetComponentMethod = + getGetComponentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetComponent")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.GetComponentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.Component.getDefaultInstance())) + .setSchemaDescriptor(new DesignCenterMethodDescriptorSupplier("GetComponent")) + .build(); + } + } + } + return getGetComponentMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.ListComponentsRequest, + com.google.cloud.designcenter.v1.ListComponentsResponse> + getListComponentsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListComponents", + requestType = com.google.cloud.designcenter.v1.ListComponentsRequest.class, + responseType = com.google.cloud.designcenter.v1.ListComponentsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.ListComponentsRequest, + com.google.cloud.designcenter.v1.ListComponentsResponse> + getListComponentsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.ListComponentsRequest, + com.google.cloud.designcenter.v1.ListComponentsResponse> + getListComponentsMethod; + if ((getListComponentsMethod = DesignCenterGrpc.getListComponentsMethod) == null) { + synchronized (DesignCenterGrpc.class) { + if ((getListComponentsMethod = DesignCenterGrpc.getListComponentsMethod) == null) { + DesignCenterGrpc.getListComponentsMethod = + getListComponentsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListComponents")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.ListComponentsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.ListComponentsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DesignCenterMethodDescriptorSupplier("ListComponents")) + .build(); + } + } + } + return getListComponentsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.CreateComponentRequest, + com.google.cloud.designcenter.v1.Component> + getCreateComponentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateComponent", + requestType = com.google.cloud.designcenter.v1.CreateComponentRequest.class, + responseType = com.google.cloud.designcenter.v1.Component.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.CreateComponentRequest, + com.google.cloud.designcenter.v1.Component> + getCreateComponentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.CreateComponentRequest, + com.google.cloud.designcenter.v1.Component> + getCreateComponentMethod; + if ((getCreateComponentMethod = DesignCenterGrpc.getCreateComponentMethod) == null) { + synchronized (DesignCenterGrpc.class) { + if ((getCreateComponentMethod = DesignCenterGrpc.getCreateComponentMethod) == null) { + DesignCenterGrpc.getCreateComponentMethod = + getCreateComponentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateComponent")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.CreateComponentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.Component.getDefaultInstance())) + .setSchemaDescriptor( + new DesignCenterMethodDescriptorSupplier("CreateComponent")) + .build(); + } + } + } + return getCreateComponentMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.UpdateComponentRequest, + com.google.cloud.designcenter.v1.Component> + getUpdateComponentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateComponent", + requestType = com.google.cloud.designcenter.v1.UpdateComponentRequest.class, + responseType = com.google.cloud.designcenter.v1.Component.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.UpdateComponentRequest, + com.google.cloud.designcenter.v1.Component> + getUpdateComponentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.UpdateComponentRequest, + com.google.cloud.designcenter.v1.Component> + getUpdateComponentMethod; + if ((getUpdateComponentMethod = DesignCenterGrpc.getUpdateComponentMethod) == null) { + synchronized (DesignCenterGrpc.class) { + if ((getUpdateComponentMethod = DesignCenterGrpc.getUpdateComponentMethod) == null) { + DesignCenterGrpc.getUpdateComponentMethod = + getUpdateComponentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateComponent")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.UpdateComponentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.Component.getDefaultInstance())) + .setSchemaDescriptor( + new DesignCenterMethodDescriptorSupplier("UpdateComponent")) + .build(); + } + } + } + return getUpdateComponentMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.DeleteComponentRequest, com.google.protobuf.Empty> + getDeleteComponentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteComponent", + requestType = com.google.cloud.designcenter.v1.DeleteComponentRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.DeleteComponentRequest, com.google.protobuf.Empty> + getDeleteComponentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.DeleteComponentRequest, com.google.protobuf.Empty> + getDeleteComponentMethod; + if ((getDeleteComponentMethod = DesignCenterGrpc.getDeleteComponentMethod) == null) { + synchronized (DesignCenterGrpc.class) { + if ((getDeleteComponentMethod = DesignCenterGrpc.getDeleteComponentMethod) == null) { + DesignCenterGrpc.getDeleteComponentMethod = + getDeleteComponentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteComponent")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.DeleteComponentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new DesignCenterMethodDescriptorSupplier("DeleteComponent")) + .build(); + } + } + } + return getDeleteComponentMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.GetConnectionRequest, + com.google.cloud.designcenter.v1.Connection> + getGetConnectionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetConnection", + requestType = com.google.cloud.designcenter.v1.GetConnectionRequest.class, + responseType = com.google.cloud.designcenter.v1.Connection.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.GetConnectionRequest, + com.google.cloud.designcenter.v1.Connection> + getGetConnectionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.GetConnectionRequest, + com.google.cloud.designcenter.v1.Connection> + getGetConnectionMethod; + if ((getGetConnectionMethod = DesignCenterGrpc.getGetConnectionMethod) == null) { + synchronized (DesignCenterGrpc.class) { + if ((getGetConnectionMethod = DesignCenterGrpc.getGetConnectionMethod) == null) { + DesignCenterGrpc.getGetConnectionMethod = + getGetConnectionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetConnection")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.GetConnectionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.Connection.getDefaultInstance())) + .setSchemaDescriptor( + new DesignCenterMethodDescriptorSupplier("GetConnection")) + .build(); + } + } + } + return getGetConnectionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.ListConnectionsRequest, + com.google.cloud.designcenter.v1.ListConnectionsResponse> + getListConnectionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListConnections", + requestType = com.google.cloud.designcenter.v1.ListConnectionsRequest.class, + responseType = com.google.cloud.designcenter.v1.ListConnectionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.ListConnectionsRequest, + com.google.cloud.designcenter.v1.ListConnectionsResponse> + getListConnectionsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.ListConnectionsRequest, + com.google.cloud.designcenter.v1.ListConnectionsResponse> + getListConnectionsMethod; + if ((getListConnectionsMethod = DesignCenterGrpc.getListConnectionsMethod) == null) { + synchronized (DesignCenterGrpc.class) { + if ((getListConnectionsMethod = DesignCenterGrpc.getListConnectionsMethod) == null) { + DesignCenterGrpc.getListConnectionsMethod = + getListConnectionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListConnections")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.ListConnectionsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.ListConnectionsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DesignCenterMethodDescriptorSupplier("ListConnections")) + .build(); + } + } + } + return getListConnectionsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.CreateConnectionRequest, + com.google.cloud.designcenter.v1.Connection> + getCreateConnectionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateConnection", + requestType = com.google.cloud.designcenter.v1.CreateConnectionRequest.class, + responseType = com.google.cloud.designcenter.v1.Connection.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.CreateConnectionRequest, + com.google.cloud.designcenter.v1.Connection> + getCreateConnectionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.CreateConnectionRequest, + com.google.cloud.designcenter.v1.Connection> + getCreateConnectionMethod; + if ((getCreateConnectionMethod = DesignCenterGrpc.getCreateConnectionMethod) == null) { + synchronized (DesignCenterGrpc.class) { + if ((getCreateConnectionMethod = DesignCenterGrpc.getCreateConnectionMethod) == null) { + DesignCenterGrpc.getCreateConnectionMethod = + getCreateConnectionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateConnection")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.CreateConnectionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.Connection.getDefaultInstance())) + .setSchemaDescriptor( + new DesignCenterMethodDescriptorSupplier("CreateConnection")) + .build(); + } + } + } + return getCreateConnectionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.UpdateConnectionRequest, + com.google.cloud.designcenter.v1.Connection> + getUpdateConnectionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateConnection", + requestType = com.google.cloud.designcenter.v1.UpdateConnectionRequest.class, + responseType = com.google.cloud.designcenter.v1.Connection.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.UpdateConnectionRequest, + com.google.cloud.designcenter.v1.Connection> + getUpdateConnectionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.UpdateConnectionRequest, + com.google.cloud.designcenter.v1.Connection> + getUpdateConnectionMethod; + if ((getUpdateConnectionMethod = DesignCenterGrpc.getUpdateConnectionMethod) == null) { + synchronized (DesignCenterGrpc.class) { + if ((getUpdateConnectionMethod = DesignCenterGrpc.getUpdateConnectionMethod) == null) { + DesignCenterGrpc.getUpdateConnectionMethod = + getUpdateConnectionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateConnection")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.UpdateConnectionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.Connection.getDefaultInstance())) + .setSchemaDescriptor( + new DesignCenterMethodDescriptorSupplier("UpdateConnection")) + .build(); + } + } + } + return getUpdateConnectionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.DeleteConnectionRequest, com.google.protobuf.Empty> + getDeleteConnectionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteConnection", + requestType = com.google.cloud.designcenter.v1.DeleteConnectionRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.DeleteConnectionRequest, com.google.protobuf.Empty> + getDeleteConnectionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.DeleteConnectionRequest, com.google.protobuf.Empty> + getDeleteConnectionMethod; + if ((getDeleteConnectionMethod = DesignCenterGrpc.getDeleteConnectionMethod) == null) { + synchronized (DesignCenterGrpc.class) { + if ((getDeleteConnectionMethod = DesignCenterGrpc.getDeleteConnectionMethod) == null) { + DesignCenterGrpc.getDeleteConnectionMethod = + getDeleteConnectionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteConnection")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.DeleteConnectionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new DesignCenterMethodDescriptorSupplier("DeleteConnection")) + .build(); + } + } + } + return getDeleteConnectionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.GetApplicationTemplateRevisionRequest, + com.google.cloud.designcenter.v1.ApplicationTemplateRevision> + getGetApplicationTemplateRevisionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetApplicationTemplateRevision", + requestType = com.google.cloud.designcenter.v1.GetApplicationTemplateRevisionRequest.class, + responseType = com.google.cloud.designcenter.v1.ApplicationTemplateRevision.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.GetApplicationTemplateRevisionRequest, + com.google.cloud.designcenter.v1.ApplicationTemplateRevision> + getGetApplicationTemplateRevisionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.GetApplicationTemplateRevisionRequest, + com.google.cloud.designcenter.v1.ApplicationTemplateRevision> + getGetApplicationTemplateRevisionMethod; + if ((getGetApplicationTemplateRevisionMethod = + DesignCenterGrpc.getGetApplicationTemplateRevisionMethod) + == null) { + synchronized (DesignCenterGrpc.class) { + if ((getGetApplicationTemplateRevisionMethod = + DesignCenterGrpc.getGetApplicationTemplateRevisionMethod) + == null) { + DesignCenterGrpc.getGetApplicationTemplateRevisionMethod = + getGetApplicationTemplateRevisionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetApplicationTemplateRevision")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.GetApplicationTemplateRevisionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.ApplicationTemplateRevision + .getDefaultInstance())) + .setSchemaDescriptor( + new DesignCenterMethodDescriptorSupplier( + "GetApplicationTemplateRevision")) + .build(); + } + } + } + return getGetApplicationTemplateRevisionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsRequest, + com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsResponse> + getListApplicationTemplateRevisionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListApplicationTemplateRevisions", + requestType = com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsRequest.class, + responseType = + com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsRequest, + com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsResponse> + getListApplicationTemplateRevisionsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsRequest, + com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsResponse> + getListApplicationTemplateRevisionsMethod; + if ((getListApplicationTemplateRevisionsMethod = + DesignCenterGrpc.getListApplicationTemplateRevisionsMethod) + == null) { + synchronized (DesignCenterGrpc.class) { + if ((getListApplicationTemplateRevisionsMethod = + DesignCenterGrpc.getListApplicationTemplateRevisionsMethod) + == null) { + DesignCenterGrpc.getListApplicationTemplateRevisionsMethod = + getListApplicationTemplateRevisionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListApplicationTemplateRevisions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1 + .ListApplicationTemplateRevisionsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1 + .ListApplicationTemplateRevisionsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new DesignCenterMethodDescriptorSupplier( + "ListApplicationTemplateRevisions")) + .build(); + } + } + } + return getListApplicationTemplateRevisionsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.DeleteApplicationTemplateRevisionRequest, + com.google.protobuf.Empty> + getDeleteApplicationTemplateRevisionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteApplicationTemplateRevision", + requestType = com.google.cloud.designcenter.v1.DeleteApplicationTemplateRevisionRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.DeleteApplicationTemplateRevisionRequest, + com.google.protobuf.Empty> + getDeleteApplicationTemplateRevisionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.DeleteApplicationTemplateRevisionRequest, + com.google.protobuf.Empty> + getDeleteApplicationTemplateRevisionMethod; + if ((getDeleteApplicationTemplateRevisionMethod = + DesignCenterGrpc.getDeleteApplicationTemplateRevisionMethod) + == null) { + synchronized (DesignCenterGrpc.class) { + if ((getDeleteApplicationTemplateRevisionMethod = + DesignCenterGrpc.getDeleteApplicationTemplateRevisionMethod) + == null) { + DesignCenterGrpc.getDeleteApplicationTemplateRevisionMethod = + getDeleteApplicationTemplateRevisionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteApplicationTemplateRevision")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1 + .DeleteApplicationTemplateRevisionRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new DesignCenterMethodDescriptorSupplier( + "DeleteApplicationTemplateRevision")) + .build(); + } + } + } + return getDeleteApplicationTemplateRevisionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.GetCatalogRequest, + com.google.cloud.designcenter.v1.Catalog> + getGetCatalogMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetCatalog", + requestType = com.google.cloud.designcenter.v1.GetCatalogRequest.class, + responseType = com.google.cloud.designcenter.v1.Catalog.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.GetCatalogRequest, + com.google.cloud.designcenter.v1.Catalog> + getGetCatalogMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.GetCatalogRequest, + com.google.cloud.designcenter.v1.Catalog> + getGetCatalogMethod; + if ((getGetCatalogMethod = DesignCenterGrpc.getGetCatalogMethod) == null) { + synchronized (DesignCenterGrpc.class) { + if ((getGetCatalogMethod = DesignCenterGrpc.getGetCatalogMethod) == null) { + DesignCenterGrpc.getGetCatalogMethod = + getGetCatalogMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCatalog")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.GetCatalogRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.Catalog.getDefaultInstance())) + .setSchemaDescriptor(new DesignCenterMethodDescriptorSupplier("GetCatalog")) + .build(); + } + } + } + return getGetCatalogMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.ListCatalogsRequest, + com.google.cloud.designcenter.v1.ListCatalogsResponse> + getListCatalogsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListCatalogs", + requestType = com.google.cloud.designcenter.v1.ListCatalogsRequest.class, + responseType = com.google.cloud.designcenter.v1.ListCatalogsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.ListCatalogsRequest, + com.google.cloud.designcenter.v1.ListCatalogsResponse> + getListCatalogsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.ListCatalogsRequest, + com.google.cloud.designcenter.v1.ListCatalogsResponse> + getListCatalogsMethod; + if ((getListCatalogsMethod = DesignCenterGrpc.getListCatalogsMethod) == null) { + synchronized (DesignCenterGrpc.class) { + if ((getListCatalogsMethod = DesignCenterGrpc.getListCatalogsMethod) == null) { + DesignCenterGrpc.getListCatalogsMethod = + getListCatalogsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCatalogs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.ListCatalogsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.ListCatalogsResponse + .getDefaultInstance())) + .setSchemaDescriptor(new DesignCenterMethodDescriptorSupplier("ListCatalogs")) + .build(); + } + } + } + return getListCatalogsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.CreateCatalogRequest, + com.google.cloud.designcenter.v1.Catalog> + getCreateCatalogMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateCatalog", + requestType = com.google.cloud.designcenter.v1.CreateCatalogRequest.class, + responseType = com.google.cloud.designcenter.v1.Catalog.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.CreateCatalogRequest, + com.google.cloud.designcenter.v1.Catalog> + getCreateCatalogMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.CreateCatalogRequest, + com.google.cloud.designcenter.v1.Catalog> + getCreateCatalogMethod; + if ((getCreateCatalogMethod = DesignCenterGrpc.getCreateCatalogMethod) == null) { + synchronized (DesignCenterGrpc.class) { + if ((getCreateCatalogMethod = DesignCenterGrpc.getCreateCatalogMethod) == null) { + DesignCenterGrpc.getCreateCatalogMethod = + getCreateCatalogMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateCatalog")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.CreateCatalogRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.Catalog.getDefaultInstance())) + .setSchemaDescriptor( + new DesignCenterMethodDescriptorSupplier("CreateCatalog")) + .build(); + } + } + } + return getCreateCatalogMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.UpdateCatalogRequest, + com.google.cloud.designcenter.v1.Catalog> + getUpdateCatalogMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateCatalog", + requestType = com.google.cloud.designcenter.v1.UpdateCatalogRequest.class, + responseType = com.google.cloud.designcenter.v1.Catalog.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.UpdateCatalogRequest, + com.google.cloud.designcenter.v1.Catalog> + getUpdateCatalogMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.UpdateCatalogRequest, + com.google.cloud.designcenter.v1.Catalog> + getUpdateCatalogMethod; + if ((getUpdateCatalogMethod = DesignCenterGrpc.getUpdateCatalogMethod) == null) { + synchronized (DesignCenterGrpc.class) { + if ((getUpdateCatalogMethod = DesignCenterGrpc.getUpdateCatalogMethod) == null) { + DesignCenterGrpc.getUpdateCatalogMethod = + getUpdateCatalogMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCatalog")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.UpdateCatalogRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.Catalog.getDefaultInstance())) + .setSchemaDescriptor( + new DesignCenterMethodDescriptorSupplier("UpdateCatalog")) + .build(); + } + } + } + return getUpdateCatalogMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.DeleteCatalogRequest, com.google.longrunning.Operation> + getDeleteCatalogMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteCatalog", + requestType = com.google.cloud.designcenter.v1.DeleteCatalogRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.DeleteCatalogRequest, com.google.longrunning.Operation> + getDeleteCatalogMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.DeleteCatalogRequest, com.google.longrunning.Operation> + getDeleteCatalogMethod; + if ((getDeleteCatalogMethod = DesignCenterGrpc.getDeleteCatalogMethod) == null) { + synchronized (DesignCenterGrpc.class) { + if ((getDeleteCatalogMethod = DesignCenterGrpc.getDeleteCatalogMethod) == null) { + DesignCenterGrpc.getDeleteCatalogMethod = + getDeleteCatalogMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteCatalog")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.DeleteCatalogRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DesignCenterMethodDescriptorSupplier("DeleteCatalog")) + .build(); + } + } + } + return getDeleteCatalogMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.CreateCatalogTemplateRequest, + com.google.cloud.designcenter.v1.CatalogTemplate> + getCreateCatalogTemplateMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateCatalogTemplate", + requestType = com.google.cloud.designcenter.v1.CreateCatalogTemplateRequest.class, + responseType = com.google.cloud.designcenter.v1.CatalogTemplate.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.CreateCatalogTemplateRequest, + com.google.cloud.designcenter.v1.CatalogTemplate> + getCreateCatalogTemplateMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.CreateCatalogTemplateRequest, + com.google.cloud.designcenter.v1.CatalogTemplate> + getCreateCatalogTemplateMethod; + if ((getCreateCatalogTemplateMethod = DesignCenterGrpc.getCreateCatalogTemplateMethod) + == null) { + synchronized (DesignCenterGrpc.class) { + if ((getCreateCatalogTemplateMethod = DesignCenterGrpc.getCreateCatalogTemplateMethod) + == null) { + DesignCenterGrpc.getCreateCatalogTemplateMethod = + getCreateCatalogTemplateMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateCatalogTemplate")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.CreateCatalogTemplateRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.CatalogTemplate + .getDefaultInstance())) + .setSchemaDescriptor( + new DesignCenterMethodDescriptorSupplier("CreateCatalogTemplate")) + .build(); + } + } + } + return getCreateCatalogTemplateMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.GetCatalogTemplateRequest, + com.google.cloud.designcenter.v1.CatalogTemplate> + getGetCatalogTemplateMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetCatalogTemplate", + requestType = com.google.cloud.designcenter.v1.GetCatalogTemplateRequest.class, + responseType = com.google.cloud.designcenter.v1.CatalogTemplate.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.GetCatalogTemplateRequest, + com.google.cloud.designcenter.v1.CatalogTemplate> + getGetCatalogTemplateMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.GetCatalogTemplateRequest, + com.google.cloud.designcenter.v1.CatalogTemplate> + getGetCatalogTemplateMethod; + if ((getGetCatalogTemplateMethod = DesignCenterGrpc.getGetCatalogTemplateMethod) == null) { + synchronized (DesignCenterGrpc.class) { + if ((getGetCatalogTemplateMethod = DesignCenterGrpc.getGetCatalogTemplateMethod) == null) { + DesignCenterGrpc.getGetCatalogTemplateMethod = + getGetCatalogTemplateMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCatalogTemplate")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.GetCatalogTemplateRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.CatalogTemplate + .getDefaultInstance())) + .setSchemaDescriptor( + new DesignCenterMethodDescriptorSupplier("GetCatalogTemplate")) + .build(); + } + } + } + return getGetCatalogTemplateMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.ListCatalogTemplatesRequest, + com.google.cloud.designcenter.v1.ListCatalogTemplatesResponse> + getListCatalogTemplatesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListCatalogTemplates", + requestType = com.google.cloud.designcenter.v1.ListCatalogTemplatesRequest.class, + responseType = com.google.cloud.designcenter.v1.ListCatalogTemplatesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.ListCatalogTemplatesRequest, + com.google.cloud.designcenter.v1.ListCatalogTemplatesResponse> + getListCatalogTemplatesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.ListCatalogTemplatesRequest, + com.google.cloud.designcenter.v1.ListCatalogTemplatesResponse> + getListCatalogTemplatesMethod; + if ((getListCatalogTemplatesMethod = DesignCenterGrpc.getListCatalogTemplatesMethod) == null) { + synchronized (DesignCenterGrpc.class) { + if ((getListCatalogTemplatesMethod = DesignCenterGrpc.getListCatalogTemplatesMethod) + == null) { + DesignCenterGrpc.getListCatalogTemplatesMethod = + getListCatalogTemplatesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListCatalogTemplates")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.ListCatalogTemplatesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.ListCatalogTemplatesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DesignCenterMethodDescriptorSupplier("ListCatalogTemplates")) + .build(); + } + } + } + return getListCatalogTemplatesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.UpdateCatalogTemplateRequest, + com.google.cloud.designcenter.v1.CatalogTemplate> + getUpdateCatalogTemplateMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateCatalogTemplate", + requestType = com.google.cloud.designcenter.v1.UpdateCatalogTemplateRequest.class, + responseType = com.google.cloud.designcenter.v1.CatalogTemplate.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.UpdateCatalogTemplateRequest, + com.google.cloud.designcenter.v1.CatalogTemplate> + getUpdateCatalogTemplateMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.UpdateCatalogTemplateRequest, + com.google.cloud.designcenter.v1.CatalogTemplate> + getUpdateCatalogTemplateMethod; + if ((getUpdateCatalogTemplateMethod = DesignCenterGrpc.getUpdateCatalogTemplateMethod) + == null) { + synchronized (DesignCenterGrpc.class) { + if ((getUpdateCatalogTemplateMethod = DesignCenterGrpc.getUpdateCatalogTemplateMethod) + == null) { + DesignCenterGrpc.getUpdateCatalogTemplateMethod = + getUpdateCatalogTemplateMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateCatalogTemplate")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.UpdateCatalogTemplateRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.CatalogTemplate + .getDefaultInstance())) + .setSchemaDescriptor( + new DesignCenterMethodDescriptorSupplier("UpdateCatalogTemplate")) + .build(); + } + } + } + return getUpdateCatalogTemplateMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.DeleteCatalogTemplateRequest, + com.google.longrunning.Operation> + getDeleteCatalogTemplateMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteCatalogTemplate", + requestType = com.google.cloud.designcenter.v1.DeleteCatalogTemplateRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.DeleteCatalogTemplateRequest, + com.google.longrunning.Operation> + getDeleteCatalogTemplateMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.DeleteCatalogTemplateRequest, + com.google.longrunning.Operation> + getDeleteCatalogTemplateMethod; + if ((getDeleteCatalogTemplateMethod = DesignCenterGrpc.getDeleteCatalogTemplateMethod) + == null) { + synchronized (DesignCenterGrpc.class) { + if ((getDeleteCatalogTemplateMethod = DesignCenterGrpc.getDeleteCatalogTemplateMethod) + == null) { + DesignCenterGrpc.getDeleteCatalogTemplateMethod = + getDeleteCatalogTemplateMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteCatalogTemplate")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.DeleteCatalogTemplateRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DesignCenterMethodDescriptorSupplier("DeleteCatalogTemplate")) + .build(); + } + } + } + return getDeleteCatalogTemplateMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.CreateShareRequest, com.google.longrunning.Operation> + getCreateShareMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateShare", + requestType = com.google.cloud.designcenter.v1.CreateShareRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.CreateShareRequest, com.google.longrunning.Operation> + getCreateShareMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.CreateShareRequest, com.google.longrunning.Operation> + getCreateShareMethod; + if ((getCreateShareMethod = DesignCenterGrpc.getCreateShareMethod) == null) { + synchronized (DesignCenterGrpc.class) { + if ((getCreateShareMethod = DesignCenterGrpc.getCreateShareMethod) == null) { + DesignCenterGrpc.getCreateShareMethod = + getCreateShareMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateShare")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.CreateShareRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DesignCenterMethodDescriptorSupplier("CreateShare")) + .build(); + } + } + } + return getCreateShareMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.ListSharesRequest, + com.google.cloud.designcenter.v1.ListSharesResponse> + getListSharesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListShares", + requestType = com.google.cloud.designcenter.v1.ListSharesRequest.class, + responseType = com.google.cloud.designcenter.v1.ListSharesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.ListSharesRequest, + com.google.cloud.designcenter.v1.ListSharesResponse> + getListSharesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.ListSharesRequest, + com.google.cloud.designcenter.v1.ListSharesResponse> + getListSharesMethod; + if ((getListSharesMethod = DesignCenterGrpc.getListSharesMethod) == null) { + synchronized (DesignCenterGrpc.class) { + if ((getListSharesMethod = DesignCenterGrpc.getListSharesMethod) == null) { + DesignCenterGrpc.getListSharesMethod = + getListSharesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListShares")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.ListSharesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.ListSharesResponse + .getDefaultInstance())) + .setSchemaDescriptor(new DesignCenterMethodDescriptorSupplier("ListShares")) + .build(); + } + } + } + return getListSharesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.GetShareRequest, com.google.cloud.designcenter.v1.Share> + getGetShareMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetShare", + requestType = com.google.cloud.designcenter.v1.GetShareRequest.class, + responseType = com.google.cloud.designcenter.v1.Share.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.GetShareRequest, com.google.cloud.designcenter.v1.Share> + getGetShareMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.GetShareRequest, + com.google.cloud.designcenter.v1.Share> + getGetShareMethod; + if ((getGetShareMethod = DesignCenterGrpc.getGetShareMethod) == null) { + synchronized (DesignCenterGrpc.class) { + if ((getGetShareMethod = DesignCenterGrpc.getGetShareMethod) == null) { + DesignCenterGrpc.getGetShareMethod = + getGetShareMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetShare")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.GetShareRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.Share.getDefaultInstance())) + .setSchemaDescriptor(new DesignCenterMethodDescriptorSupplier("GetShare")) + .build(); + } + } + } + return getGetShareMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.DeleteShareRequest, com.google.longrunning.Operation> + getDeleteShareMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteShare", + requestType = com.google.cloud.designcenter.v1.DeleteShareRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.DeleteShareRequest, com.google.longrunning.Operation> + getDeleteShareMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.DeleteShareRequest, com.google.longrunning.Operation> + getDeleteShareMethod; + if ((getDeleteShareMethod = DesignCenterGrpc.getDeleteShareMethod) == null) { + synchronized (DesignCenterGrpc.class) { + if ((getDeleteShareMethod = DesignCenterGrpc.getDeleteShareMethod) == null) { + DesignCenterGrpc.getDeleteShareMethod = + getDeleteShareMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteShare")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.DeleteShareRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DesignCenterMethodDescriptorSupplier("DeleteShare")) + .build(); + } + } + } + return getDeleteShareMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.SyncShareRequest, com.google.longrunning.Operation> + getSyncShareMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SyncShare", + requestType = com.google.cloud.designcenter.v1.SyncShareRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.SyncShareRequest, com.google.longrunning.Operation> + getSyncShareMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.SyncShareRequest, com.google.longrunning.Operation> + getSyncShareMethod; + if ((getSyncShareMethod = DesignCenterGrpc.getSyncShareMethod) == null) { + synchronized (DesignCenterGrpc.class) { + if ((getSyncShareMethod = DesignCenterGrpc.getSyncShareMethod) == null) { + DesignCenterGrpc.getSyncShareMethod = + getSyncShareMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SyncShare")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.SyncShareRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DesignCenterMethodDescriptorSupplier("SyncShare")) + .build(); + } + } + } + return getSyncShareMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.GetSharedTemplateRequest, + com.google.cloud.designcenter.v1.SharedTemplate> + getGetSharedTemplateMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSharedTemplate", + requestType = com.google.cloud.designcenter.v1.GetSharedTemplateRequest.class, + responseType = com.google.cloud.designcenter.v1.SharedTemplate.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.GetSharedTemplateRequest, + com.google.cloud.designcenter.v1.SharedTemplate> + getGetSharedTemplateMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.GetSharedTemplateRequest, + com.google.cloud.designcenter.v1.SharedTemplate> + getGetSharedTemplateMethod; + if ((getGetSharedTemplateMethod = DesignCenterGrpc.getGetSharedTemplateMethod) == null) { + synchronized (DesignCenterGrpc.class) { + if ((getGetSharedTemplateMethod = DesignCenterGrpc.getGetSharedTemplateMethod) == null) { + DesignCenterGrpc.getGetSharedTemplateMethod = + getGetSharedTemplateMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSharedTemplate")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.GetSharedTemplateRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.SharedTemplate.getDefaultInstance())) + .setSchemaDescriptor( + new DesignCenterMethodDescriptorSupplier("GetSharedTemplate")) + .build(); + } + } + } + return getGetSharedTemplateMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.ListSharedTemplatesRequest, + com.google.cloud.designcenter.v1.ListSharedTemplatesResponse> + getListSharedTemplatesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListSharedTemplates", + requestType = com.google.cloud.designcenter.v1.ListSharedTemplatesRequest.class, + responseType = com.google.cloud.designcenter.v1.ListSharedTemplatesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.ListSharedTemplatesRequest, + com.google.cloud.designcenter.v1.ListSharedTemplatesResponse> + getListSharedTemplatesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.ListSharedTemplatesRequest, + com.google.cloud.designcenter.v1.ListSharedTemplatesResponse> + getListSharedTemplatesMethod; + if ((getListSharedTemplatesMethod = DesignCenterGrpc.getListSharedTemplatesMethod) == null) { + synchronized (DesignCenterGrpc.class) { + if ((getListSharedTemplatesMethod = DesignCenterGrpc.getListSharedTemplatesMethod) + == null) { + DesignCenterGrpc.getListSharedTemplatesMethod = + getListSharedTemplatesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListSharedTemplates")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.ListSharedTemplatesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.ListSharedTemplatesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DesignCenterMethodDescriptorSupplier("ListSharedTemplates")) + .build(); + } + } + } + return getListSharedTemplatesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.GetSharedTemplateRevisionRequest, + com.google.cloud.designcenter.v1.SharedTemplateRevision> + getGetSharedTemplateRevisionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSharedTemplateRevision", + requestType = com.google.cloud.designcenter.v1.GetSharedTemplateRevisionRequest.class, + responseType = com.google.cloud.designcenter.v1.SharedTemplateRevision.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.GetSharedTemplateRevisionRequest, + com.google.cloud.designcenter.v1.SharedTemplateRevision> + getGetSharedTemplateRevisionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.GetSharedTemplateRevisionRequest, + com.google.cloud.designcenter.v1.SharedTemplateRevision> + getGetSharedTemplateRevisionMethod; + if ((getGetSharedTemplateRevisionMethod = DesignCenterGrpc.getGetSharedTemplateRevisionMethod) + == null) { + synchronized (DesignCenterGrpc.class) { + if ((getGetSharedTemplateRevisionMethod = + DesignCenterGrpc.getGetSharedTemplateRevisionMethod) + == null) { + DesignCenterGrpc.getGetSharedTemplateRevisionMethod = + getGetSharedTemplateRevisionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetSharedTemplateRevision")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.GetSharedTemplateRevisionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.SharedTemplateRevision + .getDefaultInstance())) + .setSchemaDescriptor( + new DesignCenterMethodDescriptorSupplier("GetSharedTemplateRevision")) + .build(); + } + } + } + return getGetSharedTemplateRevisionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsRequest, + com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsResponse> + getListSharedTemplateRevisionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListSharedTemplateRevisions", + requestType = com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsRequest.class, + responseType = com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsRequest, + com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsResponse> + getListSharedTemplateRevisionsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsRequest, + com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsResponse> + getListSharedTemplateRevisionsMethod; + if ((getListSharedTemplateRevisionsMethod = + DesignCenterGrpc.getListSharedTemplateRevisionsMethod) + == null) { + synchronized (DesignCenterGrpc.class) { + if ((getListSharedTemplateRevisionsMethod = + DesignCenterGrpc.getListSharedTemplateRevisionsMethod) + == null) { + DesignCenterGrpc.getListSharedTemplateRevisionsMethod = + getListSharedTemplateRevisionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListSharedTemplateRevisions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DesignCenterMethodDescriptorSupplier("ListSharedTemplateRevisions")) + .build(); + } + } + } + return getListSharedTemplateRevisionsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.CreateCatalogTemplateRevisionRequest, + com.google.longrunning.Operation> + getCreateCatalogTemplateRevisionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateCatalogTemplateRevision", + requestType = com.google.cloud.designcenter.v1.CreateCatalogTemplateRevisionRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.CreateCatalogTemplateRevisionRequest, + com.google.longrunning.Operation> + getCreateCatalogTemplateRevisionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.CreateCatalogTemplateRevisionRequest, + com.google.longrunning.Operation> + getCreateCatalogTemplateRevisionMethod; + if ((getCreateCatalogTemplateRevisionMethod = + DesignCenterGrpc.getCreateCatalogTemplateRevisionMethod) + == null) { + synchronized (DesignCenterGrpc.class) { + if ((getCreateCatalogTemplateRevisionMethod = + DesignCenterGrpc.getCreateCatalogTemplateRevisionMethod) + == null) { + DesignCenterGrpc.getCreateCatalogTemplateRevisionMethod = + getCreateCatalogTemplateRevisionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateCatalogTemplateRevision")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.CreateCatalogTemplateRevisionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DesignCenterMethodDescriptorSupplier("CreateCatalogTemplateRevision")) + .build(); + } + } + } + return getCreateCatalogTemplateRevisionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.GetCatalogTemplateRevisionRequest, + com.google.cloud.designcenter.v1.CatalogTemplateRevision> + getGetCatalogTemplateRevisionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetCatalogTemplateRevision", + requestType = com.google.cloud.designcenter.v1.GetCatalogTemplateRevisionRequest.class, + responseType = com.google.cloud.designcenter.v1.CatalogTemplateRevision.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.GetCatalogTemplateRevisionRequest, + com.google.cloud.designcenter.v1.CatalogTemplateRevision> + getGetCatalogTemplateRevisionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.GetCatalogTemplateRevisionRequest, + com.google.cloud.designcenter.v1.CatalogTemplateRevision> + getGetCatalogTemplateRevisionMethod; + if ((getGetCatalogTemplateRevisionMethod = DesignCenterGrpc.getGetCatalogTemplateRevisionMethod) + == null) { + synchronized (DesignCenterGrpc.class) { + if ((getGetCatalogTemplateRevisionMethod = + DesignCenterGrpc.getGetCatalogTemplateRevisionMethod) + == null) { + DesignCenterGrpc.getGetCatalogTemplateRevisionMethod = + getGetCatalogTemplateRevisionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetCatalogTemplateRevision")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.GetCatalogTemplateRevisionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.CatalogTemplateRevision + .getDefaultInstance())) + .setSchemaDescriptor( + new DesignCenterMethodDescriptorSupplier("GetCatalogTemplateRevision")) + .build(); + } + } + } + return getGetCatalogTemplateRevisionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsRequest, + com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsResponse> + getListCatalogTemplateRevisionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListCatalogTemplateRevisions", + requestType = com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsRequest.class, + responseType = com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsRequest, + com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsResponse> + getListCatalogTemplateRevisionsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsRequest, + com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsResponse> + getListCatalogTemplateRevisionsMethod; + if ((getListCatalogTemplateRevisionsMethod = + DesignCenterGrpc.getListCatalogTemplateRevisionsMethod) + == null) { + synchronized (DesignCenterGrpc.class) { + if ((getListCatalogTemplateRevisionsMethod = + DesignCenterGrpc.getListCatalogTemplateRevisionsMethod) + == null) { + DesignCenterGrpc.getListCatalogTemplateRevisionsMethod = + getListCatalogTemplateRevisionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListCatalogTemplateRevisions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DesignCenterMethodDescriptorSupplier("ListCatalogTemplateRevisions")) + .build(); + } + } + } + return getListCatalogTemplateRevisionsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.DeleteCatalogTemplateRevisionRequest, + com.google.longrunning.Operation> + getDeleteCatalogTemplateRevisionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteCatalogTemplateRevision", + requestType = com.google.cloud.designcenter.v1.DeleteCatalogTemplateRevisionRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.DeleteCatalogTemplateRevisionRequest, + com.google.longrunning.Operation> + getDeleteCatalogTemplateRevisionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.DeleteCatalogTemplateRevisionRequest, + com.google.longrunning.Operation> + getDeleteCatalogTemplateRevisionMethod; + if ((getDeleteCatalogTemplateRevisionMethod = + DesignCenterGrpc.getDeleteCatalogTemplateRevisionMethod) + == null) { + synchronized (DesignCenterGrpc.class) { + if ((getDeleteCatalogTemplateRevisionMethod = + DesignCenterGrpc.getDeleteCatalogTemplateRevisionMethod) + == null) { + DesignCenterGrpc.getDeleteCatalogTemplateRevisionMethod = + getDeleteCatalogTemplateRevisionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteCatalogTemplateRevision")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.DeleteCatalogTemplateRevisionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DesignCenterMethodDescriptorSupplier("DeleteCatalogTemplateRevision")) + .build(); + } + } + } + return getDeleteCatalogTemplateRevisionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.CreateApplicationRequest, + com.google.cloud.designcenter.v1.Application> + getCreateApplicationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateApplication", + requestType = com.google.cloud.designcenter.v1.CreateApplicationRequest.class, + responseType = com.google.cloud.designcenter.v1.Application.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.CreateApplicationRequest, + com.google.cloud.designcenter.v1.Application> + getCreateApplicationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.CreateApplicationRequest, + com.google.cloud.designcenter.v1.Application> + getCreateApplicationMethod; + if ((getCreateApplicationMethod = DesignCenterGrpc.getCreateApplicationMethod) == null) { + synchronized (DesignCenterGrpc.class) { + if ((getCreateApplicationMethod = DesignCenterGrpc.getCreateApplicationMethod) == null) { + DesignCenterGrpc.getCreateApplicationMethod = + getCreateApplicationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateApplication")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.CreateApplicationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.Application.getDefaultInstance())) + .setSchemaDescriptor( + new DesignCenterMethodDescriptorSupplier("CreateApplication")) + .build(); + } + } + } + return getCreateApplicationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.GetApplicationRequest, + com.google.cloud.designcenter.v1.Application> + getGetApplicationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetApplication", + requestType = com.google.cloud.designcenter.v1.GetApplicationRequest.class, + responseType = com.google.cloud.designcenter.v1.Application.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.GetApplicationRequest, + com.google.cloud.designcenter.v1.Application> + getGetApplicationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.GetApplicationRequest, + com.google.cloud.designcenter.v1.Application> + getGetApplicationMethod; + if ((getGetApplicationMethod = DesignCenterGrpc.getGetApplicationMethod) == null) { + synchronized (DesignCenterGrpc.class) { + if ((getGetApplicationMethod = DesignCenterGrpc.getGetApplicationMethod) == null) { + DesignCenterGrpc.getGetApplicationMethod = + getGetApplicationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetApplication")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.GetApplicationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.Application.getDefaultInstance())) + .setSchemaDescriptor( + new DesignCenterMethodDescriptorSupplier("GetApplication")) + .build(); + } + } + } + return getGetApplicationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.ListApplicationsRequest, + com.google.cloud.designcenter.v1.ListApplicationsResponse> + getListApplicationsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListApplications", + requestType = com.google.cloud.designcenter.v1.ListApplicationsRequest.class, + responseType = com.google.cloud.designcenter.v1.ListApplicationsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.ListApplicationsRequest, + com.google.cloud.designcenter.v1.ListApplicationsResponse> + getListApplicationsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.ListApplicationsRequest, + com.google.cloud.designcenter.v1.ListApplicationsResponse> + getListApplicationsMethod; + if ((getListApplicationsMethod = DesignCenterGrpc.getListApplicationsMethod) == null) { + synchronized (DesignCenterGrpc.class) { + if ((getListApplicationsMethod = DesignCenterGrpc.getListApplicationsMethod) == null) { + DesignCenterGrpc.getListApplicationsMethod = + getListApplicationsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListApplications")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.ListApplicationsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.ListApplicationsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DesignCenterMethodDescriptorSupplier("ListApplications")) + .build(); + } + } + } + return getListApplicationsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.UpdateApplicationRequest, + com.google.cloud.designcenter.v1.Application> + getUpdateApplicationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateApplication", + requestType = com.google.cloud.designcenter.v1.UpdateApplicationRequest.class, + responseType = com.google.cloud.designcenter.v1.Application.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.UpdateApplicationRequest, + com.google.cloud.designcenter.v1.Application> + getUpdateApplicationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.UpdateApplicationRequest, + com.google.cloud.designcenter.v1.Application> + getUpdateApplicationMethod; + if ((getUpdateApplicationMethod = DesignCenterGrpc.getUpdateApplicationMethod) == null) { + synchronized (DesignCenterGrpc.class) { + if ((getUpdateApplicationMethod = DesignCenterGrpc.getUpdateApplicationMethod) == null) { + DesignCenterGrpc.getUpdateApplicationMethod = + getUpdateApplicationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateApplication")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.UpdateApplicationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.Application.getDefaultInstance())) + .setSchemaDescriptor( + new DesignCenterMethodDescriptorSupplier("UpdateApplication")) + .build(); + } + } + } + return getUpdateApplicationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.DeleteApplicationRequest, + com.google.longrunning.Operation> + getDeleteApplicationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteApplication", + requestType = com.google.cloud.designcenter.v1.DeleteApplicationRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.DeleteApplicationRequest, + com.google.longrunning.Operation> + getDeleteApplicationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.DeleteApplicationRequest, + com.google.longrunning.Operation> + getDeleteApplicationMethod; + if ((getDeleteApplicationMethod = DesignCenterGrpc.getDeleteApplicationMethod) == null) { + synchronized (DesignCenterGrpc.class) { + if ((getDeleteApplicationMethod = DesignCenterGrpc.getDeleteApplicationMethod) == null) { + DesignCenterGrpc.getDeleteApplicationMethod = + getDeleteApplicationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteApplication")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.DeleteApplicationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DesignCenterMethodDescriptorSupplier("DeleteApplication")) + .build(); + } + } + } + return getDeleteApplicationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.DeployApplicationRequest, + com.google.longrunning.Operation> + getDeployApplicationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeployApplication", + requestType = com.google.cloud.designcenter.v1.DeployApplicationRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.DeployApplicationRequest, + com.google.longrunning.Operation> + getDeployApplicationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.DeployApplicationRequest, + com.google.longrunning.Operation> + getDeployApplicationMethod; + if ((getDeployApplicationMethod = DesignCenterGrpc.getDeployApplicationMethod) == null) { + synchronized (DesignCenterGrpc.class) { + if ((getDeployApplicationMethod = DesignCenterGrpc.getDeployApplicationMethod) == null) { + DesignCenterGrpc.getDeployApplicationMethod = + getDeployApplicationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeployApplication")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.DeployApplicationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DesignCenterMethodDescriptorSupplier("DeployApplication")) + .build(); + } + } + } + return getDeployApplicationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.PreviewApplicationRequest, + com.google.longrunning.Operation> + getPreviewApplicationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "PreviewApplication", + requestType = com.google.cloud.designcenter.v1.PreviewApplicationRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.PreviewApplicationRequest, + com.google.longrunning.Operation> + getPreviewApplicationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.PreviewApplicationRequest, + com.google.longrunning.Operation> + getPreviewApplicationMethod; + if ((getPreviewApplicationMethod = DesignCenterGrpc.getPreviewApplicationMethod) == null) { + synchronized (DesignCenterGrpc.class) { + if ((getPreviewApplicationMethod = DesignCenterGrpc.getPreviewApplicationMethod) == null) { + DesignCenterGrpc.getPreviewApplicationMethod = + getPreviewApplicationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PreviewApplication")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.PreviewApplicationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DesignCenterMethodDescriptorSupplier("PreviewApplication")) + .build(); + } + } + } + return getPreviewApplicationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportRequest, + com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportResponse> + getFetchApplicationAssessmentReportMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "FetchApplicationAssessmentReport", + requestType = com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportRequest.class, + responseType = + com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportRequest, + com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportResponse> + getFetchApplicationAssessmentReportMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportRequest, + com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportResponse> + getFetchApplicationAssessmentReportMethod; + if ((getFetchApplicationAssessmentReportMethod = + DesignCenterGrpc.getFetchApplicationAssessmentReportMethod) + == null) { + synchronized (DesignCenterGrpc.class) { + if ((getFetchApplicationAssessmentReportMethod = + DesignCenterGrpc.getFetchApplicationAssessmentReportMethod) + == null) { + DesignCenterGrpc.getFetchApplicationAssessmentReportMethod = + getFetchApplicationAssessmentReportMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "FetchApplicationAssessmentReport")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1 + .FetchApplicationAssessmentReportRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1 + .FetchApplicationAssessmentReportResponse.getDefaultInstance())) + .setSchemaDescriptor( + new DesignCenterMethodDescriptorSupplier( + "FetchApplicationAssessmentReport")) + .build(); + } + } + } + return getFetchApplicationAssessmentReportMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportRequest, + com.google.longrunning.Operation> + getGenerateApplicationAssessmentReportMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GenerateApplicationAssessmentReport", + requestType = + com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportRequest, + com.google.longrunning.Operation> + getGenerateApplicationAssessmentReportMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportRequest, + com.google.longrunning.Operation> + getGenerateApplicationAssessmentReportMethod; + if ((getGenerateApplicationAssessmentReportMethod = + DesignCenterGrpc.getGenerateApplicationAssessmentReportMethod) + == null) { + synchronized (DesignCenterGrpc.class) { + if ((getGenerateApplicationAssessmentReportMethod = + DesignCenterGrpc.getGenerateApplicationAssessmentReportMethod) + == null) { + DesignCenterGrpc.getGenerateApplicationAssessmentReportMethod = + getGenerateApplicationAssessmentReportMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "GenerateApplicationAssessmentReport")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1 + .GenerateApplicationAssessmentReportRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DesignCenterMethodDescriptorSupplier( + "GenerateApplicationAssessmentReport")) + .build(); + } + } + } + return getGenerateApplicationAssessmentReportMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportRequest, + com.google.longrunning.Operation> + getGenerateApplicationTemplateAssessmentReportMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GenerateApplicationTemplateAssessmentReport", + requestType = + com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportRequest, + com.google.longrunning.Operation> + getGenerateApplicationTemplateAssessmentReportMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportRequest, + com.google.longrunning.Operation> + getGenerateApplicationTemplateAssessmentReportMethod; + if ((getGenerateApplicationTemplateAssessmentReportMethod = + DesignCenterGrpc.getGenerateApplicationTemplateAssessmentReportMethod) + == null) { + synchronized (DesignCenterGrpc.class) { + if ((getGenerateApplicationTemplateAssessmentReportMethod = + DesignCenterGrpc.getGenerateApplicationTemplateAssessmentReportMethod) + == null) { + DesignCenterGrpc.getGenerateApplicationTemplateAssessmentReportMethod = + getGenerateApplicationTemplateAssessmentReportMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "GenerateApplicationTemplateAssessmentReport")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1 + .GenerateApplicationTemplateAssessmentReportRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DesignCenterMethodDescriptorSupplier( + "GenerateApplicationTemplateAssessmentReport")) + .build(); + } + } + } + return getGenerateApplicationTemplateAssessmentReportMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.GenerateAssessmentReportRequest, + com.google.longrunning.Operation> + getGenerateAssessmentReportMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GenerateAssessmentReport", + requestType = com.google.cloud.designcenter.v1.GenerateAssessmentReportRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.GenerateAssessmentReportRequest, + com.google.longrunning.Operation> + getGenerateAssessmentReportMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.GenerateAssessmentReportRequest, + com.google.longrunning.Operation> + getGenerateAssessmentReportMethod; + if ((getGenerateAssessmentReportMethod = DesignCenterGrpc.getGenerateAssessmentReportMethod) + == null) { + synchronized (DesignCenterGrpc.class) { + if ((getGenerateAssessmentReportMethod = DesignCenterGrpc.getGenerateAssessmentReportMethod) + == null) { + DesignCenterGrpc.getGenerateAssessmentReportMethod = + getGenerateAssessmentReportMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GenerateAssessmentReport")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.GenerateAssessmentReportRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DesignCenterMethodDescriptorSupplier("GenerateAssessmentReport")) + .build(); + } + } + } + return getGenerateAssessmentReportMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportRequest, + com.google.longrunning.Operation> + getGenerateTerraformPlanAssessmentReportMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GenerateTerraformPlanAssessmentReport", + requestType = + com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportRequest, + com.google.longrunning.Operation> + getGenerateTerraformPlanAssessmentReportMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportRequest, + com.google.longrunning.Operation> + getGenerateTerraformPlanAssessmentReportMethod; + if ((getGenerateTerraformPlanAssessmentReportMethod = + DesignCenterGrpc.getGenerateTerraformPlanAssessmentReportMethod) + == null) { + synchronized (DesignCenterGrpc.class) { + if ((getGenerateTerraformPlanAssessmentReportMethod = + DesignCenterGrpc.getGenerateTerraformPlanAssessmentReportMethod) + == null) { + DesignCenterGrpc.getGenerateTerraformPlanAssessmentReportMethod = + getGenerateTerraformPlanAssessmentReportMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "GenerateTerraformPlanAssessmentReport")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1 + .GenerateTerraformPlanAssessmentReportRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DesignCenterMethodDescriptorSupplier( + "GenerateTerraformPlanAssessmentReport")) + .build(); + } + } + } + return getGenerateTerraformPlanAssessmentReportMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.GetPolicyRequest, + com.google.cloud.designcenter.v1.Policy> + getGetPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetPolicy", + requestType = com.google.cloud.designcenter.v1.GetPolicyRequest.class, + responseType = com.google.cloud.designcenter.v1.Policy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.GetPolicyRequest, + com.google.cloud.designcenter.v1.Policy> + getGetPolicyMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.GetPolicyRequest, + com.google.cloud.designcenter.v1.Policy> + getGetPolicyMethod; + if ((getGetPolicyMethod = DesignCenterGrpc.getGetPolicyMethod) == null) { + synchronized (DesignCenterGrpc.class) { + if ((getGetPolicyMethod = DesignCenterGrpc.getGetPolicyMethod) == null) { + DesignCenterGrpc.getGetPolicyMethod = + getGetPolicyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.GetPolicyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.Policy.getDefaultInstance())) + .setSchemaDescriptor(new DesignCenterMethodDescriptorSupplier("GetPolicy")) + .build(); + } + } + } + return getGetPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.ListPoliciesRequest, + com.google.cloud.designcenter.v1.ListPoliciesResponse> + getListPoliciesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListPolicies", + requestType = com.google.cloud.designcenter.v1.ListPoliciesRequest.class, + responseType = com.google.cloud.designcenter.v1.ListPoliciesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.ListPoliciesRequest, + com.google.cloud.designcenter.v1.ListPoliciesResponse> + getListPoliciesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.ListPoliciesRequest, + com.google.cloud.designcenter.v1.ListPoliciesResponse> + getListPoliciesMethod; + if ((getListPoliciesMethod = DesignCenterGrpc.getListPoliciesMethod) == null) { + synchronized (DesignCenterGrpc.class) { + if ((getListPoliciesMethod = DesignCenterGrpc.getListPoliciesMethod) == null) { + DesignCenterGrpc.getListPoliciesMethod = + getListPoliciesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListPolicies")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.ListPoliciesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.ListPoliciesResponse + .getDefaultInstance())) + .setSchemaDescriptor(new DesignCenterMethodDescriptorSupplier("ListPolicies")) + .build(); + } + } + } + return getListPoliciesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.CreatePolicyRequest, + com.google.cloud.designcenter.v1.Policy> + getCreatePolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreatePolicy", + requestType = com.google.cloud.designcenter.v1.CreatePolicyRequest.class, + responseType = com.google.cloud.designcenter.v1.Policy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.CreatePolicyRequest, + com.google.cloud.designcenter.v1.Policy> + getCreatePolicyMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.CreatePolicyRequest, + com.google.cloud.designcenter.v1.Policy> + getCreatePolicyMethod; + if ((getCreatePolicyMethod = DesignCenterGrpc.getCreatePolicyMethod) == null) { + synchronized (DesignCenterGrpc.class) { + if ((getCreatePolicyMethod = DesignCenterGrpc.getCreatePolicyMethod) == null) { + DesignCenterGrpc.getCreatePolicyMethod = + getCreatePolicyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreatePolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.CreatePolicyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.Policy.getDefaultInstance())) + .setSchemaDescriptor(new DesignCenterMethodDescriptorSupplier("CreatePolicy")) + .build(); + } + } + } + return getCreatePolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.UpdatePolicyRequest, + com.google.cloud.designcenter.v1.Policy> + getUpdatePolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdatePolicy", + requestType = com.google.cloud.designcenter.v1.UpdatePolicyRequest.class, + responseType = com.google.cloud.designcenter.v1.Policy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.UpdatePolicyRequest, + com.google.cloud.designcenter.v1.Policy> + getUpdatePolicyMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.UpdatePolicyRequest, + com.google.cloud.designcenter.v1.Policy> + getUpdatePolicyMethod; + if ((getUpdatePolicyMethod = DesignCenterGrpc.getUpdatePolicyMethod) == null) { + synchronized (DesignCenterGrpc.class) { + if ((getUpdatePolicyMethod = DesignCenterGrpc.getUpdatePolicyMethod) == null) { + DesignCenterGrpc.getUpdatePolicyMethod = + getUpdatePolicyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdatePolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.UpdatePolicyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.Policy.getDefaultInstance())) + .setSchemaDescriptor(new DesignCenterMethodDescriptorSupplier("UpdatePolicy")) + .build(); + } + } + } + return getUpdatePolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.DeletePolicyRequest, com.google.protobuf.Empty> + getDeletePolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeletePolicy", + requestType = com.google.cloud.designcenter.v1.DeletePolicyRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.DeletePolicyRequest, com.google.protobuf.Empty> + getDeletePolicyMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.DeletePolicyRequest, com.google.protobuf.Empty> + getDeletePolicyMethod; + if ((getDeletePolicyMethod = DesignCenterGrpc.getDeletePolicyMethod) == null) { + synchronized (DesignCenterGrpc.class) { + if ((getDeletePolicyMethod = DesignCenterGrpc.getDeletePolicyMethod) == null) { + DesignCenterGrpc.getDeletePolicyMethod = + getDeletePolicyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeletePolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.DeletePolicyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new DesignCenterMethodDescriptorSupplier("DeletePolicy")) + .build(); + } + } + } + return getDeletePolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.FetchFrameworksRequest, + com.google.cloud.designcenter.v1.FetchFrameworksResponse> + getFetchFrameworksMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "FetchFrameworks", + requestType = com.google.cloud.designcenter.v1.FetchFrameworksRequest.class, + responseType = com.google.cloud.designcenter.v1.FetchFrameworksResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.FetchFrameworksRequest, + com.google.cloud.designcenter.v1.FetchFrameworksResponse> + getFetchFrameworksMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.FetchFrameworksRequest, + com.google.cloud.designcenter.v1.FetchFrameworksResponse> + getFetchFrameworksMethod; + if ((getFetchFrameworksMethod = DesignCenterGrpc.getFetchFrameworksMethod) == null) { + synchronized (DesignCenterGrpc.class) { + if ((getFetchFrameworksMethod = DesignCenterGrpc.getFetchFrameworksMethod) == null) { + DesignCenterGrpc.getFetchFrameworksMethod = + getFetchFrameworksMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "FetchFrameworks")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.FetchFrameworksRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.FetchFrameworksResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DesignCenterMethodDescriptorSupplier("FetchFrameworks")) + .build(); + } + } + } + return getFetchFrameworksMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.GenerateApplicationIaCRequest, + com.google.cloud.designcenter.v1.GenerateApplicationIaCResponse> + getGenerateApplicationIaCMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GenerateApplicationIaC", + requestType = com.google.cloud.designcenter.v1.GenerateApplicationIaCRequest.class, + responseType = com.google.cloud.designcenter.v1.GenerateApplicationIaCResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.GenerateApplicationIaCRequest, + com.google.cloud.designcenter.v1.GenerateApplicationIaCResponse> + getGenerateApplicationIaCMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.GenerateApplicationIaCRequest, + com.google.cloud.designcenter.v1.GenerateApplicationIaCResponse> + getGenerateApplicationIaCMethod; + if ((getGenerateApplicationIaCMethod = DesignCenterGrpc.getGenerateApplicationIaCMethod) + == null) { + synchronized (DesignCenterGrpc.class) { + if ((getGenerateApplicationIaCMethod = DesignCenterGrpc.getGenerateApplicationIaCMethod) + == null) { + DesignCenterGrpc.getGenerateApplicationIaCMethod = + getGenerateApplicationIaCMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GenerateApplicationIaC")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.GenerateApplicationIaCRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.GenerateApplicationIaCResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DesignCenterMethodDescriptorSupplier("GenerateApplicationIaC")) + .build(); + } + } + } + return getGenerateApplicationIaCMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.ExportApplicationIaCRequest, + com.google.longrunning.Operation> + getExportApplicationIaCMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ExportApplicationIaC", + requestType = com.google.cloud.designcenter.v1.ExportApplicationIaCRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.ExportApplicationIaCRequest, + com.google.longrunning.Operation> + getExportApplicationIaCMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.ExportApplicationIaCRequest, + com.google.longrunning.Operation> + getExportApplicationIaCMethod; + if ((getExportApplicationIaCMethod = DesignCenterGrpc.getExportApplicationIaCMethod) == null) { + synchronized (DesignCenterGrpc.class) { + if ((getExportApplicationIaCMethod = DesignCenterGrpc.getExportApplicationIaCMethod) + == null) { + DesignCenterGrpc.getExportApplicationIaCMethod = + getExportApplicationIaCMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ExportApplicationIaC")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.ExportApplicationIaCRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DesignCenterMethodDescriptorSupplier("ExportApplicationIaC")) + .build(); + } + } + } + return getExportApplicationIaCMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCRequest, + com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse> + getImportApplicationTemplateIaCMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ImportApplicationTemplateIaC", + requestType = com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCRequest.class, + responseType = com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCRequest, + com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse> + getImportApplicationTemplateIaCMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCRequest, + com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse> + getImportApplicationTemplateIaCMethod; + if ((getImportApplicationTemplateIaCMethod = + DesignCenterGrpc.getImportApplicationTemplateIaCMethod) + == null) { + synchronized (DesignCenterGrpc.class) { + if ((getImportApplicationTemplateIaCMethod = + DesignCenterGrpc.getImportApplicationTemplateIaCMethod) + == null) { + DesignCenterGrpc.getImportApplicationTemplateIaCMethod = + getImportApplicationTemplateIaCMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ImportApplicationTemplateIaC")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DesignCenterMethodDescriptorSupplier("ImportApplicationTemplateIaC")) + .build(); + } + } + } + return getImportApplicationTemplateIaCMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCRequest, + com.google.longrunning.Operation> + getIngestApplicationTemplateIaCMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "IngestApplicationTemplateIaC", + requestType = com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCRequest, + com.google.longrunning.Operation> + getIngestApplicationTemplateIaCMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCRequest, + com.google.longrunning.Operation> + getIngestApplicationTemplateIaCMethod; + if ((getIngestApplicationTemplateIaCMethod = + DesignCenterGrpc.getIngestApplicationTemplateIaCMethod) + == null) { + synchronized (DesignCenterGrpc.class) { + if ((getIngestApplicationTemplateIaCMethod = + DesignCenterGrpc.getIngestApplicationTemplateIaCMethod) + == null) { + DesignCenterGrpc.getIngestApplicationTemplateIaCMethod = + getIngestApplicationTemplateIaCMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "IngestApplicationTemplateIaC")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DesignCenterMethodDescriptorSupplier("IngestApplicationTemplateIaC")) + .build(); + } + } + } + return getIngestApplicationTemplateIaCMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.ImportApplicationIaCRequest, + com.google.cloud.designcenter.v1.ImportApplicationIaCResponse> + getImportApplicationIaCMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ImportApplicationIaC", + requestType = com.google.cloud.designcenter.v1.ImportApplicationIaCRequest.class, + responseType = com.google.cloud.designcenter.v1.ImportApplicationIaCResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.ImportApplicationIaCRequest, + com.google.cloud.designcenter.v1.ImportApplicationIaCResponse> + getImportApplicationIaCMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.ImportApplicationIaCRequest, + com.google.cloud.designcenter.v1.ImportApplicationIaCResponse> + getImportApplicationIaCMethod; + if ((getImportApplicationIaCMethod = DesignCenterGrpc.getImportApplicationIaCMethod) == null) { + synchronized (DesignCenterGrpc.class) { + if ((getImportApplicationIaCMethod = DesignCenterGrpc.getImportApplicationIaCMethod) + == null) { + DesignCenterGrpc.getImportApplicationIaCMethod = + getImportApplicationIaCMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ImportApplicationIaC")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.ImportApplicationIaCRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.ImportApplicationIaCResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DesignCenterMethodDescriptorSupplier("ImportApplicationIaC")) + .build(); + } + } + } + return getImportApplicationIaCMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesRequest, + com.google.longrunning.Operation> + getRegisterAppHubApplicationResourcesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RegisterAppHubApplicationResources", + requestType = + com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesRequest, + com.google.longrunning.Operation> + getRegisterAppHubApplicationResourcesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesRequest, + com.google.longrunning.Operation> + getRegisterAppHubApplicationResourcesMethod; + if ((getRegisterAppHubApplicationResourcesMethod = + DesignCenterGrpc.getRegisterAppHubApplicationResourcesMethod) + == null) { + synchronized (DesignCenterGrpc.class) { + if ((getRegisterAppHubApplicationResourcesMethod = + DesignCenterGrpc.getRegisterAppHubApplicationResourcesMethod) + == null) { + DesignCenterGrpc.getRegisterAppHubApplicationResourcesMethod = + getRegisterAppHubApplicationResourcesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "RegisterAppHubApplicationResources")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1 + .RegisterAppHubApplicationResourcesRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DesignCenterMethodDescriptorSupplier( + "RegisterAppHubApplicationResources")) + .build(); + } + } + } + return getRegisterAppHubApplicationResourcesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsRequest, + com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsResponse> + getListApplicationTemplateSystemRevisionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListApplicationTemplateSystemRevisions", + requestType = + com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsRequest.class, + responseType = + com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsRequest, + com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsResponse> + getListApplicationTemplateSystemRevisionsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsRequest, + com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsResponse> + getListApplicationTemplateSystemRevisionsMethod; + if ((getListApplicationTemplateSystemRevisionsMethod = + DesignCenterGrpc.getListApplicationTemplateSystemRevisionsMethod) + == null) { + synchronized (DesignCenterGrpc.class) { + if ((getListApplicationTemplateSystemRevisionsMethod = + DesignCenterGrpc.getListApplicationTemplateSystemRevisionsMethod) + == null) { + DesignCenterGrpc.getListApplicationTemplateSystemRevisionsMethod = + getListApplicationTemplateSystemRevisionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "ListApplicationTemplateSystemRevisions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1 + .ListApplicationTemplateSystemRevisionsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1 + .ListApplicationTemplateSystemRevisionsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DesignCenterMethodDescriptorSupplier( + "ListApplicationTemplateSystemRevisions")) + .build(); + } + } + } + return getListApplicationTemplateSystemRevisionsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.GetApplicationTemplateSystemRevisionRequest, + com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision> + getGetApplicationTemplateSystemRevisionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetApplicationTemplateSystemRevision", + requestType = + com.google.cloud.designcenter.v1.GetApplicationTemplateSystemRevisionRequest.class, + responseType = com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.GetApplicationTemplateSystemRevisionRequest, + com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision> + getGetApplicationTemplateSystemRevisionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.GetApplicationTemplateSystemRevisionRequest, + com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision> + getGetApplicationTemplateSystemRevisionMethod; + if ((getGetApplicationTemplateSystemRevisionMethod = + DesignCenterGrpc.getGetApplicationTemplateSystemRevisionMethod) + == null) { + synchronized (DesignCenterGrpc.class) { + if ((getGetApplicationTemplateSystemRevisionMethod = + DesignCenterGrpc.getGetApplicationTemplateSystemRevisionMethod) + == null) { + DesignCenterGrpc.getGetApplicationTemplateSystemRevisionMethod = + getGetApplicationTemplateSystemRevisionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "GetApplicationTemplateSystemRevision")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1 + .GetApplicationTemplateSystemRevisionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision + .getDefaultInstance())) + .setSchemaDescriptor( + new DesignCenterMethodDescriptorSupplier( + "GetApplicationTemplateSystemRevision")) + .build(); + } + } + } + return getGetApplicationTemplateSystemRevisionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.RecommendIAMRolesRequest, + com.google.longrunning.Operation> + getRecommendIAMRolesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RecommendIAMRoles", + requestType = com.google.cloud.designcenter.v1.RecommendIAMRolesRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.RecommendIAMRolesRequest, + com.google.longrunning.Operation> + getRecommendIAMRolesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.designcenter.v1.RecommendIAMRolesRequest, + com.google.longrunning.Operation> + getRecommendIAMRolesMethod; + if ((getRecommendIAMRolesMethod = DesignCenterGrpc.getRecommendIAMRolesMethod) == null) { + synchronized (DesignCenterGrpc.class) { + if ((getRecommendIAMRolesMethod = DesignCenterGrpc.getRecommendIAMRolesMethod) == null) { + DesignCenterGrpc.getRecommendIAMRolesMethod = + getRecommendIAMRolesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RecommendIAMRoles")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.designcenter.v1.RecommendIAMRolesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DesignCenterMethodDescriptorSupplier("RecommendIAMRoles")) + .build(); + } + } + } + return getRecommendIAMRolesMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static DesignCenterStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DesignCenterStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DesignCenterStub(channel, callOptions); + } + }; + return DesignCenterStub.newStub(factory, channel); + } + + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static DesignCenterBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DesignCenterBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DesignCenterBlockingV2Stub(channel, callOptions); + } + }; + return DesignCenterBlockingV2Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static DesignCenterBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DesignCenterBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DesignCenterBlockingStub(channel, callOptions); + } + }; + return DesignCenterBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static DesignCenterFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DesignCenterFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DesignCenterFutureStub(channel, callOptions); + } + }; + return DesignCenterFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Service describing handlers for resources
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Gets details about a space.
+     * 
+ */ + default void getSpace( + com.google.cloud.designcenter.v1.GetSpaceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSpaceMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists spaces in a given project and location.
+     * 
+ */ + default void listSpaces( + com.google.cloud.designcenter.v1.ListSpacesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSpacesMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a space.
+     * 
+ */ + default void createSpace( + com.google.cloud.designcenter.v1.CreateSpaceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateSpaceMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a space.
+     * 
+ */ + default void updateSpace( + com.google.cloud.designcenter.v1.UpdateSpaceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateSpaceMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a space.
+     * 
+ */ + default void deleteSpace( + com.google.cloud.designcenter.v1.DeleteSpaceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteSpaceMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details about an application template.
+     * 
+ */ + default void getApplicationTemplate( + com.google.cloud.designcenter.v1.GetApplicationTemplateRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetApplicationTemplateMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists application templates in a given space.
+     * 
+ */ + default void listApplicationTemplates( + com.google.cloud.designcenter.v1.ListApplicationTemplatesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.designcenter.v1.ListApplicationTemplatesResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListApplicationTemplatesMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates an application template.
+     * 
+ */ + default void createApplicationTemplate( + com.google.cloud.designcenter.v1.CreateApplicationTemplateRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateApplicationTemplateMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates an application template.
+     * 
+ */ + default void updateApplicationTemplate( + com.google.cloud.designcenter.v1.UpdateApplicationTemplateRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateApplicationTemplateMethod(), responseObserver); + } + + /** + * + * + *
+     * Imports to an existing application template from a given shared template.
+     * 
+ */ + default void importApplicationTemplate( + com.google.cloud.designcenter.v1.ImportApplicationTemplateRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getImportApplicationTemplateMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes an application template.
+     * 
+ */ + default void deleteApplicationTemplate( + com.google.cloud.designcenter.v1.DeleteApplicationTemplateRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteApplicationTemplateMethod(), responseObserver); + } + + /** + * + * + *
+     * Commits an application template to create a new revision.
+     * 
+ */ + default void commitApplicationTemplate( + com.google.cloud.designcenter.v1.CommitApplicationTemplateRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCommitApplicationTemplateMethod(), responseObserver); + } + + /** + * + * + *
+     * Snapshots an application template to create a new revision asynchronously.
+     * 
+ */ + default void snapshotApplicationTemplate( + com.google.cloud.designcenter.v1.SnapshotApplicationTemplateRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSnapshotApplicationTemplateMethod(), responseObserver); + } + + /** + * + * + *
+     * Generates Terraform files for an application template.
+     * This is a SYNCHRONOUS operation and returns the generated IaC
+     * directly in the response. It
+     * does NOT download external module sources; it only uses remote sources.
+     * 
+ */ + default void generateApplicationTemplateIaC( + com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGenerateApplicationTemplateIaCMethod(), responseObserver); + } + + /** + * + * + *
+     * Exports Terraform files for an application template. The generated
+     * modules can have remote sources or local sources downloaded from remote.
+     * This is an ASYNCHRONOUS operation that returns a Long Running Operation.
+     * 
+ */ + default void exportApplicationTemplateIaC( + com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getExportApplicationTemplateIaCMethod(), responseObserver); + } + + /** + * + * + *
+     * Generates Terraform files for an application template revision.
+     * This is a SYNCHRONOUS operation and returns the generated IaC
+     * directly in the response. It
+     * does NOT download external module sources; it only uses remote sources.
+     * 
+ */ + default void generateApplicationTemplateRevisionIaC( + com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGenerateApplicationTemplateRevisionIaCMethod(), responseObserver); + } + + /** + * + * + *
+     * Exports Terraform files for an application template revision. The generated
+     * modules can have remote sources or local sources downloaded from remote.
+     * This is an ASYNCHRONOUS operation that returns a Long Running Operation.
+     * 
+ */ + default void exportApplicationTemplateRevisionIaC( + com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getExportApplicationTemplateRevisionIaCMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details about a Component.
+     * 
+ */ + default void getComponent( + com.google.cloud.designcenter.v1.GetComponentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetComponentMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists components in an application template.
+     * 
+ */ + default void listComponents( + com.google.cloud.designcenter.v1.ListComponentsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListComponentsMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a component.
+     * 
+ */ + default void createComponent( + com.google.cloud.designcenter.v1.CreateComponentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateComponentMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a component.
+     * 
+ */ + default void updateComponent( + com.google.cloud.designcenter.v1.UpdateComponentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateComponentMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a component.
+     * 
+ */ + default void deleteComponent( + com.google.cloud.designcenter.v1.DeleteComponentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteComponentMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details about a connection.
+     * 
+ */ + default void getConnection( + com.google.cloud.designcenter.v1.GetConnectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetConnectionMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists connections in an application template.
+     * 
+ */ + default void listConnections( + com.google.cloud.designcenter.v1.ListConnectionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListConnectionsMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a connection.
+     * 
+ */ + default void createConnection( + com.google.cloud.designcenter.v1.CreateConnectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateConnectionMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a connection.
+     * 
+ */ + default void updateConnection( + com.google.cloud.designcenter.v1.UpdateConnectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateConnectionMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a connection.
+     * 
+ */ + default void deleteConnection( + com.google.cloud.designcenter.v1.DeleteConnectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteConnectionMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details about an application template revision.
+     * 
+ */ + default void getApplicationTemplateRevision( + com.google.cloud.designcenter.v1.GetApplicationTemplateRevisionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetApplicationTemplateRevisionMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists application template revisions in a given application template.
+     * 
+ */ + default void listApplicationTemplateRevisions( + com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListApplicationTemplateRevisionsMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes an application template revision.
+     * 
+ */ + default void deleteApplicationTemplateRevision( + com.google.cloud.designcenter.v1.DeleteApplicationTemplateRevisionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteApplicationTemplateRevisionMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details about a catalog.
+     * 
+ */ + default void getCatalog( + com.google.cloud.designcenter.v1.GetCatalogRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetCatalogMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists catalogs in a given space.
+     * 
+ */ + default void listCatalogs( + com.google.cloud.designcenter.v1.ListCatalogsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListCatalogsMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a catalog.
+     * 
+ */ + default void createCatalog( + com.google.cloud.designcenter.v1.CreateCatalogRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateCatalogMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a catalog.
+     * 
+ */ + default void updateCatalog( + com.google.cloud.designcenter.v1.UpdateCatalogRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateCatalogMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a catalog.
+     * 
+ */ + default void deleteCatalog( + com.google.cloud.designcenter.v1.DeleteCatalogRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteCatalogMethod(), responseObserver); + } + + /** + * + * + *
+     * Adds a template to a catalog.
+     * 
+ */ + default void createCatalogTemplate( + com.google.cloud.designcenter.v1.CreateCatalogTemplateRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateCatalogTemplateMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a catalog template.
+     * 
+ */ + default void getCatalogTemplate( + com.google.cloud.designcenter.v1.GetCatalogTemplateRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetCatalogTemplateMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists catalog templates.
+     * 
+ */ + default void listCatalogTemplates( + com.google.cloud.designcenter.v1.ListCatalogTemplatesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListCatalogTemplatesMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a catalog template resource.
+     * 
+ */ + default void updateCatalogTemplate( + com.google.cloud.designcenter.v1.UpdateCatalogTemplateRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateCatalogTemplateMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a catalog template.
+     * 
+ */ + default void deleteCatalogTemplate( + com.google.cloud.designcenter.v1.DeleteCatalogTemplateRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteCatalogTemplateMethod(), responseObserver); + } + + /** + * + * + *
+     * Shares a catalog from one space to another space.
+     * 
+ */ + default void createShare( + com.google.cloud.designcenter.v1.CreateShareRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateShareMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists catalog share objects for the space.
+     * 
+ */ + default void listShares( + com.google.cloud.designcenter.v1.ListSharesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSharesMethod(), responseObserver); + } + + /** + * + * + *
+     * Get catalog share object for the space.
+     * 
+ */ + default void getShare( + com.google.cloud.designcenter.v1.GetShareRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetShareMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a catalog share.
+     * 
+ */ + default void deleteShare( + com.google.cloud.designcenter.v1.DeleteShareRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteShareMethod(), responseObserver); + } + + /** + * + * + *
+     * Synchronizes a share and updates the destination workspace to reflect.
+     * reflect the most recent changes to the catalog.
+     * 
+ */ + default void syncShare( + com.google.cloud.designcenter.v1.SyncShareRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSyncShareMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details about a shared template.
+     * 
+ */ + default void getSharedTemplate( + com.google.cloud.designcenter.v1.GetSharedTemplateRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetSharedTemplateMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists shared templates in a given space.
+     * 
+ */ + default void listSharedTemplates( + com.google.cloud.designcenter.v1.ListSharedTemplatesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListSharedTemplatesMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details about a shared template revision.
+     * 
+ */ + default void getSharedTemplateRevision( + com.google.cloud.designcenter.v1.GetSharedTemplateRevisionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetSharedTemplateRevisionMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists shared template revisions in a given space.
+     * 
+ */ + default void listSharedTemplateRevisions( + com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListSharedTemplateRevisionsMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a template revision.
+     * 
+ */ + default void createCatalogTemplateRevision( + com.google.cloud.designcenter.v1.CreateCatalogTemplateRevisionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateCatalogTemplateRevisionMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details about a template revision.
+     * 
+ */ + default void getCatalogTemplateRevision( + com.google.cloud.designcenter.v1.GetCatalogTemplateRevisionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetCatalogTemplateRevisionMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists template revisions.
+     * 
+ */ + default void listCatalogTemplateRevisions( + com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListCatalogTemplateRevisionsMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a template revision.
+     * 
+ */ + default void deleteCatalogTemplateRevision( + com.google.cloud.designcenter.v1.DeleteCatalogTemplateRevisionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteCatalogTemplateRevisionMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates an application.
+     * 
+ */ + default void createApplication( + com.google.cloud.designcenter.v1.CreateApplicationRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateApplicationMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details about an application.
+     * 
+ */ + default void getApplication( + com.google.cloud.designcenter.v1.GetApplicationRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetApplicationMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists applications in a given space.
+     * 
+ */ + default void listApplications( + com.google.cloud.designcenter.v1.ListApplicationsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListApplicationsMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates an application.
+     * 
+ */ + default void updateApplication( + com.google.cloud.designcenter.v1.UpdateApplicationRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateApplicationMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes an application.
+     * 
+ */ + default void deleteApplication( + com.google.cloud.designcenter.v1.DeleteApplicationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteApplicationMethod(), responseObserver); + } + + /** + * + * + *
+     * Deploys an application.
+     * 
+ */ + default void deployApplication( + com.google.cloud.designcenter.v1.DeployApplicationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeployApplicationMethod(), responseObserver); + } + + /** + * + * + *
+     * Previews deployment of an application.
+     * 
+ */ + default void previewApplication( + com.google.cloud.designcenter.v1.PreviewApplicationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getPreviewApplicationMethod(), responseObserver); + } + + /** + * + * + *
+     * Fetches the assessment report of a deployed application if present.
+     * 
+ */ + default void fetchApplicationAssessmentReport( + com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getFetchApplicationAssessmentReportMethod(), responseObserver); + } + + /** + * + * + *
+     * Generate Assessment Reports of an application.
+     * 
+ */ + default void generateApplicationAssessmentReport( + com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGenerateApplicationAssessmentReportMethod(), responseObserver); + } + + /** + * + * + *
+     * Generate Assessment Reports of an application template.
+     * 
+ */ + default void generateApplicationTemplateAssessmentReport( + com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGenerateApplicationTemplateAssessmentReportMethod(), responseObserver); + } + + /** + * + * + *
+     * Deprecated: Use GenerateTerraformPlanAssessmentReport instead.
+     * Generate a best practice report for a given Terraform plan.
+     * 
+ */ + @java.lang.Deprecated + default void generateAssessmentReport( + com.google.cloud.designcenter.v1.GenerateAssessmentReportRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGenerateAssessmentReportMethod(), responseObserver); + } + + /** + * + * + *
+     * Generate a Terraform plan assessment report for a given Terraform plan.
+     * 
+ */ + default void generateTerraformPlanAssessmentReport( + com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGenerateTerraformPlanAssessmentReportMethod(), responseObserver); + } + + /** + * + * + *
+     * Policy related APIs.
+     * Get a policy for an application template.
+     * 
+ */ + default void getPolicy( + com.google.cloud.designcenter.v1.GetPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetPolicyMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists policies for an application template.
+     * 
+ */ + default void listPolicies( + com.google.cloud.designcenter.v1.ListPoliciesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListPoliciesMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a policy for an application template.
+     * 
+ */ + default void createPolicy( + com.google.cloud.designcenter.v1.CreatePolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreatePolicyMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a policy.
+     * 
+ */ + default void updatePolicy( + com.google.cloud.designcenter.v1.UpdatePolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdatePolicyMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a policy.
+     * 
+ */ + default void deletePolicy( + com.google.cloud.designcenter.v1.DeletePolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeletePolicyMethod(), responseObserver); + } + + /** + * + * + *
+     * Fetches all frameworks for assessment report.
+     * 
+ */ + default void fetchFrameworks( + com.google.cloud.designcenter.v1.FetchFrameworksRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getFetchFrameworksMethod(), responseObserver); + } + + /** + * + * + *
+     * Generates Terraform files for an application.
+     * 
+ */ + default void generateApplicationIaC( + com.google.cloud.designcenter.v1.GenerateApplicationIaCRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGenerateApplicationIaCMethod(), responseObserver); + } + + /** + * + * + *
+     * Exports Terraform files for an application asynchronously.
+     * 
+ */ + default void exportApplicationIaC( + com.google.cloud.designcenter.v1.ExportApplicationIaCRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getExportApplicationIaCMethod(), responseObserver); + } + + /** + * + * + *
+     * Imports IaC for an application template.
+     * 
+ */ + default void importApplicationTemplateIaC( + com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getImportApplicationTemplateIaCMethod(), responseObserver); + } + + /** + * + * + *
+     * Ingests IaC for an application template asynchronously.
+     * 
+ */ + default void ingestApplicationTemplateIaC( + com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getIngestApplicationTemplateIaCMethod(), responseObserver); + } + + /** + * + * + *
+     * Imports IaC for an application resource.
+     * 
+ */ + default void importApplicationIaC( + com.google.cloud.designcenter.v1.ImportApplicationIaCRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getImportApplicationIaCMethod(), responseObserver); + } + + /** + * + * + *
+     * Register deployed resources from terraform state file with App Hub
+     * without needing a space.
+     * 
+ */ + default void registerAppHubApplicationResources( + com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRegisterAppHubApplicationResourcesMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists application template system revisions in a given application
+     * template.
+     * 
+ */ + default void listApplicationTemplateSystemRevisions( + com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListApplicationTemplateSystemRevisionsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets the given application template system revision.
+     * 
+ */ + default void getApplicationTemplateSystemRevision( + com.google.cloud.designcenter.v1.GetApplicationTemplateSystemRevisionRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetApplicationTemplateSystemRevisionMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets recommended IAM roles for an application.
+     * Evaluates the infrastructure resources defined by an application (including
+     * its template configuration and parameters) to determine the set of IAM
+     * roles and Google Cloud APIs that you must configure before you deploy
+     * across target projects.
+     * The operation is asynchronous and returns a `google.longrunning.Operation`.
+     * Upon completion, the operation result contains a
+     * `RecommendIAMRolesResponse` with project-level IAM role and API
+     * recommendations.
+     * 
+ */ + default void recommendIAMRoles( + com.google.cloud.designcenter.v1.RecommendIAMRolesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRecommendIAMRolesMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service DesignCenter. + * + *
+   * Service describing handlers for resources
+   * 
+ */ + public abstract static class DesignCenterImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return DesignCenterGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service DesignCenter. + * + *
+   * Service describing handlers for resources
+   * 
+ */ + public static final class DesignCenterStub + extends io.grpc.stub.AbstractAsyncStub { + private DesignCenterStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DesignCenterStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DesignCenterStub(channel, callOptions); + } + + /** + * + * + *
+     * Gets details about a space.
+     * 
+ */ + public void getSpace( + com.google.cloud.designcenter.v1.GetSpaceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSpaceMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Lists spaces in a given project and location.
+     * 
+ */ + public void listSpaces( + com.google.cloud.designcenter.v1.ListSpacesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListSpacesMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Creates a space.
+     * 
+ */ + public void createSpace( + com.google.cloud.designcenter.v1.CreateSpaceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateSpaceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a space.
+     * 
+ */ + public void updateSpace( + com.google.cloud.designcenter.v1.UpdateSpaceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateSpaceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a space.
+     * 
+ */ + public void deleteSpace( + com.google.cloud.designcenter.v1.DeleteSpaceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteSpaceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details about an application template.
+     * 
+ */ + public void getApplicationTemplate( + com.google.cloud.designcenter.v1.GetApplicationTemplateRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetApplicationTemplateMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists application templates in a given space.
+     * 
+ */ + public void listApplicationTemplates( + com.google.cloud.designcenter.v1.ListApplicationTemplatesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.designcenter.v1.ListApplicationTemplatesResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListApplicationTemplatesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates an application template.
+     * 
+ */ + public void createApplicationTemplate( + com.google.cloud.designcenter.v1.CreateApplicationTemplateRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateApplicationTemplateMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates an application template.
+     * 
+ */ + public void updateApplicationTemplate( + com.google.cloud.designcenter.v1.UpdateApplicationTemplateRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateApplicationTemplateMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Imports to an existing application template from a given shared template.
+     * 
+ */ + public void importApplicationTemplate( + com.google.cloud.designcenter.v1.ImportApplicationTemplateRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getImportApplicationTemplateMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes an application template.
+     * 
+ */ + public void deleteApplicationTemplate( + com.google.cloud.designcenter.v1.DeleteApplicationTemplateRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteApplicationTemplateMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Commits an application template to create a new revision.
+     * 
+ */ + public void commitApplicationTemplate( + com.google.cloud.designcenter.v1.CommitApplicationTemplateRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCommitApplicationTemplateMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Snapshots an application template to create a new revision asynchronously.
+     * 
+ */ + public void snapshotApplicationTemplate( + com.google.cloud.designcenter.v1.SnapshotApplicationTemplateRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSnapshotApplicationTemplateMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Generates Terraform files for an application template.
+     * This is a SYNCHRONOUS operation and returns the generated IaC
+     * directly in the response. It
+     * does NOT download external module sources; it only uses remote sources.
+     * 
+ */ + public void generateApplicationTemplateIaC( + com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGenerateApplicationTemplateIaCMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Exports Terraform files for an application template. The generated
+     * modules can have remote sources or local sources downloaded from remote.
+     * This is an ASYNCHRONOUS operation that returns a Long Running Operation.
+     * 
+ */ + public void exportApplicationTemplateIaC( + com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getExportApplicationTemplateIaCMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Generates Terraform files for an application template revision.
+     * This is a SYNCHRONOUS operation and returns the generated IaC
+     * directly in the response. It
+     * does NOT download external module sources; it only uses remote sources.
+     * 
+ */ + public void generateApplicationTemplateRevisionIaC( + com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGenerateApplicationTemplateRevisionIaCMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Exports Terraform files for an application template revision. The generated
+     * modules can have remote sources or local sources downloaded from remote.
+     * This is an ASYNCHRONOUS operation that returns a Long Running Operation.
+     * 
+ */ + public void exportApplicationTemplateRevisionIaC( + com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getExportApplicationTemplateRevisionIaCMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details about a Component.
+     * 
+ */ + public void getComponent( + com.google.cloud.designcenter.v1.GetComponentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetComponentMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists components in an application template.
+     * 
+ */ + public void listComponents( + com.google.cloud.designcenter.v1.ListComponentsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListComponentsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a component.
+     * 
+ */ + public void createComponent( + com.google.cloud.designcenter.v1.CreateComponentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateComponentMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a component.
+     * 
+ */ + public void updateComponent( + com.google.cloud.designcenter.v1.UpdateComponentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateComponentMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a component.
+     * 
+ */ + public void deleteComponent( + com.google.cloud.designcenter.v1.DeleteComponentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteComponentMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details about a connection.
+     * 
+ */ + public void getConnection( + com.google.cloud.designcenter.v1.GetConnectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetConnectionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists connections in an application template.
+     * 
+ */ + public void listConnections( + com.google.cloud.designcenter.v1.ListConnectionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListConnectionsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a connection.
+     * 
+ */ + public void createConnection( + com.google.cloud.designcenter.v1.CreateConnectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateConnectionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a connection.
+     * 
+ */ + public void updateConnection( + com.google.cloud.designcenter.v1.UpdateConnectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateConnectionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a connection.
+     * 
+ */ + public void deleteConnection( + com.google.cloud.designcenter.v1.DeleteConnectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteConnectionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details about an application template revision.
+     * 
+ */ + public void getApplicationTemplateRevision( + com.google.cloud.designcenter.v1.GetApplicationTemplateRevisionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetApplicationTemplateRevisionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists application template revisions in a given application template.
+     * 
+ */ + public void listApplicationTemplateRevisions( + com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListApplicationTemplateRevisionsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes an application template revision.
+     * 
+ */ + public void deleteApplicationTemplateRevision( + com.google.cloud.designcenter.v1.DeleteApplicationTemplateRevisionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteApplicationTemplateRevisionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details about a catalog.
+     * 
+ */ + public void getCatalog( + com.google.cloud.designcenter.v1.GetCatalogRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetCatalogMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Lists catalogs in a given space.
+     * 
+ */ + public void listCatalogs( + com.google.cloud.designcenter.v1.ListCatalogsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListCatalogsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a catalog.
+     * 
+ */ + public void createCatalog( + com.google.cloud.designcenter.v1.CreateCatalogRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateCatalogMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a catalog.
+     * 
+ */ + public void updateCatalog( + com.google.cloud.designcenter.v1.UpdateCatalogRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateCatalogMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a catalog.
+     * 
+ */ + public void deleteCatalog( + com.google.cloud.designcenter.v1.DeleteCatalogRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteCatalogMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Adds a template to a catalog.
+     * 
+ */ + public void createCatalogTemplate( + com.google.cloud.designcenter.v1.CreateCatalogTemplateRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateCatalogTemplateMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a catalog template.
+     * 
+ */ + public void getCatalogTemplate( + com.google.cloud.designcenter.v1.GetCatalogTemplateRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetCatalogTemplateMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists catalog templates.
+     * 
+ */ + public void listCatalogTemplates( + com.google.cloud.designcenter.v1.ListCatalogTemplatesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListCatalogTemplatesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a catalog template resource.
+     * 
+ */ + public void updateCatalogTemplate( + com.google.cloud.designcenter.v1.UpdateCatalogTemplateRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateCatalogTemplateMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a catalog template.
+     * 
+ */ + public void deleteCatalogTemplate( + com.google.cloud.designcenter.v1.DeleteCatalogTemplateRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteCatalogTemplateMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Shares a catalog from one space to another space.
+     * 
+ */ + public void createShare( + com.google.cloud.designcenter.v1.CreateShareRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateShareMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists catalog share objects for the space.
+     * 
+ */ + public void listShares( + com.google.cloud.designcenter.v1.ListSharesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListSharesMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Get catalog share object for the space.
+     * 
+ */ + public void getShare( + com.google.cloud.designcenter.v1.GetShareRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetShareMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Deletes a catalog share.
+     * 
+ */ + public void deleteShare( + com.google.cloud.designcenter.v1.DeleteShareRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteShareMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Synchronizes a share and updates the destination workspace to reflect.
+     * reflect the most recent changes to the catalog.
+     * 
+ */ + public void syncShare( + com.google.cloud.designcenter.v1.SyncShareRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSyncShareMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Gets details about a shared template.
+     * 
+ */ + public void getSharedTemplate( + com.google.cloud.designcenter.v1.GetSharedTemplateRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSharedTemplateMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists shared templates in a given space.
+     * 
+ */ + public void listSharedTemplates( + com.google.cloud.designcenter.v1.ListSharedTemplatesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListSharedTemplatesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details about a shared template revision.
+     * 
+ */ + public void getSharedTemplateRevision( + com.google.cloud.designcenter.v1.GetSharedTemplateRevisionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSharedTemplateRevisionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists shared template revisions in a given space.
+     * 
+ */ + public void listSharedTemplateRevisions( + com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListSharedTemplateRevisionsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a template revision.
+     * 
+ */ + public void createCatalogTemplateRevision( + com.google.cloud.designcenter.v1.CreateCatalogTemplateRevisionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateCatalogTemplateRevisionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details about a template revision.
+     * 
+ */ + public void getCatalogTemplateRevision( + com.google.cloud.designcenter.v1.GetCatalogTemplateRevisionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetCatalogTemplateRevisionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists template revisions.
+     * 
+ */ + public void listCatalogTemplateRevisions( + com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListCatalogTemplateRevisionsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a template revision.
+     * 
+ */ + public void deleteCatalogTemplateRevision( + com.google.cloud.designcenter.v1.DeleteCatalogTemplateRevisionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteCatalogTemplateRevisionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates an application.
+     * 
+ */ + public void createApplication( + com.google.cloud.designcenter.v1.CreateApplicationRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateApplicationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details about an application.
+     * 
+ */ + public void getApplication( + com.google.cloud.designcenter.v1.GetApplicationRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetApplicationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists applications in a given space.
+     * 
+ */ + public void listApplications( + com.google.cloud.designcenter.v1.ListApplicationsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListApplicationsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates an application.
+     * 
+ */ + public void updateApplication( + com.google.cloud.designcenter.v1.UpdateApplicationRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateApplicationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes an application.
+     * 
+ */ + public void deleteApplication( + com.google.cloud.designcenter.v1.DeleteApplicationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteApplicationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deploys an application.
+     * 
+ */ + public void deployApplication( + com.google.cloud.designcenter.v1.DeployApplicationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeployApplicationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Previews deployment of an application.
+     * 
+ */ + public void previewApplication( + com.google.cloud.designcenter.v1.PreviewApplicationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getPreviewApplicationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Fetches the assessment report of a deployed application if present.
+     * 
+ */ + public void fetchApplicationAssessmentReport( + com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getFetchApplicationAssessmentReportMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Generate Assessment Reports of an application.
+     * 
+ */ + public void generateApplicationAssessmentReport( + com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGenerateApplicationAssessmentReportMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Generate Assessment Reports of an application template.
+     * 
+ */ + public void generateApplicationTemplateAssessmentReport( + com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel() + .newCall(getGenerateApplicationTemplateAssessmentReportMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deprecated: Use GenerateTerraformPlanAssessmentReport instead.
+     * Generate a best practice report for a given Terraform plan.
+     * 
+ */ + @java.lang.Deprecated + public void generateAssessmentReport( + com.google.cloud.designcenter.v1.GenerateAssessmentReportRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGenerateAssessmentReportMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Generate a Terraform plan assessment report for a given Terraform plan.
+     * 
+ */ + public void generateTerraformPlanAssessmentReport( + com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGenerateTerraformPlanAssessmentReportMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Policy related APIs.
+     * Get a policy for an application template.
+     * 
+ */ + public void getPolicy( + com.google.cloud.designcenter.v1.GetPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetPolicyMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Lists policies for an application template.
+     * 
+ */ + public void listPolicies( + com.google.cloud.designcenter.v1.ListPoliciesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListPoliciesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a policy for an application template.
+     * 
+ */ + public void createPolicy( + com.google.cloud.designcenter.v1.CreatePolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreatePolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a policy.
+     * 
+ */ + public void updatePolicy( + com.google.cloud.designcenter.v1.UpdatePolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdatePolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a policy.
+     * 
+ */ + public void deletePolicy( + com.google.cloud.designcenter.v1.DeletePolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeletePolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Fetches all frameworks for assessment report.
+     * 
+ */ + public void fetchFrameworks( + com.google.cloud.designcenter.v1.FetchFrameworksRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getFetchFrameworksMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Generates Terraform files for an application.
+     * 
+ */ + public void generateApplicationIaC( + com.google.cloud.designcenter.v1.GenerateApplicationIaCRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGenerateApplicationIaCMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Exports Terraform files for an application asynchronously.
+     * 
+ */ + public void exportApplicationIaC( + com.google.cloud.designcenter.v1.ExportApplicationIaCRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getExportApplicationIaCMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Imports IaC for an application template.
+     * 
+ */ + public void importApplicationTemplateIaC( + com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getImportApplicationTemplateIaCMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Ingests IaC for an application template asynchronously.
+     * 
+ */ + public void ingestApplicationTemplateIaC( + com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getIngestApplicationTemplateIaCMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Imports IaC for an application resource.
+     * 
+ */ + public void importApplicationIaC( + com.google.cloud.designcenter.v1.ImportApplicationIaCRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getImportApplicationIaCMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Register deployed resources from terraform state file with App Hub
+     * without needing a space.
+     * 
+ */ + public void registerAppHubApplicationResources( + com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRegisterAppHubApplicationResourcesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists application template system revisions in a given application
+     * template.
+     * 
+ */ + public void listApplicationTemplateSystemRevisions( + com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListApplicationTemplateSystemRevisionsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets the given application template system revision.
+     * 
+ */ + public void getApplicationTemplateSystemRevision( + com.google.cloud.designcenter.v1.GetApplicationTemplateSystemRevisionRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetApplicationTemplateSystemRevisionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets recommended IAM roles for an application.
+     * Evaluates the infrastructure resources defined by an application (including
+     * its template configuration and parameters) to determine the set of IAM
+     * roles and Google Cloud APIs that you must configure before you deploy
+     * across target projects.
+     * The operation is asynchronous and returns a `google.longrunning.Operation`.
+     * Upon completion, the operation result contains a
+     * `RecommendIAMRolesResponse` with project-level IAM role and API
+     * recommendations.
+     * 
+ */ + public void recommendIAMRoles( + com.google.cloud.designcenter.v1.RecommendIAMRolesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRecommendIAMRolesMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service DesignCenter. + * + *
+   * Service describing handlers for resources
+   * 
+ */ + public static final class DesignCenterBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private DesignCenterBlockingV2Stub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DesignCenterBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DesignCenterBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
+     * Gets details about a space.
+     * 
+ */ + public com.google.cloud.designcenter.v1.Space getSpace( + com.google.cloud.designcenter.v1.GetSpaceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetSpaceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists spaces in a given project and location.
+     * 
+ */ + public com.google.cloud.designcenter.v1.ListSpacesResponse listSpaces( + com.google.cloud.designcenter.v1.ListSpacesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListSpacesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a space.
+     * 
+ */ + public com.google.cloud.designcenter.v1.Space createSpace( + com.google.cloud.designcenter.v1.CreateSpaceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateSpaceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a space.
+     * 
+ */ + public com.google.cloud.designcenter.v1.Space updateSpace( + com.google.cloud.designcenter.v1.UpdateSpaceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateSpaceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a space.
+     * 
+ */ + public com.google.protobuf.Empty deleteSpace( + com.google.cloud.designcenter.v1.DeleteSpaceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteSpaceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details about an application template.
+     * 
+ */ + public com.google.cloud.designcenter.v1.ApplicationTemplate getApplicationTemplate( + com.google.cloud.designcenter.v1.GetApplicationTemplateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetApplicationTemplateMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists application templates in a given space.
+     * 
+ */ + public com.google.cloud.designcenter.v1.ListApplicationTemplatesResponse + listApplicationTemplates( + com.google.cloud.designcenter.v1.ListApplicationTemplatesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListApplicationTemplatesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates an application template.
+     * 
+ */ + public com.google.cloud.designcenter.v1.ApplicationTemplate createApplicationTemplate( + com.google.cloud.designcenter.v1.CreateApplicationTemplateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateApplicationTemplateMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates an application template.
+     * 
+ */ + public com.google.cloud.designcenter.v1.ApplicationTemplate updateApplicationTemplate( + com.google.cloud.designcenter.v1.UpdateApplicationTemplateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateApplicationTemplateMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Imports to an existing application template from a given shared template.
+     * 
+ */ + public com.google.cloud.designcenter.v1.ApplicationTemplate importApplicationTemplate( + com.google.cloud.designcenter.v1.ImportApplicationTemplateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getImportApplicationTemplateMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes an application template.
+     * 
+ */ + public com.google.protobuf.Empty deleteApplicationTemplate( + com.google.cloud.designcenter.v1.DeleteApplicationTemplateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteApplicationTemplateMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Commits an application template to create a new revision.
+     * 
+ */ + public com.google.cloud.designcenter.v1.ApplicationTemplateRevision commitApplicationTemplate( + com.google.cloud.designcenter.v1.CommitApplicationTemplateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCommitApplicationTemplateMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Snapshots an application template to create a new revision asynchronously.
+     * 
+ */ + public com.google.longrunning.Operation snapshotApplicationTemplate( + com.google.cloud.designcenter.v1.SnapshotApplicationTemplateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getSnapshotApplicationTemplateMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Generates Terraform files for an application template.
+     * This is a SYNCHRONOUS operation and returns the generated IaC
+     * directly in the response. It
+     * does NOT download external module sources; it only uses remote sources.
+     * 
+ */ + public com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCResponse + generateApplicationTemplateIaC( + com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGenerateApplicationTemplateIaCMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Exports Terraform files for an application template. The generated
+     * modules can have remote sources or local sources downloaded from remote.
+     * This is an ASYNCHRONOUS operation that returns a Long Running Operation.
+     * 
+ */ + public com.google.longrunning.Operation exportApplicationTemplateIaC( + com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getExportApplicationTemplateIaCMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Generates Terraform files for an application template revision.
+     * This is a SYNCHRONOUS operation and returns the generated IaC
+     * directly in the response. It
+     * does NOT download external module sources; it only uses remote sources.
+     * 
+ */ + public com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCResponse + generateApplicationTemplateRevisionIaC( + com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), + getGenerateApplicationTemplateRevisionIaCMethod(), + getCallOptions(), + request); + } + + /** + * + * + *
+     * Exports Terraform files for an application template revision. The generated
+     * modules can have remote sources or local sources downloaded from remote.
+     * This is an ASYNCHRONOUS operation that returns a Long Running Operation.
+     * 
+ */ + public com.google.longrunning.Operation exportApplicationTemplateRevisionIaC( + com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getExportApplicationTemplateRevisionIaCMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details about a Component.
+     * 
+ */ + public com.google.cloud.designcenter.v1.Component getComponent( + com.google.cloud.designcenter.v1.GetComponentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetComponentMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists components in an application template.
+     * 
+ */ + public com.google.cloud.designcenter.v1.ListComponentsResponse listComponents( + com.google.cloud.designcenter.v1.ListComponentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListComponentsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a component.
+     * 
+ */ + public com.google.cloud.designcenter.v1.Component createComponent( + com.google.cloud.designcenter.v1.CreateComponentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateComponentMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a component.
+     * 
+ */ + public com.google.cloud.designcenter.v1.Component updateComponent( + com.google.cloud.designcenter.v1.UpdateComponentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateComponentMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a component.
+     * 
+ */ + public com.google.protobuf.Empty deleteComponent( + com.google.cloud.designcenter.v1.DeleteComponentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteComponentMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details about a connection.
+     * 
+ */ + public com.google.cloud.designcenter.v1.Connection getConnection( + com.google.cloud.designcenter.v1.GetConnectionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetConnectionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists connections in an application template.
+     * 
+ */ + public com.google.cloud.designcenter.v1.ListConnectionsResponse listConnections( + com.google.cloud.designcenter.v1.ListConnectionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListConnectionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a connection.
+     * 
+ */ + public com.google.cloud.designcenter.v1.Connection createConnection( + com.google.cloud.designcenter.v1.CreateConnectionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateConnectionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a connection.
+     * 
+ */ + public com.google.cloud.designcenter.v1.Connection updateConnection( + com.google.cloud.designcenter.v1.UpdateConnectionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateConnectionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a connection.
+     * 
+ */ + public com.google.protobuf.Empty deleteConnection( + com.google.cloud.designcenter.v1.DeleteConnectionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteConnectionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details about an application template revision.
+     * 
+ */ + public com.google.cloud.designcenter.v1.ApplicationTemplateRevision + getApplicationTemplateRevision( + com.google.cloud.designcenter.v1.GetApplicationTemplateRevisionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetApplicationTemplateRevisionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists application template revisions in a given application template.
+     * 
+ */ + public com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsResponse + listApplicationTemplateRevisions( + com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListApplicationTemplateRevisionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes an application template revision.
+     * 
+ */ + public com.google.protobuf.Empty deleteApplicationTemplateRevision( + com.google.cloud.designcenter.v1.DeleteApplicationTemplateRevisionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteApplicationTemplateRevisionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details about a catalog.
+     * 
+ */ + public com.google.cloud.designcenter.v1.Catalog getCatalog( + com.google.cloud.designcenter.v1.GetCatalogRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetCatalogMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists catalogs in a given space.
+     * 
+ */ + public com.google.cloud.designcenter.v1.ListCatalogsResponse listCatalogs( + com.google.cloud.designcenter.v1.ListCatalogsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListCatalogsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a catalog.
+     * 
+ */ + public com.google.cloud.designcenter.v1.Catalog createCatalog( + com.google.cloud.designcenter.v1.CreateCatalogRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateCatalogMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a catalog.
+     * 
+ */ + public com.google.cloud.designcenter.v1.Catalog updateCatalog( + com.google.cloud.designcenter.v1.UpdateCatalogRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateCatalogMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a catalog.
+     * 
+ */ + public com.google.longrunning.Operation deleteCatalog( + com.google.cloud.designcenter.v1.DeleteCatalogRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteCatalogMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Adds a template to a catalog.
+     * 
+ */ + public com.google.cloud.designcenter.v1.CatalogTemplate createCatalogTemplate( + com.google.cloud.designcenter.v1.CreateCatalogTemplateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateCatalogTemplateMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a catalog template.
+     * 
+ */ + public com.google.cloud.designcenter.v1.CatalogTemplate getCatalogTemplate( + com.google.cloud.designcenter.v1.GetCatalogTemplateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetCatalogTemplateMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists catalog templates.
+     * 
+ */ + public com.google.cloud.designcenter.v1.ListCatalogTemplatesResponse listCatalogTemplates( + com.google.cloud.designcenter.v1.ListCatalogTemplatesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListCatalogTemplatesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a catalog template resource.
+     * 
+ */ + public com.google.cloud.designcenter.v1.CatalogTemplate updateCatalogTemplate( + com.google.cloud.designcenter.v1.UpdateCatalogTemplateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateCatalogTemplateMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a catalog template.
+     * 
+ */ + public com.google.longrunning.Operation deleteCatalogTemplate( + com.google.cloud.designcenter.v1.DeleteCatalogTemplateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteCatalogTemplateMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Shares a catalog from one space to another space.
+     * 
+ */ + public com.google.longrunning.Operation createShare( + com.google.cloud.designcenter.v1.CreateShareRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateShareMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists catalog share objects for the space.
+     * 
+ */ + public com.google.cloud.designcenter.v1.ListSharesResponse listShares( + com.google.cloud.designcenter.v1.ListSharesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListSharesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Get catalog share object for the space.
+     * 
+ */ + public com.google.cloud.designcenter.v1.Share getShare( + com.google.cloud.designcenter.v1.GetShareRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetShareMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a catalog share.
+     * 
+ */ + public com.google.longrunning.Operation deleteShare( + com.google.cloud.designcenter.v1.DeleteShareRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteShareMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Synchronizes a share and updates the destination workspace to reflect.
+     * reflect the most recent changes to the catalog.
+     * 
+ */ + public com.google.longrunning.Operation syncShare( + com.google.cloud.designcenter.v1.SyncShareRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getSyncShareMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details about a shared template.
+     * 
+ */ + public com.google.cloud.designcenter.v1.SharedTemplate getSharedTemplate( + com.google.cloud.designcenter.v1.GetSharedTemplateRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetSharedTemplateMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists shared templates in a given space.
+     * 
+ */ + public com.google.cloud.designcenter.v1.ListSharedTemplatesResponse listSharedTemplates( + com.google.cloud.designcenter.v1.ListSharedTemplatesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListSharedTemplatesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details about a shared template revision.
+     * 
+ */ + public com.google.cloud.designcenter.v1.SharedTemplateRevision getSharedTemplateRevision( + com.google.cloud.designcenter.v1.GetSharedTemplateRevisionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetSharedTemplateRevisionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists shared template revisions in a given space.
+     * 
+ */ + public com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsResponse + listSharedTemplateRevisions( + com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListSharedTemplateRevisionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a template revision.
+     * 
+ */ + public com.google.longrunning.Operation createCatalogTemplateRevision( + com.google.cloud.designcenter.v1.CreateCatalogTemplateRevisionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateCatalogTemplateRevisionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details about a template revision.
+     * 
+ */ + public com.google.cloud.designcenter.v1.CatalogTemplateRevision getCatalogTemplateRevision( + com.google.cloud.designcenter.v1.GetCatalogTemplateRevisionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetCatalogTemplateRevisionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists template revisions.
+     * 
+ */ + public com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsResponse + listCatalogTemplateRevisions( + com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListCatalogTemplateRevisionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a template revision.
+     * 
+ */ + public com.google.longrunning.Operation deleteCatalogTemplateRevision( + com.google.cloud.designcenter.v1.DeleteCatalogTemplateRevisionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteCatalogTemplateRevisionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates an application.
+     * 
+ */ + public com.google.cloud.designcenter.v1.Application createApplication( + com.google.cloud.designcenter.v1.CreateApplicationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateApplicationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details about an application.
+     * 
+ */ + public com.google.cloud.designcenter.v1.Application getApplication( + com.google.cloud.designcenter.v1.GetApplicationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetApplicationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists applications in a given space.
+     * 
+ */ + public com.google.cloud.designcenter.v1.ListApplicationsResponse listApplications( + com.google.cloud.designcenter.v1.ListApplicationsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListApplicationsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates an application.
+     * 
+ */ + public com.google.cloud.designcenter.v1.Application updateApplication( + com.google.cloud.designcenter.v1.UpdateApplicationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateApplicationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes an application.
+     * 
+ */ + public com.google.longrunning.Operation deleteApplication( + com.google.cloud.designcenter.v1.DeleteApplicationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteApplicationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deploys an application.
+     * 
+ */ + public com.google.longrunning.Operation deployApplication( + com.google.cloud.designcenter.v1.DeployApplicationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeployApplicationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Previews deployment of an application.
+     * 
+ */ + public com.google.longrunning.Operation previewApplication( + com.google.cloud.designcenter.v1.PreviewApplicationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getPreviewApplicationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Fetches the assessment report of a deployed application if present.
+     * 
+ */ + public com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportResponse + fetchApplicationAssessmentReport( + com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getFetchApplicationAssessmentReportMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Generate Assessment Reports of an application.
+     * 
+ */ + public com.google.longrunning.Operation generateApplicationAssessmentReport( + com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGenerateApplicationAssessmentReportMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Generate Assessment Reports of an application template.
+     * 
+ */ + public com.google.longrunning.Operation generateApplicationTemplateAssessmentReport( + com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), + getGenerateApplicationTemplateAssessmentReportMethod(), + getCallOptions(), + request); + } + + /** + * + * + *
+     * Deprecated: Use GenerateTerraformPlanAssessmentReport instead.
+     * Generate a best practice report for a given Terraform plan.
+     * 
+ */ + @java.lang.Deprecated + public com.google.longrunning.Operation generateAssessmentReport( + com.google.cloud.designcenter.v1.GenerateAssessmentReportRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGenerateAssessmentReportMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Generate a Terraform plan assessment report for a given Terraform plan.
+     * 
+ */ + public com.google.longrunning.Operation generateTerraformPlanAssessmentReport( + com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), + getGenerateTerraformPlanAssessmentReportMethod(), + getCallOptions(), + request); + } + + /** + * + * + *
+     * Policy related APIs.
+     * Get a policy for an application template.
+     * 
+ */ + public com.google.cloud.designcenter.v1.Policy getPolicy( + com.google.cloud.designcenter.v1.GetPolicyRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists policies for an application template.
+     * 
+ */ + public com.google.cloud.designcenter.v1.ListPoliciesResponse listPolicies( + com.google.cloud.designcenter.v1.ListPoliciesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListPoliciesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a policy for an application template.
+     * 
+ */ + public com.google.cloud.designcenter.v1.Policy createPolicy( + com.google.cloud.designcenter.v1.CreatePolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreatePolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a policy.
+     * 
+ */ + public com.google.cloud.designcenter.v1.Policy updatePolicy( + com.google.cloud.designcenter.v1.UpdatePolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdatePolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a policy.
+     * 
+ */ + public com.google.protobuf.Empty deletePolicy( + com.google.cloud.designcenter.v1.DeletePolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeletePolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Fetches all frameworks for assessment report.
+     * 
+ */ + public com.google.cloud.designcenter.v1.FetchFrameworksResponse fetchFrameworks( + com.google.cloud.designcenter.v1.FetchFrameworksRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getFetchFrameworksMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Generates Terraform files for an application.
+     * 
+ */ + public com.google.cloud.designcenter.v1.GenerateApplicationIaCResponse generateApplicationIaC( + com.google.cloud.designcenter.v1.GenerateApplicationIaCRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGenerateApplicationIaCMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Exports Terraform files for an application asynchronously.
+     * 
+ */ + public com.google.longrunning.Operation exportApplicationIaC( + com.google.cloud.designcenter.v1.ExportApplicationIaCRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getExportApplicationIaCMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Imports IaC for an application template.
+     * 
+ */ + public com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse + importApplicationTemplateIaC( + com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getImportApplicationTemplateIaCMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Ingests IaC for an application template asynchronously.
+     * 
+ */ + public com.google.longrunning.Operation ingestApplicationTemplateIaC( + com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getIngestApplicationTemplateIaCMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Imports IaC for an application resource.
+     * 
+ */ + public com.google.cloud.designcenter.v1.ImportApplicationIaCResponse importApplicationIaC( + com.google.cloud.designcenter.v1.ImportApplicationIaCRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getImportApplicationIaCMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Register deployed resources from terraform state file with App Hub
+     * without needing a space.
+     * 
+ */ + public com.google.longrunning.Operation registerAppHubApplicationResources( + com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getRegisterAppHubApplicationResourcesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists application template system revisions in a given application
+     * template.
+     * 
+ */ + public com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsResponse + listApplicationTemplateSystemRevisions( + com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), + getListApplicationTemplateSystemRevisionsMethod(), + getCallOptions(), + request); + } + + /** + * + * + *
+     * Gets the given application template system revision.
+     * 
+ */ + public com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision + getApplicationTemplateSystemRevision( + com.google.cloud.designcenter.v1.GetApplicationTemplateSystemRevisionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetApplicationTemplateSystemRevisionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets recommended IAM roles for an application.
+     * Evaluates the infrastructure resources defined by an application (including
+     * its template configuration and parameters) to determine the set of IAM
+     * roles and Google Cloud APIs that you must configure before you deploy
+     * across target projects.
+     * The operation is asynchronous and returns a `google.longrunning.Operation`.
+     * Upon completion, the operation result contains a
+     * `RecommendIAMRolesResponse` with project-level IAM role and API
+     * recommendations.
+     * 
+ */ + public com.google.longrunning.Operation recommendIAMRoles( + com.google.cloud.designcenter.v1.RecommendIAMRolesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getRecommendIAMRolesMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service DesignCenter. + * + *
+   * Service describing handlers for resources
+   * 
+ */ + public static final class DesignCenterBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private DesignCenterBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DesignCenterBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DesignCenterBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Gets details about a space.
+     * 
+ */ + public com.google.cloud.designcenter.v1.Space getSpace( + com.google.cloud.designcenter.v1.GetSpaceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSpaceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists spaces in a given project and location.
+     * 
+ */ + public com.google.cloud.designcenter.v1.ListSpacesResponse listSpaces( + com.google.cloud.designcenter.v1.ListSpacesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSpacesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a space.
+     * 
+ */ + public com.google.cloud.designcenter.v1.Space createSpace( + com.google.cloud.designcenter.v1.CreateSpaceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateSpaceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a space.
+     * 
+ */ + public com.google.cloud.designcenter.v1.Space updateSpace( + com.google.cloud.designcenter.v1.UpdateSpaceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateSpaceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a space.
+     * 
+ */ + public com.google.protobuf.Empty deleteSpace( + com.google.cloud.designcenter.v1.DeleteSpaceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteSpaceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details about an application template.
+     * 
+ */ + public com.google.cloud.designcenter.v1.ApplicationTemplate getApplicationTemplate( + com.google.cloud.designcenter.v1.GetApplicationTemplateRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetApplicationTemplateMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists application templates in a given space.
+     * 
+ */ + public com.google.cloud.designcenter.v1.ListApplicationTemplatesResponse + listApplicationTemplates( + com.google.cloud.designcenter.v1.ListApplicationTemplatesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListApplicationTemplatesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates an application template.
+     * 
+ */ + public com.google.cloud.designcenter.v1.ApplicationTemplate createApplicationTemplate( + com.google.cloud.designcenter.v1.CreateApplicationTemplateRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateApplicationTemplateMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates an application template.
+     * 
+ */ + public com.google.cloud.designcenter.v1.ApplicationTemplate updateApplicationTemplate( + com.google.cloud.designcenter.v1.UpdateApplicationTemplateRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateApplicationTemplateMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Imports to an existing application template from a given shared template.
+     * 
+ */ + public com.google.cloud.designcenter.v1.ApplicationTemplate importApplicationTemplate( + com.google.cloud.designcenter.v1.ImportApplicationTemplateRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getImportApplicationTemplateMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes an application template.
+     * 
+ */ + public com.google.protobuf.Empty deleteApplicationTemplate( + com.google.cloud.designcenter.v1.DeleteApplicationTemplateRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteApplicationTemplateMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Commits an application template to create a new revision.
+     * 
+ */ + public com.google.cloud.designcenter.v1.ApplicationTemplateRevision commitApplicationTemplate( + com.google.cloud.designcenter.v1.CommitApplicationTemplateRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCommitApplicationTemplateMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Snapshots an application template to create a new revision asynchronously.
+     * 
+ */ + public com.google.longrunning.Operation snapshotApplicationTemplate( + com.google.cloud.designcenter.v1.SnapshotApplicationTemplateRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSnapshotApplicationTemplateMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Generates Terraform files for an application template.
+     * This is a SYNCHRONOUS operation and returns the generated IaC
+     * directly in the response. It
+     * does NOT download external module sources; it only uses remote sources.
+     * 
+ */ + public com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCResponse + generateApplicationTemplateIaC( + com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGenerateApplicationTemplateIaCMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Exports Terraform files for an application template. The generated
+     * modules can have remote sources or local sources downloaded from remote.
+     * This is an ASYNCHRONOUS operation that returns a Long Running Operation.
+     * 
+ */ + public com.google.longrunning.Operation exportApplicationTemplateIaC( + com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getExportApplicationTemplateIaCMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Generates Terraform files for an application template revision.
+     * This is a SYNCHRONOUS operation and returns the generated IaC
+     * directly in the response. It
+     * does NOT download external module sources; it only uses remote sources.
+     * 
+ */ + public com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCResponse + generateApplicationTemplateRevisionIaC( + com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), + getGenerateApplicationTemplateRevisionIaCMethod(), + getCallOptions(), + request); + } + + /** + * + * + *
+     * Exports Terraform files for an application template revision. The generated
+     * modules can have remote sources or local sources downloaded from remote.
+     * This is an ASYNCHRONOUS operation that returns a Long Running Operation.
+     * 
+ */ + public com.google.longrunning.Operation exportApplicationTemplateRevisionIaC( + com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getExportApplicationTemplateRevisionIaCMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details about a Component.
+     * 
+ */ + public com.google.cloud.designcenter.v1.Component getComponent( + com.google.cloud.designcenter.v1.GetComponentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetComponentMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists components in an application template.
+     * 
+ */ + public com.google.cloud.designcenter.v1.ListComponentsResponse listComponents( + com.google.cloud.designcenter.v1.ListComponentsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListComponentsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a component.
+     * 
+ */ + public com.google.cloud.designcenter.v1.Component createComponent( + com.google.cloud.designcenter.v1.CreateComponentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateComponentMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a component.
+     * 
+ */ + public com.google.cloud.designcenter.v1.Component updateComponent( + com.google.cloud.designcenter.v1.UpdateComponentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateComponentMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a component.
+     * 
+ */ + public com.google.protobuf.Empty deleteComponent( + com.google.cloud.designcenter.v1.DeleteComponentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteComponentMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details about a connection.
+     * 
+ */ + public com.google.cloud.designcenter.v1.Connection getConnection( + com.google.cloud.designcenter.v1.GetConnectionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetConnectionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists connections in an application template.
+     * 
+ */ + public com.google.cloud.designcenter.v1.ListConnectionsResponse listConnections( + com.google.cloud.designcenter.v1.ListConnectionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListConnectionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a connection.
+     * 
+ */ + public com.google.cloud.designcenter.v1.Connection createConnection( + com.google.cloud.designcenter.v1.CreateConnectionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateConnectionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a connection.
+     * 
+ */ + public com.google.cloud.designcenter.v1.Connection updateConnection( + com.google.cloud.designcenter.v1.UpdateConnectionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateConnectionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a connection.
+     * 
+ */ + public com.google.protobuf.Empty deleteConnection( + com.google.cloud.designcenter.v1.DeleteConnectionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteConnectionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details about an application template revision.
+     * 
+ */ + public com.google.cloud.designcenter.v1.ApplicationTemplateRevision + getApplicationTemplateRevision( + com.google.cloud.designcenter.v1.GetApplicationTemplateRevisionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetApplicationTemplateRevisionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists application template revisions in a given application template.
+     * 
+ */ + public com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsResponse + listApplicationTemplateRevisions( + com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListApplicationTemplateRevisionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes an application template revision.
+     * 
+ */ + public com.google.protobuf.Empty deleteApplicationTemplateRevision( + com.google.cloud.designcenter.v1.DeleteApplicationTemplateRevisionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteApplicationTemplateRevisionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details about a catalog.
+     * 
+ */ + public com.google.cloud.designcenter.v1.Catalog getCatalog( + com.google.cloud.designcenter.v1.GetCatalogRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetCatalogMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists catalogs in a given space.
+     * 
+ */ + public com.google.cloud.designcenter.v1.ListCatalogsResponse listCatalogs( + com.google.cloud.designcenter.v1.ListCatalogsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListCatalogsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a catalog.
+     * 
+ */ + public com.google.cloud.designcenter.v1.Catalog createCatalog( + com.google.cloud.designcenter.v1.CreateCatalogRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateCatalogMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a catalog.
+     * 
+ */ + public com.google.cloud.designcenter.v1.Catalog updateCatalog( + com.google.cloud.designcenter.v1.UpdateCatalogRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateCatalogMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a catalog.
+     * 
+ */ + public com.google.longrunning.Operation deleteCatalog( + com.google.cloud.designcenter.v1.DeleteCatalogRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteCatalogMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Adds a template to a catalog.
+     * 
+ */ + public com.google.cloud.designcenter.v1.CatalogTemplate createCatalogTemplate( + com.google.cloud.designcenter.v1.CreateCatalogTemplateRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateCatalogTemplateMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a catalog template.
+     * 
+ */ + public com.google.cloud.designcenter.v1.CatalogTemplate getCatalogTemplate( + com.google.cloud.designcenter.v1.GetCatalogTemplateRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetCatalogTemplateMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists catalog templates.
+     * 
+ */ + public com.google.cloud.designcenter.v1.ListCatalogTemplatesResponse listCatalogTemplates( + com.google.cloud.designcenter.v1.ListCatalogTemplatesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListCatalogTemplatesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a catalog template resource.
+     * 
+ */ + public com.google.cloud.designcenter.v1.CatalogTemplate updateCatalogTemplate( + com.google.cloud.designcenter.v1.UpdateCatalogTemplateRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateCatalogTemplateMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a catalog template.
+     * 
+ */ + public com.google.longrunning.Operation deleteCatalogTemplate( + com.google.cloud.designcenter.v1.DeleteCatalogTemplateRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteCatalogTemplateMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Shares a catalog from one space to another space.
+     * 
+ */ + public com.google.longrunning.Operation createShare( + com.google.cloud.designcenter.v1.CreateShareRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateShareMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists catalog share objects for the space.
+     * 
+ */ + public com.google.cloud.designcenter.v1.ListSharesResponse listShares( + com.google.cloud.designcenter.v1.ListSharesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSharesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Get catalog share object for the space.
+     * 
+ */ + public com.google.cloud.designcenter.v1.Share getShare( + com.google.cloud.designcenter.v1.GetShareRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetShareMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a catalog share.
+     * 
+ */ + public com.google.longrunning.Operation deleteShare( + com.google.cloud.designcenter.v1.DeleteShareRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteShareMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Synchronizes a share and updates the destination workspace to reflect.
+     * reflect the most recent changes to the catalog.
+     * 
+ */ + public com.google.longrunning.Operation syncShare( + com.google.cloud.designcenter.v1.SyncShareRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSyncShareMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details about a shared template.
+     * 
+ */ + public com.google.cloud.designcenter.v1.SharedTemplate getSharedTemplate( + com.google.cloud.designcenter.v1.GetSharedTemplateRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSharedTemplateMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists shared templates in a given space.
+     * 
+ */ + public com.google.cloud.designcenter.v1.ListSharedTemplatesResponse listSharedTemplates( + com.google.cloud.designcenter.v1.ListSharedTemplatesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSharedTemplatesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details about a shared template revision.
+     * 
+ */ + public com.google.cloud.designcenter.v1.SharedTemplateRevision getSharedTemplateRevision( + com.google.cloud.designcenter.v1.GetSharedTemplateRevisionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSharedTemplateRevisionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists shared template revisions in a given space.
+     * 
+ */ + public com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsResponse + listSharedTemplateRevisions( + com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSharedTemplateRevisionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a template revision.
+     * 
+ */ + public com.google.longrunning.Operation createCatalogTemplateRevision( + com.google.cloud.designcenter.v1.CreateCatalogTemplateRevisionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateCatalogTemplateRevisionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details about a template revision.
+     * 
+ */ + public com.google.cloud.designcenter.v1.CatalogTemplateRevision getCatalogTemplateRevision( + com.google.cloud.designcenter.v1.GetCatalogTemplateRevisionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetCatalogTemplateRevisionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists template revisions.
+     * 
+ */ + public com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsResponse + listCatalogTemplateRevisions( + com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListCatalogTemplateRevisionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a template revision.
+     * 
+ */ + public com.google.longrunning.Operation deleteCatalogTemplateRevision( + com.google.cloud.designcenter.v1.DeleteCatalogTemplateRevisionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteCatalogTemplateRevisionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates an application.
+     * 
+ */ + public com.google.cloud.designcenter.v1.Application createApplication( + com.google.cloud.designcenter.v1.CreateApplicationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateApplicationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details about an application.
+     * 
+ */ + public com.google.cloud.designcenter.v1.Application getApplication( + com.google.cloud.designcenter.v1.GetApplicationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetApplicationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists applications in a given space.
+     * 
+ */ + public com.google.cloud.designcenter.v1.ListApplicationsResponse listApplications( + com.google.cloud.designcenter.v1.ListApplicationsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListApplicationsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates an application.
+     * 
+ */ + public com.google.cloud.designcenter.v1.Application updateApplication( + com.google.cloud.designcenter.v1.UpdateApplicationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateApplicationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes an application.
+     * 
+ */ + public com.google.longrunning.Operation deleteApplication( + com.google.cloud.designcenter.v1.DeleteApplicationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteApplicationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deploys an application.
+     * 
+ */ + public com.google.longrunning.Operation deployApplication( + com.google.cloud.designcenter.v1.DeployApplicationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeployApplicationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Previews deployment of an application.
+     * 
+ */ + public com.google.longrunning.Operation previewApplication( + com.google.cloud.designcenter.v1.PreviewApplicationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getPreviewApplicationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Fetches the assessment report of a deployed application if present.
+     * 
+ */ + public com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportResponse + fetchApplicationAssessmentReport( + com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getFetchApplicationAssessmentReportMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Generate Assessment Reports of an application.
+     * 
+ */ + public com.google.longrunning.Operation generateApplicationAssessmentReport( + com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGenerateApplicationAssessmentReportMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Generate Assessment Reports of an application template.
+     * 
+ */ + public com.google.longrunning.Operation generateApplicationTemplateAssessmentReport( + com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), + getGenerateApplicationTemplateAssessmentReportMethod(), + getCallOptions(), + request); + } + + /** + * + * + *
+     * Deprecated: Use GenerateTerraformPlanAssessmentReport instead.
+     * Generate a best practice report for a given Terraform plan.
+     * 
+ */ + @java.lang.Deprecated + public com.google.longrunning.Operation generateAssessmentReport( + com.google.cloud.designcenter.v1.GenerateAssessmentReportRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGenerateAssessmentReportMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Generate a Terraform plan assessment report for a given Terraform plan.
+     * 
+ */ + public com.google.longrunning.Operation generateTerraformPlanAssessmentReport( + com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), + getGenerateTerraformPlanAssessmentReportMethod(), + getCallOptions(), + request); + } + + /** + * + * + *
+     * Policy related APIs.
+     * Get a policy for an application template.
+     * 
+ */ + public com.google.cloud.designcenter.v1.Policy getPolicy( + com.google.cloud.designcenter.v1.GetPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists policies for an application template.
+     * 
+ */ + public com.google.cloud.designcenter.v1.ListPoliciesResponse listPolicies( + com.google.cloud.designcenter.v1.ListPoliciesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListPoliciesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a policy for an application template.
+     * 
+ */ + public com.google.cloud.designcenter.v1.Policy createPolicy( + com.google.cloud.designcenter.v1.CreatePolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreatePolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a policy.
+     * 
+ */ + public com.google.cloud.designcenter.v1.Policy updatePolicy( + com.google.cloud.designcenter.v1.UpdatePolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdatePolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a policy.
+     * 
+ */ + public com.google.protobuf.Empty deletePolicy( + com.google.cloud.designcenter.v1.DeletePolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeletePolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Fetches all frameworks for assessment report.
+     * 
+ */ + public com.google.cloud.designcenter.v1.FetchFrameworksResponse fetchFrameworks( + com.google.cloud.designcenter.v1.FetchFrameworksRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getFetchFrameworksMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Generates Terraform files for an application.
+     * 
+ */ + public com.google.cloud.designcenter.v1.GenerateApplicationIaCResponse generateApplicationIaC( + com.google.cloud.designcenter.v1.GenerateApplicationIaCRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGenerateApplicationIaCMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Exports Terraform files for an application asynchronously.
+     * 
+ */ + public com.google.longrunning.Operation exportApplicationIaC( + com.google.cloud.designcenter.v1.ExportApplicationIaCRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getExportApplicationIaCMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Imports IaC for an application template.
+     * 
+ */ + public com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse + importApplicationTemplateIaC( + com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getImportApplicationTemplateIaCMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Ingests IaC for an application template asynchronously.
+     * 
+ */ + public com.google.longrunning.Operation ingestApplicationTemplateIaC( + com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getIngestApplicationTemplateIaCMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Imports IaC for an application resource.
+     * 
+ */ + public com.google.cloud.designcenter.v1.ImportApplicationIaCResponse importApplicationIaC( + com.google.cloud.designcenter.v1.ImportApplicationIaCRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getImportApplicationIaCMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Register deployed resources from terraform state file with App Hub
+     * without needing a space.
+     * 
+ */ + public com.google.longrunning.Operation registerAppHubApplicationResources( + com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRegisterAppHubApplicationResourcesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists application template system revisions in a given application
+     * template.
+     * 
+ */ + public com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsResponse + listApplicationTemplateSystemRevisions( + com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), + getListApplicationTemplateSystemRevisionsMethod(), + getCallOptions(), + request); + } + + /** + * + * + *
+     * Gets the given application template system revision.
+     * 
+ */ + public com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision + getApplicationTemplateSystemRevision( + com.google.cloud.designcenter.v1.GetApplicationTemplateSystemRevisionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetApplicationTemplateSystemRevisionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets recommended IAM roles for an application.
+     * Evaluates the infrastructure resources defined by an application (including
+     * its template configuration and parameters) to determine the set of IAM
+     * roles and Google Cloud APIs that you must configure before you deploy
+     * across target projects.
+     * The operation is asynchronous and returns a `google.longrunning.Operation`.
+     * Upon completion, the operation result contains a
+     * `RecommendIAMRolesResponse` with project-level IAM role and API
+     * recommendations.
+     * 
+ */ + public com.google.longrunning.Operation recommendIAMRoles( + com.google.cloud.designcenter.v1.RecommendIAMRolesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRecommendIAMRolesMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service DesignCenter. + * + *
+   * Service describing handlers for resources
+   * 
+ */ + public static final class DesignCenterFutureStub + extends io.grpc.stub.AbstractFutureStub { + private DesignCenterFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DesignCenterFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DesignCenterFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Gets details about a space.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.designcenter.v1.Space> + getSpace(com.google.cloud.designcenter.v1.GetSpaceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSpaceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists spaces in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.designcenter.v1.ListSpacesResponse> + listSpaces(com.google.cloud.designcenter.v1.ListSpacesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListSpacesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a space.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.designcenter.v1.Space> + createSpace(com.google.cloud.designcenter.v1.CreateSpaceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateSpaceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a space.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.designcenter.v1.Space> + updateSpace(com.google.cloud.designcenter.v1.UpdateSpaceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateSpaceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a space.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteSpace(com.google.cloud.designcenter.v1.DeleteSpaceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteSpaceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets details about an application template.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.designcenter.v1.ApplicationTemplate> + getApplicationTemplate( + com.google.cloud.designcenter.v1.GetApplicationTemplateRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetApplicationTemplateMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists application templates in a given space.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.designcenter.v1.ListApplicationTemplatesResponse> + listApplicationTemplates( + com.google.cloud.designcenter.v1.ListApplicationTemplatesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListApplicationTemplatesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates an application template.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.designcenter.v1.ApplicationTemplate> + createApplicationTemplate( + com.google.cloud.designcenter.v1.CreateApplicationTemplateRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateApplicationTemplateMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates an application template.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.designcenter.v1.ApplicationTemplate> + updateApplicationTemplate( + com.google.cloud.designcenter.v1.UpdateApplicationTemplateRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateApplicationTemplateMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Imports to an existing application template from a given shared template.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.designcenter.v1.ApplicationTemplate> + importApplicationTemplate( + com.google.cloud.designcenter.v1.ImportApplicationTemplateRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getImportApplicationTemplateMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes an application template.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteApplicationTemplate( + com.google.cloud.designcenter.v1.DeleteApplicationTemplateRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteApplicationTemplateMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Commits an application template to create a new revision.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.designcenter.v1.ApplicationTemplateRevision> + commitApplicationTemplate( + com.google.cloud.designcenter.v1.CommitApplicationTemplateRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCommitApplicationTemplateMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Snapshots an application template to create a new revision asynchronously.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + snapshotApplicationTemplate( + com.google.cloud.designcenter.v1.SnapshotApplicationTemplateRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSnapshotApplicationTemplateMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Generates Terraform files for an application template.
+     * This is a SYNCHRONOUS operation and returns the generated IaC
+     * directly in the response. It
+     * does NOT download external module sources; it only uses remote sources.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCResponse> + generateApplicationTemplateIaC( + com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGenerateApplicationTemplateIaCMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Exports Terraform files for an application template. The generated
+     * modules can have remote sources or local sources downloaded from remote.
+     * This is an ASYNCHRONOUS operation that returns a Long Running Operation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + exportApplicationTemplateIaC( + com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getExportApplicationTemplateIaCMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Generates Terraform files for an application template revision.
+     * This is a SYNCHRONOUS operation and returns the generated IaC
+     * directly in the response. It
+     * does NOT download external module sources; it only uses remote sources.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCResponse> + generateApplicationTemplateRevisionIaC( + com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGenerateApplicationTemplateRevisionIaCMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Exports Terraform files for an application template revision. The generated
+     * modules can have remote sources or local sources downloaded from remote.
+     * This is an ASYNCHRONOUS operation that returns a Long Running Operation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + exportApplicationTemplateRevisionIaC( + com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getExportApplicationTemplateRevisionIaCMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Gets details about a Component.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.designcenter.v1.Component> + getComponent(com.google.cloud.designcenter.v1.GetComponentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetComponentMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists components in an application template.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.designcenter.v1.ListComponentsResponse> + listComponents(com.google.cloud.designcenter.v1.ListComponentsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListComponentsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a component.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.designcenter.v1.Component> + createComponent(com.google.cloud.designcenter.v1.CreateComponentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateComponentMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a component.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.designcenter.v1.Component> + updateComponent(com.google.cloud.designcenter.v1.UpdateComponentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateComponentMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a component.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteComponent(com.google.cloud.designcenter.v1.DeleteComponentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteComponentMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets details about a connection.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.designcenter.v1.Connection> + getConnection(com.google.cloud.designcenter.v1.GetConnectionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetConnectionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists connections in an application template.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.designcenter.v1.ListConnectionsResponse> + listConnections(com.google.cloud.designcenter.v1.ListConnectionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListConnectionsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a connection.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.designcenter.v1.Connection> + createConnection(com.google.cloud.designcenter.v1.CreateConnectionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateConnectionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a connection.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.designcenter.v1.Connection> + updateConnection(com.google.cloud.designcenter.v1.UpdateConnectionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateConnectionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a connection.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteConnection(com.google.cloud.designcenter.v1.DeleteConnectionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteConnectionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets details about an application template revision.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.designcenter.v1.ApplicationTemplateRevision> + getApplicationTemplateRevision( + com.google.cloud.designcenter.v1.GetApplicationTemplateRevisionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetApplicationTemplateRevisionMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Lists application template revisions in a given application template.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsResponse> + listApplicationTemplateRevisions( + com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListApplicationTemplateRevisionsMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Deletes an application template revision.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteApplicationTemplateRevision( + com.google.cloud.designcenter.v1.DeleteApplicationTemplateRevisionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteApplicationTemplateRevisionMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Gets details about a catalog.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.designcenter.v1.Catalog> + getCatalog(com.google.cloud.designcenter.v1.GetCatalogRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetCatalogMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists catalogs in a given space.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.designcenter.v1.ListCatalogsResponse> + listCatalogs(com.google.cloud.designcenter.v1.ListCatalogsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListCatalogsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a catalog.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.designcenter.v1.Catalog> + createCatalog(com.google.cloud.designcenter.v1.CreateCatalogRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateCatalogMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a catalog.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.designcenter.v1.Catalog> + updateCatalog(com.google.cloud.designcenter.v1.UpdateCatalogRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateCatalogMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a catalog.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteCatalog(com.google.cloud.designcenter.v1.DeleteCatalogRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteCatalogMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Adds a template to a catalog.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.designcenter.v1.CatalogTemplate> + createCatalogTemplate( + com.google.cloud.designcenter.v1.CreateCatalogTemplateRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateCatalogTemplateMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a catalog template.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.designcenter.v1.CatalogTemplate> + getCatalogTemplate(com.google.cloud.designcenter.v1.GetCatalogTemplateRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetCatalogTemplateMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists catalog templates.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.designcenter.v1.ListCatalogTemplatesResponse> + listCatalogTemplates(com.google.cloud.designcenter.v1.ListCatalogTemplatesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListCatalogTemplatesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a catalog template resource.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.designcenter.v1.CatalogTemplate> + updateCatalogTemplate( + com.google.cloud.designcenter.v1.UpdateCatalogTemplateRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateCatalogTemplateMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a catalog template.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteCatalogTemplate( + com.google.cloud.designcenter.v1.DeleteCatalogTemplateRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteCatalogTemplateMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Shares a catalog from one space to another space.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createShare(com.google.cloud.designcenter.v1.CreateShareRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateShareMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists catalog share objects for the space.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.designcenter.v1.ListSharesResponse> + listShares(com.google.cloud.designcenter.v1.ListSharesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListSharesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Get catalog share object for the space.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.designcenter.v1.Share> + getShare(com.google.cloud.designcenter.v1.GetShareRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetShareMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a catalog share.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteShare(com.google.cloud.designcenter.v1.DeleteShareRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteShareMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Synchronizes a share and updates the destination workspace to reflect.
+     * reflect the most recent changes to the catalog.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + syncShare(com.google.cloud.designcenter.v1.SyncShareRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSyncShareMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets details about a shared template.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.designcenter.v1.SharedTemplate> + getSharedTemplate(com.google.cloud.designcenter.v1.GetSharedTemplateRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSharedTemplateMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists shared templates in a given space.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.designcenter.v1.ListSharedTemplatesResponse> + listSharedTemplates(com.google.cloud.designcenter.v1.ListSharedTemplatesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListSharedTemplatesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets details about a shared template revision.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.designcenter.v1.SharedTemplateRevision> + getSharedTemplateRevision( + com.google.cloud.designcenter.v1.GetSharedTemplateRevisionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSharedTemplateRevisionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists shared template revisions in a given space.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsResponse> + listSharedTemplateRevisions( + com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListSharedTemplateRevisionsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a template revision.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createCatalogTemplateRevision( + com.google.cloud.designcenter.v1.CreateCatalogTemplateRevisionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateCatalogTemplateRevisionMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Gets details about a template revision.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.designcenter.v1.CatalogTemplateRevision> + getCatalogTemplateRevision( + com.google.cloud.designcenter.v1.GetCatalogTemplateRevisionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetCatalogTemplateRevisionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists template revisions.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsResponse> + listCatalogTemplateRevisions( + com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListCatalogTemplateRevisionsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a template revision.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteCatalogTemplateRevision( + com.google.cloud.designcenter.v1.DeleteCatalogTemplateRevisionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteCatalogTemplateRevisionMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Creates an application.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.designcenter.v1.Application> + createApplication(com.google.cloud.designcenter.v1.CreateApplicationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateApplicationMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets details about an application.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.designcenter.v1.Application> + getApplication(com.google.cloud.designcenter.v1.GetApplicationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetApplicationMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists applications in a given space.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.designcenter.v1.ListApplicationsResponse> + listApplications(com.google.cloud.designcenter.v1.ListApplicationsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListApplicationsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates an application.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.designcenter.v1.Application> + updateApplication(com.google.cloud.designcenter.v1.UpdateApplicationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateApplicationMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes an application.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteApplication(com.google.cloud.designcenter.v1.DeleteApplicationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteApplicationMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deploys an application.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deployApplication(com.google.cloud.designcenter.v1.DeployApplicationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeployApplicationMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Previews deployment of an application.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + previewApplication(com.google.cloud.designcenter.v1.PreviewApplicationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getPreviewApplicationMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Fetches the assessment report of a deployed application if present.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportResponse> + fetchApplicationAssessmentReport( + com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getFetchApplicationAssessmentReportMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Generate Assessment Reports of an application.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + generateApplicationAssessmentReport( + com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGenerateApplicationAssessmentReportMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Generate Assessment Reports of an application template.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + generateApplicationTemplateAssessmentReport( + com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel() + .newCall(getGenerateApplicationTemplateAssessmentReportMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Deprecated: Use GenerateTerraformPlanAssessmentReport instead.
+     * Generate a best practice report for a given Terraform plan.
+     * 
+ */ + @java.lang.Deprecated + public com.google.common.util.concurrent.ListenableFuture + generateAssessmentReport( + com.google.cloud.designcenter.v1.GenerateAssessmentReportRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGenerateAssessmentReportMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Generate a Terraform plan assessment report for a given Terraform plan.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + generateTerraformPlanAssessmentReport( + com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGenerateTerraformPlanAssessmentReportMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Policy related APIs.
+     * Get a policy for an application template.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.designcenter.v1.Policy> + getPolicy(com.google.cloud.designcenter.v1.GetPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetPolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists policies for an application template.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.designcenter.v1.ListPoliciesResponse> + listPolicies(com.google.cloud.designcenter.v1.ListPoliciesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListPoliciesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a policy for an application template.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.designcenter.v1.Policy> + createPolicy(com.google.cloud.designcenter.v1.CreatePolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreatePolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a policy.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.designcenter.v1.Policy> + updatePolicy(com.google.cloud.designcenter.v1.UpdatePolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdatePolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a policy.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deletePolicy(com.google.cloud.designcenter.v1.DeletePolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeletePolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Fetches all frameworks for assessment report.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.designcenter.v1.FetchFrameworksResponse> + fetchFrameworks(com.google.cloud.designcenter.v1.FetchFrameworksRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getFetchFrameworksMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Generates Terraform files for an application.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.designcenter.v1.GenerateApplicationIaCResponse> + generateApplicationIaC( + com.google.cloud.designcenter.v1.GenerateApplicationIaCRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGenerateApplicationIaCMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Exports Terraform files for an application asynchronously.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + exportApplicationIaC(com.google.cloud.designcenter.v1.ExportApplicationIaCRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getExportApplicationIaCMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Imports IaC for an application template.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse> + importApplicationTemplateIaC( + com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getImportApplicationTemplateIaCMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Ingests IaC for an application template asynchronously.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + ingestApplicationTemplateIaC( + com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getIngestApplicationTemplateIaCMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Imports IaC for an application resource.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.designcenter.v1.ImportApplicationIaCResponse> + importApplicationIaC(com.google.cloud.designcenter.v1.ImportApplicationIaCRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getImportApplicationIaCMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Register deployed resources from terraform state file with App Hub
+     * without needing a space.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + registerAppHubApplicationResources( + com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRegisterAppHubApplicationResourcesMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Lists application template system revisions in a given application
+     * template.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsResponse> + listApplicationTemplateSystemRevisions( + com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListApplicationTemplateSystemRevisionsMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Gets the given application template system revision.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision> + getApplicationTemplateSystemRevision( + com.google.cloud.designcenter.v1.GetApplicationTemplateSystemRevisionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetApplicationTemplateSystemRevisionMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Gets recommended IAM roles for an application.
+     * Evaluates the infrastructure resources defined by an application (including
+     * its template configuration and parameters) to determine the set of IAM
+     * roles and Google Cloud APIs that you must configure before you deploy
+     * across target projects.
+     * The operation is asynchronous and returns a `google.longrunning.Operation`.
+     * Upon completion, the operation result contains a
+     * `RecommendIAMRolesResponse` with project-level IAM role and API
+     * recommendations.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + recommendIAMRoles(com.google.cloud.designcenter.v1.RecommendIAMRolesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRecommendIAMRolesMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_GET_SPACE = 0; + private static final int METHODID_LIST_SPACES = 1; + private static final int METHODID_CREATE_SPACE = 2; + private static final int METHODID_UPDATE_SPACE = 3; + private static final int METHODID_DELETE_SPACE = 4; + private static final int METHODID_GET_APPLICATION_TEMPLATE = 5; + private static final int METHODID_LIST_APPLICATION_TEMPLATES = 6; + private static final int METHODID_CREATE_APPLICATION_TEMPLATE = 7; + private static final int METHODID_UPDATE_APPLICATION_TEMPLATE = 8; + private static final int METHODID_IMPORT_APPLICATION_TEMPLATE = 9; + private static final int METHODID_DELETE_APPLICATION_TEMPLATE = 10; + private static final int METHODID_COMMIT_APPLICATION_TEMPLATE = 11; + private static final int METHODID_SNAPSHOT_APPLICATION_TEMPLATE = 12; + private static final int METHODID_GENERATE_APPLICATION_TEMPLATE_IA_C = 13; + private static final int METHODID_EXPORT_APPLICATION_TEMPLATE_IA_C = 14; + private static final int METHODID_GENERATE_APPLICATION_TEMPLATE_REVISION_IA_C = 15; + private static final int METHODID_EXPORT_APPLICATION_TEMPLATE_REVISION_IA_C = 16; + private static final int METHODID_GET_COMPONENT = 17; + private static final int METHODID_LIST_COMPONENTS = 18; + private static final int METHODID_CREATE_COMPONENT = 19; + private static final int METHODID_UPDATE_COMPONENT = 20; + private static final int METHODID_DELETE_COMPONENT = 21; + private static final int METHODID_GET_CONNECTION = 22; + private static final int METHODID_LIST_CONNECTIONS = 23; + private static final int METHODID_CREATE_CONNECTION = 24; + private static final int METHODID_UPDATE_CONNECTION = 25; + private static final int METHODID_DELETE_CONNECTION = 26; + private static final int METHODID_GET_APPLICATION_TEMPLATE_REVISION = 27; + private static final int METHODID_LIST_APPLICATION_TEMPLATE_REVISIONS = 28; + private static final int METHODID_DELETE_APPLICATION_TEMPLATE_REVISION = 29; + private static final int METHODID_GET_CATALOG = 30; + private static final int METHODID_LIST_CATALOGS = 31; + private static final int METHODID_CREATE_CATALOG = 32; + private static final int METHODID_UPDATE_CATALOG = 33; + private static final int METHODID_DELETE_CATALOG = 34; + private static final int METHODID_CREATE_CATALOG_TEMPLATE = 35; + private static final int METHODID_GET_CATALOG_TEMPLATE = 36; + private static final int METHODID_LIST_CATALOG_TEMPLATES = 37; + private static final int METHODID_UPDATE_CATALOG_TEMPLATE = 38; + private static final int METHODID_DELETE_CATALOG_TEMPLATE = 39; + private static final int METHODID_CREATE_SHARE = 40; + private static final int METHODID_LIST_SHARES = 41; + private static final int METHODID_GET_SHARE = 42; + private static final int METHODID_DELETE_SHARE = 43; + private static final int METHODID_SYNC_SHARE = 44; + private static final int METHODID_GET_SHARED_TEMPLATE = 45; + private static final int METHODID_LIST_SHARED_TEMPLATES = 46; + private static final int METHODID_GET_SHARED_TEMPLATE_REVISION = 47; + private static final int METHODID_LIST_SHARED_TEMPLATE_REVISIONS = 48; + private static final int METHODID_CREATE_CATALOG_TEMPLATE_REVISION = 49; + private static final int METHODID_GET_CATALOG_TEMPLATE_REVISION = 50; + private static final int METHODID_LIST_CATALOG_TEMPLATE_REVISIONS = 51; + private static final int METHODID_DELETE_CATALOG_TEMPLATE_REVISION = 52; + private static final int METHODID_CREATE_APPLICATION = 53; + private static final int METHODID_GET_APPLICATION = 54; + private static final int METHODID_LIST_APPLICATIONS = 55; + private static final int METHODID_UPDATE_APPLICATION = 56; + private static final int METHODID_DELETE_APPLICATION = 57; + private static final int METHODID_DEPLOY_APPLICATION = 58; + private static final int METHODID_PREVIEW_APPLICATION = 59; + private static final int METHODID_FETCH_APPLICATION_ASSESSMENT_REPORT = 60; + private static final int METHODID_GENERATE_APPLICATION_ASSESSMENT_REPORT = 61; + private static final int METHODID_GENERATE_APPLICATION_TEMPLATE_ASSESSMENT_REPORT = 62; + private static final int METHODID_GENERATE_ASSESSMENT_REPORT = 63; + private static final int METHODID_GENERATE_TERRAFORM_PLAN_ASSESSMENT_REPORT = 64; + private static final int METHODID_GET_POLICY = 65; + private static final int METHODID_LIST_POLICIES = 66; + private static final int METHODID_CREATE_POLICY = 67; + private static final int METHODID_UPDATE_POLICY = 68; + private static final int METHODID_DELETE_POLICY = 69; + private static final int METHODID_FETCH_FRAMEWORKS = 70; + private static final int METHODID_GENERATE_APPLICATION_IA_C = 71; + private static final int METHODID_EXPORT_APPLICATION_IA_C = 72; + private static final int METHODID_IMPORT_APPLICATION_TEMPLATE_IA_C = 73; + private static final int METHODID_INGEST_APPLICATION_TEMPLATE_IA_C = 74; + private static final int METHODID_IMPORT_APPLICATION_IA_C = 75; + private static final int METHODID_REGISTER_APP_HUB_APPLICATION_RESOURCES = 76; + private static final int METHODID_LIST_APPLICATION_TEMPLATE_SYSTEM_REVISIONS = 77; + private static final int METHODID_GET_APPLICATION_TEMPLATE_SYSTEM_REVISION = 78; + private static final int METHODID_RECOMMEND_IAMROLES = 79; + + 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_GET_SPACE: + serviceImpl.getSpace( + (com.google.cloud.designcenter.v1.GetSpaceRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_SPACES: + serviceImpl.listSpaces( + (com.google.cloud.designcenter.v1.ListSpacesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_SPACE: + serviceImpl.createSpace( + (com.google.cloud.designcenter.v1.CreateSpaceRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_SPACE: + serviceImpl.updateSpace( + (com.google.cloud.designcenter.v1.UpdateSpaceRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_SPACE: + serviceImpl.deleteSpace( + (com.google.cloud.designcenter.v1.DeleteSpaceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_APPLICATION_TEMPLATE: + serviceImpl.getApplicationTemplate( + (com.google.cloud.designcenter.v1.GetApplicationTemplateRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_APPLICATION_TEMPLATES: + serviceImpl.listApplicationTemplates( + (com.google.cloud.designcenter.v1.ListApplicationTemplatesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.designcenter.v1.ListApplicationTemplatesResponse>) + responseObserver); + break; + case METHODID_CREATE_APPLICATION_TEMPLATE: + serviceImpl.createApplicationTemplate( + (com.google.cloud.designcenter.v1.CreateApplicationTemplateRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_APPLICATION_TEMPLATE: + serviceImpl.updateApplicationTemplate( + (com.google.cloud.designcenter.v1.UpdateApplicationTemplateRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_IMPORT_APPLICATION_TEMPLATE: + serviceImpl.importApplicationTemplate( + (com.google.cloud.designcenter.v1.ImportApplicationTemplateRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_APPLICATION_TEMPLATE: + serviceImpl.deleteApplicationTemplate( + (com.google.cloud.designcenter.v1.DeleteApplicationTemplateRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_COMMIT_APPLICATION_TEMPLATE: + serviceImpl.commitApplicationTemplate( + (com.google.cloud.designcenter.v1.CommitApplicationTemplateRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.designcenter.v1.ApplicationTemplateRevision>) + responseObserver); + break; + case METHODID_SNAPSHOT_APPLICATION_TEMPLATE: + serviceImpl.snapshotApplicationTemplate( + (com.google.cloud.designcenter.v1.SnapshotApplicationTemplateRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GENERATE_APPLICATION_TEMPLATE_IA_C: + serviceImpl.generateApplicationTemplateIaC( + (com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCResponse>) + responseObserver); + break; + case METHODID_EXPORT_APPLICATION_TEMPLATE_IA_C: + serviceImpl.exportApplicationTemplateIaC( + (com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GENERATE_APPLICATION_TEMPLATE_REVISION_IA_C: + serviceImpl.generateApplicationTemplateRevisionIaC( + (com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.designcenter.v1 + .GenerateApplicationTemplateRevisionIaCResponse>) + responseObserver); + break; + case METHODID_EXPORT_APPLICATION_TEMPLATE_REVISION_IA_C: + serviceImpl.exportApplicationTemplateRevisionIaC( + (com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCRequest) + request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_COMPONENT: + serviceImpl.getComponent( + (com.google.cloud.designcenter.v1.GetComponentRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_COMPONENTS: + serviceImpl.listComponents( + (com.google.cloud.designcenter.v1.ListComponentsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_COMPONENT: + serviceImpl.createComponent( + (com.google.cloud.designcenter.v1.CreateComponentRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_COMPONENT: + serviceImpl.updateComponent( + (com.google.cloud.designcenter.v1.UpdateComponentRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_COMPONENT: + serviceImpl.deleteComponent( + (com.google.cloud.designcenter.v1.DeleteComponentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_CONNECTION: + serviceImpl.getConnection( + (com.google.cloud.designcenter.v1.GetConnectionRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_CONNECTIONS: + serviceImpl.listConnections( + (com.google.cloud.designcenter.v1.ListConnectionsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.designcenter.v1.ListConnectionsResponse>) + responseObserver); + break; + case METHODID_CREATE_CONNECTION: + serviceImpl.createConnection( + (com.google.cloud.designcenter.v1.CreateConnectionRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_CONNECTION: + serviceImpl.updateConnection( + (com.google.cloud.designcenter.v1.UpdateConnectionRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_CONNECTION: + serviceImpl.deleteConnection( + (com.google.cloud.designcenter.v1.DeleteConnectionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_APPLICATION_TEMPLATE_REVISION: + serviceImpl.getApplicationTemplateRevision( + (com.google.cloud.designcenter.v1.GetApplicationTemplateRevisionRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.designcenter.v1.ApplicationTemplateRevision>) + responseObserver); + break; + case METHODID_LIST_APPLICATION_TEMPLATE_REVISIONS: + serviceImpl.listApplicationTemplateRevisions( + (com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsResponse>) + responseObserver); + break; + case METHODID_DELETE_APPLICATION_TEMPLATE_REVISION: + serviceImpl.deleteApplicationTemplateRevision( + (com.google.cloud.designcenter.v1.DeleteApplicationTemplateRevisionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_CATALOG: + serviceImpl.getCatalog( + (com.google.cloud.designcenter.v1.GetCatalogRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_CATALOGS: + serviceImpl.listCatalogs( + (com.google.cloud.designcenter.v1.ListCatalogsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_CATALOG: + serviceImpl.createCatalog( + (com.google.cloud.designcenter.v1.CreateCatalogRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_CATALOG: + serviceImpl.updateCatalog( + (com.google.cloud.designcenter.v1.UpdateCatalogRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_CATALOG: + serviceImpl.deleteCatalog( + (com.google.cloud.designcenter.v1.DeleteCatalogRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_CATALOG_TEMPLATE: + serviceImpl.createCatalogTemplate( + (com.google.cloud.designcenter.v1.CreateCatalogTemplateRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_CATALOG_TEMPLATE: + serviceImpl.getCatalogTemplate( + (com.google.cloud.designcenter.v1.GetCatalogTemplateRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_CATALOG_TEMPLATES: + serviceImpl.listCatalogTemplates( + (com.google.cloud.designcenter.v1.ListCatalogTemplatesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.designcenter.v1.ListCatalogTemplatesResponse>) + responseObserver); + break; + case METHODID_UPDATE_CATALOG_TEMPLATE: + serviceImpl.updateCatalogTemplate( + (com.google.cloud.designcenter.v1.UpdateCatalogTemplateRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_CATALOG_TEMPLATE: + serviceImpl.deleteCatalogTemplate( + (com.google.cloud.designcenter.v1.DeleteCatalogTemplateRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_SHARE: + serviceImpl.createShare( + (com.google.cloud.designcenter.v1.CreateShareRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_SHARES: + serviceImpl.listShares( + (com.google.cloud.designcenter.v1.ListSharesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_SHARE: + serviceImpl.getShare( + (com.google.cloud.designcenter.v1.GetShareRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_SHARE: + serviceImpl.deleteShare( + (com.google.cloud.designcenter.v1.DeleteShareRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SYNC_SHARE: + serviceImpl.syncShare( + (com.google.cloud.designcenter.v1.SyncShareRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_SHARED_TEMPLATE: + serviceImpl.getSharedTemplate( + (com.google.cloud.designcenter.v1.GetSharedTemplateRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_SHARED_TEMPLATES: + serviceImpl.listSharedTemplates( + (com.google.cloud.designcenter.v1.ListSharedTemplatesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.designcenter.v1.ListSharedTemplatesResponse>) + responseObserver); + break; + case METHODID_GET_SHARED_TEMPLATE_REVISION: + serviceImpl.getSharedTemplateRevision( + (com.google.cloud.designcenter.v1.GetSharedTemplateRevisionRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_SHARED_TEMPLATE_REVISIONS: + serviceImpl.listSharedTemplateRevisions( + (com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsResponse>) + responseObserver); + break; + case METHODID_CREATE_CATALOG_TEMPLATE_REVISION: + serviceImpl.createCatalogTemplateRevision( + (com.google.cloud.designcenter.v1.CreateCatalogTemplateRevisionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_CATALOG_TEMPLATE_REVISION: + serviceImpl.getCatalogTemplateRevision( + (com.google.cloud.designcenter.v1.GetCatalogTemplateRevisionRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.designcenter.v1.CatalogTemplateRevision>) + responseObserver); + break; + case METHODID_LIST_CATALOG_TEMPLATE_REVISIONS: + serviceImpl.listCatalogTemplateRevisions( + (com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsResponse>) + responseObserver); + break; + case METHODID_DELETE_CATALOG_TEMPLATE_REVISION: + serviceImpl.deleteCatalogTemplateRevision( + (com.google.cloud.designcenter.v1.DeleteCatalogTemplateRevisionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_APPLICATION: + serviceImpl.createApplication( + (com.google.cloud.designcenter.v1.CreateApplicationRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_APPLICATION: + serviceImpl.getApplication( + (com.google.cloud.designcenter.v1.GetApplicationRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_APPLICATIONS: + serviceImpl.listApplications( + (com.google.cloud.designcenter.v1.ListApplicationsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.designcenter.v1.ListApplicationsResponse>) + responseObserver); + break; + case METHODID_UPDATE_APPLICATION: + serviceImpl.updateApplication( + (com.google.cloud.designcenter.v1.UpdateApplicationRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_APPLICATION: + serviceImpl.deleteApplication( + (com.google.cloud.designcenter.v1.DeleteApplicationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DEPLOY_APPLICATION: + serviceImpl.deployApplication( + (com.google.cloud.designcenter.v1.DeployApplicationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_PREVIEW_APPLICATION: + serviceImpl.previewApplication( + (com.google.cloud.designcenter.v1.PreviewApplicationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_FETCH_APPLICATION_ASSESSMENT_REPORT: + serviceImpl.fetchApplicationAssessmentReport( + (com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportResponse>) + responseObserver); + break; + case METHODID_GENERATE_APPLICATION_ASSESSMENT_REPORT: + serviceImpl.generateApplicationAssessmentReport( + (com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GENERATE_APPLICATION_TEMPLATE_ASSESSMENT_REPORT: + serviceImpl.generateApplicationTemplateAssessmentReport( + (com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportRequest) + request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GENERATE_ASSESSMENT_REPORT: + serviceImpl.generateAssessmentReport( + (com.google.cloud.designcenter.v1.GenerateAssessmentReportRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GENERATE_TERRAFORM_PLAN_ASSESSMENT_REPORT: + serviceImpl.generateTerraformPlanAssessmentReport( + (com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportRequest) + request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_POLICY: + serviceImpl.getPolicy( + (com.google.cloud.designcenter.v1.GetPolicyRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_POLICIES: + serviceImpl.listPolicies( + (com.google.cloud.designcenter.v1.ListPoliciesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_POLICY: + serviceImpl.createPolicy( + (com.google.cloud.designcenter.v1.CreatePolicyRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_POLICY: + serviceImpl.updatePolicy( + (com.google.cloud.designcenter.v1.UpdatePolicyRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_POLICY: + serviceImpl.deletePolicy( + (com.google.cloud.designcenter.v1.DeletePolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_FETCH_FRAMEWORKS: + serviceImpl.fetchFrameworks( + (com.google.cloud.designcenter.v1.FetchFrameworksRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.designcenter.v1.FetchFrameworksResponse>) + responseObserver); + break; + case METHODID_GENERATE_APPLICATION_IA_C: + serviceImpl.generateApplicationIaC( + (com.google.cloud.designcenter.v1.GenerateApplicationIaCRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.designcenter.v1.GenerateApplicationIaCResponse>) + responseObserver); + break; + case METHODID_EXPORT_APPLICATION_IA_C: + serviceImpl.exportApplicationIaC( + (com.google.cloud.designcenter.v1.ExportApplicationIaCRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_IMPORT_APPLICATION_TEMPLATE_IA_C: + serviceImpl.importApplicationTemplateIaC( + (com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse>) + responseObserver); + break; + case METHODID_INGEST_APPLICATION_TEMPLATE_IA_C: + serviceImpl.ingestApplicationTemplateIaC( + (com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_IMPORT_APPLICATION_IA_C: + serviceImpl.importApplicationIaC( + (com.google.cloud.designcenter.v1.ImportApplicationIaCRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.designcenter.v1.ImportApplicationIaCResponse>) + responseObserver); + break; + case METHODID_REGISTER_APP_HUB_APPLICATION_RESOURCES: + serviceImpl.registerAppHubApplicationResources( + (com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_APPLICATION_TEMPLATE_SYSTEM_REVISIONS: + serviceImpl.listApplicationTemplateSystemRevisions( + (com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.designcenter.v1 + .ListApplicationTemplateSystemRevisionsResponse>) + responseObserver); + break; + case METHODID_GET_APPLICATION_TEMPLATE_SYSTEM_REVISION: + serviceImpl.getApplicationTemplateSystemRevision( + (com.google.cloud.designcenter.v1.GetApplicationTemplateSystemRevisionRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision>) + responseObserver); + break; + case METHODID_RECOMMEND_IAMROLES: + serviceImpl.recommendIAMRoles( + (com.google.cloud.designcenter.v1.RecommendIAMRolesRequest) 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( + getGetSpaceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.GetSpaceRequest, + com.google.cloud.designcenter.v1.Space>(service, METHODID_GET_SPACE))) + .addMethod( + getListSpacesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.ListSpacesRequest, + com.google.cloud.designcenter.v1.ListSpacesResponse>( + service, METHODID_LIST_SPACES))) + .addMethod( + getCreateSpaceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.CreateSpaceRequest, + com.google.cloud.designcenter.v1.Space>(service, METHODID_CREATE_SPACE))) + .addMethod( + getUpdateSpaceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.UpdateSpaceRequest, + com.google.cloud.designcenter.v1.Space>(service, METHODID_UPDATE_SPACE))) + .addMethod( + getDeleteSpaceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.DeleteSpaceRequest, com.google.protobuf.Empty>( + service, METHODID_DELETE_SPACE))) + .addMethod( + getGetApplicationTemplateMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.GetApplicationTemplateRequest, + com.google.cloud.designcenter.v1.ApplicationTemplate>( + service, METHODID_GET_APPLICATION_TEMPLATE))) + .addMethod( + getListApplicationTemplatesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.ListApplicationTemplatesRequest, + com.google.cloud.designcenter.v1.ListApplicationTemplatesResponse>( + service, METHODID_LIST_APPLICATION_TEMPLATES))) + .addMethod( + getCreateApplicationTemplateMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.CreateApplicationTemplateRequest, + com.google.cloud.designcenter.v1.ApplicationTemplate>( + service, METHODID_CREATE_APPLICATION_TEMPLATE))) + .addMethod( + getUpdateApplicationTemplateMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.UpdateApplicationTemplateRequest, + com.google.cloud.designcenter.v1.ApplicationTemplate>( + service, METHODID_UPDATE_APPLICATION_TEMPLATE))) + .addMethod( + getImportApplicationTemplateMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.ImportApplicationTemplateRequest, + com.google.cloud.designcenter.v1.ApplicationTemplate>( + service, METHODID_IMPORT_APPLICATION_TEMPLATE))) + .addMethod( + getDeleteApplicationTemplateMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.DeleteApplicationTemplateRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_APPLICATION_TEMPLATE))) + .addMethod( + getCommitApplicationTemplateMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.CommitApplicationTemplateRequest, + com.google.cloud.designcenter.v1.ApplicationTemplateRevision>( + service, METHODID_COMMIT_APPLICATION_TEMPLATE))) + .addMethod( + getSnapshotApplicationTemplateMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.SnapshotApplicationTemplateRequest, + com.google.longrunning.Operation>( + service, METHODID_SNAPSHOT_APPLICATION_TEMPLATE))) + .addMethod( + getGenerateApplicationTemplateIaCMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest, + com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCResponse>( + service, METHODID_GENERATE_APPLICATION_TEMPLATE_IA_C))) + .addMethod( + getExportApplicationTemplateIaCMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCRequest, + com.google.longrunning.Operation>( + service, METHODID_EXPORT_APPLICATION_TEMPLATE_IA_C))) + .addMethod( + getGenerateApplicationTemplateRevisionIaCMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest, + com.google.cloud.designcenter.v1 + .GenerateApplicationTemplateRevisionIaCResponse>( + service, METHODID_GENERATE_APPLICATION_TEMPLATE_REVISION_IA_C))) + .addMethod( + getExportApplicationTemplateRevisionIaCMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCRequest, + com.google.longrunning.Operation>( + service, METHODID_EXPORT_APPLICATION_TEMPLATE_REVISION_IA_C))) + .addMethod( + getGetComponentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.GetComponentRequest, + com.google.cloud.designcenter.v1.Component>(service, METHODID_GET_COMPONENT))) + .addMethod( + getListComponentsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.ListComponentsRequest, + com.google.cloud.designcenter.v1.ListComponentsResponse>( + service, METHODID_LIST_COMPONENTS))) + .addMethod( + getCreateComponentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.CreateComponentRequest, + com.google.cloud.designcenter.v1.Component>( + service, METHODID_CREATE_COMPONENT))) + .addMethod( + getUpdateComponentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.UpdateComponentRequest, + com.google.cloud.designcenter.v1.Component>( + service, METHODID_UPDATE_COMPONENT))) + .addMethod( + getDeleteComponentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.DeleteComponentRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_COMPONENT))) + .addMethod( + getGetConnectionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.GetConnectionRequest, + com.google.cloud.designcenter.v1.Connection>(service, METHODID_GET_CONNECTION))) + .addMethod( + getListConnectionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.ListConnectionsRequest, + com.google.cloud.designcenter.v1.ListConnectionsResponse>( + service, METHODID_LIST_CONNECTIONS))) + .addMethod( + getCreateConnectionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.CreateConnectionRequest, + com.google.cloud.designcenter.v1.Connection>( + service, METHODID_CREATE_CONNECTION))) + .addMethod( + getUpdateConnectionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.UpdateConnectionRequest, + com.google.cloud.designcenter.v1.Connection>( + service, METHODID_UPDATE_CONNECTION))) + .addMethod( + getDeleteConnectionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.DeleteConnectionRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_CONNECTION))) + .addMethod( + getGetApplicationTemplateRevisionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.GetApplicationTemplateRevisionRequest, + com.google.cloud.designcenter.v1.ApplicationTemplateRevision>( + service, METHODID_GET_APPLICATION_TEMPLATE_REVISION))) + .addMethod( + getListApplicationTemplateRevisionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsRequest, + com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsResponse>( + service, METHODID_LIST_APPLICATION_TEMPLATE_REVISIONS))) + .addMethod( + getDeleteApplicationTemplateRevisionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.DeleteApplicationTemplateRevisionRequest, + com.google.protobuf.Empty>( + service, METHODID_DELETE_APPLICATION_TEMPLATE_REVISION))) + .addMethod( + getGetCatalogMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.GetCatalogRequest, + com.google.cloud.designcenter.v1.Catalog>(service, METHODID_GET_CATALOG))) + .addMethod( + getListCatalogsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.ListCatalogsRequest, + com.google.cloud.designcenter.v1.ListCatalogsResponse>( + service, METHODID_LIST_CATALOGS))) + .addMethod( + getCreateCatalogMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.CreateCatalogRequest, + com.google.cloud.designcenter.v1.Catalog>(service, METHODID_CREATE_CATALOG))) + .addMethod( + getUpdateCatalogMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.UpdateCatalogRequest, + com.google.cloud.designcenter.v1.Catalog>(service, METHODID_UPDATE_CATALOG))) + .addMethod( + getDeleteCatalogMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.DeleteCatalogRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_CATALOG))) + .addMethod( + getCreateCatalogTemplateMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.CreateCatalogTemplateRequest, + com.google.cloud.designcenter.v1.CatalogTemplate>( + service, METHODID_CREATE_CATALOG_TEMPLATE))) + .addMethod( + getGetCatalogTemplateMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.GetCatalogTemplateRequest, + com.google.cloud.designcenter.v1.CatalogTemplate>( + service, METHODID_GET_CATALOG_TEMPLATE))) + .addMethod( + getListCatalogTemplatesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.ListCatalogTemplatesRequest, + com.google.cloud.designcenter.v1.ListCatalogTemplatesResponse>( + service, METHODID_LIST_CATALOG_TEMPLATES))) + .addMethod( + getUpdateCatalogTemplateMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.UpdateCatalogTemplateRequest, + com.google.cloud.designcenter.v1.CatalogTemplate>( + service, METHODID_UPDATE_CATALOG_TEMPLATE))) + .addMethod( + getDeleteCatalogTemplateMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.DeleteCatalogTemplateRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_CATALOG_TEMPLATE))) + .addMethod( + getCreateShareMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.CreateShareRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_SHARE))) + .addMethod( + getListSharesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.ListSharesRequest, + com.google.cloud.designcenter.v1.ListSharesResponse>( + service, METHODID_LIST_SHARES))) + .addMethod( + getGetShareMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.GetShareRequest, + com.google.cloud.designcenter.v1.Share>(service, METHODID_GET_SHARE))) + .addMethod( + getDeleteShareMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.DeleteShareRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_SHARE))) + .addMethod( + getSyncShareMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.SyncShareRequest, + com.google.longrunning.Operation>(service, METHODID_SYNC_SHARE))) + .addMethod( + getGetSharedTemplateMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.GetSharedTemplateRequest, + com.google.cloud.designcenter.v1.SharedTemplate>( + service, METHODID_GET_SHARED_TEMPLATE))) + .addMethod( + getListSharedTemplatesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.ListSharedTemplatesRequest, + com.google.cloud.designcenter.v1.ListSharedTemplatesResponse>( + service, METHODID_LIST_SHARED_TEMPLATES))) + .addMethod( + getGetSharedTemplateRevisionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.GetSharedTemplateRevisionRequest, + com.google.cloud.designcenter.v1.SharedTemplateRevision>( + service, METHODID_GET_SHARED_TEMPLATE_REVISION))) + .addMethod( + getListSharedTemplateRevisionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsRequest, + com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsResponse>( + service, METHODID_LIST_SHARED_TEMPLATE_REVISIONS))) + .addMethod( + getCreateCatalogTemplateRevisionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.CreateCatalogTemplateRevisionRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_CATALOG_TEMPLATE_REVISION))) + .addMethod( + getGetCatalogTemplateRevisionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.GetCatalogTemplateRevisionRequest, + com.google.cloud.designcenter.v1.CatalogTemplateRevision>( + service, METHODID_GET_CATALOG_TEMPLATE_REVISION))) + .addMethod( + getListCatalogTemplateRevisionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsRequest, + com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsResponse>( + service, METHODID_LIST_CATALOG_TEMPLATE_REVISIONS))) + .addMethod( + getDeleteCatalogTemplateRevisionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.DeleteCatalogTemplateRevisionRequest, + com.google.longrunning.Operation>( + service, METHODID_DELETE_CATALOG_TEMPLATE_REVISION))) + .addMethod( + getCreateApplicationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.CreateApplicationRequest, + com.google.cloud.designcenter.v1.Application>( + service, METHODID_CREATE_APPLICATION))) + .addMethod( + getGetApplicationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.GetApplicationRequest, + com.google.cloud.designcenter.v1.Application>( + service, METHODID_GET_APPLICATION))) + .addMethod( + getListApplicationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.ListApplicationsRequest, + com.google.cloud.designcenter.v1.ListApplicationsResponse>( + service, METHODID_LIST_APPLICATIONS))) + .addMethod( + getUpdateApplicationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.UpdateApplicationRequest, + com.google.cloud.designcenter.v1.Application>( + service, METHODID_UPDATE_APPLICATION))) + .addMethod( + getDeleteApplicationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.DeleteApplicationRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_APPLICATION))) + .addMethod( + getDeployApplicationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.DeployApplicationRequest, + com.google.longrunning.Operation>(service, METHODID_DEPLOY_APPLICATION))) + .addMethod( + getPreviewApplicationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.PreviewApplicationRequest, + com.google.longrunning.Operation>(service, METHODID_PREVIEW_APPLICATION))) + .addMethod( + getFetchApplicationAssessmentReportMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportRequest, + com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportResponse>( + service, METHODID_FETCH_APPLICATION_ASSESSMENT_REPORT))) + .addMethod( + getGenerateApplicationAssessmentReportMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportRequest, + com.google.longrunning.Operation>( + service, METHODID_GENERATE_APPLICATION_ASSESSMENT_REPORT))) + .addMethod( + getGenerateApplicationTemplateAssessmentReportMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1 + .GenerateApplicationTemplateAssessmentReportRequest, + com.google.longrunning.Operation>( + service, METHODID_GENERATE_APPLICATION_TEMPLATE_ASSESSMENT_REPORT))) + .addMethod( + getGenerateAssessmentReportMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.GenerateAssessmentReportRequest, + com.google.longrunning.Operation>( + service, METHODID_GENERATE_ASSESSMENT_REPORT))) + .addMethod( + getGenerateTerraformPlanAssessmentReportMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportRequest, + com.google.longrunning.Operation>( + service, METHODID_GENERATE_TERRAFORM_PLAN_ASSESSMENT_REPORT))) + .addMethod( + getGetPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.GetPolicyRequest, + com.google.cloud.designcenter.v1.Policy>(service, METHODID_GET_POLICY))) + .addMethod( + getListPoliciesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.ListPoliciesRequest, + com.google.cloud.designcenter.v1.ListPoliciesResponse>( + service, METHODID_LIST_POLICIES))) + .addMethod( + getCreatePolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.CreatePolicyRequest, + com.google.cloud.designcenter.v1.Policy>(service, METHODID_CREATE_POLICY))) + .addMethod( + getUpdatePolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.UpdatePolicyRequest, + com.google.cloud.designcenter.v1.Policy>(service, METHODID_UPDATE_POLICY))) + .addMethod( + getDeletePolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.DeletePolicyRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_POLICY))) + .addMethod( + getFetchFrameworksMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.FetchFrameworksRequest, + com.google.cloud.designcenter.v1.FetchFrameworksResponse>( + service, METHODID_FETCH_FRAMEWORKS))) + .addMethod( + getGenerateApplicationIaCMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.GenerateApplicationIaCRequest, + com.google.cloud.designcenter.v1.GenerateApplicationIaCResponse>( + service, METHODID_GENERATE_APPLICATION_IA_C))) + .addMethod( + getExportApplicationIaCMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.ExportApplicationIaCRequest, + com.google.longrunning.Operation>(service, METHODID_EXPORT_APPLICATION_IA_C))) + .addMethod( + getImportApplicationTemplateIaCMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCRequest, + com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse>( + service, METHODID_IMPORT_APPLICATION_TEMPLATE_IA_C))) + .addMethod( + getIngestApplicationTemplateIaCMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCRequest, + com.google.longrunning.Operation>( + service, METHODID_INGEST_APPLICATION_TEMPLATE_IA_C))) + .addMethod( + getImportApplicationIaCMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.ImportApplicationIaCRequest, + com.google.cloud.designcenter.v1.ImportApplicationIaCResponse>( + service, METHODID_IMPORT_APPLICATION_IA_C))) + .addMethod( + getRegisterAppHubApplicationResourcesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesRequest, + com.google.longrunning.Operation>( + service, METHODID_REGISTER_APP_HUB_APPLICATION_RESOURCES))) + .addMethod( + getListApplicationTemplateSystemRevisionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsRequest, + com.google.cloud.designcenter.v1 + .ListApplicationTemplateSystemRevisionsResponse>( + service, METHODID_LIST_APPLICATION_TEMPLATE_SYSTEM_REVISIONS))) + .addMethod( + getGetApplicationTemplateSystemRevisionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.GetApplicationTemplateSystemRevisionRequest, + com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision>( + service, METHODID_GET_APPLICATION_TEMPLATE_SYSTEM_REVISION))) + .addMethod( + getRecommendIAMRolesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.designcenter.v1.RecommendIAMRolesRequest, + com.google.longrunning.Operation>(service, METHODID_RECOMMEND_IAMROLES))) + .build(); + } + + private abstract static class DesignCenterBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + DesignCenterBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.designcenter.v1.DesigncenterProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("DesignCenter"); + } + } + + private static final class DesignCenterFileDescriptorSupplier + extends DesignCenterBaseDescriptorSupplier { + DesignCenterFileDescriptorSupplier() {} + } + + private static final class DesignCenterMethodDescriptorSupplier + extends DesignCenterBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + DesignCenterMethodDescriptorSupplier(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 (DesignCenterGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new DesignCenterFileDescriptorSupplier()) + .addMethod(getGetSpaceMethod()) + .addMethod(getListSpacesMethod()) + .addMethod(getCreateSpaceMethod()) + .addMethod(getUpdateSpaceMethod()) + .addMethod(getDeleteSpaceMethod()) + .addMethod(getGetApplicationTemplateMethod()) + .addMethod(getListApplicationTemplatesMethod()) + .addMethod(getCreateApplicationTemplateMethod()) + .addMethod(getUpdateApplicationTemplateMethod()) + .addMethod(getImportApplicationTemplateMethod()) + .addMethod(getDeleteApplicationTemplateMethod()) + .addMethod(getCommitApplicationTemplateMethod()) + .addMethod(getSnapshotApplicationTemplateMethod()) + .addMethod(getGenerateApplicationTemplateIaCMethod()) + .addMethod(getExportApplicationTemplateIaCMethod()) + .addMethod(getGenerateApplicationTemplateRevisionIaCMethod()) + .addMethod(getExportApplicationTemplateRevisionIaCMethod()) + .addMethod(getGetComponentMethod()) + .addMethod(getListComponentsMethod()) + .addMethod(getCreateComponentMethod()) + .addMethod(getUpdateComponentMethod()) + .addMethod(getDeleteComponentMethod()) + .addMethod(getGetConnectionMethod()) + .addMethod(getListConnectionsMethod()) + .addMethod(getCreateConnectionMethod()) + .addMethod(getUpdateConnectionMethod()) + .addMethod(getDeleteConnectionMethod()) + .addMethod(getGetApplicationTemplateRevisionMethod()) + .addMethod(getListApplicationTemplateRevisionsMethod()) + .addMethod(getDeleteApplicationTemplateRevisionMethod()) + .addMethod(getGetCatalogMethod()) + .addMethod(getListCatalogsMethod()) + .addMethod(getCreateCatalogMethod()) + .addMethod(getUpdateCatalogMethod()) + .addMethod(getDeleteCatalogMethod()) + .addMethod(getCreateCatalogTemplateMethod()) + .addMethod(getGetCatalogTemplateMethod()) + .addMethod(getListCatalogTemplatesMethod()) + .addMethod(getUpdateCatalogTemplateMethod()) + .addMethod(getDeleteCatalogTemplateMethod()) + .addMethod(getCreateShareMethod()) + .addMethod(getListSharesMethod()) + .addMethod(getGetShareMethod()) + .addMethod(getDeleteShareMethod()) + .addMethod(getSyncShareMethod()) + .addMethod(getGetSharedTemplateMethod()) + .addMethod(getListSharedTemplatesMethod()) + .addMethod(getGetSharedTemplateRevisionMethod()) + .addMethod(getListSharedTemplateRevisionsMethod()) + .addMethod(getCreateCatalogTemplateRevisionMethod()) + .addMethod(getGetCatalogTemplateRevisionMethod()) + .addMethod(getListCatalogTemplateRevisionsMethod()) + .addMethod(getDeleteCatalogTemplateRevisionMethod()) + .addMethod(getCreateApplicationMethod()) + .addMethod(getGetApplicationMethod()) + .addMethod(getListApplicationsMethod()) + .addMethod(getUpdateApplicationMethod()) + .addMethod(getDeleteApplicationMethod()) + .addMethod(getDeployApplicationMethod()) + .addMethod(getPreviewApplicationMethod()) + .addMethod(getFetchApplicationAssessmentReportMethod()) + .addMethod(getGenerateApplicationAssessmentReportMethod()) + .addMethod(getGenerateApplicationTemplateAssessmentReportMethod()) + .addMethod(getGenerateAssessmentReportMethod()) + .addMethod(getGenerateTerraformPlanAssessmentReportMethod()) + .addMethod(getGetPolicyMethod()) + .addMethod(getListPoliciesMethod()) + .addMethod(getCreatePolicyMethod()) + .addMethod(getUpdatePolicyMethod()) + .addMethod(getDeletePolicyMethod()) + .addMethod(getFetchFrameworksMethod()) + .addMethod(getGenerateApplicationIaCMethod()) + .addMethod(getExportApplicationIaCMethod()) + .addMethod(getImportApplicationTemplateIaCMethod()) + .addMethod(getIngestApplicationTemplateIaCMethod()) + .addMethod(getImportApplicationIaCMethod()) + .addMethod(getRegisterAppHubApplicationResourcesMethod()) + .addMethod(getListApplicationTemplateSystemRevisionsMethod()) + .addMethod(getGetApplicationTemplateSystemRevisionMethod()) + .addMethod(getRecommendIAMRolesMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-designcenter/pom.xml b/java-designcenter/pom.xml new file mode 100644 index 000000000000..2ed819be1756 --- /dev/null +++ b/java-designcenter/pom.xml @@ -0,0 +1,68 @@ + + + 4.0.0 + com.google.cloud + google-cloud-designcenter-parent + pom + 0.1.0-SNAPSHOT + Google Design Center Parent + + Java idiomatic client for Google Cloud Platform services. + + + + com.google.cloud + google-cloud-jar-parent + 1.94.0 + ../google-cloud-jar-parent/pom.xml + + + + UTF-8 + UTF-8 + github + google-cloud-designcenter-parent + + + + + + + com.google.cloud + google-cloud-designcenter + 0.1.0-SNAPSHOT + + + com.google.api.grpc + grpc-google-cloud-designcenter-v1 + 0.1.0-SNAPSHOT + + + com.google.api.grpc + proto-google-cloud-designcenter-v1 + 0.1.0-SNAPSHOT + + + + com.google.api.grpc + proto-google-cloud-apphub-v1 + 0.64.0 + + + com.google.api.grpc + proto-google-cloud-infra-manager-v1 + 0.77.0 + + + + + + + google-cloud-designcenter + grpc-google-cloud-designcenter-v1 + proto-google-cloud-designcenter-v1 + + google-cloud-designcenter-bom + + + \ No newline at end of file diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/clirr-ignored-differences.xml b/java-designcenter/proto-google-cloud-designcenter-v1/clirr-ignored-differences.xml new file mode 100644 index 000000000000..2ad7c75116d8 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/clirr-ignored-differences.xml @@ -0,0 +1,80 @@ + + + + + 7012 + com/google/cloud/designcenter/v1/*OrBuilder + * get*(*) + + + 7012 + com/google/cloud/designcenter/v1/*OrBuilder + boolean contains*(*) + + + 7012 + com/google/cloud/designcenter/v1/*OrBuilder + boolean has*(*) + + + + 7006 + com/google/cloud/designcenter/v1/** + * getDefaultInstanceForType() + ** + + + 7006 + com/google/cloud/designcenter/v1/** + * addRepeatedField(*) + ** + + + 7006 + com/google/cloud/designcenter/v1/** + * clear() + ** + + + 7006 + com/google/cloud/designcenter/v1/** + * clearField(*) + ** + + + 7006 + com/google/cloud/designcenter/v1/** + * clearOneof(*) + ** + + + 7006 + com/google/cloud/designcenter/v1/** + * clone() + ** + + + 7006 + com/google/cloud/designcenter/v1/** + * mergeUnknownFields(*) + ** + + + 7006 + com/google/cloud/designcenter/v1/** + * setField(*) + ** + + + 7006 + com/google/cloud/designcenter/v1/** + * setRepeatedField(*) + ** + + + 7006 + com/google/cloud/designcenter/v1/** + * setUnknownFields(*) + ** + + diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/pom.xml b/java-designcenter/proto-google-cloud-designcenter-v1/pom.xml new file mode 100644 index 000000000000..90a0d4b8a0c1 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/pom.xml @@ -0,0 +1,49 @@ + + 4.0.0 + com.google.api.grpc + proto-google-cloud-designcenter-v1 + 0.1.0-SNAPSHOT + proto-google-cloud-designcenter-v1 + Proto library for google-cloud-designcenter + + com.google.cloud + google-cloud-designcenter-parent + 0.1.0-SNAPSHOT + + + + com.google.api.grpc + proto-google-cloud-apphub-v1 + + + com.google.api.grpc + proto-google-cloud-infra-manager-v1 + + + 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 + + + org.jspecify + jspecify + + + diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/AdcMetadata.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/AdcMetadata.java new file mode 100644 index 000000000000..7d46e0b8f0b3 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/AdcMetadata.java @@ -0,0 +1,1470 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/assessment.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Application Design Center specific information and metadata.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.AdcMetadata} + */ +@com.google.protobuf.Generated +public final class AdcMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.AdcMetadata) + AdcMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AdcMetadata"); + } + + // Use AdcMetadata.newBuilder() to construct. + private AdcMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AdcMetadata() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_AdcMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_AdcMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.AdcMetadata.class, + com.google.cloud.designcenter.v1.AdcMetadata.Builder.class); + } + + private int appUriCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object appUri_; + + public enum AppUriCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + APPLICATION_URI(1), + APPLICATION_TEMPLATE_URI(2), + SPACE_URI(3), + CATALOG_TEMPLATE_REVISION_URI(4), + APPURI_NOT_SET(0); + private final int value; + + private AppUriCase(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 AppUriCase valueOf(int value) { + return forNumber(value); + } + + public static AppUriCase forNumber(int value) { + switch (value) { + case 1: + return APPLICATION_URI; + case 2: + return APPLICATION_TEMPLATE_URI; + case 3: + return SPACE_URI; + case 4: + return CATALOG_TEMPLATE_REVISION_URI; + case 0: + return APPURI_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public AppUriCase getAppUriCase() { + return AppUriCase.forNumber(appUriCase_); + } + + public static final int APPLICATION_URI_FIELD_NUMBER = 1; + + /** + * + * + *
+   * Output only. Application URI
+   * 
+ * + * string application_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the applicationUri field is set. + */ + public boolean hasApplicationUri() { + return appUriCase_ == 1; + } + + /** + * + * + *
+   * Output only. Application URI
+   * 
+ * + * string application_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The applicationUri. + */ + public java.lang.String getApplicationUri() { + java.lang.Object ref = ""; + if (appUriCase_ == 1) { + ref = appUri_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (appUriCase_ == 1) { + appUri_ = s; + } + return s; + } + } + + /** + * + * + *
+   * Output only. Application URI
+   * 
+ * + * string application_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for applicationUri. + */ + public com.google.protobuf.ByteString getApplicationUriBytes() { + java.lang.Object ref = ""; + if (appUriCase_ == 1) { + ref = appUri_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (appUriCase_ == 1) { + appUri_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int APPLICATION_TEMPLATE_URI_FIELD_NUMBER = 2; + + /** + * + * + *
+   * Output only. ApplicationTemplate URI
+   * 
+ * + * string application_template_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the applicationTemplateUri field is set. + */ + public boolean hasApplicationTemplateUri() { + return appUriCase_ == 2; + } + + /** + * + * + *
+   * Output only. ApplicationTemplate URI
+   * 
+ * + * string application_template_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The applicationTemplateUri. + */ + public java.lang.String getApplicationTemplateUri() { + java.lang.Object ref = ""; + if (appUriCase_ == 2) { + ref = appUri_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (appUriCase_ == 2) { + appUri_ = s; + } + return s; + } + } + + /** + * + * + *
+   * Output only. ApplicationTemplate URI
+   * 
+ * + * string application_template_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for applicationTemplateUri. + */ + public com.google.protobuf.ByteString getApplicationTemplateUriBytes() { + java.lang.Object ref = ""; + if (appUriCase_ == 2) { + ref = appUri_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (appUriCase_ == 2) { + appUri_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SPACE_URI_FIELD_NUMBER = 3; + + /** + * + * + *
+   * Output only. Space URI
+   * 
+ * + * string space_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the spaceUri field is set. + */ + public boolean hasSpaceUri() { + return appUriCase_ == 3; + } + + /** + * + * + *
+   * Output only. Space URI
+   * 
+ * + * string space_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The spaceUri. + */ + public java.lang.String getSpaceUri() { + java.lang.Object ref = ""; + if (appUriCase_ == 3) { + ref = appUri_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (appUriCase_ == 3) { + appUri_ = s; + } + return s; + } + } + + /** + * + * + *
+   * Output only. Space URI
+   * 
+ * + * string space_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for spaceUri. + */ + public com.google.protobuf.ByteString getSpaceUriBytes() { + java.lang.Object ref = ""; + if (appUriCase_ == 3) { + ref = appUri_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (appUriCase_ == 3) { + appUri_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CATALOG_TEMPLATE_REVISION_URI_FIELD_NUMBER = 4; + + /** + * + * + *
+   * Output only. CatalogTemplateRevision URI
+   * 
+ * + * string catalog_template_revision_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the catalogTemplateRevisionUri field is set. + */ + public boolean hasCatalogTemplateRevisionUri() { + return appUriCase_ == 4; + } + + /** + * + * + *
+   * Output only. CatalogTemplateRevision URI
+   * 
+ * + * string catalog_template_revision_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The catalogTemplateRevisionUri. + */ + public java.lang.String getCatalogTemplateRevisionUri() { + java.lang.Object ref = ""; + if (appUriCase_ == 4) { + ref = appUri_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (appUriCase_ == 4) { + appUri_ = s; + } + return s; + } + } + + /** + * + * + *
+   * Output only. CatalogTemplateRevision URI
+   * 
+ * + * string catalog_template_revision_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for catalogTemplateRevisionUri. + */ + public com.google.protobuf.ByteString getCatalogTemplateRevisionUriBytes() { + java.lang.Object ref = ""; + if (appUriCase_ == 4) { + ref = appUri_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (appUriCase_ == 4) { + appUri_ = 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 (appUriCase_ == 1) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, appUri_); + } + if (appUriCase_ == 2) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, appUri_); + } + if (appUriCase_ == 3) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, appUri_); + } + if (appUriCase_ == 4) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, appUri_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (appUriCase_ == 1) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, appUri_); + } + if (appUriCase_ == 2) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, appUri_); + } + if (appUriCase_ == 3) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, appUri_); + } + if (appUriCase_ == 4) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, appUri_); + } + 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.designcenter.v1.AdcMetadata)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.AdcMetadata other = + (com.google.cloud.designcenter.v1.AdcMetadata) obj; + + if (!getAppUriCase().equals(other.getAppUriCase())) return false; + switch (appUriCase_) { + case 1: + if (!getApplicationUri().equals(other.getApplicationUri())) return false; + break; + case 2: + if (!getApplicationTemplateUri().equals(other.getApplicationTemplateUri())) return false; + break; + case 3: + if (!getSpaceUri().equals(other.getSpaceUri())) return false; + break; + case 4: + if (!getCatalogTemplateRevisionUri().equals(other.getCatalogTemplateRevisionUri())) + 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 (appUriCase_) { + case 1: + hash = (37 * hash) + APPLICATION_URI_FIELD_NUMBER; + hash = (53 * hash) + getApplicationUri().hashCode(); + break; + case 2: + hash = (37 * hash) + APPLICATION_TEMPLATE_URI_FIELD_NUMBER; + hash = (53 * hash) + getApplicationTemplateUri().hashCode(); + break; + case 3: + hash = (37 * hash) + SPACE_URI_FIELD_NUMBER; + hash = (53 * hash) + getSpaceUri().hashCode(); + break; + case 4: + hash = (37 * hash) + CATALOG_TEMPLATE_REVISION_URI_FIELD_NUMBER; + hash = (53 * hash) + getCatalogTemplateRevisionUri().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.AdcMetadata parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.AdcMetadata 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.designcenter.v1.AdcMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.AdcMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.AdcMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.AdcMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.AdcMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.AdcMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.AdcMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.AdcMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.AdcMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.AdcMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.AdcMetadata 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Application Design Center specific information and metadata.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.AdcMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.AdcMetadata) + com.google.cloud.designcenter.v1.AdcMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_AdcMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_AdcMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.AdcMetadata.class, + com.google.cloud.designcenter.v1.AdcMetadata.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.AdcMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + appUriCase_ = 0; + appUri_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_AdcMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.AdcMetadata getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.AdcMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.AdcMetadata build() { + com.google.cloud.designcenter.v1.AdcMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.AdcMetadata buildPartial() { + com.google.cloud.designcenter.v1.AdcMetadata result = + new com.google.cloud.designcenter.v1.AdcMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.AdcMetadata result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.designcenter.v1.AdcMetadata result) { + result.appUriCase_ = appUriCase_; + result.appUri_ = this.appUri_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.AdcMetadata) { + return mergeFrom((com.google.cloud.designcenter.v1.AdcMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.AdcMetadata other) { + if (other == com.google.cloud.designcenter.v1.AdcMetadata.getDefaultInstance()) return this; + switch (other.getAppUriCase()) { + case APPLICATION_URI: + { + appUriCase_ = 1; + appUri_ = other.appUri_; + onChanged(); + break; + } + case APPLICATION_TEMPLATE_URI: + { + appUriCase_ = 2; + appUri_ = other.appUri_; + onChanged(); + break; + } + case SPACE_URI: + { + appUriCase_ = 3; + appUri_ = other.appUri_; + onChanged(); + break; + } + case CATALOG_TEMPLATE_REVISION_URI: + { + appUriCase_ = 4; + appUri_ = other.appUri_; + onChanged(); + break; + } + case APPURI_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: + { + java.lang.String s = input.readStringRequireUtf8(); + appUriCase_ = 1; + appUri_ = s; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + appUriCase_ = 2; + appUri_ = s; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + appUriCase_ = 3; + appUri_ = s; + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + appUriCase_ = 4; + appUri_ = s; + 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 appUriCase_ = 0; + private java.lang.Object appUri_; + + public AppUriCase getAppUriCase() { + return AppUriCase.forNumber(appUriCase_); + } + + public Builder clearAppUri() { + appUriCase_ = 0; + appUri_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
+     * Output only. Application URI
+     * 
+ * + * string application_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the applicationUri field is set. + */ + @java.lang.Override + public boolean hasApplicationUri() { + return appUriCase_ == 1; + } + + /** + * + * + *
+     * Output only. Application URI
+     * 
+ * + * string application_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The applicationUri. + */ + @java.lang.Override + public java.lang.String getApplicationUri() { + java.lang.Object ref = ""; + if (appUriCase_ == 1) { + ref = appUri_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (appUriCase_ == 1) { + appUri_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Application URI
+     * 
+ * + * string application_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for applicationUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getApplicationUriBytes() { + java.lang.Object ref = ""; + if (appUriCase_ == 1) { + ref = appUri_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (appUriCase_ == 1) { + appUri_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Application URI
+     * 
+ * + * string application_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The applicationUri to set. + * @return This builder for chaining. + */ + public Builder setApplicationUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + appUriCase_ = 1; + appUri_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Application URI
+     * 
+ * + * string application_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearApplicationUri() { + if (appUriCase_ == 1) { + appUriCase_ = 0; + appUri_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Application URI
+     * 
+ * + * string application_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for applicationUri to set. + * @return This builder for chaining. + */ + public Builder setApplicationUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + appUriCase_ = 1; + appUri_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. ApplicationTemplate URI
+     * 
+ * + * string application_template_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the applicationTemplateUri field is set. + */ + @java.lang.Override + public boolean hasApplicationTemplateUri() { + return appUriCase_ == 2; + } + + /** + * + * + *
+     * Output only. ApplicationTemplate URI
+     * 
+ * + * string application_template_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The applicationTemplateUri. + */ + @java.lang.Override + public java.lang.String getApplicationTemplateUri() { + java.lang.Object ref = ""; + if (appUriCase_ == 2) { + ref = appUri_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (appUriCase_ == 2) { + appUri_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. ApplicationTemplate URI
+     * 
+ * + * string application_template_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for applicationTemplateUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getApplicationTemplateUriBytes() { + java.lang.Object ref = ""; + if (appUriCase_ == 2) { + ref = appUri_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (appUriCase_ == 2) { + appUri_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. ApplicationTemplate URI
+     * 
+ * + * string application_template_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The applicationTemplateUri to set. + * @return This builder for chaining. + */ + public Builder setApplicationTemplateUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + appUriCase_ = 2; + appUri_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. ApplicationTemplate URI
+     * 
+ * + * string application_template_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearApplicationTemplateUri() { + if (appUriCase_ == 2) { + appUriCase_ = 0; + appUri_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. ApplicationTemplate URI
+     * 
+ * + * string application_template_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for applicationTemplateUri to set. + * @return This builder for chaining. + */ + public Builder setApplicationTemplateUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + appUriCase_ = 2; + appUri_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Space URI
+     * 
+ * + * string space_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the spaceUri field is set. + */ + @java.lang.Override + public boolean hasSpaceUri() { + return appUriCase_ == 3; + } + + /** + * + * + *
+     * Output only. Space URI
+     * 
+ * + * string space_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The spaceUri. + */ + @java.lang.Override + public java.lang.String getSpaceUri() { + java.lang.Object ref = ""; + if (appUriCase_ == 3) { + ref = appUri_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (appUriCase_ == 3) { + appUri_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Space URI
+     * 
+ * + * string space_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for spaceUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSpaceUriBytes() { + java.lang.Object ref = ""; + if (appUriCase_ == 3) { + ref = appUri_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (appUriCase_ == 3) { + appUri_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Space URI
+     * 
+ * + * string space_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The spaceUri to set. + * @return This builder for chaining. + */ + public Builder setSpaceUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + appUriCase_ = 3; + appUri_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Space URI
+     * 
+ * + * string space_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSpaceUri() { + if (appUriCase_ == 3) { + appUriCase_ = 0; + appUri_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Space URI
+     * 
+ * + * string space_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for spaceUri to set. + * @return This builder for chaining. + */ + public Builder setSpaceUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + appUriCase_ = 3; + appUri_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. CatalogTemplateRevision URI
+     * 
+ * + * string catalog_template_revision_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the catalogTemplateRevisionUri field is set. + */ + @java.lang.Override + public boolean hasCatalogTemplateRevisionUri() { + return appUriCase_ == 4; + } + + /** + * + * + *
+     * Output only. CatalogTemplateRevision URI
+     * 
+ * + * string catalog_template_revision_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The catalogTemplateRevisionUri. + */ + @java.lang.Override + public java.lang.String getCatalogTemplateRevisionUri() { + java.lang.Object ref = ""; + if (appUriCase_ == 4) { + ref = appUri_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (appUriCase_ == 4) { + appUri_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. CatalogTemplateRevision URI
+     * 
+ * + * string catalog_template_revision_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for catalogTemplateRevisionUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCatalogTemplateRevisionUriBytes() { + java.lang.Object ref = ""; + if (appUriCase_ == 4) { + ref = appUri_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (appUriCase_ == 4) { + appUri_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. CatalogTemplateRevision URI
+     * 
+ * + * string catalog_template_revision_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The catalogTemplateRevisionUri to set. + * @return This builder for chaining. + */ + public Builder setCatalogTemplateRevisionUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + appUriCase_ = 4; + appUri_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. CatalogTemplateRevision URI
+     * 
+ * + * string catalog_template_revision_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearCatalogTemplateRevisionUri() { + if (appUriCase_ == 4) { + appUriCase_ = 0; + appUri_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. CatalogTemplateRevision URI
+     * 
+ * + * string catalog_template_revision_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for catalogTemplateRevisionUri to set. + * @return This builder for chaining. + */ + public Builder setCatalogTemplateRevisionUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + appUriCase_ = 4; + appUri_ = value; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.AdcMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.AdcMetadata) + private static final com.google.cloud.designcenter.v1.AdcMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.AdcMetadata(); + } + + public static com.google.cloud.designcenter.v1.AdcMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AdcMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.AdcMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/AdcMetadataOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/AdcMetadataOrBuilder.java new file mode 100644 index 000000000000..b298f38aa2ec --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/AdcMetadataOrBuilder.java @@ -0,0 +1,189 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/assessment.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface AdcMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.AdcMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Application URI
+   * 
+ * + * string application_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the applicationUri field is set. + */ + boolean hasApplicationUri(); + + /** + * + * + *
+   * Output only. Application URI
+   * 
+ * + * string application_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The applicationUri. + */ + java.lang.String getApplicationUri(); + + /** + * + * + *
+   * Output only. Application URI
+   * 
+ * + * string application_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for applicationUri. + */ + com.google.protobuf.ByteString getApplicationUriBytes(); + + /** + * + * + *
+   * Output only. ApplicationTemplate URI
+   * 
+ * + * string application_template_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the applicationTemplateUri field is set. + */ + boolean hasApplicationTemplateUri(); + + /** + * + * + *
+   * Output only. ApplicationTemplate URI
+   * 
+ * + * string application_template_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The applicationTemplateUri. + */ + java.lang.String getApplicationTemplateUri(); + + /** + * + * + *
+   * Output only. ApplicationTemplate URI
+   * 
+ * + * string application_template_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for applicationTemplateUri. + */ + com.google.protobuf.ByteString getApplicationTemplateUriBytes(); + + /** + * + * + *
+   * Output only. Space URI
+   * 
+ * + * string space_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the spaceUri field is set. + */ + boolean hasSpaceUri(); + + /** + * + * + *
+   * Output only. Space URI
+   * 
+ * + * string space_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The spaceUri. + */ + java.lang.String getSpaceUri(); + + /** + * + * + *
+   * Output only. Space URI
+   * 
+ * + * string space_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for spaceUri. + */ + com.google.protobuf.ByteString getSpaceUriBytes(); + + /** + * + * + *
+   * Output only. CatalogTemplateRevision URI
+   * 
+ * + * string catalog_template_revision_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the catalogTemplateRevisionUri field is set. + */ + boolean hasCatalogTemplateRevisionUri(); + + /** + * + * + *
+   * Output only. CatalogTemplateRevision URI
+   * 
+ * + * string catalog_template_revision_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The catalogTemplateRevisionUri. + */ + java.lang.String getCatalogTemplateRevisionUri(); + + /** + * + * + *
+   * Output only. CatalogTemplateRevision URI
+   * 
+ * + * string catalog_template_revision_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for catalogTemplateRevisionUri. + */ + com.google.protobuf.ByteString getCatalogTemplateRevisionUriBytes(); + + com.google.cloud.designcenter.v1.AdcMetadata.AppUriCase getAppUriCase(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/AlternateDefault.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/AlternateDefault.java new file mode 100644 index 000000000000..5a902311e1ab --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/AlternateDefault.java @@ -0,0 +1,868 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Alternate default for a UI input.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.AlternateDefault} + */ +@com.google.protobuf.Generated +public final class AlternateDefault extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.AlternateDefault) + AlternateDefaultOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AlternateDefault"); + } + + // Use AlternateDefault.newBuilder() to construct. + private AlternateDefault(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AlternateDefault() { + type_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_AlternateDefault_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_AlternateDefault_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.AlternateDefault.class, + com.google.cloud.designcenter.v1.AlternateDefault.Builder.class); + } + + private int bitField0_; + public static final int TYPE_FIELD_NUMBER = 1; + private int type_ = 0; + + /** + * + * + *
+   * Output only. Type of alternate default.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DisplayVariableAlternateType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
+   * Output only. Type of alternate default.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DisplayVariableAlternateType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.DisplayVariableAlternateType getType() { + com.google.cloud.designcenter.v1.DisplayVariableAlternateType result = + com.google.cloud.designcenter.v1.DisplayVariableAlternateType.forNumber(type_); + return result == null + ? com.google.cloud.designcenter.v1.DisplayVariableAlternateType.UNRECOGNIZED + : result; + } + + public static final int VALUE_FIELD_NUMBER = 2; + private com.google.protobuf.Value value_; + + /** + * + * + *
+   * Output only. Value of the alternate default.
+   * 
+ * + * .google.protobuf.Value value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the value field is set. + */ + @java.lang.Override + public boolean hasValue() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. Value of the alternate default.
+   * 
+ * + * .google.protobuf.Value value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The value. + */ + @java.lang.Override + public com.google.protobuf.Value getValue() { + return value_ == null ? com.google.protobuf.Value.getDefaultInstance() : value_; + } + + /** + * + * + *
+   * Output only. Value of the alternate default.
+   * 
+ * + * .google.protobuf.Value value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.protobuf.ValueOrBuilder getValueOrBuilder() { + return value_ == null ? com.google.protobuf.Value.getDefaultInstance() : value_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (type_ + != com.google.cloud.designcenter.v1.DisplayVariableAlternateType + .DISPLAY_VARIABLE_ALTERNATE_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, type_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getValue()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (type_ + != com.google.cloud.designcenter.v1.DisplayVariableAlternateType + .DISPLAY_VARIABLE_ALTERNATE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getValue()); + } + 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.designcenter.v1.AlternateDefault)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.AlternateDefault other = + (com.google.cloud.designcenter.v1.AlternateDefault) obj; + + if (type_ != other.type_) return false; + if (hasValue() != other.hasValue()) return false; + if (hasValue()) { + if (!getValue().equals(other.getValue())) 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) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + if (hasValue()) { + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.AlternateDefault parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.AlternateDefault 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.designcenter.v1.AlternateDefault parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.AlternateDefault parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.AlternateDefault parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.AlternateDefault parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.AlternateDefault parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.AlternateDefault parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.AlternateDefault parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.AlternateDefault parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.AlternateDefault parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.AlternateDefault parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.AlternateDefault 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Alternate default for a UI input.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.AlternateDefault} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.AlternateDefault) + com.google.cloud.designcenter.v1.AlternateDefaultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_AlternateDefault_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_AlternateDefault_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.AlternateDefault.class, + com.google.cloud.designcenter.v1.AlternateDefault.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.AlternateDefault.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetValueFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + type_ = 0; + value_ = null; + if (valueBuilder_ != null) { + valueBuilder_.dispose(); + valueBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_AlternateDefault_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.AlternateDefault getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.AlternateDefault.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.AlternateDefault build() { + com.google.cloud.designcenter.v1.AlternateDefault result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.AlternateDefault buildPartial() { + com.google.cloud.designcenter.v1.AlternateDefault result = + new com.google.cloud.designcenter.v1.AlternateDefault(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.AlternateDefault result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.type_ = type_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.value_ = valueBuilder_ == null ? value_ : valueBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.AlternateDefault) { + return mergeFrom((com.google.cloud.designcenter.v1.AlternateDefault) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.AlternateDefault other) { + if (other == com.google.cloud.designcenter.v1.AlternateDefault.getDefaultInstance()) + return this; + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (other.hasValue()) { + mergeValue(other.getValue()); + } + 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: + { + type_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage(internalGetValueFieldBuilder().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 int type_ = 0; + + /** + * + * + *
+     * Output only. Type of alternate default.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DisplayVariableAlternateType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
+     * Output only. Type of alternate default.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DisplayVariableAlternateType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + type_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Type of alternate default.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DisplayVariableAlternateType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.DisplayVariableAlternateType getType() { + com.google.cloud.designcenter.v1.DisplayVariableAlternateType result = + com.google.cloud.designcenter.v1.DisplayVariableAlternateType.forNumber(type_); + return result == null + ? com.google.cloud.designcenter.v1.DisplayVariableAlternateType.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Output only. Type of alternate default.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DisplayVariableAlternateType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(com.google.cloud.designcenter.v1.DisplayVariableAlternateType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + type_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Type of alternate default.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DisplayVariableAlternateType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000001); + type_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Value value_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder> + valueBuilder_; + + /** + * + * + *
+     * Output only. Value of the alternate default.
+     * 
+ * + * .google.protobuf.Value value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the value field is set. + */ + public boolean hasValue() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Output only. Value of the alternate default.
+     * 
+ * + * .google.protobuf.Value value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The value. + */ + public com.google.protobuf.Value getValue() { + if (valueBuilder_ == null) { + return value_ == null ? com.google.protobuf.Value.getDefaultInstance() : value_; + } else { + return valueBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Value of the alternate default.
+     * 
+ * + * .google.protobuf.Value value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setValue(com.google.protobuf.Value value) { + if (valueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + } else { + valueBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Value of the alternate default.
+     * 
+ * + * .google.protobuf.Value value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setValue(com.google.protobuf.Value.Builder builderForValue) { + if (valueBuilder_ == null) { + value_ = builderForValue.build(); + } else { + valueBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Value of the alternate default.
+     * 
+ * + * .google.protobuf.Value value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder mergeValue(com.google.protobuf.Value value) { + if (valueBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && value_ != null + && value_ != com.google.protobuf.Value.getDefaultInstance()) { + getValueBuilder().mergeFrom(value); + } else { + value_ = value; + } + } else { + valueBuilder_.mergeFrom(value); + } + if (value_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Value of the alternate default.
+     * 
+ * + * .google.protobuf.Value value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearValue() { + bitField0_ = (bitField0_ & ~0x00000002); + value_ = null; + if (valueBuilder_ != null) { + valueBuilder_.dispose(); + valueBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Value of the alternate default.
+     * 
+ * + * .google.protobuf.Value value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.Value.Builder getValueBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetValueFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Value of the alternate default.
+     * 
+ * + * .google.protobuf.Value value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.ValueOrBuilder getValueOrBuilder() { + if (valueBuilder_ != null) { + return valueBuilder_.getMessageOrBuilder(); + } else { + return value_ == null ? com.google.protobuf.Value.getDefaultInstance() : value_; + } + } + + /** + * + * + *
+     * Output only. Value of the alternate default.
+     * 
+ * + * .google.protobuf.Value value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder> + internalGetValueFieldBuilder() { + if (valueBuilder_ == null) { + valueBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder>(getValue(), getParentForChildren(), isClean()); + value_ = null; + } + return valueBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.AlternateDefault) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.AlternateDefault) + private static final com.google.cloud.designcenter.v1.AlternateDefault DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.AlternateDefault(); + } + + public static com.google.cloud.designcenter.v1.AlternateDefault getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AlternateDefault parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.AlternateDefault getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/AlternateDefaultInput.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/AlternateDefaultInput.java new file mode 100644 index 000000000000..8b54e4ebda86 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/AlternateDefaultInput.java @@ -0,0 +1,869 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Alternate default input for a UI.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.AlternateDefaultInput} + */ +@com.google.protobuf.Generated +public final class AlternateDefaultInput extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.AlternateDefaultInput) + AlternateDefaultInputOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AlternateDefaultInput"); + } + + // Use AlternateDefaultInput.newBuilder() to construct. + private AlternateDefaultInput(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AlternateDefaultInput() { + type_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_AlternateDefaultInput_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_AlternateDefaultInput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.AlternateDefaultInput.class, + com.google.cloud.designcenter.v1.AlternateDefaultInput.Builder.class); + } + + private int bitField0_; + public static final int TYPE_FIELD_NUMBER = 1; + private int type_ = 0; + + /** + * + * + *
+   * Optional. Type of alternate default.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DisplayVariableAlternateType type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
+   * Optional. Type of alternate default.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DisplayVariableAlternateType type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.DisplayVariableAlternateType getType() { + com.google.cloud.designcenter.v1.DisplayVariableAlternateType result = + com.google.cloud.designcenter.v1.DisplayVariableAlternateType.forNumber(type_); + return result == null + ? com.google.cloud.designcenter.v1.DisplayVariableAlternateType.UNRECOGNIZED + : result; + } + + public static final int VALUE_FIELD_NUMBER = 2; + private com.google.protobuf.Value value_; + + /** + * + * + *
+   * Optional. Value of the alternate default.
+   * 
+ * + * .google.protobuf.Value value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the value field is set. + */ + @java.lang.Override + public boolean hasValue() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. Value of the alternate default.
+   * 
+ * + * .google.protobuf.Value value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The value. + */ + @java.lang.Override + public com.google.protobuf.Value getValue() { + return value_ == null ? com.google.protobuf.Value.getDefaultInstance() : value_; + } + + /** + * + * + *
+   * Optional. Value of the alternate default.
+   * 
+ * + * .google.protobuf.Value value = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.protobuf.ValueOrBuilder getValueOrBuilder() { + return value_ == null ? com.google.protobuf.Value.getDefaultInstance() : value_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (type_ + != com.google.cloud.designcenter.v1.DisplayVariableAlternateType + .DISPLAY_VARIABLE_ALTERNATE_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, type_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getValue()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (type_ + != com.google.cloud.designcenter.v1.DisplayVariableAlternateType + .DISPLAY_VARIABLE_ALTERNATE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getValue()); + } + 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.designcenter.v1.AlternateDefaultInput)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.AlternateDefaultInput other = + (com.google.cloud.designcenter.v1.AlternateDefaultInput) obj; + + if (type_ != other.type_) return false; + if (hasValue() != other.hasValue()) return false; + if (hasValue()) { + if (!getValue().equals(other.getValue())) 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) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + if (hasValue()) { + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.AlternateDefaultInput parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.AlternateDefaultInput 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.designcenter.v1.AlternateDefaultInput parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.AlternateDefaultInput parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.AlternateDefaultInput parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.AlternateDefaultInput parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.AlternateDefaultInput parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.AlternateDefaultInput parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.AlternateDefaultInput parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.AlternateDefaultInput parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.AlternateDefaultInput parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.AlternateDefaultInput parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.AlternateDefaultInput 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Alternate default input for a UI.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.AlternateDefaultInput} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.AlternateDefaultInput) + com.google.cloud.designcenter.v1.AlternateDefaultInputOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_AlternateDefaultInput_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_AlternateDefaultInput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.AlternateDefaultInput.class, + com.google.cloud.designcenter.v1.AlternateDefaultInput.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.AlternateDefaultInput.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetValueFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + type_ = 0; + value_ = null; + if (valueBuilder_ != null) { + valueBuilder_.dispose(); + valueBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_AlternateDefaultInput_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.AlternateDefaultInput getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.AlternateDefaultInput.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.AlternateDefaultInput build() { + com.google.cloud.designcenter.v1.AlternateDefaultInput result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.AlternateDefaultInput buildPartial() { + com.google.cloud.designcenter.v1.AlternateDefaultInput result = + new com.google.cloud.designcenter.v1.AlternateDefaultInput(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.AlternateDefaultInput result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.type_ = type_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.value_ = valueBuilder_ == null ? value_ : valueBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.AlternateDefaultInput) { + return mergeFrom((com.google.cloud.designcenter.v1.AlternateDefaultInput) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.AlternateDefaultInput other) { + if (other == com.google.cloud.designcenter.v1.AlternateDefaultInput.getDefaultInstance()) + return this; + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (other.hasValue()) { + mergeValue(other.getValue()); + } + 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: + { + type_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage(internalGetValueFieldBuilder().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 int type_ = 0; + + /** + * + * + *
+     * Optional. Type of alternate default.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DisplayVariableAlternateType type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
+     * Optional. Type of alternate default.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DisplayVariableAlternateType type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + type_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Type of alternate default.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DisplayVariableAlternateType type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.DisplayVariableAlternateType getType() { + com.google.cloud.designcenter.v1.DisplayVariableAlternateType result = + com.google.cloud.designcenter.v1.DisplayVariableAlternateType.forNumber(type_); + return result == null + ? com.google.cloud.designcenter.v1.DisplayVariableAlternateType.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Optional. Type of alternate default.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DisplayVariableAlternateType type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(com.google.cloud.designcenter.v1.DisplayVariableAlternateType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + type_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Type of alternate default.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DisplayVariableAlternateType type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000001); + type_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Value value_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder> + valueBuilder_; + + /** + * + * + *
+     * Optional. Value of the alternate default.
+     * 
+ * + * .google.protobuf.Value value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the value field is set. + */ + public boolean hasValue() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Optional. Value of the alternate default.
+     * 
+ * + * .google.protobuf.Value value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The value. + */ + public com.google.protobuf.Value getValue() { + if (valueBuilder_ == null) { + return value_ == null ? com.google.protobuf.Value.getDefaultInstance() : value_; + } else { + return valueBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Value of the alternate default.
+     * 
+ * + * .google.protobuf.Value value = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setValue(com.google.protobuf.Value value) { + if (valueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + } else { + valueBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Value of the alternate default.
+     * 
+ * + * .google.protobuf.Value value = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setValue(com.google.protobuf.Value.Builder builderForValue) { + if (valueBuilder_ == null) { + value_ = builderForValue.build(); + } else { + valueBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Value of the alternate default.
+     * 
+ * + * .google.protobuf.Value value = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder mergeValue(com.google.protobuf.Value value) { + if (valueBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && value_ != null + && value_ != com.google.protobuf.Value.getDefaultInstance()) { + getValueBuilder().mergeFrom(value); + } else { + value_ = value; + } + } else { + valueBuilder_.mergeFrom(value); + } + if (value_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Value of the alternate default.
+     * 
+ * + * .google.protobuf.Value value = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearValue() { + bitField0_ = (bitField0_ & ~0x00000002); + value_ = null; + if (valueBuilder_ != null) { + valueBuilder_.dispose(); + valueBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Value of the alternate default.
+     * 
+ * + * .google.protobuf.Value value = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.protobuf.Value.Builder getValueBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetValueFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Value of the alternate default.
+     * 
+ * + * .google.protobuf.Value value = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.protobuf.ValueOrBuilder getValueOrBuilder() { + if (valueBuilder_ != null) { + return valueBuilder_.getMessageOrBuilder(); + } else { + return value_ == null ? com.google.protobuf.Value.getDefaultInstance() : value_; + } + } + + /** + * + * + *
+     * Optional. Value of the alternate default.
+     * 
+ * + * .google.protobuf.Value value = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder> + internalGetValueFieldBuilder() { + if (valueBuilder_ == null) { + valueBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder>(getValue(), getParentForChildren(), isClean()); + value_ = null; + } + return valueBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.AlternateDefaultInput) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.AlternateDefaultInput) + private static final com.google.cloud.designcenter.v1.AlternateDefaultInput DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.AlternateDefaultInput(); + } + + public static com.google.cloud.designcenter.v1.AlternateDefaultInput getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AlternateDefaultInput parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.AlternateDefaultInput getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/AlternateDefaultInputOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/AlternateDefaultInputOrBuilder.java new file mode 100644 index 000000000000..8767a4d7f6a7 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/AlternateDefaultInputOrBuilder.java @@ -0,0 +1,95 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface AlternateDefaultInputOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.AlternateDefaultInput) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Type of alternate default.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DisplayVariableAlternateType type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + + /** + * + * + *
+   * Optional. Type of alternate default.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DisplayVariableAlternateType type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The type. + */ + com.google.cloud.designcenter.v1.DisplayVariableAlternateType getType(); + + /** + * + * + *
+   * Optional. Value of the alternate default.
+   * 
+ * + * .google.protobuf.Value value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the value field is set. + */ + boolean hasValue(); + + /** + * + * + *
+   * Optional. Value of the alternate default.
+   * 
+ * + * .google.protobuf.Value value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The value. + */ + com.google.protobuf.Value getValue(); + + /** + * + * + *
+   * Optional. Value of the alternate default.
+   * 
+ * + * .google.protobuf.Value value = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.protobuf.ValueOrBuilder getValueOrBuilder(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/AlternateDefaultOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/AlternateDefaultOrBuilder.java new file mode 100644 index 000000000000..241dbd68909c --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/AlternateDefaultOrBuilder.java @@ -0,0 +1,95 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface AlternateDefaultOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.AlternateDefault) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Type of alternate default.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DisplayVariableAlternateType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + + /** + * + * + *
+   * Output only. Type of alternate default.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DisplayVariableAlternateType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The type. + */ + com.google.cloud.designcenter.v1.DisplayVariableAlternateType getType(); + + /** + * + * + *
+   * Output only. Value of the alternate default.
+   * 
+ * + * .google.protobuf.Value value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the value field is set. + */ + boolean hasValue(); + + /** + * + * + *
+   * Output only. Value of the alternate default.
+   * 
+ * + * .google.protobuf.Value value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The value. + */ + com.google.protobuf.Value getValue(); + + /** + * + * + *
+   * Output only. Value of the alternate default.
+   * 
+ * + * .google.protobuf.Value value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.protobuf.ValueOrBuilder getValueOrBuilder(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApiInfo.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApiInfo.java new file mode 100644 index 000000000000..bcb9c65baed7 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApiInfo.java @@ -0,0 +1,699 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * ApiInfo represents an API along with its origin.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ApiInfo} + */ +@com.google.protobuf.Generated +public final class ApiInfo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ApiInfo) + ApiInfoOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ApiInfo"); + } + + // Use ApiInfo.newBuilder() to construct. + private ApiInfo(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ApiInfo() { + api_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_ApiInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_ApiInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ApiInfo.class, + com.google.cloud.designcenter.v1.ApiInfo.Builder.class); + } + + public static final int API_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object api_ = ""; + + /** + * + * + *
+   * Required. API name, such as `compute.googleapis.com`.
+   * 
+ * + * string api = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The api. + */ + @java.lang.Override + public java.lang.String getApi() { + java.lang.Object ref = api_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + api_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. API name, such as `compute.googleapis.com`.
+   * 
+ * + * string api = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for api. + */ + @java.lang.Override + public com.google.protobuf.ByteString getApiBytes() { + java.lang.Object ref = api_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + api_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SYSTEM_PROVIDED_FIELD_NUMBER = 2; + private boolean systemProvided_ = false; + + /** + * + * + *
+   * Output only. When `true`, indicates that this API is automatically added by
+   * Application Design Center. When you provide an API, this field is set to
+   * `false`.
+   * 
+ * + * bool system_provided = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The systemProvided. + */ + @java.lang.Override + public boolean getSystemProvided() { + return systemProvided_; + } + + 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.GeneratedMessage.isStringEmpty(api_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, api_); + } + if (systemProvided_ != false) { + output.writeBool(2, systemProvided_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(api_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, api_); + } + if (systemProvided_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, systemProvided_); + } + 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.designcenter.v1.ApiInfo)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ApiInfo other = (com.google.cloud.designcenter.v1.ApiInfo) obj; + + if (!getApi().equals(other.getApi())) return false; + if (getSystemProvided() != other.getSystemProvided()) 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) + API_FIELD_NUMBER; + hash = (53 * hash) + getApi().hashCode(); + hash = (37 * hash) + SYSTEM_PROVIDED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSystemProvided()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.ApiInfo parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ApiInfo 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.designcenter.v1.ApiInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ApiInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ApiInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ApiInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ApiInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ApiInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ApiInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ApiInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ApiInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ApiInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ApiInfo 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * ApiInfo represents an API along with its origin.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ApiInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ApiInfo) + com.google.cloud.designcenter.v1.ApiInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_ApiInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_ApiInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ApiInfo.class, + com.google.cloud.designcenter.v1.ApiInfo.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.ApiInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + api_ = ""; + systemProvided_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_ApiInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ApiInfo getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ApiInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ApiInfo build() { + com.google.cloud.designcenter.v1.ApiInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ApiInfo buildPartial() { + com.google.cloud.designcenter.v1.ApiInfo result = + new com.google.cloud.designcenter.v1.ApiInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.ApiInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.api_ = api_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.systemProvided_ = systemProvided_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.ApiInfo) { + return mergeFrom((com.google.cloud.designcenter.v1.ApiInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.ApiInfo other) { + if (other == com.google.cloud.designcenter.v1.ApiInfo.getDefaultInstance()) return this; + if (!other.getApi().isEmpty()) { + api_ = other.api_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getSystemProvided() != false) { + setSystemProvided(other.getSystemProvided()); + } + 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: + { + api_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + systemProvided_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object api_ = ""; + + /** + * + * + *
+     * Required. API name, such as `compute.googleapis.com`.
+     * 
+ * + * string api = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The api. + */ + public java.lang.String getApi() { + java.lang.Object ref = api_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + api_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. API name, such as `compute.googleapis.com`.
+     * 
+ * + * string api = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for api. + */ + public com.google.protobuf.ByteString getApiBytes() { + java.lang.Object ref = api_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + api_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. API name, such as `compute.googleapis.com`.
+     * 
+ * + * string api = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The api to set. + * @return This builder for chaining. + */ + public Builder setApi(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + api_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. API name, such as `compute.googleapis.com`.
+     * 
+ * + * string api = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearApi() { + api_ = getDefaultInstance().getApi(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. API name, such as `compute.googleapis.com`.
+     * 
+ * + * string api = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for api to set. + * @return This builder for chaining. + */ + public Builder setApiBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + api_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private boolean systemProvided_; + + /** + * + * + *
+     * Output only. When `true`, indicates that this API is automatically added by
+     * Application Design Center. When you provide an API, this field is set to
+     * `false`.
+     * 
+ * + * bool system_provided = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The systemProvided. + */ + @java.lang.Override + public boolean getSystemProvided() { + return systemProvided_; + } + + /** + * + * + *
+     * Output only. When `true`, indicates that this API is automatically added by
+     * Application Design Center. When you provide an API, this field is set to
+     * `false`.
+     * 
+ * + * bool system_provided = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The systemProvided to set. + * @return This builder for chaining. + */ + public Builder setSystemProvided(boolean value) { + + systemProvided_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. When `true`, indicates that this API is automatically added by
+     * Application Design Center. When you provide an API, this field is set to
+     * `false`.
+     * 
+ * + * bool system_provided = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSystemProvided() { + bitField0_ = (bitField0_ & ~0x00000002); + systemProvided_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ApiInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ApiInfo) + private static final com.google.cloud.designcenter.v1.ApiInfo DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.ApiInfo(); + } + + public static com.google.cloud.designcenter.v1.ApiInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ApiInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ApiInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApiInfoOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApiInfoOrBuilder.java new file mode 100644 index 000000000000..5e0bb34b362a --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApiInfoOrBuilder.java @@ -0,0 +1,69 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ApiInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ApiInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. API name, such as `compute.googleapis.com`.
+   * 
+ * + * string api = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The api. + */ + java.lang.String getApi(); + + /** + * + * + *
+   * Required. API name, such as `compute.googleapis.com`.
+   * 
+ * + * string api = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for api. + */ + com.google.protobuf.ByteString getApiBytes(); + + /** + * + * + *
+   * Output only. When `true`, indicates that this API is automatically added by
+   * Application Design Center. When you provide an API, this field is set to
+   * `false`.
+   * 
+ * + * bool system_provided = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The systemProvided. + */ + boolean getSystemProvided(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/AppHubApplicationParameters.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/AppHubApplicationParameters.java new file mode 100644 index 000000000000..c054217a846c --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/AppHubApplicationParameters.java @@ -0,0 +1,1583 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * App Hub application parameters.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.AppHubApplicationParameters} + */ +@com.google.protobuf.Generated +public final class AppHubApplicationParameters extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.AppHubApplicationParameters) + AppHubApplicationParametersOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AppHubApplicationParameters"); + } + + // Use AppHubApplicationParameters.newBuilder() to construct. + private AppHubApplicationParameters(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AppHubApplicationParameters() { + applicationId_ = ""; + location_ = ""; + hostProjectId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringResourcesProto + .internal_static_google_cloud_designcenter_v1_AppHubApplicationParameters_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringResourcesProto + .internal_static_google_cloud_designcenter_v1_AppHubApplicationParameters_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.AppHubApplicationParameters.class, + com.google.cloud.designcenter.v1.AppHubApplicationParameters.Builder.class); + } + + private int bitField0_; + public static final int APPLICATION_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object applicationId_ = ""; + + /** + * + * + *
+   * Optional. The App Hub application ID.
+   * 
+ * + * string application_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The applicationId. + */ + @java.lang.Override + public java.lang.String getApplicationId() { + java.lang.Object ref = applicationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + applicationId_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The App Hub application ID.
+   * 
+ * + * string application_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for applicationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getApplicationIdBytes() { + java.lang.Object ref = applicationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + applicationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCOPE_FIELD_NUMBER = 2; + private com.google.cloud.apphub.v1.Scope scope_; + + /** + * + * + *
+   * Optional. The App Hub application scope.
+   * 
+ * + * .google.cloud.apphub.v1.Scope scope = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the scope field is set. + */ + @java.lang.Override + public boolean hasScope() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. The App Hub application scope.
+   * 
+ * + * .google.cloud.apphub.v1.Scope scope = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The scope. + */ + @java.lang.Override + public com.google.cloud.apphub.v1.Scope getScope() { + return scope_ == null ? com.google.cloud.apphub.v1.Scope.getDefaultInstance() : scope_; + } + + /** + * + * + *
+   * Optional. The App Hub application scope.
+   * 
+ * + * .google.cloud.apphub.v1.Scope scope = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.cloud.apphub.v1.ScopeOrBuilder getScopeOrBuilder() { + return scope_ == null ? com.google.cloud.apphub.v1.Scope.getDefaultInstance() : scope_; + } + + public static final int ATTRIBUTES_FIELD_NUMBER = 3; + private com.google.cloud.apphub.v1.Attributes attributes_; + + /** + * + * + *
+   * Optional. The App Hub application attributes.
+   * 
+ * + * + * .google.cloud.apphub.v1.Attributes attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the attributes field is set. + */ + @java.lang.Override + public boolean hasAttributes() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. The App Hub application attributes.
+   * 
+ * + * + * .google.cloud.apphub.v1.Attributes attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The attributes. + */ + @java.lang.Override + public com.google.cloud.apphub.v1.Attributes getAttributes() { + return attributes_ == null + ? com.google.cloud.apphub.v1.Attributes.getDefaultInstance() + : attributes_; + } + + /** + * + * + *
+   * Optional. The App Hub application attributes.
+   * 
+ * + * + * .google.cloud.apphub.v1.Attributes attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.apphub.v1.AttributesOrBuilder getAttributesOrBuilder() { + return attributes_ == null + ? com.google.cloud.apphub.v1.Attributes.getDefaultInstance() + : attributes_; + } + + public static final int LOCATION_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object location_ = ""; + + /** + * + * + *
+   * Optional. The App Hub application location. Only used for applications with
+   * REGIONAL scope.
+   * 
+ * + * string location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The location. + */ + @java.lang.Override + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + location_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The App Hub application location. Only used for applications with
+   * REGIONAL scope.
+   * 
+ * + * string location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for location. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int HOST_PROJECT_ID_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object hostProjectId_ = ""; + + /** + * + * + *
+   * Optional. The host project ID where the App Hub application is created.
+   * 
+ * + * string host_project_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The hostProjectId. + */ + @java.lang.Override + public java.lang.String getHostProjectId() { + java.lang.Object ref = hostProjectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + hostProjectId_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The host project ID where the App Hub application is created.
+   * 
+ * + * string host_project_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for hostProjectId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHostProjectIdBytes() { + java.lang.Object ref = hostProjectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + hostProjectId_ = 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.GeneratedMessage.isStringEmpty(applicationId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, applicationId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getScope()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getAttributes()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(location_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, location_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(hostProjectId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, hostProjectId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(applicationId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, applicationId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getScope()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAttributes()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(location_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, location_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(hostProjectId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, hostProjectId_); + } + 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.designcenter.v1.AppHubApplicationParameters)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.AppHubApplicationParameters other = + (com.google.cloud.designcenter.v1.AppHubApplicationParameters) obj; + + if (!getApplicationId().equals(other.getApplicationId())) return false; + if (hasScope() != other.hasScope()) return false; + if (hasScope()) { + if (!getScope().equals(other.getScope())) return false; + } + if (hasAttributes() != other.hasAttributes()) return false; + if (hasAttributes()) { + if (!getAttributes().equals(other.getAttributes())) return false; + } + if (!getLocation().equals(other.getLocation())) return false; + if (!getHostProjectId().equals(other.getHostProjectId())) 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) + APPLICATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getApplicationId().hashCode(); + if (hasScope()) { + hash = (37 * hash) + SCOPE_FIELD_NUMBER; + hash = (53 * hash) + getScope().hashCode(); + } + if (hasAttributes()) { + hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + getAttributes().hashCode(); + } + hash = (37 * hash) + LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getLocation().hashCode(); + hash = (37 * hash) + HOST_PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getHostProjectId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.AppHubApplicationParameters parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.AppHubApplicationParameters 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.designcenter.v1.AppHubApplicationParameters parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.AppHubApplicationParameters parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.AppHubApplicationParameters parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.AppHubApplicationParameters parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.AppHubApplicationParameters parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.AppHubApplicationParameters parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.AppHubApplicationParameters parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.AppHubApplicationParameters parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.AppHubApplicationParameters parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.AppHubApplicationParameters parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.AppHubApplicationParameters 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * App Hub application parameters.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.AppHubApplicationParameters} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.AppHubApplicationParameters) + com.google.cloud.designcenter.v1.AppHubApplicationParametersOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringResourcesProto + .internal_static_google_cloud_designcenter_v1_AppHubApplicationParameters_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringResourcesProto + .internal_static_google_cloud_designcenter_v1_AppHubApplicationParameters_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.AppHubApplicationParameters.class, + com.google.cloud.designcenter.v1.AppHubApplicationParameters.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.AppHubApplicationParameters.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetScopeFieldBuilder(); + internalGetAttributesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + applicationId_ = ""; + scope_ = null; + if (scopeBuilder_ != null) { + scopeBuilder_.dispose(); + scopeBuilder_ = null; + } + attributes_ = null; + if (attributesBuilder_ != null) { + attributesBuilder_.dispose(); + attributesBuilder_ = null; + } + location_ = ""; + hostProjectId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.AuthoringResourcesProto + .internal_static_google_cloud_designcenter_v1_AppHubApplicationParameters_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.AppHubApplicationParameters + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.AppHubApplicationParameters.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.AppHubApplicationParameters build() { + com.google.cloud.designcenter.v1.AppHubApplicationParameters result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.AppHubApplicationParameters buildPartial() { + com.google.cloud.designcenter.v1.AppHubApplicationParameters result = + new com.google.cloud.designcenter.v1.AppHubApplicationParameters(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.AppHubApplicationParameters result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.applicationId_ = applicationId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.scope_ = scopeBuilder_ == null ? scope_ : scopeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.attributes_ = attributesBuilder_ == null ? attributes_ : attributesBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.location_ = location_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.hostProjectId_ = hostProjectId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.AppHubApplicationParameters) { + return mergeFrom((com.google.cloud.designcenter.v1.AppHubApplicationParameters) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.AppHubApplicationParameters other) { + if (other + == com.google.cloud.designcenter.v1.AppHubApplicationParameters.getDefaultInstance()) + return this; + if (!other.getApplicationId().isEmpty()) { + applicationId_ = other.applicationId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasScope()) { + mergeScope(other.getScope()); + } + if (other.hasAttributes()) { + mergeAttributes(other.getAttributes()); + } + if (!other.getLocation().isEmpty()) { + location_ = other.location_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getHostProjectId().isEmpty()) { + hostProjectId_ = other.hostProjectId_; + 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: + { + applicationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(internalGetScopeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetAttributesFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + location_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + hostProjectId_ = 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 applicationId_ = ""; + + /** + * + * + *
+     * Optional. The App Hub application ID.
+     * 
+ * + * string application_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The applicationId. + */ + public java.lang.String getApplicationId() { + java.lang.Object ref = applicationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + applicationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The App Hub application ID.
+     * 
+ * + * string application_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for applicationId. + */ + public com.google.protobuf.ByteString getApplicationIdBytes() { + java.lang.Object ref = applicationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + applicationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The App Hub application ID.
+     * 
+ * + * string application_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The applicationId to set. + * @return This builder for chaining. + */ + public Builder setApplicationId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + applicationId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The App Hub application ID.
+     * 
+ * + * string application_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearApplicationId() { + applicationId_ = getDefaultInstance().getApplicationId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The App Hub application ID.
+     * 
+ * + * string application_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for applicationId to set. + * @return This builder for chaining. + */ + public Builder setApplicationIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + applicationId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.apphub.v1.Scope scope_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.apphub.v1.Scope, + com.google.cloud.apphub.v1.Scope.Builder, + com.google.cloud.apphub.v1.ScopeOrBuilder> + scopeBuilder_; + + /** + * + * + *
+     * Optional. The App Hub application scope.
+     * 
+ * + * .google.cloud.apphub.v1.Scope scope = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the scope field is set. + */ + public boolean hasScope() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Optional. The App Hub application scope.
+     * 
+ * + * .google.cloud.apphub.v1.Scope scope = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The scope. + */ + public com.google.cloud.apphub.v1.Scope getScope() { + if (scopeBuilder_ == null) { + return scope_ == null ? com.google.cloud.apphub.v1.Scope.getDefaultInstance() : scope_; + } else { + return scopeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The App Hub application scope.
+     * 
+ * + * .google.cloud.apphub.v1.Scope scope = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setScope(com.google.cloud.apphub.v1.Scope value) { + if (scopeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + scope_ = value; + } else { + scopeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The App Hub application scope.
+     * 
+ * + * .google.cloud.apphub.v1.Scope scope = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setScope(com.google.cloud.apphub.v1.Scope.Builder builderForValue) { + if (scopeBuilder_ == null) { + scope_ = builderForValue.build(); + } else { + scopeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The App Hub application scope.
+     * 
+ * + * .google.cloud.apphub.v1.Scope scope = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeScope(com.google.cloud.apphub.v1.Scope value) { + if (scopeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && scope_ != null + && scope_ != com.google.cloud.apphub.v1.Scope.getDefaultInstance()) { + getScopeBuilder().mergeFrom(value); + } else { + scope_ = value; + } + } else { + scopeBuilder_.mergeFrom(value); + } + if (scope_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The App Hub application scope.
+     * 
+ * + * .google.cloud.apphub.v1.Scope scope = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearScope() { + bitField0_ = (bitField0_ & ~0x00000002); + scope_ = null; + if (scopeBuilder_ != null) { + scopeBuilder_.dispose(); + scopeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The App Hub application scope.
+     * 
+ * + * .google.cloud.apphub.v1.Scope scope = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.apphub.v1.Scope.Builder getScopeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetScopeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The App Hub application scope.
+     * 
+ * + * .google.cloud.apphub.v1.Scope scope = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.apphub.v1.ScopeOrBuilder getScopeOrBuilder() { + if (scopeBuilder_ != null) { + return scopeBuilder_.getMessageOrBuilder(); + } else { + return scope_ == null ? com.google.cloud.apphub.v1.Scope.getDefaultInstance() : scope_; + } + } + + /** + * + * + *
+     * Optional. The App Hub application scope.
+     * 
+ * + * .google.cloud.apphub.v1.Scope scope = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.apphub.v1.Scope, + com.google.cloud.apphub.v1.Scope.Builder, + com.google.cloud.apphub.v1.ScopeOrBuilder> + internalGetScopeFieldBuilder() { + if (scopeBuilder_ == null) { + scopeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.apphub.v1.Scope, + com.google.cloud.apphub.v1.Scope.Builder, + com.google.cloud.apphub.v1.ScopeOrBuilder>( + getScope(), getParentForChildren(), isClean()); + scope_ = null; + } + return scopeBuilder_; + } + + private com.google.cloud.apphub.v1.Attributes attributes_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.apphub.v1.Attributes, + com.google.cloud.apphub.v1.Attributes.Builder, + com.google.cloud.apphub.v1.AttributesOrBuilder> + attributesBuilder_; + + /** + * + * + *
+     * Optional. The App Hub application attributes.
+     * 
+ * + * + * .google.cloud.apphub.v1.Attributes attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the attributes field is set. + */ + public boolean hasAttributes() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Optional. The App Hub application attributes.
+     * 
+ * + * + * .google.cloud.apphub.v1.Attributes attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The attributes. + */ + public com.google.cloud.apphub.v1.Attributes getAttributes() { + if (attributesBuilder_ == null) { + return attributes_ == null + ? com.google.cloud.apphub.v1.Attributes.getDefaultInstance() + : attributes_; + } else { + return attributesBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The App Hub application attributes.
+     * 
+ * + * + * .google.cloud.apphub.v1.Attributes attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAttributes(com.google.cloud.apphub.v1.Attributes value) { + if (attributesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + attributes_ = value; + } else { + attributesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The App Hub application attributes.
+     * 
+ * + * + * .google.cloud.apphub.v1.Attributes attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAttributes(com.google.cloud.apphub.v1.Attributes.Builder builderForValue) { + if (attributesBuilder_ == null) { + attributes_ = builderForValue.build(); + } else { + attributesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The App Hub application attributes.
+     * 
+ * + * + * .google.cloud.apphub.v1.Attributes attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAttributes(com.google.cloud.apphub.v1.Attributes value) { + if (attributesBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && attributes_ != null + && attributes_ != com.google.cloud.apphub.v1.Attributes.getDefaultInstance()) { + getAttributesBuilder().mergeFrom(value); + } else { + attributes_ = value; + } + } else { + attributesBuilder_.mergeFrom(value); + } + if (attributes_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The App Hub application attributes.
+     * 
+ * + * + * .google.cloud.apphub.v1.Attributes attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAttributes() { + bitField0_ = (bitField0_ & ~0x00000004); + attributes_ = null; + if (attributesBuilder_ != null) { + attributesBuilder_.dispose(); + attributesBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The App Hub application attributes.
+     * 
+ * + * + * .google.cloud.apphub.v1.Attributes attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.apphub.v1.Attributes.Builder getAttributesBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetAttributesFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The App Hub application attributes.
+     * 
+ * + * + * .google.cloud.apphub.v1.Attributes attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.apphub.v1.AttributesOrBuilder getAttributesOrBuilder() { + if (attributesBuilder_ != null) { + return attributesBuilder_.getMessageOrBuilder(); + } else { + return attributes_ == null + ? com.google.cloud.apphub.v1.Attributes.getDefaultInstance() + : attributes_; + } + } + + /** + * + * + *
+     * Optional. The App Hub application attributes.
+     * 
+ * + * + * .google.cloud.apphub.v1.Attributes attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.apphub.v1.Attributes, + com.google.cloud.apphub.v1.Attributes.Builder, + com.google.cloud.apphub.v1.AttributesOrBuilder> + internalGetAttributesFieldBuilder() { + if (attributesBuilder_ == null) { + attributesBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.apphub.v1.Attributes, + com.google.cloud.apphub.v1.Attributes.Builder, + com.google.cloud.apphub.v1.AttributesOrBuilder>( + getAttributes(), getParentForChildren(), isClean()); + attributes_ = null; + } + return attributesBuilder_; + } + + private java.lang.Object location_ = ""; + + /** + * + * + *
+     * Optional. The App Hub application location. Only used for applications with
+     * REGIONAL scope.
+     * 
+ * + * string location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The location. + */ + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + location_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The App Hub application location. Only used for applications with
+     * REGIONAL scope.
+     * 
+ * + * string location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for location. + */ + public com.google.protobuf.ByteString getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The App Hub application location. Only used for applications with
+     * REGIONAL scope.
+     * 
+ * + * string location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The location to set. + * @return This builder for chaining. + */ + public Builder setLocation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + location_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The App Hub application location. Only used for applications with
+     * REGIONAL scope.
+     * 
+ * + * string location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearLocation() { + location_ = getDefaultInstance().getLocation(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The App Hub application location. Only used for applications with
+     * REGIONAL scope.
+     * 
+ * + * string location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for location to set. + * @return This builder for chaining. + */ + public Builder setLocationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + location_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object hostProjectId_ = ""; + + /** + * + * + *
+     * Optional. The host project ID where the App Hub application is created.
+     * 
+ * + * string host_project_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The hostProjectId. + */ + public java.lang.String getHostProjectId() { + java.lang.Object ref = hostProjectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + hostProjectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The host project ID where the App Hub application is created.
+     * 
+ * + * string host_project_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for hostProjectId. + */ + public com.google.protobuf.ByteString getHostProjectIdBytes() { + java.lang.Object ref = hostProjectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + hostProjectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The host project ID where the App Hub application is created.
+     * 
+ * + * string host_project_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The hostProjectId to set. + * @return This builder for chaining. + */ + public Builder setHostProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + hostProjectId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The host project ID where the App Hub application is created.
+     * 
+ * + * string host_project_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearHostProjectId() { + hostProjectId_ = getDefaultInstance().getHostProjectId(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The host project ID where the App Hub application is created.
+     * 
+ * + * string host_project_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for hostProjectId to set. + * @return This builder for chaining. + */ + public Builder setHostProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + hostProjectId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.AppHubApplicationParameters) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.AppHubApplicationParameters) + private static final com.google.cloud.designcenter.v1.AppHubApplicationParameters + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.AppHubApplicationParameters(); + } + + public static com.google.cloud.designcenter.v1.AppHubApplicationParameters getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AppHubApplicationParameters parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.AppHubApplicationParameters getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/AppHubApplicationParametersOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/AppHubApplicationParametersOrBuilder.java new file mode 100644 index 000000000000..616789e8931e --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/AppHubApplicationParametersOrBuilder.java @@ -0,0 +1,188 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface AppHubApplicationParametersOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.AppHubApplicationParameters) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The App Hub application ID.
+   * 
+ * + * string application_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The applicationId. + */ + java.lang.String getApplicationId(); + + /** + * + * + *
+   * Optional. The App Hub application ID.
+   * 
+ * + * string application_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for applicationId. + */ + com.google.protobuf.ByteString getApplicationIdBytes(); + + /** + * + * + *
+   * Optional. The App Hub application scope.
+   * 
+ * + * .google.cloud.apphub.v1.Scope scope = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the scope field is set. + */ + boolean hasScope(); + + /** + * + * + *
+   * Optional. The App Hub application scope.
+   * 
+ * + * .google.cloud.apphub.v1.Scope scope = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The scope. + */ + com.google.cloud.apphub.v1.Scope getScope(); + + /** + * + * + *
+   * Optional. The App Hub application scope.
+   * 
+ * + * .google.cloud.apphub.v1.Scope scope = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.cloud.apphub.v1.ScopeOrBuilder getScopeOrBuilder(); + + /** + * + * + *
+   * Optional. The App Hub application attributes.
+   * 
+ * + * + * .google.cloud.apphub.v1.Attributes attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the attributes field is set. + */ + boolean hasAttributes(); + + /** + * + * + *
+   * Optional. The App Hub application attributes.
+   * 
+ * + * + * .google.cloud.apphub.v1.Attributes attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The attributes. + */ + com.google.cloud.apphub.v1.Attributes getAttributes(); + + /** + * + * + *
+   * Optional. The App Hub application attributes.
+   * 
+ * + * + * .google.cloud.apphub.v1.Attributes attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.apphub.v1.AttributesOrBuilder getAttributesOrBuilder(); + + /** + * + * + *
+   * Optional. The App Hub application location. Only used for applications with
+   * REGIONAL scope.
+   * 
+ * + * string location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The location. + */ + java.lang.String getLocation(); + + /** + * + * + *
+   * Optional. The App Hub application location. Only used for applications with
+   * REGIONAL scope.
+   * 
+ * + * string location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for location. + */ + com.google.protobuf.ByteString getLocationBytes(); + + /** + * + * + *
+   * Optional. The host project ID where the App Hub application is created.
+   * 
+ * + * string host_project_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The hostProjectId. + */ + java.lang.String getHostProjectId(); + + /** + * + * + *
+   * Optional. The host project ID where the App Hub application is created.
+   * 
+ * + * string host_project_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for hostProjectId. + */ + com.google.protobuf.ByteString getHostProjectIdBytes(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApphubIntegrationProto.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApphubIntegrationProto.java new file mode 100644 index 000000000000..dd36cfeee9b1 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApphubIntegrationProto.java @@ -0,0 +1,109 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/apphub_integration.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public final class ApphubIntegrationProto extends com.google.protobuf.GeneratedFile { + private ApphubIntegrationProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ApphubIntegrationProto"); + } + + 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_designcenter_v1_UnregisteredResource_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_UnregisteredResource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_DeployedResource_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_DeployedResource_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" + + "5google/cloud/designcenter/v1/apphub_integration.proto\022\034google.cloud.designcent" + + "er.v1\032\037google/api/field_behavior.proto\"}\n" + + "\024UnregisteredResource\022O\n" + + "\021deployed_resource\030\001" + + " \001(\0132..google.cloud.designcenter.v1.DeployedResourceB\004\342A\001\003\022\024\n" + + "\006reason\030\002 \001(\tB\004\342A\001\003\"\\\n" + + "\020DeployedResource\022\031\n" + + "\013resource_id\030\001 \001(\tB\004\342A\001\002\022\025\n" + + "\007project\030\002 \001(\tB\004\342A\001\001\022\026\n" + + "\010location\030\003 \001(\tB\004\342A\001\001B\342\001\n" + + " com.google.cloud.designcenter.v1B\026ApphubIntegrationProto" + + "P\001ZDcloud.google.com/go/designcenter/api" + + "v1/designcenterpb;designcenterpb\252\002\034Googl" + + "e.Cloud.DesignCenter.V1\312\002\034Google\\Cloud\\D" + + "esignCenter\\V1\352\002\037Google::Cloud::DesignCenter::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + }); + internal_static_google_cloud_designcenter_v1_UnregisteredResource_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_designcenter_v1_UnregisteredResource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_UnregisteredResource_descriptor, + new java.lang.String[] { + "DeployedResource", "Reason", + }); + internal_static_google_cloud_designcenter_v1_DeployedResource_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_designcenter_v1_DeployedResource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_DeployedResource_descriptor, + new java.lang.String[] { + "ResourceId", "Project", "Location", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApphubIntegrationRpcMessagesProto.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApphubIntegrationRpcMessagesProto.java new file mode 100644 index 000000000000..3d1025ff94fc --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApphubIntegrationRpcMessagesProto.java @@ -0,0 +1,139 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/apphub_integration_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public final class ApphubIntegrationRpcMessagesProto extends com.google.protobuf.GeneratedFile { + private ApphubIntegrationRpcMessagesProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ApphubIntegrationRpcMessagesProto"); + } + + 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_designcenter_v1_RegisterAppHubApplicationResourcesRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_RegisterAppHubApplicationResourcesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_RegisterAppHubApplicationResourcesResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_RegisterAppHubApplicationResourcesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_DeployedResourceResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_DeployedResourceResponse_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/designcenter/v1/apphub_in" + + "tegration_messages.proto\022\034google.cloud.d" + + "esigncenter.v1\032\037google/api/field_behavio" + + "r.proto\032\031google/api/resource.proto\0325goog" + + "le/cloud/designcenter/v1/apphub_integrat" + + "ion.proto\"\344\001\n)RegisterAppHubApplicationR" + + "esourcesRequest\022\037\n\017tfstate_content\030\002 \001(\t" + + "B\004\342A\001\001H\000\022&\n\026tfstate_signed_gcs_uri\030\003 \001(\t" + + "B\004\342A\001\001H\000\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!locat" + + "ions.googleapis.com/Location\022 \n\022apphub_a" + + "pplication\030\004 \001(\tB\004\342A\001\002B\020\n\016tfstate_source" + + "\"v\n*RegisterAppHubApplicationResourcesRe" + + "sponse\022H\n\010response\030\001 \001(\01326.google.cloud." + + "designcenter.v1.DeployedResourceResponse" + + "\"\250\001\n\030DeployedResourceResponse\022\032\n\022apphub_" + + "application\030\001 \001(\t\022\034\n\024registered_resource" + + "s\030\002 \003(\t\022R\n\026unregistered_resources\030\003 \003(\0132" + + "2.google.cloud.designcenter.v1.Unregiste" + + "redResourceB\355\001\n com.google.cloud.designc" + + "enter.v1B!ApphubIntegrationRpcMessagesPr" + + "otoP\001ZDcloud.google.com/go/designcenter/" + + "apiv1/designcenterpb;designcenterpb\252\002\034Go" + + "ogle.Cloud.DesignCenter.V1\312\002\034Google\\Clou" + + "d\\DesignCenter\\V1\352\002\037Google::Cloud::Desig" + + "nCenter::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.designcenter.v1.ApphubIntegrationProto.getDescriptor(), + }); + internal_static_google_cloud_designcenter_v1_RegisterAppHubApplicationResourcesRequest_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_designcenter_v1_RegisterAppHubApplicationResourcesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_RegisterAppHubApplicationResourcesRequest_descriptor, + new java.lang.String[] { + "TfstateContent", + "TfstateSignedGcsUri", + "Parent", + "ApphubApplication", + "TfstateSource", + }); + internal_static_google_cloud_designcenter_v1_RegisterAppHubApplicationResourcesResponse_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_designcenter_v1_RegisterAppHubApplicationResourcesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_RegisterAppHubApplicationResourcesResponse_descriptor, + new java.lang.String[] { + "Response", + }); + internal_static_google_cloud_designcenter_v1_DeployedResourceResponse_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_designcenter_v1_DeployedResourceResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_DeployedResourceResponse_descriptor, + new java.lang.String[] { + "ApphubApplication", "RegisteredResources", "UnregisteredResources", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.designcenter.v1.ApphubIntegrationProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/Application.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/Application.java new file mode 100644 index 000000000000..011408dfe3dc --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/Application.java @@ -0,0 +1,10596 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment_resources.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Represents the application resource.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.Application} + */ +@com.google.protobuf.Generated +public final class Application extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.Application) + ApplicationOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "Application"); + } + + // Use Application.newBuilder() to construct. + private Application(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Application() { + name_ = ""; + appParameters_ = java.util.Collections.emptyList(); + componentParameters_ = java.util.Collections.emptyList(); + serviceAccount_ = ""; + displayName_ = ""; + description_ = ""; + previewReference_ = ""; + deploymentRevision_ = ""; + apphubApplication_ = ""; + state_ = 0; + projectParameters_ = java.util.Collections.emptyList(); + deploymentRegion_ = ""; + deploymentProject_ = ""; + connectionConfigs_ = java.util.Collections.emptyList(); + type_ = 0; + compositionType_ = 0; + paramsUpdateStrategy_ = 0; + rolesApisConfig_ = java.util.Collections.emptyList(); + iacSource_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentResourcesProto + .internal_static_google_cloud_designcenter_v1_Application_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentResourcesProto + .internal_static_google_cloud_designcenter_v1_Application_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.Application.class, + com.google.cloud.designcenter.v1.Application.Builder.class); + } + + /** + * + * + *
+   * Possible values for the application deployment state.
+   * 
+ * + * Protobuf enum {@code google.cloud.designcenter.v1.Application.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified application deployment state.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * Application is in draft.
+     * 
+ * + * DRAFT = 1; + */ + DRAFT(1), + /** + * + * + *
+     * New application deployment is in progress.
+     * 
+ * + * CREATING_DEPLOYMENT = 2; + */ + CREATING_DEPLOYMENT(2), + /** + * + * + *
+     * Update application deployment is in progress.
+     * 
+ * + * UPDATING_DEPLOYMENT = 3; + */ + UPDATING_DEPLOYMENT(3), + /** + * + * + *
+     * Delete application deployment is in progress.
+     * 
+ * + * DELETING = 4; + */ + DELETING(4), + /** + * + * + *
+     * Application deployment is completed.
+     * 
+ * + * DEPLOYED = 5; + */ + DEPLOYED(5), + /** + * + * + *
+     * Application deployment is deleted.
+     * 
+ * + * DELETED = 6; + */ + DELETED(6), + /** + * + * + *
+     * Application deployment is failed.
+     * 
+ * + * FAILED = 7; + */ + FAILED(7), + /** + * + * + *
+     * Application deployment is in progress.
+     * 
+ * + * DEPLOYING = 8; + */ + DEPLOYING(8), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
+     * Unspecified application deployment state.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Application is in draft.
+     * 
+ * + * DRAFT = 1; + */ + public static final int DRAFT_VALUE = 1; + + /** + * + * + *
+     * New application deployment is in progress.
+     * 
+ * + * CREATING_DEPLOYMENT = 2; + */ + public static final int CREATING_DEPLOYMENT_VALUE = 2; + + /** + * + * + *
+     * Update application deployment is in progress.
+     * 
+ * + * UPDATING_DEPLOYMENT = 3; + */ + public static final int UPDATING_DEPLOYMENT_VALUE = 3; + + /** + * + * + *
+     * Delete application deployment is in progress.
+     * 
+ * + * DELETING = 4; + */ + public static final int DELETING_VALUE = 4; + + /** + * + * + *
+     * Application deployment is completed.
+     * 
+ * + * DEPLOYED = 5; + */ + public static final int DEPLOYED_VALUE = 5; + + /** + * + * + *
+     * Application deployment is deleted.
+     * 
+ * + * DELETED = 6; + */ + public static final int DELETED_VALUE = 6; + + /** + * + * + *
+     * Application deployment is failed.
+     * 
+ * + * FAILED = 7; + */ + public static final int FAILED_VALUE = 7; + + /** + * + * + *
+     * Application deployment is in progress.
+     * 
+ * + * DEPLOYING = 8; + */ + public static final int DEPLOYING_VALUE = 8; + + 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 CREATING_DEPLOYMENT; + case 3: + return UPDATING_DEPLOYMENT; + case 4: + return DELETING; + case 5: + return DEPLOYED; + case 6: + return DELETED; + case 7: + return FAILED; + case 8: + return DEPLOYING; + 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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.designcenter.v1.Application.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.designcenter.v1.Application.State) + } + + /** + * + * + *
+   * Specifies the strategy to use when updating an application.
+   * 
+ * + * Protobuf enum {@code google.cloud.designcenter.v1.Application.UpdateStrategy} + */ + public enum UpdateStrategy implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Retains the existing value for the field.
+     * 
+ * + * UPDATE_STRATEGY_UNSPECIFIED = 0; + */ + UPDATE_STRATEGY_UNSPECIFIED(0), + /** + * + * + *
+     * Replaces the existing field values with the provided ones.
+     * 
+ * + * REPLACE = 2; + */ + REPLACE(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "UpdateStrategy"); + } + + /** + * + * + *
+     * Retains the existing value for the field.
+     * 
+ * + * UPDATE_STRATEGY_UNSPECIFIED = 0; + */ + public static final int UPDATE_STRATEGY_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Replaces the existing field values with the provided ones.
+     * 
+ * + * REPLACE = 2; + */ + public static final int REPLACE_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 UpdateStrategy 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 UpdateStrategy forNumber(int value) { + switch (value) { + case 0: + return UPDATE_STRATEGY_UNSPECIFIED; + case 2: + return REPLACE; + 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 UpdateStrategy findValueByNumber(int number) { + return UpdateStrategy.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.designcenter.v1.Application.getDescriptor().getEnumTypes().get(1); + } + + private static final UpdateStrategy[] VALUES = values(); + + public static UpdateStrategy 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 UpdateStrategy(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.designcenter.v1.Application.UpdateStrategy) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Identifier. The name of the application.
+   * Format:
+   * projects/{project}/locations/{location}/spaces/{space}/applications/{application}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + + /** + * + * + *
+   * Identifier. The name of the application.
+   * Format:
+   * projects/{project}/locations/{location}/spaces/{space}/applications/{application}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+   * Output only. Create timestamp.
+   * 
+ * + * .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 ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. Create timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
+   * Output only. Create timestamp.
+   * 
+ * + * .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. Update timestamp.
+   * 
+ * + * .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 ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. Update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
+   * Output only. Update timestamp.
+   * 
+ * + * .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 SOURCE_FIELD_NUMBER = 4; + private com.google.cloud.designcenter.v1.DeploymentSource source_; + + /** + * + * + *
+   * Required. The application deployment source.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentSource source = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the source field is set. + */ + @java.lang.Override + public boolean hasSource() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Required. The application deployment source.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentSource source = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The source. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.DeploymentSource getSource() { + return source_ == null + ? com.google.cloud.designcenter.v1.DeploymentSource.getDefaultInstance() + : source_; + } + + /** + * + * + *
+   * Required. The application deployment source.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentSource source = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.DeploymentSourceOrBuilder getSourceOrBuilder() { + return source_ == null + ? com.google.cloud.designcenter.v1.DeploymentSource.getDefaultInstance() + : source_; + } + + public static final int APP_PARAMETERS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private java.util.List appParameters_; + + /** + * + * + *
+   * Optional. A list of parameters to attach to the deployment source object,
+   * which is a catalog entry or application template snapshot.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter app_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getAppParametersList() { + return appParameters_; + } + + /** + * + * + *
+   * Optional. A list of parameters to attach to the deployment source object,
+   * which is a catalog entry or application template snapshot.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter app_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getAppParametersOrBuilderList() { + return appParameters_; + } + + /** + * + * + *
+   * Optional. A list of parameters to attach to the deployment source object,
+   * which is a catalog entry or application template snapshot.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter app_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getAppParametersCount() { + return appParameters_.size(); + } + + /** + * + * + *
+   * Optional. A list of parameters to attach to the deployment source object,
+   * which is a catalog entry or application template snapshot.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter app_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.Parameter getAppParameters(int index) { + return appParameters_.get(index); + } + + /** + * + * + *
+   * Optional. A list of parameters to attach to the deployment source object,
+   * which is a catalog entry or application template snapshot.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter app_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ParameterOrBuilder getAppParametersOrBuilder(int index) { + return appParameters_.get(index); + } + + public static final int COMPONENT_PARAMETERS_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private java.util.List componentParameters_; + + /** + * + * + *
+   * Optional. A list of component parameters to associate with the application.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameters component_parameters = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getComponentParametersList() { + return componentParameters_; + } + + /** + * + * + *
+   * Optional. A list of component parameters to associate with the application.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameters component_parameters = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getComponentParametersOrBuilderList() { + return componentParameters_; + } + + /** + * + * + *
+   * Optional. A list of component parameters to associate with the application.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameters component_parameters = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getComponentParametersCount() { + return componentParameters_.size(); + } + + /** + * + * + *
+   * Optional. A list of component parameters to associate with the application.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameters component_parameters = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ComponentParameters getComponentParameters(int index) { + return componentParameters_.get(index); + } + + /** + * + * + *
+   * Optional. A list of component parameters to associate with the application.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameters component_parameters = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ComponentParametersOrBuilder + getComponentParametersOrBuilder(int index) { + return componentParameters_.get(index); + } + + public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private volatile java.lang.Object serviceAccount_ = ""; + + /** + * + * + *
+   * Optional. Your own service account that you use to deploy an application.
+   * 
+ * + * string service_account = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The serviceAccount. + */ + @java.lang.Override + public java.lang.String getServiceAccount() { + java.lang.Object ref = serviceAccount_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccount_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Your own service account that you use to deploy an application.
+   * 
+ * + * string service_account = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for serviceAccount. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServiceAccountBytes() { + java.lang.Object ref = serviceAccount_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 12; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
+   * Optional. Display name of the application.
+   * 
+ * + * string display_name = 12 [(.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 of the application.
+   * 
+ * + * string display_name = 12 [(.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 DESCRIPTION_FIELD_NUMBER = 13; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
+   * Optional. Description of the application.
+   * 
+ * + * string description = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Description of the application.
+   * 
+ * + * string description = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ATTRIBUTES_FIELD_NUMBER = 14; + private com.google.cloud.apphub.v1.Attributes attributes_; + + /** + * + * + *
+   * Optional. Attributes of the application.
+   * 
+ * + * + * .google.cloud.apphub.v1.Attributes attributes = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the attributes field is set. + */ + @java.lang.Override + public boolean hasAttributes() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Optional. Attributes of the application.
+   * 
+ * + * + * .google.cloud.apphub.v1.Attributes attributes = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The attributes. + */ + @java.lang.Override + public com.google.cloud.apphub.v1.Attributes getAttributes() { + return attributes_ == null + ? com.google.cloud.apphub.v1.Attributes.getDefaultInstance() + : attributes_; + } + + /** + * + * + *
+   * Optional. Attributes of the application.
+   * 
+ * + * + * .google.cloud.apphub.v1.Attributes attributes = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.apphub.v1.AttributesOrBuilder getAttributesOrBuilder() { + return attributes_ == null + ? com.google.cloud.apphub.v1.Attributes.getDefaultInstance() + : attributes_; + } + + public static final int SCOPE_FIELD_NUMBER = 15; + private com.google.cloud.apphub.v1.Scope scope_; + + /** + * + * + *
+   * Required. Scope of the application.
+   * 
+ * + * .google.cloud.apphub.v1.Scope scope = 15 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the scope field is set. + */ + @java.lang.Override + public boolean hasScope() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+   * Required. Scope of the application.
+   * 
+ * + * .google.cloud.apphub.v1.Scope scope = 15 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The scope. + */ + @java.lang.Override + public com.google.cloud.apphub.v1.Scope getScope() { + return scope_ == null ? com.google.cloud.apphub.v1.Scope.getDefaultInstance() : scope_; + } + + /** + * + * + *
+   * Required. Scope of the application.
+   * 
+ * + * .google.cloud.apphub.v1.Scope scope = 15 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.apphub.v1.ScopeOrBuilder getScopeOrBuilder() { + return scope_ == null ? com.google.cloud.apphub.v1.Scope.getDefaultInstance() : scope_; + } + + public static final int IMPORT_EXISTING_RESOURCES_FIELD_NUMBER = 16; + private boolean importExistingResources_ = false; + + /** + * + * + *
+   * Optional. Import existing resources into the application.
+   * 
+ * + * bool import_existing_resources = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The importExistingResources. + */ + @java.lang.Override + public boolean getImportExistingResources() { + return importExistingResources_; + } + + public static final int PREVIEW_REFERENCE_FIELD_NUMBER = 17; + + @SuppressWarnings("serial") + private volatile java.lang.Object previewReference_ = ""; + + /** + * + * + *
+   * Output only. Preview reference for the application.
+   * 
+ * + * string preview_reference = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The previewReference. + */ + @java.lang.Override + public java.lang.String getPreviewReference() { + java.lang.Object ref = previewReference_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + previewReference_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. Preview reference for the application.
+   * 
+ * + * string preview_reference = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for previewReference. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPreviewReferenceBytes() { + java.lang.Object ref = previewReference_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + previewReference_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEPLOYMENT_REVISION_FIELD_NUMBER = 18; + + @SuppressWarnings("serial") + private volatile java.lang.Object deploymentRevision_ = ""; + + /** + * + * + *
+   * Output only. [Output only] Optional Infra Manager deployment Id with
+   * revision
+   * 
+ * + * string deployment_revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The deploymentRevision. + */ + @java.lang.Override + public java.lang.String getDeploymentRevision() { + java.lang.Object ref = deploymentRevision_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deploymentRevision_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. [Output only] Optional Infra Manager deployment Id with
+   * revision
+   * 
+ * + * string deployment_revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for deploymentRevision. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDeploymentRevisionBytes() { + java.lang.Object ref = deploymentRevision_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deploymentRevision_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int APPHUB_APPLICATION_FIELD_NUMBER = 19; + + @SuppressWarnings("serial") + private volatile java.lang.Object apphubApplication_ = ""; + + /** + * + * + *
+   * Output only. The App Hub App associated with the application.
+   * 
+ * + * string apphub_application = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The apphubApplication. + */ + @java.lang.Override + public java.lang.String getApphubApplication() { + java.lang.Object ref = apphubApplication_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + apphubApplication_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The App Hub App associated with the application.
+   * 
+ * + * string apphub_application = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for apphubApplication. + */ + @java.lang.Override + public com.google.protobuf.ByteString getApphubApplicationBytes() { + java.lang.Object ref = apphubApplication_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + apphubApplication_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SERIALIZED_APPLICATION_TEMPLATE_FIELD_NUMBER = 20; + private com.google.cloud.designcenter.v1.SerializedApplicationTemplate + serializedApplicationTemplate_; + + /** + * + * + *
+   * Output only. [Output only] Serialized application template.
+   * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate serialized_application_template = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the serializedApplicationTemplate field is set. + */ + @java.lang.Override + public boolean hasSerializedApplicationTemplate() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+   * Output only. [Output only] Serialized application template.
+   * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate serialized_application_template = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The serializedApplicationTemplate. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.SerializedApplicationTemplate + getSerializedApplicationTemplate() { + return serializedApplicationTemplate_ == null + ? com.google.cloud.designcenter.v1.SerializedApplicationTemplate.getDefaultInstance() + : serializedApplicationTemplate_; + } + + /** + * + * + *
+   * Output only. [Output only] Serialized application template.
+   * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate serialized_application_template = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.SerializedApplicationTemplateOrBuilder + getSerializedApplicationTemplateOrBuilder() { + return serializedApplicationTemplate_ == null + ? com.google.cloud.designcenter.v1.SerializedApplicationTemplate.getDefaultInstance() + : serializedApplicationTemplate_; + } + + public static final int STATE_FIELD_NUMBER = 21; + private int state_ = 0; + + /** + * + * + *
+   * Output only. Deployment state of the application.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Application.State state = 21 [(.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. Deployment state of the application.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Application.State state = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.Application.State getState() { + com.google.cloud.designcenter.v1.Application.State result = + com.google.cloud.designcenter.v1.Application.State.forNumber(state_); + return result == null + ? com.google.cloud.designcenter.v1.Application.State.UNRECOGNIZED + : result; + } + + public static final int DEPLOYMENT_METADATA_FIELD_NUMBER = 22; + private com.google.cloud.designcenter.v1.DeploymentMetadata deploymentMetadata_; + + /** + * + * + *
+   * Output only. Deployment metadata of the application.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentMetadata deployment_metadata = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the deploymentMetadata field is set. + */ + @java.lang.Override + public boolean hasDeploymentMetadata() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+   * Output only. Deployment metadata of the application.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentMetadata deployment_metadata = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deploymentMetadata. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.DeploymentMetadata getDeploymentMetadata() { + return deploymentMetadata_ == null + ? com.google.cloud.designcenter.v1.DeploymentMetadata.getDefaultInstance() + : deploymentMetadata_; + } + + /** + * + * + *
+   * Output only. Deployment metadata of the application.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentMetadata deployment_metadata = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.DeploymentMetadataOrBuilder + getDeploymentMetadataOrBuilder() { + return deploymentMetadata_ == null + ? com.google.cloud.designcenter.v1.DeploymentMetadata.getDefaultInstance() + : deploymentMetadata_; + } + + public static final int PROJECT_PARAMETERS_FIELD_NUMBER = 23; + + @SuppressWarnings("serial") + private java.util.List projectParameters_; + + /** + * + * + *
+   * Output only. List of project parameters for the application.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProjectParameters project_parameters = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getProjectParametersList() { + return projectParameters_; + } + + /** + * + * + *
+   * Output only. List of project parameters for the application.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProjectParameters project_parameters = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getProjectParametersOrBuilderList() { + return projectParameters_; + } + + /** + * + * + *
+   * Output only. List of project parameters for the application.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProjectParameters project_parameters = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getProjectParametersCount() { + return projectParameters_.size(); + } + + /** + * + * + *
+   * Output only. List of project parameters for the application.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProjectParameters project_parameters = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ProjectParameters getProjectParameters(int index) { + return projectParameters_.get(index); + } + + /** + * + * + *
+   * Output only. List of project parameters for the application.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProjectParameters project_parameters = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ProjectParametersOrBuilder getProjectParametersOrBuilder( + int index) { + return projectParameters_.get(index); + } + + public static final int DEPLOYMENT_REGION_FIELD_NUMBER = 24; + + @SuppressWarnings("serial") + private volatile java.lang.Object deploymentRegion_ = ""; + + /** + * + * + *
+   * Optional. The region where the application is deployed.
+   * 
+ * + * string deployment_region = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The deploymentRegion. + */ + @java.lang.Override + public java.lang.String getDeploymentRegion() { + java.lang.Object ref = deploymentRegion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deploymentRegion_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The region where the application is deployed.
+   * 
+ * + * string deployment_region = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for deploymentRegion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDeploymentRegionBytes() { + java.lang.Object ref = deploymentRegion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deploymentRegion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UPDATED_TEMPLATE_REVISION_FIELD_NUMBER = 26; + private com.google.cloud.designcenter.v1.UpdatedTemplateRevision updatedTemplateRevision_; + + /** + * + * + *
+   * Output only. The updated template revision because of which the application
+   * is outdated.
+   * 
+ * + * + * .google.cloud.designcenter.v1.UpdatedTemplateRevision updated_template_revision = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updatedTemplateRevision field is set. + */ + @java.lang.Override + public boolean hasUpdatedTemplateRevision() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+   * Output only. The updated template revision because of which the application
+   * is outdated.
+   * 
+ * + * + * .google.cloud.designcenter.v1.UpdatedTemplateRevision updated_template_revision = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updatedTemplateRevision. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.UpdatedTemplateRevision getUpdatedTemplateRevision() { + return updatedTemplateRevision_ == null + ? com.google.cloud.designcenter.v1.UpdatedTemplateRevision.getDefaultInstance() + : updatedTemplateRevision_; + } + + /** + * + * + *
+   * Output only. The updated template revision because of which the application
+   * is outdated.
+   * 
+ * + * + * .google.cloud.designcenter.v1.UpdatedTemplateRevision updated_template_revision = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.UpdatedTemplateRevisionOrBuilder + getUpdatedTemplateRevisionOrBuilder() { + return updatedTemplateRevision_ == null + ? com.google.cloud.designcenter.v1.UpdatedTemplateRevision.getDefaultInstance() + : updatedTemplateRevision_; + } + + public static final int DEPLOYMENT_PROJECT_FIELD_NUMBER = 27; + + @SuppressWarnings("serial") + private volatile java.lang.Object deploymentProject_ = ""; + + /** + * + * + *
+   * Optional. Deployment project of the application.
+   * 
+ * + * string deployment_project = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The deploymentProject. + */ + @java.lang.Override + public java.lang.String getDeploymentProject() { + java.lang.Object ref = deploymentProject_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deploymentProject_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Deployment project of the application.
+   * 
+ * + * string deployment_project = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for deploymentProject. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDeploymentProjectBytes() { + java.lang.Object ref = deploymentProject_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deploymentProject_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONNECTION_CONFIGS_FIELD_NUMBER = 28; + + @SuppressWarnings("serial") + private java.util.List connectionConfigs_; + + /** + * + * + *
+   * Optional. Connection configuration for the application.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionConfig connection_configs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getConnectionConfigsList() { + return connectionConfigs_; + } + + /** + * + * + *
+   * Optional. Connection configuration for the application.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionConfig connection_configs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getConnectionConfigsOrBuilderList() { + return connectionConfigs_; + } + + /** + * + * + *
+   * Optional. Connection configuration for the application.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionConfig connection_configs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getConnectionConfigsCount() { + return connectionConfigs_.size(); + } + + /** + * + * + *
+   * Optional. Connection configuration for the application.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionConfig connection_configs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ConnectionConfig getConnectionConfigs(int index) { + return connectionConfigs_.get(index); + } + + /** + * + * + *
+   * Optional. Connection configuration for the application.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionConfig connection_configs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ConnectionConfigOrBuilder getConnectionConfigsOrBuilder( + int index) { + return connectionConfigs_.get(index); + } + + public static final int ARTIFACT_LOCATION_FIELD_NUMBER = 29; + private com.google.cloud.designcenter.v1.ArtifactLocation artifactLocation_; + + /** + * + * + *
+   * Output only. Details of the location where the IaC for this application was
+   * last successfully exported.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the artifactLocation field is set. + */ + @java.lang.Override + public boolean hasArtifactLocation() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
+   * Output only. Details of the location where the IaC for this application was
+   * last successfully exported.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The artifactLocation. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ArtifactLocation getArtifactLocation() { + return artifactLocation_ == null + ? com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance() + : artifactLocation_; + } + + /** + * + * + *
+   * Output only. Details of the location where the IaC for this application was
+   * last successfully exported.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder getArtifactLocationOrBuilder() { + return artifactLocation_ == null + ? com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance() + : artifactLocation_; + } + + public static final int TYPE_FIELD_NUMBER = 30; + private int type_ = 0; + + /** + * + * + *
+   * Optional. The type of the application.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationType type = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
+   * Optional. The type of the application.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationType type = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ApplicationType getType() { + com.google.cloud.designcenter.v1.ApplicationType result = + com.google.cloud.designcenter.v1.ApplicationType.forNumber(type_); + return result == null ? com.google.cloud.designcenter.v1.ApplicationType.UNRECOGNIZED : result; + } + + public static final int DEPLOYMENT_TARGET_FIELD_NUMBER = 31; + private com.google.cloud.designcenter.v1.DeploymentTarget deploymentTarget_; + + /** + * + * + *
+   * Optional. The deployment target of the application.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentTarget deployment_target = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the deploymentTarget field is set. + */ + @java.lang.Override + public boolean hasDeploymentTarget() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
+   * Optional. The deployment target of the application.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentTarget deployment_target = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The deploymentTarget. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.DeploymentTarget getDeploymentTarget() { + return deploymentTarget_ == null + ? com.google.cloud.designcenter.v1.DeploymentTarget.getDefaultInstance() + : deploymentTarget_; + } + + /** + * + * + *
+   * Optional. The deployment target of the application.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentTarget deployment_target = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.DeploymentTargetOrBuilder getDeploymentTargetOrBuilder() { + return deploymentTarget_ == null + ? com.google.cloud.designcenter.v1.DeploymentTarget.getDefaultInstance() + : deploymentTarget_; + } + + public static final int COMPOSITION_TYPE_FIELD_NUMBER = 32; + private int compositionType_ = 0; + + /** + * + * + *
+   * Output only. The composition type of the application: STANDARD OR
+   * COMPOSITE.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationCompositionType composition_type = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for compositionType. + */ + @java.lang.Override + public int getCompositionTypeValue() { + return compositionType_; + } + + /** + * + * + *
+   * Output only. The composition type of the application: STANDARD OR
+   * COMPOSITE.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationCompositionType composition_type = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The compositionType. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ApplicationCompositionType getCompositionType() { + com.google.cloud.designcenter.v1.ApplicationCompositionType result = + com.google.cloud.designcenter.v1.ApplicationCompositionType.forNumber(compositionType_); + return result == null + ? com.google.cloud.designcenter.v1.ApplicationCompositionType.UNRECOGNIZED + : result; + } + + public static final int COMPOSITE_APPLICATION_PARAMETERS_FIELD_NUMBER = 33; + private com.google.cloud.designcenter.v1.CompositeApplicationParameters + compositeApplicationParameters_; + + /** + * + * + *
+   * Optional. Parameters that are required for composite applications.
+   * 
+ * + * + * .google.cloud.designcenter.v1.CompositeApplicationParameters composite_application_parameters = 33 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the compositeApplicationParameters field is set. + */ + @java.lang.Override + public boolean hasCompositeApplicationParameters() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
+   * Optional. Parameters that are required for composite applications.
+   * 
+ * + * + * .google.cloud.designcenter.v1.CompositeApplicationParameters composite_application_parameters = 33 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The compositeApplicationParameters. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.CompositeApplicationParameters + getCompositeApplicationParameters() { + return compositeApplicationParameters_ == null + ? com.google.cloud.designcenter.v1.CompositeApplicationParameters.getDefaultInstance() + : compositeApplicationParameters_; + } + + /** + * + * + *
+   * Optional. Parameters that are required for composite applications.
+   * 
+ * + * + * .google.cloud.designcenter.v1.CompositeApplicationParameters composite_application_parameters = 33 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.CompositeApplicationParametersOrBuilder + getCompositeApplicationParametersOrBuilder() { + return compositeApplicationParameters_ == null + ? com.google.cloud.designcenter.v1.CompositeApplicationParameters.getDefaultInstance() + : compositeApplicationParameters_; + } + + public static final int DEPLOYMENT_GROUP_METADATA_FIELD_NUMBER = 34; + private com.google.cloud.designcenter.v1.DeploymentGroupMetadata deploymentGroupMetadata_; + + /** + * + * + *
+   * Output only. The deployment group metadata of the application. This is
+   * applicable only for composite applications.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentGroupMetadata deployment_group_metadata = 34 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the deploymentGroupMetadata field is set. + */ + @java.lang.Override + public boolean hasDeploymentGroupMetadata() { + return ((bitField0_ & 0x00000800) != 0); + } + + /** + * + * + *
+   * Output only. The deployment group metadata of the application. This is
+   * applicable only for composite applications.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentGroupMetadata deployment_group_metadata = 34 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deploymentGroupMetadata. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.DeploymentGroupMetadata getDeploymentGroupMetadata() { + return deploymentGroupMetadata_ == null + ? com.google.cloud.designcenter.v1.DeploymentGroupMetadata.getDefaultInstance() + : deploymentGroupMetadata_; + } + + /** + * + * + *
+   * Output only. The deployment group metadata of the application. This is
+   * applicable only for composite applications.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentGroupMetadata deployment_group_metadata = 34 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.DeploymentGroupMetadataOrBuilder + getDeploymentGroupMetadataOrBuilder() { + return deploymentGroupMetadata_ == null + ? com.google.cloud.designcenter.v1.DeploymentGroupMetadata.getDefaultInstance() + : deploymentGroupMetadata_; + } + + public static final int PARAMS_UPDATE_STRATEGY_FIELD_NUMBER = 35; + private int paramsUpdateStrategy_ = 0; + + /** + * + * + *
+   * Optional. Specifies the strategy to use when updating the application
+   * parameters while updating the application template revision.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Application.UpdateStrategy params_update_strategy = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for paramsUpdateStrategy. + */ + @java.lang.Override + public int getParamsUpdateStrategyValue() { + return paramsUpdateStrategy_; + } + + /** + * + * + *
+   * Optional. Specifies the strategy to use when updating the application
+   * parameters while updating the application template revision.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Application.UpdateStrategy params_update_strategy = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The paramsUpdateStrategy. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.Application.UpdateStrategy getParamsUpdateStrategy() { + com.google.cloud.designcenter.v1.Application.UpdateStrategy result = + com.google.cloud.designcenter.v1.Application.UpdateStrategy.forNumber( + paramsUpdateStrategy_); + return result == null + ? com.google.cloud.designcenter.v1.Application.UpdateStrategy.UNRECOGNIZED + : result; + } + + public static final int ROLES_APIS_CONFIG_FIELD_NUMBER = 36; + + @SuppressWarnings("serial") + private java.util.List rolesApisConfig_; + + /** + * + * + *
+   * Optional. Project-specific configurations required for application
+   * deployment, including IAM roles and APIs. The list can contain up to 100
+   * items.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.RolesAndApisConfig roles_apis_config = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getRolesApisConfigList() { + return rolesApisConfig_; + } + + /** + * + * + *
+   * Optional. Project-specific configurations required for application
+   * deployment, including IAM roles and APIs. The list can contain up to 100
+   * items.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.RolesAndApisConfig roles_apis_config = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getRolesApisConfigOrBuilderList() { + return rolesApisConfig_; + } + + /** + * + * + *
+   * Optional. Project-specific configurations required for application
+   * deployment, including IAM roles and APIs. The list can contain up to 100
+   * items.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.RolesAndApisConfig roles_apis_config = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getRolesApisConfigCount() { + return rolesApisConfig_.size(); + } + + /** + * + * + *
+   * Optional. Project-specific configurations required for application
+   * deployment, including IAM roles and APIs. The list can contain up to 100
+   * items.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.RolesAndApisConfig roles_apis_config = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.RolesAndApisConfig getRolesApisConfig(int index) { + return rolesApisConfig_.get(index); + } + + /** + * + * + *
+   * Optional. Project-specific configurations required for application
+   * deployment, including IAM roles and APIs. The list can contain up to 100
+   * items.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.RolesAndApisConfig roles_apis_config = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.RolesAndApisConfigOrBuilder getRolesApisConfigOrBuilder( + int index) { + return rolesApisConfig_.get(index); + } + + public static final int TEMPLATE_METADATA_FIELD_NUMBER = 37; + private com.google.cloud.designcenter.v1.TFBlueprintMetadata templateMetadata_; + + /** + * + * + *
+   * Output only. The input output variables parsed from the imported terraform
+   * code.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata template_metadata = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the templateMetadata field is set. + */ + @java.lang.Override + public boolean hasTemplateMetadata() { + return ((bitField0_ & 0x00001000) != 0); + } + + /** + * + * + *
+   * Output only. The input output variables parsed from the imported terraform
+   * code.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata template_metadata = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The templateMetadata. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TFBlueprintMetadata getTemplateMetadata() { + return templateMetadata_ == null + ? com.google.cloud.designcenter.v1.TFBlueprintMetadata.getDefaultInstance() + : templateMetadata_; + } + + /** + * + * + *
+   * Output only. The input output variables parsed from the imported terraform
+   * code.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata template_metadata = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TFBlueprintMetadataOrBuilder + getTemplateMetadataOrBuilder() { + return templateMetadata_ == null + ? com.google.cloud.designcenter.v1.TFBlueprintMetadata.getDefaultInstance() + : templateMetadata_; + } + + public static final int IAC_SOURCE_FIELD_NUMBER = 38; + private int iacSource_ = 0; + + /** + * + * + *
+   * Output only. Indicates the IaC source format of this application.
+   * 
+ * + * + * .google.cloud.designcenter.v1.IACSource iac_source = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for iacSource. + */ + @java.lang.Override + public int getIacSourceValue() { + return iacSource_; + } + + /** + * + * + *
+   * Output only. Indicates the IaC source format of this application.
+   * 
+ * + * + * .google.cloud.designcenter.v1.IACSource iac_source = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The iacSource. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.IACSource getIacSource() { + com.google.cloud.designcenter.v1.IACSource result = + com.google.cloud.designcenter.v1.IACSource.forNumber(iacSource_); + return result == null ? com.google.cloud.designcenter.v1.IACSource.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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getUpdateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(4, getSource()); + } + for (int i = 0; i < appParameters_.size(); i++) { + output.writeMessage(5, appParameters_.get(i)); + } + for (int i = 0; i < componentParameters_.size(); i++) { + output.writeMessage(10, componentParameters_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(serviceAccount_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 11, serviceAccount_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 12, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 13, description_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(14, getAttributes()); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(15, getScope()); + } + if (importExistingResources_ != false) { + output.writeBool(16, importExistingResources_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(previewReference_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 17, previewReference_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(deploymentRevision_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 18, deploymentRevision_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(apphubApplication_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 19, apphubApplication_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(20, getSerializedApplicationTemplate()); + } + if (state_ + != com.google.cloud.designcenter.v1.Application.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(21, state_); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(22, getDeploymentMetadata()); + } + for (int i = 0; i < projectParameters_.size(); i++) { + output.writeMessage(23, projectParameters_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(deploymentRegion_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 24, deploymentRegion_); + } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeMessage(26, getUpdatedTemplateRevision()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(deploymentProject_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 27, deploymentProject_); + } + for (int i = 0; i < connectionConfigs_.size(); i++) { + output.writeMessage(28, connectionConfigs_.get(i)); + } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeMessage(29, getArtifactLocation()); + } + if (type_ + != com.google.cloud.designcenter.v1.ApplicationType.APPLICATION_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(30, type_); + } + if (((bitField0_ & 0x00000200) != 0)) { + output.writeMessage(31, getDeploymentTarget()); + } + if (compositionType_ + != com.google.cloud.designcenter.v1.ApplicationCompositionType + .APPLICATION_COMPOSITION_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(32, compositionType_); + } + if (((bitField0_ & 0x00000400) != 0)) { + output.writeMessage(33, getCompositeApplicationParameters()); + } + if (((bitField0_ & 0x00000800) != 0)) { + output.writeMessage(34, getDeploymentGroupMetadata()); + } + if (paramsUpdateStrategy_ + != com.google.cloud.designcenter.v1.Application.UpdateStrategy.UPDATE_STRATEGY_UNSPECIFIED + .getNumber()) { + output.writeEnum(35, paramsUpdateStrategy_); + } + for (int i = 0; i < rolesApisConfig_.size(); i++) { + output.writeMessage(36, rolesApisConfig_.get(i)); + } + if (((bitField0_ & 0x00001000) != 0)) { + output.writeMessage(37, getTemplateMetadata()); + } + if (iacSource_ + != com.google.cloud.designcenter.v1.IACSource.IAC_SOURCE_UNSPECIFIED.getNumber()) { + output.writeEnum(38, iacSource_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSource()); + } + for (int i = 0; i < appParameters_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, appParameters_.get(i)); + } + for (int i = 0; i < componentParameters_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(10, componentParameters_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(serviceAccount_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(11, serviceAccount_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(12, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(13, description_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getAttributes()); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getScope()); + } + if (importExistingResources_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(16, importExistingResources_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(previewReference_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(17, previewReference_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(deploymentRevision_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(18, deploymentRevision_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(apphubApplication_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(19, apphubApplication_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 20, getSerializedApplicationTemplate()); + } + if (state_ + != com.google.cloud.designcenter.v1.Application.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(21, state_); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, getDeploymentMetadata()); + } + for (int i = 0; i < projectParameters_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(23, projectParameters_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(deploymentRegion_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(24, deploymentRegion_); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 26, getUpdatedTemplateRevision()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(deploymentProject_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(27, deploymentProject_); + } + for (int i = 0; i < connectionConfigs_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(28, connectionConfigs_.get(i)); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(29, getArtifactLocation()); + } + if (type_ + != com.google.cloud.designcenter.v1.ApplicationType.APPLICATION_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(30, type_); + } + if (((bitField0_ & 0x00000200) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(31, getDeploymentTarget()); + } + if (compositionType_ + != com.google.cloud.designcenter.v1.ApplicationCompositionType + .APPLICATION_COMPOSITION_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(32, compositionType_); + } + if (((bitField0_ & 0x00000400) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 33, getCompositeApplicationParameters()); + } + if (((bitField0_ & 0x00000800) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 34, getDeploymentGroupMetadata()); + } + if (paramsUpdateStrategy_ + != com.google.cloud.designcenter.v1.Application.UpdateStrategy.UPDATE_STRATEGY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(35, paramsUpdateStrategy_); + } + for (int i = 0; i < rolesApisConfig_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(36, rolesApisConfig_.get(i)); + } + if (((bitField0_ & 0x00001000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(37, getTemplateMetadata()); + } + if (iacSource_ + != com.google.cloud.designcenter.v1.IACSource.IAC_SOURCE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(38, iacSource_); + } + 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.designcenter.v1.Application)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.Application other = + (com.google.cloud.designcenter.v1.Application) obj; + + if (!getName().equals(other.getName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (hasSource() != other.hasSource()) return false; + if (hasSource()) { + if (!getSource().equals(other.getSource())) return false; + } + if (!getAppParametersList().equals(other.getAppParametersList())) return false; + if (!getComponentParametersList().equals(other.getComponentParametersList())) return false; + if (!getServiceAccount().equals(other.getServiceAccount())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (hasAttributes() != other.hasAttributes()) return false; + if (hasAttributes()) { + if (!getAttributes().equals(other.getAttributes())) return false; + } + if (hasScope() != other.hasScope()) return false; + if (hasScope()) { + if (!getScope().equals(other.getScope())) return false; + } + if (getImportExistingResources() != other.getImportExistingResources()) return false; + if (!getPreviewReference().equals(other.getPreviewReference())) return false; + if (!getDeploymentRevision().equals(other.getDeploymentRevision())) return false; + if (!getApphubApplication().equals(other.getApphubApplication())) return false; + if (hasSerializedApplicationTemplate() != other.hasSerializedApplicationTemplate()) + return false; + if (hasSerializedApplicationTemplate()) { + if (!getSerializedApplicationTemplate().equals(other.getSerializedApplicationTemplate())) + return false; + } + if (state_ != other.state_) return false; + if (hasDeploymentMetadata() != other.hasDeploymentMetadata()) return false; + if (hasDeploymentMetadata()) { + if (!getDeploymentMetadata().equals(other.getDeploymentMetadata())) return false; + } + if (!getProjectParametersList().equals(other.getProjectParametersList())) return false; + if (!getDeploymentRegion().equals(other.getDeploymentRegion())) return false; + if (hasUpdatedTemplateRevision() != other.hasUpdatedTemplateRevision()) return false; + if (hasUpdatedTemplateRevision()) { + if (!getUpdatedTemplateRevision().equals(other.getUpdatedTemplateRevision())) return false; + } + if (!getDeploymentProject().equals(other.getDeploymentProject())) return false; + if (!getConnectionConfigsList().equals(other.getConnectionConfigsList())) return false; + if (hasArtifactLocation() != other.hasArtifactLocation()) return false; + if (hasArtifactLocation()) { + if (!getArtifactLocation().equals(other.getArtifactLocation())) return false; + } + if (type_ != other.type_) return false; + if (hasDeploymentTarget() != other.hasDeploymentTarget()) return false; + if (hasDeploymentTarget()) { + if (!getDeploymentTarget().equals(other.getDeploymentTarget())) return false; + } + if (compositionType_ != other.compositionType_) return false; + if (hasCompositeApplicationParameters() != other.hasCompositeApplicationParameters()) + return false; + if (hasCompositeApplicationParameters()) { + if (!getCompositeApplicationParameters().equals(other.getCompositeApplicationParameters())) + return false; + } + if (hasDeploymentGroupMetadata() != other.hasDeploymentGroupMetadata()) return false; + if (hasDeploymentGroupMetadata()) { + if (!getDeploymentGroupMetadata().equals(other.getDeploymentGroupMetadata())) return false; + } + if (paramsUpdateStrategy_ != other.paramsUpdateStrategy_) return false; + if (!getRolesApisConfigList().equals(other.getRolesApisConfigList())) return false; + if (hasTemplateMetadata() != other.hasTemplateMetadata()) return false; + if (hasTemplateMetadata()) { + if (!getTemplateMetadata().equals(other.getTemplateMetadata())) return false; + } + if (iacSource_ != other.iacSource_) 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 (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 (hasSource()) { + hash = (37 * hash) + SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getSource().hashCode(); + } + if (getAppParametersCount() > 0) { + hash = (37 * hash) + APP_PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getAppParametersList().hashCode(); + } + if (getComponentParametersCount() > 0) { + hash = (37 * hash) + COMPONENT_PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getComponentParametersList().hashCode(); + } + hash = (37 * hash) + SERVICE_ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getServiceAccount().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (hasAttributes()) { + hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + getAttributes().hashCode(); + } + if (hasScope()) { + hash = (37 * hash) + SCOPE_FIELD_NUMBER; + hash = (53 * hash) + getScope().hashCode(); + } + hash = (37 * hash) + IMPORT_EXISTING_RESOURCES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getImportExistingResources()); + hash = (37 * hash) + PREVIEW_REFERENCE_FIELD_NUMBER; + hash = (53 * hash) + getPreviewReference().hashCode(); + hash = (37 * hash) + DEPLOYMENT_REVISION_FIELD_NUMBER; + hash = (53 * hash) + getDeploymentRevision().hashCode(); + hash = (37 * hash) + APPHUB_APPLICATION_FIELD_NUMBER; + hash = (53 * hash) + getApphubApplication().hashCode(); + if (hasSerializedApplicationTemplate()) { + hash = (37 * hash) + SERIALIZED_APPLICATION_TEMPLATE_FIELD_NUMBER; + hash = (53 * hash) + getSerializedApplicationTemplate().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + if (hasDeploymentMetadata()) { + hash = (37 * hash) + DEPLOYMENT_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getDeploymentMetadata().hashCode(); + } + if (getProjectParametersCount() > 0) { + hash = (37 * hash) + PROJECT_PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getProjectParametersList().hashCode(); + } + hash = (37 * hash) + DEPLOYMENT_REGION_FIELD_NUMBER; + hash = (53 * hash) + getDeploymentRegion().hashCode(); + if (hasUpdatedTemplateRevision()) { + hash = (37 * hash) + UPDATED_TEMPLATE_REVISION_FIELD_NUMBER; + hash = (53 * hash) + getUpdatedTemplateRevision().hashCode(); + } + hash = (37 * hash) + DEPLOYMENT_PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getDeploymentProject().hashCode(); + if (getConnectionConfigsCount() > 0) { + hash = (37 * hash) + CONNECTION_CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + getConnectionConfigsList().hashCode(); + } + if (hasArtifactLocation()) { + hash = (37 * hash) + ARTIFACT_LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getArtifactLocation().hashCode(); + } + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + if (hasDeploymentTarget()) { + hash = (37 * hash) + DEPLOYMENT_TARGET_FIELD_NUMBER; + hash = (53 * hash) + getDeploymentTarget().hashCode(); + } + hash = (37 * hash) + COMPOSITION_TYPE_FIELD_NUMBER; + hash = (53 * hash) + compositionType_; + if (hasCompositeApplicationParameters()) { + hash = (37 * hash) + COMPOSITE_APPLICATION_PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getCompositeApplicationParameters().hashCode(); + } + if (hasDeploymentGroupMetadata()) { + hash = (37 * hash) + DEPLOYMENT_GROUP_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getDeploymentGroupMetadata().hashCode(); + } + hash = (37 * hash) + PARAMS_UPDATE_STRATEGY_FIELD_NUMBER; + hash = (53 * hash) + paramsUpdateStrategy_; + if (getRolesApisConfigCount() > 0) { + hash = (37 * hash) + ROLES_APIS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getRolesApisConfigList().hashCode(); + } + if (hasTemplateMetadata()) { + hash = (37 * hash) + TEMPLATE_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getTemplateMetadata().hashCode(); + } + hash = (37 * hash) + IAC_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + iacSource_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.Application parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.Application 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.designcenter.v1.Application parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.Application parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.Application parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.Application parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.Application parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.Application parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.Application parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.Application parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.Application parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.Application parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.Application 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Represents the application resource.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.Application} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.Application) + com.google.cloud.designcenter.v1.ApplicationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentResourcesProto + .internal_static_google_cloud_designcenter_v1_Application_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentResourcesProto + .internal_static_google_cloud_designcenter_v1_Application_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.Application.class, + com.google.cloud.designcenter.v1.Application.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.Application.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + internalGetSourceFieldBuilder(); + internalGetAppParametersFieldBuilder(); + internalGetComponentParametersFieldBuilder(); + internalGetAttributesFieldBuilder(); + internalGetScopeFieldBuilder(); + internalGetSerializedApplicationTemplateFieldBuilder(); + internalGetDeploymentMetadataFieldBuilder(); + internalGetProjectParametersFieldBuilder(); + internalGetUpdatedTemplateRevisionFieldBuilder(); + internalGetConnectionConfigsFieldBuilder(); + internalGetArtifactLocationFieldBuilder(); + internalGetDeploymentTargetFieldBuilder(); + internalGetCompositeApplicationParametersFieldBuilder(); + internalGetDeploymentGroupMetadataFieldBuilder(); + internalGetRolesApisConfigFieldBuilder(); + internalGetTemplateMetadataFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + bitField1_ = 0; + name_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + source_ = null; + if (sourceBuilder_ != null) { + sourceBuilder_.dispose(); + sourceBuilder_ = null; + } + if (appParametersBuilder_ == null) { + appParameters_ = java.util.Collections.emptyList(); + } else { + appParameters_ = null; + appParametersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + if (componentParametersBuilder_ == null) { + componentParameters_ = java.util.Collections.emptyList(); + } else { + componentParameters_ = null; + componentParametersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + serviceAccount_ = ""; + displayName_ = ""; + description_ = ""; + attributes_ = null; + if (attributesBuilder_ != null) { + attributesBuilder_.dispose(); + attributesBuilder_ = null; + } + scope_ = null; + if (scopeBuilder_ != null) { + scopeBuilder_.dispose(); + scopeBuilder_ = null; + } + importExistingResources_ = false; + previewReference_ = ""; + deploymentRevision_ = ""; + apphubApplication_ = ""; + serializedApplicationTemplate_ = null; + if (serializedApplicationTemplateBuilder_ != null) { + serializedApplicationTemplateBuilder_.dispose(); + serializedApplicationTemplateBuilder_ = null; + } + state_ = 0; + deploymentMetadata_ = null; + if (deploymentMetadataBuilder_ != null) { + deploymentMetadataBuilder_.dispose(); + deploymentMetadataBuilder_ = null; + } + if (projectParametersBuilder_ == null) { + projectParameters_ = java.util.Collections.emptyList(); + } else { + projectParameters_ = null; + projectParametersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00040000); + deploymentRegion_ = ""; + updatedTemplateRevision_ = null; + if (updatedTemplateRevisionBuilder_ != null) { + updatedTemplateRevisionBuilder_.dispose(); + updatedTemplateRevisionBuilder_ = null; + } + deploymentProject_ = ""; + if (connectionConfigsBuilder_ == null) { + connectionConfigs_ = java.util.Collections.emptyList(); + } else { + connectionConfigs_ = null; + connectionConfigsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00400000); + artifactLocation_ = null; + if (artifactLocationBuilder_ != null) { + artifactLocationBuilder_.dispose(); + artifactLocationBuilder_ = null; + } + type_ = 0; + deploymentTarget_ = null; + if (deploymentTargetBuilder_ != null) { + deploymentTargetBuilder_.dispose(); + deploymentTargetBuilder_ = null; + } + compositionType_ = 0; + compositeApplicationParameters_ = null; + if (compositeApplicationParametersBuilder_ != null) { + compositeApplicationParametersBuilder_.dispose(); + compositeApplicationParametersBuilder_ = null; + } + deploymentGroupMetadata_ = null; + if (deploymentGroupMetadataBuilder_ != null) { + deploymentGroupMetadataBuilder_.dispose(); + deploymentGroupMetadataBuilder_ = null; + } + paramsUpdateStrategy_ = 0; + if (rolesApisConfigBuilder_ == null) { + rolesApisConfig_ = java.util.Collections.emptyList(); + } else { + rolesApisConfig_ = null; + rolesApisConfigBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x40000000); + templateMetadata_ = null; + if (templateMetadataBuilder_ != null) { + templateMetadataBuilder_.dispose(); + templateMetadataBuilder_ = null; + } + iacSource_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.DeploymentResourcesProto + .internal_static_google_cloud_designcenter_v1_Application_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.Application getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.Application.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.Application build() { + com.google.cloud.designcenter.v1.Application result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.Application buildPartial() { + com.google.cloud.designcenter.v1.Application result = + new com.google.cloud.designcenter.v1.Application(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + if (bitField1_ != 0) { + buildPartial1(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.designcenter.v1.Application result) { + if (appParametersBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + appParameters_ = java.util.Collections.unmodifiableList(appParameters_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.appParameters_ = appParameters_; + } else { + result.appParameters_ = appParametersBuilder_.build(); + } + if (componentParametersBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + componentParameters_ = java.util.Collections.unmodifiableList(componentParameters_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.componentParameters_ = componentParameters_; + } else { + result.componentParameters_ = componentParametersBuilder_.build(); + } + if (projectParametersBuilder_ == null) { + if (((bitField0_ & 0x00040000) != 0)) { + projectParameters_ = java.util.Collections.unmodifiableList(projectParameters_); + bitField0_ = (bitField0_ & ~0x00040000); + } + result.projectParameters_ = projectParameters_; + } else { + result.projectParameters_ = projectParametersBuilder_.build(); + } + if (connectionConfigsBuilder_ == null) { + if (((bitField0_ & 0x00400000) != 0)) { + connectionConfigs_ = java.util.Collections.unmodifiableList(connectionConfigs_); + bitField0_ = (bitField0_ & ~0x00400000); + } + result.connectionConfigs_ = connectionConfigs_; + } else { + result.connectionConfigs_ = connectionConfigsBuilder_.build(); + } + if (rolesApisConfigBuilder_ == null) { + if (((bitField0_ & 0x40000000) != 0)) { + rolesApisConfig_ = java.util.Collections.unmodifiableList(rolesApisConfig_); + bitField0_ = (bitField0_ & ~0x40000000); + } + result.rolesApisConfig_ = rolesApisConfig_; + } else { + result.rolesApisConfig_ = rolesApisConfigBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.designcenter.v1.Application result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.source_ = sourceBuilder_ == null ? source_ : sourceBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.serviceAccount_ = serviceAccount_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.attributes_ = attributesBuilder_ == null ? attributes_ : attributesBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.scope_ = scopeBuilder_ == null ? scope_ : scopeBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.importExistingResources_ = importExistingResources_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.previewReference_ = previewReference_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.deploymentRevision_ = deploymentRevision_; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.apphubApplication_ = apphubApplication_; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.serializedApplicationTemplate_ = + serializedApplicationTemplateBuilder_ == null + ? serializedApplicationTemplate_ + : serializedApplicationTemplateBuilder_.build(); + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.deploymentMetadata_ = + deploymentMetadataBuilder_ == null + ? deploymentMetadata_ + : deploymentMetadataBuilder_.build(); + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00080000) != 0)) { + result.deploymentRegion_ = deploymentRegion_; + } + if (((from_bitField0_ & 0x00100000) != 0)) { + result.updatedTemplateRevision_ = + updatedTemplateRevisionBuilder_ == null + ? updatedTemplateRevision_ + : updatedTemplateRevisionBuilder_.build(); + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00200000) != 0)) { + result.deploymentProject_ = deploymentProject_; + } + if (((from_bitField0_ & 0x00800000) != 0)) { + result.artifactLocation_ = + artifactLocationBuilder_ == null ? artifactLocation_ : artifactLocationBuilder_.build(); + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x01000000) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x02000000) != 0)) { + result.deploymentTarget_ = + deploymentTargetBuilder_ == null ? deploymentTarget_ : deploymentTargetBuilder_.build(); + to_bitField0_ |= 0x00000200; + } + if (((from_bitField0_ & 0x04000000) != 0)) { + result.compositionType_ = compositionType_; + } + if (((from_bitField0_ & 0x08000000) != 0)) { + result.compositeApplicationParameters_ = + compositeApplicationParametersBuilder_ == null + ? compositeApplicationParameters_ + : compositeApplicationParametersBuilder_.build(); + to_bitField0_ |= 0x00000400; + } + if (((from_bitField0_ & 0x10000000) != 0)) { + result.deploymentGroupMetadata_ = + deploymentGroupMetadataBuilder_ == null + ? deploymentGroupMetadata_ + : deploymentGroupMetadataBuilder_.build(); + to_bitField0_ |= 0x00000800; + } + if (((from_bitField0_ & 0x20000000) != 0)) { + result.paramsUpdateStrategy_ = paramsUpdateStrategy_; + } + if (((from_bitField0_ & 0x80000000) != 0)) { + result.templateMetadata_ = + templateMetadataBuilder_ == null ? templateMetadata_ : templateMetadataBuilder_.build(); + to_bitField0_ |= 0x00001000; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartial1(com.google.cloud.designcenter.v1.Application result) { + int from_bitField1_ = bitField1_; + if (((from_bitField1_ & 0x00000001) != 0)) { + result.iacSource_ = iacSource_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.Application) { + return mergeFrom((com.google.cloud.designcenter.v1.Application) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.Application other) { + if (other == com.google.cloud.designcenter.v1.Application.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.hasSource()) { + mergeSource(other.getSource()); + } + if (appParametersBuilder_ == null) { + if (!other.appParameters_.isEmpty()) { + if (appParameters_.isEmpty()) { + appParameters_ = other.appParameters_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureAppParametersIsMutable(); + appParameters_.addAll(other.appParameters_); + } + onChanged(); + } + } else { + if (!other.appParameters_.isEmpty()) { + if (appParametersBuilder_.isEmpty()) { + appParametersBuilder_.dispose(); + appParametersBuilder_ = null; + appParameters_ = other.appParameters_; + bitField0_ = (bitField0_ & ~0x00000010); + appParametersBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAppParametersFieldBuilder() + : null; + } else { + appParametersBuilder_.addAllMessages(other.appParameters_); + } + } + } + if (componentParametersBuilder_ == null) { + if (!other.componentParameters_.isEmpty()) { + if (componentParameters_.isEmpty()) { + componentParameters_ = other.componentParameters_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureComponentParametersIsMutable(); + componentParameters_.addAll(other.componentParameters_); + } + onChanged(); + } + } else { + if (!other.componentParameters_.isEmpty()) { + if (componentParametersBuilder_.isEmpty()) { + componentParametersBuilder_.dispose(); + componentParametersBuilder_ = null; + componentParameters_ = other.componentParameters_; + bitField0_ = (bitField0_ & ~0x00000020); + componentParametersBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetComponentParametersFieldBuilder() + : null; + } else { + componentParametersBuilder_.addAllMessages(other.componentParameters_); + } + } + } + if (!other.getServiceAccount().isEmpty()) { + serviceAccount_ = other.serviceAccount_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (other.hasAttributes()) { + mergeAttributes(other.getAttributes()); + } + if (other.hasScope()) { + mergeScope(other.getScope()); + } + if (other.getImportExistingResources() != false) { + setImportExistingResources(other.getImportExistingResources()); + } + if (!other.getPreviewReference().isEmpty()) { + previewReference_ = other.previewReference_; + bitField0_ |= 0x00001000; + onChanged(); + } + if (!other.getDeploymentRevision().isEmpty()) { + deploymentRevision_ = other.deploymentRevision_; + bitField0_ |= 0x00002000; + onChanged(); + } + if (!other.getApphubApplication().isEmpty()) { + apphubApplication_ = other.apphubApplication_; + bitField0_ |= 0x00004000; + onChanged(); + } + if (other.hasSerializedApplicationTemplate()) { + mergeSerializedApplicationTemplate(other.getSerializedApplicationTemplate()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.hasDeploymentMetadata()) { + mergeDeploymentMetadata(other.getDeploymentMetadata()); + } + if (projectParametersBuilder_ == null) { + if (!other.projectParameters_.isEmpty()) { + if (projectParameters_.isEmpty()) { + projectParameters_ = other.projectParameters_; + bitField0_ = (bitField0_ & ~0x00040000); + } else { + ensureProjectParametersIsMutable(); + projectParameters_.addAll(other.projectParameters_); + } + onChanged(); + } + } else { + if (!other.projectParameters_.isEmpty()) { + if (projectParametersBuilder_.isEmpty()) { + projectParametersBuilder_.dispose(); + projectParametersBuilder_ = null; + projectParameters_ = other.projectParameters_; + bitField0_ = (bitField0_ & ~0x00040000); + projectParametersBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetProjectParametersFieldBuilder() + : null; + } else { + projectParametersBuilder_.addAllMessages(other.projectParameters_); + } + } + } + if (!other.getDeploymentRegion().isEmpty()) { + deploymentRegion_ = other.deploymentRegion_; + bitField0_ |= 0x00080000; + onChanged(); + } + if (other.hasUpdatedTemplateRevision()) { + mergeUpdatedTemplateRevision(other.getUpdatedTemplateRevision()); + } + if (!other.getDeploymentProject().isEmpty()) { + deploymentProject_ = other.deploymentProject_; + bitField0_ |= 0x00200000; + onChanged(); + } + if (connectionConfigsBuilder_ == null) { + if (!other.connectionConfigs_.isEmpty()) { + if (connectionConfigs_.isEmpty()) { + connectionConfigs_ = other.connectionConfigs_; + bitField0_ = (bitField0_ & ~0x00400000); + } else { + ensureConnectionConfigsIsMutable(); + connectionConfigs_.addAll(other.connectionConfigs_); + } + onChanged(); + } + } else { + if (!other.connectionConfigs_.isEmpty()) { + if (connectionConfigsBuilder_.isEmpty()) { + connectionConfigsBuilder_.dispose(); + connectionConfigsBuilder_ = null; + connectionConfigs_ = other.connectionConfigs_; + bitField0_ = (bitField0_ & ~0x00400000); + connectionConfigsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetConnectionConfigsFieldBuilder() + : null; + } else { + connectionConfigsBuilder_.addAllMessages(other.connectionConfigs_); + } + } + } + if (other.hasArtifactLocation()) { + mergeArtifactLocation(other.getArtifactLocation()); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (other.hasDeploymentTarget()) { + mergeDeploymentTarget(other.getDeploymentTarget()); + } + if (other.compositionType_ != 0) { + setCompositionTypeValue(other.getCompositionTypeValue()); + } + if (other.hasCompositeApplicationParameters()) { + mergeCompositeApplicationParameters(other.getCompositeApplicationParameters()); + } + if (other.hasDeploymentGroupMetadata()) { + mergeDeploymentGroupMetadata(other.getDeploymentGroupMetadata()); + } + if (other.paramsUpdateStrategy_ != 0) { + setParamsUpdateStrategyValue(other.getParamsUpdateStrategyValue()); + } + if (rolesApisConfigBuilder_ == null) { + if (!other.rolesApisConfig_.isEmpty()) { + if (rolesApisConfig_.isEmpty()) { + rolesApisConfig_ = other.rolesApisConfig_; + bitField0_ = (bitField0_ & ~0x40000000); + } else { + ensureRolesApisConfigIsMutable(); + rolesApisConfig_.addAll(other.rolesApisConfig_); + } + onChanged(); + } + } else { + if (!other.rolesApisConfig_.isEmpty()) { + if (rolesApisConfigBuilder_.isEmpty()) { + rolesApisConfigBuilder_.dispose(); + rolesApisConfigBuilder_ = null; + rolesApisConfig_ = other.rolesApisConfig_; + bitField0_ = (bitField0_ & ~0x40000000); + rolesApisConfigBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetRolesApisConfigFieldBuilder() + : null; + } else { + rolesApisConfigBuilder_.addAllMessages(other.rolesApisConfig_); + } + } + } + if (other.hasTemplateMetadata()) { + mergeTemplateMetadata(other.getTemplateMetadata()); + } + if (other.iacSource_ != 0) { + setIacSourceValue(other.getIacSourceValue()); + } + 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( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(internalGetSourceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + com.google.cloud.designcenter.v1.Parameter m = + input.readMessage( + com.google.cloud.designcenter.v1.Parameter.parser(), extensionRegistry); + if (appParametersBuilder_ == null) { + ensureAppParametersIsMutable(); + appParameters_.add(m); + } else { + appParametersBuilder_.addMessage(m); + } + break; + } // case 42 + case 82: + { + com.google.cloud.designcenter.v1.ComponentParameters m = + input.readMessage( + com.google.cloud.designcenter.v1.ComponentParameters.parser(), + extensionRegistry); + if (componentParametersBuilder_ == null) { + ensureComponentParametersIsMutable(); + componentParameters_.add(m); + } else { + componentParametersBuilder_.addMessage(m); + } + break; + } // case 82 + case 90: + { + serviceAccount_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 90 + case 98: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 98 + case 106: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 106 + case 114: + { + input.readMessage( + internalGetAttributesFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 114 + case 122: + { + input.readMessage(internalGetScopeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 122 + case 128: + { + importExistingResources_ = input.readBool(); + bitField0_ |= 0x00000800; + break; + } // case 128 + case 138: + { + previewReference_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00001000; + break; + } // case 138 + case 146: + { + deploymentRevision_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00002000; + break; + } // case 146 + case 154: + { + apphubApplication_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00004000; + break; + } // case 154 + case 162: + { + input.readMessage( + internalGetSerializedApplicationTemplateFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00008000; + break; + } // case 162 + case 168: + { + state_ = input.readEnum(); + bitField0_ |= 0x00010000; + break; + } // case 168 + case 178: + { + input.readMessage( + internalGetDeploymentMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00020000; + break; + } // case 178 + case 186: + { + com.google.cloud.designcenter.v1.ProjectParameters m = + input.readMessage( + com.google.cloud.designcenter.v1.ProjectParameters.parser(), + extensionRegistry); + if (projectParametersBuilder_ == null) { + ensureProjectParametersIsMutable(); + projectParameters_.add(m); + } else { + projectParametersBuilder_.addMessage(m); + } + break; + } // case 186 + case 194: + { + deploymentRegion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00080000; + break; + } // case 194 + case 210: + { + input.readMessage( + internalGetUpdatedTemplateRevisionFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00100000; + break; + } // case 210 + case 218: + { + deploymentProject_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00200000; + break; + } // case 218 + case 226: + { + com.google.cloud.designcenter.v1.ConnectionConfig m = + input.readMessage( + com.google.cloud.designcenter.v1.ConnectionConfig.parser(), + extensionRegistry); + if (connectionConfigsBuilder_ == null) { + ensureConnectionConfigsIsMutable(); + connectionConfigs_.add(m); + } else { + connectionConfigsBuilder_.addMessage(m); + } + break; + } // case 226 + case 234: + { + input.readMessage( + internalGetArtifactLocationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00800000; + break; + } // case 234 + case 240: + { + type_ = input.readEnum(); + bitField0_ |= 0x01000000; + break; + } // case 240 + case 250: + { + input.readMessage( + internalGetDeploymentTargetFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x02000000; + break; + } // case 250 + case 256: + { + compositionType_ = input.readEnum(); + bitField0_ |= 0x04000000; + break; + } // case 256 + case 266: + { + input.readMessage( + internalGetCompositeApplicationParametersFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x08000000; + break; + } // case 266 + case 274: + { + input.readMessage( + internalGetDeploymentGroupMetadataFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x10000000; + break; + } // case 274 + case 280: + { + paramsUpdateStrategy_ = input.readEnum(); + bitField0_ |= 0x20000000; + break; + } // case 280 + case 290: + { + com.google.cloud.designcenter.v1.RolesAndApisConfig m = + input.readMessage( + com.google.cloud.designcenter.v1.RolesAndApisConfig.parser(), + extensionRegistry); + if (rolesApisConfigBuilder_ == null) { + ensureRolesApisConfigIsMutable(); + rolesApisConfig_.add(m); + } else { + rolesApisConfigBuilder_.addMessage(m); + } + break; + } // case 290 + case 298: + { + input.readMessage( + internalGetTemplateMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x80000000; + break; + } // case 298 + case 304: + { + iacSource_ = input.readEnum(); + bitField1_ |= 0x00000001; + break; + } // case 304 + default: + { + 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 bitField1_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Identifier. The name of the application.
+     * Format:
+     * projects/{project}/locations/{location}/spaces/{space}/applications/{application}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.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; + } + } + + /** + * + * + *
+     * Identifier. The name of the application.
+     * Format:
+     * projects/{project}/locations/{location}/spaces/{space}/applications/{application}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + + /** + * + * + *
+     * Identifier. The name of the application.
+     * Format:
+     * projects/{project}/locations/{location}/spaces/{space}/applications/{application}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + + /** + * + * + *
+     * Identifier. The name of the application.
+     * Format:
+     * projects/{project}/locations/{location}/spaces/{space}/applications/{application}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier. The name of the application.
+     * Format:
+     * projects/{project}/locations/{location}/spaces/{space}/applications/{application}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
+     * Output only. Create timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Output only. Create timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Create timestamp.
+     * 
+ * + * + * .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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Create timestamp.
+     * 
+ * + * + * .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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Create timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Create timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Create timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Create timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
+     * Output only. Create timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + 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.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
+     * Output only. Update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Output only. Update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Update timestamp.
+     * 
+ * + * + * .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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Update timestamp.
+     * 
+ * + * + * .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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** + * + * + *
+     * Output only. Update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.cloud.designcenter.v1.DeploymentSource source_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.DeploymentSource, + com.google.cloud.designcenter.v1.DeploymentSource.Builder, + com.google.cloud.designcenter.v1.DeploymentSourceOrBuilder> + sourceBuilder_; + + /** + * + * + *
+     * Required. The application deployment source.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentSource source = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the source field is set. + */ + public boolean hasSource() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Required. The application deployment source.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentSource source = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The source. + */ + public com.google.cloud.designcenter.v1.DeploymentSource getSource() { + if (sourceBuilder_ == null) { + return source_ == null + ? com.google.cloud.designcenter.v1.DeploymentSource.getDefaultInstance() + : source_; + } else { + return sourceBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The application deployment source.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentSource source = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSource(com.google.cloud.designcenter.v1.DeploymentSource value) { + if (sourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + } else { + sourceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The application deployment source.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentSource source = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSource( + com.google.cloud.designcenter.v1.DeploymentSource.Builder builderForValue) { + if (sourceBuilder_ == null) { + source_ = builderForValue.build(); + } else { + sourceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The application deployment source.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentSource source = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeSource(com.google.cloud.designcenter.v1.DeploymentSource value) { + if (sourceBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && source_ != null + && source_ != com.google.cloud.designcenter.v1.DeploymentSource.getDefaultInstance()) { + getSourceBuilder().mergeFrom(value); + } else { + source_ = value; + } + } else { + sourceBuilder_.mergeFrom(value); + } + if (source_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The application deployment source.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentSource source = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearSource() { + bitField0_ = (bitField0_ & ~0x00000008); + source_ = null; + if (sourceBuilder_ != null) { + sourceBuilder_.dispose(); + sourceBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The application deployment source.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentSource source = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.DeploymentSource.Builder getSourceBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetSourceFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The application deployment source.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentSource source = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.DeploymentSourceOrBuilder getSourceOrBuilder() { + if (sourceBuilder_ != null) { + return sourceBuilder_.getMessageOrBuilder(); + } else { + return source_ == null + ? com.google.cloud.designcenter.v1.DeploymentSource.getDefaultInstance() + : source_; + } + } + + /** + * + * + *
+     * Required. The application deployment source.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentSource source = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.DeploymentSource, + com.google.cloud.designcenter.v1.DeploymentSource.Builder, + com.google.cloud.designcenter.v1.DeploymentSourceOrBuilder> + internalGetSourceFieldBuilder() { + if (sourceBuilder_ == null) { + sourceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.DeploymentSource, + com.google.cloud.designcenter.v1.DeploymentSource.Builder, + com.google.cloud.designcenter.v1.DeploymentSourceOrBuilder>( + getSource(), getParentForChildren(), isClean()); + source_ = null; + } + return sourceBuilder_; + } + + private java.util.List appParameters_ = + java.util.Collections.emptyList(); + + private void ensureAppParametersIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + appParameters_ = + new java.util.ArrayList(appParameters_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Parameter, + com.google.cloud.designcenter.v1.Parameter.Builder, + com.google.cloud.designcenter.v1.ParameterOrBuilder> + appParametersBuilder_; + + /** + * + * + *
+     * Optional. A list of parameters to attach to the deployment source object,
+     * which is a catalog entry or application template snapshot.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter app_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getAppParametersList() { + if (appParametersBuilder_ == null) { + return java.util.Collections.unmodifiableList(appParameters_); + } else { + return appParametersBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. A list of parameters to attach to the deployment source object,
+     * which is a catalog entry or application template snapshot.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter app_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getAppParametersCount() { + if (appParametersBuilder_ == null) { + return appParameters_.size(); + } else { + return appParametersBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. A list of parameters to attach to the deployment source object,
+     * which is a catalog entry or application template snapshot.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter app_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter getAppParameters(int index) { + if (appParametersBuilder_ == null) { + return appParameters_.get(index); + } else { + return appParametersBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. A list of parameters to attach to the deployment source object,
+     * which is a catalog entry or application template snapshot.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter app_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAppParameters(int index, com.google.cloud.designcenter.v1.Parameter value) { + if (appParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAppParametersIsMutable(); + appParameters_.set(index, value); + onChanged(); + } else { + appParametersBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of parameters to attach to the deployment source object,
+     * which is a catalog entry or application template snapshot.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter app_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAppParameters( + int index, com.google.cloud.designcenter.v1.Parameter.Builder builderForValue) { + if (appParametersBuilder_ == null) { + ensureAppParametersIsMutable(); + appParameters_.set(index, builderForValue.build()); + onChanged(); + } else { + appParametersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of parameters to attach to the deployment source object,
+     * which is a catalog entry or application template snapshot.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter app_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAppParameters(com.google.cloud.designcenter.v1.Parameter value) { + if (appParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAppParametersIsMutable(); + appParameters_.add(value); + onChanged(); + } else { + appParametersBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of parameters to attach to the deployment source object,
+     * which is a catalog entry or application template snapshot.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter app_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAppParameters(int index, com.google.cloud.designcenter.v1.Parameter value) { + if (appParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAppParametersIsMutable(); + appParameters_.add(index, value); + onChanged(); + } else { + appParametersBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of parameters to attach to the deployment source object,
+     * which is a catalog entry or application template snapshot.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter app_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAppParameters( + com.google.cloud.designcenter.v1.Parameter.Builder builderForValue) { + if (appParametersBuilder_ == null) { + ensureAppParametersIsMutable(); + appParameters_.add(builderForValue.build()); + onChanged(); + } else { + appParametersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of parameters to attach to the deployment source object,
+     * which is a catalog entry or application template snapshot.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter app_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAppParameters( + int index, com.google.cloud.designcenter.v1.Parameter.Builder builderForValue) { + if (appParametersBuilder_ == null) { + ensureAppParametersIsMutable(); + appParameters_.add(index, builderForValue.build()); + onChanged(); + } else { + appParametersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of parameters to attach to the deployment source object,
+     * which is a catalog entry or application template snapshot.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter app_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllAppParameters( + java.lang.Iterable values) { + if (appParametersBuilder_ == null) { + ensureAppParametersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, appParameters_); + onChanged(); + } else { + appParametersBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of parameters to attach to the deployment source object,
+     * which is a catalog entry or application template snapshot.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter app_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAppParameters() { + if (appParametersBuilder_ == null) { + appParameters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + appParametersBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of parameters to attach to the deployment source object,
+     * which is a catalog entry or application template snapshot.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter app_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeAppParameters(int index) { + if (appParametersBuilder_ == null) { + ensureAppParametersIsMutable(); + appParameters_.remove(index); + onChanged(); + } else { + appParametersBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of parameters to attach to the deployment source object,
+     * which is a catalog entry or application template snapshot.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter app_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter.Builder getAppParametersBuilder(int index) { + return internalGetAppParametersFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. A list of parameters to attach to the deployment source object,
+     * which is a catalog entry or application template snapshot.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter app_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ParameterOrBuilder getAppParametersOrBuilder( + int index) { + if (appParametersBuilder_ == null) { + return appParameters_.get(index); + } else { + return appParametersBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. A list of parameters to attach to the deployment source object,
+     * which is a catalog entry or application template snapshot.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter app_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getAppParametersOrBuilderList() { + if (appParametersBuilder_ != null) { + return appParametersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(appParameters_); + } + } + + /** + * + * + *
+     * Optional. A list of parameters to attach to the deployment source object,
+     * which is a catalog entry or application template snapshot.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter app_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter.Builder addAppParametersBuilder() { + return internalGetAppParametersFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.Parameter.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. A list of parameters to attach to the deployment source object,
+     * which is a catalog entry or application template snapshot.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter app_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter.Builder addAppParametersBuilder(int index) { + return internalGetAppParametersFieldBuilder() + .addBuilder(index, com.google.cloud.designcenter.v1.Parameter.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. A list of parameters to attach to the deployment source object,
+     * which is a catalog entry or application template snapshot.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter app_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getAppParametersBuilderList() { + return internalGetAppParametersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Parameter, + com.google.cloud.designcenter.v1.Parameter.Builder, + com.google.cloud.designcenter.v1.ParameterOrBuilder> + internalGetAppParametersFieldBuilder() { + if (appParametersBuilder_ == null) { + appParametersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Parameter, + com.google.cloud.designcenter.v1.Parameter.Builder, + com.google.cloud.designcenter.v1.ParameterOrBuilder>( + appParameters_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + appParameters_ = null; + } + return appParametersBuilder_; + } + + private java.util.List + componentParameters_ = java.util.Collections.emptyList(); + + private void ensureComponentParametersIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + componentParameters_ = + new java.util.ArrayList( + componentParameters_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ComponentParameters, + com.google.cloud.designcenter.v1.ComponentParameters.Builder, + com.google.cloud.designcenter.v1.ComponentParametersOrBuilder> + componentParametersBuilder_; + + /** + * + * + *
+     * Optional. A list of component parameters to associate with the application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameters component_parameters = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getComponentParametersList() { + if (componentParametersBuilder_ == null) { + return java.util.Collections.unmodifiableList(componentParameters_); + } else { + return componentParametersBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. A list of component parameters to associate with the application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameters component_parameters = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getComponentParametersCount() { + if (componentParametersBuilder_ == null) { + return componentParameters_.size(); + } else { + return componentParametersBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. A list of component parameters to associate with the application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameters component_parameters = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ComponentParameters getComponentParameters(int index) { + if (componentParametersBuilder_ == null) { + return componentParameters_.get(index); + } else { + return componentParametersBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. A list of component parameters to associate with the application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameters component_parameters = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setComponentParameters( + int index, com.google.cloud.designcenter.v1.ComponentParameters value) { + if (componentParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureComponentParametersIsMutable(); + componentParameters_.set(index, value); + onChanged(); + } else { + componentParametersBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of component parameters to associate with the application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameters component_parameters = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setComponentParameters( + int index, com.google.cloud.designcenter.v1.ComponentParameters.Builder builderForValue) { + if (componentParametersBuilder_ == null) { + ensureComponentParametersIsMutable(); + componentParameters_.set(index, builderForValue.build()); + onChanged(); + } else { + componentParametersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of component parameters to associate with the application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameters component_parameters = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addComponentParameters( + com.google.cloud.designcenter.v1.ComponentParameters value) { + if (componentParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureComponentParametersIsMutable(); + componentParameters_.add(value); + onChanged(); + } else { + componentParametersBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of component parameters to associate with the application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameters component_parameters = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addComponentParameters( + int index, com.google.cloud.designcenter.v1.ComponentParameters value) { + if (componentParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureComponentParametersIsMutable(); + componentParameters_.add(index, value); + onChanged(); + } else { + componentParametersBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of component parameters to associate with the application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameters component_parameters = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addComponentParameters( + com.google.cloud.designcenter.v1.ComponentParameters.Builder builderForValue) { + if (componentParametersBuilder_ == null) { + ensureComponentParametersIsMutable(); + componentParameters_.add(builderForValue.build()); + onChanged(); + } else { + componentParametersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of component parameters to associate with the application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameters component_parameters = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addComponentParameters( + int index, com.google.cloud.designcenter.v1.ComponentParameters.Builder builderForValue) { + if (componentParametersBuilder_ == null) { + ensureComponentParametersIsMutable(); + componentParameters_.add(index, builderForValue.build()); + onChanged(); + } else { + componentParametersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of component parameters to associate with the application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameters component_parameters = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllComponentParameters( + java.lang.Iterable values) { + if (componentParametersBuilder_ == null) { + ensureComponentParametersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, componentParameters_); + onChanged(); + } else { + componentParametersBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of component parameters to associate with the application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameters component_parameters = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearComponentParameters() { + if (componentParametersBuilder_ == null) { + componentParameters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + componentParametersBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of component parameters to associate with the application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameters component_parameters = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeComponentParameters(int index) { + if (componentParametersBuilder_ == null) { + ensureComponentParametersIsMutable(); + componentParameters_.remove(index); + onChanged(); + } else { + componentParametersBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of component parameters to associate with the application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameters component_parameters = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ComponentParameters.Builder + getComponentParametersBuilder(int index) { + return internalGetComponentParametersFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. A list of component parameters to associate with the application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameters component_parameters = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ComponentParametersOrBuilder + getComponentParametersOrBuilder(int index) { + if (componentParametersBuilder_ == null) { + return componentParameters_.get(index); + } else { + return componentParametersBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. A list of component parameters to associate with the application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameters component_parameters = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getComponentParametersOrBuilderList() { + if (componentParametersBuilder_ != null) { + return componentParametersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(componentParameters_); + } + } + + /** + * + * + *
+     * Optional. A list of component parameters to associate with the application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameters component_parameters = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ComponentParameters.Builder + addComponentParametersBuilder() { + return internalGetComponentParametersFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.ComponentParameters.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. A list of component parameters to associate with the application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameters component_parameters = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ComponentParameters.Builder + addComponentParametersBuilder(int index) { + return internalGetComponentParametersFieldBuilder() + .addBuilder( + index, com.google.cloud.designcenter.v1.ComponentParameters.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. A list of component parameters to associate with the application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameters component_parameters = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getComponentParametersBuilderList() { + return internalGetComponentParametersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ComponentParameters, + com.google.cloud.designcenter.v1.ComponentParameters.Builder, + com.google.cloud.designcenter.v1.ComponentParametersOrBuilder> + internalGetComponentParametersFieldBuilder() { + if (componentParametersBuilder_ == null) { + componentParametersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ComponentParameters, + com.google.cloud.designcenter.v1.ComponentParameters.Builder, + com.google.cloud.designcenter.v1.ComponentParametersOrBuilder>( + componentParameters_, + ((bitField0_ & 0x00000020) != 0), + getParentForChildren(), + isClean()); + componentParameters_ = null; + } + return componentParametersBuilder_; + } + + private java.lang.Object serviceAccount_ = ""; + + /** + * + * + *
+     * Optional. Your own service account that you use to deploy an application.
+     * 
+ * + * string service_account = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The serviceAccount. + */ + public java.lang.String getServiceAccount() { + java.lang.Object ref = serviceAccount_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccount_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Your own service account that you use to deploy an application.
+     * 
+ * + * string service_account = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for serviceAccount. + */ + public com.google.protobuf.ByteString getServiceAccountBytes() { + java.lang.Object ref = serviceAccount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Your own service account that you use to deploy an application.
+     * 
+ * + * string service_account = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The serviceAccount to set. + * @return This builder for chaining. + */ + public Builder setServiceAccount(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + serviceAccount_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Your own service account that you use to deploy an application.
+     * 
+ * + * string service_account = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearServiceAccount() { + serviceAccount_ = getDefaultInstance().getServiceAccount(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Your own service account that you use to deploy an application.
+     * 
+ * + * string service_account = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for serviceAccount to set. + * @return This builder for chaining. + */ + public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceAccount_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
+     * Optional. Display name of the application.
+     * 
+ * + * string display_name = 12 [(.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 of the application.
+     * 
+ * + * string display_name = 12 [(.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 of the application.
+     * 
+ * + * string display_name = 12 [(.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_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Display name of the application.
+     * 
+ * + * string display_name = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Display name of the application.
+     * 
+ * + * string display_name = 12 [(.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_ |= 0x00000080; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
+     * Optional. Description of the application.
+     * 
+ * + * string description = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Description of the application.
+     * 
+ * + * string description = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Description of the application.
+     * 
+ * + * string description = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Description of the application.
+     * 
+ * + * string description = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Description of the application.
+     * 
+ * + * string description = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private com.google.cloud.apphub.v1.Attributes attributes_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.apphub.v1.Attributes, + com.google.cloud.apphub.v1.Attributes.Builder, + com.google.cloud.apphub.v1.AttributesOrBuilder> + attributesBuilder_; + + /** + * + * + *
+     * Optional. Attributes of the application.
+     * 
+ * + * + * .google.cloud.apphub.v1.Attributes attributes = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the attributes field is set. + */ + public boolean hasAttributes() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
+     * Optional. Attributes of the application.
+     * 
+ * + * + * .google.cloud.apphub.v1.Attributes attributes = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The attributes. + */ + public com.google.cloud.apphub.v1.Attributes getAttributes() { + if (attributesBuilder_ == null) { + return attributes_ == null + ? com.google.cloud.apphub.v1.Attributes.getDefaultInstance() + : attributes_; + } else { + return attributesBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Attributes of the application.
+     * 
+ * + * + * .google.cloud.apphub.v1.Attributes attributes = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAttributes(com.google.cloud.apphub.v1.Attributes value) { + if (attributesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + attributes_ = value; + } else { + attributesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Attributes of the application.
+     * 
+ * + * + * .google.cloud.apphub.v1.Attributes attributes = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAttributes(com.google.cloud.apphub.v1.Attributes.Builder builderForValue) { + if (attributesBuilder_ == null) { + attributes_ = builderForValue.build(); + } else { + attributesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Attributes of the application.
+     * 
+ * + * + * .google.cloud.apphub.v1.Attributes attributes = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAttributes(com.google.cloud.apphub.v1.Attributes value) { + if (attributesBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && attributes_ != null + && attributes_ != com.google.cloud.apphub.v1.Attributes.getDefaultInstance()) { + getAttributesBuilder().mergeFrom(value); + } else { + attributes_ = value; + } + } else { + attributesBuilder_.mergeFrom(value); + } + if (attributes_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Attributes of the application.
+     * 
+ * + * + * .google.cloud.apphub.v1.Attributes attributes = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAttributes() { + bitField0_ = (bitField0_ & ~0x00000200); + attributes_ = null; + if (attributesBuilder_ != null) { + attributesBuilder_.dispose(); + attributesBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Attributes of the application.
+     * 
+ * + * + * .google.cloud.apphub.v1.Attributes attributes = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.apphub.v1.Attributes.Builder getAttributesBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return internalGetAttributesFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Attributes of the application.
+     * 
+ * + * + * .google.cloud.apphub.v1.Attributes attributes = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.apphub.v1.AttributesOrBuilder getAttributesOrBuilder() { + if (attributesBuilder_ != null) { + return attributesBuilder_.getMessageOrBuilder(); + } else { + return attributes_ == null + ? com.google.cloud.apphub.v1.Attributes.getDefaultInstance() + : attributes_; + } + } + + /** + * + * + *
+     * Optional. Attributes of the application.
+     * 
+ * + * + * .google.cloud.apphub.v1.Attributes attributes = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.apphub.v1.Attributes, + com.google.cloud.apphub.v1.Attributes.Builder, + com.google.cloud.apphub.v1.AttributesOrBuilder> + internalGetAttributesFieldBuilder() { + if (attributesBuilder_ == null) { + attributesBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.apphub.v1.Attributes, + com.google.cloud.apphub.v1.Attributes.Builder, + com.google.cloud.apphub.v1.AttributesOrBuilder>( + getAttributes(), getParentForChildren(), isClean()); + attributes_ = null; + } + return attributesBuilder_; + } + + private com.google.cloud.apphub.v1.Scope scope_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.apphub.v1.Scope, + com.google.cloud.apphub.v1.Scope.Builder, + com.google.cloud.apphub.v1.ScopeOrBuilder> + scopeBuilder_; + + /** + * + * + *
+     * Required. Scope of the application.
+     * 
+ * + * .google.cloud.apphub.v1.Scope scope = 15 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the scope field is set. + */ + public boolean hasScope() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
+     * Required. Scope of the application.
+     * 
+ * + * .google.cloud.apphub.v1.Scope scope = 15 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The scope. + */ + public com.google.cloud.apphub.v1.Scope getScope() { + if (scopeBuilder_ == null) { + return scope_ == null ? com.google.cloud.apphub.v1.Scope.getDefaultInstance() : scope_; + } else { + return scopeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. Scope of the application.
+     * 
+ * + * .google.cloud.apphub.v1.Scope scope = 15 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setScope(com.google.cloud.apphub.v1.Scope value) { + if (scopeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + scope_ = value; + } else { + scopeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Scope of the application.
+     * 
+ * + * .google.cloud.apphub.v1.Scope scope = 15 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setScope(com.google.cloud.apphub.v1.Scope.Builder builderForValue) { + if (scopeBuilder_ == null) { + scope_ = builderForValue.build(); + } else { + scopeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Scope of the application.
+     * 
+ * + * .google.cloud.apphub.v1.Scope scope = 15 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeScope(com.google.cloud.apphub.v1.Scope value) { + if (scopeBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0) + && scope_ != null + && scope_ != com.google.cloud.apphub.v1.Scope.getDefaultInstance()) { + getScopeBuilder().mergeFrom(value); + } else { + scope_ = value; + } + } else { + scopeBuilder_.mergeFrom(value); + } + if (scope_ != null) { + bitField0_ |= 0x00000400; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. Scope of the application.
+     * 
+ * + * .google.cloud.apphub.v1.Scope scope = 15 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearScope() { + bitField0_ = (bitField0_ & ~0x00000400); + scope_ = null; + if (scopeBuilder_ != null) { + scopeBuilder_.dispose(); + scopeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Scope of the application.
+     * 
+ * + * .google.cloud.apphub.v1.Scope scope = 15 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.apphub.v1.Scope.Builder getScopeBuilder() { + bitField0_ |= 0x00000400; + onChanged(); + return internalGetScopeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. Scope of the application.
+     * 
+ * + * .google.cloud.apphub.v1.Scope scope = 15 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.apphub.v1.ScopeOrBuilder getScopeOrBuilder() { + if (scopeBuilder_ != null) { + return scopeBuilder_.getMessageOrBuilder(); + } else { + return scope_ == null ? com.google.cloud.apphub.v1.Scope.getDefaultInstance() : scope_; + } + } + + /** + * + * + *
+     * Required. Scope of the application.
+     * 
+ * + * .google.cloud.apphub.v1.Scope scope = 15 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.apphub.v1.Scope, + com.google.cloud.apphub.v1.Scope.Builder, + com.google.cloud.apphub.v1.ScopeOrBuilder> + internalGetScopeFieldBuilder() { + if (scopeBuilder_ == null) { + scopeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.apphub.v1.Scope, + com.google.cloud.apphub.v1.Scope.Builder, + com.google.cloud.apphub.v1.ScopeOrBuilder>( + getScope(), getParentForChildren(), isClean()); + scope_ = null; + } + return scopeBuilder_; + } + + private boolean importExistingResources_; + + /** + * + * + *
+     * Optional. Import existing resources into the application.
+     * 
+ * + * bool import_existing_resources = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The importExistingResources. + */ + @java.lang.Override + public boolean getImportExistingResources() { + return importExistingResources_; + } + + /** + * + * + *
+     * Optional. Import existing resources into the application.
+     * 
+ * + * bool import_existing_resources = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The importExistingResources to set. + * @return This builder for chaining. + */ + public Builder setImportExistingResources(boolean value) { + + importExistingResources_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Import existing resources into the application.
+     * 
+ * + * bool import_existing_resources = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearImportExistingResources() { + bitField0_ = (bitField0_ & ~0x00000800); + importExistingResources_ = false; + onChanged(); + return this; + } + + private java.lang.Object previewReference_ = ""; + + /** + * + * + *
+     * Output only. Preview reference for the application.
+     * 
+ * + * string preview_reference = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The previewReference. + */ + public java.lang.String getPreviewReference() { + java.lang.Object ref = previewReference_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + previewReference_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Preview reference for the application.
+     * 
+ * + * string preview_reference = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for previewReference. + */ + public com.google.protobuf.ByteString getPreviewReferenceBytes() { + java.lang.Object ref = previewReference_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + previewReference_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Preview reference for the application.
+     * 
+ * + * string preview_reference = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The previewReference to set. + * @return This builder for chaining. + */ + public Builder setPreviewReference(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + previewReference_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Preview reference for the application.
+     * 
+ * + * string preview_reference = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearPreviewReference() { + previewReference_ = getDefaultInstance().getPreviewReference(); + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Preview reference for the application.
+     * 
+ * + * string preview_reference = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for previewReference to set. + * @return This builder for chaining. + */ + public Builder setPreviewReferenceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + previewReference_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + private java.lang.Object deploymentRevision_ = ""; + + /** + * + * + *
+     * Output only. [Output only] Optional Infra Manager deployment Id with
+     * revision
+     * 
+ * + * string deployment_revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The deploymentRevision. + */ + public java.lang.String getDeploymentRevision() { + java.lang.Object ref = deploymentRevision_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deploymentRevision_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. [Output only] Optional Infra Manager deployment Id with
+     * revision
+     * 
+ * + * string deployment_revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for deploymentRevision. + */ + public com.google.protobuf.ByteString getDeploymentRevisionBytes() { + java.lang.Object ref = deploymentRevision_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deploymentRevision_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. [Output only] Optional Infra Manager deployment Id with
+     * revision
+     * 
+ * + * string deployment_revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The deploymentRevision to set. + * @return This builder for chaining. + */ + public Builder setDeploymentRevision(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + deploymentRevision_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output only] Optional Infra Manager deployment Id with
+     * revision
+     * 
+ * + * string deployment_revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDeploymentRevision() { + deploymentRevision_ = getDefaultInstance().getDeploymentRevision(); + bitField0_ = (bitField0_ & ~0x00002000); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output only] Optional Infra Manager deployment Id with
+     * revision
+     * 
+ * + * string deployment_revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for deploymentRevision to set. + * @return This builder for chaining. + */ + public Builder setDeploymentRevisionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + deploymentRevision_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + private java.lang.Object apphubApplication_ = ""; + + /** + * + * + *
+     * Output only. The App Hub App associated with the application.
+     * 
+ * + * string apphub_application = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The apphubApplication. + */ + public java.lang.String getApphubApplication() { + java.lang.Object ref = apphubApplication_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + apphubApplication_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The App Hub App associated with the application.
+     * 
+ * + * string apphub_application = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for apphubApplication. + */ + public com.google.protobuf.ByteString getApphubApplicationBytes() { + java.lang.Object ref = apphubApplication_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + apphubApplication_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The App Hub App associated with the application.
+     * 
+ * + * string apphub_application = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The apphubApplication to set. + * @return This builder for chaining. + */ + public Builder setApphubApplication(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + apphubApplication_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The App Hub App associated with the application.
+     * 
+ * + * string apphub_application = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearApphubApplication() { + apphubApplication_ = getDefaultInstance().getApphubApplication(); + bitField0_ = (bitField0_ & ~0x00004000); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The App Hub App associated with the application.
+     * 
+ * + * string apphub_application = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for apphubApplication to set. + * @return This builder for chaining. + */ + public Builder setApphubApplicationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apphubApplication_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + private com.google.cloud.designcenter.v1.SerializedApplicationTemplate + serializedApplicationTemplate_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.SerializedApplicationTemplate, + com.google.cloud.designcenter.v1.SerializedApplicationTemplate.Builder, + com.google.cloud.designcenter.v1.SerializedApplicationTemplateOrBuilder> + serializedApplicationTemplateBuilder_; + + /** + * + * + *
+     * Output only. [Output only] Serialized application template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate serialized_application_template = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the serializedApplicationTemplate field is set. + */ + public boolean hasSerializedApplicationTemplate() { + return ((bitField0_ & 0x00008000) != 0); + } + + /** + * + * + *
+     * Output only. [Output only] Serialized application template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate serialized_application_template = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The serializedApplicationTemplate. + */ + public com.google.cloud.designcenter.v1.SerializedApplicationTemplate + getSerializedApplicationTemplate() { + if (serializedApplicationTemplateBuilder_ == null) { + return serializedApplicationTemplate_ == null + ? com.google.cloud.designcenter.v1.SerializedApplicationTemplate.getDefaultInstance() + : serializedApplicationTemplate_; + } else { + return serializedApplicationTemplateBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. [Output only] Serialized application template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate serialized_application_template = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSerializedApplicationTemplate( + com.google.cloud.designcenter.v1.SerializedApplicationTemplate value) { + if (serializedApplicationTemplateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + serializedApplicationTemplate_ = value; + } else { + serializedApplicationTemplateBuilder_.setMessage(value); + } + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output only] Serialized application template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate serialized_application_template = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSerializedApplicationTemplate( + com.google.cloud.designcenter.v1.SerializedApplicationTemplate.Builder builderForValue) { + if (serializedApplicationTemplateBuilder_ == null) { + serializedApplicationTemplate_ = builderForValue.build(); + } else { + serializedApplicationTemplateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output only] Serialized application template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate serialized_application_template = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeSerializedApplicationTemplate( + com.google.cloud.designcenter.v1.SerializedApplicationTemplate value) { + if (serializedApplicationTemplateBuilder_ == null) { + if (((bitField0_ & 0x00008000) != 0) + && serializedApplicationTemplate_ != null + && serializedApplicationTemplate_ + != com.google.cloud.designcenter.v1.SerializedApplicationTemplate + .getDefaultInstance()) { + getSerializedApplicationTemplateBuilder().mergeFrom(value); + } else { + serializedApplicationTemplate_ = value; + } + } else { + serializedApplicationTemplateBuilder_.mergeFrom(value); + } + if (serializedApplicationTemplate_ != null) { + bitField0_ |= 0x00008000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. [Output only] Serialized application template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate serialized_application_template = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearSerializedApplicationTemplate() { + bitField0_ = (bitField0_ & ~0x00008000); + serializedApplicationTemplate_ = null; + if (serializedApplicationTemplateBuilder_ != null) { + serializedApplicationTemplateBuilder_.dispose(); + serializedApplicationTemplateBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output only] Serialized application template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate serialized_application_template = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.SerializedApplicationTemplate.Builder + getSerializedApplicationTemplateBuilder() { + bitField0_ |= 0x00008000; + onChanged(); + return internalGetSerializedApplicationTemplateFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. [Output only] Serialized application template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate serialized_application_template = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.SerializedApplicationTemplateOrBuilder + getSerializedApplicationTemplateOrBuilder() { + if (serializedApplicationTemplateBuilder_ != null) { + return serializedApplicationTemplateBuilder_.getMessageOrBuilder(); + } else { + return serializedApplicationTemplate_ == null + ? com.google.cloud.designcenter.v1.SerializedApplicationTemplate.getDefaultInstance() + : serializedApplicationTemplate_; + } + } + + /** + * + * + *
+     * Output only. [Output only] Serialized application template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate serialized_application_template = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.SerializedApplicationTemplate, + com.google.cloud.designcenter.v1.SerializedApplicationTemplate.Builder, + com.google.cloud.designcenter.v1.SerializedApplicationTemplateOrBuilder> + internalGetSerializedApplicationTemplateFieldBuilder() { + if (serializedApplicationTemplateBuilder_ == null) { + serializedApplicationTemplateBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.SerializedApplicationTemplate, + com.google.cloud.designcenter.v1.SerializedApplicationTemplate.Builder, + com.google.cloud.designcenter.v1.SerializedApplicationTemplateOrBuilder>( + getSerializedApplicationTemplate(), getParentForChildren(), isClean()); + serializedApplicationTemplate_ = null; + } + return serializedApplicationTemplateBuilder_; + } + + private int state_ = 0; + + /** + * + * + *
+     * Output only. Deployment state of the application.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Application.State state = 21 [(.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. Deployment state of the application.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Application.State state = 21 [(.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_ |= 0x00010000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Deployment state of the application.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Application.State state = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.Application.State getState() { + com.google.cloud.designcenter.v1.Application.State result = + com.google.cloud.designcenter.v1.Application.State.forNumber(state_); + return result == null + ? com.google.cloud.designcenter.v1.Application.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Output only. Deployment state of the application.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Application.State state = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.designcenter.v1.Application.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00010000; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Deployment state of the application.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Application.State state = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00010000); + state_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.designcenter.v1.DeploymentMetadata deploymentMetadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.DeploymentMetadata, + com.google.cloud.designcenter.v1.DeploymentMetadata.Builder, + com.google.cloud.designcenter.v1.DeploymentMetadataOrBuilder> + deploymentMetadataBuilder_; + + /** + * + * + *
+     * Output only. Deployment metadata of the application.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentMetadata deployment_metadata = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the deploymentMetadata field is set. + */ + public boolean hasDeploymentMetadata() { + return ((bitField0_ & 0x00020000) != 0); + } + + /** + * + * + *
+     * Output only. Deployment metadata of the application.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentMetadata deployment_metadata = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deploymentMetadata. + */ + public com.google.cloud.designcenter.v1.DeploymentMetadata getDeploymentMetadata() { + if (deploymentMetadataBuilder_ == null) { + return deploymentMetadata_ == null + ? com.google.cloud.designcenter.v1.DeploymentMetadata.getDefaultInstance() + : deploymentMetadata_; + } else { + return deploymentMetadataBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Deployment metadata of the application.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentMetadata deployment_metadata = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDeploymentMetadata( + com.google.cloud.designcenter.v1.DeploymentMetadata value) { + if (deploymentMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deploymentMetadata_ = value; + } else { + deploymentMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Deployment metadata of the application.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentMetadata deployment_metadata = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDeploymentMetadata( + com.google.cloud.designcenter.v1.DeploymentMetadata.Builder builderForValue) { + if (deploymentMetadataBuilder_ == null) { + deploymentMetadata_ = builderForValue.build(); + } else { + deploymentMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Deployment metadata of the application.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentMetadata deployment_metadata = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeDeploymentMetadata( + com.google.cloud.designcenter.v1.DeploymentMetadata value) { + if (deploymentMetadataBuilder_ == null) { + if (((bitField0_ & 0x00020000) != 0) + && deploymentMetadata_ != null + && deploymentMetadata_ + != com.google.cloud.designcenter.v1.DeploymentMetadata.getDefaultInstance()) { + getDeploymentMetadataBuilder().mergeFrom(value); + } else { + deploymentMetadata_ = value; + } + } else { + deploymentMetadataBuilder_.mergeFrom(value); + } + if (deploymentMetadata_ != null) { + bitField0_ |= 0x00020000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Deployment metadata of the application.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentMetadata deployment_metadata = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDeploymentMetadata() { + bitField0_ = (bitField0_ & ~0x00020000); + deploymentMetadata_ = null; + if (deploymentMetadataBuilder_ != null) { + deploymentMetadataBuilder_.dispose(); + deploymentMetadataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Deployment metadata of the application.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentMetadata deployment_metadata = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.DeploymentMetadata.Builder + getDeploymentMetadataBuilder() { + bitField0_ |= 0x00020000; + onChanged(); + return internalGetDeploymentMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Deployment metadata of the application.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentMetadata deployment_metadata = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.DeploymentMetadataOrBuilder + getDeploymentMetadataOrBuilder() { + if (deploymentMetadataBuilder_ != null) { + return deploymentMetadataBuilder_.getMessageOrBuilder(); + } else { + return deploymentMetadata_ == null + ? com.google.cloud.designcenter.v1.DeploymentMetadata.getDefaultInstance() + : deploymentMetadata_; + } + } + + /** + * + * + *
+     * Output only. Deployment metadata of the application.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentMetadata deployment_metadata = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.DeploymentMetadata, + com.google.cloud.designcenter.v1.DeploymentMetadata.Builder, + com.google.cloud.designcenter.v1.DeploymentMetadataOrBuilder> + internalGetDeploymentMetadataFieldBuilder() { + if (deploymentMetadataBuilder_ == null) { + deploymentMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.DeploymentMetadata, + com.google.cloud.designcenter.v1.DeploymentMetadata.Builder, + com.google.cloud.designcenter.v1.DeploymentMetadataOrBuilder>( + getDeploymentMetadata(), getParentForChildren(), isClean()); + deploymentMetadata_ = null; + } + return deploymentMetadataBuilder_; + } + + private java.util.List projectParameters_ = + java.util.Collections.emptyList(); + + private void ensureProjectParametersIsMutable() { + if (!((bitField0_ & 0x00040000) != 0)) { + projectParameters_ = + new java.util.ArrayList( + projectParameters_); + bitField0_ |= 0x00040000; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ProjectParameters, + com.google.cloud.designcenter.v1.ProjectParameters.Builder, + com.google.cloud.designcenter.v1.ProjectParametersOrBuilder> + projectParametersBuilder_; + + /** + * + * + *
+     * Output only. List of project parameters for the application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProjectParameters project_parameters = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getProjectParametersList() { + if (projectParametersBuilder_ == null) { + return java.util.Collections.unmodifiableList(projectParameters_); + } else { + return projectParametersBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Output only. List of project parameters for the application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProjectParameters project_parameters = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getProjectParametersCount() { + if (projectParametersBuilder_ == null) { + return projectParameters_.size(); + } else { + return projectParametersBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Output only. List of project parameters for the application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProjectParameters project_parameters = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ProjectParameters getProjectParameters(int index) { + if (projectParametersBuilder_ == null) { + return projectParameters_.get(index); + } else { + return projectParametersBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Output only. List of project parameters for the application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProjectParameters project_parameters = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setProjectParameters( + int index, com.google.cloud.designcenter.v1.ProjectParameters value) { + if (projectParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProjectParametersIsMutable(); + projectParameters_.set(index, value); + onChanged(); + } else { + projectParametersBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. List of project parameters for the application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProjectParameters project_parameters = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setProjectParameters( + int index, com.google.cloud.designcenter.v1.ProjectParameters.Builder builderForValue) { + if (projectParametersBuilder_ == null) { + ensureProjectParametersIsMutable(); + projectParameters_.set(index, builderForValue.build()); + onChanged(); + } else { + projectParametersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. List of project parameters for the application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProjectParameters project_parameters = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addProjectParameters(com.google.cloud.designcenter.v1.ProjectParameters value) { + if (projectParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProjectParametersIsMutable(); + projectParameters_.add(value); + onChanged(); + } else { + projectParametersBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Output only. List of project parameters for the application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProjectParameters project_parameters = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addProjectParameters( + int index, com.google.cloud.designcenter.v1.ProjectParameters value) { + if (projectParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProjectParametersIsMutable(); + projectParameters_.add(index, value); + onChanged(); + } else { + projectParametersBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. List of project parameters for the application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProjectParameters project_parameters = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addProjectParameters( + com.google.cloud.designcenter.v1.ProjectParameters.Builder builderForValue) { + if (projectParametersBuilder_ == null) { + ensureProjectParametersIsMutable(); + projectParameters_.add(builderForValue.build()); + onChanged(); + } else { + projectParametersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. List of project parameters for the application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProjectParameters project_parameters = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addProjectParameters( + int index, com.google.cloud.designcenter.v1.ProjectParameters.Builder builderForValue) { + if (projectParametersBuilder_ == null) { + ensureProjectParametersIsMutable(); + projectParameters_.add(index, builderForValue.build()); + onChanged(); + } else { + projectParametersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. List of project parameters for the application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProjectParameters project_parameters = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllProjectParameters( + java.lang.Iterable values) { + if (projectParametersBuilder_ == null) { + ensureProjectParametersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, projectParameters_); + onChanged(); + } else { + projectParametersBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Output only. List of project parameters for the application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProjectParameters project_parameters = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearProjectParameters() { + if (projectParametersBuilder_ == null) { + projectParameters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00040000); + onChanged(); + } else { + projectParametersBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Output only. List of project parameters for the application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProjectParameters project_parameters = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeProjectParameters(int index) { + if (projectParametersBuilder_ == null) { + ensureProjectParametersIsMutable(); + projectParameters_.remove(index); + onChanged(); + } else { + projectParametersBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Output only. List of project parameters for the application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProjectParameters project_parameters = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ProjectParameters.Builder getProjectParametersBuilder( + int index) { + return internalGetProjectParametersFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Output only. List of project parameters for the application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProjectParameters project_parameters = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ProjectParametersOrBuilder + getProjectParametersOrBuilder(int index) { + if (projectParametersBuilder_ == null) { + return projectParameters_.get(index); + } else { + return projectParametersBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Output only. List of project parameters for the application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProjectParameters project_parameters = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getProjectParametersOrBuilderList() { + if (projectParametersBuilder_ != null) { + return projectParametersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(projectParameters_); + } + } + + /** + * + * + *
+     * Output only. List of project parameters for the application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProjectParameters project_parameters = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ProjectParameters.Builder + addProjectParametersBuilder() { + return internalGetProjectParametersFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.ProjectParameters.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. List of project parameters for the application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProjectParameters project_parameters = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ProjectParameters.Builder addProjectParametersBuilder( + int index) { + return internalGetProjectParametersFieldBuilder() + .addBuilder( + index, com.google.cloud.designcenter.v1.ProjectParameters.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. List of project parameters for the application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProjectParameters project_parameters = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getProjectParametersBuilderList() { + return internalGetProjectParametersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ProjectParameters, + com.google.cloud.designcenter.v1.ProjectParameters.Builder, + com.google.cloud.designcenter.v1.ProjectParametersOrBuilder> + internalGetProjectParametersFieldBuilder() { + if (projectParametersBuilder_ == null) { + projectParametersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ProjectParameters, + com.google.cloud.designcenter.v1.ProjectParameters.Builder, + com.google.cloud.designcenter.v1.ProjectParametersOrBuilder>( + projectParameters_, + ((bitField0_ & 0x00040000) != 0), + getParentForChildren(), + isClean()); + projectParameters_ = null; + } + return projectParametersBuilder_; + } + + private java.lang.Object deploymentRegion_ = ""; + + /** + * + * + *
+     * Optional. The region where the application is deployed.
+     * 
+ * + * string deployment_region = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The deploymentRegion. + */ + public java.lang.String getDeploymentRegion() { + java.lang.Object ref = deploymentRegion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deploymentRegion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The region where the application is deployed.
+     * 
+ * + * string deployment_region = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for deploymentRegion. + */ + public com.google.protobuf.ByteString getDeploymentRegionBytes() { + java.lang.Object ref = deploymentRegion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deploymentRegion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The region where the application is deployed.
+     * 
+ * + * string deployment_region = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The deploymentRegion to set. + * @return This builder for chaining. + */ + public Builder setDeploymentRegion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + deploymentRegion_ = value; + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The region where the application is deployed.
+     * 
+ * + * string deployment_region = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDeploymentRegion() { + deploymentRegion_ = getDefaultInstance().getDeploymentRegion(); + bitField0_ = (bitField0_ & ~0x00080000); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The region where the application is deployed.
+     * 
+ * + * string deployment_region = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for deploymentRegion to set. + * @return This builder for chaining. + */ + public Builder setDeploymentRegionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + deploymentRegion_ = value; + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + + private com.google.cloud.designcenter.v1.UpdatedTemplateRevision updatedTemplateRevision_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.UpdatedTemplateRevision, + com.google.cloud.designcenter.v1.UpdatedTemplateRevision.Builder, + com.google.cloud.designcenter.v1.UpdatedTemplateRevisionOrBuilder> + updatedTemplateRevisionBuilder_; + + /** + * + * + *
+     * Output only. The updated template revision because of which the application
+     * is outdated.
+     * 
+ * + * + * .google.cloud.designcenter.v1.UpdatedTemplateRevision updated_template_revision = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updatedTemplateRevision field is set. + */ + public boolean hasUpdatedTemplateRevision() { + return ((bitField0_ & 0x00100000) != 0); + } + + /** + * + * + *
+     * Output only. The updated template revision because of which the application
+     * is outdated.
+     * 
+ * + * + * .google.cloud.designcenter.v1.UpdatedTemplateRevision updated_template_revision = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updatedTemplateRevision. + */ + public com.google.cloud.designcenter.v1.UpdatedTemplateRevision getUpdatedTemplateRevision() { + if (updatedTemplateRevisionBuilder_ == null) { + return updatedTemplateRevision_ == null + ? com.google.cloud.designcenter.v1.UpdatedTemplateRevision.getDefaultInstance() + : updatedTemplateRevision_; + } else { + return updatedTemplateRevisionBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. The updated template revision because of which the application
+     * is outdated.
+     * 
+ * + * + * .google.cloud.designcenter.v1.UpdatedTemplateRevision updated_template_revision = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdatedTemplateRevision( + com.google.cloud.designcenter.v1.UpdatedTemplateRevision value) { + if (updatedTemplateRevisionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updatedTemplateRevision_ = value; + } else { + updatedTemplateRevisionBuilder_.setMessage(value); + } + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The updated template revision because of which the application
+     * is outdated.
+     * 
+ * + * + * .google.cloud.designcenter.v1.UpdatedTemplateRevision updated_template_revision = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdatedTemplateRevision( + com.google.cloud.designcenter.v1.UpdatedTemplateRevision.Builder builderForValue) { + if (updatedTemplateRevisionBuilder_ == null) { + updatedTemplateRevision_ = builderForValue.build(); + } else { + updatedTemplateRevisionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The updated template revision because of which the application
+     * is outdated.
+     * 
+ * + * + * .google.cloud.designcenter.v1.UpdatedTemplateRevision updated_template_revision = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdatedTemplateRevision( + com.google.cloud.designcenter.v1.UpdatedTemplateRevision value) { + if (updatedTemplateRevisionBuilder_ == null) { + if (((bitField0_ & 0x00100000) != 0) + && updatedTemplateRevision_ != null + && updatedTemplateRevision_ + != com.google.cloud.designcenter.v1.UpdatedTemplateRevision.getDefaultInstance()) { + getUpdatedTemplateRevisionBuilder().mergeFrom(value); + } else { + updatedTemplateRevision_ = value; + } + } else { + updatedTemplateRevisionBuilder_.mergeFrom(value); + } + if (updatedTemplateRevision_ != null) { + bitField0_ |= 0x00100000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The updated template revision because of which the application
+     * is outdated.
+     * 
+ * + * + * .google.cloud.designcenter.v1.UpdatedTemplateRevision updated_template_revision = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdatedTemplateRevision() { + bitField0_ = (bitField0_ & ~0x00100000); + updatedTemplateRevision_ = null; + if (updatedTemplateRevisionBuilder_ != null) { + updatedTemplateRevisionBuilder_.dispose(); + updatedTemplateRevisionBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The updated template revision because of which the application
+     * is outdated.
+     * 
+ * + * + * .google.cloud.designcenter.v1.UpdatedTemplateRevision updated_template_revision = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.UpdatedTemplateRevision.Builder + getUpdatedTemplateRevisionBuilder() { + bitField0_ |= 0x00100000; + onChanged(); + return internalGetUpdatedTemplateRevisionFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The updated template revision because of which the application
+     * is outdated.
+     * 
+ * + * + * .google.cloud.designcenter.v1.UpdatedTemplateRevision updated_template_revision = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.UpdatedTemplateRevisionOrBuilder + getUpdatedTemplateRevisionOrBuilder() { + if (updatedTemplateRevisionBuilder_ != null) { + return updatedTemplateRevisionBuilder_.getMessageOrBuilder(); + } else { + return updatedTemplateRevision_ == null + ? com.google.cloud.designcenter.v1.UpdatedTemplateRevision.getDefaultInstance() + : updatedTemplateRevision_; + } + } + + /** + * + * + *
+     * Output only. The updated template revision because of which the application
+     * is outdated.
+     * 
+ * + * + * .google.cloud.designcenter.v1.UpdatedTemplateRevision updated_template_revision = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.UpdatedTemplateRevision, + com.google.cloud.designcenter.v1.UpdatedTemplateRevision.Builder, + com.google.cloud.designcenter.v1.UpdatedTemplateRevisionOrBuilder> + internalGetUpdatedTemplateRevisionFieldBuilder() { + if (updatedTemplateRevisionBuilder_ == null) { + updatedTemplateRevisionBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.UpdatedTemplateRevision, + com.google.cloud.designcenter.v1.UpdatedTemplateRevision.Builder, + com.google.cloud.designcenter.v1.UpdatedTemplateRevisionOrBuilder>( + getUpdatedTemplateRevision(), getParentForChildren(), isClean()); + updatedTemplateRevision_ = null; + } + return updatedTemplateRevisionBuilder_; + } + + private java.lang.Object deploymentProject_ = ""; + + /** + * + * + *
+     * Optional. Deployment project of the application.
+     * 
+ * + * string deployment_project = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The deploymentProject. + */ + public java.lang.String getDeploymentProject() { + java.lang.Object ref = deploymentProject_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deploymentProject_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Deployment project of the application.
+     * 
+ * + * string deployment_project = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for deploymentProject. + */ + public com.google.protobuf.ByteString getDeploymentProjectBytes() { + java.lang.Object ref = deploymentProject_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deploymentProject_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Deployment project of the application.
+     * 
+ * + * string deployment_project = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The deploymentProject to set. + * @return This builder for chaining. + */ + public Builder setDeploymentProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + deploymentProject_ = value; + bitField0_ |= 0x00200000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Deployment project of the application.
+     * 
+ * + * string deployment_project = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDeploymentProject() { + deploymentProject_ = getDefaultInstance().getDeploymentProject(); + bitField0_ = (bitField0_ & ~0x00200000); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Deployment project of the application.
+     * 
+ * + * string deployment_project = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for deploymentProject to set. + * @return This builder for chaining. + */ + public Builder setDeploymentProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + deploymentProject_ = value; + bitField0_ |= 0x00200000; + onChanged(); + return this; + } + + private java.util.List connectionConfigs_ = + java.util.Collections.emptyList(); + + private void ensureConnectionConfigsIsMutable() { + if (!((bitField0_ & 0x00400000) != 0)) { + connectionConfigs_ = + new java.util.ArrayList( + connectionConfigs_); + bitField0_ |= 0x00400000; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ConnectionConfig, + com.google.cloud.designcenter.v1.ConnectionConfig.Builder, + com.google.cloud.designcenter.v1.ConnectionConfigOrBuilder> + connectionConfigsBuilder_; + + /** + * + * + *
+     * Optional. Connection configuration for the application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionConfig connection_configs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getConnectionConfigsList() { + if (connectionConfigsBuilder_ == null) { + return java.util.Collections.unmodifiableList(connectionConfigs_); + } else { + return connectionConfigsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. Connection configuration for the application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionConfig connection_configs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getConnectionConfigsCount() { + if (connectionConfigsBuilder_ == null) { + return connectionConfigs_.size(); + } else { + return connectionConfigsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. Connection configuration for the application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionConfig connection_configs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ConnectionConfig getConnectionConfigs(int index) { + if (connectionConfigsBuilder_ == null) { + return connectionConfigs_.get(index); + } else { + return connectionConfigsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. Connection configuration for the application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionConfig connection_configs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setConnectionConfigs( + int index, com.google.cloud.designcenter.v1.ConnectionConfig value) { + if (connectionConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConnectionConfigsIsMutable(); + connectionConfigs_.set(index, value); + onChanged(); + } else { + connectionConfigsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Connection configuration for the application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionConfig connection_configs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setConnectionConfigs( + int index, com.google.cloud.designcenter.v1.ConnectionConfig.Builder builderForValue) { + if (connectionConfigsBuilder_ == null) { + ensureConnectionConfigsIsMutable(); + connectionConfigs_.set(index, builderForValue.build()); + onChanged(); + } else { + connectionConfigsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Connection configuration for the application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionConfig connection_configs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addConnectionConfigs(com.google.cloud.designcenter.v1.ConnectionConfig value) { + if (connectionConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConnectionConfigsIsMutable(); + connectionConfigs_.add(value); + onChanged(); + } else { + connectionConfigsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. Connection configuration for the application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionConfig connection_configs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addConnectionConfigs( + int index, com.google.cloud.designcenter.v1.ConnectionConfig value) { + if (connectionConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConnectionConfigsIsMutable(); + connectionConfigs_.add(index, value); + onChanged(); + } else { + connectionConfigsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Connection configuration for the application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionConfig connection_configs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addConnectionConfigs( + com.google.cloud.designcenter.v1.ConnectionConfig.Builder builderForValue) { + if (connectionConfigsBuilder_ == null) { + ensureConnectionConfigsIsMutable(); + connectionConfigs_.add(builderForValue.build()); + onChanged(); + } else { + connectionConfigsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Connection configuration for the application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionConfig connection_configs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addConnectionConfigs( + int index, com.google.cloud.designcenter.v1.ConnectionConfig.Builder builderForValue) { + if (connectionConfigsBuilder_ == null) { + ensureConnectionConfigsIsMutable(); + connectionConfigs_.add(index, builderForValue.build()); + onChanged(); + } else { + connectionConfigsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Connection configuration for the application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionConfig connection_configs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllConnectionConfigs( + java.lang.Iterable values) { + if (connectionConfigsBuilder_ == null) { + ensureConnectionConfigsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, connectionConfigs_); + onChanged(); + } else { + connectionConfigsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. Connection configuration for the application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionConfig connection_configs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearConnectionConfigs() { + if (connectionConfigsBuilder_ == null) { + connectionConfigs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00400000); + onChanged(); + } else { + connectionConfigsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Connection configuration for the application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionConfig connection_configs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeConnectionConfigs(int index) { + if (connectionConfigsBuilder_ == null) { + ensureConnectionConfigsIsMutable(); + connectionConfigs_.remove(index); + onChanged(); + } else { + connectionConfigsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. Connection configuration for the application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionConfig connection_configs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ConnectionConfig.Builder getConnectionConfigsBuilder( + int index) { + return internalGetConnectionConfigsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. Connection configuration for the application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionConfig connection_configs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ConnectionConfigOrBuilder getConnectionConfigsOrBuilder( + int index) { + if (connectionConfigsBuilder_ == null) { + return connectionConfigs_.get(index); + } else { + return connectionConfigsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. Connection configuration for the application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionConfig connection_configs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getConnectionConfigsOrBuilderList() { + if (connectionConfigsBuilder_ != null) { + return connectionConfigsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(connectionConfigs_); + } + } + + /** + * + * + *
+     * Optional. Connection configuration for the application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionConfig connection_configs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ConnectionConfig.Builder addConnectionConfigsBuilder() { + return internalGetConnectionConfigsFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.ConnectionConfig.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Connection configuration for the application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionConfig connection_configs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ConnectionConfig.Builder addConnectionConfigsBuilder( + int index) { + return internalGetConnectionConfigsFieldBuilder() + .addBuilder( + index, com.google.cloud.designcenter.v1.ConnectionConfig.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Connection configuration for the application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionConfig connection_configs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getConnectionConfigsBuilderList() { + return internalGetConnectionConfigsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ConnectionConfig, + com.google.cloud.designcenter.v1.ConnectionConfig.Builder, + com.google.cloud.designcenter.v1.ConnectionConfigOrBuilder> + internalGetConnectionConfigsFieldBuilder() { + if (connectionConfigsBuilder_ == null) { + connectionConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ConnectionConfig, + com.google.cloud.designcenter.v1.ConnectionConfig.Builder, + com.google.cloud.designcenter.v1.ConnectionConfigOrBuilder>( + connectionConfigs_, + ((bitField0_ & 0x00400000) != 0), + getParentForChildren(), + isClean()); + connectionConfigs_ = null; + } + return connectionConfigsBuilder_; + } + + private com.google.cloud.designcenter.v1.ArtifactLocation artifactLocation_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ArtifactLocation, + com.google.cloud.designcenter.v1.ArtifactLocation.Builder, + com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder> + artifactLocationBuilder_; + + /** + * + * + *
+     * Output only. Details of the location where the IaC for this application was
+     * last successfully exported.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the artifactLocation field is set. + */ + public boolean hasArtifactLocation() { + return ((bitField0_ & 0x00800000) != 0); + } + + /** + * + * + *
+     * Output only. Details of the location where the IaC for this application was
+     * last successfully exported.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The artifactLocation. + */ + public com.google.cloud.designcenter.v1.ArtifactLocation getArtifactLocation() { + if (artifactLocationBuilder_ == null) { + return artifactLocation_ == null + ? com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance() + : artifactLocation_; + } else { + return artifactLocationBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Details of the location where the IaC for this application was
+     * last successfully exported.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setArtifactLocation(com.google.cloud.designcenter.v1.ArtifactLocation value) { + if (artifactLocationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + artifactLocation_ = value; + } else { + artifactLocationBuilder_.setMessage(value); + } + bitField0_ |= 0x00800000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Details of the location where the IaC for this application was
+     * last successfully exported.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setArtifactLocation( + com.google.cloud.designcenter.v1.ArtifactLocation.Builder builderForValue) { + if (artifactLocationBuilder_ == null) { + artifactLocation_ = builderForValue.build(); + } else { + artifactLocationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00800000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Details of the location where the IaC for this application was
+     * last successfully exported.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeArtifactLocation(com.google.cloud.designcenter.v1.ArtifactLocation value) { + if (artifactLocationBuilder_ == null) { + if (((bitField0_ & 0x00800000) != 0) + && artifactLocation_ != null + && artifactLocation_ + != com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance()) { + getArtifactLocationBuilder().mergeFrom(value); + } else { + artifactLocation_ = value; + } + } else { + artifactLocationBuilder_.mergeFrom(value); + } + if (artifactLocation_ != null) { + bitField0_ |= 0x00800000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Details of the location where the IaC for this application was
+     * last successfully exported.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearArtifactLocation() { + bitField0_ = (bitField0_ & ~0x00800000); + artifactLocation_ = null; + if (artifactLocationBuilder_ != null) { + artifactLocationBuilder_.dispose(); + artifactLocationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Details of the location where the IaC for this application was
+     * last successfully exported.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ArtifactLocation.Builder getArtifactLocationBuilder() { + bitField0_ |= 0x00800000; + onChanged(); + return internalGetArtifactLocationFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Details of the location where the IaC for this application was
+     * last successfully exported.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder + getArtifactLocationOrBuilder() { + if (artifactLocationBuilder_ != null) { + return artifactLocationBuilder_.getMessageOrBuilder(); + } else { + return artifactLocation_ == null + ? com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance() + : artifactLocation_; + } + } + + /** + * + * + *
+     * Output only. Details of the location where the IaC for this application was
+     * last successfully exported.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ArtifactLocation, + com.google.cloud.designcenter.v1.ArtifactLocation.Builder, + com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder> + internalGetArtifactLocationFieldBuilder() { + if (artifactLocationBuilder_ == null) { + artifactLocationBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ArtifactLocation, + com.google.cloud.designcenter.v1.ArtifactLocation.Builder, + com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder>( + getArtifactLocation(), getParentForChildren(), isClean()); + artifactLocation_ = null; + } + return artifactLocationBuilder_; + } + + private int type_ = 0; + + /** + * + * + *
+     * Optional. The type of the application.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationType type = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
+     * Optional. The type of the application.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationType type = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + type_ = value; + bitField0_ |= 0x01000000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The type of the application.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationType type = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ApplicationType getType() { + com.google.cloud.designcenter.v1.ApplicationType result = + com.google.cloud.designcenter.v1.ApplicationType.forNumber(type_); + return result == null + ? com.google.cloud.designcenter.v1.ApplicationType.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Optional. The type of the application.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationType type = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(com.google.cloud.designcenter.v1.ApplicationType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x01000000; + type_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The type of the application.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationType type = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x01000000); + type_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.designcenter.v1.DeploymentTarget deploymentTarget_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.DeploymentTarget, + com.google.cloud.designcenter.v1.DeploymentTarget.Builder, + com.google.cloud.designcenter.v1.DeploymentTargetOrBuilder> + deploymentTargetBuilder_; + + /** + * + * + *
+     * Optional. The deployment target of the application.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentTarget deployment_target = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the deploymentTarget field is set. + */ + public boolean hasDeploymentTarget() { + return ((bitField0_ & 0x02000000) != 0); + } + + /** + * + * + *
+     * Optional. The deployment target of the application.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentTarget deployment_target = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The deploymentTarget. + */ + public com.google.cloud.designcenter.v1.DeploymentTarget getDeploymentTarget() { + if (deploymentTargetBuilder_ == null) { + return deploymentTarget_ == null + ? com.google.cloud.designcenter.v1.DeploymentTarget.getDefaultInstance() + : deploymentTarget_; + } else { + return deploymentTargetBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The deployment target of the application.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentTarget deployment_target = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDeploymentTarget(com.google.cloud.designcenter.v1.DeploymentTarget value) { + if (deploymentTargetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deploymentTarget_ = value; + } else { + deploymentTargetBuilder_.setMessage(value); + } + bitField0_ |= 0x02000000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The deployment target of the application.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentTarget deployment_target = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDeploymentTarget( + com.google.cloud.designcenter.v1.DeploymentTarget.Builder builderForValue) { + if (deploymentTargetBuilder_ == null) { + deploymentTarget_ = builderForValue.build(); + } else { + deploymentTargetBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x02000000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The deployment target of the application.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentTarget deployment_target = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeDeploymentTarget(com.google.cloud.designcenter.v1.DeploymentTarget value) { + if (deploymentTargetBuilder_ == null) { + if (((bitField0_ & 0x02000000) != 0) + && deploymentTarget_ != null + && deploymentTarget_ + != com.google.cloud.designcenter.v1.DeploymentTarget.getDefaultInstance()) { + getDeploymentTargetBuilder().mergeFrom(value); + } else { + deploymentTarget_ = value; + } + } else { + deploymentTargetBuilder_.mergeFrom(value); + } + if (deploymentTarget_ != null) { + bitField0_ |= 0x02000000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The deployment target of the application.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentTarget deployment_target = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDeploymentTarget() { + bitField0_ = (bitField0_ & ~0x02000000); + deploymentTarget_ = null; + if (deploymentTargetBuilder_ != null) { + deploymentTargetBuilder_.dispose(); + deploymentTargetBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The deployment target of the application.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentTarget deployment_target = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.DeploymentTarget.Builder getDeploymentTargetBuilder() { + bitField0_ |= 0x02000000; + onChanged(); + return internalGetDeploymentTargetFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The deployment target of the application.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentTarget deployment_target = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.DeploymentTargetOrBuilder + getDeploymentTargetOrBuilder() { + if (deploymentTargetBuilder_ != null) { + return deploymentTargetBuilder_.getMessageOrBuilder(); + } else { + return deploymentTarget_ == null + ? com.google.cloud.designcenter.v1.DeploymentTarget.getDefaultInstance() + : deploymentTarget_; + } + } + + /** + * + * + *
+     * Optional. The deployment target of the application.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentTarget deployment_target = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.DeploymentTarget, + com.google.cloud.designcenter.v1.DeploymentTarget.Builder, + com.google.cloud.designcenter.v1.DeploymentTargetOrBuilder> + internalGetDeploymentTargetFieldBuilder() { + if (deploymentTargetBuilder_ == null) { + deploymentTargetBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.DeploymentTarget, + com.google.cloud.designcenter.v1.DeploymentTarget.Builder, + com.google.cloud.designcenter.v1.DeploymentTargetOrBuilder>( + getDeploymentTarget(), getParentForChildren(), isClean()); + deploymentTarget_ = null; + } + return deploymentTargetBuilder_; + } + + private int compositionType_ = 0; + + /** + * + * + *
+     * Output only. The composition type of the application: STANDARD OR
+     * COMPOSITE.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationCompositionType composition_type = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for compositionType. + */ + @java.lang.Override + public int getCompositionTypeValue() { + return compositionType_; + } + + /** + * + * + *
+     * Output only. The composition type of the application: STANDARD OR
+     * COMPOSITE.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationCompositionType composition_type = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for compositionType to set. + * @return This builder for chaining. + */ + public Builder setCompositionTypeValue(int value) { + compositionType_ = value; + bitField0_ |= 0x04000000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The composition type of the application: STANDARD OR
+     * COMPOSITE.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationCompositionType composition_type = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The compositionType. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ApplicationCompositionType getCompositionType() { + com.google.cloud.designcenter.v1.ApplicationCompositionType result = + com.google.cloud.designcenter.v1.ApplicationCompositionType.forNumber(compositionType_); + return result == null + ? com.google.cloud.designcenter.v1.ApplicationCompositionType.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Output only. The composition type of the application: STANDARD OR
+     * COMPOSITE.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationCompositionType composition_type = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The compositionType to set. + * @return This builder for chaining. + */ + public Builder setCompositionType( + com.google.cloud.designcenter.v1.ApplicationCompositionType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x04000000; + compositionType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The composition type of the application: STANDARD OR
+     * COMPOSITE.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationCompositionType composition_type = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearCompositionType() { + bitField0_ = (bitField0_ & ~0x04000000); + compositionType_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.designcenter.v1.CompositeApplicationParameters + compositeApplicationParameters_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.CompositeApplicationParameters, + com.google.cloud.designcenter.v1.CompositeApplicationParameters.Builder, + com.google.cloud.designcenter.v1.CompositeApplicationParametersOrBuilder> + compositeApplicationParametersBuilder_; + + /** + * + * + *
+     * Optional. Parameters that are required for composite applications.
+     * 
+ * + * + * .google.cloud.designcenter.v1.CompositeApplicationParameters composite_application_parameters = 33 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the compositeApplicationParameters field is set. + */ + public boolean hasCompositeApplicationParameters() { + return ((bitField0_ & 0x08000000) != 0); + } + + /** + * + * + *
+     * Optional. Parameters that are required for composite applications.
+     * 
+ * + * + * .google.cloud.designcenter.v1.CompositeApplicationParameters composite_application_parameters = 33 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The compositeApplicationParameters. + */ + public com.google.cloud.designcenter.v1.CompositeApplicationParameters + getCompositeApplicationParameters() { + if (compositeApplicationParametersBuilder_ == null) { + return compositeApplicationParameters_ == null + ? com.google.cloud.designcenter.v1.CompositeApplicationParameters.getDefaultInstance() + : compositeApplicationParameters_; + } else { + return compositeApplicationParametersBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Parameters that are required for composite applications.
+     * 
+ * + * + * .google.cloud.designcenter.v1.CompositeApplicationParameters composite_application_parameters = 33 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCompositeApplicationParameters( + com.google.cloud.designcenter.v1.CompositeApplicationParameters value) { + if (compositeApplicationParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + compositeApplicationParameters_ = value; + } else { + compositeApplicationParametersBuilder_.setMessage(value); + } + bitField0_ |= 0x08000000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Parameters that are required for composite applications.
+     * 
+ * + * + * .google.cloud.designcenter.v1.CompositeApplicationParameters composite_application_parameters = 33 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCompositeApplicationParameters( + com.google.cloud.designcenter.v1.CompositeApplicationParameters.Builder builderForValue) { + if (compositeApplicationParametersBuilder_ == null) { + compositeApplicationParameters_ = builderForValue.build(); + } else { + compositeApplicationParametersBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x08000000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Parameters that are required for composite applications.
+     * 
+ * + * + * .google.cloud.designcenter.v1.CompositeApplicationParameters composite_application_parameters = 33 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeCompositeApplicationParameters( + com.google.cloud.designcenter.v1.CompositeApplicationParameters value) { + if (compositeApplicationParametersBuilder_ == null) { + if (((bitField0_ & 0x08000000) != 0) + && compositeApplicationParameters_ != null + && compositeApplicationParameters_ + != com.google.cloud.designcenter.v1.CompositeApplicationParameters + .getDefaultInstance()) { + getCompositeApplicationParametersBuilder().mergeFrom(value); + } else { + compositeApplicationParameters_ = value; + } + } else { + compositeApplicationParametersBuilder_.mergeFrom(value); + } + if (compositeApplicationParameters_ != null) { + bitField0_ |= 0x08000000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Parameters that are required for composite applications.
+     * 
+ * + * + * .google.cloud.designcenter.v1.CompositeApplicationParameters composite_application_parameters = 33 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCompositeApplicationParameters() { + bitField0_ = (bitField0_ & ~0x08000000); + compositeApplicationParameters_ = null; + if (compositeApplicationParametersBuilder_ != null) { + compositeApplicationParametersBuilder_.dispose(); + compositeApplicationParametersBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Parameters that are required for composite applications.
+     * 
+ * + * + * .google.cloud.designcenter.v1.CompositeApplicationParameters composite_application_parameters = 33 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.CompositeApplicationParameters.Builder + getCompositeApplicationParametersBuilder() { + bitField0_ |= 0x08000000; + onChanged(); + return internalGetCompositeApplicationParametersFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Parameters that are required for composite applications.
+     * 
+ * + * + * .google.cloud.designcenter.v1.CompositeApplicationParameters composite_application_parameters = 33 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.CompositeApplicationParametersOrBuilder + getCompositeApplicationParametersOrBuilder() { + if (compositeApplicationParametersBuilder_ != null) { + return compositeApplicationParametersBuilder_.getMessageOrBuilder(); + } else { + return compositeApplicationParameters_ == null + ? com.google.cloud.designcenter.v1.CompositeApplicationParameters.getDefaultInstance() + : compositeApplicationParameters_; + } + } + + /** + * + * + *
+     * Optional. Parameters that are required for composite applications.
+     * 
+ * + * + * .google.cloud.designcenter.v1.CompositeApplicationParameters composite_application_parameters = 33 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.CompositeApplicationParameters, + com.google.cloud.designcenter.v1.CompositeApplicationParameters.Builder, + com.google.cloud.designcenter.v1.CompositeApplicationParametersOrBuilder> + internalGetCompositeApplicationParametersFieldBuilder() { + if (compositeApplicationParametersBuilder_ == null) { + compositeApplicationParametersBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.CompositeApplicationParameters, + com.google.cloud.designcenter.v1.CompositeApplicationParameters.Builder, + com.google.cloud.designcenter.v1.CompositeApplicationParametersOrBuilder>( + getCompositeApplicationParameters(), getParentForChildren(), isClean()); + compositeApplicationParameters_ = null; + } + return compositeApplicationParametersBuilder_; + } + + private com.google.cloud.designcenter.v1.DeploymentGroupMetadata deploymentGroupMetadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.DeploymentGroupMetadata, + com.google.cloud.designcenter.v1.DeploymentGroupMetadata.Builder, + com.google.cloud.designcenter.v1.DeploymentGroupMetadataOrBuilder> + deploymentGroupMetadataBuilder_; + + /** + * + * + *
+     * Output only. The deployment group metadata of the application. This is
+     * applicable only for composite applications.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentGroupMetadata deployment_group_metadata = 34 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the deploymentGroupMetadata field is set. + */ + public boolean hasDeploymentGroupMetadata() { + return ((bitField0_ & 0x10000000) != 0); + } + + /** + * + * + *
+     * Output only. The deployment group metadata of the application. This is
+     * applicable only for composite applications.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentGroupMetadata deployment_group_metadata = 34 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deploymentGroupMetadata. + */ + public com.google.cloud.designcenter.v1.DeploymentGroupMetadata getDeploymentGroupMetadata() { + if (deploymentGroupMetadataBuilder_ == null) { + return deploymentGroupMetadata_ == null + ? com.google.cloud.designcenter.v1.DeploymentGroupMetadata.getDefaultInstance() + : deploymentGroupMetadata_; + } else { + return deploymentGroupMetadataBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. The deployment group metadata of the application. This is
+     * applicable only for composite applications.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentGroupMetadata deployment_group_metadata = 34 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDeploymentGroupMetadata( + com.google.cloud.designcenter.v1.DeploymentGroupMetadata value) { + if (deploymentGroupMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deploymentGroupMetadata_ = value; + } else { + deploymentGroupMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x10000000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The deployment group metadata of the application. This is
+     * applicable only for composite applications.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentGroupMetadata deployment_group_metadata = 34 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDeploymentGroupMetadata( + com.google.cloud.designcenter.v1.DeploymentGroupMetadata.Builder builderForValue) { + if (deploymentGroupMetadataBuilder_ == null) { + deploymentGroupMetadata_ = builderForValue.build(); + } else { + deploymentGroupMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x10000000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The deployment group metadata of the application. This is
+     * applicable only for composite applications.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentGroupMetadata deployment_group_metadata = 34 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeDeploymentGroupMetadata( + com.google.cloud.designcenter.v1.DeploymentGroupMetadata value) { + if (deploymentGroupMetadataBuilder_ == null) { + if (((bitField0_ & 0x10000000) != 0) + && deploymentGroupMetadata_ != null + && deploymentGroupMetadata_ + != com.google.cloud.designcenter.v1.DeploymentGroupMetadata.getDefaultInstance()) { + getDeploymentGroupMetadataBuilder().mergeFrom(value); + } else { + deploymentGroupMetadata_ = value; + } + } else { + deploymentGroupMetadataBuilder_.mergeFrom(value); + } + if (deploymentGroupMetadata_ != null) { + bitField0_ |= 0x10000000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The deployment group metadata of the application. This is
+     * applicable only for composite applications.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentGroupMetadata deployment_group_metadata = 34 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDeploymentGroupMetadata() { + bitField0_ = (bitField0_ & ~0x10000000); + deploymentGroupMetadata_ = null; + if (deploymentGroupMetadataBuilder_ != null) { + deploymentGroupMetadataBuilder_.dispose(); + deploymentGroupMetadataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The deployment group metadata of the application. This is
+     * applicable only for composite applications.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentGroupMetadata deployment_group_metadata = 34 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.DeploymentGroupMetadata.Builder + getDeploymentGroupMetadataBuilder() { + bitField0_ |= 0x10000000; + onChanged(); + return internalGetDeploymentGroupMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The deployment group metadata of the application. This is
+     * applicable only for composite applications.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentGroupMetadata deployment_group_metadata = 34 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.DeploymentGroupMetadataOrBuilder + getDeploymentGroupMetadataOrBuilder() { + if (deploymentGroupMetadataBuilder_ != null) { + return deploymentGroupMetadataBuilder_.getMessageOrBuilder(); + } else { + return deploymentGroupMetadata_ == null + ? com.google.cloud.designcenter.v1.DeploymentGroupMetadata.getDefaultInstance() + : deploymentGroupMetadata_; + } + } + + /** + * + * + *
+     * Output only. The deployment group metadata of the application. This is
+     * applicable only for composite applications.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentGroupMetadata deployment_group_metadata = 34 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.DeploymentGroupMetadata, + com.google.cloud.designcenter.v1.DeploymentGroupMetadata.Builder, + com.google.cloud.designcenter.v1.DeploymentGroupMetadataOrBuilder> + internalGetDeploymentGroupMetadataFieldBuilder() { + if (deploymentGroupMetadataBuilder_ == null) { + deploymentGroupMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.DeploymentGroupMetadata, + com.google.cloud.designcenter.v1.DeploymentGroupMetadata.Builder, + com.google.cloud.designcenter.v1.DeploymentGroupMetadataOrBuilder>( + getDeploymentGroupMetadata(), getParentForChildren(), isClean()); + deploymentGroupMetadata_ = null; + } + return deploymentGroupMetadataBuilder_; + } + + private int paramsUpdateStrategy_ = 0; + + /** + * + * + *
+     * Optional. Specifies the strategy to use when updating the application
+     * parameters while updating the application template revision.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Application.UpdateStrategy params_update_strategy = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for paramsUpdateStrategy. + */ + @java.lang.Override + public int getParamsUpdateStrategyValue() { + return paramsUpdateStrategy_; + } + + /** + * + * + *
+     * Optional. Specifies the strategy to use when updating the application
+     * parameters while updating the application template revision.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Application.UpdateStrategy params_update_strategy = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for paramsUpdateStrategy to set. + * @return This builder for chaining. + */ + public Builder setParamsUpdateStrategyValue(int value) { + paramsUpdateStrategy_ = value; + bitField0_ |= 0x20000000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Specifies the strategy to use when updating the application
+     * parameters while updating the application template revision.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Application.UpdateStrategy params_update_strategy = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The paramsUpdateStrategy. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.Application.UpdateStrategy getParamsUpdateStrategy() { + com.google.cloud.designcenter.v1.Application.UpdateStrategy result = + com.google.cloud.designcenter.v1.Application.UpdateStrategy.forNumber( + paramsUpdateStrategy_); + return result == null + ? com.google.cloud.designcenter.v1.Application.UpdateStrategy.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Optional. Specifies the strategy to use when updating the application
+     * parameters while updating the application template revision.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Application.UpdateStrategy params_update_strategy = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The paramsUpdateStrategy to set. + * @return This builder for chaining. + */ + public Builder setParamsUpdateStrategy( + com.google.cloud.designcenter.v1.Application.UpdateStrategy value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x20000000; + paramsUpdateStrategy_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Specifies the strategy to use when updating the application
+     * parameters while updating the application template revision.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Application.UpdateStrategy params_update_strategy = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearParamsUpdateStrategy() { + bitField0_ = (bitField0_ & ~0x20000000); + paramsUpdateStrategy_ = 0; + onChanged(); + return this; + } + + private java.util.List rolesApisConfig_ = + java.util.Collections.emptyList(); + + private void ensureRolesApisConfigIsMutable() { + if (!((bitField0_ & 0x40000000) != 0)) { + rolesApisConfig_ = + new java.util.ArrayList( + rolesApisConfig_); + bitField0_ |= 0x40000000; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.RolesAndApisConfig, + com.google.cloud.designcenter.v1.RolesAndApisConfig.Builder, + com.google.cloud.designcenter.v1.RolesAndApisConfigOrBuilder> + rolesApisConfigBuilder_; + + /** + * + * + *
+     * Optional. Project-specific configurations required for application
+     * deployment, including IAM roles and APIs. The list can contain up to 100
+     * items.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.RolesAndApisConfig roles_apis_config = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getRolesApisConfigList() { + if (rolesApisConfigBuilder_ == null) { + return java.util.Collections.unmodifiableList(rolesApisConfig_); + } else { + return rolesApisConfigBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. Project-specific configurations required for application
+     * deployment, including IAM roles and APIs. The list can contain up to 100
+     * items.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.RolesAndApisConfig roles_apis_config = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getRolesApisConfigCount() { + if (rolesApisConfigBuilder_ == null) { + return rolesApisConfig_.size(); + } else { + return rolesApisConfigBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. Project-specific configurations required for application
+     * deployment, including IAM roles and APIs. The list can contain up to 100
+     * items.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.RolesAndApisConfig roles_apis_config = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.RolesAndApisConfig getRolesApisConfig(int index) { + if (rolesApisConfigBuilder_ == null) { + return rolesApisConfig_.get(index); + } else { + return rolesApisConfigBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. Project-specific configurations required for application
+     * deployment, including IAM roles and APIs. The list can contain up to 100
+     * items.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.RolesAndApisConfig roles_apis_config = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRolesApisConfig( + int index, com.google.cloud.designcenter.v1.RolesAndApisConfig value) { + if (rolesApisConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRolesApisConfigIsMutable(); + rolesApisConfig_.set(index, value); + onChanged(); + } else { + rolesApisConfigBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Project-specific configurations required for application
+     * deployment, including IAM roles and APIs. The list can contain up to 100
+     * items.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.RolesAndApisConfig roles_apis_config = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRolesApisConfig( + int index, com.google.cloud.designcenter.v1.RolesAndApisConfig.Builder builderForValue) { + if (rolesApisConfigBuilder_ == null) { + ensureRolesApisConfigIsMutable(); + rolesApisConfig_.set(index, builderForValue.build()); + onChanged(); + } else { + rolesApisConfigBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Project-specific configurations required for application
+     * deployment, including IAM roles and APIs. The list can contain up to 100
+     * items.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.RolesAndApisConfig roles_apis_config = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addRolesApisConfig(com.google.cloud.designcenter.v1.RolesAndApisConfig value) { + if (rolesApisConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRolesApisConfigIsMutable(); + rolesApisConfig_.add(value); + onChanged(); + } else { + rolesApisConfigBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. Project-specific configurations required for application
+     * deployment, including IAM roles and APIs. The list can contain up to 100
+     * items.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.RolesAndApisConfig roles_apis_config = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addRolesApisConfig( + int index, com.google.cloud.designcenter.v1.RolesAndApisConfig value) { + if (rolesApisConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRolesApisConfigIsMutable(); + rolesApisConfig_.add(index, value); + onChanged(); + } else { + rolesApisConfigBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Project-specific configurations required for application
+     * deployment, including IAM roles and APIs. The list can contain up to 100
+     * items.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.RolesAndApisConfig roles_apis_config = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addRolesApisConfig( + com.google.cloud.designcenter.v1.RolesAndApisConfig.Builder builderForValue) { + if (rolesApisConfigBuilder_ == null) { + ensureRolesApisConfigIsMutable(); + rolesApisConfig_.add(builderForValue.build()); + onChanged(); + } else { + rolesApisConfigBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Project-specific configurations required for application
+     * deployment, including IAM roles and APIs. The list can contain up to 100
+     * items.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.RolesAndApisConfig roles_apis_config = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addRolesApisConfig( + int index, com.google.cloud.designcenter.v1.RolesAndApisConfig.Builder builderForValue) { + if (rolesApisConfigBuilder_ == null) { + ensureRolesApisConfigIsMutable(); + rolesApisConfig_.add(index, builderForValue.build()); + onChanged(); + } else { + rolesApisConfigBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Project-specific configurations required for application
+     * deployment, including IAM roles and APIs. The list can contain up to 100
+     * items.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.RolesAndApisConfig roles_apis_config = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllRolesApisConfig( + java.lang.Iterable values) { + if (rolesApisConfigBuilder_ == null) { + ensureRolesApisConfigIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rolesApisConfig_); + onChanged(); + } else { + rolesApisConfigBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. Project-specific configurations required for application
+     * deployment, including IAM roles and APIs. The list can contain up to 100
+     * items.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.RolesAndApisConfig roles_apis_config = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearRolesApisConfig() { + if (rolesApisConfigBuilder_ == null) { + rolesApisConfig_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x40000000); + onChanged(); + } else { + rolesApisConfigBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Project-specific configurations required for application
+     * deployment, including IAM roles and APIs. The list can contain up to 100
+     * items.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.RolesAndApisConfig roles_apis_config = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeRolesApisConfig(int index) { + if (rolesApisConfigBuilder_ == null) { + ensureRolesApisConfigIsMutable(); + rolesApisConfig_.remove(index); + onChanged(); + } else { + rolesApisConfigBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. Project-specific configurations required for application
+     * deployment, including IAM roles and APIs. The list can contain up to 100
+     * items.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.RolesAndApisConfig roles_apis_config = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.RolesAndApisConfig.Builder getRolesApisConfigBuilder( + int index) { + return internalGetRolesApisConfigFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. Project-specific configurations required for application
+     * deployment, including IAM roles and APIs. The list can contain up to 100
+     * items.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.RolesAndApisConfig roles_apis_config = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.RolesAndApisConfigOrBuilder getRolesApisConfigOrBuilder( + int index) { + if (rolesApisConfigBuilder_ == null) { + return rolesApisConfig_.get(index); + } else { + return rolesApisConfigBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. Project-specific configurations required for application
+     * deployment, including IAM roles and APIs. The list can contain up to 100
+     * items.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.RolesAndApisConfig roles_apis_config = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getRolesApisConfigOrBuilderList() { + if (rolesApisConfigBuilder_ != null) { + return rolesApisConfigBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(rolesApisConfig_); + } + } + + /** + * + * + *
+     * Optional. Project-specific configurations required for application
+     * deployment, including IAM roles and APIs. The list can contain up to 100
+     * items.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.RolesAndApisConfig roles_apis_config = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.RolesAndApisConfig.Builder addRolesApisConfigBuilder() { + return internalGetRolesApisConfigFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.RolesAndApisConfig.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Project-specific configurations required for application
+     * deployment, including IAM roles and APIs. The list can contain up to 100
+     * items.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.RolesAndApisConfig roles_apis_config = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.RolesAndApisConfig.Builder addRolesApisConfigBuilder( + int index) { + return internalGetRolesApisConfigFieldBuilder() + .addBuilder( + index, com.google.cloud.designcenter.v1.RolesAndApisConfig.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Project-specific configurations required for application
+     * deployment, including IAM roles and APIs. The list can contain up to 100
+     * items.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.RolesAndApisConfig roles_apis_config = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getRolesApisConfigBuilderList() { + return internalGetRolesApisConfigFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.RolesAndApisConfig, + com.google.cloud.designcenter.v1.RolesAndApisConfig.Builder, + com.google.cloud.designcenter.v1.RolesAndApisConfigOrBuilder> + internalGetRolesApisConfigFieldBuilder() { + if (rolesApisConfigBuilder_ == null) { + rolesApisConfigBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.RolesAndApisConfig, + com.google.cloud.designcenter.v1.RolesAndApisConfig.Builder, + com.google.cloud.designcenter.v1.RolesAndApisConfigOrBuilder>( + rolesApisConfig_, + ((bitField0_ & 0x40000000) != 0), + getParentForChildren(), + isClean()); + rolesApisConfig_ = null; + } + return rolesApisConfigBuilder_; + } + + private com.google.cloud.designcenter.v1.TFBlueprintMetadata templateMetadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.TFBlueprintMetadata, + com.google.cloud.designcenter.v1.TFBlueprintMetadata.Builder, + com.google.cloud.designcenter.v1.TFBlueprintMetadataOrBuilder> + templateMetadataBuilder_; + + /** + * + * + *
+     * Output only. The input output variables parsed from the imported terraform
+     * code.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata template_metadata = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the templateMetadata field is set. + */ + public boolean hasTemplateMetadata() { + return ((bitField0_ & 0x80000000) != 0); + } + + /** + * + * + *
+     * Output only. The input output variables parsed from the imported terraform
+     * code.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata template_metadata = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The templateMetadata. + */ + public com.google.cloud.designcenter.v1.TFBlueprintMetadata getTemplateMetadata() { + if (templateMetadataBuilder_ == null) { + return templateMetadata_ == null + ? com.google.cloud.designcenter.v1.TFBlueprintMetadata.getDefaultInstance() + : templateMetadata_; + } else { + return templateMetadataBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. The input output variables parsed from the imported terraform
+     * code.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata template_metadata = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTemplateMetadata(com.google.cloud.designcenter.v1.TFBlueprintMetadata value) { + if (templateMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + templateMetadata_ = value; + } else { + templateMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x80000000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The input output variables parsed from the imported terraform
+     * code.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata template_metadata = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTemplateMetadata( + com.google.cloud.designcenter.v1.TFBlueprintMetadata.Builder builderForValue) { + if (templateMetadataBuilder_ == null) { + templateMetadata_ = builderForValue.build(); + } else { + templateMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x80000000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The input output variables parsed from the imported terraform
+     * code.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata template_metadata = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeTemplateMetadata( + com.google.cloud.designcenter.v1.TFBlueprintMetadata value) { + if (templateMetadataBuilder_ == null) { + if (((bitField0_ & 0x80000000) != 0) + && templateMetadata_ != null + && templateMetadata_ + != com.google.cloud.designcenter.v1.TFBlueprintMetadata.getDefaultInstance()) { + getTemplateMetadataBuilder().mergeFrom(value); + } else { + templateMetadata_ = value; + } + } else { + templateMetadataBuilder_.mergeFrom(value); + } + if (templateMetadata_ != null) { + bitField0_ |= 0x80000000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The input output variables parsed from the imported terraform
+     * code.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata template_metadata = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearTemplateMetadata() { + bitField0_ = (bitField0_ & ~0x80000000); + templateMetadata_ = null; + if (templateMetadataBuilder_ != null) { + templateMetadataBuilder_.dispose(); + templateMetadataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The input output variables parsed from the imported terraform
+     * code.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata template_metadata = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.TFBlueprintMetadata.Builder + getTemplateMetadataBuilder() { + bitField0_ |= 0x80000000; + onChanged(); + return internalGetTemplateMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The input output variables parsed from the imported terraform
+     * code.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata template_metadata = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.TFBlueprintMetadataOrBuilder + getTemplateMetadataOrBuilder() { + if (templateMetadataBuilder_ != null) { + return templateMetadataBuilder_.getMessageOrBuilder(); + } else { + return templateMetadata_ == null + ? com.google.cloud.designcenter.v1.TFBlueprintMetadata.getDefaultInstance() + : templateMetadata_; + } + } + + /** + * + * + *
+     * Output only. The input output variables parsed from the imported terraform
+     * code.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata template_metadata = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.TFBlueprintMetadata, + com.google.cloud.designcenter.v1.TFBlueprintMetadata.Builder, + com.google.cloud.designcenter.v1.TFBlueprintMetadataOrBuilder> + internalGetTemplateMetadataFieldBuilder() { + if (templateMetadataBuilder_ == null) { + templateMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.TFBlueprintMetadata, + com.google.cloud.designcenter.v1.TFBlueprintMetadata.Builder, + com.google.cloud.designcenter.v1.TFBlueprintMetadataOrBuilder>( + getTemplateMetadata(), getParentForChildren(), isClean()); + templateMetadata_ = null; + } + return templateMetadataBuilder_; + } + + private int iacSource_ = 0; + + /** + * + * + *
+     * Output only. Indicates the IaC source format of this application.
+     * 
+ * + * + * .google.cloud.designcenter.v1.IACSource iac_source = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for iacSource. + */ + @java.lang.Override + public int getIacSourceValue() { + return iacSource_; + } + + /** + * + * + *
+     * Output only. Indicates the IaC source format of this application.
+     * 
+ * + * + * .google.cloud.designcenter.v1.IACSource iac_source = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for iacSource to set. + * @return This builder for chaining. + */ + public Builder setIacSourceValue(int value) { + iacSource_ = value; + bitField1_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Indicates the IaC source format of this application.
+     * 
+ * + * + * .google.cloud.designcenter.v1.IACSource iac_source = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The iacSource. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.IACSource getIacSource() { + com.google.cloud.designcenter.v1.IACSource result = + com.google.cloud.designcenter.v1.IACSource.forNumber(iacSource_); + return result == null ? com.google.cloud.designcenter.v1.IACSource.UNRECOGNIZED : result; + } + + /** + * + * + *
+     * Output only. Indicates the IaC source format of this application.
+     * 
+ * + * + * .google.cloud.designcenter.v1.IACSource iac_source = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The iacSource to set. + * @return This builder for chaining. + */ + public Builder setIacSource(com.google.cloud.designcenter.v1.IACSource value) { + if (value == null) { + throw new NullPointerException(); + } + bitField1_ |= 0x00000001; + iacSource_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Indicates the IaC source format of this application.
+     * 
+ * + * + * .google.cloud.designcenter.v1.IACSource iac_source = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearIacSource() { + bitField1_ = (bitField1_ & ~0x00000001); + iacSource_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.Application) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.Application) + private static final com.google.cloud.designcenter.v1.Application DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.Application(); + } + + public static com.google.cloud.designcenter.v1.Application getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Application parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.Application getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplicationCompositionType.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplicationCompositionType.java new file mode 100644 index 000000000000..2c19a1a98996 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplicationCompositionType.java @@ -0,0 +1,203 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/enums.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * The composition type of the applicationTemplate or application: STANDARD OR
+ * COMPOSITE.
+ * 
+ * + * Protobuf enum {@code google.cloud.designcenter.v1.ApplicationCompositionType} + */ +@com.google.protobuf.Generated +public enum ApplicationCompositionType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * ApplicationCompositionType is UNSPECIFIED.
+   * 
+ * + * APPLICATION_COMPOSITION_TYPE_UNSPECIFIED = 0; + */ + APPLICATION_COMPOSITION_TYPE_UNSPECIFIED(0), + /** + * + * + *
+   * ApplicationCompositionType is STANDARD. The applicationTemplate or
+   * application is composed of components only of type service/workload/asset
+   * and has a single root module in terraform code.
+   * 
+ * + * STANDARD = 1; + */ + STANDARD(1), + /** + * + * + *
+   * ApplicationCompositionType is COMPOSITE. The template is composed of
+   * STANDARD applicationTemplate(s) and might be having multiple root modules
+   * in terraform code.
+   * 
+ * + * COMPOSITE = 2; + */ + COMPOSITE(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ApplicationCompositionType"); + } + + /** + * + * + *
+   * ApplicationCompositionType is UNSPECIFIED.
+   * 
+ * + * APPLICATION_COMPOSITION_TYPE_UNSPECIFIED = 0; + */ + public static final int APPLICATION_COMPOSITION_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+   * ApplicationCompositionType is STANDARD. The applicationTemplate or
+   * application is composed of components only of type service/workload/asset
+   * and has a single root module in terraform code.
+   * 
+ * + * STANDARD = 1; + */ + public static final int STANDARD_VALUE = 1; + + /** + * + * + *
+   * ApplicationCompositionType is COMPOSITE. The template is composed of
+   * STANDARD applicationTemplate(s) and might be having multiple root modules
+   * in terraform code.
+   * 
+ * + * COMPOSITE = 2; + */ + public static final int COMPOSITE_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 ApplicationCompositionType 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 ApplicationCompositionType forNumber(int value) { + switch (value) { + case 0: + return APPLICATION_COMPOSITION_TYPE_UNSPECIFIED; + case 1: + return STANDARD; + case 2: + return COMPOSITE; + 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 ApplicationCompositionType findValueByNumber(int number) { + return ApplicationCompositionType.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.designcenter.v1.EnumsProto.getDescriptor().getEnumTypes().get(3); + } + + private static final ApplicationCompositionType[] VALUES = values(); + + public static ApplicationCompositionType 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 ApplicationCompositionType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.designcenter.v1.ApplicationCompositionType) +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplicationName.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplicationName.java new file mode 100644 index 000000000000..1c0de278c366 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplicationName.java @@ -0,0 +1,263 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.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; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked +@Generated("by gapic-generator-java") +public class ApplicationName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_SPACE_APPLICATION = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/spaces/{space}/applications/{application}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String space; + private final String application; + + @Deprecated + protected ApplicationName() { + project = null; + location = null; + space = null; + application = null; + } + + private ApplicationName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + space = Preconditions.checkNotNull(builder.getSpace()); + application = Preconditions.checkNotNull(builder.getApplication()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getSpace() { + return space; + } + + public String getApplication() { + return application; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ApplicationName of( + String project, String location, String space, String application) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setSpace(space) + .setApplication(application) + .build(); + } + + public static String format(String project, String location, String space, String application) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setSpace(space) + .setApplication(application) + .build() + .toString(); + } + + public static @Nullable ApplicationName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_SPACE_APPLICATION.validatedMatch( + formattedString, "ApplicationName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("space"), + matchMap.get("application")); + } + + 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<@Nullable ApplicationName> values) { + List list = new ArrayList<>(values.size()); + for (ApplicationName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_SPACE_APPLICATION.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 (space != null) { + fieldMapBuilder.put("space", space); + } + if (application != null) { + fieldMapBuilder.put("application", application); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_SPACE_APPLICATION.instantiate( + "project", project, "location", location, "space", space, "application", application); + } + + @Override + public boolean equals(@Nullable Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + ApplicationName that = ((ApplicationName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.space, that.space) + && Objects.equals(this.application, that.application); + } + 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(space); + h *= 1000003; + h ^= Objects.hashCode(application); + return h; + } + + /** + * Builder for projects/{project}/locations/{location}/spaces/{space}/applications/{application}. + */ + public static class Builder { + private String project; + private String location; + private String space; + private String application; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getSpace() { + return space; + } + + public String getApplication() { + return application; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setSpace(String space) { + this.space = space; + return this; + } + + public Builder setApplication(String application) { + this.application = application; + return this; + } + + private Builder(ApplicationName applicationName) { + this.project = applicationName.project; + this.location = applicationName.location; + this.space = applicationName.space; + this.application = applicationName.application; + } + + public ApplicationName build() { + return new ApplicationName(this); + } + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplicationOperation.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplicationOperation.java new file mode 100644 index 000000000000..433e7d786ea7 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplicationOperation.java @@ -0,0 +1,286 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/enums.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Represents the type of operation to perform on an application.
+ * 
+ * + * Protobuf enum {@code google.cloud.designcenter.v1.ApplicationOperation} + */ +@com.google.protobuf.Generated +public enum ApplicationOperation implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * The default value. This value is unused.
+   * 
+ * + * APPLICATION_OPERATION_UNSPECIFIED = 0; + */ + APPLICATION_OPERATION_UNSPECIFIED(0), + /** + * + * + *
+   * Creates a new application.
+   * 
+ * + * APPLICATION_OPERATION_CREATE = 1; + */ + APPLICATION_OPERATION_CREATE(1), + /** + * + * + *
+   * Updates an existing application.
+   * 
+ * + * APPLICATION_OPERATION_UPDATE = 2; + */ + APPLICATION_OPERATION_UPDATE(2), + /** + * + * + *
+   * Previews a deployment of an application.
+   * 
+ * + * APPLICATION_OPERATION_PREVIEW = 3; + */ + APPLICATION_OPERATION_PREVIEW(3), + /** + * + * + *
+   * Deploys an application.
+   * 
+ * + * APPLICATION_OPERATION_DEPLOY = 4; + */ + APPLICATION_OPERATION_DEPLOY(4), + /** + * + * + *
+   * Gets an application.
+   * 
+ * + * APPLICATION_OPERATION_GET = 5; + */ + APPLICATION_OPERATION_GET(5), + /** + * + * + *
+   * Generates IaC for an application.
+   * 
+ * + * APPLICATION_OPERATION_GENERATE_IAC = 6; + */ + APPLICATION_OPERATION_GENERATE_IAC(6), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ApplicationOperation"); + } + + /** + * + * + *
+   * The default value. This value is unused.
+   * 
+ * + * APPLICATION_OPERATION_UNSPECIFIED = 0; + */ + public static final int APPLICATION_OPERATION_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+   * Creates a new application.
+   * 
+ * + * APPLICATION_OPERATION_CREATE = 1; + */ + public static final int APPLICATION_OPERATION_CREATE_VALUE = 1; + + /** + * + * + *
+   * Updates an existing application.
+   * 
+ * + * APPLICATION_OPERATION_UPDATE = 2; + */ + public static final int APPLICATION_OPERATION_UPDATE_VALUE = 2; + + /** + * + * + *
+   * Previews a deployment of an application.
+   * 
+ * + * APPLICATION_OPERATION_PREVIEW = 3; + */ + public static final int APPLICATION_OPERATION_PREVIEW_VALUE = 3; + + /** + * + * + *
+   * Deploys an application.
+   * 
+ * + * APPLICATION_OPERATION_DEPLOY = 4; + */ + public static final int APPLICATION_OPERATION_DEPLOY_VALUE = 4; + + /** + * + * + *
+   * Gets an application.
+   * 
+ * + * APPLICATION_OPERATION_GET = 5; + */ + public static final int APPLICATION_OPERATION_GET_VALUE = 5; + + /** + * + * + *
+   * Generates IaC for an application.
+   * 
+ * + * APPLICATION_OPERATION_GENERATE_IAC = 6; + */ + public static final int APPLICATION_OPERATION_GENERATE_IAC_VALUE = 6; + + 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 ApplicationOperation 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 ApplicationOperation forNumber(int value) { + switch (value) { + case 0: + return APPLICATION_OPERATION_UNSPECIFIED; + case 1: + return APPLICATION_OPERATION_CREATE; + case 2: + return APPLICATION_OPERATION_UPDATE; + case 3: + return APPLICATION_OPERATION_PREVIEW; + case 4: + return APPLICATION_OPERATION_DEPLOY; + case 5: + return APPLICATION_OPERATION_GET; + case 6: + return APPLICATION_OPERATION_GENERATE_IAC; + 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 ApplicationOperation findValueByNumber(int number) { + return ApplicationOperation.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.designcenter.v1.EnumsProto.getDescriptor().getEnumTypes().get(0); + } + + private static final ApplicationOperation[] VALUES = values(); + + public static ApplicationOperation 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 ApplicationOperation(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.designcenter.v1.ApplicationOperation) +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplicationOperationMetadata.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplicationOperationMetadata.java new file mode 100644 index 000000000000..08a223a00fc4 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplicationOperationMetadata.java @@ -0,0 +1,804 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/designcenter.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Ephemeral metadata depicting the state of the delete operation.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ApplicationOperationMetadata} + */ +@com.google.protobuf.Generated +public final class ApplicationOperationMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ApplicationOperationMetadata) + ApplicationOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ApplicationOperationMetadata"); + } + + // Use ApplicationOperationMetadata.newBuilder() to construct. + private ApplicationOperationMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ApplicationOperationMetadata() { + step_ = ""; + build_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DesigncenterProto + .internal_static_google_cloud_designcenter_v1_ApplicationOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DesigncenterProto + .internal_static_google_cloud_designcenter_v1_ApplicationOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ApplicationOperationMetadata.class, + com.google.cloud.designcenter.v1.ApplicationOperationMetadata.Builder.class); + } + + public static final int STEP_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object step_ = ""; + + /** + * + * + *
+   * Output only. The current step of the delete operation. Associated with
+   * Infrastructure Manager and App Hub.
+   * 
+ * + * string step = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The step. + */ + @java.lang.Override + public java.lang.String getStep() { + java.lang.Object ref = step_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + step_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The current step of the delete operation. Associated with
+   * Infrastructure Manager and App Hub.
+   * 
+ * + * string step = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for step. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStepBytes() { + java.lang.Object ref = step_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + step_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BUILD_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object build_ = ""; + + /** + * + * + *
+   * Output only. Cloud Build instance UUID associated with the delete
+   * operation.
+   * 
+ * + * string build = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The build. + */ + @java.lang.Override + public java.lang.String getBuild() { + java.lang.Object ref = build_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + build_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. Cloud Build instance UUID associated with the delete
+   * operation.
+   * 
+ * + * string build = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for build. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBuildBytes() { + java.lang.Object ref = build_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + build_ = 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.GeneratedMessage.isStringEmpty(step_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, step_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(build_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, build_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(step_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, step_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(build_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, build_); + } + 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.designcenter.v1.ApplicationOperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ApplicationOperationMetadata other = + (com.google.cloud.designcenter.v1.ApplicationOperationMetadata) obj; + + if (!getStep().equals(other.getStep())) return false; + if (!getBuild().equals(other.getBuild())) 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) + STEP_FIELD_NUMBER; + hash = (53 * hash) + getStep().hashCode(); + hash = (37 * hash) + BUILD_FIELD_NUMBER; + hash = (53 * hash) + getBuild().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.ApplicationOperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ApplicationOperationMetadata 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.designcenter.v1.ApplicationOperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ApplicationOperationMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ApplicationOperationMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ApplicationOperationMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ApplicationOperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ApplicationOperationMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ApplicationOperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ApplicationOperationMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ApplicationOperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ApplicationOperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ApplicationOperationMetadata 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Ephemeral metadata depicting the state of the delete operation.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ApplicationOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ApplicationOperationMetadata) + com.google.cloud.designcenter.v1.ApplicationOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DesigncenterProto + .internal_static_google_cloud_designcenter_v1_ApplicationOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DesigncenterProto + .internal_static_google_cloud_designcenter_v1_ApplicationOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ApplicationOperationMetadata.class, + com.google.cloud.designcenter.v1.ApplicationOperationMetadata.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.ApplicationOperationMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + step_ = ""; + build_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.DesigncenterProto + .internal_static_google_cloud_designcenter_v1_ApplicationOperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ApplicationOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ApplicationOperationMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ApplicationOperationMetadata build() { + com.google.cloud.designcenter.v1.ApplicationOperationMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ApplicationOperationMetadata buildPartial() { + com.google.cloud.designcenter.v1.ApplicationOperationMetadata result = + new com.google.cloud.designcenter.v1.ApplicationOperationMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.ApplicationOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.step_ = step_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.build_ = build_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.ApplicationOperationMetadata) { + return mergeFrom((com.google.cloud.designcenter.v1.ApplicationOperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.ApplicationOperationMetadata other) { + if (other + == com.google.cloud.designcenter.v1.ApplicationOperationMetadata.getDefaultInstance()) + return this; + if (!other.getStep().isEmpty()) { + step_ = other.step_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getBuild().isEmpty()) { + build_ = other.build_; + 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: + { + step_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + build_ = 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 step_ = ""; + + /** + * + * + *
+     * Output only. The current step of the delete operation. Associated with
+     * Infrastructure Manager and App Hub.
+     * 
+ * + * string step = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The step. + */ + public java.lang.String getStep() { + java.lang.Object ref = step_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + step_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The current step of the delete operation. Associated with
+     * Infrastructure Manager and App Hub.
+     * 
+ * + * string step = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for step. + */ + public com.google.protobuf.ByteString getStepBytes() { + java.lang.Object ref = step_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + step_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The current step of the delete operation. Associated with
+     * Infrastructure Manager and App Hub.
+     * 
+ * + * string step = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The step to set. + * @return This builder for chaining. + */ + public Builder setStep(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + step_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The current step of the delete operation. Associated with
+     * Infrastructure Manager and App Hub.
+     * 
+ * + * string step = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearStep() { + step_ = getDefaultInstance().getStep(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The current step of the delete operation. Associated with
+     * Infrastructure Manager and App Hub.
+     * 
+ * + * string step = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for step to set. + * @return This builder for chaining. + */ + public Builder setStepBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + step_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object build_ = ""; + + /** + * + * + *
+     * Output only. Cloud Build instance UUID associated with the delete
+     * operation.
+     * 
+ * + * string build = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The build. + */ + public java.lang.String getBuild() { + java.lang.Object ref = build_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + build_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Cloud Build instance UUID associated with the delete
+     * operation.
+     * 
+ * + * string build = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for build. + */ + public com.google.protobuf.ByteString getBuildBytes() { + java.lang.Object ref = build_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + build_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Cloud Build instance UUID associated with the delete
+     * operation.
+     * 
+ * + * string build = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The build to set. + * @return This builder for chaining. + */ + public Builder setBuild(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + build_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Cloud Build instance UUID associated with the delete
+     * operation.
+     * 
+ * + * string build = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearBuild() { + build_ = getDefaultInstance().getBuild(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Cloud Build instance UUID associated with the delete
+     * operation.
+     * 
+ * + * string build = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for build to set. + * @return This builder for chaining. + */ + public Builder setBuildBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + build_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ApplicationOperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ApplicationOperationMetadata) + private static final com.google.cloud.designcenter.v1.ApplicationOperationMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.ApplicationOperationMetadata(); + } + + public static com.google.cloud.designcenter.v1.ApplicationOperationMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ApplicationOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ApplicationOperationMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplicationOperationMetadataOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplicationOperationMetadataOrBuilder.java new file mode 100644 index 000000000000..eaab1e4a2922 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplicationOperationMetadataOrBuilder.java @@ -0,0 +1,84 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/designcenter.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ApplicationOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ApplicationOperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The current step of the delete operation. Associated with
+   * Infrastructure Manager and App Hub.
+   * 
+ * + * string step = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The step. + */ + java.lang.String getStep(); + + /** + * + * + *
+   * Output only. The current step of the delete operation. Associated with
+   * Infrastructure Manager and App Hub.
+   * 
+ * + * string step = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for step. + */ + com.google.protobuf.ByteString getStepBytes(); + + /** + * + * + *
+   * Output only. Cloud Build instance UUID associated with the delete
+   * operation.
+   * 
+ * + * string build = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The build. + */ + java.lang.String getBuild(); + + /** + * + * + *
+   * Output only. Cloud Build instance UUID associated with the delete
+   * operation.
+   * 
+ * + * string build = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for build. + */ + com.google.protobuf.ByteString getBuildBytes(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplicationOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplicationOrBuilder.java new file mode 100644 index 000000000000..a0f207db021e --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplicationOrBuilder.java @@ -0,0 +1,1351 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment_resources.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ApplicationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.Application) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier. The name of the application.
+   * Format:
+   * projects/{project}/locations/{location}/spaces/{space}/applications/{application}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Identifier. The name of the application.
+   * Format:
+   * projects/{project}/locations/{location}/spaces/{space}/applications/{application}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. Create timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
+   * Output only. Create timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
+   * Output only. Create timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
+   * Output only. Update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
+   * Output only. Update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Required. The application deployment source.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentSource source = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the source field is set. + */ + boolean hasSource(); + + /** + * + * + *
+   * Required. The application deployment source.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentSource source = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The source. + */ + com.google.cloud.designcenter.v1.DeploymentSource getSource(); + + /** + * + * + *
+   * Required. The application deployment source.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentSource source = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.designcenter.v1.DeploymentSourceOrBuilder getSourceOrBuilder(); + + /** + * + * + *
+   * Optional. A list of parameters to attach to the deployment source object,
+   * which is a catalog entry or application template snapshot.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter app_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getAppParametersList(); + + /** + * + * + *
+   * Optional. A list of parameters to attach to the deployment source object,
+   * which is a catalog entry or application template snapshot.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter app_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.Parameter getAppParameters(int index); + + /** + * + * + *
+   * Optional. A list of parameters to attach to the deployment source object,
+   * which is a catalog entry or application template snapshot.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter app_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getAppParametersCount(); + + /** + * + * + *
+   * Optional. A list of parameters to attach to the deployment source object,
+   * which is a catalog entry or application template snapshot.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter app_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getAppParametersOrBuilderList(); + + /** + * + * + *
+   * Optional. A list of parameters to attach to the deployment source object,
+   * which is a catalog entry or application template snapshot.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter app_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.ParameterOrBuilder getAppParametersOrBuilder(int index); + + /** + * + * + *
+   * Optional. A list of component parameters to associate with the application.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameters component_parameters = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getComponentParametersList(); + + /** + * + * + *
+   * Optional. A list of component parameters to associate with the application.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameters component_parameters = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.ComponentParameters getComponentParameters(int index); + + /** + * + * + *
+   * Optional. A list of component parameters to associate with the application.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameters component_parameters = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getComponentParametersCount(); + + /** + * + * + *
+   * Optional. A list of component parameters to associate with the application.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameters component_parameters = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getComponentParametersOrBuilderList(); + + /** + * + * + *
+   * Optional. A list of component parameters to associate with the application.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameters component_parameters = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.ComponentParametersOrBuilder getComponentParametersOrBuilder( + int index); + + /** + * + * + *
+   * Optional. Your own service account that you use to deploy an application.
+   * 
+ * + * string service_account = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The serviceAccount. + */ + java.lang.String getServiceAccount(); + + /** + * + * + *
+   * Optional. Your own service account that you use to deploy an application.
+   * 
+ * + * string service_account = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for serviceAccount. + */ + com.google.protobuf.ByteString getServiceAccountBytes(); + + /** + * + * + *
+   * Optional. Display name of the application.
+   * 
+ * + * string display_name = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
+   * Optional. Display name of the application.
+   * 
+ * + * string display_name = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Optional. Description of the application.
+   * 
+ * + * string description = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
+   * Optional. Description of the application.
+   * 
+ * + * string description = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Optional. Attributes of the application.
+   * 
+ * + * + * .google.cloud.apphub.v1.Attributes attributes = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the attributes field is set. + */ + boolean hasAttributes(); + + /** + * + * + *
+   * Optional. Attributes of the application.
+   * 
+ * + * + * .google.cloud.apphub.v1.Attributes attributes = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The attributes. + */ + com.google.cloud.apphub.v1.Attributes getAttributes(); + + /** + * + * + *
+   * Optional. Attributes of the application.
+   * 
+ * + * + * .google.cloud.apphub.v1.Attributes attributes = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.apphub.v1.AttributesOrBuilder getAttributesOrBuilder(); + + /** + * + * + *
+   * Required. Scope of the application.
+   * 
+ * + * .google.cloud.apphub.v1.Scope scope = 15 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the scope field is set. + */ + boolean hasScope(); + + /** + * + * + *
+   * Required. Scope of the application.
+   * 
+ * + * .google.cloud.apphub.v1.Scope scope = 15 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The scope. + */ + com.google.cloud.apphub.v1.Scope getScope(); + + /** + * + * + *
+   * Required. Scope of the application.
+   * 
+ * + * .google.cloud.apphub.v1.Scope scope = 15 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.apphub.v1.ScopeOrBuilder getScopeOrBuilder(); + + /** + * + * + *
+   * Optional. Import existing resources into the application.
+   * 
+ * + * bool import_existing_resources = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The importExistingResources. + */ + boolean getImportExistingResources(); + + /** + * + * + *
+   * Output only. Preview reference for the application.
+   * 
+ * + * string preview_reference = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The previewReference. + */ + java.lang.String getPreviewReference(); + + /** + * + * + *
+   * Output only. Preview reference for the application.
+   * 
+ * + * string preview_reference = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for previewReference. + */ + com.google.protobuf.ByteString getPreviewReferenceBytes(); + + /** + * + * + *
+   * Output only. [Output only] Optional Infra Manager deployment Id with
+   * revision
+   * 
+ * + * string deployment_revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The deploymentRevision. + */ + java.lang.String getDeploymentRevision(); + + /** + * + * + *
+   * Output only. [Output only] Optional Infra Manager deployment Id with
+   * revision
+   * 
+ * + * string deployment_revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for deploymentRevision. + */ + com.google.protobuf.ByteString getDeploymentRevisionBytes(); + + /** + * + * + *
+   * Output only. The App Hub App associated with the application.
+   * 
+ * + * string apphub_application = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The apphubApplication. + */ + java.lang.String getApphubApplication(); + + /** + * + * + *
+   * Output only. The App Hub App associated with the application.
+   * 
+ * + * string apphub_application = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for apphubApplication. + */ + com.google.protobuf.ByteString getApphubApplicationBytes(); + + /** + * + * + *
+   * Output only. [Output only] Serialized application template.
+   * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate serialized_application_template = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the serializedApplicationTemplate field is set. + */ + boolean hasSerializedApplicationTemplate(); + + /** + * + * + *
+   * Output only. [Output only] Serialized application template.
+   * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate serialized_application_template = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The serializedApplicationTemplate. + */ + com.google.cloud.designcenter.v1.SerializedApplicationTemplate getSerializedApplicationTemplate(); + + /** + * + * + *
+   * Output only. [Output only] Serialized application template.
+   * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate serialized_application_template = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.SerializedApplicationTemplateOrBuilder + getSerializedApplicationTemplateOrBuilder(); + + /** + * + * + *
+   * Output only. Deployment state of the application.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Application.State state = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
+   * Output only. Deployment state of the application.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Application.State state = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.designcenter.v1.Application.State getState(); + + /** + * + * + *
+   * Output only. Deployment metadata of the application.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentMetadata deployment_metadata = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the deploymentMetadata field is set. + */ + boolean hasDeploymentMetadata(); + + /** + * + * + *
+   * Output only. Deployment metadata of the application.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentMetadata deployment_metadata = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deploymentMetadata. + */ + com.google.cloud.designcenter.v1.DeploymentMetadata getDeploymentMetadata(); + + /** + * + * + *
+   * Output only. Deployment metadata of the application.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentMetadata deployment_metadata = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.DeploymentMetadataOrBuilder getDeploymentMetadataOrBuilder(); + + /** + * + * + *
+   * Output only. List of project parameters for the application.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProjectParameters project_parameters = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getProjectParametersList(); + + /** + * + * + *
+   * Output only. List of project parameters for the application.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProjectParameters project_parameters = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.ProjectParameters getProjectParameters(int index); + + /** + * + * + *
+   * Output only. List of project parameters for the application.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProjectParameters project_parameters = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getProjectParametersCount(); + + /** + * + * + *
+   * Output only. List of project parameters for the application.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProjectParameters project_parameters = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getProjectParametersOrBuilderList(); + + /** + * + * + *
+   * Output only. List of project parameters for the application.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProjectParameters project_parameters = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.ProjectParametersOrBuilder getProjectParametersOrBuilder( + int index); + + /** + * + * + *
+   * Optional. The region where the application is deployed.
+   * 
+ * + * string deployment_region = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The deploymentRegion. + */ + java.lang.String getDeploymentRegion(); + + /** + * + * + *
+   * Optional. The region where the application is deployed.
+   * 
+ * + * string deployment_region = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for deploymentRegion. + */ + com.google.protobuf.ByteString getDeploymentRegionBytes(); + + /** + * + * + *
+   * Output only. The updated template revision because of which the application
+   * is outdated.
+   * 
+ * + * + * .google.cloud.designcenter.v1.UpdatedTemplateRevision updated_template_revision = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updatedTemplateRevision field is set. + */ + boolean hasUpdatedTemplateRevision(); + + /** + * + * + *
+   * Output only. The updated template revision because of which the application
+   * is outdated.
+   * 
+ * + * + * .google.cloud.designcenter.v1.UpdatedTemplateRevision updated_template_revision = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updatedTemplateRevision. + */ + com.google.cloud.designcenter.v1.UpdatedTemplateRevision getUpdatedTemplateRevision(); + + /** + * + * + *
+   * Output only. The updated template revision because of which the application
+   * is outdated.
+   * 
+ * + * + * .google.cloud.designcenter.v1.UpdatedTemplateRevision updated_template_revision = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.UpdatedTemplateRevisionOrBuilder + getUpdatedTemplateRevisionOrBuilder(); + + /** + * + * + *
+   * Optional. Deployment project of the application.
+   * 
+ * + * string deployment_project = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The deploymentProject. + */ + java.lang.String getDeploymentProject(); + + /** + * + * + *
+   * Optional. Deployment project of the application.
+   * 
+ * + * string deployment_project = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for deploymentProject. + */ + com.google.protobuf.ByteString getDeploymentProjectBytes(); + + /** + * + * + *
+   * Optional. Connection configuration for the application.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionConfig connection_configs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getConnectionConfigsList(); + + /** + * + * + *
+   * Optional. Connection configuration for the application.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionConfig connection_configs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.ConnectionConfig getConnectionConfigs(int index); + + /** + * + * + *
+   * Optional. Connection configuration for the application.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionConfig connection_configs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getConnectionConfigsCount(); + + /** + * + * + *
+   * Optional. Connection configuration for the application.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionConfig connection_configs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getConnectionConfigsOrBuilderList(); + + /** + * + * + *
+   * Optional. Connection configuration for the application.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionConfig connection_configs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.ConnectionConfigOrBuilder getConnectionConfigsOrBuilder( + int index); + + /** + * + * + *
+   * Output only. Details of the location where the IaC for this application was
+   * last successfully exported.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the artifactLocation field is set. + */ + boolean hasArtifactLocation(); + + /** + * + * + *
+   * Output only. Details of the location where the IaC for this application was
+   * last successfully exported.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The artifactLocation. + */ + com.google.cloud.designcenter.v1.ArtifactLocation getArtifactLocation(); + + /** + * + * + *
+   * Output only. Details of the location where the IaC for this application was
+   * last successfully exported.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder getArtifactLocationOrBuilder(); + + /** + * + * + *
+   * Optional. The type of the application.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationType type = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + + /** + * + * + *
+   * Optional. The type of the application.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationType type = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The type. + */ + com.google.cloud.designcenter.v1.ApplicationType getType(); + + /** + * + * + *
+   * Optional. The deployment target of the application.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentTarget deployment_target = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the deploymentTarget field is set. + */ + boolean hasDeploymentTarget(); + + /** + * + * + *
+   * Optional. The deployment target of the application.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentTarget deployment_target = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The deploymentTarget. + */ + com.google.cloud.designcenter.v1.DeploymentTarget getDeploymentTarget(); + + /** + * + * + *
+   * Optional. The deployment target of the application.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentTarget deployment_target = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.DeploymentTargetOrBuilder getDeploymentTargetOrBuilder(); + + /** + * + * + *
+   * Output only. The composition type of the application: STANDARD OR
+   * COMPOSITE.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationCompositionType composition_type = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for compositionType. + */ + int getCompositionTypeValue(); + + /** + * + * + *
+   * Output only. The composition type of the application: STANDARD OR
+   * COMPOSITE.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationCompositionType composition_type = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The compositionType. + */ + com.google.cloud.designcenter.v1.ApplicationCompositionType getCompositionType(); + + /** + * + * + *
+   * Optional. Parameters that are required for composite applications.
+   * 
+ * + * + * .google.cloud.designcenter.v1.CompositeApplicationParameters composite_application_parameters = 33 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the compositeApplicationParameters field is set. + */ + boolean hasCompositeApplicationParameters(); + + /** + * + * + *
+   * Optional. Parameters that are required for composite applications.
+   * 
+ * + * + * .google.cloud.designcenter.v1.CompositeApplicationParameters composite_application_parameters = 33 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The compositeApplicationParameters. + */ + com.google.cloud.designcenter.v1.CompositeApplicationParameters + getCompositeApplicationParameters(); + + /** + * + * + *
+   * Optional. Parameters that are required for composite applications.
+   * 
+ * + * + * .google.cloud.designcenter.v1.CompositeApplicationParameters composite_application_parameters = 33 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.CompositeApplicationParametersOrBuilder + getCompositeApplicationParametersOrBuilder(); + + /** + * + * + *
+   * Output only. The deployment group metadata of the application. This is
+   * applicable only for composite applications.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentGroupMetadata deployment_group_metadata = 34 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the deploymentGroupMetadata field is set. + */ + boolean hasDeploymentGroupMetadata(); + + /** + * + * + *
+   * Output only. The deployment group metadata of the application. This is
+   * applicable only for composite applications.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentGroupMetadata deployment_group_metadata = 34 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deploymentGroupMetadata. + */ + com.google.cloud.designcenter.v1.DeploymentGroupMetadata getDeploymentGroupMetadata(); + + /** + * + * + *
+   * Output only. The deployment group metadata of the application. This is
+   * applicable only for composite applications.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentGroupMetadata deployment_group_metadata = 34 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.DeploymentGroupMetadataOrBuilder + getDeploymentGroupMetadataOrBuilder(); + + /** + * + * + *
+   * Optional. Specifies the strategy to use when updating the application
+   * parameters while updating the application template revision.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Application.UpdateStrategy params_update_strategy = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for paramsUpdateStrategy. + */ + int getParamsUpdateStrategyValue(); + + /** + * + * + *
+   * Optional. Specifies the strategy to use when updating the application
+   * parameters while updating the application template revision.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Application.UpdateStrategy params_update_strategy = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The paramsUpdateStrategy. + */ + com.google.cloud.designcenter.v1.Application.UpdateStrategy getParamsUpdateStrategy(); + + /** + * + * + *
+   * Optional. Project-specific configurations required for application
+   * deployment, including IAM roles and APIs. The list can contain up to 100
+   * items.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.RolesAndApisConfig roles_apis_config = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getRolesApisConfigList(); + + /** + * + * + *
+   * Optional. Project-specific configurations required for application
+   * deployment, including IAM roles and APIs. The list can contain up to 100
+   * items.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.RolesAndApisConfig roles_apis_config = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.RolesAndApisConfig getRolesApisConfig(int index); + + /** + * + * + *
+   * Optional. Project-specific configurations required for application
+   * deployment, including IAM roles and APIs. The list can contain up to 100
+   * items.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.RolesAndApisConfig roles_apis_config = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getRolesApisConfigCount(); + + /** + * + * + *
+   * Optional. Project-specific configurations required for application
+   * deployment, including IAM roles and APIs. The list can contain up to 100
+   * items.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.RolesAndApisConfig roles_apis_config = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getRolesApisConfigOrBuilderList(); + + /** + * + * + *
+   * Optional. Project-specific configurations required for application
+   * deployment, including IAM roles and APIs. The list can contain up to 100
+   * items.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.RolesAndApisConfig roles_apis_config = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.RolesAndApisConfigOrBuilder getRolesApisConfigOrBuilder( + int index); + + /** + * + * + *
+   * Output only. The input output variables parsed from the imported terraform
+   * code.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata template_metadata = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the templateMetadata field is set. + */ + boolean hasTemplateMetadata(); + + /** + * + * + *
+   * Output only. The input output variables parsed from the imported terraform
+   * code.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata template_metadata = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The templateMetadata. + */ + com.google.cloud.designcenter.v1.TFBlueprintMetadata getTemplateMetadata(); + + /** + * + * + *
+   * Output only. The input output variables parsed from the imported terraform
+   * code.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata template_metadata = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.TFBlueprintMetadataOrBuilder getTemplateMetadataOrBuilder(); + + /** + * + * + *
+   * Output only. Indicates the IaC source format of this application.
+   * 
+ * + * + * .google.cloud.designcenter.v1.IACSource iac_source = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for iacSource. + */ + int getIacSourceValue(); + + /** + * + * + *
+   * Output only. Indicates the IaC source format of this application.
+   * 
+ * + * + * .google.cloud.designcenter.v1.IACSource iac_source = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The iacSource. + */ + com.google.cloud.designcenter.v1.IACSource getIacSource(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplicationOutputParameters.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplicationOutputParameters.java new file mode 100644 index 000000000000..2bbf836914af --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplicationOutputParameters.java @@ -0,0 +1,842 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * The application output parameters of the deployment.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ApplicationOutputParameters} + */ +@com.google.protobuf.Generated +public final class ApplicationOutputParameters extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ApplicationOutputParameters) + ApplicationOutputParametersOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ApplicationOutputParameters"); + } + + // Use ApplicationOutputParameters.newBuilder() to construct. + private ApplicationOutputParameters(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ApplicationOutputParameters() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_ApplicationOutputParameters_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_ApplicationOutputParameters_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ApplicationOutputParameters.class, + com.google.cloud.designcenter.v1.ApplicationOutputParameters.Builder.class); + } + + private int parametersCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object parameters_; + + public enum ParametersCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + HELM_APPLICATION_OUTPUT_PARAMETERS(1), + PARAMETERS_NOT_SET(0); + private final int value; + + private ParametersCase(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 ParametersCase valueOf(int value) { + return forNumber(value); + } + + public static ParametersCase forNumber(int value) { + switch (value) { + case 1: + return HELM_APPLICATION_OUTPUT_PARAMETERS; + case 0: + return PARAMETERS_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ParametersCase getParametersCase() { + return ParametersCase.forNumber(parametersCase_); + } + + public static final int HELM_APPLICATION_OUTPUT_PARAMETERS_FIELD_NUMBER = 1; + + /** + * + * + *
+   * Output only. Helm application output parameters.
+   * 
+ * + * + * .google.cloud.designcenter.v1.HelmApplicationOutputParameters helm_application_output_parameters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the helmApplicationOutputParameters field is set. + */ + @java.lang.Override + public boolean hasHelmApplicationOutputParameters() { + return parametersCase_ == 1; + } + + /** + * + * + *
+   * Output only. Helm application output parameters.
+   * 
+ * + * + * .google.cloud.designcenter.v1.HelmApplicationOutputParameters helm_application_output_parameters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The helmApplicationOutputParameters. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.HelmApplicationOutputParameters + getHelmApplicationOutputParameters() { + if (parametersCase_ == 1) { + return (com.google.cloud.designcenter.v1.HelmApplicationOutputParameters) parameters_; + } + return com.google.cloud.designcenter.v1.HelmApplicationOutputParameters.getDefaultInstance(); + } + + /** + * + * + *
+   * Output only. Helm application output parameters.
+   * 
+ * + * + * .google.cloud.designcenter.v1.HelmApplicationOutputParameters helm_application_output_parameters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.HelmApplicationOutputParametersOrBuilder + getHelmApplicationOutputParametersOrBuilder() { + if (parametersCase_ == 1) { + return (com.google.cloud.designcenter.v1.HelmApplicationOutputParameters) parameters_; + } + return com.google.cloud.designcenter.v1.HelmApplicationOutputParameters.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 (parametersCase_ == 1) { + output.writeMessage( + 1, (com.google.cloud.designcenter.v1.HelmApplicationOutputParameters) parameters_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (parametersCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.designcenter.v1.HelmApplicationOutputParameters) parameters_); + } + 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.designcenter.v1.ApplicationOutputParameters)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ApplicationOutputParameters other = + (com.google.cloud.designcenter.v1.ApplicationOutputParameters) obj; + + if (!getParametersCase().equals(other.getParametersCase())) return false; + switch (parametersCase_) { + case 1: + if (!getHelmApplicationOutputParameters() + .equals(other.getHelmApplicationOutputParameters())) 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 (parametersCase_) { + case 1: + hash = (37 * hash) + HELM_APPLICATION_OUTPUT_PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getHelmApplicationOutputParameters().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.ApplicationOutputParameters parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ApplicationOutputParameters 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.designcenter.v1.ApplicationOutputParameters parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ApplicationOutputParameters parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ApplicationOutputParameters parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ApplicationOutputParameters parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ApplicationOutputParameters parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ApplicationOutputParameters parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ApplicationOutputParameters parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ApplicationOutputParameters parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ApplicationOutputParameters parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ApplicationOutputParameters parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ApplicationOutputParameters 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * The application output parameters of the deployment.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ApplicationOutputParameters} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ApplicationOutputParameters) + com.google.cloud.designcenter.v1.ApplicationOutputParametersOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_ApplicationOutputParameters_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_ApplicationOutputParameters_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ApplicationOutputParameters.class, + com.google.cloud.designcenter.v1.ApplicationOutputParameters.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.ApplicationOutputParameters.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (helmApplicationOutputParametersBuilder_ != null) { + helmApplicationOutputParametersBuilder_.clear(); + } + parametersCase_ = 0; + parameters_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_ApplicationOutputParameters_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ApplicationOutputParameters + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ApplicationOutputParameters.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ApplicationOutputParameters build() { + com.google.cloud.designcenter.v1.ApplicationOutputParameters result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ApplicationOutputParameters buildPartial() { + com.google.cloud.designcenter.v1.ApplicationOutputParameters result = + new com.google.cloud.designcenter.v1.ApplicationOutputParameters(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.ApplicationOutputParameters result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.designcenter.v1.ApplicationOutputParameters result) { + result.parametersCase_ = parametersCase_; + result.parameters_ = this.parameters_; + if (parametersCase_ == 1 && helmApplicationOutputParametersBuilder_ != null) { + result.parameters_ = helmApplicationOutputParametersBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.ApplicationOutputParameters) { + return mergeFrom((com.google.cloud.designcenter.v1.ApplicationOutputParameters) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.ApplicationOutputParameters other) { + if (other + == com.google.cloud.designcenter.v1.ApplicationOutputParameters.getDefaultInstance()) + return this; + switch (other.getParametersCase()) { + case HELM_APPLICATION_OUTPUT_PARAMETERS: + { + mergeHelmApplicationOutputParameters(other.getHelmApplicationOutputParameters()); + break; + } + case PARAMETERS_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( + internalGetHelmApplicationOutputParametersFieldBuilder().getBuilder(), + extensionRegistry); + parametersCase_ = 1; + 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 parametersCase_ = 0; + private java.lang.Object parameters_; + + public ParametersCase getParametersCase() { + return ParametersCase.forNumber(parametersCase_); + } + + public Builder clearParameters() { + parametersCase_ = 0; + parameters_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.HelmApplicationOutputParameters, + com.google.cloud.designcenter.v1.HelmApplicationOutputParameters.Builder, + com.google.cloud.designcenter.v1.HelmApplicationOutputParametersOrBuilder> + helmApplicationOutputParametersBuilder_; + + /** + * + * + *
+     * Output only. Helm application output parameters.
+     * 
+ * + * + * .google.cloud.designcenter.v1.HelmApplicationOutputParameters helm_application_output_parameters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the helmApplicationOutputParameters field is set. + */ + @java.lang.Override + public boolean hasHelmApplicationOutputParameters() { + return parametersCase_ == 1; + } + + /** + * + * + *
+     * Output only. Helm application output parameters.
+     * 
+ * + * + * .google.cloud.designcenter.v1.HelmApplicationOutputParameters helm_application_output_parameters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The helmApplicationOutputParameters. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.HelmApplicationOutputParameters + getHelmApplicationOutputParameters() { + if (helmApplicationOutputParametersBuilder_ == null) { + if (parametersCase_ == 1) { + return (com.google.cloud.designcenter.v1.HelmApplicationOutputParameters) parameters_; + } + return com.google.cloud.designcenter.v1.HelmApplicationOutputParameters + .getDefaultInstance(); + } else { + if (parametersCase_ == 1) { + return helmApplicationOutputParametersBuilder_.getMessage(); + } + return com.google.cloud.designcenter.v1.HelmApplicationOutputParameters + .getDefaultInstance(); + } + } + + /** + * + * + *
+     * Output only. Helm application output parameters.
+     * 
+ * + * + * .google.cloud.designcenter.v1.HelmApplicationOutputParameters helm_application_output_parameters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setHelmApplicationOutputParameters( + com.google.cloud.designcenter.v1.HelmApplicationOutputParameters value) { + if (helmApplicationOutputParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + parameters_ = value; + onChanged(); + } else { + helmApplicationOutputParametersBuilder_.setMessage(value); + } + parametersCase_ = 1; + return this; + } + + /** + * + * + *
+     * Output only. Helm application output parameters.
+     * 
+ * + * + * .google.cloud.designcenter.v1.HelmApplicationOutputParameters helm_application_output_parameters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setHelmApplicationOutputParameters( + com.google.cloud.designcenter.v1.HelmApplicationOutputParameters.Builder builderForValue) { + if (helmApplicationOutputParametersBuilder_ == null) { + parameters_ = builderForValue.build(); + onChanged(); + } else { + helmApplicationOutputParametersBuilder_.setMessage(builderForValue.build()); + } + parametersCase_ = 1; + return this; + } + + /** + * + * + *
+     * Output only. Helm application output parameters.
+     * 
+ * + * + * .google.cloud.designcenter.v1.HelmApplicationOutputParameters helm_application_output_parameters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeHelmApplicationOutputParameters( + com.google.cloud.designcenter.v1.HelmApplicationOutputParameters value) { + if (helmApplicationOutputParametersBuilder_ == null) { + if (parametersCase_ == 1 + && parameters_ + != com.google.cloud.designcenter.v1.HelmApplicationOutputParameters + .getDefaultInstance()) { + parameters_ = + com.google.cloud.designcenter.v1.HelmApplicationOutputParameters.newBuilder( + (com.google.cloud.designcenter.v1.HelmApplicationOutputParameters) + parameters_) + .mergeFrom(value) + .buildPartial(); + } else { + parameters_ = value; + } + onChanged(); + } else { + if (parametersCase_ == 1) { + helmApplicationOutputParametersBuilder_.mergeFrom(value); + } else { + helmApplicationOutputParametersBuilder_.setMessage(value); + } + } + parametersCase_ = 1; + return this; + } + + /** + * + * + *
+     * Output only. Helm application output parameters.
+     * 
+ * + * + * .google.cloud.designcenter.v1.HelmApplicationOutputParameters helm_application_output_parameters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearHelmApplicationOutputParameters() { + if (helmApplicationOutputParametersBuilder_ == null) { + if (parametersCase_ == 1) { + parametersCase_ = 0; + parameters_ = null; + onChanged(); + } + } else { + if (parametersCase_ == 1) { + parametersCase_ = 0; + parameters_ = null; + } + helmApplicationOutputParametersBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Output only. Helm application output parameters.
+     * 
+ * + * + * .google.cloud.designcenter.v1.HelmApplicationOutputParameters helm_application_output_parameters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.HelmApplicationOutputParameters.Builder + getHelmApplicationOutputParametersBuilder() { + return internalGetHelmApplicationOutputParametersFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Helm application output parameters.
+     * 
+ * + * + * .google.cloud.designcenter.v1.HelmApplicationOutputParameters helm_application_output_parameters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.HelmApplicationOutputParametersOrBuilder + getHelmApplicationOutputParametersOrBuilder() { + if ((parametersCase_ == 1) && (helmApplicationOutputParametersBuilder_ != null)) { + return helmApplicationOutputParametersBuilder_.getMessageOrBuilder(); + } else { + if (parametersCase_ == 1) { + return (com.google.cloud.designcenter.v1.HelmApplicationOutputParameters) parameters_; + } + return com.google.cloud.designcenter.v1.HelmApplicationOutputParameters + .getDefaultInstance(); + } + } + + /** + * + * + *
+     * Output only. Helm application output parameters.
+     * 
+ * + * + * .google.cloud.designcenter.v1.HelmApplicationOutputParameters helm_application_output_parameters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.HelmApplicationOutputParameters, + com.google.cloud.designcenter.v1.HelmApplicationOutputParameters.Builder, + com.google.cloud.designcenter.v1.HelmApplicationOutputParametersOrBuilder> + internalGetHelmApplicationOutputParametersFieldBuilder() { + if (helmApplicationOutputParametersBuilder_ == null) { + if (!(parametersCase_ == 1)) { + parameters_ = + com.google.cloud.designcenter.v1.HelmApplicationOutputParameters.getDefaultInstance(); + } + helmApplicationOutputParametersBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.HelmApplicationOutputParameters, + com.google.cloud.designcenter.v1.HelmApplicationOutputParameters.Builder, + com.google.cloud.designcenter.v1.HelmApplicationOutputParametersOrBuilder>( + (com.google.cloud.designcenter.v1.HelmApplicationOutputParameters) parameters_, + getParentForChildren(), + isClean()); + parameters_ = null; + } + parametersCase_ = 1; + onChanged(); + return helmApplicationOutputParametersBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ApplicationOutputParameters) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ApplicationOutputParameters) + private static final com.google.cloud.designcenter.v1.ApplicationOutputParameters + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.ApplicationOutputParameters(); + } + + public static com.google.cloud.designcenter.v1.ApplicationOutputParameters getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ApplicationOutputParameters parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ApplicationOutputParameters getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplicationOutputParametersOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplicationOutputParametersOrBuilder.java new file mode 100644 index 000000000000..ef5c9105ab82 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplicationOutputParametersOrBuilder.java @@ -0,0 +1,75 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ApplicationOutputParametersOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ApplicationOutputParameters) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Helm application output parameters.
+   * 
+ * + * + * .google.cloud.designcenter.v1.HelmApplicationOutputParameters helm_application_output_parameters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the helmApplicationOutputParameters field is set. + */ + boolean hasHelmApplicationOutputParameters(); + + /** + * + * + *
+   * Output only. Helm application output parameters.
+   * 
+ * + * + * .google.cloud.designcenter.v1.HelmApplicationOutputParameters helm_application_output_parameters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The helmApplicationOutputParameters. + */ + com.google.cloud.designcenter.v1.HelmApplicationOutputParameters + getHelmApplicationOutputParameters(); + + /** + * + * + *
+   * Output only. Helm application output parameters.
+   * 
+ * + * + * .google.cloud.designcenter.v1.HelmApplicationOutputParameters helm_application_output_parameters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.HelmApplicationOutputParametersOrBuilder + getHelmApplicationOutputParametersOrBuilder(); + + com.google.cloud.designcenter.v1.ApplicationOutputParameters.ParametersCase getParametersCase(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplicationTemplate.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplicationTemplate.java new file mode 100644 index 000000000000..86c27da6819d --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplicationTemplate.java @@ -0,0 +1,5836 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Application template resource.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ApplicationTemplate} + */ +@com.google.protobuf.Generated +public final class ApplicationTemplate extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ApplicationTemplate) + ApplicationTemplateOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ApplicationTemplate"); + } + + // Use ApplicationTemplate.newBuilder() to construct. + private ApplicationTemplate(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ApplicationTemplate() { + name_ = ""; + displayName_ = ""; + description_ = ""; + applicationParameters_ = java.util.Collections.emptyList(); + iacFormat_ = 0; + latestRevision_ = ""; + compositionType_ = 0; + rootInputVariables_ = java.util.Collections.emptyList(); + rootOutputVariables_ = java.util.Collections.emptyList(); + latestSystemRevisionUri_ = ""; + iacSource_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringResourcesProto + .internal_static_google_cloud_designcenter_v1_ApplicationTemplate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringResourcesProto + .internal_static_google_cloud_designcenter_v1_ApplicationTemplate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ApplicationTemplate.class, + com.google.cloud.designcenter.v1.ApplicationTemplate.Builder.class); + } + + /** + * + * + *
+   * The IaC format of the application template.
+   * 
+ * + * Protobuf enum {@code google.cloud.designcenter.v1.ApplicationTemplate.IACFormat} + */ + public enum IACFormat implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * IaC format is unspecified.
+     * 
+ * + * IAC_FORMAT_UNSPECIFIED = 0; + */ + IAC_FORMAT_UNSPECIFIED(0), + /** + * + * + *
+     * IaC format is Terraform.
+     * 
+ * + * TERRAFORM = 1; + */ + TERRAFORM(1), + /** + * + * + *
+     * IaC format is Helm.
+     * 
+ * + * HELM = 2; + */ + HELM(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "IACFormat"); + } + + /** + * + * + *
+     * IaC format is unspecified.
+     * 
+ * + * IAC_FORMAT_UNSPECIFIED = 0; + */ + public static final int IAC_FORMAT_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * IaC format is Terraform.
+     * 
+ * + * TERRAFORM = 1; + */ + public static final int TERRAFORM_VALUE = 1; + + /** + * + * + *
+     * IaC format is Helm.
+     * 
+ * + * HELM = 2; + */ + public static final int HELM_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 IACFormat 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 IACFormat forNumber(int value) { + switch (value) { + case 0: + return IAC_FORMAT_UNSPECIFIED; + case 1: + return TERRAFORM; + case 2: + return HELM; + 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 IACFormat findValueByNumber(int number) { + return IACFormat.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.designcenter.v1.ApplicationTemplate.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final IACFormat[] VALUES = values(); + + public static IACFormat 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 IACFormat(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.designcenter.v1.ApplicationTemplate.IACFormat) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Identifier. Application template name.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + + /** + * + * + *
+   * Identifier. Application template name.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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_ = ""; + + /** + * + * + *
+   * Optional. Application template display name.
+   * 
+ * + * string display_name = 2 [(.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. Application template display name.
+   * 
+ * + * string display_name = 2 [(.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 DESCRIPTION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
+   * Optional. Application template description.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Application template description.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+   * Output only. Application template creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. Application template creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.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. Application template creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.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 = 5; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
+   * Output only. Application template update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. Application template update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.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. Application template update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.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 APPLICATION_PARAMETERS_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private java.util.List applicationParameters_; + + /** + * + * + *
+   * Optional. Parameters to apply to all components in an application. You can
+   * specify projectID and region.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getApplicationParametersList() { + return applicationParameters_; + } + + /** + * + * + *
+   * Optional. Parameters to apply to all components in an application. You can
+   * specify projectID and region.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getApplicationParametersOrBuilderList() { + return applicationParameters_; + } + + /** + * + * + *
+   * Optional. Parameters to apply to all components in an application. You can
+   * specify projectID and region.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getApplicationParametersCount() { + return applicationParameters_.size(); + } + + /** + * + * + *
+   * Optional. Parameters to apply to all components in an application. You can
+   * specify projectID and region.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.Parameter getApplicationParameters(int index) { + return applicationParameters_.get(index); + } + + /** + * + * + *
+   * Optional. Parameters to apply to all components in an application. You can
+   * specify projectID and region.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ParameterOrBuilder getApplicationParametersOrBuilder( + int index) { + return applicationParameters_.get(index); + } + + public static final int IAC_FORMAT_FIELD_NUMBER = 10; + private int iacFormat_ = 0; + + /** + * + * + *
+   * Output only. The IaC format of the application template.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationTemplate.IACFormat iac_format = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for iacFormat. + */ + @java.lang.Override + public int getIacFormatValue() { + return iacFormat_; + } + + /** + * + * + *
+   * Output only. The IaC format of the application template.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationTemplate.IACFormat iac_format = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The iacFormat. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ApplicationTemplate.IACFormat getIacFormat() { + com.google.cloud.designcenter.v1.ApplicationTemplate.IACFormat result = + com.google.cloud.designcenter.v1.ApplicationTemplate.IACFormat.forNumber(iacFormat_); + return result == null + ? com.google.cloud.designcenter.v1.ApplicationTemplate.IACFormat.UNRECOGNIZED + : result; + } + + public static final int SERIALIZED_APPLICATION_TEMPLATE_FIELD_NUMBER = 11; + private com.google.cloud.designcenter.v1.SerializedApplicationTemplate + serializedApplicationTemplate_; + + /** + * + * + *
+   * Output only. The serialized application template.
+   * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate serialized_application_template = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the serializedApplicationTemplate field is set. + */ + @java.lang.Override + public boolean hasSerializedApplicationTemplate() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Output only. The serialized application template.
+   * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate serialized_application_template = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The serializedApplicationTemplate. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.SerializedApplicationTemplate + getSerializedApplicationTemplate() { + return serializedApplicationTemplate_ == null + ? com.google.cloud.designcenter.v1.SerializedApplicationTemplate.getDefaultInstance() + : serializedApplicationTemplate_; + } + + /** + * + * + *
+   * Output only. The serialized application template.
+   * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate serialized_application_template = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.SerializedApplicationTemplateOrBuilder + getSerializedApplicationTemplateOrBuilder() { + return serializedApplicationTemplate_ == null + ? com.google.cloud.designcenter.v1.SerializedApplicationTemplate.getDefaultInstance() + : serializedApplicationTemplate_; + } + + public static final int LATEST_REVISION_FIELD_NUMBER = 12; + + @SuppressWarnings("serial") + private volatile java.lang.Object latestRevision_ = ""; + + /** + * + * + *
+   * Output only. The latest application template revision.
+   * 
+ * + * string latest_revision = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The latestRevision. + */ + @java.lang.Override + public java.lang.String getLatestRevision() { + java.lang.Object ref = latestRevision_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + latestRevision_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The latest application template revision.
+   * 
+ * + * string latest_revision = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for latestRevision. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLatestRevisionBytes() { + java.lang.Object ref = latestRevision_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + latestRevision_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ARTIFACT_LOCATION_FIELD_NUMBER = 14; + private com.google.cloud.designcenter.v1.ArtifactLocation artifactLocation_; + + /** + * + * + *
+   * Output only. Details of the location where the IaC for this
+   * ApplicationTemplate was last successfully exported.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the artifactLocation field is set. + */ + @java.lang.Override + public boolean hasArtifactLocation() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Output only. Details of the location where the IaC for this
+   * ApplicationTemplate was last successfully exported.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The artifactLocation. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ArtifactLocation getArtifactLocation() { + return artifactLocation_ == null + ? com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance() + : artifactLocation_; + } + + /** + * + * + *
+   * Output only. Details of the location where the IaC for this
+   * ApplicationTemplate was last successfully exported.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder getArtifactLocationOrBuilder() { + return artifactLocation_ == null + ? com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance() + : artifactLocation_; + } + + public static final int COMPOSITION_TYPE_FIELD_NUMBER = 15; + private int compositionType_ = 0; + + /** + * + * + *
+   * Optional. Immutable. The composition type of the applicationTemplate:
+   * STANDARD OR COMPOSITE. This is a create time only param.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationCompositionType composition_type = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for compositionType. + */ + @java.lang.Override + public int getCompositionTypeValue() { + return compositionType_; + } + + /** + * + * + *
+   * Optional. Immutable. The composition type of the applicationTemplate:
+   * STANDARD OR COMPOSITE. This is a create time only param.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationCompositionType composition_type = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The compositionType. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ApplicationCompositionType getCompositionType() { + com.google.cloud.designcenter.v1.ApplicationCompositionType result = + com.google.cloud.designcenter.v1.ApplicationCompositionType.forNumber(compositionType_); + return result == null + ? com.google.cloud.designcenter.v1.ApplicationCompositionType.UNRECOGNIZED + : result; + } + + public static final int ROOT_INPUT_VARIABLES_FIELD_NUMBER = 16; + + @SuppressWarnings("serial") + private java.util.List rootInputVariables_; + + /** + * + * + *
+   * Optional. Root level input variables of the application template.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_input_variables = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getRootInputVariablesList() { + return rootInputVariables_; + } + + /** + * + * + *
+   * Optional. Root level input variables of the application template.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_input_variables = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getRootInputVariablesOrBuilderList() { + return rootInputVariables_; + } + + /** + * + * + *
+   * Optional. Root level input variables of the application template.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_input_variables = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getRootInputVariablesCount() { + return rootInputVariables_.size(); + } + + /** + * + * + *
+   * Optional. Root level input variables of the application template.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_input_variables = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ComponentVariable getRootInputVariables(int index) { + return rootInputVariables_.get(index); + } + + /** + * + * + *
+   * Optional. Root level input variables of the application template.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_input_variables = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ComponentVariableOrBuilder getRootInputVariablesOrBuilder( + int index) { + return rootInputVariables_.get(index); + } + + public static final int ROOT_OUTPUT_VARIABLES_FIELD_NUMBER = 17; + + @SuppressWarnings("serial") + private java.util.List rootOutputVariables_; + + /** + * + * + *
+   * Optional. Root level output variables of the application template.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_output_variables = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getRootOutputVariablesList() { + return rootOutputVariables_; + } + + /** + * + * + *
+   * Optional. Root level output variables of the application template.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_output_variables = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getRootOutputVariablesOrBuilderList() { + return rootOutputVariables_; + } + + /** + * + * + *
+   * Optional. Root level output variables of the application template.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_output_variables = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getRootOutputVariablesCount() { + return rootOutputVariables_.size(); + } + + /** + * + * + *
+   * Optional. Root level output variables of the application template.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_output_variables = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ComponentVariable getRootOutputVariables(int index) { + return rootOutputVariables_.get(index); + } + + /** + * + * + *
+   * Optional. Root level output variables of the application template.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_output_variables = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ComponentVariableOrBuilder + getRootOutputVariablesOrBuilder(int index) { + return rootOutputVariables_.get(index); + } + + public static final int SAAS_RUNTIME_CONTEXT_FIELD_NUMBER = 18; + private com.google.cloud.designcenter.v1.SaaSRuntimeContext saasRuntimeContext_; + + /** + * + * + *
+   * Optional. SaaS runtime context for the application template.
+   * 
+ * + * + * .google.cloud.designcenter.v1.SaaSRuntimeContext saas_runtime_context = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the saasRuntimeContext field is set. + */ + @java.lang.Override + public boolean hasSaasRuntimeContext() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+   * Optional. SaaS runtime context for the application template.
+   * 
+ * + * + * .google.cloud.designcenter.v1.SaaSRuntimeContext saas_runtime_context = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The saasRuntimeContext. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.SaaSRuntimeContext getSaasRuntimeContext() { + return saasRuntimeContext_ == null + ? com.google.cloud.designcenter.v1.SaaSRuntimeContext.getDefaultInstance() + : saasRuntimeContext_; + } + + /** + * + * + *
+   * Optional. SaaS runtime context for the application template.
+   * 
+ * + * + * .google.cloud.designcenter.v1.SaaSRuntimeContext saas_runtime_context = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.SaaSRuntimeContextOrBuilder + getSaasRuntimeContextOrBuilder() { + return saasRuntimeContext_ == null + ? com.google.cloud.designcenter.v1.SaaSRuntimeContext.getDefaultInstance() + : saasRuntimeContext_; + } + + public static final int LATEST_SYSTEM_REVISION_URI_FIELD_NUMBER = 19; + + @SuppressWarnings("serial") + private volatile java.lang.Object latestSystemRevisionUri_ = ""; + + /** + * + * + *
+   * Output only. The URI of the most recent System Revision generated for this
+   * ApplicationTemplate. This ID corresponds to the `name` field in the
+   * ApplicationTemplateSystemRevision resource.
+   * 
+ * + * + * string latest_system_revision_uri = 19 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The latestSystemRevisionUri. + */ + @java.lang.Override + public java.lang.String getLatestSystemRevisionUri() { + java.lang.Object ref = latestSystemRevisionUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + latestSystemRevisionUri_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The URI of the most recent System Revision generated for this
+   * ApplicationTemplate. This ID corresponds to the `name` field in the
+   * ApplicationTemplateSystemRevision resource.
+   * 
+ * + * + * string latest_system_revision_uri = 19 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for latestSystemRevisionUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLatestSystemRevisionUriBytes() { + java.lang.Object ref = latestSystemRevisionUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + latestSystemRevisionUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IAC_SOURCE_FIELD_NUMBER = 20; + private int iacSource_ = 0; + + /** + * + * + *
+   * Output only. Indicates the IaC source format of this application template.
+   * 
+ * + * + * .google.cloud.designcenter.v1.IACSource iac_source = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for iacSource. + */ + @java.lang.Override + public int getIacSourceValue() { + return iacSource_; + } + + /** + * + * + *
+   * Output only. Indicates the IaC source format of this application template.
+   * 
+ * + * + * .google.cloud.designcenter.v1.IACSource iac_source = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The iacSource. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.IACSource getIacSource() { + com.google.cloud.designcenter.v1.IACSource result = + com.google.cloud.designcenter.v1.IACSource.forNumber(iacSource_); + return result == null ? com.google.cloud.designcenter.v1.IACSource.UNRECOGNIZED : result; + } + + public static final int TEMPLATE_METADATA_FIELD_NUMBER = 21; + private com.google.cloud.designcenter.v1.TFBlueprintMetadata templateMetadata_; + + /** + * + * + *
+   * Output only. The input output variables parsed from the imported terraform
+   * code.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata template_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the templateMetadata field is set. + */ + @java.lang.Override + public boolean hasTemplateMetadata() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+   * Output only. The input output variables parsed from the imported terraform
+   * code.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata template_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The templateMetadata. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TFBlueprintMetadata getTemplateMetadata() { + return templateMetadata_ == null + ? com.google.cloud.designcenter.v1.TFBlueprintMetadata.getDefaultInstance() + : templateMetadata_; + } + + /** + * + * + *
+   * Output only. The input output variables parsed from the imported terraform
+   * code.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata template_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TFBlueprintMetadataOrBuilder + getTemplateMetadataOrBuilder() { + return templateMetadata_ == null + ? com.google.cloud.designcenter.v1.TFBlueprintMetadata.getDefaultInstance() + : templateMetadata_; + } + + public static final int INPUTS_AS_ROOT_MODULE_VARIABLES_FIELD_NUMBER = 22; + private boolean inputsAsRootModuleVariables_ = false; + + /** + * + * + *
+   * Optional. If true, exposes all inputs as root module variables.
+   * This is only supported for STANDARD composition type templates.
+   * 
+ * + * bool inputs_as_root_module_variables = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The inputsAsRootModuleVariables. + */ + @java.lang.Override + public boolean getInputsAsRootModuleVariables() { + return inputsAsRootModuleVariables_; + } + + 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, description_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getUpdateTime()); + } + for (int i = 0; i < applicationParameters_.size(); i++) { + output.writeMessage(6, applicationParameters_.get(i)); + } + if (iacFormat_ + != com.google.cloud.designcenter.v1.ApplicationTemplate.IACFormat.IAC_FORMAT_UNSPECIFIED + .getNumber()) { + output.writeEnum(10, iacFormat_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(11, getSerializedApplicationTemplate()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(latestRevision_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 12, latestRevision_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(14, getArtifactLocation()); + } + if (compositionType_ + != com.google.cloud.designcenter.v1.ApplicationCompositionType + .APPLICATION_COMPOSITION_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(15, compositionType_); + } + for (int i = 0; i < rootInputVariables_.size(); i++) { + output.writeMessage(16, rootInputVariables_.get(i)); + } + for (int i = 0; i < rootOutputVariables_.size(); i++) { + output.writeMessage(17, rootOutputVariables_.get(i)); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(18, getSaasRuntimeContext()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(latestSystemRevisionUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 19, latestSystemRevisionUri_); + } + if (iacSource_ + != com.google.cloud.designcenter.v1.IACSource.IAC_SOURCE_UNSPECIFIED.getNumber()) { + output.writeEnum(20, iacSource_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(21, getTemplateMetadata()); + } + if (inputsAsRootModuleVariables_ != false) { + output.writeBool(22, inputsAsRootModuleVariables_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, description_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateTime()); + } + for (int i = 0; i < applicationParameters_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, applicationParameters_.get(i)); + } + if (iacFormat_ + != com.google.cloud.designcenter.v1.ApplicationTemplate.IACFormat.IAC_FORMAT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, iacFormat_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 11, getSerializedApplicationTemplate()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(latestRevision_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(12, latestRevision_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getArtifactLocation()); + } + if (compositionType_ + != com.google.cloud.designcenter.v1.ApplicationCompositionType + .APPLICATION_COMPOSITION_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(15, compositionType_); + } + for (int i = 0; i < rootInputVariables_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(16, rootInputVariables_.get(i)); + } + for (int i = 0; i < rootOutputVariables_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(17, rootOutputVariables_.get(i)); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getSaasRuntimeContext()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(latestSystemRevisionUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(19, latestSystemRevisionUri_); + } + if (iacSource_ + != com.google.cloud.designcenter.v1.IACSource.IAC_SOURCE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(20, iacSource_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getTemplateMetadata()); + } + if (inputsAsRootModuleVariables_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(22, inputsAsRootModuleVariables_); + } + 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.designcenter.v1.ApplicationTemplate)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ApplicationTemplate other = + (com.google.cloud.designcenter.v1.ApplicationTemplate) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) 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 (!getApplicationParametersList().equals(other.getApplicationParametersList())) return false; + if (iacFormat_ != other.iacFormat_) return false; + if (hasSerializedApplicationTemplate() != other.hasSerializedApplicationTemplate()) + return false; + if (hasSerializedApplicationTemplate()) { + if (!getSerializedApplicationTemplate().equals(other.getSerializedApplicationTemplate())) + return false; + } + if (!getLatestRevision().equals(other.getLatestRevision())) return false; + if (hasArtifactLocation() != other.hasArtifactLocation()) return false; + if (hasArtifactLocation()) { + if (!getArtifactLocation().equals(other.getArtifactLocation())) return false; + } + if (compositionType_ != other.compositionType_) return false; + if (!getRootInputVariablesList().equals(other.getRootInputVariablesList())) return false; + if (!getRootOutputVariablesList().equals(other.getRootOutputVariablesList())) return false; + if (hasSaasRuntimeContext() != other.hasSaasRuntimeContext()) return false; + if (hasSaasRuntimeContext()) { + if (!getSaasRuntimeContext().equals(other.getSaasRuntimeContext())) return false; + } + if (!getLatestSystemRevisionUri().equals(other.getLatestSystemRevisionUri())) return false; + if (iacSource_ != other.iacSource_) return false; + if (hasTemplateMetadata() != other.hasTemplateMetadata()) return false; + if (hasTemplateMetadata()) { + if (!getTemplateMetadata().equals(other.getTemplateMetadata())) return false; + } + if (getInputsAsRootModuleVariables() != other.getInputsAsRootModuleVariables()) 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(); + 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 (getApplicationParametersCount() > 0) { + hash = (37 * hash) + APPLICATION_PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getApplicationParametersList().hashCode(); + } + hash = (37 * hash) + IAC_FORMAT_FIELD_NUMBER; + hash = (53 * hash) + iacFormat_; + if (hasSerializedApplicationTemplate()) { + hash = (37 * hash) + SERIALIZED_APPLICATION_TEMPLATE_FIELD_NUMBER; + hash = (53 * hash) + getSerializedApplicationTemplate().hashCode(); + } + hash = (37 * hash) + LATEST_REVISION_FIELD_NUMBER; + hash = (53 * hash) + getLatestRevision().hashCode(); + if (hasArtifactLocation()) { + hash = (37 * hash) + ARTIFACT_LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getArtifactLocation().hashCode(); + } + hash = (37 * hash) + COMPOSITION_TYPE_FIELD_NUMBER; + hash = (53 * hash) + compositionType_; + if (getRootInputVariablesCount() > 0) { + hash = (37 * hash) + ROOT_INPUT_VARIABLES_FIELD_NUMBER; + hash = (53 * hash) + getRootInputVariablesList().hashCode(); + } + if (getRootOutputVariablesCount() > 0) { + hash = (37 * hash) + ROOT_OUTPUT_VARIABLES_FIELD_NUMBER; + hash = (53 * hash) + getRootOutputVariablesList().hashCode(); + } + if (hasSaasRuntimeContext()) { + hash = (37 * hash) + SAAS_RUNTIME_CONTEXT_FIELD_NUMBER; + hash = (53 * hash) + getSaasRuntimeContext().hashCode(); + } + hash = (37 * hash) + LATEST_SYSTEM_REVISION_URI_FIELD_NUMBER; + hash = (53 * hash) + getLatestSystemRevisionUri().hashCode(); + hash = (37 * hash) + IAC_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + iacSource_; + if (hasTemplateMetadata()) { + hash = (37 * hash) + TEMPLATE_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getTemplateMetadata().hashCode(); + } + hash = (37 * hash) + INPUTS_AS_ROOT_MODULE_VARIABLES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getInputsAsRootModuleVariables()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.ApplicationTemplate parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ApplicationTemplate 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.designcenter.v1.ApplicationTemplate parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ApplicationTemplate parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ApplicationTemplate parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ApplicationTemplate parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ApplicationTemplate parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ApplicationTemplate parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ApplicationTemplate parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ApplicationTemplate parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ApplicationTemplate parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ApplicationTemplate parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ApplicationTemplate 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Application template resource.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ApplicationTemplate} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ApplicationTemplate) + com.google.cloud.designcenter.v1.ApplicationTemplateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringResourcesProto + .internal_static_google_cloud_designcenter_v1_ApplicationTemplate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringResourcesProto + .internal_static_google_cloud_designcenter_v1_ApplicationTemplate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ApplicationTemplate.class, + com.google.cloud.designcenter.v1.ApplicationTemplate.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.ApplicationTemplate.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + internalGetApplicationParametersFieldBuilder(); + internalGetSerializedApplicationTemplateFieldBuilder(); + internalGetArtifactLocationFieldBuilder(); + internalGetRootInputVariablesFieldBuilder(); + internalGetRootOutputVariablesFieldBuilder(); + internalGetSaasRuntimeContextFieldBuilder(); + internalGetTemplateMetadataFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + description_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + if (applicationParametersBuilder_ == null) { + applicationParameters_ = java.util.Collections.emptyList(); + } else { + applicationParameters_ = null; + applicationParametersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + iacFormat_ = 0; + serializedApplicationTemplate_ = null; + if (serializedApplicationTemplateBuilder_ != null) { + serializedApplicationTemplateBuilder_.dispose(); + serializedApplicationTemplateBuilder_ = null; + } + latestRevision_ = ""; + artifactLocation_ = null; + if (artifactLocationBuilder_ != null) { + artifactLocationBuilder_.dispose(); + artifactLocationBuilder_ = null; + } + compositionType_ = 0; + if (rootInputVariablesBuilder_ == null) { + rootInputVariables_ = java.util.Collections.emptyList(); + } else { + rootInputVariables_ = null; + rootInputVariablesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000800); + if (rootOutputVariablesBuilder_ == null) { + rootOutputVariables_ = java.util.Collections.emptyList(); + } else { + rootOutputVariables_ = null; + rootOutputVariablesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00001000); + saasRuntimeContext_ = null; + if (saasRuntimeContextBuilder_ != null) { + saasRuntimeContextBuilder_.dispose(); + saasRuntimeContextBuilder_ = null; + } + latestSystemRevisionUri_ = ""; + iacSource_ = 0; + templateMetadata_ = null; + if (templateMetadataBuilder_ != null) { + templateMetadataBuilder_.dispose(); + templateMetadataBuilder_ = null; + } + inputsAsRootModuleVariables_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.AuthoringResourcesProto + .internal_static_google_cloud_designcenter_v1_ApplicationTemplate_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ApplicationTemplate getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ApplicationTemplate.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ApplicationTemplate build() { + com.google.cloud.designcenter.v1.ApplicationTemplate result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ApplicationTemplate buildPartial() { + com.google.cloud.designcenter.v1.ApplicationTemplate result = + new com.google.cloud.designcenter.v1.ApplicationTemplate(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.designcenter.v1.ApplicationTemplate result) { + if (applicationParametersBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + applicationParameters_ = java.util.Collections.unmodifiableList(applicationParameters_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.applicationParameters_ = applicationParameters_; + } else { + result.applicationParameters_ = applicationParametersBuilder_.build(); + } + if (rootInputVariablesBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0)) { + rootInputVariables_ = java.util.Collections.unmodifiableList(rootInputVariables_); + bitField0_ = (bitField0_ & ~0x00000800); + } + result.rootInputVariables_ = rootInputVariables_; + } else { + result.rootInputVariables_ = rootInputVariablesBuilder_.build(); + } + if (rootOutputVariablesBuilder_ == null) { + if (((bitField0_ & 0x00001000) != 0)) { + rootOutputVariables_ = java.util.Collections.unmodifiableList(rootOutputVariables_); + bitField0_ = (bitField0_ & ~0x00001000); + } + result.rootOutputVariables_ = rootOutputVariables_; + } else { + result.rootOutputVariables_ = rootOutputVariablesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.designcenter.v1.ApplicationTemplate 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_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.iacFormat_ = iacFormat_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.serializedApplicationTemplate_ = + serializedApplicationTemplateBuilder_ == null + ? serializedApplicationTemplate_ + : serializedApplicationTemplateBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.latestRevision_ = latestRevision_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.artifactLocation_ = + artifactLocationBuilder_ == null ? artifactLocation_ : artifactLocationBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.compositionType_ = compositionType_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.saasRuntimeContext_ = + saasRuntimeContextBuilder_ == null + ? saasRuntimeContext_ + : saasRuntimeContextBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.latestSystemRevisionUri_ = latestSystemRevisionUri_; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.iacSource_ = iacSource_; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.templateMetadata_ = + templateMetadataBuilder_ == null ? templateMetadata_ : templateMetadataBuilder_.build(); + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.inputsAsRootModuleVariables_ = inputsAsRootModuleVariables_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.ApplicationTemplate) { + return mergeFrom((com.google.cloud.designcenter.v1.ApplicationTemplate) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.ApplicationTemplate other) { + if (other == com.google.cloud.designcenter.v1.ApplicationTemplate.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.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (applicationParametersBuilder_ == null) { + if (!other.applicationParameters_.isEmpty()) { + if (applicationParameters_.isEmpty()) { + applicationParameters_ = other.applicationParameters_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureApplicationParametersIsMutable(); + applicationParameters_.addAll(other.applicationParameters_); + } + onChanged(); + } + } else { + if (!other.applicationParameters_.isEmpty()) { + if (applicationParametersBuilder_.isEmpty()) { + applicationParametersBuilder_.dispose(); + applicationParametersBuilder_ = null; + applicationParameters_ = other.applicationParameters_; + bitField0_ = (bitField0_ & ~0x00000020); + applicationParametersBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetApplicationParametersFieldBuilder() + : null; + } else { + applicationParametersBuilder_.addAllMessages(other.applicationParameters_); + } + } + } + if (other.iacFormat_ != 0) { + setIacFormatValue(other.getIacFormatValue()); + } + if (other.hasSerializedApplicationTemplate()) { + mergeSerializedApplicationTemplate(other.getSerializedApplicationTemplate()); + } + if (!other.getLatestRevision().isEmpty()) { + latestRevision_ = other.latestRevision_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (other.hasArtifactLocation()) { + mergeArtifactLocation(other.getArtifactLocation()); + } + if (other.compositionType_ != 0) { + setCompositionTypeValue(other.getCompositionTypeValue()); + } + if (rootInputVariablesBuilder_ == null) { + if (!other.rootInputVariables_.isEmpty()) { + if (rootInputVariables_.isEmpty()) { + rootInputVariables_ = other.rootInputVariables_; + bitField0_ = (bitField0_ & ~0x00000800); + } else { + ensureRootInputVariablesIsMutable(); + rootInputVariables_.addAll(other.rootInputVariables_); + } + onChanged(); + } + } else { + if (!other.rootInputVariables_.isEmpty()) { + if (rootInputVariablesBuilder_.isEmpty()) { + rootInputVariablesBuilder_.dispose(); + rootInputVariablesBuilder_ = null; + rootInputVariables_ = other.rootInputVariables_; + bitField0_ = (bitField0_ & ~0x00000800); + rootInputVariablesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetRootInputVariablesFieldBuilder() + : null; + } else { + rootInputVariablesBuilder_.addAllMessages(other.rootInputVariables_); + } + } + } + if (rootOutputVariablesBuilder_ == null) { + if (!other.rootOutputVariables_.isEmpty()) { + if (rootOutputVariables_.isEmpty()) { + rootOutputVariables_ = other.rootOutputVariables_; + bitField0_ = (bitField0_ & ~0x00001000); + } else { + ensureRootOutputVariablesIsMutable(); + rootOutputVariables_.addAll(other.rootOutputVariables_); + } + onChanged(); + } + } else { + if (!other.rootOutputVariables_.isEmpty()) { + if (rootOutputVariablesBuilder_.isEmpty()) { + rootOutputVariablesBuilder_.dispose(); + rootOutputVariablesBuilder_ = null; + rootOutputVariables_ = other.rootOutputVariables_; + bitField0_ = (bitField0_ & ~0x00001000); + rootOutputVariablesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetRootOutputVariablesFieldBuilder() + : null; + } else { + rootOutputVariablesBuilder_.addAllMessages(other.rootOutputVariables_); + } + } + } + if (other.hasSaasRuntimeContext()) { + mergeSaasRuntimeContext(other.getSaasRuntimeContext()); + } + if (!other.getLatestSystemRevisionUri().isEmpty()) { + latestSystemRevisionUri_ = other.latestSystemRevisionUri_; + bitField0_ |= 0x00004000; + onChanged(); + } + if (other.iacSource_ != 0) { + setIacSourceValue(other.getIacSourceValue()); + } + if (other.hasTemplateMetadata()) { + mergeTemplateMetadata(other.getTemplateMetadata()); + } + if (other.getInputsAsRootModuleVariables() != false) { + setInputsAsRootModuleVariables(other.getInputsAsRootModuleVariables()); + } + 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 34: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + com.google.cloud.designcenter.v1.Parameter m = + input.readMessage( + com.google.cloud.designcenter.v1.Parameter.parser(), extensionRegistry); + if (applicationParametersBuilder_ == null) { + ensureApplicationParametersIsMutable(); + applicationParameters_.add(m); + } else { + applicationParametersBuilder_.addMessage(m); + } + break; + } // case 50 + case 80: + { + iacFormat_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 80 + case 90: + { + input.readMessage( + internalGetSerializedApplicationTemplateFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 90 + case 98: + { + latestRevision_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 98 + case 114: + { + input.readMessage( + internalGetArtifactLocationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 114 + case 120: + { + compositionType_ = input.readEnum(); + bitField0_ |= 0x00000400; + break; + } // case 120 + case 130: + { + com.google.cloud.designcenter.v1.ComponentVariable m = + input.readMessage( + com.google.cloud.designcenter.v1.ComponentVariable.parser(), + extensionRegistry); + if (rootInputVariablesBuilder_ == null) { + ensureRootInputVariablesIsMutable(); + rootInputVariables_.add(m); + } else { + rootInputVariablesBuilder_.addMessage(m); + } + break; + } // case 130 + case 138: + { + com.google.cloud.designcenter.v1.ComponentVariable m = + input.readMessage( + com.google.cloud.designcenter.v1.ComponentVariable.parser(), + extensionRegistry); + if (rootOutputVariablesBuilder_ == null) { + ensureRootOutputVariablesIsMutable(); + rootOutputVariables_.add(m); + } else { + rootOutputVariablesBuilder_.addMessage(m); + } + break; + } // case 138 + case 146: + { + input.readMessage( + internalGetSaasRuntimeContextFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00002000; + break; + } // case 146 + case 154: + { + latestSystemRevisionUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00004000; + break; + } // case 154 + case 160: + { + iacSource_ = input.readEnum(); + bitField0_ |= 0x00008000; + break; + } // case 160 + case 170: + { + input.readMessage( + internalGetTemplateMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00010000; + break; + } // case 170 + case 176: + { + inputsAsRootModuleVariables_ = input.readBool(); + bitField0_ |= 0x00020000; + break; + } // case 176 + default: + { + 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_ = ""; + + /** + * + * + *
+     * Identifier. Application template name.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.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; + } + } + + /** + * + * + *
+     * Identifier. Application template name.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + + /** + * + * + *
+     * Identifier. Application template name.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + + /** + * + * + *
+     * Identifier. Application template name.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier. Application template name.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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_ = ""; + + /** + * + * + *
+     * Optional. Application template display name.
+     * 
+ * + * string display_name = 2 [(.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. Application template display name.
+     * 
+ * + * string display_name = 2 [(.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. Application template display name.
+     * 
+ * + * string display_name = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Application template display name.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Application template display name.
+     * 
+ * + * string display_name = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
+     * Optional. Application template description.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Application template description.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Application template description.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Application template description.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Application template description.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
+     * Output only. Application template creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Output only. Application template creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.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. Application template creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Application template creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Application template creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Application template creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000008); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Application template creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Application template creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.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. Application template creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + 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.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
+     * Output only. Application template update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Output only. Application template update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.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. Application template update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.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_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Application template update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.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_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Application template update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Application template update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000010); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Application template update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Application template update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.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. Application template update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private java.util.List applicationParameters_ = + java.util.Collections.emptyList(); + + private void ensureApplicationParametersIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + applicationParameters_ = + new java.util.ArrayList( + applicationParameters_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Parameter, + com.google.cloud.designcenter.v1.Parameter.Builder, + com.google.cloud.designcenter.v1.ParameterOrBuilder> + applicationParametersBuilder_; + + /** + * + * + *
+     * Optional. Parameters to apply to all components in an application. You can
+     * specify projectID and region.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getApplicationParametersList() { + if (applicationParametersBuilder_ == null) { + return java.util.Collections.unmodifiableList(applicationParameters_); + } else { + return applicationParametersBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. Parameters to apply to all components in an application. You can
+     * specify projectID and region.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getApplicationParametersCount() { + if (applicationParametersBuilder_ == null) { + return applicationParameters_.size(); + } else { + return applicationParametersBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. Parameters to apply to all components in an application. You can
+     * specify projectID and region.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter getApplicationParameters(int index) { + if (applicationParametersBuilder_ == null) { + return applicationParameters_.get(index); + } else { + return applicationParametersBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. Parameters to apply to all components in an application. You can
+     * specify projectID and region.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setApplicationParameters( + int index, com.google.cloud.designcenter.v1.Parameter value) { + if (applicationParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicationParametersIsMutable(); + applicationParameters_.set(index, value); + onChanged(); + } else { + applicationParametersBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Parameters to apply to all components in an application. You can
+     * specify projectID and region.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setApplicationParameters( + int index, com.google.cloud.designcenter.v1.Parameter.Builder builderForValue) { + if (applicationParametersBuilder_ == null) { + ensureApplicationParametersIsMutable(); + applicationParameters_.set(index, builderForValue.build()); + onChanged(); + } else { + applicationParametersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Parameters to apply to all components in an application. You can
+     * specify projectID and region.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addApplicationParameters(com.google.cloud.designcenter.v1.Parameter value) { + if (applicationParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicationParametersIsMutable(); + applicationParameters_.add(value); + onChanged(); + } else { + applicationParametersBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. Parameters to apply to all components in an application. You can
+     * specify projectID and region.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addApplicationParameters( + int index, com.google.cloud.designcenter.v1.Parameter value) { + if (applicationParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicationParametersIsMutable(); + applicationParameters_.add(index, value); + onChanged(); + } else { + applicationParametersBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Parameters to apply to all components in an application. You can
+     * specify projectID and region.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addApplicationParameters( + com.google.cloud.designcenter.v1.Parameter.Builder builderForValue) { + if (applicationParametersBuilder_ == null) { + ensureApplicationParametersIsMutable(); + applicationParameters_.add(builderForValue.build()); + onChanged(); + } else { + applicationParametersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Parameters to apply to all components in an application. You can
+     * specify projectID and region.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addApplicationParameters( + int index, com.google.cloud.designcenter.v1.Parameter.Builder builderForValue) { + if (applicationParametersBuilder_ == null) { + ensureApplicationParametersIsMutable(); + applicationParameters_.add(index, builderForValue.build()); + onChanged(); + } else { + applicationParametersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Parameters to apply to all components in an application. You can
+     * specify projectID and region.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllApplicationParameters( + java.lang.Iterable values) { + if (applicationParametersBuilder_ == null) { + ensureApplicationParametersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, applicationParameters_); + onChanged(); + } else { + applicationParametersBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. Parameters to apply to all components in an application. You can
+     * specify projectID and region.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearApplicationParameters() { + if (applicationParametersBuilder_ == null) { + applicationParameters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + applicationParametersBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Parameters to apply to all components in an application. You can
+     * specify projectID and region.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeApplicationParameters(int index) { + if (applicationParametersBuilder_ == null) { + ensureApplicationParametersIsMutable(); + applicationParameters_.remove(index); + onChanged(); + } else { + applicationParametersBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. Parameters to apply to all components in an application. You can
+     * specify projectID and region.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter.Builder getApplicationParametersBuilder( + int index) { + return internalGetApplicationParametersFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. Parameters to apply to all components in an application. You can
+     * specify projectID and region.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ParameterOrBuilder getApplicationParametersOrBuilder( + int index) { + if (applicationParametersBuilder_ == null) { + return applicationParameters_.get(index); + } else { + return applicationParametersBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. Parameters to apply to all components in an application. You can
+     * specify projectID and region.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getApplicationParametersOrBuilderList() { + if (applicationParametersBuilder_ != null) { + return applicationParametersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(applicationParameters_); + } + } + + /** + * + * + *
+     * Optional. Parameters to apply to all components in an application. You can
+     * specify projectID and region.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter.Builder addApplicationParametersBuilder() { + return internalGetApplicationParametersFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.Parameter.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Parameters to apply to all components in an application. You can
+     * specify projectID and region.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter.Builder addApplicationParametersBuilder( + int index) { + return internalGetApplicationParametersFieldBuilder() + .addBuilder(index, com.google.cloud.designcenter.v1.Parameter.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Parameters to apply to all components in an application. You can
+     * specify projectID and region.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getApplicationParametersBuilderList() { + return internalGetApplicationParametersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Parameter, + com.google.cloud.designcenter.v1.Parameter.Builder, + com.google.cloud.designcenter.v1.ParameterOrBuilder> + internalGetApplicationParametersFieldBuilder() { + if (applicationParametersBuilder_ == null) { + applicationParametersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Parameter, + com.google.cloud.designcenter.v1.Parameter.Builder, + com.google.cloud.designcenter.v1.ParameterOrBuilder>( + applicationParameters_, + ((bitField0_ & 0x00000020) != 0), + getParentForChildren(), + isClean()); + applicationParameters_ = null; + } + return applicationParametersBuilder_; + } + + private int iacFormat_ = 0; + + /** + * + * + *
+     * Output only. The IaC format of the application template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationTemplate.IACFormat iac_format = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for iacFormat. + */ + @java.lang.Override + public int getIacFormatValue() { + return iacFormat_; + } + + /** + * + * + *
+     * Output only. The IaC format of the application template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationTemplate.IACFormat iac_format = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for iacFormat to set. + * @return This builder for chaining. + */ + public Builder setIacFormatValue(int value) { + iacFormat_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The IaC format of the application template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationTemplate.IACFormat iac_format = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The iacFormat. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ApplicationTemplate.IACFormat getIacFormat() { + com.google.cloud.designcenter.v1.ApplicationTemplate.IACFormat result = + com.google.cloud.designcenter.v1.ApplicationTemplate.IACFormat.forNumber(iacFormat_); + return result == null + ? com.google.cloud.designcenter.v1.ApplicationTemplate.IACFormat.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Output only. The IaC format of the application template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationTemplate.IACFormat iac_format = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The iacFormat to set. + * @return This builder for chaining. + */ + public Builder setIacFormat( + com.google.cloud.designcenter.v1.ApplicationTemplate.IACFormat value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + iacFormat_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The IaC format of the application template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationTemplate.IACFormat iac_format = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearIacFormat() { + bitField0_ = (bitField0_ & ~0x00000040); + iacFormat_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.designcenter.v1.SerializedApplicationTemplate + serializedApplicationTemplate_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.SerializedApplicationTemplate, + com.google.cloud.designcenter.v1.SerializedApplicationTemplate.Builder, + com.google.cloud.designcenter.v1.SerializedApplicationTemplateOrBuilder> + serializedApplicationTemplateBuilder_; + + /** + * + * + *
+     * Output only. The serialized application template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate serialized_application_template = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the serializedApplicationTemplate field is set. + */ + public boolean hasSerializedApplicationTemplate() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+     * Output only. The serialized application template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate serialized_application_template = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The serializedApplicationTemplate. + */ + public com.google.cloud.designcenter.v1.SerializedApplicationTemplate + getSerializedApplicationTemplate() { + if (serializedApplicationTemplateBuilder_ == null) { + return serializedApplicationTemplate_ == null + ? com.google.cloud.designcenter.v1.SerializedApplicationTemplate.getDefaultInstance() + : serializedApplicationTemplate_; + } else { + return serializedApplicationTemplateBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. The serialized application template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate serialized_application_template = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSerializedApplicationTemplate( + com.google.cloud.designcenter.v1.SerializedApplicationTemplate value) { + if (serializedApplicationTemplateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + serializedApplicationTemplate_ = value; + } else { + serializedApplicationTemplateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The serialized application template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate serialized_application_template = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSerializedApplicationTemplate( + com.google.cloud.designcenter.v1.SerializedApplicationTemplate.Builder builderForValue) { + if (serializedApplicationTemplateBuilder_ == null) { + serializedApplicationTemplate_ = builderForValue.build(); + } else { + serializedApplicationTemplateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The serialized application template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate serialized_application_template = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeSerializedApplicationTemplate( + com.google.cloud.designcenter.v1.SerializedApplicationTemplate value) { + if (serializedApplicationTemplateBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && serializedApplicationTemplate_ != null + && serializedApplicationTemplate_ + != com.google.cloud.designcenter.v1.SerializedApplicationTemplate + .getDefaultInstance()) { + getSerializedApplicationTemplateBuilder().mergeFrom(value); + } else { + serializedApplicationTemplate_ = value; + } + } else { + serializedApplicationTemplateBuilder_.mergeFrom(value); + } + if (serializedApplicationTemplate_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The serialized application template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate serialized_application_template = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearSerializedApplicationTemplate() { + bitField0_ = (bitField0_ & ~0x00000080); + serializedApplicationTemplate_ = null; + if (serializedApplicationTemplateBuilder_ != null) { + serializedApplicationTemplateBuilder_.dispose(); + serializedApplicationTemplateBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The serialized application template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate serialized_application_template = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.SerializedApplicationTemplate.Builder + getSerializedApplicationTemplateBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return internalGetSerializedApplicationTemplateFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The serialized application template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate serialized_application_template = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.SerializedApplicationTemplateOrBuilder + getSerializedApplicationTemplateOrBuilder() { + if (serializedApplicationTemplateBuilder_ != null) { + return serializedApplicationTemplateBuilder_.getMessageOrBuilder(); + } else { + return serializedApplicationTemplate_ == null + ? com.google.cloud.designcenter.v1.SerializedApplicationTemplate.getDefaultInstance() + : serializedApplicationTemplate_; + } + } + + /** + * + * + *
+     * Output only. The serialized application template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate serialized_application_template = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.SerializedApplicationTemplate, + com.google.cloud.designcenter.v1.SerializedApplicationTemplate.Builder, + com.google.cloud.designcenter.v1.SerializedApplicationTemplateOrBuilder> + internalGetSerializedApplicationTemplateFieldBuilder() { + if (serializedApplicationTemplateBuilder_ == null) { + serializedApplicationTemplateBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.SerializedApplicationTemplate, + com.google.cloud.designcenter.v1.SerializedApplicationTemplate.Builder, + com.google.cloud.designcenter.v1.SerializedApplicationTemplateOrBuilder>( + getSerializedApplicationTemplate(), getParentForChildren(), isClean()); + serializedApplicationTemplate_ = null; + } + return serializedApplicationTemplateBuilder_; + } + + private java.lang.Object latestRevision_ = ""; + + /** + * + * + *
+     * Output only. The latest application template revision.
+     * 
+ * + * string latest_revision = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The latestRevision. + */ + public java.lang.String getLatestRevision() { + java.lang.Object ref = latestRevision_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + latestRevision_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The latest application template revision.
+     * 
+ * + * string latest_revision = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for latestRevision. + */ + public com.google.protobuf.ByteString getLatestRevisionBytes() { + java.lang.Object ref = latestRevision_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + latestRevision_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The latest application template revision.
+     * 
+ * + * string latest_revision = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The latestRevision to set. + * @return This builder for chaining. + */ + public Builder setLatestRevision(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + latestRevision_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The latest application template revision.
+     * 
+ * + * string latest_revision = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearLatestRevision() { + latestRevision_ = getDefaultInstance().getLatestRevision(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The latest application template revision.
+     * 
+ * + * string latest_revision = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for latestRevision to set. + * @return This builder for chaining. + */ + public Builder setLatestRevisionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + latestRevision_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private com.google.cloud.designcenter.v1.ArtifactLocation artifactLocation_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ArtifactLocation, + com.google.cloud.designcenter.v1.ArtifactLocation.Builder, + com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder> + artifactLocationBuilder_; + + /** + * + * + *
+     * Output only. Details of the location where the IaC for this
+     * ApplicationTemplate was last successfully exported.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the artifactLocation field is set. + */ + public boolean hasArtifactLocation() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
+     * Output only. Details of the location where the IaC for this
+     * ApplicationTemplate was last successfully exported.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The artifactLocation. + */ + public com.google.cloud.designcenter.v1.ArtifactLocation getArtifactLocation() { + if (artifactLocationBuilder_ == null) { + return artifactLocation_ == null + ? com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance() + : artifactLocation_; + } else { + return artifactLocationBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Details of the location where the IaC for this
+     * ApplicationTemplate was last successfully exported.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setArtifactLocation(com.google.cloud.designcenter.v1.ArtifactLocation value) { + if (artifactLocationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + artifactLocation_ = value; + } else { + artifactLocationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Details of the location where the IaC for this
+     * ApplicationTemplate was last successfully exported.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setArtifactLocation( + com.google.cloud.designcenter.v1.ArtifactLocation.Builder builderForValue) { + if (artifactLocationBuilder_ == null) { + artifactLocation_ = builderForValue.build(); + } else { + artifactLocationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Details of the location where the IaC for this
+     * ApplicationTemplate was last successfully exported.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeArtifactLocation(com.google.cloud.designcenter.v1.ArtifactLocation value) { + if (artifactLocationBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && artifactLocation_ != null + && artifactLocation_ + != com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance()) { + getArtifactLocationBuilder().mergeFrom(value); + } else { + artifactLocation_ = value; + } + } else { + artifactLocationBuilder_.mergeFrom(value); + } + if (artifactLocation_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Details of the location where the IaC for this
+     * ApplicationTemplate was last successfully exported.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearArtifactLocation() { + bitField0_ = (bitField0_ & ~0x00000200); + artifactLocation_ = null; + if (artifactLocationBuilder_ != null) { + artifactLocationBuilder_.dispose(); + artifactLocationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Details of the location where the IaC for this
+     * ApplicationTemplate was last successfully exported.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ArtifactLocation.Builder getArtifactLocationBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return internalGetArtifactLocationFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Details of the location where the IaC for this
+     * ApplicationTemplate was last successfully exported.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder + getArtifactLocationOrBuilder() { + if (artifactLocationBuilder_ != null) { + return artifactLocationBuilder_.getMessageOrBuilder(); + } else { + return artifactLocation_ == null + ? com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance() + : artifactLocation_; + } + } + + /** + * + * + *
+     * Output only. Details of the location where the IaC for this
+     * ApplicationTemplate was last successfully exported.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ArtifactLocation, + com.google.cloud.designcenter.v1.ArtifactLocation.Builder, + com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder> + internalGetArtifactLocationFieldBuilder() { + if (artifactLocationBuilder_ == null) { + artifactLocationBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ArtifactLocation, + com.google.cloud.designcenter.v1.ArtifactLocation.Builder, + com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder>( + getArtifactLocation(), getParentForChildren(), isClean()); + artifactLocation_ = null; + } + return artifactLocationBuilder_; + } + + private int compositionType_ = 0; + + /** + * + * + *
+     * Optional. Immutable. The composition type of the applicationTemplate:
+     * STANDARD OR COMPOSITE. This is a create time only param.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationCompositionType composition_type = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for compositionType. + */ + @java.lang.Override + public int getCompositionTypeValue() { + return compositionType_; + } + + /** + * + * + *
+     * Optional. Immutable. The composition type of the applicationTemplate:
+     * STANDARD OR COMPOSITE. This is a create time only param.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationCompositionType composition_type = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The enum numeric value on the wire for compositionType to set. + * @return This builder for chaining. + */ + public Builder setCompositionTypeValue(int value) { + compositionType_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Immutable. The composition type of the applicationTemplate:
+     * STANDARD OR COMPOSITE. This is a create time only param.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationCompositionType composition_type = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The compositionType. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ApplicationCompositionType getCompositionType() { + com.google.cloud.designcenter.v1.ApplicationCompositionType result = + com.google.cloud.designcenter.v1.ApplicationCompositionType.forNumber(compositionType_); + return result == null + ? com.google.cloud.designcenter.v1.ApplicationCompositionType.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Optional. Immutable. The composition type of the applicationTemplate:
+     * STANDARD OR COMPOSITE. This is a create time only param.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationCompositionType composition_type = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The compositionType to set. + * @return This builder for chaining. + */ + public Builder setCompositionType( + com.google.cloud.designcenter.v1.ApplicationCompositionType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000400; + compositionType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Immutable. The composition type of the applicationTemplate:
+     * STANDARD OR COMPOSITE. This is a create time only param.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationCompositionType composition_type = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearCompositionType() { + bitField0_ = (bitField0_ & ~0x00000400); + compositionType_ = 0; + onChanged(); + return this; + } + + private java.util.List rootInputVariables_ = + java.util.Collections.emptyList(); + + private void ensureRootInputVariablesIsMutable() { + if (!((bitField0_ & 0x00000800) != 0)) { + rootInputVariables_ = + new java.util.ArrayList( + rootInputVariables_); + bitField0_ |= 0x00000800; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ComponentVariable, + com.google.cloud.designcenter.v1.ComponentVariable.Builder, + com.google.cloud.designcenter.v1.ComponentVariableOrBuilder> + rootInputVariablesBuilder_; + + /** + * + * + *
+     * Optional. Root level input variables of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_input_variables = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getRootInputVariablesList() { + if (rootInputVariablesBuilder_ == null) { + return java.util.Collections.unmodifiableList(rootInputVariables_); + } else { + return rootInputVariablesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. Root level input variables of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_input_variables = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getRootInputVariablesCount() { + if (rootInputVariablesBuilder_ == null) { + return rootInputVariables_.size(); + } else { + return rootInputVariablesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. Root level input variables of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_input_variables = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ComponentVariable getRootInputVariables(int index) { + if (rootInputVariablesBuilder_ == null) { + return rootInputVariables_.get(index); + } else { + return rootInputVariablesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. Root level input variables of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_input_variables = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRootInputVariables( + int index, com.google.cloud.designcenter.v1.ComponentVariable value) { + if (rootInputVariablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRootInputVariablesIsMutable(); + rootInputVariables_.set(index, value); + onChanged(); + } else { + rootInputVariablesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Root level input variables of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_input_variables = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRootInputVariables( + int index, com.google.cloud.designcenter.v1.ComponentVariable.Builder builderForValue) { + if (rootInputVariablesBuilder_ == null) { + ensureRootInputVariablesIsMutable(); + rootInputVariables_.set(index, builderForValue.build()); + onChanged(); + } else { + rootInputVariablesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Root level input variables of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_input_variables = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addRootInputVariables(com.google.cloud.designcenter.v1.ComponentVariable value) { + if (rootInputVariablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRootInputVariablesIsMutable(); + rootInputVariables_.add(value); + onChanged(); + } else { + rootInputVariablesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. Root level input variables of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_input_variables = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addRootInputVariables( + int index, com.google.cloud.designcenter.v1.ComponentVariable value) { + if (rootInputVariablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRootInputVariablesIsMutable(); + rootInputVariables_.add(index, value); + onChanged(); + } else { + rootInputVariablesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Root level input variables of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_input_variables = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addRootInputVariables( + com.google.cloud.designcenter.v1.ComponentVariable.Builder builderForValue) { + if (rootInputVariablesBuilder_ == null) { + ensureRootInputVariablesIsMutable(); + rootInputVariables_.add(builderForValue.build()); + onChanged(); + } else { + rootInputVariablesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Root level input variables of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_input_variables = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addRootInputVariables( + int index, com.google.cloud.designcenter.v1.ComponentVariable.Builder builderForValue) { + if (rootInputVariablesBuilder_ == null) { + ensureRootInputVariablesIsMutable(); + rootInputVariables_.add(index, builderForValue.build()); + onChanged(); + } else { + rootInputVariablesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Root level input variables of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_input_variables = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllRootInputVariables( + java.lang.Iterable values) { + if (rootInputVariablesBuilder_ == null) { + ensureRootInputVariablesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rootInputVariables_); + onChanged(); + } else { + rootInputVariablesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. Root level input variables of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_input_variables = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearRootInputVariables() { + if (rootInputVariablesBuilder_ == null) { + rootInputVariables_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + } else { + rootInputVariablesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Root level input variables of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_input_variables = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeRootInputVariables(int index) { + if (rootInputVariablesBuilder_ == null) { + ensureRootInputVariablesIsMutable(); + rootInputVariables_.remove(index); + onChanged(); + } else { + rootInputVariablesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. Root level input variables of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_input_variables = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ComponentVariable.Builder getRootInputVariablesBuilder( + int index) { + return internalGetRootInputVariablesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. Root level input variables of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_input_variables = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ComponentVariableOrBuilder + getRootInputVariablesOrBuilder(int index) { + if (rootInputVariablesBuilder_ == null) { + return rootInputVariables_.get(index); + } else { + return rootInputVariablesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. Root level input variables of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_input_variables = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getRootInputVariablesOrBuilderList() { + if (rootInputVariablesBuilder_ != null) { + return rootInputVariablesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(rootInputVariables_); + } + } + + /** + * + * + *
+     * Optional. Root level input variables of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_input_variables = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ComponentVariable.Builder + addRootInputVariablesBuilder() { + return internalGetRootInputVariablesFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.ComponentVariable.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Root level input variables of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_input_variables = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ComponentVariable.Builder addRootInputVariablesBuilder( + int index) { + return internalGetRootInputVariablesFieldBuilder() + .addBuilder( + index, com.google.cloud.designcenter.v1.ComponentVariable.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Root level input variables of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_input_variables = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getRootInputVariablesBuilderList() { + return internalGetRootInputVariablesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ComponentVariable, + com.google.cloud.designcenter.v1.ComponentVariable.Builder, + com.google.cloud.designcenter.v1.ComponentVariableOrBuilder> + internalGetRootInputVariablesFieldBuilder() { + if (rootInputVariablesBuilder_ == null) { + rootInputVariablesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ComponentVariable, + com.google.cloud.designcenter.v1.ComponentVariable.Builder, + com.google.cloud.designcenter.v1.ComponentVariableOrBuilder>( + rootInputVariables_, + ((bitField0_ & 0x00000800) != 0), + getParentForChildren(), + isClean()); + rootInputVariables_ = null; + } + return rootInputVariablesBuilder_; + } + + private java.util.List + rootOutputVariables_ = java.util.Collections.emptyList(); + + private void ensureRootOutputVariablesIsMutable() { + if (!((bitField0_ & 0x00001000) != 0)) { + rootOutputVariables_ = + new java.util.ArrayList( + rootOutputVariables_); + bitField0_ |= 0x00001000; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ComponentVariable, + com.google.cloud.designcenter.v1.ComponentVariable.Builder, + com.google.cloud.designcenter.v1.ComponentVariableOrBuilder> + rootOutputVariablesBuilder_; + + /** + * + * + *
+     * Optional. Root level output variables of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_output_variables = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getRootOutputVariablesList() { + if (rootOutputVariablesBuilder_ == null) { + return java.util.Collections.unmodifiableList(rootOutputVariables_); + } else { + return rootOutputVariablesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. Root level output variables of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_output_variables = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getRootOutputVariablesCount() { + if (rootOutputVariablesBuilder_ == null) { + return rootOutputVariables_.size(); + } else { + return rootOutputVariablesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. Root level output variables of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_output_variables = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ComponentVariable getRootOutputVariables(int index) { + if (rootOutputVariablesBuilder_ == null) { + return rootOutputVariables_.get(index); + } else { + return rootOutputVariablesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. Root level output variables of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_output_variables = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRootOutputVariables( + int index, com.google.cloud.designcenter.v1.ComponentVariable value) { + if (rootOutputVariablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRootOutputVariablesIsMutable(); + rootOutputVariables_.set(index, value); + onChanged(); + } else { + rootOutputVariablesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Root level output variables of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_output_variables = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRootOutputVariables( + int index, com.google.cloud.designcenter.v1.ComponentVariable.Builder builderForValue) { + if (rootOutputVariablesBuilder_ == null) { + ensureRootOutputVariablesIsMutable(); + rootOutputVariables_.set(index, builderForValue.build()); + onChanged(); + } else { + rootOutputVariablesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Root level output variables of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_output_variables = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addRootOutputVariables( + com.google.cloud.designcenter.v1.ComponentVariable value) { + if (rootOutputVariablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRootOutputVariablesIsMutable(); + rootOutputVariables_.add(value); + onChanged(); + } else { + rootOutputVariablesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. Root level output variables of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_output_variables = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addRootOutputVariables( + int index, com.google.cloud.designcenter.v1.ComponentVariable value) { + if (rootOutputVariablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRootOutputVariablesIsMutable(); + rootOutputVariables_.add(index, value); + onChanged(); + } else { + rootOutputVariablesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Root level output variables of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_output_variables = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addRootOutputVariables( + com.google.cloud.designcenter.v1.ComponentVariable.Builder builderForValue) { + if (rootOutputVariablesBuilder_ == null) { + ensureRootOutputVariablesIsMutable(); + rootOutputVariables_.add(builderForValue.build()); + onChanged(); + } else { + rootOutputVariablesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Root level output variables of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_output_variables = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addRootOutputVariables( + int index, com.google.cloud.designcenter.v1.ComponentVariable.Builder builderForValue) { + if (rootOutputVariablesBuilder_ == null) { + ensureRootOutputVariablesIsMutable(); + rootOutputVariables_.add(index, builderForValue.build()); + onChanged(); + } else { + rootOutputVariablesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Root level output variables of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_output_variables = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllRootOutputVariables( + java.lang.Iterable values) { + if (rootOutputVariablesBuilder_ == null) { + ensureRootOutputVariablesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rootOutputVariables_); + onChanged(); + } else { + rootOutputVariablesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. Root level output variables of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_output_variables = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearRootOutputVariables() { + if (rootOutputVariablesBuilder_ == null) { + rootOutputVariables_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + } else { + rootOutputVariablesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Root level output variables of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_output_variables = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeRootOutputVariables(int index) { + if (rootOutputVariablesBuilder_ == null) { + ensureRootOutputVariablesIsMutable(); + rootOutputVariables_.remove(index); + onChanged(); + } else { + rootOutputVariablesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. Root level output variables of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_output_variables = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ComponentVariable.Builder getRootOutputVariablesBuilder( + int index) { + return internalGetRootOutputVariablesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. Root level output variables of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_output_variables = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ComponentVariableOrBuilder + getRootOutputVariablesOrBuilder(int index) { + if (rootOutputVariablesBuilder_ == null) { + return rootOutputVariables_.get(index); + } else { + return rootOutputVariablesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. Root level output variables of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_output_variables = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getRootOutputVariablesOrBuilderList() { + if (rootOutputVariablesBuilder_ != null) { + return rootOutputVariablesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(rootOutputVariables_); + } + } + + /** + * + * + *
+     * Optional. Root level output variables of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_output_variables = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ComponentVariable.Builder + addRootOutputVariablesBuilder() { + return internalGetRootOutputVariablesFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.ComponentVariable.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Root level output variables of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_output_variables = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ComponentVariable.Builder addRootOutputVariablesBuilder( + int index) { + return internalGetRootOutputVariablesFieldBuilder() + .addBuilder( + index, com.google.cloud.designcenter.v1.ComponentVariable.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Root level output variables of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_output_variables = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getRootOutputVariablesBuilderList() { + return internalGetRootOutputVariablesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ComponentVariable, + com.google.cloud.designcenter.v1.ComponentVariable.Builder, + com.google.cloud.designcenter.v1.ComponentVariableOrBuilder> + internalGetRootOutputVariablesFieldBuilder() { + if (rootOutputVariablesBuilder_ == null) { + rootOutputVariablesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ComponentVariable, + com.google.cloud.designcenter.v1.ComponentVariable.Builder, + com.google.cloud.designcenter.v1.ComponentVariableOrBuilder>( + rootOutputVariables_, + ((bitField0_ & 0x00001000) != 0), + getParentForChildren(), + isClean()); + rootOutputVariables_ = null; + } + return rootOutputVariablesBuilder_; + } + + private com.google.cloud.designcenter.v1.SaaSRuntimeContext saasRuntimeContext_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.SaaSRuntimeContext, + com.google.cloud.designcenter.v1.SaaSRuntimeContext.Builder, + com.google.cloud.designcenter.v1.SaaSRuntimeContextOrBuilder> + saasRuntimeContextBuilder_; + + /** + * + * + *
+     * Optional. SaaS runtime context for the application template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SaaSRuntimeContext saas_runtime_context = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the saasRuntimeContext field is set. + */ + public boolean hasSaasRuntimeContext() { + return ((bitField0_ & 0x00002000) != 0); + } + + /** + * + * + *
+     * Optional. SaaS runtime context for the application template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SaaSRuntimeContext saas_runtime_context = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The saasRuntimeContext. + */ + public com.google.cloud.designcenter.v1.SaaSRuntimeContext getSaasRuntimeContext() { + if (saasRuntimeContextBuilder_ == null) { + return saasRuntimeContext_ == null + ? com.google.cloud.designcenter.v1.SaaSRuntimeContext.getDefaultInstance() + : saasRuntimeContext_; + } else { + return saasRuntimeContextBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. SaaS runtime context for the application template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SaaSRuntimeContext saas_runtime_context = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSaasRuntimeContext( + com.google.cloud.designcenter.v1.SaaSRuntimeContext value) { + if (saasRuntimeContextBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + saasRuntimeContext_ = value; + } else { + saasRuntimeContextBuilder_.setMessage(value); + } + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. SaaS runtime context for the application template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SaaSRuntimeContext saas_runtime_context = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSaasRuntimeContext( + com.google.cloud.designcenter.v1.SaaSRuntimeContext.Builder builderForValue) { + if (saasRuntimeContextBuilder_ == null) { + saasRuntimeContext_ = builderForValue.build(); + } else { + saasRuntimeContextBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. SaaS runtime context for the application template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SaaSRuntimeContext saas_runtime_context = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSaasRuntimeContext( + com.google.cloud.designcenter.v1.SaaSRuntimeContext value) { + if (saasRuntimeContextBuilder_ == null) { + if (((bitField0_ & 0x00002000) != 0) + && saasRuntimeContext_ != null + && saasRuntimeContext_ + != com.google.cloud.designcenter.v1.SaaSRuntimeContext.getDefaultInstance()) { + getSaasRuntimeContextBuilder().mergeFrom(value); + } else { + saasRuntimeContext_ = value; + } + } else { + saasRuntimeContextBuilder_.mergeFrom(value); + } + if (saasRuntimeContext_ != null) { + bitField0_ |= 0x00002000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. SaaS runtime context for the application template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SaaSRuntimeContext saas_runtime_context = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSaasRuntimeContext() { + bitField0_ = (bitField0_ & ~0x00002000); + saasRuntimeContext_ = null; + if (saasRuntimeContextBuilder_ != null) { + saasRuntimeContextBuilder_.dispose(); + saasRuntimeContextBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. SaaS runtime context for the application template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SaaSRuntimeContext saas_runtime_context = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.SaaSRuntimeContext.Builder + getSaasRuntimeContextBuilder() { + bitField0_ |= 0x00002000; + onChanged(); + return internalGetSaasRuntimeContextFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. SaaS runtime context for the application template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SaaSRuntimeContext saas_runtime_context = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.SaaSRuntimeContextOrBuilder + getSaasRuntimeContextOrBuilder() { + if (saasRuntimeContextBuilder_ != null) { + return saasRuntimeContextBuilder_.getMessageOrBuilder(); + } else { + return saasRuntimeContext_ == null + ? com.google.cloud.designcenter.v1.SaaSRuntimeContext.getDefaultInstance() + : saasRuntimeContext_; + } + } + + /** + * + * + *
+     * Optional. SaaS runtime context for the application template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SaaSRuntimeContext saas_runtime_context = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.SaaSRuntimeContext, + com.google.cloud.designcenter.v1.SaaSRuntimeContext.Builder, + com.google.cloud.designcenter.v1.SaaSRuntimeContextOrBuilder> + internalGetSaasRuntimeContextFieldBuilder() { + if (saasRuntimeContextBuilder_ == null) { + saasRuntimeContextBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.SaaSRuntimeContext, + com.google.cloud.designcenter.v1.SaaSRuntimeContext.Builder, + com.google.cloud.designcenter.v1.SaaSRuntimeContextOrBuilder>( + getSaasRuntimeContext(), getParentForChildren(), isClean()); + saasRuntimeContext_ = null; + } + return saasRuntimeContextBuilder_; + } + + private java.lang.Object latestSystemRevisionUri_ = ""; + + /** + * + * + *
+     * Output only. The URI of the most recent System Revision generated for this
+     * ApplicationTemplate. This ID corresponds to the `name` field in the
+     * ApplicationTemplateSystemRevision resource.
+     * 
+ * + * + * string latest_system_revision_uri = 19 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The latestSystemRevisionUri. + */ + public java.lang.String getLatestSystemRevisionUri() { + java.lang.Object ref = latestSystemRevisionUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + latestSystemRevisionUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The URI of the most recent System Revision generated for this
+     * ApplicationTemplate. This ID corresponds to the `name` field in the
+     * ApplicationTemplateSystemRevision resource.
+     * 
+ * + * + * string latest_system_revision_uri = 19 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for latestSystemRevisionUri. + */ + public com.google.protobuf.ByteString getLatestSystemRevisionUriBytes() { + java.lang.Object ref = latestSystemRevisionUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + latestSystemRevisionUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The URI of the most recent System Revision generated for this
+     * ApplicationTemplate. This ID corresponds to the `name` field in the
+     * ApplicationTemplateSystemRevision resource.
+     * 
+ * + * + * string latest_system_revision_uri = 19 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The latestSystemRevisionUri to set. + * @return This builder for chaining. + */ + public Builder setLatestSystemRevisionUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + latestSystemRevisionUri_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The URI of the most recent System Revision generated for this
+     * ApplicationTemplate. This ID corresponds to the `name` field in the
+     * ApplicationTemplateSystemRevision resource.
+     * 
+ * + * + * string latest_system_revision_uri = 19 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearLatestSystemRevisionUri() { + latestSystemRevisionUri_ = getDefaultInstance().getLatestSystemRevisionUri(); + bitField0_ = (bitField0_ & ~0x00004000); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The URI of the most recent System Revision generated for this
+     * ApplicationTemplate. This ID corresponds to the `name` field in the
+     * ApplicationTemplateSystemRevision resource.
+     * 
+ * + * + * string latest_system_revision_uri = 19 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for latestSystemRevisionUri to set. + * @return This builder for chaining. + */ + public Builder setLatestSystemRevisionUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + latestSystemRevisionUri_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + private int iacSource_ = 0; + + /** + * + * + *
+     * Output only. Indicates the IaC source format of this application template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.IACSource iac_source = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for iacSource. + */ + @java.lang.Override + public int getIacSourceValue() { + return iacSource_; + } + + /** + * + * + *
+     * Output only. Indicates the IaC source format of this application template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.IACSource iac_source = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for iacSource to set. + * @return This builder for chaining. + */ + public Builder setIacSourceValue(int value) { + iacSource_ = value; + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Indicates the IaC source format of this application template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.IACSource iac_source = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The iacSource. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.IACSource getIacSource() { + com.google.cloud.designcenter.v1.IACSource result = + com.google.cloud.designcenter.v1.IACSource.forNumber(iacSource_); + return result == null ? com.google.cloud.designcenter.v1.IACSource.UNRECOGNIZED : result; + } + + /** + * + * + *
+     * Output only. Indicates the IaC source format of this application template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.IACSource iac_source = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The iacSource to set. + * @return This builder for chaining. + */ + public Builder setIacSource(com.google.cloud.designcenter.v1.IACSource value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00008000; + iacSource_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Indicates the IaC source format of this application template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.IACSource iac_source = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearIacSource() { + bitField0_ = (bitField0_ & ~0x00008000); + iacSource_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.designcenter.v1.TFBlueprintMetadata templateMetadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.TFBlueprintMetadata, + com.google.cloud.designcenter.v1.TFBlueprintMetadata.Builder, + com.google.cloud.designcenter.v1.TFBlueprintMetadataOrBuilder> + templateMetadataBuilder_; + + /** + * + * + *
+     * Output only. The input output variables parsed from the imported terraform
+     * code.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata template_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the templateMetadata field is set. + */ + public boolean hasTemplateMetadata() { + return ((bitField0_ & 0x00010000) != 0); + } + + /** + * + * + *
+     * Output only. The input output variables parsed from the imported terraform
+     * code.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata template_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The templateMetadata. + */ + public com.google.cloud.designcenter.v1.TFBlueprintMetadata getTemplateMetadata() { + if (templateMetadataBuilder_ == null) { + return templateMetadata_ == null + ? com.google.cloud.designcenter.v1.TFBlueprintMetadata.getDefaultInstance() + : templateMetadata_; + } else { + return templateMetadataBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. The input output variables parsed from the imported terraform
+     * code.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata template_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTemplateMetadata(com.google.cloud.designcenter.v1.TFBlueprintMetadata value) { + if (templateMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + templateMetadata_ = value; + } else { + templateMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The input output variables parsed from the imported terraform
+     * code.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata template_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTemplateMetadata( + com.google.cloud.designcenter.v1.TFBlueprintMetadata.Builder builderForValue) { + if (templateMetadataBuilder_ == null) { + templateMetadata_ = builderForValue.build(); + } else { + templateMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The input output variables parsed from the imported terraform
+     * code.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata template_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeTemplateMetadata( + com.google.cloud.designcenter.v1.TFBlueprintMetadata value) { + if (templateMetadataBuilder_ == null) { + if (((bitField0_ & 0x00010000) != 0) + && templateMetadata_ != null + && templateMetadata_ + != com.google.cloud.designcenter.v1.TFBlueprintMetadata.getDefaultInstance()) { + getTemplateMetadataBuilder().mergeFrom(value); + } else { + templateMetadata_ = value; + } + } else { + templateMetadataBuilder_.mergeFrom(value); + } + if (templateMetadata_ != null) { + bitField0_ |= 0x00010000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The input output variables parsed from the imported terraform
+     * code.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata template_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearTemplateMetadata() { + bitField0_ = (bitField0_ & ~0x00010000); + templateMetadata_ = null; + if (templateMetadataBuilder_ != null) { + templateMetadataBuilder_.dispose(); + templateMetadataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The input output variables parsed from the imported terraform
+     * code.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata template_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.TFBlueprintMetadata.Builder + getTemplateMetadataBuilder() { + bitField0_ |= 0x00010000; + onChanged(); + return internalGetTemplateMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The input output variables parsed from the imported terraform
+     * code.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata template_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.TFBlueprintMetadataOrBuilder + getTemplateMetadataOrBuilder() { + if (templateMetadataBuilder_ != null) { + return templateMetadataBuilder_.getMessageOrBuilder(); + } else { + return templateMetadata_ == null + ? com.google.cloud.designcenter.v1.TFBlueprintMetadata.getDefaultInstance() + : templateMetadata_; + } + } + + /** + * + * + *
+     * Output only. The input output variables parsed from the imported terraform
+     * code.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata template_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.TFBlueprintMetadata, + com.google.cloud.designcenter.v1.TFBlueprintMetadata.Builder, + com.google.cloud.designcenter.v1.TFBlueprintMetadataOrBuilder> + internalGetTemplateMetadataFieldBuilder() { + if (templateMetadataBuilder_ == null) { + templateMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.TFBlueprintMetadata, + com.google.cloud.designcenter.v1.TFBlueprintMetadata.Builder, + com.google.cloud.designcenter.v1.TFBlueprintMetadataOrBuilder>( + getTemplateMetadata(), getParentForChildren(), isClean()); + templateMetadata_ = null; + } + return templateMetadataBuilder_; + } + + private boolean inputsAsRootModuleVariables_; + + /** + * + * + *
+     * Optional. If true, exposes all inputs as root module variables.
+     * This is only supported for STANDARD composition type templates.
+     * 
+ * + * bool inputs_as_root_module_variables = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The inputsAsRootModuleVariables. + */ + @java.lang.Override + public boolean getInputsAsRootModuleVariables() { + return inputsAsRootModuleVariables_; + } + + /** + * + * + *
+     * Optional. If true, exposes all inputs as root module variables.
+     * This is only supported for STANDARD composition type templates.
+     * 
+ * + * bool inputs_as_root_module_variables = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The inputsAsRootModuleVariables to set. + * @return This builder for chaining. + */ + public Builder setInputsAsRootModuleVariables(boolean value) { + + inputsAsRootModuleVariables_ = value; + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. If true, exposes all inputs as root module variables.
+     * This is only supported for STANDARD composition type templates.
+     * 
+ * + * bool inputs_as_root_module_variables = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearInputsAsRootModuleVariables() { + bitField0_ = (bitField0_ & ~0x00020000); + inputsAsRootModuleVariables_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ApplicationTemplate) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ApplicationTemplate) + private static final com.google.cloud.designcenter.v1.ApplicationTemplate DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.ApplicationTemplate(); + } + + public static com.google.cloud.designcenter.v1.ApplicationTemplate getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ApplicationTemplate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ApplicationTemplate getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplicationTemplateName.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplicationTemplateName.java new file mode 100644 index 000000000000..226ce581de24 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplicationTemplateName.java @@ -0,0 +1,272 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.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; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked +@Generated("by gapic-generator-java") +public class ApplicationTemplateName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_SPACE_APPLICATION_TEMPLATE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String space; + private final String applicationTemplate; + + @Deprecated + protected ApplicationTemplateName() { + project = null; + location = null; + space = null; + applicationTemplate = null; + } + + private ApplicationTemplateName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + space = Preconditions.checkNotNull(builder.getSpace()); + applicationTemplate = Preconditions.checkNotNull(builder.getApplicationTemplate()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getSpace() { + return space; + } + + public String getApplicationTemplate() { + return applicationTemplate; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ApplicationTemplateName of( + String project, String location, String space, String applicationTemplate) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setSpace(space) + .setApplicationTemplate(applicationTemplate) + .build(); + } + + public static String format( + String project, String location, String space, String applicationTemplate) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setSpace(space) + .setApplicationTemplate(applicationTemplate) + .build() + .toString(); + } + + public static @Nullable ApplicationTemplateName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_SPACE_APPLICATION_TEMPLATE.validatedMatch( + formattedString, "ApplicationTemplateName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("space"), + matchMap.get("application_template")); + } + + 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<@Nullable ApplicationTemplateName> values) { + List list = new ArrayList<>(values.size()); + for (ApplicationTemplateName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_SPACE_APPLICATION_TEMPLATE.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 (space != null) { + fieldMapBuilder.put("space", space); + } + if (applicationTemplate != null) { + fieldMapBuilder.put("application_template", applicationTemplate); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_SPACE_APPLICATION_TEMPLATE.instantiate( + "project", + project, + "location", + location, + "space", + space, + "application_template", + applicationTemplate); + } + + @Override + public boolean equals(@Nullable Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + ApplicationTemplateName that = ((ApplicationTemplateName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.space, that.space) + && Objects.equals(this.applicationTemplate, that.applicationTemplate); + } + 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(space); + h *= 1000003; + h ^= Objects.hashCode(applicationTemplate); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}. + */ + public static class Builder { + private String project; + private String location; + private String space; + private String applicationTemplate; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getSpace() { + return space; + } + + public String getApplicationTemplate() { + return applicationTemplate; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setSpace(String space) { + this.space = space; + return this; + } + + public Builder setApplicationTemplate(String applicationTemplate) { + this.applicationTemplate = applicationTemplate; + return this; + } + + private Builder(ApplicationTemplateName applicationTemplateName) { + this.project = applicationTemplateName.project; + this.location = applicationTemplateName.location; + this.space = applicationTemplateName.space; + this.applicationTemplate = applicationTemplateName.applicationTemplate; + } + + public ApplicationTemplateName build() { + return new ApplicationTemplateName(this); + } + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplicationTemplateOperation.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplicationTemplateOperation.java new file mode 100644 index 000000000000..658a8183e3b7 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplicationTemplateOperation.java @@ -0,0 +1,309 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/enums.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Represents the type of operation to perform on an application template.
+ * 
+ * + * Protobuf enum {@code google.cloud.designcenter.v1.ApplicationTemplateOperation} + */ +@com.google.protobuf.Generated +public enum ApplicationTemplateOperation implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * The default value. This value is unused.
+   * 
+ * + * APPLICATION_TEMPLATE_OPERATION_UNSPECIFIED = 0; + */ + APPLICATION_TEMPLATE_OPERATION_UNSPECIFIED(0), + /** + * + * + *
+   * Creates a new application template.
+   * 
+ * + * APPLICATION_TEMPLATE_OPERATION_CREATE = 1; + */ + APPLICATION_TEMPLATE_OPERATION_CREATE(1), + /** + * + * + *
+   * Updates an existing application template.
+   * 
+ * + * APPLICATION_TEMPLATE_OPERATION_UPDATE = 2; + */ + APPLICATION_TEMPLATE_OPERATION_UPDATE(2), + /** + * + * + *
+   * Commits an application template to create a new revision.
+   * 
+ * + * APPLICATION_TEMPLATE_OPERATION_COMMIT = 3; + */ + APPLICATION_TEMPLATE_OPERATION_COMMIT(3), + /** + * + * + *
+   * Generates IaC for an application template.
+   * 
+ * + * APPLICATION_TEMPLATE_OPERATION_GENERATE_IAC = 4; + */ + APPLICATION_TEMPLATE_OPERATION_GENERATE_IAC(4), + /** + * + * + *
+   * Gets an application template.
+   * 
+ * + * APPLICATION_TEMPLATE_OPERATION_GET = 5; + */ + APPLICATION_TEMPLATE_OPERATION_GET(5), + /** + * + * + *
+   * Imports an application template from IaC.
+   * 
+ * + * APPLICATION_TEMPLATE_OPERATION_IMPORT_IAC = 6; + */ + APPLICATION_TEMPLATE_OPERATION_IMPORT_IAC(6), + /** + * + * + *
+   * Updates component parameters from IaC.
+   * 
+ * + * APPLICATION_TEMPLATE_OPERATION_UPDATE_COMPONENT_PARAMETERS = 7; + */ + APPLICATION_TEMPLATE_OPERATION_UPDATE_COMPONENT_PARAMETERS(7), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ApplicationTemplateOperation"); + } + + /** + * + * + *
+   * The default value. This value is unused.
+   * 
+ * + * APPLICATION_TEMPLATE_OPERATION_UNSPECIFIED = 0; + */ + public static final int APPLICATION_TEMPLATE_OPERATION_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+   * Creates a new application template.
+   * 
+ * + * APPLICATION_TEMPLATE_OPERATION_CREATE = 1; + */ + public static final int APPLICATION_TEMPLATE_OPERATION_CREATE_VALUE = 1; + + /** + * + * + *
+   * Updates an existing application template.
+   * 
+ * + * APPLICATION_TEMPLATE_OPERATION_UPDATE = 2; + */ + public static final int APPLICATION_TEMPLATE_OPERATION_UPDATE_VALUE = 2; + + /** + * + * + *
+   * Commits an application template to create a new revision.
+   * 
+ * + * APPLICATION_TEMPLATE_OPERATION_COMMIT = 3; + */ + public static final int APPLICATION_TEMPLATE_OPERATION_COMMIT_VALUE = 3; + + /** + * + * + *
+   * Generates IaC for an application template.
+   * 
+ * + * APPLICATION_TEMPLATE_OPERATION_GENERATE_IAC = 4; + */ + public static final int APPLICATION_TEMPLATE_OPERATION_GENERATE_IAC_VALUE = 4; + + /** + * + * + *
+   * Gets an application template.
+   * 
+ * + * APPLICATION_TEMPLATE_OPERATION_GET = 5; + */ + public static final int APPLICATION_TEMPLATE_OPERATION_GET_VALUE = 5; + + /** + * + * + *
+   * Imports an application template from IaC.
+   * 
+ * + * APPLICATION_TEMPLATE_OPERATION_IMPORT_IAC = 6; + */ + public static final int APPLICATION_TEMPLATE_OPERATION_IMPORT_IAC_VALUE = 6; + + /** + * + * + *
+   * Updates component parameters from IaC.
+   * 
+ * + * APPLICATION_TEMPLATE_OPERATION_UPDATE_COMPONENT_PARAMETERS = 7; + */ + public static final int APPLICATION_TEMPLATE_OPERATION_UPDATE_COMPONENT_PARAMETERS_VALUE = 7; + + 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 ApplicationTemplateOperation 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 ApplicationTemplateOperation forNumber(int value) { + switch (value) { + case 0: + return APPLICATION_TEMPLATE_OPERATION_UNSPECIFIED; + case 1: + return APPLICATION_TEMPLATE_OPERATION_CREATE; + case 2: + return APPLICATION_TEMPLATE_OPERATION_UPDATE; + case 3: + return APPLICATION_TEMPLATE_OPERATION_COMMIT; + case 4: + return APPLICATION_TEMPLATE_OPERATION_GENERATE_IAC; + case 5: + return APPLICATION_TEMPLATE_OPERATION_GET; + case 6: + return APPLICATION_TEMPLATE_OPERATION_IMPORT_IAC; + case 7: + return APPLICATION_TEMPLATE_OPERATION_UPDATE_COMPONENT_PARAMETERS; + 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 ApplicationTemplateOperation findValueByNumber(int number) { + return ApplicationTemplateOperation.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.designcenter.v1.EnumsProto.getDescriptor().getEnumTypes().get(1); + } + + private static final ApplicationTemplateOperation[] VALUES = values(); + + public static ApplicationTemplateOperation 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 ApplicationTemplateOperation(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.designcenter.v1.ApplicationTemplateOperation) +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplicationTemplateOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplicationTemplateOrBuilder.java new file mode 100644 index 000000000000..9dd5e8ab5d40 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplicationTemplateOrBuilder.java @@ -0,0 +1,737 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ApplicationTemplateOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ApplicationTemplate) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier. Application template name.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Identifier. Application template name.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. Application template display name.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
+   * Optional. Application template display name.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Optional. Application template description.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
+   * Optional. Application template description.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Output only. Application template creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
+   * Output only. Application template creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
+   * Output only. Application template creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Application template update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
+   * Output only. Application template update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
+   * Output only. Application template update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Optional. Parameters to apply to all components in an application. You can
+   * specify projectID and region.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getApplicationParametersList(); + + /** + * + * + *
+   * Optional. Parameters to apply to all components in an application. You can
+   * specify projectID and region.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.Parameter getApplicationParameters(int index); + + /** + * + * + *
+   * Optional. Parameters to apply to all components in an application. You can
+   * specify projectID and region.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getApplicationParametersCount(); + + /** + * + * + *
+   * Optional. Parameters to apply to all components in an application. You can
+   * specify projectID and region.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getApplicationParametersOrBuilderList(); + + /** + * + * + *
+   * Optional. Parameters to apply to all components in an application. You can
+   * specify projectID and region.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.ParameterOrBuilder getApplicationParametersOrBuilder(int index); + + /** + * + * + *
+   * Output only. The IaC format of the application template.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationTemplate.IACFormat iac_format = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for iacFormat. + */ + int getIacFormatValue(); + + /** + * + * + *
+   * Output only. The IaC format of the application template.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationTemplate.IACFormat iac_format = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The iacFormat. + */ + com.google.cloud.designcenter.v1.ApplicationTemplate.IACFormat getIacFormat(); + + /** + * + * + *
+   * Output only. The serialized application template.
+   * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate serialized_application_template = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the serializedApplicationTemplate field is set. + */ + boolean hasSerializedApplicationTemplate(); + + /** + * + * + *
+   * Output only. The serialized application template.
+   * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate serialized_application_template = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The serializedApplicationTemplate. + */ + com.google.cloud.designcenter.v1.SerializedApplicationTemplate getSerializedApplicationTemplate(); + + /** + * + * + *
+   * Output only. The serialized application template.
+   * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate serialized_application_template = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.SerializedApplicationTemplateOrBuilder + getSerializedApplicationTemplateOrBuilder(); + + /** + * + * + *
+   * Output only. The latest application template revision.
+   * 
+ * + * string latest_revision = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The latestRevision. + */ + java.lang.String getLatestRevision(); + + /** + * + * + *
+   * Output only. The latest application template revision.
+   * 
+ * + * string latest_revision = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for latestRevision. + */ + com.google.protobuf.ByteString getLatestRevisionBytes(); + + /** + * + * + *
+   * Output only. Details of the location where the IaC for this
+   * ApplicationTemplate was last successfully exported.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the artifactLocation field is set. + */ + boolean hasArtifactLocation(); + + /** + * + * + *
+   * Output only. Details of the location where the IaC for this
+   * ApplicationTemplate was last successfully exported.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The artifactLocation. + */ + com.google.cloud.designcenter.v1.ArtifactLocation getArtifactLocation(); + + /** + * + * + *
+   * Output only. Details of the location where the IaC for this
+   * ApplicationTemplate was last successfully exported.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder getArtifactLocationOrBuilder(); + + /** + * + * + *
+   * Optional. Immutable. The composition type of the applicationTemplate:
+   * STANDARD OR COMPOSITE. This is a create time only param.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationCompositionType composition_type = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for compositionType. + */ + int getCompositionTypeValue(); + + /** + * + * + *
+   * Optional. Immutable. The composition type of the applicationTemplate:
+   * STANDARD OR COMPOSITE. This is a create time only param.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationCompositionType composition_type = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The compositionType. + */ + com.google.cloud.designcenter.v1.ApplicationCompositionType getCompositionType(); + + /** + * + * + *
+   * Optional. Root level input variables of the application template.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_input_variables = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getRootInputVariablesList(); + + /** + * + * + *
+   * Optional. Root level input variables of the application template.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_input_variables = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.ComponentVariable getRootInputVariables(int index); + + /** + * + * + *
+   * Optional. Root level input variables of the application template.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_input_variables = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getRootInputVariablesCount(); + + /** + * + * + *
+   * Optional. Root level input variables of the application template.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_input_variables = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getRootInputVariablesOrBuilderList(); + + /** + * + * + *
+   * Optional. Root level input variables of the application template.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_input_variables = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.ComponentVariableOrBuilder getRootInputVariablesOrBuilder( + int index); + + /** + * + * + *
+   * Optional. Root level output variables of the application template.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_output_variables = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getRootOutputVariablesList(); + + /** + * + * + *
+   * Optional. Root level output variables of the application template.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_output_variables = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.ComponentVariable getRootOutputVariables(int index); + + /** + * + * + *
+   * Optional. Root level output variables of the application template.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_output_variables = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getRootOutputVariablesCount(); + + /** + * + * + *
+   * Optional. Root level output variables of the application template.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_output_variables = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getRootOutputVariablesOrBuilderList(); + + /** + * + * + *
+   * Optional. Root level output variables of the application template.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_output_variables = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.ComponentVariableOrBuilder getRootOutputVariablesOrBuilder( + int index); + + /** + * + * + *
+   * Optional. SaaS runtime context for the application template.
+   * 
+ * + * + * .google.cloud.designcenter.v1.SaaSRuntimeContext saas_runtime_context = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the saasRuntimeContext field is set. + */ + boolean hasSaasRuntimeContext(); + + /** + * + * + *
+   * Optional. SaaS runtime context for the application template.
+   * 
+ * + * + * .google.cloud.designcenter.v1.SaaSRuntimeContext saas_runtime_context = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The saasRuntimeContext. + */ + com.google.cloud.designcenter.v1.SaaSRuntimeContext getSaasRuntimeContext(); + + /** + * + * + *
+   * Optional. SaaS runtime context for the application template.
+   * 
+ * + * + * .google.cloud.designcenter.v1.SaaSRuntimeContext saas_runtime_context = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.SaaSRuntimeContextOrBuilder getSaasRuntimeContextOrBuilder(); + + /** + * + * + *
+   * Output only. The URI of the most recent System Revision generated for this
+   * ApplicationTemplate. This ID corresponds to the `name` field in the
+   * ApplicationTemplateSystemRevision resource.
+   * 
+ * + * + * string latest_system_revision_uri = 19 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The latestSystemRevisionUri. + */ + java.lang.String getLatestSystemRevisionUri(); + + /** + * + * + *
+   * Output only. The URI of the most recent System Revision generated for this
+   * ApplicationTemplate. This ID corresponds to the `name` field in the
+   * ApplicationTemplateSystemRevision resource.
+   * 
+ * + * + * string latest_system_revision_uri = 19 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for latestSystemRevisionUri. + */ + com.google.protobuf.ByteString getLatestSystemRevisionUriBytes(); + + /** + * + * + *
+   * Output only. Indicates the IaC source format of this application template.
+   * 
+ * + * + * .google.cloud.designcenter.v1.IACSource iac_source = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for iacSource. + */ + int getIacSourceValue(); + + /** + * + * + *
+   * Output only. Indicates the IaC source format of this application template.
+   * 
+ * + * + * .google.cloud.designcenter.v1.IACSource iac_source = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The iacSource. + */ + com.google.cloud.designcenter.v1.IACSource getIacSource(); + + /** + * + * + *
+   * Output only. The input output variables parsed from the imported terraform
+   * code.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata template_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the templateMetadata field is set. + */ + boolean hasTemplateMetadata(); + + /** + * + * + *
+   * Output only. The input output variables parsed from the imported terraform
+   * code.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata template_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The templateMetadata. + */ + com.google.cloud.designcenter.v1.TFBlueprintMetadata getTemplateMetadata(); + + /** + * + * + *
+   * Output only. The input output variables parsed from the imported terraform
+   * code.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata template_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.TFBlueprintMetadataOrBuilder getTemplateMetadataOrBuilder(); + + /** + * + * + *
+   * Optional. If true, exposes all inputs as root module variables.
+   * This is only supported for STANDARD composition type templates.
+   * 
+ * + * bool inputs_as_root_module_variables = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The inputsAsRootModuleVariables. + */ + boolean getInputsAsRootModuleVariables(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplicationTemplateRevision.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplicationTemplateRevision.java new file mode 100644 index 000000000000..addf6d6d590d --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplicationTemplateRevision.java @@ -0,0 +1,2623 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Application template revision resource.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ApplicationTemplateRevision} + */ +@com.google.protobuf.Generated +public final class ApplicationTemplateRevision extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ApplicationTemplateRevision) + ApplicationTemplateRevisionOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ApplicationTemplateRevision"); + } + + // Use ApplicationTemplateRevision.newBuilder() to construct. + private ApplicationTemplateRevision(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ApplicationTemplateRevision() { + name_ = ""; + applicationParameters_ = java.util.Collections.emptyList(); + iacSource_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringResourcesProto + .internal_static_google_cloud_designcenter_v1_ApplicationTemplateRevision_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringResourcesProto + .internal_static_google_cloud_designcenter_v1_ApplicationTemplateRevision_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ApplicationTemplateRevision.class, + com.google.cloud.designcenter.v1.ApplicationTemplateRevision.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Identifier. The application template revision name.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + + /** + * + * + *
+   * Identifier. The application template revision name.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+   * Output only. The application template revision creation timestamp.
+   * 
+ * + * .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 ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. The application template revision creation timestamp.
+   * 
+ * + * .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. The application template revision creation timestamp.
+   * 
+ * + * .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 SNAPSHOT_FIELD_NUMBER = 5; + private com.google.cloud.designcenter.v1.SerializedApplicationTemplate snapshot_; + + /** + * + * + *
+   * Output only. The serialized application template.
+   * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the snapshot field is set. + */ + @java.lang.Override + public boolean hasSnapshot() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. The serialized application template.
+   * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The snapshot. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.SerializedApplicationTemplate getSnapshot() { + return snapshot_ == null + ? com.google.cloud.designcenter.v1.SerializedApplicationTemplate.getDefaultInstance() + : snapshot_; + } + + /** + * + * + *
+   * Output only. The serialized application template.
+   * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.SerializedApplicationTemplateOrBuilder + getSnapshotOrBuilder() { + return snapshot_ == null + ? com.google.cloud.designcenter.v1.SerializedApplicationTemplate.getDefaultInstance() + : snapshot_; + } + + public static final int ARTIFACT_LOCATION_FIELD_NUMBER = 6; + private com.google.cloud.designcenter.v1.ArtifactLocation artifactLocation_; + + /** + * + * + *
+   * Output only. Details of the location where the IaC for this
+   * ApplicationTemplate Revision was last successfully exported.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the artifactLocation field is set. + */ + @java.lang.Override + public boolean hasArtifactLocation() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Output only. Details of the location where the IaC for this
+   * ApplicationTemplate Revision was last successfully exported.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The artifactLocation. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ArtifactLocation getArtifactLocation() { + return artifactLocation_ == null + ? com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance() + : artifactLocation_; + } + + /** + * + * + *
+   * Output only. Details of the location where the IaC for this
+   * ApplicationTemplate Revision was last successfully exported.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder getArtifactLocationOrBuilder() { + return artifactLocation_ == null + ? com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance() + : artifactLocation_; + } + + public static final int TEMPLATE_METADATA_FIELD_NUMBER = 21; + private com.google.cloud.designcenter.v1.TFBlueprintMetadata templateMetadata_; + + /** + * + * + *
+   * Output only. The input output variables parsed from the imported terraform
+   * code.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata template_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the templateMetadata field is set. + */ + @java.lang.Override + public boolean hasTemplateMetadata() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Output only. The input output variables parsed from the imported terraform
+   * code.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata template_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The templateMetadata. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TFBlueprintMetadata getTemplateMetadata() { + return templateMetadata_ == null + ? com.google.cloud.designcenter.v1.TFBlueprintMetadata.getDefaultInstance() + : templateMetadata_; + } + + /** + * + * + *
+   * Output only. The input output variables parsed from the imported terraform
+   * code.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata template_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TFBlueprintMetadataOrBuilder + getTemplateMetadataOrBuilder() { + return templateMetadata_ == null + ? com.google.cloud.designcenter.v1.TFBlueprintMetadata.getDefaultInstance() + : templateMetadata_; + } + + public static final int APPLICATION_PARAMETERS_FIELD_NUMBER = 22; + + @SuppressWarnings("serial") + private java.util.List applicationParameters_; + + /** + * + * + *
+   * Optional. The values provided for the input variables.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getApplicationParametersList() { + return applicationParameters_; + } + + /** + * + * + *
+   * Optional. The values provided for the input variables.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getApplicationParametersOrBuilderList() { + return applicationParameters_; + } + + /** + * + * + *
+   * Optional. The values provided for the input variables.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getApplicationParametersCount() { + return applicationParameters_.size(); + } + + /** + * + * + *
+   * Optional. The values provided for the input variables.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.Parameter getApplicationParameters(int index) { + return applicationParameters_.get(index); + } + + /** + * + * + *
+   * Optional. The values provided for the input variables.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ParameterOrBuilder getApplicationParametersOrBuilder( + int index) { + return applicationParameters_.get(index); + } + + public static final int IAC_SOURCE_FIELD_NUMBER = 23; + private int iacSource_ = 0; + + /** + * + * + *
+   * Output only. Indicates the IaC source format of this application template
+   * revision.
+   * 
+ * + * + * .google.cloud.designcenter.v1.IACSource iac_source = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for iacSource. + */ + @java.lang.Override + public int getIacSourceValue() { + return iacSource_; + } + + /** + * + * + *
+   * Output only. Indicates the IaC source format of this application template
+   * revision.
+   * 
+ * + * + * .google.cloud.designcenter.v1.IACSource iac_source = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The iacSource. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.IACSource getIacSource() { + com.google.cloud.designcenter.v1.IACSource result = + com.google.cloud.designcenter.v1.IACSource.forNumber(iacSource_); + return result == null ? com.google.cloud.designcenter.v1.IACSource.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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getSnapshot()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(6, getArtifactLocation()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(21, getTemplateMetadata()); + } + for (int i = 0; i < applicationParameters_.size(); i++) { + output.writeMessage(22, applicationParameters_.get(i)); + } + if (iacSource_ + != com.google.cloud.designcenter.v1.IACSource.IAC_SOURCE_UNSPECIFIED.getNumber()) { + output.writeEnum(23, iacSource_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getSnapshot()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getArtifactLocation()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getTemplateMetadata()); + } + for (int i = 0; i < applicationParameters_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 22, applicationParameters_.get(i)); + } + if (iacSource_ + != com.google.cloud.designcenter.v1.IACSource.IAC_SOURCE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(23, iacSource_); + } + 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.designcenter.v1.ApplicationTemplateRevision)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ApplicationTemplateRevision other = + (com.google.cloud.designcenter.v1.ApplicationTemplateRevision) obj; + + if (!getName().equals(other.getName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasSnapshot() != other.hasSnapshot()) return false; + if (hasSnapshot()) { + if (!getSnapshot().equals(other.getSnapshot())) return false; + } + if (hasArtifactLocation() != other.hasArtifactLocation()) return false; + if (hasArtifactLocation()) { + if (!getArtifactLocation().equals(other.getArtifactLocation())) return false; + } + if (hasTemplateMetadata() != other.hasTemplateMetadata()) return false; + if (hasTemplateMetadata()) { + if (!getTemplateMetadata().equals(other.getTemplateMetadata())) return false; + } + if (!getApplicationParametersList().equals(other.getApplicationParametersList())) return false; + if (iacSource_ != other.iacSource_) 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 (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasSnapshot()) { + hash = (37 * hash) + SNAPSHOT_FIELD_NUMBER; + hash = (53 * hash) + getSnapshot().hashCode(); + } + if (hasArtifactLocation()) { + hash = (37 * hash) + ARTIFACT_LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getArtifactLocation().hashCode(); + } + if (hasTemplateMetadata()) { + hash = (37 * hash) + TEMPLATE_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getTemplateMetadata().hashCode(); + } + if (getApplicationParametersCount() > 0) { + hash = (37 * hash) + APPLICATION_PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getApplicationParametersList().hashCode(); + } + hash = (37 * hash) + IAC_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + iacSource_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.ApplicationTemplateRevision parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ApplicationTemplateRevision 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.designcenter.v1.ApplicationTemplateRevision parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ApplicationTemplateRevision parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ApplicationTemplateRevision parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ApplicationTemplateRevision parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ApplicationTemplateRevision parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ApplicationTemplateRevision parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ApplicationTemplateRevision parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ApplicationTemplateRevision parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ApplicationTemplateRevision parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ApplicationTemplateRevision parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ApplicationTemplateRevision 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Application template revision resource.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ApplicationTemplateRevision} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ApplicationTemplateRevision) + com.google.cloud.designcenter.v1.ApplicationTemplateRevisionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringResourcesProto + .internal_static_google_cloud_designcenter_v1_ApplicationTemplateRevision_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringResourcesProto + .internal_static_google_cloud_designcenter_v1_ApplicationTemplateRevision_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ApplicationTemplateRevision.class, + com.google.cloud.designcenter.v1.ApplicationTemplateRevision.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.ApplicationTemplateRevision.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetSnapshotFieldBuilder(); + internalGetArtifactLocationFieldBuilder(); + internalGetTemplateMetadataFieldBuilder(); + internalGetApplicationParametersFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + snapshot_ = null; + if (snapshotBuilder_ != null) { + snapshotBuilder_.dispose(); + snapshotBuilder_ = null; + } + artifactLocation_ = null; + if (artifactLocationBuilder_ != null) { + artifactLocationBuilder_.dispose(); + artifactLocationBuilder_ = null; + } + templateMetadata_ = null; + if (templateMetadataBuilder_ != null) { + templateMetadataBuilder_.dispose(); + templateMetadataBuilder_ = null; + } + if (applicationParametersBuilder_ == null) { + applicationParameters_ = java.util.Collections.emptyList(); + } else { + applicationParameters_ = null; + applicationParametersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + iacSource_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.AuthoringResourcesProto + .internal_static_google_cloud_designcenter_v1_ApplicationTemplateRevision_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ApplicationTemplateRevision + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ApplicationTemplateRevision.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ApplicationTemplateRevision build() { + com.google.cloud.designcenter.v1.ApplicationTemplateRevision result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ApplicationTemplateRevision buildPartial() { + com.google.cloud.designcenter.v1.ApplicationTemplateRevision result = + new com.google.cloud.designcenter.v1.ApplicationTemplateRevision(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.designcenter.v1.ApplicationTemplateRevision result) { + if (applicationParametersBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + applicationParameters_ = java.util.Collections.unmodifiableList(applicationParameters_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.applicationParameters_ = applicationParameters_; + } else { + result.applicationParameters_ = applicationParametersBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.ApplicationTemplateRevision result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.snapshot_ = snapshotBuilder_ == null ? snapshot_ : snapshotBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.artifactLocation_ = + artifactLocationBuilder_ == null ? artifactLocation_ : artifactLocationBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.templateMetadata_ = + templateMetadataBuilder_ == null ? templateMetadata_ : templateMetadataBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.iacSource_ = iacSource_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.ApplicationTemplateRevision) { + return mergeFrom((com.google.cloud.designcenter.v1.ApplicationTemplateRevision) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.ApplicationTemplateRevision other) { + if (other + == com.google.cloud.designcenter.v1.ApplicationTemplateRevision.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasSnapshot()) { + mergeSnapshot(other.getSnapshot()); + } + if (other.hasArtifactLocation()) { + mergeArtifactLocation(other.getArtifactLocation()); + } + if (other.hasTemplateMetadata()) { + mergeTemplateMetadata(other.getTemplateMetadata()); + } + if (applicationParametersBuilder_ == null) { + if (!other.applicationParameters_.isEmpty()) { + if (applicationParameters_.isEmpty()) { + applicationParameters_ = other.applicationParameters_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureApplicationParametersIsMutable(); + applicationParameters_.addAll(other.applicationParameters_); + } + onChanged(); + } + } else { + if (!other.applicationParameters_.isEmpty()) { + if (applicationParametersBuilder_.isEmpty()) { + applicationParametersBuilder_.dispose(); + applicationParametersBuilder_ = null; + applicationParameters_ = other.applicationParameters_; + bitField0_ = (bitField0_ & ~0x00000020); + applicationParametersBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetApplicationParametersFieldBuilder() + : null; + } else { + applicationParametersBuilder_.addAllMessages(other.applicationParameters_); + } + } + } + if (other.iacSource_ != 0) { + setIacSourceValue(other.getIacSourceValue()); + } + 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( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 42: + { + input.readMessage( + internalGetSnapshotFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 42 + case 50: + { + input.readMessage( + internalGetArtifactLocationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 50 + case 170: + { + input.readMessage( + internalGetTemplateMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 170 + case 178: + { + com.google.cloud.designcenter.v1.Parameter m = + input.readMessage( + com.google.cloud.designcenter.v1.Parameter.parser(), extensionRegistry); + if (applicationParametersBuilder_ == null) { + ensureApplicationParametersIsMutable(); + applicationParameters_.add(m); + } else { + applicationParametersBuilder_.addMessage(m); + } + break; + } // case 178 + case 184: + { + iacSource_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 184 + default: + { + 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_ = ""; + + /** + * + * + *
+     * Identifier. The application template revision name.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.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; + } + } + + /** + * + * + *
+     * Identifier. The application template revision name.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + + /** + * + * + *
+     * Identifier. The application template revision name.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + + /** + * + * + *
+     * Identifier. The application template revision name.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier. The application template revision name.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
+     * Output only. The application template revision creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Output only. The application template revision creation timestamp.
+     * 
+ * + * + * .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. The application template revision creation timestamp.
+     * 
+ * + * + * .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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The application template revision creation timestamp.
+     * 
+ * + * + * .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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The application template revision creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The application template revision creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The application template revision creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The application template revision creation timestamp.
+     * 
+ * + * + * .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. The application template revision creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.cloud.designcenter.v1.SerializedApplicationTemplate snapshot_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.SerializedApplicationTemplate, + com.google.cloud.designcenter.v1.SerializedApplicationTemplate.Builder, + com.google.cloud.designcenter.v1.SerializedApplicationTemplateOrBuilder> + snapshotBuilder_; + + /** + * + * + *
+     * Output only. The serialized application template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the snapshot field is set. + */ + public boolean hasSnapshot() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Output only. The serialized application template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The snapshot. + */ + public com.google.cloud.designcenter.v1.SerializedApplicationTemplate getSnapshot() { + if (snapshotBuilder_ == null) { + return snapshot_ == null + ? com.google.cloud.designcenter.v1.SerializedApplicationTemplate.getDefaultInstance() + : snapshot_; + } else { + return snapshotBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. The serialized application template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSnapshot( + com.google.cloud.designcenter.v1.SerializedApplicationTemplate value) { + if (snapshotBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + snapshot_ = value; + } else { + snapshotBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The serialized application template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSnapshot( + com.google.cloud.designcenter.v1.SerializedApplicationTemplate.Builder builderForValue) { + if (snapshotBuilder_ == null) { + snapshot_ = builderForValue.build(); + } else { + snapshotBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The serialized application template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeSnapshot( + com.google.cloud.designcenter.v1.SerializedApplicationTemplate value) { + if (snapshotBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && snapshot_ != null + && snapshot_ + != com.google.cloud.designcenter.v1.SerializedApplicationTemplate + .getDefaultInstance()) { + getSnapshotBuilder().mergeFrom(value); + } else { + snapshot_ = value; + } + } else { + snapshotBuilder_.mergeFrom(value); + } + if (snapshot_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The serialized application template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearSnapshot() { + bitField0_ = (bitField0_ & ~0x00000004); + snapshot_ = null; + if (snapshotBuilder_ != null) { + snapshotBuilder_.dispose(); + snapshotBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The serialized application template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.SerializedApplicationTemplate.Builder + getSnapshotBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetSnapshotFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The serialized application template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.SerializedApplicationTemplateOrBuilder + getSnapshotOrBuilder() { + if (snapshotBuilder_ != null) { + return snapshotBuilder_.getMessageOrBuilder(); + } else { + return snapshot_ == null + ? com.google.cloud.designcenter.v1.SerializedApplicationTemplate.getDefaultInstance() + : snapshot_; + } + } + + /** + * + * + *
+     * Output only. The serialized application template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.SerializedApplicationTemplate, + com.google.cloud.designcenter.v1.SerializedApplicationTemplate.Builder, + com.google.cloud.designcenter.v1.SerializedApplicationTemplateOrBuilder> + internalGetSnapshotFieldBuilder() { + if (snapshotBuilder_ == null) { + snapshotBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.SerializedApplicationTemplate, + com.google.cloud.designcenter.v1.SerializedApplicationTemplate.Builder, + com.google.cloud.designcenter.v1.SerializedApplicationTemplateOrBuilder>( + getSnapshot(), getParentForChildren(), isClean()); + snapshot_ = null; + } + return snapshotBuilder_; + } + + private com.google.cloud.designcenter.v1.ArtifactLocation artifactLocation_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ArtifactLocation, + com.google.cloud.designcenter.v1.ArtifactLocation.Builder, + com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder> + artifactLocationBuilder_; + + /** + * + * + *
+     * Output only. Details of the location where the IaC for this
+     * ApplicationTemplate Revision was last successfully exported.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the artifactLocation field is set. + */ + public boolean hasArtifactLocation() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Output only. Details of the location where the IaC for this
+     * ApplicationTemplate Revision was last successfully exported.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The artifactLocation. + */ + public com.google.cloud.designcenter.v1.ArtifactLocation getArtifactLocation() { + if (artifactLocationBuilder_ == null) { + return artifactLocation_ == null + ? com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance() + : artifactLocation_; + } else { + return artifactLocationBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Details of the location where the IaC for this
+     * ApplicationTemplate Revision was last successfully exported.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setArtifactLocation(com.google.cloud.designcenter.v1.ArtifactLocation value) { + if (artifactLocationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + artifactLocation_ = value; + } else { + artifactLocationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Details of the location where the IaC for this
+     * ApplicationTemplate Revision was last successfully exported.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setArtifactLocation( + com.google.cloud.designcenter.v1.ArtifactLocation.Builder builderForValue) { + if (artifactLocationBuilder_ == null) { + artifactLocation_ = builderForValue.build(); + } else { + artifactLocationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Details of the location where the IaC for this
+     * ApplicationTemplate Revision was last successfully exported.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeArtifactLocation(com.google.cloud.designcenter.v1.ArtifactLocation value) { + if (artifactLocationBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && artifactLocation_ != null + && artifactLocation_ + != com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance()) { + getArtifactLocationBuilder().mergeFrom(value); + } else { + artifactLocation_ = value; + } + } else { + artifactLocationBuilder_.mergeFrom(value); + } + if (artifactLocation_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Details of the location where the IaC for this
+     * ApplicationTemplate Revision was last successfully exported.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearArtifactLocation() { + bitField0_ = (bitField0_ & ~0x00000008); + artifactLocation_ = null; + if (artifactLocationBuilder_ != null) { + artifactLocationBuilder_.dispose(); + artifactLocationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Details of the location where the IaC for this
+     * ApplicationTemplate Revision was last successfully exported.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ArtifactLocation.Builder getArtifactLocationBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetArtifactLocationFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Details of the location where the IaC for this
+     * ApplicationTemplate Revision was last successfully exported.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder + getArtifactLocationOrBuilder() { + if (artifactLocationBuilder_ != null) { + return artifactLocationBuilder_.getMessageOrBuilder(); + } else { + return artifactLocation_ == null + ? com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance() + : artifactLocation_; + } + } + + /** + * + * + *
+     * Output only. Details of the location where the IaC for this
+     * ApplicationTemplate Revision was last successfully exported.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ArtifactLocation, + com.google.cloud.designcenter.v1.ArtifactLocation.Builder, + com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder> + internalGetArtifactLocationFieldBuilder() { + if (artifactLocationBuilder_ == null) { + artifactLocationBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ArtifactLocation, + com.google.cloud.designcenter.v1.ArtifactLocation.Builder, + com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder>( + getArtifactLocation(), getParentForChildren(), isClean()); + artifactLocation_ = null; + } + return artifactLocationBuilder_; + } + + private com.google.cloud.designcenter.v1.TFBlueprintMetadata templateMetadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.TFBlueprintMetadata, + com.google.cloud.designcenter.v1.TFBlueprintMetadata.Builder, + com.google.cloud.designcenter.v1.TFBlueprintMetadataOrBuilder> + templateMetadataBuilder_; + + /** + * + * + *
+     * Output only. The input output variables parsed from the imported terraform
+     * code.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata template_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the templateMetadata field is set. + */ + public boolean hasTemplateMetadata() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Output only. The input output variables parsed from the imported terraform
+     * code.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata template_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The templateMetadata. + */ + public com.google.cloud.designcenter.v1.TFBlueprintMetadata getTemplateMetadata() { + if (templateMetadataBuilder_ == null) { + return templateMetadata_ == null + ? com.google.cloud.designcenter.v1.TFBlueprintMetadata.getDefaultInstance() + : templateMetadata_; + } else { + return templateMetadataBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. The input output variables parsed from the imported terraform
+     * code.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata template_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTemplateMetadata(com.google.cloud.designcenter.v1.TFBlueprintMetadata value) { + if (templateMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + templateMetadata_ = value; + } else { + templateMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The input output variables parsed from the imported terraform
+     * code.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata template_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTemplateMetadata( + com.google.cloud.designcenter.v1.TFBlueprintMetadata.Builder builderForValue) { + if (templateMetadataBuilder_ == null) { + templateMetadata_ = builderForValue.build(); + } else { + templateMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The input output variables parsed from the imported terraform
+     * code.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata template_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeTemplateMetadata( + com.google.cloud.designcenter.v1.TFBlueprintMetadata value) { + if (templateMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && templateMetadata_ != null + && templateMetadata_ + != com.google.cloud.designcenter.v1.TFBlueprintMetadata.getDefaultInstance()) { + getTemplateMetadataBuilder().mergeFrom(value); + } else { + templateMetadata_ = value; + } + } else { + templateMetadataBuilder_.mergeFrom(value); + } + if (templateMetadata_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The input output variables parsed from the imported terraform
+     * code.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata template_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearTemplateMetadata() { + bitField0_ = (bitField0_ & ~0x00000010); + templateMetadata_ = null; + if (templateMetadataBuilder_ != null) { + templateMetadataBuilder_.dispose(); + templateMetadataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The input output variables parsed from the imported terraform
+     * code.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata template_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.TFBlueprintMetadata.Builder + getTemplateMetadataBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetTemplateMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The input output variables parsed from the imported terraform
+     * code.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata template_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.TFBlueprintMetadataOrBuilder + getTemplateMetadataOrBuilder() { + if (templateMetadataBuilder_ != null) { + return templateMetadataBuilder_.getMessageOrBuilder(); + } else { + return templateMetadata_ == null + ? com.google.cloud.designcenter.v1.TFBlueprintMetadata.getDefaultInstance() + : templateMetadata_; + } + } + + /** + * + * + *
+     * Output only. The input output variables parsed from the imported terraform
+     * code.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata template_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.TFBlueprintMetadata, + com.google.cloud.designcenter.v1.TFBlueprintMetadata.Builder, + com.google.cloud.designcenter.v1.TFBlueprintMetadataOrBuilder> + internalGetTemplateMetadataFieldBuilder() { + if (templateMetadataBuilder_ == null) { + templateMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.TFBlueprintMetadata, + com.google.cloud.designcenter.v1.TFBlueprintMetadata.Builder, + com.google.cloud.designcenter.v1.TFBlueprintMetadataOrBuilder>( + getTemplateMetadata(), getParentForChildren(), isClean()); + templateMetadata_ = null; + } + return templateMetadataBuilder_; + } + + private java.util.List applicationParameters_ = + java.util.Collections.emptyList(); + + private void ensureApplicationParametersIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + applicationParameters_ = + new java.util.ArrayList( + applicationParameters_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Parameter, + com.google.cloud.designcenter.v1.Parameter.Builder, + com.google.cloud.designcenter.v1.ParameterOrBuilder> + applicationParametersBuilder_; + + /** + * + * + *
+     * Optional. The values provided for the input variables.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getApplicationParametersList() { + if (applicationParametersBuilder_ == null) { + return java.util.Collections.unmodifiableList(applicationParameters_); + } else { + return applicationParametersBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. The values provided for the input variables.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getApplicationParametersCount() { + if (applicationParametersBuilder_ == null) { + return applicationParameters_.size(); + } else { + return applicationParametersBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. The values provided for the input variables.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter getApplicationParameters(int index) { + if (applicationParametersBuilder_ == null) { + return applicationParameters_.get(index); + } else { + return applicationParametersBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. The values provided for the input variables.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setApplicationParameters( + int index, com.google.cloud.designcenter.v1.Parameter value) { + if (applicationParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicationParametersIsMutable(); + applicationParameters_.set(index, value); + onChanged(); + } else { + applicationParametersBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The values provided for the input variables.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setApplicationParameters( + int index, com.google.cloud.designcenter.v1.Parameter.Builder builderForValue) { + if (applicationParametersBuilder_ == null) { + ensureApplicationParametersIsMutable(); + applicationParameters_.set(index, builderForValue.build()); + onChanged(); + } else { + applicationParametersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The values provided for the input variables.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addApplicationParameters(com.google.cloud.designcenter.v1.Parameter value) { + if (applicationParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicationParametersIsMutable(); + applicationParameters_.add(value); + onChanged(); + } else { + applicationParametersBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. The values provided for the input variables.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addApplicationParameters( + int index, com.google.cloud.designcenter.v1.Parameter value) { + if (applicationParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicationParametersIsMutable(); + applicationParameters_.add(index, value); + onChanged(); + } else { + applicationParametersBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The values provided for the input variables.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addApplicationParameters( + com.google.cloud.designcenter.v1.Parameter.Builder builderForValue) { + if (applicationParametersBuilder_ == null) { + ensureApplicationParametersIsMutable(); + applicationParameters_.add(builderForValue.build()); + onChanged(); + } else { + applicationParametersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The values provided for the input variables.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addApplicationParameters( + int index, com.google.cloud.designcenter.v1.Parameter.Builder builderForValue) { + if (applicationParametersBuilder_ == null) { + ensureApplicationParametersIsMutable(); + applicationParameters_.add(index, builderForValue.build()); + onChanged(); + } else { + applicationParametersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The values provided for the input variables.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllApplicationParameters( + java.lang.Iterable values) { + if (applicationParametersBuilder_ == null) { + ensureApplicationParametersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, applicationParameters_); + onChanged(); + } else { + applicationParametersBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. The values provided for the input variables.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearApplicationParameters() { + if (applicationParametersBuilder_ == null) { + applicationParameters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + applicationParametersBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. The values provided for the input variables.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeApplicationParameters(int index) { + if (applicationParametersBuilder_ == null) { + ensureApplicationParametersIsMutable(); + applicationParameters_.remove(index); + onChanged(); + } else { + applicationParametersBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. The values provided for the input variables.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter.Builder getApplicationParametersBuilder( + int index) { + return internalGetApplicationParametersFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. The values provided for the input variables.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ParameterOrBuilder getApplicationParametersOrBuilder( + int index) { + if (applicationParametersBuilder_ == null) { + return applicationParameters_.get(index); + } else { + return applicationParametersBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. The values provided for the input variables.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getApplicationParametersOrBuilderList() { + if (applicationParametersBuilder_ != null) { + return applicationParametersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(applicationParameters_); + } + } + + /** + * + * + *
+     * Optional. The values provided for the input variables.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter.Builder addApplicationParametersBuilder() { + return internalGetApplicationParametersFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.Parameter.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The values provided for the input variables.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter.Builder addApplicationParametersBuilder( + int index) { + return internalGetApplicationParametersFieldBuilder() + .addBuilder(index, com.google.cloud.designcenter.v1.Parameter.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The values provided for the input variables.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getApplicationParametersBuilderList() { + return internalGetApplicationParametersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Parameter, + com.google.cloud.designcenter.v1.Parameter.Builder, + com.google.cloud.designcenter.v1.ParameterOrBuilder> + internalGetApplicationParametersFieldBuilder() { + if (applicationParametersBuilder_ == null) { + applicationParametersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Parameter, + com.google.cloud.designcenter.v1.Parameter.Builder, + com.google.cloud.designcenter.v1.ParameterOrBuilder>( + applicationParameters_, + ((bitField0_ & 0x00000020) != 0), + getParentForChildren(), + isClean()); + applicationParameters_ = null; + } + return applicationParametersBuilder_; + } + + private int iacSource_ = 0; + + /** + * + * + *
+     * Output only. Indicates the IaC source format of this application template
+     * revision.
+     * 
+ * + * + * .google.cloud.designcenter.v1.IACSource iac_source = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for iacSource. + */ + @java.lang.Override + public int getIacSourceValue() { + return iacSource_; + } + + /** + * + * + *
+     * Output only. Indicates the IaC source format of this application template
+     * revision.
+     * 
+ * + * + * .google.cloud.designcenter.v1.IACSource iac_source = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for iacSource to set. + * @return This builder for chaining. + */ + public Builder setIacSourceValue(int value) { + iacSource_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Indicates the IaC source format of this application template
+     * revision.
+     * 
+ * + * + * .google.cloud.designcenter.v1.IACSource iac_source = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The iacSource. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.IACSource getIacSource() { + com.google.cloud.designcenter.v1.IACSource result = + com.google.cloud.designcenter.v1.IACSource.forNumber(iacSource_); + return result == null ? com.google.cloud.designcenter.v1.IACSource.UNRECOGNIZED : result; + } + + /** + * + * + *
+     * Output only. Indicates the IaC source format of this application template
+     * revision.
+     * 
+ * + * + * .google.cloud.designcenter.v1.IACSource iac_source = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The iacSource to set. + * @return This builder for chaining. + */ + public Builder setIacSource(com.google.cloud.designcenter.v1.IACSource value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + iacSource_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Indicates the IaC source format of this application template
+     * revision.
+     * 
+ * + * + * .google.cloud.designcenter.v1.IACSource iac_source = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearIacSource() { + bitField0_ = (bitField0_ & ~0x00000040); + iacSource_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ApplicationTemplateRevision) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ApplicationTemplateRevision) + private static final com.google.cloud.designcenter.v1.ApplicationTemplateRevision + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.ApplicationTemplateRevision(); + } + + public static com.google.cloud.designcenter.v1.ApplicationTemplateRevision getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ApplicationTemplateRevision parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ApplicationTemplateRevision getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplicationTemplateRevisionName.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplicationTemplateRevisionName.java new file mode 100644 index 000000000000..f492b2c101d7 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplicationTemplateRevisionName.java @@ -0,0 +1,302 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.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; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked +@Generated("by gapic-generator-java") +public class ApplicationTemplateRevisionName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_SPACE_APPLICATION_TEMPLATE_REVISION = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/revisions/{revision}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String space; + private final String applicationTemplate; + private final String revision; + + @Deprecated + protected ApplicationTemplateRevisionName() { + project = null; + location = null; + space = null; + applicationTemplate = null; + revision = null; + } + + private ApplicationTemplateRevisionName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + space = Preconditions.checkNotNull(builder.getSpace()); + applicationTemplate = Preconditions.checkNotNull(builder.getApplicationTemplate()); + revision = Preconditions.checkNotNull(builder.getRevision()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getSpace() { + return space; + } + + public String getApplicationTemplate() { + return applicationTemplate; + } + + public String getRevision() { + return revision; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ApplicationTemplateRevisionName of( + String project, String location, String space, String applicationTemplate, String revision) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setSpace(space) + .setApplicationTemplate(applicationTemplate) + .setRevision(revision) + .build(); + } + + public static String format( + String project, String location, String space, String applicationTemplate, String revision) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setSpace(space) + .setApplicationTemplate(applicationTemplate) + .setRevision(revision) + .build() + .toString(); + } + + public static @Nullable ApplicationTemplateRevisionName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_SPACE_APPLICATION_TEMPLATE_REVISION.validatedMatch( + formattedString, + "ApplicationTemplateRevisionName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("space"), + matchMap.get("application_template"), + matchMap.get("revision")); + } + + 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<@Nullable ApplicationTemplateRevisionName> values) { + List list = new ArrayList<>(values.size()); + for (ApplicationTemplateRevisionName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_SPACE_APPLICATION_TEMPLATE_REVISION.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 (space != null) { + fieldMapBuilder.put("space", space); + } + if (applicationTemplate != null) { + fieldMapBuilder.put("application_template", applicationTemplate); + } + if (revision != null) { + fieldMapBuilder.put("revision", revision); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_SPACE_APPLICATION_TEMPLATE_REVISION.instantiate( + "project", + project, + "location", + location, + "space", + space, + "application_template", + applicationTemplate, + "revision", + revision); + } + + @Override + public boolean equals(@Nullable Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + ApplicationTemplateRevisionName that = ((ApplicationTemplateRevisionName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.space, that.space) + && Objects.equals(this.applicationTemplate, that.applicationTemplate) + && Objects.equals(this.revision, that.revision); + } + 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(space); + h *= 1000003; + h ^= Objects.hashCode(applicationTemplate); + h *= 1000003; + h ^= Objects.hashCode(revision); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/revisions/{revision}. + */ + public static class Builder { + private String project; + private String location; + private String space; + private String applicationTemplate; + private String revision; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getSpace() { + return space; + } + + public String getApplicationTemplate() { + return applicationTemplate; + } + + public String getRevision() { + return revision; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setSpace(String space) { + this.space = space; + return this; + } + + public Builder setApplicationTemplate(String applicationTemplate) { + this.applicationTemplate = applicationTemplate; + return this; + } + + public Builder setRevision(String revision) { + this.revision = revision; + return this; + } + + private Builder(ApplicationTemplateRevisionName applicationTemplateRevisionName) { + this.project = applicationTemplateRevisionName.project; + this.location = applicationTemplateRevisionName.location; + this.space = applicationTemplateRevisionName.space; + this.applicationTemplate = applicationTemplateRevisionName.applicationTemplate; + this.revision = applicationTemplateRevisionName.revision; + } + + public ApplicationTemplateRevisionName build() { + return new ApplicationTemplateRevisionName(this); + } + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplicationTemplateRevisionOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplicationTemplateRevisionOrBuilder.java new file mode 100644 index 000000000000..311dd7c81f94 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplicationTemplateRevisionOrBuilder.java @@ -0,0 +1,327 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ApplicationTemplateRevisionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ApplicationTemplateRevision) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier. The application template revision name.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Identifier. The application template revision name.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. The application template revision creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
+   * Output only. The application template revision creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
+   * Output only. The application template revision creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The serialized application template.
+   * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the snapshot field is set. + */ + boolean hasSnapshot(); + + /** + * + * + *
+   * Output only. The serialized application template.
+   * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The snapshot. + */ + com.google.cloud.designcenter.v1.SerializedApplicationTemplate getSnapshot(); + + /** + * + * + *
+   * Output only. The serialized application template.
+   * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.SerializedApplicationTemplateOrBuilder getSnapshotOrBuilder(); + + /** + * + * + *
+   * Output only. Details of the location where the IaC for this
+   * ApplicationTemplate Revision was last successfully exported.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the artifactLocation field is set. + */ + boolean hasArtifactLocation(); + + /** + * + * + *
+   * Output only. Details of the location where the IaC for this
+   * ApplicationTemplate Revision was last successfully exported.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The artifactLocation. + */ + com.google.cloud.designcenter.v1.ArtifactLocation getArtifactLocation(); + + /** + * + * + *
+   * Output only. Details of the location where the IaC for this
+   * ApplicationTemplate Revision was last successfully exported.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder getArtifactLocationOrBuilder(); + + /** + * + * + *
+   * Output only. The input output variables parsed from the imported terraform
+   * code.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata template_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the templateMetadata field is set. + */ + boolean hasTemplateMetadata(); + + /** + * + * + *
+   * Output only. The input output variables parsed from the imported terraform
+   * code.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata template_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The templateMetadata. + */ + com.google.cloud.designcenter.v1.TFBlueprintMetadata getTemplateMetadata(); + + /** + * + * + *
+   * Output only. The input output variables parsed from the imported terraform
+   * code.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata template_metadata = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.TFBlueprintMetadataOrBuilder getTemplateMetadataOrBuilder(); + + /** + * + * + *
+   * Optional. The values provided for the input variables.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getApplicationParametersList(); + + /** + * + * + *
+   * Optional. The values provided for the input variables.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.Parameter getApplicationParameters(int index); + + /** + * + * + *
+   * Optional. The values provided for the input variables.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getApplicationParametersCount(); + + /** + * + * + *
+   * Optional. The values provided for the input variables.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getApplicationParametersOrBuilderList(); + + /** + * + * + *
+   * Optional. The values provided for the input variables.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.ParameterOrBuilder getApplicationParametersOrBuilder(int index); + + /** + * + * + *
+   * Output only. Indicates the IaC source format of this application template
+   * revision.
+   * 
+ * + * + * .google.cloud.designcenter.v1.IACSource iac_source = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for iacSource. + */ + int getIacSourceValue(); + + /** + * + * + *
+   * Output only. Indicates the IaC source format of this application template
+   * revision.
+   * 
+ * + * + * .google.cloud.designcenter.v1.IACSource iac_source = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The iacSource. + */ + com.google.cloud.designcenter.v1.IACSource getIacSource(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplicationTemplateSystemRevision.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplicationTemplateSystemRevision.java new file mode 100644 index 000000000000..a937cd3b9d35 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplicationTemplateSystemRevision.java @@ -0,0 +1,1686 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Application template system revision resource.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ApplicationTemplateSystemRevision} + */ +@com.google.protobuf.Generated +public final class ApplicationTemplateSystemRevision extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ApplicationTemplateSystemRevision) + ApplicationTemplateSystemRevisionOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ApplicationTemplateSystemRevision"); + } + + // Use ApplicationTemplateSystemRevision.newBuilder() to construct. + private ApplicationTemplateSystemRevision( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ApplicationTemplateSystemRevision() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringResourcesProto + .internal_static_google_cloud_designcenter_v1_ApplicationTemplateSystemRevision_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 3: + return internalGetAnnotations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringResourcesProto + .internal_static_google_cloud_designcenter_v1_ApplicationTemplateSystemRevision_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision.class, + com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Identifier. The application template system revision name.
+   * Format:
+   * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/systemRevisions/{system_revision}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + + /** + * + * + *
+   * Identifier. The application template system revision name.
+   * Format:
+   * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/systemRevisions/{system_revision}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+   * Output only. The application template system revision creation timestamp.
+   * 
+ * + * .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 ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. The application template system revision creation timestamp.
+   * 
+ * + * .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. The application template system revision creation timestamp.
+   * 
+ * + * .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 ANNOTATIONS_FIELD_NUMBER = 3; + + private static final class AnnotationsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.designcenter.v1.AuthoringResourcesProto + .internal_static_google_cloud_designcenter_v1_ApplicationTemplateSystemRevision_AnnotationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField annotations_; + + private com.google.protobuf.MapField + internalGetAnnotations() { + if (annotations_ == null) { + return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry); + } + return annotations_; + } + + public int getAnnotationsCount() { + return internalGetAnnotations().getMap().size(); + } + + /** + * + * + *
+   * Output only. Annotations from agentic workflows or other system processes.
+   * For example:
+   * {
+   * "designcenter.googleapis.com/agent_id": "gemini-3-flash-v1",
+   * "designcenter.googleapis.com/llm_agent_summary": "Added a Cloud SQL
+   * instance", "designcenter.googleapis.com/external_ref_id":
+   * "trace-uuid-88921-xyz"
+   * }
+   * 
+ * + * map<string, string> annotations = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetAnnotations().getMap().containsKey(key); + } + + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAnnotations() { + return getAnnotationsMap(); + } + + /** + * + * + *
+   * Output only. Annotations from agentic workflows or other system processes.
+   * For example:
+   * {
+   * "designcenter.googleapis.com/agent_id": "gemini-3-flash-v1",
+   * "designcenter.googleapis.com/llm_agent_summary": "Added a Cloud SQL
+   * instance", "designcenter.googleapis.com/external_ref_id":
+   * "trace-uuid-88921-xyz"
+   * }
+   * 
+ * + * map<string, string> annotations = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.Map getAnnotationsMap() { + return internalGetAnnotations().getMap(); + } + + /** + * + * + *
+   * Output only. Annotations from agentic workflows or other system processes.
+   * For example:
+   * {
+   * "designcenter.googleapis.com/agent_id": "gemini-3-flash-v1",
+   * "designcenter.googleapis.com/llm_agent_summary": "Added a Cloud SQL
+   * instance", "designcenter.googleapis.com/external_ref_id":
+   * "trace-uuid-88921-xyz"
+   * }
+   * 
+ * + * map<string, string> annotations = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+   * Output only. Annotations from agentic workflows or other system processes.
+   * For example:
+   * {
+   * "designcenter.googleapis.com/agent_id": "gemini-3-flash-v1",
+   * "designcenter.googleapis.com/llm_agent_summary": "Added a Cloud SQL
+   * instance", "designcenter.googleapis.com/external_ref_id":
+   * "trace-uuid-88921-xyz"
+   * }
+   * 
+ * + * map<string, string> annotations = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int SNAPSHOT_FIELD_NUMBER = 4; + private com.google.cloud.designcenter.v1.SerializedApplicationTemplate snapshot_; + + /** + * + * + *
+   * Output only. The serialized application template snapshot at this revision.
+   * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate snapshot = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the snapshot field is set. + */ + @java.lang.Override + public boolean hasSnapshot() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. The serialized application template snapshot at this revision.
+   * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate snapshot = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The snapshot. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.SerializedApplicationTemplate getSnapshot() { + return snapshot_ == null + ? com.google.cloud.designcenter.v1.SerializedApplicationTemplate.getDefaultInstance() + : snapshot_; + } + + /** + * + * + *
+   * Output only. The serialized application template snapshot at this revision.
+   * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate snapshot = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.SerializedApplicationTemplateOrBuilder + getSnapshotOrBuilder() { + return snapshot_ == null + ? com.google.cloud.designcenter.v1.SerializedApplicationTemplate.getDefaultInstance() + : snapshot_; + } + + 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getCreateTime()); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 3); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getSnapshot()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + } + for (java.util.Map.Entry entry : + internalGetAnnotations().getMap().entrySet()) { + com.google.protobuf.MapEntry annotations__ = + AnnotationsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, annotations__); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSnapshot()); + } + 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.designcenter.v1.ApplicationTemplateSystemRevision)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision other = + (com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision) obj; + + if (!getName().equals(other.getName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; + if (hasSnapshot() != other.hasSnapshot()) return false; + if (hasSnapshot()) { + if (!getSnapshot().equals(other.getSnapshot())) 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 (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (!internalGetAnnotations().getMap().isEmpty()) { + hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; + hash = (53 * hash) + internalGetAnnotations().hashCode(); + } + if (hasSnapshot()) { + hash = (37 * hash) + SNAPSHOT_FIELD_NUMBER; + hash = (53 * hash) + getSnapshot().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision 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.designcenter.v1.ApplicationTemplateSystemRevision parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ApplicationTemplateSystemRevision 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Application template system revision resource.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ApplicationTemplateSystemRevision} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ApplicationTemplateSystemRevision) + com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevisionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringResourcesProto + .internal_static_google_cloud_designcenter_v1_ApplicationTemplateSystemRevision_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 3: + return internalGetAnnotations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 3: + return internalGetMutableAnnotations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringResourcesProto + .internal_static_google_cloud_designcenter_v1_ApplicationTemplateSystemRevision_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision.class, + com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision.Builder.class); + } + + // Construct using + // com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetSnapshotFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + internalGetMutableAnnotations().clear(); + snapshot_ = null; + if (snapshotBuilder_ != null) { + snapshotBuilder_.dispose(); + snapshotBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.AuthoringResourcesProto + .internal_static_google_cloud_designcenter_v1_ApplicationTemplateSystemRevision_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision build() { + com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision buildPartial() { + com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision result = + new com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.annotations_ = internalGetAnnotations(); + result.annotations_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.snapshot_ = snapshotBuilder_ == null ? snapshot_ : snapshotBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision) { + return mergeFrom( + (com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision other) { + if (other + == com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations()); + bitField0_ |= 0x00000004; + if (other.hasSnapshot()) { + mergeSnapshot(other.getSnapshot()); + } + 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( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + com.google.protobuf.MapEntry annotations__ = + input.readMessage( + AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableAnnotations() + .getMutableMap() + .put(annotations__.getKey(), annotations__.getValue()); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetSnapshotFieldBuilder().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 name_ = ""; + + /** + * + * + *
+     * Identifier. The application template system revision name.
+     * Format:
+     * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/systemRevisions/{system_revision}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.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; + } + } + + /** + * + * + *
+     * Identifier. The application template system revision name.
+     * Format:
+     * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/systemRevisions/{system_revision}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + + /** + * + * + *
+     * Identifier. The application template system revision name.
+     * Format:
+     * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/systemRevisions/{system_revision}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + + /** + * + * + *
+     * Identifier. The application template system revision name.
+     * Format:
+     * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/systemRevisions/{system_revision}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier. The application template system revision name.
+     * Format:
+     * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/systemRevisions/{system_revision}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
+     * Output only. The application template system revision creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Output only. The application template system revision creation timestamp.
+     * 
+ * + * + * .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. The application template system revision creation timestamp.
+     * 
+ * + * + * .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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The application template system revision creation timestamp.
+     * 
+ * + * + * .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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The application template system revision creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The application template system revision creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The application template system revision creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The application template system revision creation timestamp.
+     * 
+ * + * + * .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. The application template system revision creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.MapField annotations_; + + private com.google.protobuf.MapField + internalGetAnnotations() { + if (annotations_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AnnotationsDefaultEntryHolder.defaultEntry); + } + return annotations_; + } + + private com.google.protobuf.MapField + internalGetMutableAnnotations() { + if (annotations_ == null) { + annotations_ = + com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry); + } + if (!annotations_.isMutable()) { + annotations_ = annotations_.copy(); + } + bitField0_ |= 0x00000004; + onChanged(); + return annotations_; + } + + public int getAnnotationsCount() { + return internalGetAnnotations().getMap().size(); + } + + /** + * + * + *
+     * Output only. Annotations from agentic workflows or other system processes.
+     * For example:
+     * {
+     * "designcenter.googleapis.com/agent_id": "gemini-3-flash-v1",
+     * "designcenter.googleapis.com/llm_agent_summary": "Added a Cloud SQL
+     * instance", "designcenter.googleapis.com/external_ref_id":
+     * "trace-uuid-88921-xyz"
+     * }
+     * 
+ * + * map<string, string> annotations = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetAnnotations().getMap().containsKey(key); + } + + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAnnotations() { + return getAnnotationsMap(); + } + + /** + * + * + *
+     * Output only. Annotations from agentic workflows or other system processes.
+     * For example:
+     * {
+     * "designcenter.googleapis.com/agent_id": "gemini-3-flash-v1",
+     * "designcenter.googleapis.com/llm_agent_summary": "Added a Cloud SQL
+     * instance", "designcenter.googleapis.com/external_ref_id":
+     * "trace-uuid-88921-xyz"
+     * }
+     * 
+ * + * map<string, string> annotations = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.Map getAnnotationsMap() { + return internalGetAnnotations().getMap(); + } + + /** + * + * + *
+     * Output only. Annotations from agentic workflows or other system processes.
+     * For example:
+     * {
+     * "designcenter.googleapis.com/agent_id": "gemini-3-flash-v1",
+     * "designcenter.googleapis.com/llm_agent_summary": "Added a Cloud SQL
+     * instance", "designcenter.googleapis.com/external_ref_id":
+     * "trace-uuid-88921-xyz"
+     * }
+     * 
+ * + * map<string, string> annotations = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+     * Output only. Annotations from agentic workflows or other system processes.
+     * For example:
+     * {
+     * "designcenter.googleapis.com/agent_id": "gemini-3-flash-v1",
+     * "designcenter.googleapis.com/llm_agent_summary": "Added a Cloud SQL
+     * instance", "designcenter.googleapis.com/external_ref_id":
+     * "trace-uuid-88921-xyz"
+     * }
+     * 
+ * + * map<string, string> annotations = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearAnnotations() { + bitField0_ = (bitField0_ & ~0x00000004); + internalGetMutableAnnotations().getMutableMap().clear(); + return this; + } + + /** + * + * + *
+     * Output only. Annotations from agentic workflows or other system processes.
+     * For example:
+     * {
+     * "designcenter.googleapis.com/agent_id": "gemini-3-flash-v1",
+     * "designcenter.googleapis.com/llm_agent_summary": "Added a Cloud SQL
+     * instance", "designcenter.googleapis.com/external_ref_id":
+     * "trace-uuid-88921-xyz"
+     * }
+     * 
+ * + * map<string, string> annotations = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableAnnotations().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableAnnotations() { + bitField0_ |= 0x00000004; + return internalGetMutableAnnotations().getMutableMap(); + } + + /** + * + * + *
+     * Output only. Annotations from agentic workflows or other system processes.
+     * For example:
+     * {
+     * "designcenter.googleapis.com/agent_id": "gemini-3-flash-v1",
+     * "designcenter.googleapis.com/llm_agent_summary": "Added a Cloud SQL
+     * instance", "designcenter.googleapis.com/external_ref_id":
+     * "trace-uuid-88921-xyz"
+     * }
+     * 
+ * + * map<string, string> annotations = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder putAnnotations(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableAnnotations().getMutableMap().put(key, value); + bitField0_ |= 0x00000004; + return this; + } + + /** + * + * + *
+     * Output only. Annotations from agentic workflows or other system processes.
+     * For example:
+     * {
+     * "designcenter.googleapis.com/agent_id": "gemini-3-flash-v1",
+     * "designcenter.googleapis.com/llm_agent_summary": "Added a Cloud SQL
+     * instance", "designcenter.googleapis.com/external_ref_id":
+     * "trace-uuid-88921-xyz"
+     * }
+     * 
+ * + * map<string, string> annotations = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder putAllAnnotations(java.util.Map values) { + internalGetMutableAnnotations().getMutableMap().putAll(values); + bitField0_ |= 0x00000004; + return this; + } + + private com.google.cloud.designcenter.v1.SerializedApplicationTemplate snapshot_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.SerializedApplicationTemplate, + com.google.cloud.designcenter.v1.SerializedApplicationTemplate.Builder, + com.google.cloud.designcenter.v1.SerializedApplicationTemplateOrBuilder> + snapshotBuilder_; + + /** + * + * + *
+     * Output only. The serialized application template snapshot at this revision.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate snapshot = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the snapshot field is set. + */ + public boolean hasSnapshot() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Output only. The serialized application template snapshot at this revision.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate snapshot = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The snapshot. + */ + public com.google.cloud.designcenter.v1.SerializedApplicationTemplate getSnapshot() { + if (snapshotBuilder_ == null) { + return snapshot_ == null + ? com.google.cloud.designcenter.v1.SerializedApplicationTemplate.getDefaultInstance() + : snapshot_; + } else { + return snapshotBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. The serialized application template snapshot at this revision.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate snapshot = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSnapshot( + com.google.cloud.designcenter.v1.SerializedApplicationTemplate value) { + if (snapshotBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + snapshot_ = value; + } else { + snapshotBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The serialized application template snapshot at this revision.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate snapshot = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSnapshot( + com.google.cloud.designcenter.v1.SerializedApplicationTemplate.Builder builderForValue) { + if (snapshotBuilder_ == null) { + snapshot_ = builderForValue.build(); + } else { + snapshotBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The serialized application template snapshot at this revision.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate snapshot = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeSnapshot( + com.google.cloud.designcenter.v1.SerializedApplicationTemplate value) { + if (snapshotBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && snapshot_ != null + && snapshot_ + != com.google.cloud.designcenter.v1.SerializedApplicationTemplate + .getDefaultInstance()) { + getSnapshotBuilder().mergeFrom(value); + } else { + snapshot_ = value; + } + } else { + snapshotBuilder_.mergeFrom(value); + } + if (snapshot_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The serialized application template snapshot at this revision.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate snapshot = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearSnapshot() { + bitField0_ = (bitField0_ & ~0x00000008); + snapshot_ = null; + if (snapshotBuilder_ != null) { + snapshotBuilder_.dispose(); + snapshotBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The serialized application template snapshot at this revision.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate snapshot = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.SerializedApplicationTemplate.Builder + getSnapshotBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetSnapshotFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The serialized application template snapshot at this revision.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate snapshot = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.SerializedApplicationTemplateOrBuilder + getSnapshotOrBuilder() { + if (snapshotBuilder_ != null) { + return snapshotBuilder_.getMessageOrBuilder(); + } else { + return snapshot_ == null + ? com.google.cloud.designcenter.v1.SerializedApplicationTemplate.getDefaultInstance() + : snapshot_; + } + } + + /** + * + * + *
+     * Output only. The serialized application template snapshot at this revision.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate snapshot = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.SerializedApplicationTemplate, + com.google.cloud.designcenter.v1.SerializedApplicationTemplate.Builder, + com.google.cloud.designcenter.v1.SerializedApplicationTemplateOrBuilder> + internalGetSnapshotFieldBuilder() { + if (snapshotBuilder_ == null) { + snapshotBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.SerializedApplicationTemplate, + com.google.cloud.designcenter.v1.SerializedApplicationTemplate.Builder, + com.google.cloud.designcenter.v1.SerializedApplicationTemplateOrBuilder>( + getSnapshot(), getParentForChildren(), isClean()); + snapshot_ = null; + } + return snapshotBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ApplicationTemplateSystemRevision) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ApplicationTemplateSystemRevision) + private static final com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision(); + } + + public static com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ApplicationTemplateSystemRevision parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ApplicationTemplateSystemRevision + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplicationTemplateSystemRevisionName.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplicationTemplateSystemRevisionName.java new file mode 100644 index 000000000000..459a1bb0352a --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplicationTemplateSystemRevisionName.java @@ -0,0 +1,312 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.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; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked +@Generated("by gapic-generator-java") +public class ApplicationTemplateSystemRevisionName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_SPACE_APPLICATION_TEMPLATE_SYSTEM_REVISION = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/systemRevisions/{system_revision}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String space; + private final String applicationTemplate; + private final String systemRevision; + + @Deprecated + protected ApplicationTemplateSystemRevisionName() { + project = null; + location = null; + space = null; + applicationTemplate = null; + systemRevision = null; + } + + private ApplicationTemplateSystemRevisionName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + space = Preconditions.checkNotNull(builder.getSpace()); + applicationTemplate = Preconditions.checkNotNull(builder.getApplicationTemplate()); + systemRevision = Preconditions.checkNotNull(builder.getSystemRevision()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getSpace() { + return space; + } + + public String getApplicationTemplate() { + return applicationTemplate; + } + + public String getSystemRevision() { + return systemRevision; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ApplicationTemplateSystemRevisionName of( + String project, + String location, + String space, + String applicationTemplate, + String systemRevision) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setSpace(space) + .setApplicationTemplate(applicationTemplate) + .setSystemRevision(systemRevision) + .build(); + } + + public static String format( + String project, + String location, + String space, + String applicationTemplate, + String systemRevision) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setSpace(space) + .setApplicationTemplate(applicationTemplate) + .setSystemRevision(systemRevision) + .build() + .toString(); + } + + public static @Nullable ApplicationTemplateSystemRevisionName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_SPACE_APPLICATION_TEMPLATE_SYSTEM_REVISION.validatedMatch( + formattedString, + "ApplicationTemplateSystemRevisionName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("space"), + matchMap.get("application_template"), + matchMap.get("system_revision")); + } + + 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<@Nullable ApplicationTemplateSystemRevisionName> values) { + List list = new ArrayList<>(values.size()); + for (ApplicationTemplateSystemRevisionName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_SPACE_APPLICATION_TEMPLATE_SYSTEM_REVISION.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 (space != null) { + fieldMapBuilder.put("space", space); + } + if (applicationTemplate != null) { + fieldMapBuilder.put("application_template", applicationTemplate); + } + if (systemRevision != null) { + fieldMapBuilder.put("system_revision", systemRevision); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_SPACE_APPLICATION_TEMPLATE_SYSTEM_REVISION.instantiate( + "project", + project, + "location", + location, + "space", + space, + "application_template", + applicationTemplate, + "system_revision", + systemRevision); + } + + @Override + public boolean equals(@Nullable Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + ApplicationTemplateSystemRevisionName that = ((ApplicationTemplateSystemRevisionName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.space, that.space) + && Objects.equals(this.applicationTemplate, that.applicationTemplate) + && Objects.equals(this.systemRevision, that.systemRevision); + } + 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(space); + h *= 1000003; + h ^= Objects.hashCode(applicationTemplate); + h *= 1000003; + h ^= Objects.hashCode(systemRevision); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/systemRevisions/{system_revision}. + */ + public static class Builder { + private String project; + private String location; + private String space; + private String applicationTemplate; + private String systemRevision; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getSpace() { + return space; + } + + public String getApplicationTemplate() { + return applicationTemplate; + } + + public String getSystemRevision() { + return systemRevision; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setSpace(String space) { + this.space = space; + return this; + } + + public Builder setApplicationTemplate(String applicationTemplate) { + this.applicationTemplate = applicationTemplate; + return this; + } + + public Builder setSystemRevision(String systemRevision) { + this.systemRevision = systemRevision; + return this; + } + + private Builder(ApplicationTemplateSystemRevisionName applicationTemplateSystemRevisionName) { + this.project = applicationTemplateSystemRevisionName.project; + this.location = applicationTemplateSystemRevisionName.location; + this.space = applicationTemplateSystemRevisionName.space; + this.applicationTemplate = applicationTemplateSystemRevisionName.applicationTemplate; + this.systemRevision = applicationTemplateSystemRevisionName.systemRevision; + } + + public ApplicationTemplateSystemRevisionName build() { + return new ApplicationTemplateSystemRevisionName(this); + } + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplicationTemplateSystemRevisionOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplicationTemplateSystemRevisionOrBuilder.java new file mode 100644 index 000000000000..97e05b708d0d --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplicationTemplateSystemRevisionOrBuilder.java @@ -0,0 +1,244 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ApplicationTemplateSystemRevisionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ApplicationTemplateSystemRevision) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier. The application template system revision name.
+   * Format:
+   * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/systemRevisions/{system_revision}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Identifier. The application template system revision name.
+   * Format:
+   * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/systemRevisions/{system_revision}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. The application template system revision creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
+   * Output only. The application template system revision creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
+   * Output only. The application template system revision creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Annotations from agentic workflows or other system processes.
+   * For example:
+   * {
+   * "designcenter.googleapis.com/agent_id": "gemini-3-flash-v1",
+   * "designcenter.googleapis.com/llm_agent_summary": "Added a Cloud SQL
+   * instance", "designcenter.googleapis.com/external_ref_id":
+   * "trace-uuid-88921-xyz"
+   * }
+   * 
+ * + * map<string, string> annotations = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getAnnotationsCount(); + + /** + * + * + *
+   * Output only. Annotations from agentic workflows or other system processes.
+   * For example:
+   * {
+   * "designcenter.googleapis.com/agent_id": "gemini-3-flash-v1",
+   * "designcenter.googleapis.com/llm_agent_summary": "Added a Cloud SQL
+   * instance", "designcenter.googleapis.com/external_ref_id":
+   * "trace-uuid-88921-xyz"
+   * }
+   * 
+ * + * map<string, string> annotations = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + boolean containsAnnotations(java.lang.String key); + + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getAnnotations(); + + /** + * + * + *
+   * Output only. Annotations from agentic workflows or other system processes.
+   * For example:
+   * {
+   * "designcenter.googleapis.com/agent_id": "gemini-3-flash-v1",
+   * "designcenter.googleapis.com/llm_agent_summary": "Added a Cloud SQL
+   * instance", "designcenter.googleapis.com/external_ref_id":
+   * "trace-uuid-88921-xyz"
+   * }
+   * 
+ * + * map<string, string> annotations = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.Map getAnnotationsMap(); + + /** + * + * + *
+   * Output only. Annotations from agentic workflows or other system processes.
+   * For example:
+   * {
+   * "designcenter.googleapis.com/agent_id": "gemini-3-flash-v1",
+   * "designcenter.googleapis.com/llm_agent_summary": "Added a Cloud SQL
+   * instance", "designcenter.googleapis.com/external_ref_id":
+   * "trace-uuid-88921-xyz"
+   * }
+   * 
+ * + * map<string, string> annotations = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + /* nullable */ + java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
+   * Output only. Annotations from agentic workflows or other system processes.
+   * For example:
+   * {
+   * "designcenter.googleapis.com/agent_id": "gemini-3-flash-v1",
+   * "designcenter.googleapis.com/llm_agent_summary": "Added a Cloud SQL
+   * instance", "designcenter.googleapis.com/external_ref_id":
+   * "trace-uuid-88921-xyz"
+   * }
+   * 
+ * + * map<string, string> annotations = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.lang.String getAnnotationsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Output only. The serialized application template snapshot at this revision.
+   * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate snapshot = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the snapshot field is set. + */ + boolean hasSnapshot(); + + /** + * + * + *
+   * Output only. The serialized application template snapshot at this revision.
+   * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate snapshot = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The snapshot. + */ + com.google.cloud.designcenter.v1.SerializedApplicationTemplate getSnapshot(); + + /** + * + * + *
+   * Output only. The serialized application template snapshot at this revision.
+   * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate snapshot = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.SerializedApplicationTemplateOrBuilder getSnapshotOrBuilder(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplicationType.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplicationType.java new file mode 100644 index 000000000000..b34ea31c4dc5 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplicationType.java @@ -0,0 +1,191 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/enums.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * The type of the application.
+ * 
+ * + * Protobuf enum {@code google.cloud.designcenter.v1.ApplicationType} + */ +@com.google.protobuf.Generated +public enum ApplicationType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Application type is unspecified.
+   * 
+ * + * APPLICATION_TYPE_UNSPECIFIED = 0; + */ + APPLICATION_TYPE_UNSPECIFIED(0), + /** + * + * + *
+   * Application type is terraform application.
+   * 
+ * + * TERRAFORM_APP = 1; + */ + TERRAFORM_APP(1), + /** + * + * + *
+   * Application type is helm application.
+   * 
+ * + * HELM_APP = 2; + */ + HELM_APP(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ApplicationType"); + } + + /** + * + * + *
+   * Application type is unspecified.
+   * 
+ * + * APPLICATION_TYPE_UNSPECIFIED = 0; + */ + public static final int APPLICATION_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+   * Application type is terraform application.
+   * 
+ * + * TERRAFORM_APP = 1; + */ + public static final int TERRAFORM_APP_VALUE = 1; + + /** + * + * + *
+   * Application type is helm application.
+   * 
+ * + * HELM_APP = 2; + */ + public static final int HELM_APP_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 ApplicationType 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 ApplicationType forNumber(int value) { + switch (value) { + case 0: + return APPLICATION_TYPE_UNSPECIFIED; + case 1: + return TERRAFORM_APP; + case 2: + return HELM_APP; + 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 ApplicationType findValueByNumber(int number) { + return ApplicationType.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.designcenter.v1.EnumsProto.getDescriptor().getEnumTypes().get(8); + } + + private static final ApplicationType[] VALUES = values(); + + public static ApplicationType 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 ApplicationType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.designcenter.v1.ApplicationType) +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplyCondition.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplyCondition.java new file mode 100644 index 000000000000..317cd882d046 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplyCondition.java @@ -0,0 +1,787 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/assessment.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Condition for applying the policy. Accepts the `criticality`
+ * and `environment` parameters from the application template.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ApplyCondition} + */ +@com.google.protobuf.Generated +public final class ApplyCondition extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ApplyCondition) + ApplyConditionOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ApplyCondition"); + } + + // Use ApplyCondition.newBuilder() to construct. + private ApplyCondition(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ApplyCondition() { + conditionKey_ = ""; + conditionValue_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_ApplyCondition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_ApplyCondition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ApplyCondition.class, + com.google.cloud.designcenter.v1.ApplyCondition.Builder.class); + } + + public static final int CONDITION_KEY_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object conditionKey_ = ""; + + /** + * + * + *
+   * Required. The key of the parameter for the condition.
+   * 
+ * + * string condition_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The conditionKey. + */ + @java.lang.Override + public java.lang.String getConditionKey() { + java.lang.Object ref = conditionKey_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + conditionKey_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The key of the parameter for the condition.
+   * 
+ * + * string condition_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for conditionKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString getConditionKeyBytes() { + java.lang.Object ref = conditionKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + conditionKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONDITION_VALUE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object conditionValue_ = ""; + + /** + * + * + *
+   * Required. The value of the parameter for the condition.
+   * 
+ * + * string condition_value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The conditionValue. + */ + @java.lang.Override + public java.lang.String getConditionValue() { + java.lang.Object ref = conditionValue_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + conditionValue_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The value of the parameter for the condition.
+   * 
+ * + * string condition_value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for conditionValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString getConditionValueBytes() { + java.lang.Object ref = conditionValue_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + conditionValue_ = 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.GeneratedMessage.isStringEmpty(conditionKey_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, conditionKey_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(conditionValue_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, conditionValue_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(conditionKey_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, conditionKey_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(conditionValue_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, conditionValue_); + } + 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.designcenter.v1.ApplyCondition)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ApplyCondition other = + (com.google.cloud.designcenter.v1.ApplyCondition) obj; + + if (!getConditionKey().equals(other.getConditionKey())) return false; + if (!getConditionValue().equals(other.getConditionValue())) 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) + CONDITION_KEY_FIELD_NUMBER; + hash = (53 * hash) + getConditionKey().hashCode(); + hash = (37 * hash) + CONDITION_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getConditionValue().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.ApplyCondition parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ApplyCondition 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.designcenter.v1.ApplyCondition parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ApplyCondition parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ApplyCondition parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ApplyCondition parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ApplyCondition parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ApplyCondition parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ApplyCondition parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ApplyCondition parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ApplyCondition parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ApplyCondition parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ApplyCondition 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Condition for applying the policy. Accepts the `criticality`
+   * and `environment` parameters from the application template.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ApplyCondition} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ApplyCondition) + com.google.cloud.designcenter.v1.ApplyConditionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_ApplyCondition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_ApplyCondition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ApplyCondition.class, + com.google.cloud.designcenter.v1.ApplyCondition.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.ApplyCondition.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + conditionKey_ = ""; + conditionValue_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_ApplyCondition_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ApplyCondition getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ApplyCondition.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ApplyCondition build() { + com.google.cloud.designcenter.v1.ApplyCondition result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ApplyCondition buildPartial() { + com.google.cloud.designcenter.v1.ApplyCondition result = + new com.google.cloud.designcenter.v1.ApplyCondition(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.ApplyCondition result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.conditionKey_ = conditionKey_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.conditionValue_ = conditionValue_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.ApplyCondition) { + return mergeFrom((com.google.cloud.designcenter.v1.ApplyCondition) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.ApplyCondition other) { + if (other == com.google.cloud.designcenter.v1.ApplyCondition.getDefaultInstance()) + return this; + if (!other.getConditionKey().isEmpty()) { + conditionKey_ = other.conditionKey_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getConditionValue().isEmpty()) { + conditionValue_ = other.conditionValue_; + 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: + { + conditionKey_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + conditionValue_ = 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 conditionKey_ = ""; + + /** + * + * + *
+     * Required. The key of the parameter for the condition.
+     * 
+ * + * string condition_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The conditionKey. + */ + public java.lang.String getConditionKey() { + java.lang.Object ref = conditionKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + conditionKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The key of the parameter for the condition.
+     * 
+ * + * string condition_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for conditionKey. + */ + public com.google.protobuf.ByteString getConditionKeyBytes() { + java.lang.Object ref = conditionKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + conditionKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The key of the parameter for the condition.
+     * 
+ * + * string condition_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The conditionKey to set. + * @return This builder for chaining. + */ + public Builder setConditionKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + conditionKey_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The key of the parameter for the condition.
+     * 
+ * + * string condition_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearConditionKey() { + conditionKey_ = getDefaultInstance().getConditionKey(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The key of the parameter for the condition.
+     * 
+ * + * string condition_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for conditionKey to set. + * @return This builder for chaining. + */ + public Builder setConditionKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + conditionKey_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object conditionValue_ = ""; + + /** + * + * + *
+     * Required. The value of the parameter for the condition.
+     * 
+ * + * string condition_value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The conditionValue. + */ + public java.lang.String getConditionValue() { + java.lang.Object ref = conditionValue_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + conditionValue_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The value of the parameter for the condition.
+     * 
+ * + * string condition_value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for conditionValue. + */ + public com.google.protobuf.ByteString getConditionValueBytes() { + java.lang.Object ref = conditionValue_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + conditionValue_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The value of the parameter for the condition.
+     * 
+ * + * string condition_value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The conditionValue to set. + * @return This builder for chaining. + */ + public Builder setConditionValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + conditionValue_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The value of the parameter for the condition.
+     * 
+ * + * string condition_value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearConditionValue() { + conditionValue_ = getDefaultInstance().getConditionValue(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The value of the parameter for the condition.
+     * 
+ * + * string condition_value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for conditionValue to set. + * @return This builder for chaining. + */ + public Builder setConditionValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + conditionValue_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ApplyCondition) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ApplyCondition) + private static final com.google.cloud.designcenter.v1.ApplyCondition DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.ApplyCondition(); + } + + public static com.google.cloud.designcenter.v1.ApplyCondition getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ApplyCondition parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ApplyCondition getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplyConditionOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplyConditionOrBuilder.java new file mode 100644 index 000000000000..5e0d7a6e5b18 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ApplyConditionOrBuilder.java @@ -0,0 +1,80 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/assessment.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ApplyConditionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ApplyCondition) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The key of the parameter for the condition.
+   * 
+ * + * string condition_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The conditionKey. + */ + java.lang.String getConditionKey(); + + /** + * + * + *
+   * Required. The key of the parameter for the condition.
+   * 
+ * + * string condition_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for conditionKey. + */ + com.google.protobuf.ByteString getConditionKeyBytes(); + + /** + * + * + *
+   * Required. The value of the parameter for the condition.
+   * 
+ * + * string condition_value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The conditionValue. + */ + java.lang.String getConditionValue(); + + /** + * + * + *
+   * Required. The value of the parameter for the condition.
+   * 
+ * + * string condition_value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for conditionValue. + */ + com.google.protobuf.ByteString getConditionValueBytes(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ArtifactLocation.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ArtifactLocation.java new file mode 100644 index 000000000000..26defffd937b --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ArtifactLocation.java @@ -0,0 +1,1098 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/export.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Defines the location for storing an artifact, such as generated IaC.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ArtifactLocation} + */ +@com.google.protobuf.Generated +public final class ArtifactLocation extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ArtifactLocation) + ArtifactLocationOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ArtifactLocation"); + } + + // Use ArtifactLocation.newBuilder() to construct. + private ArtifactLocation(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ArtifactLocation() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.ExportProto + .internal_static_google_cloud_designcenter_v1_ArtifactLocation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.ExportProto + .internal_static_google_cloud_designcenter_v1_ArtifactLocation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ArtifactLocation.class, + com.google.cloud.designcenter.v1.ArtifactLocation.Builder.class); + } + + private int locationCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object location_; + + public enum LocationCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + DEVELOPER_CONNECT_EXPORT_CONFIG(1), + GCS_URI(2), + LOCATION_NOT_SET(0); + private final int value; + + private LocationCase(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 LocationCase valueOf(int value) { + return forNumber(value); + } + + public static LocationCase forNumber(int value) { + switch (value) { + case 1: + return DEVELOPER_CONNECT_EXPORT_CONFIG; + case 2: + return GCS_URI; + case 0: + return LOCATION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public LocationCase getLocationCase() { + return LocationCase.forNumber(locationCase_); + } + + public static final int DEVELOPER_CONNECT_EXPORT_CONFIG_FIELD_NUMBER = 1; + + /** + * + * + *
+   * Optional. Source Code Management(SCM) config for storing the content,
+   * such as generated IaC. Supports sources integrated with Developer Connect
+   * like GitHub, GitHub Enterprise, GitLab, and Bitbucket.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectExportConfig developer_connect_export_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the developerConnectExportConfig field is set. + */ + @java.lang.Override + public boolean hasDeveloperConnectExportConfig() { + return locationCase_ == 1; + } + + /** + * + * + *
+   * Optional. Source Code Management(SCM) config for storing the content,
+   * such as generated IaC. Supports sources integrated with Developer Connect
+   * like GitHub, GitHub Enterprise, GitLab, and Bitbucket.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectExportConfig developer_connect_export_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The developerConnectExportConfig. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.DeveloperConnectExportConfig + getDeveloperConnectExportConfig() { + if (locationCase_ == 1) { + return (com.google.cloud.designcenter.v1.DeveloperConnectExportConfig) location_; + } + return com.google.cloud.designcenter.v1.DeveloperConnectExportConfig.getDefaultInstance(); + } + + /** + * + * + *
+   * Optional. Source Code Management(SCM) config for storing the content,
+   * such as generated IaC. Supports sources integrated with Developer Connect
+   * like GitHub, GitHub Enterprise, GitLab, and Bitbucket.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectExportConfig developer_connect_export_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.DeveloperConnectExportConfigOrBuilder + getDeveloperConnectExportConfigOrBuilder() { + if (locationCase_ == 1) { + return (com.google.cloud.designcenter.v1.DeveloperConnectExportConfig) location_; + } + return com.google.cloud.designcenter.v1.DeveloperConnectExportConfig.getDefaultInstance(); + } + + public static final int GCS_URI_FIELD_NUMBER = 2; + + /** + * + * + *
+   * Optional. The Cloud Storage URI for storing the generated IaC.
+   * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the gcsUri field is set. + */ + public boolean hasGcsUri() { + return locationCase_ == 2; + } + + /** + * + * + *
+   * Optional. The Cloud Storage URI for storing the generated IaC.
+   * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The gcsUri. + */ + public java.lang.String getGcsUri() { + java.lang.Object ref = ""; + if (locationCase_ == 2) { + ref = location_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (locationCase_ == 2) { + location_ = s; + } + return s; + } + } + + /** + * + * + *
+   * Optional. The Cloud Storage URI for storing the generated IaC.
+   * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for gcsUri. + */ + public com.google.protobuf.ByteString getGcsUriBytes() { + java.lang.Object ref = ""; + if (locationCase_ == 2) { + ref = location_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (locationCase_ == 2) { + location_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (locationCase_ == 1) { + output.writeMessage( + 1, (com.google.cloud.designcenter.v1.DeveloperConnectExportConfig) location_); + } + if (locationCase_ == 2) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, location_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (locationCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.designcenter.v1.DeveloperConnectExportConfig) location_); + } + if (locationCase_ == 2) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, location_); + } + 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.designcenter.v1.ArtifactLocation)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ArtifactLocation other = + (com.google.cloud.designcenter.v1.ArtifactLocation) obj; + + if (!getLocationCase().equals(other.getLocationCase())) return false; + switch (locationCase_) { + case 1: + if (!getDeveloperConnectExportConfig().equals(other.getDeveloperConnectExportConfig())) + return false; + break; + case 2: + if (!getGcsUri().equals(other.getGcsUri())) 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 (locationCase_) { + case 1: + hash = (37 * hash) + DEVELOPER_CONNECT_EXPORT_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDeveloperConnectExportConfig().hashCode(); + break; + case 2: + hash = (37 * hash) + GCS_URI_FIELD_NUMBER; + hash = (53 * hash) + getGcsUri().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.ArtifactLocation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ArtifactLocation 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.designcenter.v1.ArtifactLocation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ArtifactLocation parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ArtifactLocation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ArtifactLocation parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ArtifactLocation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ArtifactLocation parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ArtifactLocation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ArtifactLocation parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ArtifactLocation parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ArtifactLocation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ArtifactLocation 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Defines the location for storing an artifact, such as generated IaC.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ArtifactLocation} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ArtifactLocation) + com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.ExportProto + .internal_static_google_cloud_designcenter_v1_ArtifactLocation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.ExportProto + .internal_static_google_cloud_designcenter_v1_ArtifactLocation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ArtifactLocation.class, + com.google.cloud.designcenter.v1.ArtifactLocation.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.ArtifactLocation.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (developerConnectExportConfigBuilder_ != null) { + developerConnectExportConfigBuilder_.clear(); + } + locationCase_ = 0; + location_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.ExportProto + .internal_static_google_cloud_designcenter_v1_ArtifactLocation_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ArtifactLocation getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ArtifactLocation build() { + com.google.cloud.designcenter.v1.ArtifactLocation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ArtifactLocation buildPartial() { + com.google.cloud.designcenter.v1.ArtifactLocation result = + new com.google.cloud.designcenter.v1.ArtifactLocation(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.ArtifactLocation result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.designcenter.v1.ArtifactLocation result) { + result.locationCase_ = locationCase_; + result.location_ = this.location_; + if (locationCase_ == 1 && developerConnectExportConfigBuilder_ != null) { + result.location_ = developerConnectExportConfigBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.ArtifactLocation) { + return mergeFrom((com.google.cloud.designcenter.v1.ArtifactLocation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.ArtifactLocation other) { + if (other == com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance()) + return this; + switch (other.getLocationCase()) { + case DEVELOPER_CONNECT_EXPORT_CONFIG: + { + mergeDeveloperConnectExportConfig(other.getDeveloperConnectExportConfig()); + break; + } + case GCS_URI: + { + locationCase_ = 2; + location_ = other.location_; + onChanged(); + break; + } + case LOCATION_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( + internalGetDeveloperConnectExportConfigFieldBuilder().getBuilder(), + extensionRegistry); + locationCase_ = 1; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + locationCase_ = 2; + location_ = s; + 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 locationCase_ = 0; + private java.lang.Object location_; + + public LocationCase getLocationCase() { + return LocationCase.forNumber(locationCase_); + } + + public Builder clearLocation() { + locationCase_ = 0; + location_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.DeveloperConnectExportConfig, + com.google.cloud.designcenter.v1.DeveloperConnectExportConfig.Builder, + com.google.cloud.designcenter.v1.DeveloperConnectExportConfigOrBuilder> + developerConnectExportConfigBuilder_; + + /** + * + * + *
+     * Optional. Source Code Management(SCM) config for storing the content,
+     * such as generated IaC. Supports sources integrated with Developer Connect
+     * like GitHub, GitHub Enterprise, GitLab, and Bitbucket.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectExportConfig developer_connect_export_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the developerConnectExportConfig field is set. + */ + @java.lang.Override + public boolean hasDeveloperConnectExportConfig() { + return locationCase_ == 1; + } + + /** + * + * + *
+     * Optional. Source Code Management(SCM) config for storing the content,
+     * such as generated IaC. Supports sources integrated with Developer Connect
+     * like GitHub, GitHub Enterprise, GitLab, and Bitbucket.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectExportConfig developer_connect_export_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The developerConnectExportConfig. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.DeveloperConnectExportConfig + getDeveloperConnectExportConfig() { + if (developerConnectExportConfigBuilder_ == null) { + if (locationCase_ == 1) { + return (com.google.cloud.designcenter.v1.DeveloperConnectExportConfig) location_; + } + return com.google.cloud.designcenter.v1.DeveloperConnectExportConfig.getDefaultInstance(); + } else { + if (locationCase_ == 1) { + return developerConnectExportConfigBuilder_.getMessage(); + } + return com.google.cloud.designcenter.v1.DeveloperConnectExportConfig.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. Source Code Management(SCM) config for storing the content,
+     * such as generated IaC. Supports sources integrated with Developer Connect
+     * like GitHub, GitHub Enterprise, GitLab, and Bitbucket.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectExportConfig developer_connect_export_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDeveloperConnectExportConfig( + com.google.cloud.designcenter.v1.DeveloperConnectExportConfig value) { + if (developerConnectExportConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + location_ = value; + onChanged(); + } else { + developerConnectExportConfigBuilder_.setMessage(value); + } + locationCase_ = 1; + return this; + } + + /** + * + * + *
+     * Optional. Source Code Management(SCM) config for storing the content,
+     * such as generated IaC. Supports sources integrated with Developer Connect
+     * like GitHub, GitHub Enterprise, GitLab, and Bitbucket.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectExportConfig developer_connect_export_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDeveloperConnectExportConfig( + com.google.cloud.designcenter.v1.DeveloperConnectExportConfig.Builder builderForValue) { + if (developerConnectExportConfigBuilder_ == null) { + location_ = builderForValue.build(); + onChanged(); + } else { + developerConnectExportConfigBuilder_.setMessage(builderForValue.build()); + } + locationCase_ = 1; + return this; + } + + /** + * + * + *
+     * Optional. Source Code Management(SCM) config for storing the content,
+     * such as generated IaC. Supports sources integrated with Developer Connect
+     * like GitHub, GitHub Enterprise, GitLab, and Bitbucket.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectExportConfig developer_connect_export_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeDeveloperConnectExportConfig( + com.google.cloud.designcenter.v1.DeveloperConnectExportConfig value) { + if (developerConnectExportConfigBuilder_ == null) { + if (locationCase_ == 1 + && location_ + != com.google.cloud.designcenter.v1.DeveloperConnectExportConfig + .getDefaultInstance()) { + location_ = + com.google.cloud.designcenter.v1.DeveloperConnectExportConfig.newBuilder( + (com.google.cloud.designcenter.v1.DeveloperConnectExportConfig) location_) + .mergeFrom(value) + .buildPartial(); + } else { + location_ = value; + } + onChanged(); + } else { + if (locationCase_ == 1) { + developerConnectExportConfigBuilder_.mergeFrom(value); + } else { + developerConnectExportConfigBuilder_.setMessage(value); + } + } + locationCase_ = 1; + return this; + } + + /** + * + * + *
+     * Optional. Source Code Management(SCM) config for storing the content,
+     * such as generated IaC. Supports sources integrated with Developer Connect
+     * like GitHub, GitHub Enterprise, GitLab, and Bitbucket.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectExportConfig developer_connect_export_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDeveloperConnectExportConfig() { + if (developerConnectExportConfigBuilder_ == null) { + if (locationCase_ == 1) { + locationCase_ = 0; + location_ = null; + onChanged(); + } + } else { + if (locationCase_ == 1) { + locationCase_ = 0; + location_ = null; + } + developerConnectExportConfigBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Source Code Management(SCM) config for storing the content,
+     * such as generated IaC. Supports sources integrated with Developer Connect
+     * like GitHub, GitHub Enterprise, GitLab, and Bitbucket.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectExportConfig developer_connect_export_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.DeveloperConnectExportConfig.Builder + getDeveloperConnectExportConfigBuilder() { + return internalGetDeveloperConnectExportConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Source Code Management(SCM) config for storing the content,
+     * such as generated IaC. Supports sources integrated with Developer Connect
+     * like GitHub, GitHub Enterprise, GitLab, and Bitbucket.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectExportConfig developer_connect_export_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.DeveloperConnectExportConfigOrBuilder + getDeveloperConnectExportConfigOrBuilder() { + if ((locationCase_ == 1) && (developerConnectExportConfigBuilder_ != null)) { + return developerConnectExportConfigBuilder_.getMessageOrBuilder(); + } else { + if (locationCase_ == 1) { + return (com.google.cloud.designcenter.v1.DeveloperConnectExportConfig) location_; + } + return com.google.cloud.designcenter.v1.DeveloperConnectExportConfig.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. Source Code Management(SCM) config for storing the content,
+     * such as generated IaC. Supports sources integrated with Developer Connect
+     * like GitHub, GitHub Enterprise, GitLab, and Bitbucket.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectExportConfig developer_connect_export_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.DeveloperConnectExportConfig, + com.google.cloud.designcenter.v1.DeveloperConnectExportConfig.Builder, + com.google.cloud.designcenter.v1.DeveloperConnectExportConfigOrBuilder> + internalGetDeveloperConnectExportConfigFieldBuilder() { + if (developerConnectExportConfigBuilder_ == null) { + if (!(locationCase_ == 1)) { + location_ = + com.google.cloud.designcenter.v1.DeveloperConnectExportConfig.getDefaultInstance(); + } + developerConnectExportConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.DeveloperConnectExportConfig, + com.google.cloud.designcenter.v1.DeveloperConnectExportConfig.Builder, + com.google.cloud.designcenter.v1.DeveloperConnectExportConfigOrBuilder>( + (com.google.cloud.designcenter.v1.DeveloperConnectExportConfig) location_, + getParentForChildren(), + isClean()); + location_ = null; + } + locationCase_ = 1; + onChanged(); + return developerConnectExportConfigBuilder_; + } + + /** + * + * + *
+     * Optional. The Cloud Storage URI for storing the generated IaC.
+     * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the gcsUri field is set. + */ + @java.lang.Override + public boolean hasGcsUri() { + return locationCase_ == 2; + } + + /** + * + * + *
+     * Optional. The Cloud Storage URI for storing the generated IaC.
+     * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The gcsUri. + */ + @java.lang.Override + public java.lang.String getGcsUri() { + java.lang.Object ref = ""; + if (locationCase_ == 2) { + ref = location_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (locationCase_ == 2) { + location_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The Cloud Storage URI for storing the generated IaC.
+     * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for gcsUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGcsUriBytes() { + java.lang.Object ref = ""; + if (locationCase_ == 2) { + ref = location_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (locationCase_ == 2) { + location_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The Cloud Storage URI for storing the generated IaC.
+     * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The gcsUri to set. + * @return This builder for chaining. + */ + public Builder setGcsUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + locationCase_ = 2; + location_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The Cloud Storage URI for storing the generated IaC.
+     * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearGcsUri() { + if (locationCase_ == 2) { + locationCase_ = 0; + location_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The Cloud Storage URI for storing the generated IaC.
+     * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for gcsUri to set. + * @return This builder for chaining. + */ + public Builder setGcsUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + locationCase_ = 2; + location_ = value; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ArtifactLocation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ArtifactLocation) + private static final com.google.cloud.designcenter.v1.ArtifactLocation DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.ArtifactLocation(); + } + + public static com.google.cloud.designcenter.v1.ArtifactLocation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ArtifactLocation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ArtifactLocation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ArtifactLocationOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ArtifactLocationOrBuilder.java new file mode 100644 index 000000000000..822a4cee3e5a --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ArtifactLocationOrBuilder.java @@ -0,0 +1,119 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/export.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ArtifactLocationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ArtifactLocation) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Source Code Management(SCM) config for storing the content,
+   * such as generated IaC. Supports sources integrated with Developer Connect
+   * like GitHub, GitHub Enterprise, GitLab, and Bitbucket.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectExportConfig developer_connect_export_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the developerConnectExportConfig field is set. + */ + boolean hasDeveloperConnectExportConfig(); + + /** + * + * + *
+   * Optional. Source Code Management(SCM) config for storing the content,
+   * such as generated IaC. Supports sources integrated with Developer Connect
+   * like GitHub, GitHub Enterprise, GitLab, and Bitbucket.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectExportConfig developer_connect_export_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The developerConnectExportConfig. + */ + com.google.cloud.designcenter.v1.DeveloperConnectExportConfig getDeveloperConnectExportConfig(); + + /** + * + * + *
+   * Optional. Source Code Management(SCM) config for storing the content,
+   * such as generated IaC. Supports sources integrated with Developer Connect
+   * like GitHub, GitHub Enterprise, GitLab, and Bitbucket.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectExportConfig developer_connect_export_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.DeveloperConnectExportConfigOrBuilder + getDeveloperConnectExportConfigOrBuilder(); + + /** + * + * + *
+   * Optional. The Cloud Storage URI for storing the generated IaC.
+   * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the gcsUri field is set. + */ + boolean hasGcsUri(); + + /** + * + * + *
+   * Optional. The Cloud Storage URI for storing the generated IaC.
+   * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The gcsUri. + */ + java.lang.String getGcsUri(); + + /** + * + * + *
+   * Optional. The Cloud Storage URI for storing the generated IaC.
+   * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for gcsUri. + */ + com.google.protobuf.ByteString getGcsUriBytes(); + + com.google.cloud.designcenter.v1.ArtifactLocation.LocationCase getLocationCase(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/AssessedFramework.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/AssessedFramework.java new file mode 100644 index 000000000000..6290c0f9034c --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/AssessedFramework.java @@ -0,0 +1,1888 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/assessment.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Framework assessed and their findings.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.AssessedFramework} + */ +@com.google.protobuf.Generated +public final class AssessedFramework extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.AssessedFramework) + AssessedFrameworkOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AssessedFramework"); + } + + // Use AssessedFramework.newBuilder() to construct. + private AssessedFramework(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AssessedFramework() { + findings_ = java.util.Collections.emptyList(); + skippedReason_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_AssessedFramework_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_AssessedFramework_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.AssessedFramework.class, + com.google.cloud.designcenter.v1.AssessedFramework.Builder.class); + } + + private int bitField0_; + public static final int FRAMEWORK_FIELD_NUMBER = 1; + private com.google.cloud.designcenter.v1.Framework framework_; + + /** + * + * + *
+   * Required. The framework that was assessed.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Framework framework = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the framework field is set. + */ + @java.lang.Override + public boolean hasFramework() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The framework that was assessed.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Framework framework = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The framework. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.Framework getFramework() { + return framework_ == null + ? com.google.cloud.designcenter.v1.Framework.getDefaultInstance() + : framework_; + } + + /** + * + * + *
+   * Required. The framework that was assessed.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Framework framework = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.FrameworkOrBuilder getFrameworkOrBuilder() { + return framework_ == null + ? com.google.cloud.designcenter.v1.Framework.getDefaultInstance() + : framework_; + } + + public static final int FINDINGS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List findings_; + + /** + * + * + *
+   * Required. A list of every Finding found during the assessment.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.AssessmentFinding findings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List getFindingsList() { + return findings_; + } + + /** + * + * + *
+   * Required. A list of every Finding found during the assessment.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.AssessmentFinding findings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getFindingsOrBuilderList() { + return findings_; + } + + /** + * + * + *
+   * Required. A list of every Finding found during the assessment.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.AssessmentFinding findings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getFindingsCount() { + return findings_.size(); + } + + /** + * + * + *
+   * Required. A list of every Finding found during the assessment.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.AssessmentFinding findings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.AssessmentFinding getFindings(int index) { + return findings_.get(index); + } + + /** + * + * + *
+   * Required. A list of every Finding found during the assessment.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.AssessmentFinding findings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.AssessmentFindingOrBuilder getFindingsOrBuilder( + int index) { + return findings_.get(index); + } + + public static final int SCORE_CARD_FIELD_NUMBER = 3; + private com.google.cloud.designcenter.v1.ScoreCard scoreCard_; + + /** + * + * + *
+   * Optional. Score card associated with the report.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ScoreCard score_card = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the scoreCard field is set. + */ + @java.lang.Override + public boolean hasScoreCard() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. Score card associated with the report.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ScoreCard score_card = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The scoreCard. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ScoreCard getScoreCard() { + return scoreCard_ == null + ? com.google.cloud.designcenter.v1.ScoreCard.getDefaultInstance() + : scoreCard_; + } + + /** + * + * + *
+   * Optional. Score card associated with the report.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ScoreCard score_card = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ScoreCardOrBuilder getScoreCardOrBuilder() { + return scoreCard_ == null + ? com.google.cloud.designcenter.v1.ScoreCard.getDefaultInstance() + : scoreCard_; + } + + public static final int SKIPPED_FIELD_NUMBER = 4; + private boolean skipped_ = false; + + /** + * + * + *
+   * Optional. Whether the framework was skipped during assessment.
+   * 
+ * + * bool skipped = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skipped. + */ + @java.lang.Override + public boolean getSkipped() { + return skipped_; + } + + public static final int SKIPPED_REASON_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object skippedReason_ = ""; + + /** + * + * + *
+   * Optional. Reason for skipping the framework during assessment.
+   * 
+ * + * string skipped_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skippedReason. + */ + @java.lang.Override + public java.lang.String getSkippedReason() { + java.lang.Object ref = skippedReason_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + skippedReason_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Reason for skipping the framework during assessment.
+   * 
+ * + * string skipped_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for skippedReason. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSkippedReasonBytes() { + java.lang.Object ref = skippedReason_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + skippedReason_ = 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getFramework()); + } + for (int i = 0; i < findings_.size(); i++) { + output.writeMessage(2, findings_.get(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getScoreCard()); + } + if (skipped_ != false) { + output.writeBool(4, skipped_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(skippedReason_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, skippedReason_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getFramework()); + } + for (int i = 0; i < findings_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, findings_.get(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getScoreCard()); + } + if (skipped_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, skipped_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(skippedReason_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, skippedReason_); + } + 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.designcenter.v1.AssessedFramework)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.AssessedFramework other = + (com.google.cloud.designcenter.v1.AssessedFramework) obj; + + if (hasFramework() != other.hasFramework()) return false; + if (hasFramework()) { + if (!getFramework().equals(other.getFramework())) return false; + } + if (!getFindingsList().equals(other.getFindingsList())) return false; + if (hasScoreCard() != other.hasScoreCard()) return false; + if (hasScoreCard()) { + if (!getScoreCard().equals(other.getScoreCard())) return false; + } + if (getSkipped() != other.getSkipped()) return false; + if (!getSkippedReason().equals(other.getSkippedReason())) 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 (hasFramework()) { + hash = (37 * hash) + FRAMEWORK_FIELD_NUMBER; + hash = (53 * hash) + getFramework().hashCode(); + } + if (getFindingsCount() > 0) { + hash = (37 * hash) + FINDINGS_FIELD_NUMBER; + hash = (53 * hash) + getFindingsList().hashCode(); + } + if (hasScoreCard()) { + hash = (37 * hash) + SCORE_CARD_FIELD_NUMBER; + hash = (53 * hash) + getScoreCard().hashCode(); + } + hash = (37 * hash) + SKIPPED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSkipped()); + hash = (37 * hash) + SKIPPED_REASON_FIELD_NUMBER; + hash = (53 * hash) + getSkippedReason().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.AssessedFramework parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.AssessedFramework 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.designcenter.v1.AssessedFramework parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.AssessedFramework parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.AssessedFramework parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.AssessedFramework parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.AssessedFramework parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.AssessedFramework parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.AssessedFramework parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.AssessedFramework parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.AssessedFramework parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.AssessedFramework parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.AssessedFramework 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Framework assessed and their findings.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.AssessedFramework} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.AssessedFramework) + com.google.cloud.designcenter.v1.AssessedFrameworkOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_AssessedFramework_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_AssessedFramework_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.AssessedFramework.class, + com.google.cloud.designcenter.v1.AssessedFramework.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.AssessedFramework.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetFrameworkFieldBuilder(); + internalGetFindingsFieldBuilder(); + internalGetScoreCardFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + framework_ = null; + if (frameworkBuilder_ != null) { + frameworkBuilder_.dispose(); + frameworkBuilder_ = null; + } + if (findingsBuilder_ == null) { + findings_ = java.util.Collections.emptyList(); + } else { + findings_ = null; + findingsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + scoreCard_ = null; + if (scoreCardBuilder_ != null) { + scoreCardBuilder_.dispose(); + scoreCardBuilder_ = null; + } + skipped_ = false; + skippedReason_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_AssessedFramework_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.AssessedFramework getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.AssessedFramework.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.AssessedFramework build() { + com.google.cloud.designcenter.v1.AssessedFramework result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.AssessedFramework buildPartial() { + com.google.cloud.designcenter.v1.AssessedFramework result = + new com.google.cloud.designcenter.v1.AssessedFramework(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.designcenter.v1.AssessedFramework result) { + if (findingsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + findings_ = java.util.Collections.unmodifiableList(findings_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.findings_ = findings_; + } else { + result.findings_ = findingsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.designcenter.v1.AssessedFramework result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.framework_ = frameworkBuilder_ == null ? framework_ : frameworkBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.scoreCard_ = scoreCardBuilder_ == null ? scoreCard_ : scoreCardBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.skipped_ = skipped_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.skippedReason_ = skippedReason_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.AssessedFramework) { + return mergeFrom((com.google.cloud.designcenter.v1.AssessedFramework) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.AssessedFramework other) { + if (other == com.google.cloud.designcenter.v1.AssessedFramework.getDefaultInstance()) + return this; + if (other.hasFramework()) { + mergeFramework(other.getFramework()); + } + if (findingsBuilder_ == null) { + if (!other.findings_.isEmpty()) { + if (findings_.isEmpty()) { + findings_ = other.findings_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureFindingsIsMutable(); + findings_.addAll(other.findings_); + } + onChanged(); + } + } else { + if (!other.findings_.isEmpty()) { + if (findingsBuilder_.isEmpty()) { + findingsBuilder_.dispose(); + findingsBuilder_ = null; + findings_ = other.findings_; + bitField0_ = (bitField0_ & ~0x00000002); + findingsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetFindingsFieldBuilder() + : null; + } else { + findingsBuilder_.addAllMessages(other.findings_); + } + } + } + if (other.hasScoreCard()) { + mergeScoreCard(other.getScoreCard()); + } + if (other.getSkipped() != false) { + setSkipped(other.getSkipped()); + } + if (!other.getSkippedReason().isEmpty()) { + skippedReason_ = other.skippedReason_; + 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: + { + input.readMessage( + internalGetFrameworkFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.designcenter.v1.AssessmentFinding m = + input.readMessage( + com.google.cloud.designcenter.v1.AssessmentFinding.parser(), + extensionRegistry); + if (findingsBuilder_ == null) { + ensureFindingsIsMutable(); + findings_.add(m); + } else { + findingsBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetScoreCardFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + skipped_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + skippedReason_ = 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 com.google.cloud.designcenter.v1.Framework framework_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.Framework, + com.google.cloud.designcenter.v1.Framework.Builder, + com.google.cloud.designcenter.v1.FrameworkOrBuilder> + frameworkBuilder_; + + /** + * + * + *
+     * Required. The framework that was assessed.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Framework framework = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the framework field is set. + */ + public boolean hasFramework() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Required. The framework that was assessed.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Framework framework = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The framework. + */ + public com.google.cloud.designcenter.v1.Framework getFramework() { + if (frameworkBuilder_ == null) { + return framework_ == null + ? com.google.cloud.designcenter.v1.Framework.getDefaultInstance() + : framework_; + } else { + return frameworkBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The framework that was assessed.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Framework framework = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFramework(com.google.cloud.designcenter.v1.Framework value) { + if (frameworkBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + framework_ = value; + } else { + frameworkBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The framework that was assessed.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Framework framework = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFramework( + com.google.cloud.designcenter.v1.Framework.Builder builderForValue) { + if (frameworkBuilder_ == null) { + framework_ = builderForValue.build(); + } else { + frameworkBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The framework that was assessed.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Framework framework = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeFramework(com.google.cloud.designcenter.v1.Framework value) { + if (frameworkBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && framework_ != null + && framework_ != com.google.cloud.designcenter.v1.Framework.getDefaultInstance()) { + getFrameworkBuilder().mergeFrom(value); + } else { + framework_ = value; + } + } else { + frameworkBuilder_.mergeFrom(value); + } + if (framework_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The framework that was assessed.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Framework framework = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearFramework() { + bitField0_ = (bitField0_ & ~0x00000001); + framework_ = null; + if (frameworkBuilder_ != null) { + frameworkBuilder_.dispose(); + frameworkBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The framework that was assessed.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Framework framework = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.Framework.Builder getFrameworkBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetFrameworkFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The framework that was assessed.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Framework framework = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.FrameworkOrBuilder getFrameworkOrBuilder() { + if (frameworkBuilder_ != null) { + return frameworkBuilder_.getMessageOrBuilder(); + } else { + return framework_ == null + ? com.google.cloud.designcenter.v1.Framework.getDefaultInstance() + : framework_; + } + } + + /** + * + * + *
+     * Required. The framework that was assessed.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Framework framework = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.Framework, + com.google.cloud.designcenter.v1.Framework.Builder, + com.google.cloud.designcenter.v1.FrameworkOrBuilder> + internalGetFrameworkFieldBuilder() { + if (frameworkBuilder_ == null) { + frameworkBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.Framework, + com.google.cloud.designcenter.v1.Framework.Builder, + com.google.cloud.designcenter.v1.FrameworkOrBuilder>( + getFramework(), getParentForChildren(), isClean()); + framework_ = null; + } + return frameworkBuilder_; + } + + private java.util.List findings_ = + java.util.Collections.emptyList(); + + private void ensureFindingsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + findings_ = + new java.util.ArrayList(findings_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.AssessmentFinding, + com.google.cloud.designcenter.v1.AssessmentFinding.Builder, + com.google.cloud.designcenter.v1.AssessmentFindingOrBuilder> + findingsBuilder_; + + /** + * + * + *
+     * Required. A list of every Finding found during the assessment.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.AssessmentFinding findings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List getFindingsList() { + if (findingsBuilder_ == null) { + return java.util.Collections.unmodifiableList(findings_); + } else { + return findingsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Required. A list of every Finding found during the assessment.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.AssessmentFinding findings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getFindingsCount() { + if (findingsBuilder_ == null) { + return findings_.size(); + } else { + return findingsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Required. A list of every Finding found during the assessment.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.AssessmentFinding findings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.AssessmentFinding getFindings(int index) { + if (findingsBuilder_ == null) { + return findings_.get(index); + } else { + return findingsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Required. A list of every Finding found during the assessment.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.AssessmentFinding findings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFindings( + int index, com.google.cloud.designcenter.v1.AssessmentFinding value) { + if (findingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFindingsIsMutable(); + findings_.set(index, value); + onChanged(); + } else { + findingsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Required. A list of every Finding found during the assessment.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.AssessmentFinding findings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFindings( + int index, com.google.cloud.designcenter.v1.AssessmentFinding.Builder builderForValue) { + if (findingsBuilder_ == null) { + ensureFindingsIsMutable(); + findings_.set(index, builderForValue.build()); + onChanged(); + } else { + findingsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Required. A list of every Finding found during the assessment.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.AssessmentFinding findings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addFindings(com.google.cloud.designcenter.v1.AssessmentFinding value) { + if (findingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFindingsIsMutable(); + findings_.add(value); + onChanged(); + } else { + findingsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Required. A list of every Finding found during the assessment.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.AssessmentFinding findings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addFindings( + int index, com.google.cloud.designcenter.v1.AssessmentFinding value) { + if (findingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFindingsIsMutable(); + findings_.add(index, value); + onChanged(); + } else { + findingsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Required. A list of every Finding found during the assessment.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.AssessmentFinding findings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addFindings( + com.google.cloud.designcenter.v1.AssessmentFinding.Builder builderForValue) { + if (findingsBuilder_ == null) { + ensureFindingsIsMutable(); + findings_.add(builderForValue.build()); + onChanged(); + } else { + findingsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Required. A list of every Finding found during the assessment.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.AssessmentFinding findings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addFindings( + int index, com.google.cloud.designcenter.v1.AssessmentFinding.Builder builderForValue) { + if (findingsBuilder_ == null) { + ensureFindingsIsMutable(); + findings_.add(index, builderForValue.build()); + onChanged(); + } else { + findingsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Required. A list of every Finding found during the assessment.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.AssessmentFinding findings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllFindings( + java.lang.Iterable values) { + if (findingsBuilder_ == null) { + ensureFindingsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, findings_); + onChanged(); + } else { + findingsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Required. A list of every Finding found during the assessment.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.AssessmentFinding findings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearFindings() { + if (findingsBuilder_ == null) { + findings_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + findingsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Required. A list of every Finding found during the assessment.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.AssessmentFinding findings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeFindings(int index) { + if (findingsBuilder_ == null) { + ensureFindingsIsMutable(); + findings_.remove(index); + onChanged(); + } else { + findingsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Required. A list of every Finding found during the assessment.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.AssessmentFinding findings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.AssessmentFinding.Builder getFindingsBuilder( + int index) { + return internalGetFindingsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Required. A list of every Finding found during the assessment.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.AssessmentFinding findings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.AssessmentFindingOrBuilder getFindingsOrBuilder( + int index) { + if (findingsBuilder_ == null) { + return findings_.get(index); + } else { + return findingsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Required. A list of every Finding found during the assessment.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.AssessmentFinding findings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getFindingsOrBuilderList() { + if (findingsBuilder_ != null) { + return findingsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(findings_); + } + } + + /** + * + * + *
+     * Required. A list of every Finding found during the assessment.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.AssessmentFinding findings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.AssessmentFinding.Builder addFindingsBuilder() { + return internalGetFindingsFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.AssessmentFinding.getDefaultInstance()); + } + + /** + * + * + *
+     * Required. A list of every Finding found during the assessment.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.AssessmentFinding findings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.AssessmentFinding.Builder addFindingsBuilder( + int index) { + return internalGetFindingsFieldBuilder() + .addBuilder( + index, com.google.cloud.designcenter.v1.AssessmentFinding.getDefaultInstance()); + } + + /** + * + * + *
+     * Required. A list of every Finding found during the assessment.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.AssessmentFinding findings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getFindingsBuilderList() { + return internalGetFindingsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.AssessmentFinding, + com.google.cloud.designcenter.v1.AssessmentFinding.Builder, + com.google.cloud.designcenter.v1.AssessmentFindingOrBuilder> + internalGetFindingsFieldBuilder() { + if (findingsBuilder_ == null) { + findingsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.AssessmentFinding, + com.google.cloud.designcenter.v1.AssessmentFinding.Builder, + com.google.cloud.designcenter.v1.AssessmentFindingOrBuilder>( + findings_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + findings_ = null; + } + return findingsBuilder_; + } + + private com.google.cloud.designcenter.v1.ScoreCard scoreCard_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ScoreCard, + com.google.cloud.designcenter.v1.ScoreCard.Builder, + com.google.cloud.designcenter.v1.ScoreCardOrBuilder> + scoreCardBuilder_; + + /** + * + * + *
+     * Optional. Score card associated with the report.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ScoreCard score_card = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the scoreCard field is set. + */ + public boolean hasScoreCard() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Optional. Score card associated with the report.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ScoreCard score_card = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The scoreCard. + */ + public com.google.cloud.designcenter.v1.ScoreCard getScoreCard() { + if (scoreCardBuilder_ == null) { + return scoreCard_ == null + ? com.google.cloud.designcenter.v1.ScoreCard.getDefaultInstance() + : scoreCard_; + } else { + return scoreCardBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Score card associated with the report.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ScoreCard score_card = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setScoreCard(com.google.cloud.designcenter.v1.ScoreCard value) { + if (scoreCardBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + scoreCard_ = value; + } else { + scoreCardBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Score card associated with the report.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ScoreCard score_card = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setScoreCard( + com.google.cloud.designcenter.v1.ScoreCard.Builder builderForValue) { + if (scoreCardBuilder_ == null) { + scoreCard_ = builderForValue.build(); + } else { + scoreCardBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Score card associated with the report.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ScoreCard score_card = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeScoreCard(com.google.cloud.designcenter.v1.ScoreCard value) { + if (scoreCardBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && scoreCard_ != null + && scoreCard_ != com.google.cloud.designcenter.v1.ScoreCard.getDefaultInstance()) { + getScoreCardBuilder().mergeFrom(value); + } else { + scoreCard_ = value; + } + } else { + scoreCardBuilder_.mergeFrom(value); + } + if (scoreCard_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Score card associated with the report.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ScoreCard score_card = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearScoreCard() { + bitField0_ = (bitField0_ & ~0x00000004); + scoreCard_ = null; + if (scoreCardBuilder_ != null) { + scoreCardBuilder_.dispose(); + scoreCardBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Score card associated with the report.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ScoreCard score_card = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ScoreCard.Builder getScoreCardBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetScoreCardFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Score card associated with the report.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ScoreCard score_card = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ScoreCardOrBuilder getScoreCardOrBuilder() { + if (scoreCardBuilder_ != null) { + return scoreCardBuilder_.getMessageOrBuilder(); + } else { + return scoreCard_ == null + ? com.google.cloud.designcenter.v1.ScoreCard.getDefaultInstance() + : scoreCard_; + } + } + + /** + * + * + *
+     * Optional. Score card associated with the report.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ScoreCard score_card = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ScoreCard, + com.google.cloud.designcenter.v1.ScoreCard.Builder, + com.google.cloud.designcenter.v1.ScoreCardOrBuilder> + internalGetScoreCardFieldBuilder() { + if (scoreCardBuilder_ == null) { + scoreCardBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ScoreCard, + com.google.cloud.designcenter.v1.ScoreCard.Builder, + com.google.cloud.designcenter.v1.ScoreCardOrBuilder>( + getScoreCard(), getParentForChildren(), isClean()); + scoreCard_ = null; + } + return scoreCardBuilder_; + } + + private boolean skipped_; + + /** + * + * + *
+     * Optional. Whether the framework was skipped during assessment.
+     * 
+ * + * bool skipped = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skipped. + */ + @java.lang.Override + public boolean getSkipped() { + return skipped_; + } + + /** + * + * + *
+     * Optional. Whether the framework was skipped during assessment.
+     * 
+ * + * bool skipped = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The skipped to set. + * @return This builder for chaining. + */ + public Builder setSkipped(boolean value) { + + skipped_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Whether the framework was skipped during assessment.
+     * 
+ * + * bool skipped = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSkipped() { + bitField0_ = (bitField0_ & ~0x00000008); + skipped_ = false; + onChanged(); + return this; + } + + private java.lang.Object skippedReason_ = ""; + + /** + * + * + *
+     * Optional. Reason for skipping the framework during assessment.
+     * 
+ * + * string skipped_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skippedReason. + */ + public java.lang.String getSkippedReason() { + java.lang.Object ref = skippedReason_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + skippedReason_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Reason for skipping the framework during assessment.
+     * 
+ * + * string skipped_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for skippedReason. + */ + public com.google.protobuf.ByteString getSkippedReasonBytes() { + java.lang.Object ref = skippedReason_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + skippedReason_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Reason for skipping the framework during assessment.
+     * 
+ * + * string skipped_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The skippedReason to set. + * @return This builder for chaining. + */ + public Builder setSkippedReason(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + skippedReason_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Reason for skipping the framework during assessment.
+     * 
+ * + * string skipped_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSkippedReason() { + skippedReason_ = getDefaultInstance().getSkippedReason(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Reason for skipping the framework during assessment.
+     * 
+ * + * string skipped_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for skippedReason to set. + * @return This builder for chaining. + */ + public Builder setSkippedReasonBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + skippedReason_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.AssessedFramework) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.AssessedFramework) + private static final com.google.cloud.designcenter.v1.AssessedFramework DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.AssessedFramework(); + } + + public static com.google.cloud.designcenter.v1.AssessedFramework getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AssessedFramework parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.AssessedFramework getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/AssessedFrameworkOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/AssessedFrameworkOrBuilder.java new file mode 100644 index 000000000000..f88fed3fd55e --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/AssessedFrameworkOrBuilder.java @@ -0,0 +1,219 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/assessment.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface AssessedFrameworkOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.AssessedFramework) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The framework that was assessed.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Framework framework = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the framework field is set. + */ + boolean hasFramework(); + + /** + * + * + *
+   * Required. The framework that was assessed.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Framework framework = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The framework. + */ + com.google.cloud.designcenter.v1.Framework getFramework(); + + /** + * + * + *
+   * Required. The framework that was assessed.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Framework framework = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.designcenter.v1.FrameworkOrBuilder getFrameworkOrBuilder(); + + /** + * + * + *
+   * Required. A list of every Finding found during the assessment.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.AssessmentFinding findings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getFindingsList(); + + /** + * + * + *
+   * Required. A list of every Finding found during the assessment.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.AssessmentFinding findings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.designcenter.v1.AssessmentFinding getFindings(int index); + + /** + * + * + *
+   * Required. A list of every Finding found during the assessment.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.AssessmentFinding findings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getFindingsCount(); + + /** + * + * + *
+   * Required. A list of every Finding found during the assessment.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.AssessmentFinding findings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getFindingsOrBuilderList(); + + /** + * + * + *
+   * Required. A list of every Finding found during the assessment.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.AssessmentFinding findings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.designcenter.v1.AssessmentFindingOrBuilder getFindingsOrBuilder(int index); + + /** + * + * + *
+   * Optional. Score card associated with the report.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ScoreCard score_card = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the scoreCard field is set. + */ + boolean hasScoreCard(); + + /** + * + * + *
+   * Optional. Score card associated with the report.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ScoreCard score_card = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The scoreCard. + */ + com.google.cloud.designcenter.v1.ScoreCard getScoreCard(); + + /** + * + * + *
+   * Optional. Score card associated with the report.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ScoreCard score_card = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.ScoreCardOrBuilder getScoreCardOrBuilder(); + + /** + * + * + *
+   * Optional. Whether the framework was skipped during assessment.
+   * 
+ * + * bool skipped = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skipped. + */ + boolean getSkipped(); + + /** + * + * + *
+   * Optional. Reason for skipping the framework during assessment.
+   * 
+ * + * string skipped_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skippedReason. + */ + java.lang.String getSkippedReason(); + + /** + * + * + *
+   * Optional. Reason for skipping the framework during assessment.
+   * 
+ * + * string skipped_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for skippedReason. + */ + com.google.protobuf.ByteString getSkippedReasonBytes(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/AssessmentFinding.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/AssessmentFinding.java new file mode 100644 index 000000000000..c40d0e8a6f2c --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/AssessmentFinding.java @@ -0,0 +1,4542 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/assessment.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Details of an Assessment Finding.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.AssessmentFinding} + */ +@com.google.protobuf.Generated +public final class AssessmentFinding extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.AssessmentFinding) + AssessmentFindingOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AssessmentFinding"); + } + + // Use AssessmentFinding.newBuilder() to construct. + private AssessmentFinding(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AssessmentFinding() { + id_ = ""; + assessedFrameworkId_ = ""; + findingType_ = 0; + severity_ = 0; + description_ = ""; + findingsUri_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_AssessmentFinding_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_AssessmentFinding_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.AssessmentFinding.class, + com.google.cloud.designcenter.v1.AssessmentFinding.Builder.class); + } + + /** + * + * + *
+   * The type of finding.
+   * 
+ * + * Protobuf enum {@code google.cloud.designcenter.v1.AssessmentFinding.Type} + */ + public enum Type implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value. This value is unused.
+     * 
+ * + * TYPE_UNSPECIFIED = 0; + */ + TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Warning finding. Deployment will not be blocked.
+     * 
+ * + * WARNING = 1; + */ + WARNING(1), + /** + * + * + *
+     * Error finding. Deployment will be blocked on ERROR.
+     * 
+ * + * ERROR = 2; + */ + ERROR(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "Type"); + } + + /** + * + * + *
+     * Default value. This value is unused.
+     * 
+ * + * TYPE_UNSPECIFIED = 0; + */ + public static final int TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Warning finding. Deployment will not be blocked.
+     * 
+ * + * WARNING = 1; + */ + public static final int WARNING_VALUE = 1; + + /** + * + * + *
+     * Error finding. Deployment will be blocked on ERROR.
+     * 
+ * + * ERROR = 2; + */ + public static final int ERROR_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Type valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Type forNumber(int value) { + switch (value) { + case 0: + return TYPE_UNSPECIFIED; + case 1: + return WARNING; + case 2: + return ERROR; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AssessmentFinding.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Type[] VALUES = values(); + + public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Type(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.designcenter.v1.AssessmentFinding.Type) + } + + /** + * + * + *
+   * The severity of a finding.
+   * 
+ * + * Protobuf enum {@code google.cloud.designcenter.v1.AssessmentFinding.Severity} + */ + public enum Severity implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value. This value is unused.
+     * 
+ * + * SEVERITY_UNSPECIFIED = 0; + */ + SEVERITY_UNSPECIFIED(0), + /** + * + * + *
+     * Critical severity.
+     * 
+ * + * CRITICAL = 1; + */ + CRITICAL(1), + /** + * + * + *
+     * High severity.
+     * 
+ * + * HIGH = 2; + */ + HIGH(2), + /** + * + * + *
+     * Medium severity.
+     * 
+ * + * MEDIUM = 3; + */ + MEDIUM(3), + /** + * + * + *
+     * Low severity.
+     * 
+ * + * LOW = 4; + */ + LOW(4), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "Severity"); + } + + /** + * + * + *
+     * Default value. This value is unused.
+     * 
+ * + * SEVERITY_UNSPECIFIED = 0; + */ + public static final int SEVERITY_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Critical severity.
+     * 
+ * + * CRITICAL = 1; + */ + public static final int CRITICAL_VALUE = 1; + + /** + * + * + *
+     * High severity.
+     * 
+ * + * HIGH = 2; + */ + public static final int HIGH_VALUE = 2; + + /** + * + * + *
+     * Medium severity.
+     * 
+ * + * MEDIUM = 3; + */ + public static final int MEDIUM_VALUE = 3; + + /** + * + * + *
+     * Low severity.
+     * 
+ * + * LOW = 4; + */ + public static final int LOW_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 Severity 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 Severity forNumber(int value) { + switch (value) { + case 0: + return SEVERITY_UNSPECIFIED; + case 1: + return CRITICAL; + case 2: + return HIGH; + case 3: + return MEDIUM; + case 4: + return LOW; + 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 Severity findValueByNumber(int number) { + return Severity.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AssessmentFinding.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final Severity[] VALUES = values(); + + public static Severity 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 Severity(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.designcenter.v1.AssessmentFinding.Severity) + } + + public interface FindingADCMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Output only. Component the finding belongs to.
+     * 
+ * + * string component_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The componentName. + */ + java.lang.String getComponentName(); + + /** + * + * + *
+     * Output only. Component the finding belongs to.
+     * 
+ * + * string component_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for componentName. + */ + com.google.protobuf.ByteString getComponentNameBytes(); + } + + /** + * + * + *
+   * Metadata related to the Application Design Center with the finding.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadata} + */ + public static final class FindingADCMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadata) + FindingADCMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "FindingADCMetadata"); + } + + // Use FindingADCMetadata.newBuilder() to construct. + private FindingADCMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private FindingADCMetadata() { + componentName_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_AssessmentFinding_FindingADCMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_AssessmentFinding_FindingADCMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadata.class, + com.google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadata.Builder.class); + } + + public static final int COMPONENT_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object componentName_ = ""; + + /** + * + * + *
+     * Output only. Component the finding belongs to.
+     * 
+ * + * string component_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The componentName. + */ + @java.lang.Override + public java.lang.String getComponentName() { + java.lang.Object ref = componentName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + componentName_ = s; + return s; + } + } + + /** + * + * + *
+     * Output only. Component the finding belongs to.
+     * 
+ * + * string component_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for componentName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getComponentNameBytes() { + java.lang.Object ref = componentName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + componentName_ = 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.GeneratedMessage.isStringEmpty(componentName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, componentName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(componentName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, componentName_); + } + 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.designcenter.v1.AssessmentFinding.FindingADCMetadata)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadata other = + (com.google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadata) obj; + + if (!getComponentName().equals(other.getComponentName())) 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) + COMPONENT_NAME_FIELD_NUMBER; + hash = (53 * hash) + getComponentName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadata 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.designcenter.v1.AssessmentFinding.FindingADCMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadata + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.AssessmentFinding.FindingADCMetadata 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Metadata related to the Application Design Center with the finding.
+     * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadata) + com.google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_AssessmentFinding_FindingADCMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_AssessmentFinding_FindingADCMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadata.class, + com.google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadata.Builder + .class); + } + + // Construct using + // com.google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + componentName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_AssessmentFinding_FindingADCMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadata + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadata build() { + com.google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadata result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadata buildPartial() { + com.google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadata result = + new com.google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.componentName_ = componentName_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadata) { + return mergeFrom( + (com.google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadata other) { + if (other + == com.google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadata + .getDefaultInstance()) return this; + if (!other.getComponentName().isEmpty()) { + componentName_ = other.componentName_; + 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: + { + componentName_ = 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 componentName_ = ""; + + /** + * + * + *
+       * Output only. Component the finding belongs to.
+       * 
+ * + * string component_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The componentName. + */ + public java.lang.String getComponentName() { + java.lang.Object ref = componentName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + componentName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Output only. Component the finding belongs to.
+       * 
+ * + * string component_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for componentName. + */ + public com.google.protobuf.ByteString getComponentNameBytes() { + java.lang.Object ref = componentName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + componentName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Output only. Component the finding belongs to.
+       * 
+ * + * string component_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The componentName to set. + * @return This builder for chaining. + */ + public Builder setComponentName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + componentName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. Component the finding belongs to.
+       * 
+ * + * string component_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearComponentName() { + componentName_ = getDefaultInstance().getComponentName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. Component the finding belongs to.
+       * 
+ * + * string component_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for componentName to set. + * @return This builder for chaining. + */ + public Builder setComponentNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + componentName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadata) + private static final com.google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadata(); + } + + public static com.google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FindingADCMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.AssessmentFinding.FindingADCMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + private int nextStepCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object nextStep_; + + public enum NextStepCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + REMEDIATION_STEP(6), + NEXTSTEP_NOT_SET(0); + private final int value; + + private NextStepCase(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 NextStepCase valueOf(int value) { + return forNumber(value); + } + + public static NextStepCase forNumber(int value) { + switch (value) { + case 6: + return REMEDIATION_STEP; + case 0: + return NEXTSTEP_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public NextStepCase getNextStepCase() { + return NextStepCase.forNumber(nextStepCase_); + } + + private int additionalDetailsCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object additionalDetails_; + + public enum AdditionalDetailsCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + ADDITIONAL_NOTES(10), + ADDITIONALDETAILS_NOT_SET(0); + private final int value; + + private AdditionalDetailsCase(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 AdditionalDetailsCase valueOf(int value) { + return forNumber(value); + } + + public static AdditionalDetailsCase forNumber(int value) { + switch (value) { + case 10: + return ADDITIONAL_NOTES; + case 0: + return ADDITIONALDETAILS_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public AdditionalDetailsCase getAdditionalDetailsCase() { + return AdditionalDetailsCase.forNumber(additionalDetailsCase_); + } + + public static final int REMEDIATION_STEP_FIELD_NUMBER = 6; + + /** + * + * + *
+   * Optional. A description of the steps that users can take to fix the
+   * finding.
+   * 
+ * + * + * .google.cloud.designcenter.v1.RemediationStep remediation_step = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the remediationStep field is set. + */ + @java.lang.Override + public boolean hasRemediationStep() { + return nextStepCase_ == 6; + } + + /** + * + * + *
+   * Optional. A description of the steps that users can take to fix the
+   * finding.
+   * 
+ * + * + * .google.cloud.designcenter.v1.RemediationStep remediation_step = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The remediationStep. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.RemediationStep getRemediationStep() { + if (nextStepCase_ == 6) { + return (com.google.cloud.designcenter.v1.RemediationStep) nextStep_; + } + return com.google.cloud.designcenter.v1.RemediationStep.getDefaultInstance(); + } + + /** + * + * + *
+   * Optional. A description of the steps that users can take to fix the
+   * finding.
+   * 
+ * + * + * .google.cloud.designcenter.v1.RemediationStep remediation_step = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.RemediationStepOrBuilder getRemediationStepOrBuilder() { + if (nextStepCase_ == 6) { + return (com.google.cloud.designcenter.v1.RemediationStep) nextStep_; + } + return com.google.cloud.designcenter.v1.RemediationStep.getDefaultInstance(); + } + + public static final int ADDITIONAL_NOTES_FIELD_NUMBER = 10; + + /** + * + * + *
+   * Optional. A description of the additional details about finding.
+   * 
+ * + * string additional_notes = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the additionalNotes field is set. + */ + public boolean hasAdditionalNotes() { + return additionalDetailsCase_ == 10; + } + + /** + * + * + *
+   * Optional. A description of the additional details about finding.
+   * 
+ * + * string additional_notes = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The additionalNotes. + */ + public java.lang.String getAdditionalNotes() { + java.lang.Object ref = ""; + if (additionalDetailsCase_ == 10) { + ref = additionalDetails_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (additionalDetailsCase_ == 10) { + additionalDetails_ = s; + } + return s; + } + } + + /** + * + * + *
+   * Optional. A description of the additional details about finding.
+   * 
+ * + * string additional_notes = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for additionalNotes. + */ + public com.google.protobuf.ByteString getAdditionalNotesBytes() { + java.lang.Object ref = ""; + if (additionalDetailsCase_ == 10) { + ref = additionalDetails_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (additionalDetailsCase_ == 10) { + additionalDetails_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ID_FIELD_NUMBER = 12; + + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + + /** + * + * + *
+   * Output only. The Finding ID.
+   * 
+ * + * string id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The Finding ID.
+   * 
+ * + * string id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ASSESSED_FRAMEWORK_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object assessedFrameworkId_ = ""; + + /** + * + * + *
+   * Optional. The framework that was assessed.
+   * 
+ * + * string assessed_framework_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The assessedFrameworkId. + */ + @java.lang.Override + public java.lang.String getAssessedFrameworkId() { + java.lang.Object ref = assessedFrameworkId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + assessedFrameworkId_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The framework that was assessed.
+   * 
+ * + * string assessed_framework_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for assessedFrameworkId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAssessedFrameworkIdBytes() { + java.lang.Object ref = assessedFrameworkId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + assessedFrameworkId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ADC_METADATA_FIELD_NUMBER = 3; + private com.google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadata adcMetadata_; + + /** + * + * + *
+   * Output only. Metadata related to the Application Design Center with the
+   * finding.
+   * 
+ * + * + * .google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadata adc_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the adcMetadata field is set. + */ + @java.lang.Override + public boolean hasAdcMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. Metadata related to the Application Design Center with the
+   * finding.
+   * 
+ * + * + * .google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadata adc_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The adcMetadata. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadata getAdcMetadata() { + return adcMetadata_ == null + ? com.google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadata.getDefaultInstance() + : adcMetadata_; + } + + /** + * + * + *
+   * Output only. Metadata related to the Application Design Center with the
+   * finding.
+   * 
+ * + * + * .google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadata adc_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadataOrBuilder + getAdcMetadataOrBuilder() { + return adcMetadata_ == null + ? com.google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadata.getDefaultInstance() + : adcMetadata_; + } + + public static final int FINDING_TYPE_FIELD_NUMBER = 4; + private int findingType_ = 0; + + /** + * + * + *
+   * Required. The type of the finding. Findings can be informational,
+   * warning, or error.
+   * 
+ * + * + * .google.cloud.designcenter.v1.AssessmentFinding.Type finding_type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for findingType. + */ + @java.lang.Override + public int getFindingTypeValue() { + return findingType_; + } + + /** + * + * + *
+   * Required. The type of the finding. Findings can be informational,
+   * warning, or error.
+   * 
+ * + * + * .google.cloud.designcenter.v1.AssessmentFinding.Type finding_type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The findingType. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.AssessmentFinding.Type getFindingType() { + com.google.cloud.designcenter.v1.AssessmentFinding.Type result = + com.google.cloud.designcenter.v1.AssessmentFinding.Type.forNumber(findingType_); + return result == null + ? com.google.cloud.designcenter.v1.AssessmentFinding.Type.UNRECOGNIZED + : result; + } + + public static final int SEVERITY_FIELD_NUMBER = 5; + private int severity_ = 0; + + /** + * + * + *
+   * Optional. The severity of the finding.
+   * 
+ * + * + * .google.cloud.designcenter.v1.AssessmentFinding.Severity severity = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for severity. + */ + @java.lang.Override + public int getSeverityValue() { + return severity_; + } + + /** + * + * + *
+   * Optional. The severity of the finding.
+   * 
+ * + * + * .google.cloud.designcenter.v1.AssessmentFinding.Severity severity = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The severity. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.AssessmentFinding.Severity getSeverity() { + com.google.cloud.designcenter.v1.AssessmentFinding.Severity result = + com.google.cloud.designcenter.v1.AssessmentFinding.Severity.forNumber(severity_); + return result == null + ? com.google.cloud.designcenter.v1.AssessmentFinding.Severity.UNRECOGNIZED + : result; + } + + public static final int ASSESSED_ASSET_FIELD_NUMBER = 7; + private com.google.cloud.designcenter.v1.AssetDetails assessedAsset_; + + /** + * + * + *
+   * Required. Details of the Cloud Asset Inventory asset that was assessed.
+   * 
+ * + * + * .google.cloud.designcenter.v1.AssetDetails assessed_asset = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the assessedAsset field is set. + */ + @java.lang.Override + public boolean hasAssessedAsset() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Required. Details of the Cloud Asset Inventory asset that was assessed.
+   * 
+ * + * + * .google.cloud.designcenter.v1.AssetDetails assessed_asset = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The assessedAsset. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.AssetDetails getAssessedAsset() { + return assessedAsset_ == null + ? com.google.cloud.designcenter.v1.AssetDetails.getDefaultInstance() + : assessedAsset_; + } + + /** + * + * + *
+   * Required. Details of the Cloud Asset Inventory asset that was assessed.
+   * 
+ * + * + * .google.cloud.designcenter.v1.AssetDetails assessed_asset = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.AssetDetailsOrBuilder getAssessedAssetOrBuilder() { + return assessedAsset_ == null + ? com.google.cloud.designcenter.v1.AssetDetails.getDefaultInstance() + : assessedAsset_; + } + + public static final int ASSESSED_FRAMEWORK_FIELD_NUMBER = 8; + private com.google.cloud.designcenter.v1.Framework assessedFramework_; + + /** + * + * + *
+   * Optional. Details of the framework that was assessed.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Framework assessed_framework = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the assessedFramework field is set. + */ + @java.lang.Override + public boolean hasAssessedFramework() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Optional. Details of the framework that was assessed.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Framework assessed_framework = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The assessedFramework. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.Framework getAssessedFramework() { + return assessedFramework_ == null + ? com.google.cloud.designcenter.v1.Framework.getDefaultInstance() + : assessedFramework_; + } + + /** + * + * + *
+   * Optional. Details of the framework that was assessed.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Framework assessed_framework = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.FrameworkOrBuilder getAssessedFrameworkOrBuilder() { + return assessedFramework_ == null + ? com.google.cloud.designcenter.v1.Framework.getDefaultInstance() + : assessedFramework_; + } + + public static final int DESCRIPTION_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
+   * Optional. Description of the finding.
+   * 
+ * + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Description of the finding.
+   * 
+ * + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FINDINGS_URI_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private volatile java.lang.Object findingsUri_ = ""; + + /** + * + * + *
+   * Optional. Link to the findings, if persisted by the domain.
+   * 
+ * + * string findings_uri = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The findingsUri. + */ + @java.lang.Override + public java.lang.String getFindingsUri() { + java.lang.Object ref = findingsUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + findingsUri_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Link to the findings, if persisted by the domain.
+   * 
+ * + * string findings_uri = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for findingsUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFindingsUriBytes() { + java.lang.Object ref = findingsUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + findingsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCC_METADATA_FIELD_NUMBER = 13; + private com.google.cloud.designcenter.v1.SCCMetadata sccMetadata_; + + /** + * + * + *
+   * Output only. SCC related metadata for the finding.
+   * 
+ * + * + * .google.cloud.designcenter.v1.SCCMetadata scc_metadata = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the sccMetadata field is set. + */ + @java.lang.Override + public boolean hasSccMetadata() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Output only. SCC related metadata for the finding.
+   * 
+ * + * + * .google.cloud.designcenter.v1.SCCMetadata scc_metadata = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The sccMetadata. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.SCCMetadata getSccMetadata() { + return sccMetadata_ == null + ? com.google.cloud.designcenter.v1.SCCMetadata.getDefaultInstance() + : sccMetadata_; + } + + /** + * + * + *
+   * Output only. SCC related metadata for the finding.
+   * 
+ * + * + * .google.cloud.designcenter.v1.SCCMetadata scc_metadata = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.SCCMetadataOrBuilder getSccMetadataOrBuilder() { + return sccMetadata_ == null + ? com.google.cloud.designcenter.v1.SCCMetadata.getDefaultInstance() + : sccMetadata_; + } + + 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.GeneratedMessage.isStringEmpty(assessedFrameworkId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, assessedFrameworkId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getAdcMetadata()); + } + if (findingType_ + != com.google.cloud.designcenter.v1.AssessmentFinding.Type.TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(4, findingType_); + } + if (severity_ + != com.google.cloud.designcenter.v1.AssessmentFinding.Severity.SEVERITY_UNSPECIFIED + .getNumber()) { + output.writeEnum(5, severity_); + } + if (nextStepCase_ == 6) { + output.writeMessage(6, (com.google.cloud.designcenter.v1.RemediationStep) nextStep_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(7, getAssessedAsset()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(8, getAssessedFramework()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 9, description_); + } + if (additionalDetailsCase_ == 10) { + com.google.protobuf.GeneratedMessage.writeString(output, 10, additionalDetails_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(findingsUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 11, findingsUri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 12, id_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(13, getSccMetadata()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(assessedFrameworkId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, assessedFrameworkId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAdcMetadata()); + } + if (findingType_ + != com.google.cloud.designcenter.v1.AssessmentFinding.Type.TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, findingType_); + } + if (severity_ + != com.google.cloud.designcenter.v1.AssessmentFinding.Severity.SEVERITY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, severity_); + } + if (nextStepCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.cloud.designcenter.v1.RemediationStep) nextStep_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getAssessedAsset()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getAssessedFramework()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(9, description_); + } + if (additionalDetailsCase_ == 10) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(10, additionalDetails_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(findingsUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(11, findingsUri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(12, id_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getSccMetadata()); + } + 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.designcenter.v1.AssessmentFinding)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.AssessmentFinding other = + (com.google.cloud.designcenter.v1.AssessmentFinding) obj; + + if (!getId().equals(other.getId())) return false; + if (!getAssessedFrameworkId().equals(other.getAssessedFrameworkId())) return false; + if (hasAdcMetadata() != other.hasAdcMetadata()) return false; + if (hasAdcMetadata()) { + if (!getAdcMetadata().equals(other.getAdcMetadata())) return false; + } + if (findingType_ != other.findingType_) return false; + if (severity_ != other.severity_) return false; + if (hasAssessedAsset() != other.hasAssessedAsset()) return false; + if (hasAssessedAsset()) { + if (!getAssessedAsset().equals(other.getAssessedAsset())) return false; + } + if (hasAssessedFramework() != other.hasAssessedFramework()) return false; + if (hasAssessedFramework()) { + if (!getAssessedFramework().equals(other.getAssessedFramework())) return false; + } + if (!getDescription().equals(other.getDescription())) return false; + if (!getFindingsUri().equals(other.getFindingsUri())) return false; + if (hasSccMetadata() != other.hasSccMetadata()) return false; + if (hasSccMetadata()) { + if (!getSccMetadata().equals(other.getSccMetadata())) return false; + } + if (!getNextStepCase().equals(other.getNextStepCase())) return false; + switch (nextStepCase_) { + case 6: + if (!getRemediationStep().equals(other.getRemediationStep())) return false; + break; + case 0: + default: + } + if (!getAdditionalDetailsCase().equals(other.getAdditionalDetailsCase())) return false; + switch (additionalDetailsCase_) { + case 10: + if (!getAdditionalNotes().equals(other.getAdditionalNotes())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + ASSESSED_FRAMEWORK_ID_FIELD_NUMBER; + hash = (53 * hash) + getAssessedFrameworkId().hashCode(); + if (hasAdcMetadata()) { + hash = (37 * hash) + ADC_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getAdcMetadata().hashCode(); + } + hash = (37 * hash) + FINDING_TYPE_FIELD_NUMBER; + hash = (53 * hash) + findingType_; + hash = (37 * hash) + SEVERITY_FIELD_NUMBER; + hash = (53 * hash) + severity_; + if (hasAssessedAsset()) { + hash = (37 * hash) + ASSESSED_ASSET_FIELD_NUMBER; + hash = (53 * hash) + getAssessedAsset().hashCode(); + } + if (hasAssessedFramework()) { + hash = (37 * hash) + ASSESSED_FRAMEWORK_FIELD_NUMBER; + hash = (53 * hash) + getAssessedFramework().hashCode(); + } + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + FINDINGS_URI_FIELD_NUMBER; + hash = (53 * hash) + getFindingsUri().hashCode(); + if (hasSccMetadata()) { + hash = (37 * hash) + SCC_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getSccMetadata().hashCode(); + } + switch (nextStepCase_) { + case 6: + hash = (37 * hash) + REMEDIATION_STEP_FIELD_NUMBER; + hash = (53 * hash) + getRemediationStep().hashCode(); + break; + case 0: + default: + } + switch (additionalDetailsCase_) { + case 10: + hash = (37 * hash) + ADDITIONAL_NOTES_FIELD_NUMBER; + hash = (53 * hash) + getAdditionalNotes().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.AssessmentFinding parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.AssessmentFinding 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.designcenter.v1.AssessmentFinding parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.AssessmentFinding parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.AssessmentFinding parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.AssessmentFinding parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.AssessmentFinding parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.AssessmentFinding parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.AssessmentFinding parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.AssessmentFinding parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.AssessmentFinding parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.AssessmentFinding parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.AssessmentFinding 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Details of an Assessment Finding.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.AssessmentFinding} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.AssessmentFinding) + com.google.cloud.designcenter.v1.AssessmentFindingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_AssessmentFinding_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_AssessmentFinding_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.AssessmentFinding.class, + com.google.cloud.designcenter.v1.AssessmentFinding.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.AssessmentFinding.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetAdcMetadataFieldBuilder(); + internalGetAssessedAssetFieldBuilder(); + internalGetAssessedFrameworkFieldBuilder(); + internalGetSccMetadataFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (remediationStepBuilder_ != null) { + remediationStepBuilder_.clear(); + } + id_ = ""; + assessedFrameworkId_ = ""; + adcMetadata_ = null; + if (adcMetadataBuilder_ != null) { + adcMetadataBuilder_.dispose(); + adcMetadataBuilder_ = null; + } + findingType_ = 0; + severity_ = 0; + assessedAsset_ = null; + if (assessedAssetBuilder_ != null) { + assessedAssetBuilder_.dispose(); + assessedAssetBuilder_ = null; + } + assessedFramework_ = null; + if (assessedFrameworkBuilder_ != null) { + assessedFrameworkBuilder_.dispose(); + assessedFrameworkBuilder_ = null; + } + description_ = ""; + findingsUri_ = ""; + sccMetadata_ = null; + if (sccMetadataBuilder_ != null) { + sccMetadataBuilder_.dispose(); + sccMetadataBuilder_ = null; + } + nextStepCase_ = 0; + nextStep_ = null; + additionalDetailsCase_ = 0; + additionalDetails_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_AssessmentFinding_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.AssessmentFinding getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.AssessmentFinding.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.AssessmentFinding build() { + com.google.cloud.designcenter.v1.AssessmentFinding result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.AssessmentFinding buildPartial() { + com.google.cloud.designcenter.v1.AssessmentFinding result = + new com.google.cloud.designcenter.v1.AssessmentFinding(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.AssessmentFinding result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.assessedFrameworkId_ = assessedFrameworkId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.adcMetadata_ = + adcMetadataBuilder_ == null ? adcMetadata_ : adcMetadataBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.findingType_ = findingType_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.severity_ = severity_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.assessedAsset_ = + assessedAssetBuilder_ == null ? assessedAsset_ : assessedAssetBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.assessedFramework_ = + assessedFrameworkBuilder_ == null + ? assessedFramework_ + : assessedFrameworkBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.findingsUri_ = findingsUri_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.sccMetadata_ = + sccMetadataBuilder_ == null ? sccMetadata_ : sccMetadataBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.designcenter.v1.AssessmentFinding result) { + result.nextStepCase_ = nextStepCase_; + result.nextStep_ = this.nextStep_; + if (nextStepCase_ == 6 && remediationStepBuilder_ != null) { + result.nextStep_ = remediationStepBuilder_.build(); + } + result.additionalDetailsCase_ = additionalDetailsCase_; + result.additionalDetails_ = this.additionalDetails_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.AssessmentFinding) { + return mergeFrom((com.google.cloud.designcenter.v1.AssessmentFinding) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.AssessmentFinding other) { + if (other == com.google.cloud.designcenter.v1.AssessmentFinding.getDefaultInstance()) + return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getAssessedFrameworkId().isEmpty()) { + assessedFrameworkId_ = other.assessedFrameworkId_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasAdcMetadata()) { + mergeAdcMetadata(other.getAdcMetadata()); + } + if (other.findingType_ != 0) { + setFindingTypeValue(other.getFindingTypeValue()); + } + if (other.severity_ != 0) { + setSeverityValue(other.getSeverityValue()); + } + if (other.hasAssessedAsset()) { + mergeAssessedAsset(other.getAssessedAsset()); + } + if (other.hasAssessedFramework()) { + mergeAssessedFramework(other.getAssessedFramework()); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000200; + onChanged(); + } + if (!other.getFindingsUri().isEmpty()) { + findingsUri_ = other.findingsUri_; + bitField0_ |= 0x00000400; + onChanged(); + } + if (other.hasSccMetadata()) { + mergeSccMetadata(other.getSccMetadata()); + } + switch (other.getNextStepCase()) { + case REMEDIATION_STEP: + { + mergeRemediationStep(other.getRemediationStep()); + break; + } + case NEXTSTEP_NOT_SET: + { + break; + } + } + switch (other.getAdditionalDetailsCase()) { + case ADDITIONAL_NOTES: + { + additionalDetailsCase_ = 10; + additionalDetails_ = other.additionalDetails_; + onChanged(); + break; + } + case ADDITIONALDETAILS_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 18: + { + assessedFrameworkId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetAdcMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 26 + case 32: + { + findingType_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 32 + case 40: + { + severity_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 40 + case 50: + { + input.readMessage( + internalGetRemediationStepFieldBuilder().getBuilder(), extensionRegistry); + nextStepCase_ = 6; + break; + } // case 50 + case 58: + { + input.readMessage( + internalGetAssessedAssetFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 58 + case 66: + { + input.readMessage( + internalGetAssessedFrameworkFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 66 + case 74: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 74 + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); + additionalDetailsCase_ = 10; + additionalDetails_ = s; + break; + } // case 82 + case 90: + { + findingsUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 90 + case 98: + { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 98 + case 106: + { + input.readMessage( + internalGetSccMetadataFieldBuilder().getBuilder(), extensionRegistry); + 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 nextStepCase_ = 0; + private java.lang.Object nextStep_; + + public NextStepCase getNextStepCase() { + return NextStepCase.forNumber(nextStepCase_); + } + + public Builder clearNextStep() { + nextStepCase_ = 0; + nextStep_ = null; + onChanged(); + return this; + } + + private int additionalDetailsCase_ = 0; + private java.lang.Object additionalDetails_; + + public AdditionalDetailsCase getAdditionalDetailsCase() { + return AdditionalDetailsCase.forNumber(additionalDetailsCase_); + } + + public Builder clearAdditionalDetails() { + additionalDetailsCase_ = 0; + additionalDetails_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.RemediationStep, + com.google.cloud.designcenter.v1.RemediationStep.Builder, + com.google.cloud.designcenter.v1.RemediationStepOrBuilder> + remediationStepBuilder_; + + /** + * + * + *
+     * Optional. A description of the steps that users can take to fix the
+     * finding.
+     * 
+ * + * + * .google.cloud.designcenter.v1.RemediationStep remediation_step = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the remediationStep field is set. + */ + @java.lang.Override + public boolean hasRemediationStep() { + return nextStepCase_ == 6; + } + + /** + * + * + *
+     * Optional. A description of the steps that users can take to fix the
+     * finding.
+     * 
+ * + * + * .google.cloud.designcenter.v1.RemediationStep remediation_step = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The remediationStep. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.RemediationStep getRemediationStep() { + if (remediationStepBuilder_ == null) { + if (nextStepCase_ == 6) { + return (com.google.cloud.designcenter.v1.RemediationStep) nextStep_; + } + return com.google.cloud.designcenter.v1.RemediationStep.getDefaultInstance(); + } else { + if (nextStepCase_ == 6) { + return remediationStepBuilder_.getMessage(); + } + return com.google.cloud.designcenter.v1.RemediationStep.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. A description of the steps that users can take to fix the
+     * finding.
+     * 
+ * + * + * .google.cloud.designcenter.v1.RemediationStep remediation_step = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRemediationStep(com.google.cloud.designcenter.v1.RemediationStep value) { + if (remediationStepBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nextStep_ = value; + onChanged(); + } else { + remediationStepBuilder_.setMessage(value); + } + nextStepCase_ = 6; + return this; + } + + /** + * + * + *
+     * Optional. A description of the steps that users can take to fix the
+     * finding.
+     * 
+ * + * + * .google.cloud.designcenter.v1.RemediationStep remediation_step = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRemediationStep( + com.google.cloud.designcenter.v1.RemediationStep.Builder builderForValue) { + if (remediationStepBuilder_ == null) { + nextStep_ = builderForValue.build(); + onChanged(); + } else { + remediationStepBuilder_.setMessage(builderForValue.build()); + } + nextStepCase_ = 6; + return this; + } + + /** + * + * + *
+     * Optional. A description of the steps that users can take to fix the
+     * finding.
+     * 
+ * + * + * .google.cloud.designcenter.v1.RemediationStep remediation_step = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeRemediationStep(com.google.cloud.designcenter.v1.RemediationStep value) { + if (remediationStepBuilder_ == null) { + if (nextStepCase_ == 6 + && nextStep_ != com.google.cloud.designcenter.v1.RemediationStep.getDefaultInstance()) { + nextStep_ = + com.google.cloud.designcenter.v1.RemediationStep.newBuilder( + (com.google.cloud.designcenter.v1.RemediationStep) nextStep_) + .mergeFrom(value) + .buildPartial(); + } else { + nextStep_ = value; + } + onChanged(); + } else { + if (nextStepCase_ == 6) { + remediationStepBuilder_.mergeFrom(value); + } else { + remediationStepBuilder_.setMessage(value); + } + } + nextStepCase_ = 6; + return this; + } + + /** + * + * + *
+     * Optional. A description of the steps that users can take to fix the
+     * finding.
+     * 
+ * + * + * .google.cloud.designcenter.v1.RemediationStep remediation_step = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearRemediationStep() { + if (remediationStepBuilder_ == null) { + if (nextStepCase_ == 6) { + nextStepCase_ = 0; + nextStep_ = null; + onChanged(); + } + } else { + if (nextStepCase_ == 6) { + nextStepCase_ = 0; + nextStep_ = null; + } + remediationStepBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. A description of the steps that users can take to fix the
+     * finding.
+     * 
+ * + * + * .google.cloud.designcenter.v1.RemediationStep remediation_step = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.RemediationStep.Builder getRemediationStepBuilder() { + return internalGetRemediationStepFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. A description of the steps that users can take to fix the
+     * finding.
+     * 
+ * + * + * .google.cloud.designcenter.v1.RemediationStep remediation_step = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.RemediationStepOrBuilder getRemediationStepOrBuilder() { + if ((nextStepCase_ == 6) && (remediationStepBuilder_ != null)) { + return remediationStepBuilder_.getMessageOrBuilder(); + } else { + if (nextStepCase_ == 6) { + return (com.google.cloud.designcenter.v1.RemediationStep) nextStep_; + } + return com.google.cloud.designcenter.v1.RemediationStep.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. A description of the steps that users can take to fix the
+     * finding.
+     * 
+ * + * + * .google.cloud.designcenter.v1.RemediationStep remediation_step = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.RemediationStep, + com.google.cloud.designcenter.v1.RemediationStep.Builder, + com.google.cloud.designcenter.v1.RemediationStepOrBuilder> + internalGetRemediationStepFieldBuilder() { + if (remediationStepBuilder_ == null) { + if (!(nextStepCase_ == 6)) { + nextStep_ = com.google.cloud.designcenter.v1.RemediationStep.getDefaultInstance(); + } + remediationStepBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.RemediationStep, + com.google.cloud.designcenter.v1.RemediationStep.Builder, + com.google.cloud.designcenter.v1.RemediationStepOrBuilder>( + (com.google.cloud.designcenter.v1.RemediationStep) nextStep_, + getParentForChildren(), + isClean()); + nextStep_ = null; + } + nextStepCase_ = 6; + onChanged(); + return remediationStepBuilder_; + } + + /** + * + * + *
+     * Optional. A description of the additional details about finding.
+     * 
+ * + * string additional_notes = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the additionalNotes field is set. + */ + @java.lang.Override + public boolean hasAdditionalNotes() { + return additionalDetailsCase_ == 10; + } + + /** + * + * + *
+     * Optional. A description of the additional details about finding.
+     * 
+ * + * string additional_notes = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The additionalNotes. + */ + @java.lang.Override + public java.lang.String getAdditionalNotes() { + java.lang.Object ref = ""; + if (additionalDetailsCase_ == 10) { + ref = additionalDetails_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (additionalDetailsCase_ == 10) { + additionalDetails_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. A description of the additional details about finding.
+     * 
+ * + * string additional_notes = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for additionalNotes. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAdditionalNotesBytes() { + java.lang.Object ref = ""; + if (additionalDetailsCase_ == 10) { + ref = additionalDetails_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (additionalDetailsCase_ == 10) { + additionalDetails_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. A description of the additional details about finding.
+     * 
+ * + * string additional_notes = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The additionalNotes to set. + * @return This builder for chaining. + */ + public Builder setAdditionalNotes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + additionalDetailsCase_ = 10; + additionalDetails_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A description of the additional details about finding.
+     * 
+ * + * string additional_notes = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAdditionalNotes() { + if (additionalDetailsCase_ == 10) { + additionalDetailsCase_ = 0; + additionalDetails_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. A description of the additional details about finding.
+     * 
+ * + * string additional_notes = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for additionalNotes to set. + * @return This builder for chaining. + */ + public Builder setAdditionalNotesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + additionalDetailsCase_ = 10; + additionalDetails_ = value; + onChanged(); + return this; + } + + private java.lang.Object id_ = ""; + + /** + * + * + *
+     * Output only. The Finding ID.
+     * 
+ * + * string id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The Finding ID.
+     * 
+ * + * string id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for id. + */ + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The Finding ID.
+     * 
+ * + * string id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The Finding ID.
+     * 
+ * + * string id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The Finding ID.
+     * 
+ * + * string id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object assessedFrameworkId_ = ""; + + /** + * + * + *
+     * Optional. The framework that was assessed.
+     * 
+ * + * string assessed_framework_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The assessedFrameworkId. + */ + public java.lang.String getAssessedFrameworkId() { + java.lang.Object ref = assessedFrameworkId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + assessedFrameworkId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The framework that was assessed.
+     * 
+ * + * string assessed_framework_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for assessedFrameworkId. + */ + public com.google.protobuf.ByteString getAssessedFrameworkIdBytes() { + java.lang.Object ref = assessedFrameworkId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + assessedFrameworkId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The framework that was assessed.
+     * 
+ * + * string assessed_framework_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The assessedFrameworkId to set. + * @return This builder for chaining. + */ + public Builder setAssessedFrameworkId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + assessedFrameworkId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The framework that was assessed.
+     * 
+ * + * string assessed_framework_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAssessedFrameworkId() { + assessedFrameworkId_ = getDefaultInstance().getAssessedFrameworkId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The framework that was assessed.
+     * 
+ * + * string assessed_framework_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for assessedFrameworkId to set. + * @return This builder for chaining. + */ + public Builder setAssessedFrameworkIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + assessedFrameworkId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadata adcMetadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadata, + com.google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadata.Builder, + com.google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadataOrBuilder> + adcMetadataBuilder_; + + /** + * + * + *
+     * Output only. Metadata related to the Application Design Center with the
+     * finding.
+     * 
+ * + * + * .google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadata adc_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the adcMetadata field is set. + */ + public boolean hasAdcMetadata() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Output only. Metadata related to the Application Design Center with the
+     * finding.
+     * 
+ * + * + * .google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadata adc_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The adcMetadata. + */ + public com.google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadata getAdcMetadata() { + if (adcMetadataBuilder_ == null) { + return adcMetadata_ == null + ? com.google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadata + .getDefaultInstance() + : adcMetadata_; + } else { + return adcMetadataBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Metadata related to the Application Design Center with the
+     * finding.
+     * 
+ * + * + * .google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadata adc_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAdcMetadata( + com.google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadata value) { + if (adcMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + adcMetadata_ = value; + } else { + adcMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Metadata related to the Application Design Center with the
+     * finding.
+     * 
+ * + * + * .google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadata adc_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAdcMetadata( + com.google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadata.Builder + builderForValue) { + if (adcMetadataBuilder_ == null) { + adcMetadata_ = builderForValue.build(); + } else { + adcMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Metadata related to the Application Design Center with the
+     * finding.
+     * 
+ * + * + * .google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadata adc_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeAdcMetadata( + com.google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadata value) { + if (adcMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && adcMetadata_ != null + && adcMetadata_ + != com.google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadata + .getDefaultInstance()) { + getAdcMetadataBuilder().mergeFrom(value); + } else { + adcMetadata_ = value; + } + } else { + adcMetadataBuilder_.mergeFrom(value); + } + if (adcMetadata_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Metadata related to the Application Design Center with the
+     * finding.
+     * 
+ * + * + * .google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadata adc_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearAdcMetadata() { + bitField0_ = (bitField0_ & ~0x00000010); + adcMetadata_ = null; + if (adcMetadataBuilder_ != null) { + adcMetadataBuilder_.dispose(); + adcMetadataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Metadata related to the Application Design Center with the
+     * finding.
+     * 
+ * + * + * .google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadata adc_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadata.Builder + getAdcMetadataBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetAdcMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Metadata related to the Application Design Center with the
+     * finding.
+     * 
+ * + * + * .google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadata adc_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadataOrBuilder + getAdcMetadataOrBuilder() { + if (adcMetadataBuilder_ != null) { + return adcMetadataBuilder_.getMessageOrBuilder(); + } else { + return adcMetadata_ == null + ? com.google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadata + .getDefaultInstance() + : adcMetadata_; + } + } + + /** + * + * + *
+     * Output only. Metadata related to the Application Design Center with the
+     * finding.
+     * 
+ * + * + * .google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadata adc_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadata, + com.google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadata.Builder, + com.google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadataOrBuilder> + internalGetAdcMetadataFieldBuilder() { + if (adcMetadataBuilder_ == null) { + adcMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadata, + com.google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadata.Builder, + com.google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadataOrBuilder>( + getAdcMetadata(), getParentForChildren(), isClean()); + adcMetadata_ = null; + } + return adcMetadataBuilder_; + } + + private int findingType_ = 0; + + /** + * + * + *
+     * Required. The type of the finding. Findings can be informational,
+     * warning, or error.
+     * 
+ * + * + * .google.cloud.designcenter.v1.AssessmentFinding.Type finding_type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for findingType. + */ + @java.lang.Override + public int getFindingTypeValue() { + return findingType_; + } + + /** + * + * + *
+     * Required. The type of the finding. Findings can be informational,
+     * warning, or error.
+     * 
+ * + * + * .google.cloud.designcenter.v1.AssessmentFinding.Type finding_type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for findingType to set. + * @return This builder for chaining. + */ + public Builder setFindingTypeValue(int value) { + findingType_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The type of the finding. Findings can be informational,
+     * warning, or error.
+     * 
+ * + * + * .google.cloud.designcenter.v1.AssessmentFinding.Type finding_type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The findingType. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.AssessmentFinding.Type getFindingType() { + com.google.cloud.designcenter.v1.AssessmentFinding.Type result = + com.google.cloud.designcenter.v1.AssessmentFinding.Type.forNumber(findingType_); + return result == null + ? com.google.cloud.designcenter.v1.AssessmentFinding.Type.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Required. The type of the finding. Findings can be informational,
+     * warning, or error.
+     * 
+ * + * + * .google.cloud.designcenter.v1.AssessmentFinding.Type finding_type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The findingType to set. + * @return This builder for chaining. + */ + public Builder setFindingType(com.google.cloud.designcenter.v1.AssessmentFinding.Type value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + findingType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The type of the finding. Findings can be informational,
+     * warning, or error.
+     * 
+ * + * + * .google.cloud.designcenter.v1.AssessmentFinding.Type finding_type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearFindingType() { + bitField0_ = (bitField0_ & ~0x00000020); + findingType_ = 0; + onChanged(); + return this; + } + + private int severity_ = 0; + + /** + * + * + *
+     * Optional. The severity of the finding.
+     * 
+ * + * + * .google.cloud.designcenter.v1.AssessmentFinding.Severity severity = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for severity. + */ + @java.lang.Override + public int getSeverityValue() { + return severity_; + } + + /** + * + * + *
+     * Optional. The severity of the finding.
+     * 
+ * + * + * .google.cloud.designcenter.v1.AssessmentFinding.Severity severity = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for severity to set. + * @return This builder for chaining. + */ + public Builder setSeverityValue(int value) { + severity_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The severity of the finding.
+     * 
+ * + * + * .google.cloud.designcenter.v1.AssessmentFinding.Severity severity = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The severity. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.AssessmentFinding.Severity getSeverity() { + com.google.cloud.designcenter.v1.AssessmentFinding.Severity result = + com.google.cloud.designcenter.v1.AssessmentFinding.Severity.forNumber(severity_); + return result == null + ? com.google.cloud.designcenter.v1.AssessmentFinding.Severity.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Optional. The severity of the finding.
+     * 
+ * + * + * .google.cloud.designcenter.v1.AssessmentFinding.Severity severity = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The severity to set. + * @return This builder for chaining. + */ + public Builder setSeverity(com.google.cloud.designcenter.v1.AssessmentFinding.Severity value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + severity_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The severity of the finding.
+     * 
+ * + * + * .google.cloud.designcenter.v1.AssessmentFinding.Severity severity = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearSeverity() { + bitField0_ = (bitField0_ & ~0x00000040); + severity_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.designcenter.v1.AssetDetails assessedAsset_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.AssetDetails, + com.google.cloud.designcenter.v1.AssetDetails.Builder, + com.google.cloud.designcenter.v1.AssetDetailsOrBuilder> + assessedAssetBuilder_; + + /** + * + * + *
+     * Required. Details of the Cloud Asset Inventory asset that was assessed.
+     * 
+ * + * + * .google.cloud.designcenter.v1.AssetDetails assessed_asset = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the assessedAsset field is set. + */ + public boolean hasAssessedAsset() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+     * Required. Details of the Cloud Asset Inventory asset that was assessed.
+     * 
+ * + * + * .google.cloud.designcenter.v1.AssetDetails assessed_asset = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The assessedAsset. + */ + public com.google.cloud.designcenter.v1.AssetDetails getAssessedAsset() { + if (assessedAssetBuilder_ == null) { + return assessedAsset_ == null + ? com.google.cloud.designcenter.v1.AssetDetails.getDefaultInstance() + : assessedAsset_; + } else { + return assessedAssetBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. Details of the Cloud Asset Inventory asset that was assessed.
+     * 
+ * + * + * .google.cloud.designcenter.v1.AssetDetails assessed_asset = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAssessedAsset(com.google.cloud.designcenter.v1.AssetDetails value) { + if (assessedAssetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + assessedAsset_ = value; + } else { + assessedAssetBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Details of the Cloud Asset Inventory asset that was assessed.
+     * 
+ * + * + * .google.cloud.designcenter.v1.AssetDetails assessed_asset = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAssessedAsset( + com.google.cloud.designcenter.v1.AssetDetails.Builder builderForValue) { + if (assessedAssetBuilder_ == null) { + assessedAsset_ = builderForValue.build(); + } else { + assessedAssetBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Details of the Cloud Asset Inventory asset that was assessed.
+     * 
+ * + * + * .google.cloud.designcenter.v1.AssetDetails assessed_asset = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAssessedAsset(com.google.cloud.designcenter.v1.AssetDetails value) { + if (assessedAssetBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && assessedAsset_ != null + && assessedAsset_ + != com.google.cloud.designcenter.v1.AssetDetails.getDefaultInstance()) { + getAssessedAssetBuilder().mergeFrom(value); + } else { + assessedAsset_ = value; + } + } else { + assessedAssetBuilder_.mergeFrom(value); + } + if (assessedAsset_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. Details of the Cloud Asset Inventory asset that was assessed.
+     * 
+ * + * + * .google.cloud.designcenter.v1.AssetDetails assessed_asset = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAssessedAsset() { + bitField0_ = (bitField0_ & ~0x00000080); + assessedAsset_ = null; + if (assessedAssetBuilder_ != null) { + assessedAssetBuilder_.dispose(); + assessedAssetBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Details of the Cloud Asset Inventory asset that was assessed.
+     * 
+ * + * + * .google.cloud.designcenter.v1.AssetDetails assessed_asset = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.AssetDetails.Builder getAssessedAssetBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return internalGetAssessedAssetFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. Details of the Cloud Asset Inventory asset that was assessed.
+     * 
+ * + * + * .google.cloud.designcenter.v1.AssetDetails assessed_asset = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.AssetDetailsOrBuilder getAssessedAssetOrBuilder() { + if (assessedAssetBuilder_ != null) { + return assessedAssetBuilder_.getMessageOrBuilder(); + } else { + return assessedAsset_ == null + ? com.google.cloud.designcenter.v1.AssetDetails.getDefaultInstance() + : assessedAsset_; + } + } + + /** + * + * + *
+     * Required. Details of the Cloud Asset Inventory asset that was assessed.
+     * 
+ * + * + * .google.cloud.designcenter.v1.AssetDetails assessed_asset = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.AssetDetails, + com.google.cloud.designcenter.v1.AssetDetails.Builder, + com.google.cloud.designcenter.v1.AssetDetailsOrBuilder> + internalGetAssessedAssetFieldBuilder() { + if (assessedAssetBuilder_ == null) { + assessedAssetBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.AssetDetails, + com.google.cloud.designcenter.v1.AssetDetails.Builder, + com.google.cloud.designcenter.v1.AssetDetailsOrBuilder>( + getAssessedAsset(), getParentForChildren(), isClean()); + assessedAsset_ = null; + } + return assessedAssetBuilder_; + } + + private com.google.cloud.designcenter.v1.Framework assessedFramework_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.Framework, + com.google.cloud.designcenter.v1.Framework.Builder, + com.google.cloud.designcenter.v1.FrameworkOrBuilder> + assessedFrameworkBuilder_; + + /** + * + * + *
+     * Optional. Details of the framework that was assessed.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Framework assessed_framework = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the assessedFramework field is set. + */ + public boolean hasAssessedFramework() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
+     * Optional. Details of the framework that was assessed.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Framework assessed_framework = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The assessedFramework. + */ + public com.google.cloud.designcenter.v1.Framework getAssessedFramework() { + if (assessedFrameworkBuilder_ == null) { + return assessedFramework_ == null + ? com.google.cloud.designcenter.v1.Framework.getDefaultInstance() + : assessedFramework_; + } else { + return assessedFrameworkBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Details of the framework that was assessed.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Framework assessed_framework = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAssessedFramework(com.google.cloud.designcenter.v1.Framework value) { + if (assessedFrameworkBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + assessedFramework_ = value; + } else { + assessedFrameworkBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Details of the framework that was assessed.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Framework assessed_framework = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAssessedFramework( + com.google.cloud.designcenter.v1.Framework.Builder builderForValue) { + if (assessedFrameworkBuilder_ == null) { + assessedFramework_ = builderForValue.build(); + } else { + assessedFrameworkBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Details of the framework that was assessed.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Framework assessed_framework = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAssessedFramework(com.google.cloud.designcenter.v1.Framework value) { + if (assessedFrameworkBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && assessedFramework_ != null + && assessedFramework_ + != com.google.cloud.designcenter.v1.Framework.getDefaultInstance()) { + getAssessedFrameworkBuilder().mergeFrom(value); + } else { + assessedFramework_ = value; + } + } else { + assessedFrameworkBuilder_.mergeFrom(value); + } + if (assessedFramework_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Details of the framework that was assessed.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Framework assessed_framework = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAssessedFramework() { + bitField0_ = (bitField0_ & ~0x00000100); + assessedFramework_ = null; + if (assessedFrameworkBuilder_ != null) { + assessedFrameworkBuilder_.dispose(); + assessedFrameworkBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Details of the framework that was assessed.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Framework assessed_framework = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Framework.Builder getAssessedFrameworkBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return internalGetAssessedFrameworkFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Details of the framework that was assessed.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Framework assessed_framework = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.FrameworkOrBuilder getAssessedFrameworkOrBuilder() { + if (assessedFrameworkBuilder_ != null) { + return assessedFrameworkBuilder_.getMessageOrBuilder(); + } else { + return assessedFramework_ == null + ? com.google.cloud.designcenter.v1.Framework.getDefaultInstance() + : assessedFramework_; + } + } + + /** + * + * + *
+     * Optional. Details of the framework that was assessed.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Framework assessed_framework = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.Framework, + com.google.cloud.designcenter.v1.Framework.Builder, + com.google.cloud.designcenter.v1.FrameworkOrBuilder> + internalGetAssessedFrameworkFieldBuilder() { + if (assessedFrameworkBuilder_ == null) { + assessedFrameworkBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.Framework, + com.google.cloud.designcenter.v1.Framework.Builder, + com.google.cloud.designcenter.v1.FrameworkOrBuilder>( + getAssessedFramework(), getParentForChildren(), isClean()); + assessedFramework_ = null; + } + return assessedFrameworkBuilder_; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
+     * Optional. Description of the finding.
+     * 
+ * + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Description of the finding.
+     * 
+ * + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Description of the finding.
+     * 
+ * + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Description of the finding.
+     * 
+ * + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Description of the finding.
+     * 
+ * + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + private java.lang.Object findingsUri_ = ""; + + /** + * + * + *
+     * Optional. Link to the findings, if persisted by the domain.
+     * 
+ * + * string findings_uri = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The findingsUri. + */ + public java.lang.String getFindingsUri() { + java.lang.Object ref = findingsUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + findingsUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Link to the findings, if persisted by the domain.
+     * 
+ * + * string findings_uri = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for findingsUri. + */ + public com.google.protobuf.ByteString getFindingsUriBytes() { + java.lang.Object ref = findingsUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + findingsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Link to the findings, if persisted by the domain.
+     * 
+ * + * string findings_uri = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The findingsUri to set. + * @return This builder for chaining. + */ + public Builder setFindingsUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + findingsUri_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Link to the findings, if persisted by the domain.
+     * 
+ * + * string findings_uri = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFindingsUri() { + findingsUri_ = getDefaultInstance().getFindingsUri(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Link to the findings, if persisted by the domain.
+     * 
+ * + * string findings_uri = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for findingsUri to set. + * @return This builder for chaining. + */ + public Builder setFindingsUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + findingsUri_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + private com.google.cloud.designcenter.v1.SCCMetadata sccMetadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.SCCMetadata, + com.google.cloud.designcenter.v1.SCCMetadata.Builder, + com.google.cloud.designcenter.v1.SCCMetadataOrBuilder> + sccMetadataBuilder_; + + /** + * + * + *
+     * Output only. SCC related metadata for the finding.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SCCMetadata scc_metadata = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the sccMetadata field is set. + */ + public boolean hasSccMetadata() { + return ((bitField0_ & 0x00000800) != 0); + } + + /** + * + * + *
+     * Output only. SCC related metadata for the finding.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SCCMetadata scc_metadata = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The sccMetadata. + */ + public com.google.cloud.designcenter.v1.SCCMetadata getSccMetadata() { + if (sccMetadataBuilder_ == null) { + return sccMetadata_ == null + ? com.google.cloud.designcenter.v1.SCCMetadata.getDefaultInstance() + : sccMetadata_; + } else { + return sccMetadataBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. SCC related metadata for the finding.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SCCMetadata scc_metadata = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSccMetadata(com.google.cloud.designcenter.v1.SCCMetadata value) { + if (sccMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sccMetadata_ = value; + } else { + sccMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. SCC related metadata for the finding.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SCCMetadata scc_metadata = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSccMetadata( + com.google.cloud.designcenter.v1.SCCMetadata.Builder builderForValue) { + if (sccMetadataBuilder_ == null) { + sccMetadata_ = builderForValue.build(); + } else { + sccMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. SCC related metadata for the finding.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SCCMetadata scc_metadata = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeSccMetadata(com.google.cloud.designcenter.v1.SCCMetadata value) { + if (sccMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0) + && sccMetadata_ != null + && sccMetadata_ != com.google.cloud.designcenter.v1.SCCMetadata.getDefaultInstance()) { + getSccMetadataBuilder().mergeFrom(value); + } else { + sccMetadata_ = value; + } + } else { + sccMetadataBuilder_.mergeFrom(value); + } + if (sccMetadata_ != null) { + bitField0_ |= 0x00000800; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. SCC related metadata for the finding.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SCCMetadata scc_metadata = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearSccMetadata() { + bitField0_ = (bitField0_ & ~0x00000800); + sccMetadata_ = null; + if (sccMetadataBuilder_ != null) { + sccMetadataBuilder_.dispose(); + sccMetadataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. SCC related metadata for the finding.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SCCMetadata scc_metadata = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.SCCMetadata.Builder getSccMetadataBuilder() { + bitField0_ |= 0x00000800; + onChanged(); + return internalGetSccMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. SCC related metadata for the finding.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SCCMetadata scc_metadata = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.SCCMetadataOrBuilder getSccMetadataOrBuilder() { + if (sccMetadataBuilder_ != null) { + return sccMetadataBuilder_.getMessageOrBuilder(); + } else { + return sccMetadata_ == null + ? com.google.cloud.designcenter.v1.SCCMetadata.getDefaultInstance() + : sccMetadata_; + } + } + + /** + * + * + *
+     * Output only. SCC related metadata for the finding.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SCCMetadata scc_metadata = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.SCCMetadata, + com.google.cloud.designcenter.v1.SCCMetadata.Builder, + com.google.cloud.designcenter.v1.SCCMetadataOrBuilder> + internalGetSccMetadataFieldBuilder() { + if (sccMetadataBuilder_ == null) { + sccMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.SCCMetadata, + com.google.cloud.designcenter.v1.SCCMetadata.Builder, + com.google.cloud.designcenter.v1.SCCMetadataOrBuilder>( + getSccMetadata(), getParentForChildren(), isClean()); + sccMetadata_ = null; + } + return sccMetadataBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.AssessmentFinding) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.AssessmentFinding) + private static final com.google.cloud.designcenter.v1.AssessmentFinding DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.AssessmentFinding(); + } + + public static com.google.cloud.designcenter.v1.AssessmentFinding getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AssessmentFinding parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.AssessmentFinding getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/AssessmentFindingOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/AssessmentFindingOrBuilder.java new file mode 100644 index 000000000000..aa702c20b619 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/AssessmentFindingOrBuilder.java @@ -0,0 +1,460 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/assessment.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface AssessmentFindingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.AssessmentFinding) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. A description of the steps that users can take to fix the
+   * finding.
+   * 
+ * + * + * .google.cloud.designcenter.v1.RemediationStep remediation_step = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the remediationStep field is set. + */ + boolean hasRemediationStep(); + + /** + * + * + *
+   * Optional. A description of the steps that users can take to fix the
+   * finding.
+   * 
+ * + * + * .google.cloud.designcenter.v1.RemediationStep remediation_step = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The remediationStep. + */ + com.google.cloud.designcenter.v1.RemediationStep getRemediationStep(); + + /** + * + * + *
+   * Optional. A description of the steps that users can take to fix the
+   * finding.
+   * 
+ * + * + * .google.cloud.designcenter.v1.RemediationStep remediation_step = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.RemediationStepOrBuilder getRemediationStepOrBuilder(); + + /** + * + * + *
+   * Optional. A description of the additional details about finding.
+   * 
+ * + * string additional_notes = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the additionalNotes field is set. + */ + boolean hasAdditionalNotes(); + + /** + * + * + *
+   * Optional. A description of the additional details about finding.
+   * 
+ * + * string additional_notes = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The additionalNotes. + */ + java.lang.String getAdditionalNotes(); + + /** + * + * + *
+   * Optional. A description of the additional details about finding.
+   * 
+ * + * string additional_notes = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for additionalNotes. + */ + com.google.protobuf.ByteString getAdditionalNotesBytes(); + + /** + * + * + *
+   * Output only. The Finding ID.
+   * 
+ * + * string id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The id. + */ + java.lang.String getId(); + + /** + * + * + *
+   * Output only. The Finding ID.
+   * 
+ * + * string id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for id. + */ + com.google.protobuf.ByteString getIdBytes(); + + /** + * + * + *
+   * Optional. The framework that was assessed.
+   * 
+ * + * string assessed_framework_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The assessedFrameworkId. + */ + java.lang.String getAssessedFrameworkId(); + + /** + * + * + *
+   * Optional. The framework that was assessed.
+   * 
+ * + * string assessed_framework_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for assessedFrameworkId. + */ + com.google.protobuf.ByteString getAssessedFrameworkIdBytes(); + + /** + * + * + *
+   * Output only. Metadata related to the Application Design Center with the
+   * finding.
+   * 
+ * + * + * .google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadata adc_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the adcMetadata field is set. + */ + boolean hasAdcMetadata(); + + /** + * + * + *
+   * Output only. Metadata related to the Application Design Center with the
+   * finding.
+   * 
+ * + * + * .google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadata adc_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The adcMetadata. + */ + com.google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadata getAdcMetadata(); + + /** + * + * + *
+   * Output only. Metadata related to the Application Design Center with the
+   * finding.
+   * 
+ * + * + * .google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadata adc_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.AssessmentFinding.FindingADCMetadataOrBuilder + getAdcMetadataOrBuilder(); + + /** + * + * + *
+   * Required. The type of the finding. Findings can be informational,
+   * warning, or error.
+   * 
+ * + * + * .google.cloud.designcenter.v1.AssessmentFinding.Type finding_type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for findingType. + */ + int getFindingTypeValue(); + + /** + * + * + *
+   * Required. The type of the finding. Findings can be informational,
+   * warning, or error.
+   * 
+ * + * + * .google.cloud.designcenter.v1.AssessmentFinding.Type finding_type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The findingType. + */ + com.google.cloud.designcenter.v1.AssessmentFinding.Type getFindingType(); + + /** + * + * + *
+   * Optional. The severity of the finding.
+   * 
+ * + * + * .google.cloud.designcenter.v1.AssessmentFinding.Severity severity = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for severity. + */ + int getSeverityValue(); + + /** + * + * + *
+   * Optional. The severity of the finding.
+   * 
+ * + * + * .google.cloud.designcenter.v1.AssessmentFinding.Severity severity = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The severity. + */ + com.google.cloud.designcenter.v1.AssessmentFinding.Severity getSeverity(); + + /** + * + * + *
+   * Required. Details of the Cloud Asset Inventory asset that was assessed.
+   * 
+ * + * + * .google.cloud.designcenter.v1.AssetDetails assessed_asset = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the assessedAsset field is set. + */ + boolean hasAssessedAsset(); + + /** + * + * + *
+   * Required. Details of the Cloud Asset Inventory asset that was assessed.
+   * 
+ * + * + * .google.cloud.designcenter.v1.AssetDetails assessed_asset = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The assessedAsset. + */ + com.google.cloud.designcenter.v1.AssetDetails getAssessedAsset(); + + /** + * + * + *
+   * Required. Details of the Cloud Asset Inventory asset that was assessed.
+   * 
+ * + * + * .google.cloud.designcenter.v1.AssetDetails assessed_asset = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.designcenter.v1.AssetDetailsOrBuilder getAssessedAssetOrBuilder(); + + /** + * + * + *
+   * Optional. Details of the framework that was assessed.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Framework assessed_framework = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the assessedFramework field is set. + */ + boolean hasAssessedFramework(); + + /** + * + * + *
+   * Optional. Details of the framework that was assessed.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Framework assessed_framework = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The assessedFramework. + */ + com.google.cloud.designcenter.v1.Framework getAssessedFramework(); + + /** + * + * + *
+   * Optional. Details of the framework that was assessed.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Framework assessed_framework = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.FrameworkOrBuilder getAssessedFrameworkOrBuilder(); + + /** + * + * + *
+   * Optional. Description of the finding.
+   * 
+ * + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
+   * Optional. Description of the finding.
+   * 
+ * + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Optional. Link to the findings, if persisted by the domain.
+   * 
+ * + * string findings_uri = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The findingsUri. + */ + java.lang.String getFindingsUri(); + + /** + * + * + *
+   * Optional. Link to the findings, if persisted by the domain.
+   * 
+ * + * string findings_uri = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for findingsUri. + */ + com.google.protobuf.ByteString getFindingsUriBytes(); + + /** + * + * + *
+   * Output only. SCC related metadata for the finding.
+   * 
+ * + * + * .google.cloud.designcenter.v1.SCCMetadata scc_metadata = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the sccMetadata field is set. + */ + boolean hasSccMetadata(); + + /** + * + * + *
+   * Output only. SCC related metadata for the finding.
+   * 
+ * + * + * .google.cloud.designcenter.v1.SCCMetadata scc_metadata = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The sccMetadata. + */ + com.google.cloud.designcenter.v1.SCCMetadata getSccMetadata(); + + /** + * + * + *
+   * Output only. SCC related metadata for the finding.
+   * 
+ * + * + * .google.cloud.designcenter.v1.SCCMetadata scc_metadata = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.SCCMetadataOrBuilder getSccMetadataOrBuilder(); + + com.google.cloud.designcenter.v1.AssessmentFinding.NextStepCase getNextStepCase(); + + com.google.cloud.designcenter.v1.AssessmentFinding.AdditionalDetailsCase + getAdditionalDetailsCase(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/AssessmentProto.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/AssessmentProto.java new file mode 100644 index 000000000000..9e13146c749d --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/AssessmentProto.java @@ -0,0 +1,493 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/assessment.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public final class AssessmentProto extends com.google.protobuf.GeneratedFile { + private AssessmentProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AssessmentProto"); + } + + 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_designcenter_v1_DomainAssessmentReport_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_DomainAssessmentReport_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_DomainAssessmentReport_DomainRedirectInfo_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_DomainAssessmentReport_DomainRedirectInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_ScoreCard_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ScoreCard_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_ApplyCondition_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ApplyCondition_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_SkippedDomain_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_SkippedDomain_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_Domain_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_Domain_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_Framework_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_Framework_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_CloudControl_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_CloudControl_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_ParameterSpec_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ParameterSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_AdcMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_AdcMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_AssessedFramework_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_AssessedFramework_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_AssessmentFinding_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_AssessmentFinding_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_AssessmentFinding_FindingADCMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_AssessmentFinding_FindingADCMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_SCCMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_SCCMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_AssetDetails_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_AssetDetails_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_RemediationStep_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_RemediationStep_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/designcenter/v1/assessmen" + + "t.proto\022\034google.cloud.designcenter.v1\032\037g" + + "oogle/api/field_behavior.proto\032-google/c" + + "loud/designcenter/v1/parameters.proto\032\034g" + + "oogle/protobuf/struct.proto\032\037google/protobuf/timestamp.proto\"\307\006\n" + + "\026DomainAssessmentReport\022\031\n" + + "\013report_name\030\001 \001(\tB\004\342A\001\001\022\027\n" + + "\tdomain_id\030\002 \001(\tB\004\342A\001\003\0225\n" + + "\013create_time\030\003" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0225\n" + + "\013update_time\030\004" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022Q\n" + + "\006status\030\005 \001(\0162;.google.cloud" + + ".designcenter.v1.DomainAssessmentReport.StatusB\004\342A\001\001\022E\n" + + "\014adc_metadata\030\t \001(\0132).goo" + + "gle.cloud.designcenter.v1.AdcMetadataB\004\342A\001\003\022R\n" + + "\023assessed_frameworks\030\016 \003(\0132/.googl" + + "e.cloud.designcenter.v1.AssessedFrameworkB\004\342A\001\002\022\035\n" + + "\017additional_info\030\013 \001(\tB\004\342A\001\001\022!\n" + + "\023skipped_asset_types\030\014 \003(\tB\004\342A\001\001\022k\n" + + "\024domain_redirect_info\030\r" + + " \001(\0132G.google.cloud.d" + + "esigncenter.v1.DomainAssessmentReport.DomainRedirectInfoB\004\342A\001\001\022C\n" + + "\014report_score\030\017" + + " \001(\0132\'.google.cloud.designcenter.v1.ScoreCardB\004\342A\001\003\032_\n" + + "\022DomainRedirectInfo\022\021\n" + + "\003url\030\001 \001(\tB\004\342A\001\002\022\026\n" + + "\010url_text\030\002 \001(\tB\004\342A\001\002\022\036\n" + + "\020open_in_same_tab\030\003 \001(\010B\004\342A\001\001\"H\n" + + "\006Status\022\026\n" + + "\022STATUS_UNSPECIFIED\020\000\022\013\n" + + "\007PENDING\020\001\022\r\n" + + "\tCOMPLETED\020\002\022\n\n" + + "\006FAILED\020\003\"\177\n" + + "\tScoreCard\022\032\n" + + "\014report_score\030\001 \001(\005B\004\342A\001\002\022\027\n" + + "\tmax_score\030\002 \001(\005B\004\342A\001\002\022 \n" + + "\022min_score_required\030\003 \001(\005B\004\342A\001\001\022\033\n\r" + + "average_score\030\004 \001(\005B\004\342A\001\001\"L\n" + + "\016ApplyCondition\022\033\n\r" + + "condition_key\030\001 \001(\tB\004\342A\001\002\022\035\n" + + "\017condition_value\030\002 \001(\tB\004\342A\001\002\"\347\001\n\r" + + "SkippedDomain\022:\n" + + "\006domain\030\001" + + " \001(\0132$.google.cloud.designcenter.v1.DomainB\004\342A\001\003\022M\n" + + "\013skip_reason\030\002" + + " \001(\01622.google.cloud.designcenter.v1.SkippedDomain.ReasonB\004\342A\001\003\"K\n" + + "\006Reason\022\026\n" + + "\022REASON_UNSPECIFIED\020\000\022\017\n" + + "\013UNAVAILABLE\020\001\022\013\n" + + "\007FAILURE\020\002\022\013\n" + + "\007TIMEOUT\020\003\"\265\001\n" + + "\006Domain\022\031\n" + + "\013domain_name\030\001 \001(\tB\004\342A\001\002\022\032\n" + + "\014display_name\030\002 \001(\tB\004\342A\001\001\022\031\n" + + "\013description\030\003 \001(\tB\004\342A\001\001\022A\n\n" + + "frameworks\030\004" + + " \003(\0132\'.google.cloud.designcenter.v1.FrameworkB\004\342A\001\001\022\026\n" + + "\010inactive\030\005 \001(\010B\004\342A\001\001\"\216\004\n" + + "\tFramework\022\022\n" + + "\004name\030\001 \001(\tB\004\342A\001\002\022\037\n" + + "\021major_revision_id\030\013 \001(\005B\004\342A\001\001\022A\n\r" + + "parent_domain\030\t" + + " \001(\0132$.google.cloud.designcenter.v1.DomainB\004\342A\001\002\022\032\n" + + "\014display_name\030\003 \001(\tB\004\342A\001\001\022\031\n" + + "\013description\030\004 \001(\tB\004\342A\001\001\022\021\n" + + "\003url\030\005 \001(\tB\004\342A\001\001\022\024\n" + + "\006active\030\006 \001(\010B\004\342A\001\001\022O\n" + + "\025cloud_control_details\030\014 \003(\0132*.google.cl" + + "oud.designcenter.v1.CloudControlB\004\342A\001\001\022Y\n" + + "\021deployment_status\030\n" + + " \001(\01628.google.cloud" + + ".designcenter.v1.Framework.DeploymentStatusB\004\342A\001\001\022(\n" + + "\032managed_project_applicable\030\r" + + " \001(\010B\004\342A\001\003\"S\n" + + "\020DeploymentStatus\022!\n" + + "\035DEPLOYMENT_STATUS_UNSPECIFIED\020\000\022\014\n" + + "\010DEPLOYED\020\001\022\016\n\n" + + "UNDEPLOYED\020\002\"\250\003\n" + + "\014CloudControl\022\022\n" + + "\004name\030\001 \001(\tB\004\342A\001\002\022\031\n" + + "\013description\030\002 \001(\tB\004\342A\001\001\022\037\n" + + "\021major_revision_id\030\003 \001(\005B\004\342A\001\002\022Z\n" + + "\020enforcement_mode\030\004 \001(\0162:.google.cloud.desig" + + "ncenter.v1.CloudControl.EnforcementModeB\004\342A\001\001\022J\n" + + "\017parameter_specs\030\005 \003(\0132+.google." + + "cloud.designcenter.v1.ParameterSpecB\004\342A\001\001\022A\n\n" + + "parameters\030\006" + + " \003(\0132\'.google.cloud.designcenter.v1.ParameterB\004\342A\001\001\"]\n" + + "\017EnforcementMode\022 \n" + + "\034ENFORCEMENT_MODE_UNSPECIFIED\020\000\022\016\n\n" + + "PREVENTIVE\020\001\022\r\n" + + "\tDETECTIVE\020\002\022\t\n" + + "\005AUDIT\020\003\"\260\003\n\r" + + "ParameterSpec\022\021\n" + + "\003key\030\001 \001(\tB\004\342A\001\002\022\032\n" + + "\014display_name\030\002 \001(\tB\004\342A\001\001\022\031\n" + + "\013description\030\003 \001(\tB\004\342A\001\001\022\026\n" + + "\010required\030\004 \001(\010B\004\342A\001\001\022O\n\n" + + "value_type\030\005 \001(\01625.google.cloud.desig" + + "ncenter.v1.ParameterSpec.ValueTypeB\004\342A\001\001\0223\n\r" + + "default_value\030\006 \001(\0132\026.google.protobuf.ValueB\004\342A\001\001\022N\n" + + "\023sub_parameter_specs\030\010 \003" + + "(\0132+.google.cloud.designcenter.v1.ParameterSpecB\004\342A\001\001\"g\n" + + "\tValueType\022\032\n" + + "\026VALUE_TYPE_UNSPECIFIED\020\000\022\n\n" + + "\006STRING\020\003\022\013\n" + + "\007BOOLEAN\020\004\022\016\n\n" + + "STRINGLIST\020\005\022\n\n" + + "\006NUMBER\020\006\022\t\n" + + "\005ONEOF\020\007\"\255\001\n" + + "\013AdcMetadata\022\037\n" + + "\017application_uri\030\001 \001(\tB\004\342A\001\003H\000\022(\n" + + "\030application_template_uri\030\002 \001(\tB\004\342A\001\003H\000\022\031\n" + + "\tspace_uri\030\003 \001(\tB\004\342A\001\003H\000\022-\n" + + "\035catalog_template_revision_uri\030\004 \001(\tB\004\342A\001\003H\000B\t\n" + + "\007app_uri\"\226\002\n" + + "\021AssessedFramework\022@\n" + + "\tframework\030\001" + + " \001(\0132\'.google.cloud.designcenter.v1.FrameworkB\004\342A\001\002\022G\n" + + "\010findings\030\002 \003(\013" + + "2/.google.cloud.designcenter.v1.AssessmentFindingB\004\342A\001\002\022A\n\n" + + "score_card\030\003 \001(\0132\'.go" + + "ogle.cloud.designcenter.v1.ScoreCardB\004\342A\001\001\022\025\n" + + "\007skipped\030\004 \001(\010B\004\342A\001\001\022\034\n" + + "\016skipped_reason\030\005 \001(\tB\004\342A\001\001\"\264\007\n" + + "\021AssessmentFinding\022O\n" + + "\020remediation_step\030\006" + + " \001(\0132-.google.cloud.designcenter.v1.RemediationStepB\004\342A\001\001H\000\022" + + " \n" + + "\020additional_notes\030\n" + + " \001(\tB\004\342A\001\001H\001\022\020\n" + + "\002id\030\014 \001(\tB\004\342A\001\003\022#\n" + + "\025assessed_framework_id\030\002 \001(\tB\004\342A\001\001\022^\n" + + "\014adc_metadata\030\003 \001(\0132B.google.c" + + "loud.designcenter.v1.AssessmentFinding.FindingADCMetadataB\004\342A\001\003\022P\n" + + "\014finding_type\030\004" + + " \001(\01624.google.cloud.designcenter.v1.AssessmentFinding.TypeB\004\342A\001\002\022P\n" + + "\010severity\030\005 " + + "\001(\01628.google.cloud.designcenter.v1.AssessmentFinding.SeverityB\004\342A\001\001\022H\n" + + "\016assessed_asset\030\007" + + " \001(\0132*.google.cloud.designcenter.v1.AssetDetailsB\004\342A\001\002\022I\n" + + "\022assessed_framework\030\010" + + " \001(\0132\'.google.cloud.designcenter.v1.FrameworkB\004\342A\001\001\022\031\n" + + "\013description\030\t \001(\tB\004\342A\001\001\022\032\n" + + "\014findings_uri\030\013 \001(\tB\004\342A\001\001\022E\n" + + "\014scc_metadata\030\r" + + " \001(\0132).google.cloud.designcenter.v1.SCCMetadataB\004\342A\001\003\0322\n" + + "\022FindingADCMetadata\022\034\n" + + "\016component_name\030\001 \001(\tB\004\342A\001\003\"4\n" + + "\004Type\022\024\n" + + "\020TYPE_UNSPECIFIED\020\000\022\013\n" + + "\007WARNING\020\001\022\t\n" + + "\005ERROR\020\002\"Q\n" + + "\010Severity\022\030\n" + + "\024SEVERITY_UNSPECIFIED\020\000\022\014\n" + + "\010CRITICAL\020\001\022\010\n" + + "\004HIGH\020\002\022\n\n" + + "\006MEDIUM\020\003\022\007\n" + + "\003LOW\020\004B\013\n" + + "\tnext_stepB\024\n" + + "\022additional_details\"F\n" + + "\013SCCMetadata\022\033\n\r" + + "finding_class\030\001 \001(\tB\004\342A\001\001\022\032\n" + + "\014finding_type\030\002 \001(\tB\004\342A\001\001\"@\n" + + "\014AssetDetails\022\026\n" + + "\010asset_id\030\001 \001(\tB\004\342A\001\002\022\030\n\n" + + "asset_type\030\002 \001(\tB\004\342A\001\001\"s\n" + + "\017RemediationStep\022\037\n" + + "\021remediation_steps\030\001 \003(\tB\004\342A\001\002\022+\n" + + "\035remediation_documentation_url\030\002 \001(\tB\004\342A\001\001\022\022\n" + + "\004note\030\003 \001(\tB\004\342A\001\001B\333\001\n" + + " com.google.cloud.designcenter.v1B\017AssessmentProtoP\001ZDc" + + "loud.google.com/go/designcenter/apiv1/de" + + "signcenterpb;designcenterpb\252\002\034Google.Clo" + + "ud.DesignCenter.V1\312\002\034Google\\Cloud\\Design" + + "Center\\V1\352\002\037Google::Cloud::DesignCenter::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.cloud.designcenter.v1.ParametersProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_designcenter_v1_DomainAssessmentReport_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_designcenter_v1_DomainAssessmentReport_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_DomainAssessmentReport_descriptor, + new java.lang.String[] { + "ReportName", + "DomainId", + "CreateTime", + "UpdateTime", + "Status", + "AdcMetadata", + "AssessedFrameworks", + "AdditionalInfo", + "SkippedAssetTypes", + "DomainRedirectInfo", + "ReportScore", + }); + internal_static_google_cloud_designcenter_v1_DomainAssessmentReport_DomainRedirectInfo_descriptor = + internal_static_google_cloud_designcenter_v1_DomainAssessmentReport_descriptor + .getNestedType(0); + internal_static_google_cloud_designcenter_v1_DomainAssessmentReport_DomainRedirectInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_DomainAssessmentReport_DomainRedirectInfo_descriptor, + new java.lang.String[] { + "Url", "UrlText", "OpenInSameTab", + }); + internal_static_google_cloud_designcenter_v1_ScoreCard_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_designcenter_v1_ScoreCard_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ScoreCard_descriptor, + new java.lang.String[] { + "ReportScore", "MaxScore", "MinScoreRequired", "AverageScore", + }); + internal_static_google_cloud_designcenter_v1_ApplyCondition_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_designcenter_v1_ApplyCondition_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ApplyCondition_descriptor, + new java.lang.String[] { + "ConditionKey", "ConditionValue", + }); + internal_static_google_cloud_designcenter_v1_SkippedDomain_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_cloud_designcenter_v1_SkippedDomain_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_SkippedDomain_descriptor, + new java.lang.String[] { + "Domain", "SkipReason", + }); + internal_static_google_cloud_designcenter_v1_Domain_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_cloud_designcenter_v1_Domain_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_Domain_descriptor, + new java.lang.String[] { + "DomainName", "DisplayName", "Description", "Frameworks", "Inactive", + }); + internal_static_google_cloud_designcenter_v1_Framework_descriptor = + getDescriptor().getMessageType(5); + internal_static_google_cloud_designcenter_v1_Framework_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_Framework_descriptor, + new java.lang.String[] { + "Name", + "MajorRevisionId", + "ParentDomain", + "DisplayName", + "Description", + "Url", + "Active", + "CloudControlDetails", + "DeploymentStatus", + "ManagedProjectApplicable", + }); + internal_static_google_cloud_designcenter_v1_CloudControl_descriptor = + getDescriptor().getMessageType(6); + internal_static_google_cloud_designcenter_v1_CloudControl_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_CloudControl_descriptor, + new java.lang.String[] { + "Name", + "Description", + "MajorRevisionId", + "EnforcementMode", + "ParameterSpecs", + "Parameters", + }); + internal_static_google_cloud_designcenter_v1_ParameterSpec_descriptor = + getDescriptor().getMessageType(7); + internal_static_google_cloud_designcenter_v1_ParameterSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ParameterSpec_descriptor, + new java.lang.String[] { + "Key", + "DisplayName", + "Description", + "Required", + "ValueType", + "DefaultValue", + "SubParameterSpecs", + }); + internal_static_google_cloud_designcenter_v1_AdcMetadata_descriptor = + getDescriptor().getMessageType(8); + internal_static_google_cloud_designcenter_v1_AdcMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_AdcMetadata_descriptor, + new java.lang.String[] { + "ApplicationUri", + "ApplicationTemplateUri", + "SpaceUri", + "CatalogTemplateRevisionUri", + "AppUri", + }); + internal_static_google_cloud_designcenter_v1_AssessedFramework_descriptor = + getDescriptor().getMessageType(9); + internal_static_google_cloud_designcenter_v1_AssessedFramework_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_AssessedFramework_descriptor, + new java.lang.String[] { + "Framework", "Findings", "ScoreCard", "Skipped", "SkippedReason", + }); + internal_static_google_cloud_designcenter_v1_AssessmentFinding_descriptor = + getDescriptor().getMessageType(10); + internal_static_google_cloud_designcenter_v1_AssessmentFinding_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_AssessmentFinding_descriptor, + new java.lang.String[] { + "RemediationStep", + "AdditionalNotes", + "Id", + "AssessedFrameworkId", + "AdcMetadata", + "FindingType", + "Severity", + "AssessedAsset", + "AssessedFramework", + "Description", + "FindingsUri", + "SccMetadata", + "NextStep", + "AdditionalDetails", + }); + internal_static_google_cloud_designcenter_v1_AssessmentFinding_FindingADCMetadata_descriptor = + internal_static_google_cloud_designcenter_v1_AssessmentFinding_descriptor.getNestedType(0); + internal_static_google_cloud_designcenter_v1_AssessmentFinding_FindingADCMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_AssessmentFinding_FindingADCMetadata_descriptor, + new java.lang.String[] { + "ComponentName", + }); + internal_static_google_cloud_designcenter_v1_SCCMetadata_descriptor = + getDescriptor().getMessageType(11); + internal_static_google_cloud_designcenter_v1_SCCMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_SCCMetadata_descriptor, + new java.lang.String[] { + "FindingClass", "FindingType", + }); + internal_static_google_cloud_designcenter_v1_AssetDetails_descriptor = + getDescriptor().getMessageType(12); + internal_static_google_cloud_designcenter_v1_AssetDetails_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_AssetDetails_descriptor, + new java.lang.String[] { + "AssetId", "AssetType", + }); + internal_static_google_cloud_designcenter_v1_RemediationStep_descriptor = + getDescriptor().getMessageType(13); + internal_static_google_cloud_designcenter_v1_RemediationStep_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_RemediationStep_descriptor, + new java.lang.String[] { + "RemediationSteps", "RemediationDocumentationUrl", "Note", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.cloud.designcenter.v1.ParametersProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/AssessmentReport.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/AssessmentReport.java new file mode 100644 index 000000000000..4d4991dcec59 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/AssessmentReport.java @@ -0,0 +1,2941 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/best_practices.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Aggregated assessment report from all domains.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.AssessmentReport} + */ +@com.google.protobuf.Generated +public final class AssessmentReport extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.AssessmentReport) + AssessmentReportOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AssessmentReport"); + } + + // Use AssessmentReport.newBuilder() to construct. + private AssessmentReport(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AssessmentReport() { + domainAssessmentReports_ = java.util.Collections.emptyList(); + skippedDomains_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.BestPracticesResourcesProto + .internal_static_google_cloud_designcenter_v1_AssessmentReport_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.BestPracticesResourcesProto + .internal_static_google_cloud_designcenter_v1_AssessmentReport_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.AssessmentReport.class, + com.google.cloud.designcenter.v1.AssessmentReport.Builder.class); + } + + private int bitField0_; + private int adcResourceUriCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object adcResourceUri_; + + public enum AdcResourceUriCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + ADC_APPLICATION_URI(1), + ADC_APPLICATION_TEMPLATE_URI(2), + ADC_CATALOG_TEMPLATE_URI(3), + ADC_SPACE_URI(4), + ADCRESOURCEURI_NOT_SET(0); + private final int value; + + private AdcResourceUriCase(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 AdcResourceUriCase valueOf(int value) { + return forNumber(value); + } + + public static AdcResourceUriCase forNumber(int value) { + switch (value) { + case 1: + return ADC_APPLICATION_URI; + case 2: + return ADC_APPLICATION_TEMPLATE_URI; + case 3: + return ADC_CATALOG_TEMPLATE_URI; + case 4: + return ADC_SPACE_URI; + case 0: + return ADCRESOURCEURI_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public AdcResourceUriCase getAdcResourceUriCase() { + return AdcResourceUriCase.forNumber(adcResourceUriCase_); + } + + public static final int ADC_APPLICATION_URI_FIELD_NUMBER = 1; + + /** + * + * + *
+   * Output only. Application URI.
+   * 
+ * + * string adc_application_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the adcApplicationUri field is set. + */ + public boolean hasAdcApplicationUri() { + return adcResourceUriCase_ == 1; + } + + /** + * + * + *
+   * Output only. Application URI.
+   * 
+ * + * string adc_application_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The adcApplicationUri. + */ + public java.lang.String getAdcApplicationUri() { + java.lang.Object ref = ""; + if (adcResourceUriCase_ == 1) { + ref = adcResourceUri_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (adcResourceUriCase_ == 1) { + adcResourceUri_ = s; + } + return s; + } + } + + /** + * + * + *
+   * Output only. Application URI.
+   * 
+ * + * string adc_application_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for adcApplicationUri. + */ + public com.google.protobuf.ByteString getAdcApplicationUriBytes() { + java.lang.Object ref = ""; + if (adcResourceUriCase_ == 1) { + ref = adcResourceUri_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (adcResourceUriCase_ == 1) { + adcResourceUri_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ADC_APPLICATION_TEMPLATE_URI_FIELD_NUMBER = 2; + + /** + * + * + *
+   * Output only. Application Template URI.
+   * 
+ * + * string adc_application_template_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the adcApplicationTemplateUri field is set. + */ + public boolean hasAdcApplicationTemplateUri() { + return adcResourceUriCase_ == 2; + } + + /** + * + * + *
+   * Output only. Application Template URI.
+   * 
+ * + * string adc_application_template_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The adcApplicationTemplateUri. + */ + public java.lang.String getAdcApplicationTemplateUri() { + java.lang.Object ref = ""; + if (adcResourceUriCase_ == 2) { + ref = adcResourceUri_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (adcResourceUriCase_ == 2) { + adcResourceUri_ = s; + } + return s; + } + } + + /** + * + * + *
+   * Output only. Application Template URI.
+   * 
+ * + * string adc_application_template_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for adcApplicationTemplateUri. + */ + public com.google.protobuf.ByteString getAdcApplicationTemplateUriBytes() { + java.lang.Object ref = ""; + if (adcResourceUriCase_ == 2) { + ref = adcResourceUri_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (adcResourceUriCase_ == 2) { + adcResourceUri_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ADC_CATALOG_TEMPLATE_URI_FIELD_NUMBER = 3; + + /** + * + * + *
+   * Output only. Catalog Template URI.
+   * 
+ * + * string adc_catalog_template_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the adcCatalogTemplateUri field is set. + */ + public boolean hasAdcCatalogTemplateUri() { + return adcResourceUriCase_ == 3; + } + + /** + * + * + *
+   * Output only. Catalog Template URI.
+   * 
+ * + * string adc_catalog_template_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The adcCatalogTemplateUri. + */ + public java.lang.String getAdcCatalogTemplateUri() { + java.lang.Object ref = ""; + if (adcResourceUriCase_ == 3) { + ref = adcResourceUri_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (adcResourceUriCase_ == 3) { + adcResourceUri_ = s; + } + return s; + } + } + + /** + * + * + *
+   * Output only. Catalog Template URI.
+   * 
+ * + * string adc_catalog_template_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for adcCatalogTemplateUri. + */ + public com.google.protobuf.ByteString getAdcCatalogTemplateUriBytes() { + java.lang.Object ref = ""; + if (adcResourceUriCase_ == 3) { + ref = adcResourceUri_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (adcResourceUriCase_ == 3) { + adcResourceUri_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ADC_SPACE_URI_FIELD_NUMBER = 4; + + /** + * + * + *
+   * Output only. Space URI.
+   * 
+ * + * string adc_space_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the adcSpaceUri field is set. + */ + public boolean hasAdcSpaceUri() { + return adcResourceUriCase_ == 4; + } + + /** + * + * + *
+   * Output only. Space URI.
+   * 
+ * + * string adc_space_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The adcSpaceUri. + */ + public java.lang.String getAdcSpaceUri() { + java.lang.Object ref = ""; + if (adcResourceUriCase_ == 4) { + ref = adcResourceUri_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (adcResourceUriCase_ == 4) { + adcResourceUri_ = s; + } + return s; + } + } + + /** + * + * + *
+   * Output only. Space URI.
+   * 
+ * + * string adc_space_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for adcSpaceUri. + */ + public com.google.protobuf.ByteString getAdcSpaceUriBytes() { + java.lang.Object ref = ""; + if (adcResourceUriCase_ == 4) { + ref = adcResourceUri_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (adcResourceUriCase_ == 4) { + adcResourceUri_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DOMAIN_ASSESSMENT_REPORTS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private java.util.List + domainAssessmentReports_; + + /** + * + * + *
+   * Output only. Generated best practice reports.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.DomainAssessmentReport domain_assessment_reports = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getDomainAssessmentReportsList() { + return domainAssessmentReports_; + } + + /** + * + * + *
+   * Output only. Generated best practice reports.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.DomainAssessmentReport domain_assessment_reports = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getDomainAssessmentReportsOrBuilderList() { + return domainAssessmentReports_; + } + + /** + * + * + *
+   * Output only. Generated best practice reports.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.DomainAssessmentReport domain_assessment_reports = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getDomainAssessmentReportsCount() { + return domainAssessmentReports_.size(); + } + + /** + * + * + *
+   * Output only. Generated best practice reports.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.DomainAssessmentReport domain_assessment_reports = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.DomainAssessmentReport getDomainAssessmentReports( + int index) { + return domainAssessmentReports_.get(index); + } + + /** + * + * + *
+   * Output only. Generated best practice reports.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.DomainAssessmentReport domain_assessment_reports = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.DomainAssessmentReportOrBuilder + getDomainAssessmentReportsOrBuilder(int index) { + return domainAssessmentReports_.get(index); + } + + public static final int SKIPPED_DOMAINS_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private java.util.List skippedDomains_; + + /** + * + * + *
+   * Output only. Skipped domains.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.SkippedDomain skipped_domains = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getSkippedDomainsList() { + return skippedDomains_; + } + + /** + * + * + *
+   * Output only. Skipped domains.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.SkippedDomain skipped_domains = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getSkippedDomainsOrBuilderList() { + return skippedDomains_; + } + + /** + * + * + *
+   * Output only. Skipped domains.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.SkippedDomain skipped_domains = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getSkippedDomainsCount() { + return skippedDomains_.size(); + } + + /** + * + * + *
+   * Output only. Skipped domains.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.SkippedDomain skipped_domains = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.SkippedDomain getSkippedDomains(int index) { + return skippedDomains_.get(index); + } + + /** + * + * + *
+   * Output only. Skipped domains.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.SkippedDomain skipped_domains = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.SkippedDomainOrBuilder getSkippedDomainsOrBuilder( + int index) { + return skippedDomains_.get(index); + } + + public static final int CREATE_TIME_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+   * Output only. The time at which the report was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. The time at which the report was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.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 at which the report was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + 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 (adcResourceUriCase_ == 1) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, adcResourceUri_); + } + if (adcResourceUriCase_ == 2) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, adcResourceUri_); + } + if (adcResourceUriCase_ == 3) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, adcResourceUri_); + } + if (adcResourceUriCase_ == 4) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, adcResourceUri_); + } + for (int i = 0; i < domainAssessmentReports_.size(); i++) { + output.writeMessage(5, domainAssessmentReports_.get(i)); + } + for (int i = 0; i < skippedDomains_.size(); i++) { + output.writeMessage(6, skippedDomains_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(7, getCreateTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (adcResourceUriCase_ == 1) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, adcResourceUri_); + } + if (adcResourceUriCase_ == 2) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, adcResourceUri_); + } + if (adcResourceUriCase_ == 3) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, adcResourceUri_); + } + if (adcResourceUriCase_ == 4) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, adcResourceUri_); + } + for (int i = 0; i < domainAssessmentReports_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, domainAssessmentReports_.get(i)); + } + for (int i = 0; i < skippedDomains_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, skippedDomains_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCreateTime()); + } + 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.designcenter.v1.AssessmentReport)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.AssessmentReport other = + (com.google.cloud.designcenter.v1.AssessmentReport) obj; + + if (!getDomainAssessmentReportsList().equals(other.getDomainAssessmentReportsList())) + return false; + if (!getSkippedDomainsList().equals(other.getSkippedDomainsList())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (!getAdcResourceUriCase().equals(other.getAdcResourceUriCase())) return false; + switch (adcResourceUriCase_) { + case 1: + if (!getAdcApplicationUri().equals(other.getAdcApplicationUri())) return false; + break; + case 2: + if (!getAdcApplicationTemplateUri().equals(other.getAdcApplicationTemplateUri())) + return false; + break; + case 3: + if (!getAdcCatalogTemplateUri().equals(other.getAdcCatalogTemplateUri())) return false; + break; + case 4: + if (!getAdcSpaceUri().equals(other.getAdcSpaceUri())) 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(); + if (getDomainAssessmentReportsCount() > 0) { + hash = (37 * hash) + DOMAIN_ASSESSMENT_REPORTS_FIELD_NUMBER; + hash = (53 * hash) + getDomainAssessmentReportsList().hashCode(); + } + if (getSkippedDomainsCount() > 0) { + hash = (37 * hash) + SKIPPED_DOMAINS_FIELD_NUMBER; + hash = (53 * hash) + getSkippedDomainsList().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + switch (adcResourceUriCase_) { + case 1: + hash = (37 * hash) + ADC_APPLICATION_URI_FIELD_NUMBER; + hash = (53 * hash) + getAdcApplicationUri().hashCode(); + break; + case 2: + hash = (37 * hash) + ADC_APPLICATION_TEMPLATE_URI_FIELD_NUMBER; + hash = (53 * hash) + getAdcApplicationTemplateUri().hashCode(); + break; + case 3: + hash = (37 * hash) + ADC_CATALOG_TEMPLATE_URI_FIELD_NUMBER; + hash = (53 * hash) + getAdcCatalogTemplateUri().hashCode(); + break; + case 4: + hash = (37 * hash) + ADC_SPACE_URI_FIELD_NUMBER; + hash = (53 * hash) + getAdcSpaceUri().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.AssessmentReport parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.AssessmentReport 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.designcenter.v1.AssessmentReport parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.AssessmentReport parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.AssessmentReport parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.AssessmentReport parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.AssessmentReport parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.AssessmentReport parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.AssessmentReport parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.AssessmentReport parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.AssessmentReport parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.AssessmentReport parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.AssessmentReport 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Aggregated assessment report from all domains.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.AssessmentReport} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.AssessmentReport) + com.google.cloud.designcenter.v1.AssessmentReportOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.BestPracticesResourcesProto + .internal_static_google_cloud_designcenter_v1_AssessmentReport_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.BestPracticesResourcesProto + .internal_static_google_cloud_designcenter_v1_AssessmentReport_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.AssessmentReport.class, + com.google.cloud.designcenter.v1.AssessmentReport.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.AssessmentReport.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetDomainAssessmentReportsFieldBuilder(); + internalGetSkippedDomainsFieldBuilder(); + internalGetCreateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (domainAssessmentReportsBuilder_ == null) { + domainAssessmentReports_ = java.util.Collections.emptyList(); + } else { + domainAssessmentReports_ = null; + domainAssessmentReportsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + if (skippedDomainsBuilder_ == null) { + skippedDomains_ = java.util.Collections.emptyList(); + } else { + skippedDomains_ = null; + skippedDomainsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + adcResourceUriCase_ = 0; + adcResourceUri_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.BestPracticesResourcesProto + .internal_static_google_cloud_designcenter_v1_AssessmentReport_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.AssessmentReport getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.AssessmentReport.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.AssessmentReport build() { + com.google.cloud.designcenter.v1.AssessmentReport result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.AssessmentReport buildPartial() { + com.google.cloud.designcenter.v1.AssessmentReport result = + new com.google.cloud.designcenter.v1.AssessmentReport(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.designcenter.v1.AssessmentReport result) { + if (domainAssessmentReportsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + domainAssessmentReports_ = + java.util.Collections.unmodifiableList(domainAssessmentReports_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.domainAssessmentReports_ = domainAssessmentReports_; + } else { + result.domainAssessmentReports_ = domainAssessmentReportsBuilder_.build(); + } + if (skippedDomainsBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + skippedDomains_ = java.util.Collections.unmodifiableList(skippedDomains_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.skippedDomains_ = skippedDomains_; + } else { + result.skippedDomains_ = skippedDomainsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.designcenter.v1.AssessmentReport result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000040) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.designcenter.v1.AssessmentReport result) { + result.adcResourceUriCase_ = adcResourceUriCase_; + result.adcResourceUri_ = this.adcResourceUri_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.AssessmentReport) { + return mergeFrom((com.google.cloud.designcenter.v1.AssessmentReport) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.AssessmentReport other) { + if (other == com.google.cloud.designcenter.v1.AssessmentReport.getDefaultInstance()) + return this; + if (domainAssessmentReportsBuilder_ == null) { + if (!other.domainAssessmentReports_.isEmpty()) { + if (domainAssessmentReports_.isEmpty()) { + domainAssessmentReports_ = other.domainAssessmentReports_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureDomainAssessmentReportsIsMutable(); + domainAssessmentReports_.addAll(other.domainAssessmentReports_); + } + onChanged(); + } + } else { + if (!other.domainAssessmentReports_.isEmpty()) { + if (domainAssessmentReportsBuilder_.isEmpty()) { + domainAssessmentReportsBuilder_.dispose(); + domainAssessmentReportsBuilder_ = null; + domainAssessmentReports_ = other.domainAssessmentReports_; + bitField0_ = (bitField0_ & ~0x00000010); + domainAssessmentReportsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetDomainAssessmentReportsFieldBuilder() + : null; + } else { + domainAssessmentReportsBuilder_.addAllMessages(other.domainAssessmentReports_); + } + } + } + if (skippedDomainsBuilder_ == null) { + if (!other.skippedDomains_.isEmpty()) { + if (skippedDomains_.isEmpty()) { + skippedDomains_ = other.skippedDomains_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureSkippedDomainsIsMutable(); + skippedDomains_.addAll(other.skippedDomains_); + } + onChanged(); + } + } else { + if (!other.skippedDomains_.isEmpty()) { + if (skippedDomainsBuilder_.isEmpty()) { + skippedDomainsBuilder_.dispose(); + skippedDomainsBuilder_ = null; + skippedDomains_ = other.skippedDomains_; + bitField0_ = (bitField0_ & ~0x00000020); + skippedDomainsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetSkippedDomainsFieldBuilder() + : null; + } else { + skippedDomainsBuilder_.addAllMessages(other.skippedDomains_); + } + } + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + switch (other.getAdcResourceUriCase()) { + case ADC_APPLICATION_URI: + { + adcResourceUriCase_ = 1; + adcResourceUri_ = other.adcResourceUri_; + onChanged(); + break; + } + case ADC_APPLICATION_TEMPLATE_URI: + { + adcResourceUriCase_ = 2; + adcResourceUri_ = other.adcResourceUri_; + onChanged(); + break; + } + case ADC_CATALOG_TEMPLATE_URI: + { + adcResourceUriCase_ = 3; + adcResourceUri_ = other.adcResourceUri_; + onChanged(); + break; + } + case ADC_SPACE_URI: + { + adcResourceUriCase_ = 4; + adcResourceUri_ = other.adcResourceUri_; + onChanged(); + break; + } + case ADCRESOURCEURI_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: + { + java.lang.String s = input.readStringRequireUtf8(); + adcResourceUriCase_ = 1; + adcResourceUri_ = s; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + adcResourceUriCase_ = 2; + adcResourceUri_ = s; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + adcResourceUriCase_ = 3; + adcResourceUri_ = s; + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + adcResourceUriCase_ = 4; + adcResourceUri_ = s; + break; + } // case 34 + case 42: + { + com.google.cloud.designcenter.v1.DomainAssessmentReport m = + input.readMessage( + com.google.cloud.designcenter.v1.DomainAssessmentReport.parser(), + extensionRegistry); + if (domainAssessmentReportsBuilder_ == null) { + ensureDomainAssessmentReportsIsMutable(); + domainAssessmentReports_.add(m); + } else { + domainAssessmentReportsBuilder_.addMessage(m); + } + break; + } // case 42 + case 50: + { + com.google.cloud.designcenter.v1.SkippedDomain m = + input.readMessage( + com.google.cloud.designcenter.v1.SkippedDomain.parser(), extensionRegistry); + if (skippedDomainsBuilder_ == null) { + ensureSkippedDomainsIsMutable(); + skippedDomains_.add(m); + } else { + skippedDomainsBuilder_.addMessage(m); + } + break; + } // case 50 + case 58: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + 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 adcResourceUriCase_ = 0; + private java.lang.Object adcResourceUri_; + + public AdcResourceUriCase getAdcResourceUriCase() { + return AdcResourceUriCase.forNumber(adcResourceUriCase_); + } + + public Builder clearAdcResourceUri() { + adcResourceUriCase_ = 0; + adcResourceUri_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
+     * Output only. Application URI.
+     * 
+ * + * string adc_application_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the adcApplicationUri field is set. + */ + @java.lang.Override + public boolean hasAdcApplicationUri() { + return adcResourceUriCase_ == 1; + } + + /** + * + * + *
+     * Output only. Application URI.
+     * 
+ * + * string adc_application_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The adcApplicationUri. + */ + @java.lang.Override + public java.lang.String getAdcApplicationUri() { + java.lang.Object ref = ""; + if (adcResourceUriCase_ == 1) { + ref = adcResourceUri_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (adcResourceUriCase_ == 1) { + adcResourceUri_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Application URI.
+     * 
+ * + * string adc_application_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for adcApplicationUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAdcApplicationUriBytes() { + java.lang.Object ref = ""; + if (adcResourceUriCase_ == 1) { + ref = adcResourceUri_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (adcResourceUriCase_ == 1) { + adcResourceUri_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Application URI.
+     * 
+ * + * string adc_application_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The adcApplicationUri to set. + * @return This builder for chaining. + */ + public Builder setAdcApplicationUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + adcResourceUriCase_ = 1; + adcResourceUri_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Application URI.
+     * 
+ * + * string adc_application_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearAdcApplicationUri() { + if (adcResourceUriCase_ == 1) { + adcResourceUriCase_ = 0; + adcResourceUri_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Application URI.
+     * 
+ * + * string adc_application_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for adcApplicationUri to set. + * @return This builder for chaining. + */ + public Builder setAdcApplicationUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + adcResourceUriCase_ = 1; + adcResourceUri_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Application Template URI.
+     * 
+ * + * string adc_application_template_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the adcApplicationTemplateUri field is set. + */ + @java.lang.Override + public boolean hasAdcApplicationTemplateUri() { + return adcResourceUriCase_ == 2; + } + + /** + * + * + *
+     * Output only. Application Template URI.
+     * 
+ * + * string adc_application_template_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The adcApplicationTemplateUri. + */ + @java.lang.Override + public java.lang.String getAdcApplicationTemplateUri() { + java.lang.Object ref = ""; + if (adcResourceUriCase_ == 2) { + ref = adcResourceUri_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (adcResourceUriCase_ == 2) { + adcResourceUri_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Application Template URI.
+     * 
+ * + * string adc_application_template_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for adcApplicationTemplateUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAdcApplicationTemplateUriBytes() { + java.lang.Object ref = ""; + if (adcResourceUriCase_ == 2) { + ref = adcResourceUri_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (adcResourceUriCase_ == 2) { + adcResourceUri_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Application Template URI.
+     * 
+ * + * string adc_application_template_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The adcApplicationTemplateUri to set. + * @return This builder for chaining. + */ + public Builder setAdcApplicationTemplateUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + adcResourceUriCase_ = 2; + adcResourceUri_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Application Template URI.
+     * 
+ * + * string adc_application_template_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearAdcApplicationTemplateUri() { + if (adcResourceUriCase_ == 2) { + adcResourceUriCase_ = 0; + adcResourceUri_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Application Template URI.
+     * 
+ * + * string adc_application_template_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for adcApplicationTemplateUri to set. + * @return This builder for chaining. + */ + public Builder setAdcApplicationTemplateUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + adcResourceUriCase_ = 2; + adcResourceUri_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Catalog Template URI.
+     * 
+ * + * string adc_catalog_template_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the adcCatalogTemplateUri field is set. + */ + @java.lang.Override + public boolean hasAdcCatalogTemplateUri() { + return adcResourceUriCase_ == 3; + } + + /** + * + * + *
+     * Output only. Catalog Template URI.
+     * 
+ * + * string adc_catalog_template_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The adcCatalogTemplateUri. + */ + @java.lang.Override + public java.lang.String getAdcCatalogTemplateUri() { + java.lang.Object ref = ""; + if (adcResourceUriCase_ == 3) { + ref = adcResourceUri_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (adcResourceUriCase_ == 3) { + adcResourceUri_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Catalog Template URI.
+     * 
+ * + * string adc_catalog_template_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for adcCatalogTemplateUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAdcCatalogTemplateUriBytes() { + java.lang.Object ref = ""; + if (adcResourceUriCase_ == 3) { + ref = adcResourceUri_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (adcResourceUriCase_ == 3) { + adcResourceUri_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Catalog Template URI.
+     * 
+ * + * string adc_catalog_template_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The adcCatalogTemplateUri to set. + * @return This builder for chaining. + */ + public Builder setAdcCatalogTemplateUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + adcResourceUriCase_ = 3; + adcResourceUri_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Catalog Template URI.
+     * 
+ * + * string adc_catalog_template_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearAdcCatalogTemplateUri() { + if (adcResourceUriCase_ == 3) { + adcResourceUriCase_ = 0; + adcResourceUri_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Catalog Template URI.
+     * 
+ * + * string adc_catalog_template_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for adcCatalogTemplateUri to set. + * @return This builder for chaining. + */ + public Builder setAdcCatalogTemplateUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + adcResourceUriCase_ = 3; + adcResourceUri_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Space URI.
+     * 
+ * + * string adc_space_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the adcSpaceUri field is set. + */ + @java.lang.Override + public boolean hasAdcSpaceUri() { + return adcResourceUriCase_ == 4; + } + + /** + * + * + *
+     * Output only. Space URI.
+     * 
+ * + * string adc_space_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The adcSpaceUri. + */ + @java.lang.Override + public java.lang.String getAdcSpaceUri() { + java.lang.Object ref = ""; + if (adcResourceUriCase_ == 4) { + ref = adcResourceUri_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (adcResourceUriCase_ == 4) { + adcResourceUri_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Space URI.
+     * 
+ * + * string adc_space_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for adcSpaceUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAdcSpaceUriBytes() { + java.lang.Object ref = ""; + if (adcResourceUriCase_ == 4) { + ref = adcResourceUri_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (adcResourceUriCase_ == 4) { + adcResourceUri_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Space URI.
+     * 
+ * + * string adc_space_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The adcSpaceUri to set. + * @return This builder for chaining. + */ + public Builder setAdcSpaceUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + adcResourceUriCase_ = 4; + adcResourceUri_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Space URI.
+     * 
+ * + * string adc_space_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearAdcSpaceUri() { + if (adcResourceUriCase_ == 4) { + adcResourceUriCase_ = 0; + adcResourceUri_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Space URI.
+     * 
+ * + * string adc_space_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for adcSpaceUri to set. + * @return This builder for chaining. + */ + public Builder setAdcSpaceUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + adcResourceUriCase_ = 4; + adcResourceUri_ = value; + onChanged(); + return this; + } + + private java.util.List + domainAssessmentReports_ = java.util.Collections.emptyList(); + + private void ensureDomainAssessmentReportsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + domainAssessmentReports_ = + new java.util.ArrayList( + domainAssessmentReports_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.DomainAssessmentReport, + com.google.cloud.designcenter.v1.DomainAssessmentReport.Builder, + com.google.cloud.designcenter.v1.DomainAssessmentReportOrBuilder> + domainAssessmentReportsBuilder_; + + /** + * + * + *
+     * Output only. Generated best practice reports.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.DomainAssessmentReport domain_assessment_reports = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getDomainAssessmentReportsList() { + if (domainAssessmentReportsBuilder_ == null) { + return java.util.Collections.unmodifiableList(domainAssessmentReports_); + } else { + return domainAssessmentReportsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Output only. Generated best practice reports.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.DomainAssessmentReport domain_assessment_reports = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getDomainAssessmentReportsCount() { + if (domainAssessmentReportsBuilder_ == null) { + return domainAssessmentReports_.size(); + } else { + return domainAssessmentReportsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Output only. Generated best practice reports.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.DomainAssessmentReport domain_assessment_reports = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.DomainAssessmentReport getDomainAssessmentReports( + int index) { + if (domainAssessmentReportsBuilder_ == null) { + return domainAssessmentReports_.get(index); + } else { + return domainAssessmentReportsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Output only. Generated best practice reports.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.DomainAssessmentReport domain_assessment_reports = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDomainAssessmentReports( + int index, com.google.cloud.designcenter.v1.DomainAssessmentReport value) { + if (domainAssessmentReportsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDomainAssessmentReportsIsMutable(); + domainAssessmentReports_.set(index, value); + onChanged(); + } else { + domainAssessmentReportsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. Generated best practice reports.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.DomainAssessmentReport domain_assessment_reports = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDomainAssessmentReports( + int index, + com.google.cloud.designcenter.v1.DomainAssessmentReport.Builder builderForValue) { + if (domainAssessmentReportsBuilder_ == null) { + ensureDomainAssessmentReportsIsMutable(); + domainAssessmentReports_.set(index, builderForValue.build()); + onChanged(); + } else { + domainAssessmentReportsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. Generated best practice reports.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.DomainAssessmentReport domain_assessment_reports = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDomainAssessmentReports( + com.google.cloud.designcenter.v1.DomainAssessmentReport value) { + if (domainAssessmentReportsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDomainAssessmentReportsIsMutable(); + domainAssessmentReports_.add(value); + onChanged(); + } else { + domainAssessmentReportsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Output only. Generated best practice reports.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.DomainAssessmentReport domain_assessment_reports = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDomainAssessmentReports( + int index, com.google.cloud.designcenter.v1.DomainAssessmentReport value) { + if (domainAssessmentReportsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDomainAssessmentReportsIsMutable(); + domainAssessmentReports_.add(index, value); + onChanged(); + } else { + domainAssessmentReportsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. Generated best practice reports.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.DomainAssessmentReport domain_assessment_reports = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDomainAssessmentReports( + com.google.cloud.designcenter.v1.DomainAssessmentReport.Builder builderForValue) { + if (domainAssessmentReportsBuilder_ == null) { + ensureDomainAssessmentReportsIsMutable(); + domainAssessmentReports_.add(builderForValue.build()); + onChanged(); + } else { + domainAssessmentReportsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. Generated best practice reports.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.DomainAssessmentReport domain_assessment_reports = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDomainAssessmentReports( + int index, + com.google.cloud.designcenter.v1.DomainAssessmentReport.Builder builderForValue) { + if (domainAssessmentReportsBuilder_ == null) { + ensureDomainAssessmentReportsIsMutable(); + domainAssessmentReports_.add(index, builderForValue.build()); + onChanged(); + } else { + domainAssessmentReportsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. Generated best practice reports.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.DomainAssessmentReport domain_assessment_reports = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllDomainAssessmentReports( + java.lang.Iterable + values) { + if (domainAssessmentReportsBuilder_ == null) { + ensureDomainAssessmentReportsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, domainAssessmentReports_); + onChanged(); + } else { + domainAssessmentReportsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Output only. Generated best practice reports.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.DomainAssessmentReport domain_assessment_reports = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDomainAssessmentReports() { + if (domainAssessmentReportsBuilder_ == null) { + domainAssessmentReports_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + domainAssessmentReportsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Output only. Generated best practice reports.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.DomainAssessmentReport domain_assessment_reports = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeDomainAssessmentReports(int index) { + if (domainAssessmentReportsBuilder_ == null) { + ensureDomainAssessmentReportsIsMutable(); + domainAssessmentReports_.remove(index); + onChanged(); + } else { + domainAssessmentReportsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Output only. Generated best practice reports.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.DomainAssessmentReport domain_assessment_reports = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.DomainAssessmentReport.Builder + getDomainAssessmentReportsBuilder(int index) { + return internalGetDomainAssessmentReportsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Output only. Generated best practice reports.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.DomainAssessmentReport domain_assessment_reports = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.DomainAssessmentReportOrBuilder + getDomainAssessmentReportsOrBuilder(int index) { + if (domainAssessmentReportsBuilder_ == null) { + return domainAssessmentReports_.get(index); + } else { + return domainAssessmentReportsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Output only. Generated best practice reports.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.DomainAssessmentReport domain_assessment_reports = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends com.google.cloud.designcenter.v1.DomainAssessmentReportOrBuilder> + getDomainAssessmentReportsOrBuilderList() { + if (domainAssessmentReportsBuilder_ != null) { + return domainAssessmentReportsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(domainAssessmentReports_); + } + } + + /** + * + * + *
+     * Output only. Generated best practice reports.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.DomainAssessmentReport domain_assessment_reports = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.DomainAssessmentReport.Builder + addDomainAssessmentReportsBuilder() { + return internalGetDomainAssessmentReportsFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.DomainAssessmentReport.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. Generated best practice reports.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.DomainAssessmentReport domain_assessment_reports = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.DomainAssessmentReport.Builder + addDomainAssessmentReportsBuilder(int index) { + return internalGetDomainAssessmentReportsFieldBuilder() + .addBuilder( + index, com.google.cloud.designcenter.v1.DomainAssessmentReport.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. Generated best practice reports.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.DomainAssessmentReport domain_assessment_reports = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getDomainAssessmentReportsBuilderList() { + return internalGetDomainAssessmentReportsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.DomainAssessmentReport, + com.google.cloud.designcenter.v1.DomainAssessmentReport.Builder, + com.google.cloud.designcenter.v1.DomainAssessmentReportOrBuilder> + internalGetDomainAssessmentReportsFieldBuilder() { + if (domainAssessmentReportsBuilder_ == null) { + domainAssessmentReportsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.DomainAssessmentReport, + com.google.cloud.designcenter.v1.DomainAssessmentReport.Builder, + com.google.cloud.designcenter.v1.DomainAssessmentReportOrBuilder>( + domainAssessmentReports_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + domainAssessmentReports_ = null; + } + return domainAssessmentReportsBuilder_; + } + + private java.util.List skippedDomains_ = + java.util.Collections.emptyList(); + + private void ensureSkippedDomainsIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + skippedDomains_ = + new java.util.ArrayList( + skippedDomains_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.SkippedDomain, + com.google.cloud.designcenter.v1.SkippedDomain.Builder, + com.google.cloud.designcenter.v1.SkippedDomainOrBuilder> + skippedDomainsBuilder_; + + /** + * + * + *
+     * Output only. Skipped domains.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SkippedDomain skipped_domains = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getSkippedDomainsList() { + if (skippedDomainsBuilder_ == null) { + return java.util.Collections.unmodifiableList(skippedDomains_); + } else { + return skippedDomainsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Output only. Skipped domains.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SkippedDomain skipped_domains = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getSkippedDomainsCount() { + if (skippedDomainsBuilder_ == null) { + return skippedDomains_.size(); + } else { + return skippedDomainsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Output only. Skipped domains.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SkippedDomain skipped_domains = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.SkippedDomain getSkippedDomains(int index) { + if (skippedDomainsBuilder_ == null) { + return skippedDomains_.get(index); + } else { + return skippedDomainsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Output only. Skipped domains.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SkippedDomain skipped_domains = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSkippedDomains( + int index, com.google.cloud.designcenter.v1.SkippedDomain value) { + if (skippedDomainsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSkippedDomainsIsMutable(); + skippedDomains_.set(index, value); + onChanged(); + } else { + skippedDomainsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. Skipped domains.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SkippedDomain skipped_domains = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSkippedDomains( + int index, com.google.cloud.designcenter.v1.SkippedDomain.Builder builderForValue) { + if (skippedDomainsBuilder_ == null) { + ensureSkippedDomainsIsMutable(); + skippedDomains_.set(index, builderForValue.build()); + onChanged(); + } else { + skippedDomainsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. Skipped domains.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SkippedDomain skipped_domains = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addSkippedDomains(com.google.cloud.designcenter.v1.SkippedDomain value) { + if (skippedDomainsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSkippedDomainsIsMutable(); + skippedDomains_.add(value); + onChanged(); + } else { + skippedDomainsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Output only. Skipped domains.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SkippedDomain skipped_domains = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addSkippedDomains( + int index, com.google.cloud.designcenter.v1.SkippedDomain value) { + if (skippedDomainsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSkippedDomainsIsMutable(); + skippedDomains_.add(index, value); + onChanged(); + } else { + skippedDomainsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. Skipped domains.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SkippedDomain skipped_domains = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addSkippedDomains( + com.google.cloud.designcenter.v1.SkippedDomain.Builder builderForValue) { + if (skippedDomainsBuilder_ == null) { + ensureSkippedDomainsIsMutable(); + skippedDomains_.add(builderForValue.build()); + onChanged(); + } else { + skippedDomainsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. Skipped domains.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SkippedDomain skipped_domains = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addSkippedDomains( + int index, com.google.cloud.designcenter.v1.SkippedDomain.Builder builderForValue) { + if (skippedDomainsBuilder_ == null) { + ensureSkippedDomainsIsMutable(); + skippedDomains_.add(index, builderForValue.build()); + onChanged(); + } else { + skippedDomainsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. Skipped domains.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SkippedDomain skipped_domains = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllSkippedDomains( + java.lang.Iterable values) { + if (skippedDomainsBuilder_ == null) { + ensureSkippedDomainsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, skippedDomains_); + onChanged(); + } else { + skippedDomainsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Output only. Skipped domains.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SkippedDomain skipped_domains = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearSkippedDomains() { + if (skippedDomainsBuilder_ == null) { + skippedDomains_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + skippedDomainsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Output only. Skipped domains.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SkippedDomain skipped_domains = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeSkippedDomains(int index) { + if (skippedDomainsBuilder_ == null) { + ensureSkippedDomainsIsMutable(); + skippedDomains_.remove(index); + onChanged(); + } else { + skippedDomainsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Output only. Skipped domains.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SkippedDomain skipped_domains = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.SkippedDomain.Builder getSkippedDomainsBuilder( + int index) { + return internalGetSkippedDomainsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Output only. Skipped domains.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SkippedDomain skipped_domains = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.SkippedDomainOrBuilder getSkippedDomainsOrBuilder( + int index) { + if (skippedDomainsBuilder_ == null) { + return skippedDomains_.get(index); + } else { + return skippedDomainsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Output only. Skipped domains.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SkippedDomain skipped_domains = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getSkippedDomainsOrBuilderList() { + if (skippedDomainsBuilder_ != null) { + return skippedDomainsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(skippedDomains_); + } + } + + /** + * + * + *
+     * Output only. Skipped domains.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SkippedDomain skipped_domains = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.SkippedDomain.Builder addSkippedDomainsBuilder() { + return internalGetSkippedDomainsFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.SkippedDomain.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. Skipped domains.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SkippedDomain skipped_domains = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.SkippedDomain.Builder addSkippedDomainsBuilder( + int index) { + return internalGetSkippedDomainsFieldBuilder() + .addBuilder(index, com.google.cloud.designcenter.v1.SkippedDomain.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. Skipped domains.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SkippedDomain skipped_domains = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getSkippedDomainsBuilderList() { + return internalGetSkippedDomainsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.SkippedDomain, + com.google.cloud.designcenter.v1.SkippedDomain.Builder, + com.google.cloud.designcenter.v1.SkippedDomainOrBuilder> + internalGetSkippedDomainsFieldBuilder() { + if (skippedDomainsBuilder_ == null) { + skippedDomainsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.SkippedDomain, + com.google.cloud.designcenter.v1.SkippedDomain.Builder, + com.google.cloud.designcenter.v1.SkippedDomainOrBuilder>( + skippedDomains_, + ((bitField0_ & 0x00000020) != 0), + getParentForChildren(), + isClean()); + skippedDomains_ = null; + } + return skippedDomainsBuilder_; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
+     * Output only. The time at which the report was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+     * Output only. The time at which the report was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.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 at which the report was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.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_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The time at which the report was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.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_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The time at which the report was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The time at which the report was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000040); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The time at which the report was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The time at which the report was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.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 at which the report was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.AssessmentReport) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.AssessmentReport) + private static final com.google.cloud.designcenter.v1.AssessmentReport DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.AssessmentReport(); + } + + public static com.google.cloud.designcenter.v1.AssessmentReport getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AssessmentReport parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.AssessmentReport getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/AssessmentReportOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/AssessmentReportOrBuilder.java new file mode 100644 index 000000000000..9407d1f94901 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/AssessmentReportOrBuilder.java @@ -0,0 +1,363 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/best_practices.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface AssessmentReportOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.AssessmentReport) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Application URI.
+   * 
+ * + * string adc_application_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the adcApplicationUri field is set. + */ + boolean hasAdcApplicationUri(); + + /** + * + * + *
+   * Output only. Application URI.
+   * 
+ * + * string adc_application_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The adcApplicationUri. + */ + java.lang.String getAdcApplicationUri(); + + /** + * + * + *
+   * Output only. Application URI.
+   * 
+ * + * string adc_application_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for adcApplicationUri. + */ + com.google.protobuf.ByteString getAdcApplicationUriBytes(); + + /** + * + * + *
+   * Output only. Application Template URI.
+   * 
+ * + * string adc_application_template_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the adcApplicationTemplateUri field is set. + */ + boolean hasAdcApplicationTemplateUri(); + + /** + * + * + *
+   * Output only. Application Template URI.
+   * 
+ * + * string adc_application_template_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The adcApplicationTemplateUri. + */ + java.lang.String getAdcApplicationTemplateUri(); + + /** + * + * + *
+   * Output only. Application Template URI.
+   * 
+ * + * string adc_application_template_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for adcApplicationTemplateUri. + */ + com.google.protobuf.ByteString getAdcApplicationTemplateUriBytes(); + + /** + * + * + *
+   * Output only. Catalog Template URI.
+   * 
+ * + * string adc_catalog_template_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the adcCatalogTemplateUri field is set. + */ + boolean hasAdcCatalogTemplateUri(); + + /** + * + * + *
+   * Output only. Catalog Template URI.
+   * 
+ * + * string adc_catalog_template_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The adcCatalogTemplateUri. + */ + java.lang.String getAdcCatalogTemplateUri(); + + /** + * + * + *
+   * Output only. Catalog Template URI.
+   * 
+ * + * string adc_catalog_template_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for adcCatalogTemplateUri. + */ + com.google.protobuf.ByteString getAdcCatalogTemplateUriBytes(); + + /** + * + * + *
+   * Output only. Space URI.
+   * 
+ * + * string adc_space_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the adcSpaceUri field is set. + */ + boolean hasAdcSpaceUri(); + + /** + * + * + *
+   * Output only. Space URI.
+   * 
+ * + * string adc_space_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The adcSpaceUri. + */ + java.lang.String getAdcSpaceUri(); + + /** + * + * + *
+   * Output only. Space URI.
+   * 
+ * + * string adc_space_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for adcSpaceUri. + */ + com.google.protobuf.ByteString getAdcSpaceUriBytes(); + + /** + * + * + *
+   * Output only. Generated best practice reports.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.DomainAssessmentReport domain_assessment_reports = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getDomainAssessmentReportsList(); + + /** + * + * + *
+   * Output only. Generated best practice reports.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.DomainAssessmentReport domain_assessment_reports = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.DomainAssessmentReport getDomainAssessmentReports(int index); + + /** + * + * + *
+   * Output only. Generated best practice reports.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.DomainAssessmentReport domain_assessment_reports = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getDomainAssessmentReportsCount(); + + /** + * + * + *
+   * Output only. Generated best practice reports.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.DomainAssessmentReport domain_assessment_reports = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getDomainAssessmentReportsOrBuilderList(); + + /** + * + * + *
+   * Output only. Generated best practice reports.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.DomainAssessmentReport domain_assessment_reports = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.DomainAssessmentReportOrBuilder + getDomainAssessmentReportsOrBuilder(int index); + + /** + * + * + *
+   * Output only. Skipped domains.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.SkippedDomain skipped_domains = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getSkippedDomainsList(); + + /** + * + * + *
+   * Output only. Skipped domains.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.SkippedDomain skipped_domains = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.SkippedDomain getSkippedDomains(int index); + + /** + * + * + *
+   * Output only. Skipped domains.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.SkippedDomain skipped_domains = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getSkippedDomainsCount(); + + /** + * + * + *
+   * Output only. Skipped domains.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.SkippedDomain skipped_domains = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getSkippedDomainsOrBuilderList(); + + /** + * + * + *
+   * Output only. Skipped domains.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.SkippedDomain skipped_domains = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.SkippedDomainOrBuilder getSkippedDomainsOrBuilder(int index); + + /** + * + * + *
+   * Output only. The time at which the report was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
+   * Output only. The time at which the report was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
+   * Output only. The time at which the report was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + com.google.cloud.designcenter.v1.AssessmentReport.AdcResourceUriCase getAdcResourceUriCase(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/AssetDetails.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/AssetDetails.java new file mode 100644 index 000000000000..df5894f56e54 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/AssetDetails.java @@ -0,0 +1,847 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/assessment.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Details of a Cloud Asset Inventory asset that caused the finding.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.AssetDetails} + */ +@com.google.protobuf.Generated +public final class AssetDetails extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.AssetDetails) + AssetDetailsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AssetDetails"); + } + + // Use AssetDetails.newBuilder() to construct. + private AssetDetails(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AssetDetails() { + assetId_ = ""; + assetType_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_AssetDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_AssetDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.AssetDetails.class, + com.google.cloud.designcenter.v1.AssetDetails.Builder.class); + } + + public static final int ASSET_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object assetId_ = ""; + + /** + * + * + *
+   * Required. Information about the Cloud Asset Inventory asset that the
+   * framework is assessed against. The full resource name of the asset in CAIS
+   * format.
+   *
+   * For details about the format of the full resource name for each asset type,
+   * see [Resource name
+   * format]
+   * (https://cloud.google.com/asset-inventory/docs/resource-name-format).
+   * 
+ * + * string asset_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The assetId. + */ + @java.lang.Override + public java.lang.String getAssetId() { + java.lang.Object ref = assetId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + assetId_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Information about the Cloud Asset Inventory asset that the
+   * framework is assessed against. The full resource name of the asset in CAIS
+   * format.
+   *
+   * For details about the format of the full resource name for each asset type,
+   * see [Resource name
+   * format]
+   * (https://cloud.google.com/asset-inventory/docs/resource-name-format).
+   * 
+ * + * string asset_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for assetId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAssetIdBytes() { + java.lang.Object ref = assetId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + assetId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ASSET_TYPE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object assetType_ = ""; + + /** + * + * + *
+   * Optional. The type of Cloud Asset Inventory asset. For a list of asset
+   * types, see [Supported asset
+   * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types).
+   * 
+ * + * string asset_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The assetType. + */ + @java.lang.Override + public java.lang.String getAssetType() { + java.lang.Object ref = assetType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + assetType_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The type of Cloud Asset Inventory asset. For a list of asset
+   * types, see [Supported asset
+   * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types).
+   * 
+ * + * string asset_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for assetType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAssetTypeBytes() { + java.lang.Object ref = assetType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + assetType_ = 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.GeneratedMessage.isStringEmpty(assetId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, assetId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(assetType_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, assetType_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(assetId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, assetId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(assetType_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, assetType_); + } + 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.designcenter.v1.AssetDetails)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.AssetDetails other = + (com.google.cloud.designcenter.v1.AssetDetails) obj; + + if (!getAssetId().equals(other.getAssetId())) return false; + if (!getAssetType().equals(other.getAssetType())) 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) + ASSET_ID_FIELD_NUMBER; + hash = (53 * hash) + getAssetId().hashCode(); + hash = (37 * hash) + ASSET_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getAssetType().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.AssetDetails parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.AssetDetails 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.designcenter.v1.AssetDetails parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.AssetDetails parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.AssetDetails parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.AssetDetails parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.AssetDetails parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.AssetDetails parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.AssetDetails parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.AssetDetails parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.AssetDetails parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.AssetDetails parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.AssetDetails 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Details of a Cloud Asset Inventory asset that caused the finding.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.AssetDetails} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.AssetDetails) + com.google.cloud.designcenter.v1.AssetDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_AssetDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_AssetDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.AssetDetails.class, + com.google.cloud.designcenter.v1.AssetDetails.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.AssetDetails.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + assetId_ = ""; + assetType_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_AssetDetails_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.AssetDetails getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.AssetDetails.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.AssetDetails build() { + com.google.cloud.designcenter.v1.AssetDetails result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.AssetDetails buildPartial() { + com.google.cloud.designcenter.v1.AssetDetails result = + new com.google.cloud.designcenter.v1.AssetDetails(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.AssetDetails result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.assetId_ = assetId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.assetType_ = assetType_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.AssetDetails) { + return mergeFrom((com.google.cloud.designcenter.v1.AssetDetails) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.AssetDetails other) { + if (other == com.google.cloud.designcenter.v1.AssetDetails.getDefaultInstance()) return this; + if (!other.getAssetId().isEmpty()) { + assetId_ = other.assetId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getAssetType().isEmpty()) { + assetType_ = other.assetType_; + 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: + { + assetId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + assetType_ = 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 assetId_ = ""; + + /** + * + * + *
+     * Required. Information about the Cloud Asset Inventory asset that the
+     * framework is assessed against. The full resource name of the asset in CAIS
+     * format.
+     *
+     * For details about the format of the full resource name for each asset type,
+     * see [Resource name
+     * format]
+     * (https://cloud.google.com/asset-inventory/docs/resource-name-format).
+     * 
+ * + * string asset_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The assetId. + */ + public java.lang.String getAssetId() { + java.lang.Object ref = assetId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + assetId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Information about the Cloud Asset Inventory asset that the
+     * framework is assessed against. The full resource name of the asset in CAIS
+     * format.
+     *
+     * For details about the format of the full resource name for each asset type,
+     * see [Resource name
+     * format]
+     * (https://cloud.google.com/asset-inventory/docs/resource-name-format).
+     * 
+ * + * string asset_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for assetId. + */ + public com.google.protobuf.ByteString getAssetIdBytes() { + java.lang.Object ref = assetId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + assetId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Information about the Cloud Asset Inventory asset that the
+     * framework is assessed against. The full resource name of the asset in CAIS
+     * format.
+     *
+     * For details about the format of the full resource name for each asset type,
+     * see [Resource name
+     * format]
+     * (https://cloud.google.com/asset-inventory/docs/resource-name-format).
+     * 
+ * + * string asset_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The assetId to set. + * @return This builder for chaining. + */ + public Builder setAssetId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + assetId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Information about the Cloud Asset Inventory asset that the
+     * framework is assessed against. The full resource name of the asset in CAIS
+     * format.
+     *
+     * For details about the format of the full resource name for each asset type,
+     * see [Resource name
+     * format]
+     * (https://cloud.google.com/asset-inventory/docs/resource-name-format).
+     * 
+ * + * string asset_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearAssetId() { + assetId_ = getDefaultInstance().getAssetId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Information about the Cloud Asset Inventory asset that the
+     * framework is assessed against. The full resource name of the asset in CAIS
+     * format.
+     *
+     * For details about the format of the full resource name for each asset type,
+     * see [Resource name
+     * format]
+     * (https://cloud.google.com/asset-inventory/docs/resource-name-format).
+     * 
+ * + * string asset_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for assetId to set. + * @return This builder for chaining. + */ + public Builder setAssetIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + assetId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object assetType_ = ""; + + /** + * + * + *
+     * Optional. The type of Cloud Asset Inventory asset. For a list of asset
+     * types, see [Supported asset
+     * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types).
+     * 
+ * + * string asset_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The assetType. + */ + public java.lang.String getAssetType() { + java.lang.Object ref = assetType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + assetType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The type of Cloud Asset Inventory asset. For a list of asset
+     * types, see [Supported asset
+     * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types).
+     * 
+ * + * string asset_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for assetType. + */ + public com.google.protobuf.ByteString getAssetTypeBytes() { + java.lang.Object ref = assetType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + assetType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The type of Cloud Asset Inventory asset. For a list of asset
+     * types, see [Supported asset
+     * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types).
+     * 
+ * + * string asset_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The assetType to set. + * @return This builder for chaining. + */ + public Builder setAssetType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + assetType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The type of Cloud Asset Inventory asset. For a list of asset
+     * types, see [Supported asset
+     * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types).
+     * 
+ * + * string asset_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAssetType() { + assetType_ = getDefaultInstance().getAssetType(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The type of Cloud Asset Inventory asset. For a list of asset
+     * types, see [Supported asset
+     * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types).
+     * 
+ * + * string asset_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for assetType to set. + * @return This builder for chaining. + */ + public Builder setAssetTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + assetType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.AssetDetails) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.AssetDetails) + private static final com.google.cloud.designcenter.v1.AssetDetails DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.AssetDetails(); + } + + public static com.google.cloud.designcenter.v1.AssetDetails getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AssetDetails parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.AssetDetails getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/AssetDetailsOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/AssetDetailsOrBuilder.java new file mode 100644 index 000000000000..415416c8cb9c --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/AssetDetailsOrBuilder.java @@ -0,0 +1,98 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/assessment.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface AssetDetailsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.AssetDetails) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Information about the Cloud Asset Inventory asset that the
+   * framework is assessed against. The full resource name of the asset in CAIS
+   * format.
+   *
+   * For details about the format of the full resource name for each asset type,
+   * see [Resource name
+   * format]
+   * (https://cloud.google.com/asset-inventory/docs/resource-name-format).
+   * 
+ * + * string asset_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The assetId. + */ + java.lang.String getAssetId(); + + /** + * + * + *
+   * Required. Information about the Cloud Asset Inventory asset that the
+   * framework is assessed against. The full resource name of the asset in CAIS
+   * format.
+   *
+   * For details about the format of the full resource name for each asset type,
+   * see [Resource name
+   * format]
+   * (https://cloud.google.com/asset-inventory/docs/resource-name-format).
+   * 
+ * + * string asset_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for assetId. + */ + com.google.protobuf.ByteString getAssetIdBytes(); + + /** + * + * + *
+   * Optional. The type of Cloud Asset Inventory asset. For a list of asset
+   * types, see [Supported asset
+   * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types).
+   * 
+ * + * string asset_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The assetType. + */ + java.lang.String getAssetType(); + + /** + * + * + *
+   * Optional. The type of Cloud Asset Inventory asset. For a list of asset
+   * types, see [Supported asset
+   * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types).
+   * 
+ * + * string asset_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for assetType. + */ + com.google.protobuf.ByteString getAssetTypeBytes(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/AuthoringResourcesProto.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/AuthoringResourcesProto.java new file mode 100644 index 000000000000..469b292fcd19 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/AuthoringResourcesProto.java @@ -0,0 +1,560 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public final class AuthoringResourcesProto extends com.google.protobuf.GeneratedFile { + private AuthoringResourcesProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AuthoringResourcesProto"); + } + + 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_designcenter_v1_ApplicationTemplate_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ApplicationTemplate_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_SerializedApplicationTemplate_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_SerializedApplicationTemplate_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_AppHubApplicationParameters_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_AppHubApplicationParameters_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_InputVariableAlias_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_InputVariableAlias_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_SerializedComponent_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_SerializedComponent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_SerializedConnection_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_SerializedConnection_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_SerializedPolicy_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_SerializedPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_ApplicationTemplateRevision_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ApplicationTemplateRevision_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_ApplicationTemplateSystemRevision_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ApplicationTemplateSystemRevision_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_ApplicationTemplateSystemRevision_AnnotationsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ApplicationTemplateSystemRevision_AnnotationsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_Component_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_Component_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_Connection_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_Connection_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_SerializedProvider_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_SerializedProvider_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/designcenter/v1/authoring" + + ".proto\022\034google.cloud.designcenter.v1\032\037go" + + "ogle/api/field_behavior.proto\032\031google/ap" + + "i/resource.proto\032(google/cloud/apphub/v1" + + "/application.proto\032\'google/cloud/apphub/" + + "v1/attributes.proto\032-google/cloud/designcenter/v1/assessment.proto\032-google/cloud" + + "/designcenter/v1/deployment.proto\032(google/cloud/designcenter/v1/enums.proto\032)goo" + + "gle/cloud/designcenter/v1/export.proto\032+google/cloud/designcenter/v1/metadata.pr" + + "oto\032-google/cloud/designcenter/v1/parame" + + "ters.proto\032\037google/protobuf/timestamp.proto\"\347\013\n" + + "\023ApplicationTemplate\022\022\n" + + "\004name\030\001 \001(\tB\004\342A\001\010\022\032\n" + + "\014display_name\030\002 \001(\tB\004\342A\001\001\022\031\n" + + "\013description\030\003 \001(\tB\004\342A\001\001\0225\n" + + "\013create_time\030\004" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0225\n" + + "\013update_time\030\005" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022M\n" + + "\026application_parameters\030\006" + + " \003(\0132\'.google.cloud.designcenter.v1.ParameterB\004\342A\001\001\022U\n\n" + + "iac_format\030\n" + + " \001(\0162;.google" + + ".cloud.designcenter.v1.ApplicationTemplate.IACFormatB\004\342A\001\003\022j\n" + + "\037serialized_application_template\030\013 \001(\0132;.google.cloud.desig" + + "ncenter.v1.SerializedApplicationTemplateB\004\342A\001\003\022\035\n" + + "\017latest_revision\030\014 \001(\tB\004\342A\001\003\022O\n" + + "\021artifact_location\030\016 \001(\0132..google.cloud." + + "designcenter.v1.ArtifactLocationB\004\342A\001\003\022Y\n" + + "\020composition_type\030\017 \001(\01628.google.cloud." + + "designcenter.v1.ApplicationCompositionTypeB\005\342A\002\001\005\022S\n" + + "\024root_input_variables\030\020 \003(\0132" + + "/.google.cloud.designcenter.v1.ComponentVariableB\004\342A\001\001\022T\n" + + "\025root_output_variables\030\021" + + " \003(\0132/.google.cloud.designcenter.v1.ComponentVariableB\004\342A\001\001\022T\n" + + "\024saas_runtime_context\030\022" + + " \001(\01320.google.cloud.designcenter.v1.SaaSRuntimeContextB\004\342A\001\001\022j\n" + + "\032latest_system_revision_uri\030\023 \001(\tBF\342A\001\003\372A?\n" + + "=designcenter.googleapis.com/ApplicationTemplateSystemRevision\022A\n\n" + + "iac_source\030\024 \001(\0162\'.goo" + + "gle.cloud.designcenter.v1.IACSourceB\004\342A\001\003\022R\n" + + "\021template_metadata\030\025 \001(\01321.google.cl" + + "oud.designcenter.v1.TFBlueprintMetadataB\004\342A\001\003\022-\n" + + "\037inputs_as_root_module_variables\030\026 \001(\010B\004\342A\001\001\"@\n" + + "\tIACFormat\022\032\n" + + "\026IAC_FORMAT_UNSPECIFIED\020\000\022\r\n" + + "\tTERRAFORM\020\001\022\010\n" + + "\004HELM\020\002:\304\001\352A\300\001\n" + + "/designcenter.googleapis.com/ApplicationTemplate\022bprojects/{project}/locat" + + "ions/{location}/spaces/{space}/applicati" + + "onTemplates/{application_template}*\024applicationTemplates2\023applicationTemplate\"\243" + + "\t\n" + + "\035SerializedApplicationTemplate\022\021\n" + + "\003uri\030\001 \001(\tB\004\342A\001\001\022\032\n" + + "\014display_name\030\002 \001(\tB\004\342A\001\001\022\031\n" + + "\013description\030\003 \001(\tB\004\342A\001\001\022M\n" + + "\026application_parameters\030\004" + + " \003(\0132\'.google.cloud.designcenter.v1.ParameterB\004\342A\001\001\022U\n\n" + + "iac_format\030\007" + + " \001(\0162;.google.cloud.designcenter.v1.ApplicationTemplate.IACFormatB\004\342A\001\001\022K\n\n" + + "components\030\010" + + " \003(\01321.google.cloud.designcenter.v1.SerializedComponentB\004\342A\001\001\022f\n" + + "\035apphub_application_parameters\030\n" + + " \001(\01329.google.clo" + + "ud.designcenter.v1.AppHubApplicationParametersB\004\342A\001\001\022!\n" + + "\023has_global_resource\030\013 \001(\010B\004\342A\001\003\022X\n" + + "\020composition_type\030\014 \001(\01628.goog" + + "le.cloud.designcenter.v1.ApplicationCompositionTypeB\004\342A\001\003\022S\n" + + "\024root_input_variables\030\r" + + " \003(\0132/.google.cloud.designcenter.v1.ComponentVariableB\004\342A\001\003\022T\n" + + "\025root_output_variables\030\016" + + " \003(\0132/.google.cloud.designcenter.v1.ComponentVariableB\004\342A\001\003\022T\n" + + "\024saas_runtime_context\030\017" + + " \001(\01320.google.cloud.designcenter.v1.SaaSRuntimeContextB\004\342A\001\001\022Q\n" + + "\023serialized_policies\030\020" + + " \003(\0132..google.cloud.designcenter.v1.SerializedPolicyB\004\342A\001\003\022I\n" + + "\tproviders\030\021" + + " \003(\01320.google.cloud.designcenter.v1.SerializedProviderB\004\342A\001\001\022L\n" + + "\020custom_variables\030\022" + + " \003(\0132,.google.cloud.designcenter.v1.TerraformInputB\004\342A\001\001\022D\n\r" + + "custom_tfvars\030\023" + + " \003(\0132\'.google.cloud.designcenter.v1.ParameterB\004\342A\001\001\022-\n" + + "\037inputs_as_root_module_variables\030\024 \001(\010B\004\342A\001\001\"\344\001\n" + + "\033AppHubApplicationParameters\022\034\n" + + "\016application_id\030\001 \001(\tB\004\342A\001\001\0222\n" + + "\005scope\030\002" + + " \001(\0132\035.google.cloud.apphub.v1.ScopeB\004\342A\001\001\022<\n\n" + + "attributes\030\003 \001(" + + "\0132\".google.cloud.apphub.v1.AttributesB\004\342A\001\001\022\026\n" + + "\010location\030\004 \001(\tB\004\342A\001\001\022\035\n" + + "\017host_project_id\030\005 \001(\tB\004\342A\001\001\"A\n" + + "\022InputVariableAlias\022\026\n" + + "\010variable\030\001 \001(\tB\004\342A\001\002\022\023\n" + + "\005alias\030\002 \001(\tB\004\342A\001\002\"\352\005\n" + + "\023SerializedComponent\022\021\n" + + "\003uri\030\001 \001(\tB\004\342A\001\001\022*\n" + + "\034shared_template_revision_uri\030\002 \001(\tB\004\342A\001\001\022A\n\n" + + "parameters\030\003 \003(\0132\'.googl" + + "e.cloud.designcenter.v1.ParameterB\004\342A\001\001\022M\n" + + "\013connections\030\004 \003(\01322.google.cloud.desi" + + "gncenter.v1.SerializedConnectionB\004\342A\001\001\022\023\n" + + "\005roles\030\005 \003(\tB\004\342A\001\001\022\022\n" + + "\004apis\030\006 \003(\tB\004\342A\001\001\022\032\n" + + "\014display_name\030\007 \001(\tB\004\342A\001\001\022X\n" + + "\026connections_parameters\030\010" + + " \003(\01322.google.cloud.designcenter.v1.ConnectionParametersB\004\342A\001\003\022`\n" + + "\032component_parameter_schema\030\t \003(\01326.goog" + + "le.cloud.designcenter.v1.ComponentParameterSchemaB\004\342A\001\003\022V\n" + + "\020application_info\030\n" + + " \001(" + + "\01326.google.cloud.designcenter.v1.ComponentApplicationInfoB\004\342A\001\001\022 \n" + + "\022use_as_root_module\030\013 \001(\010B\004\342A\001\001\022V\n" + + "\026input_variable_aliases\030\014" + + " \003(\01320.google.cloud.designcenter.v1.InputVariableAliasB\004\342A\001\001\022/\n" + + "!application_template_revision_uri\030\r" + + " \001(\tB\004\342A\001\001\"\326\002\n" + + "\024SerializedConnection\022\021\n" + + "\003uri\030\001 \001(\tB\004\342A\001\001\022\'\n" + + "\031destination_component_uri\030\002 \001(\tB\004\342A\001\001\022R\n" + + "\033source_component_parameters\030\004 \003(\0132\'.g" + + "oogle.cloud.designcenter.v1.ParameterB\004\342A\001\001\022W\n" + + " destination_component_parameters\030\005" + + " \003(\0132\'.google.cloud.designcenter.v1.ParameterB\004\342A\001\001\022U\n" + + "\017dependency_type\030\006 \001(\01626." + + "google.cloud.designcenter.v1.ConnectionDependencyTypeB\004\342A\001\003\"\353\003\n" + + "\020SerializedPolicy\022\032\n\n" + + "policy_uri\030\005 \001(\tB\004\342A\001\001H\000\022#\n" + + "\023policy_revision_uri\030\006 \001(\tB\004\342A\001\001H\000\022\021\n" + + "\003uri\030\001 \001(\tB\004\342A\001\002\022\032\n" + + "\014display_name\030\002 \001(\tB\004\342A\001\001\022\031\n" + + "\013description\030\003 \001(\tB\004\342A\001\001\022T\n" + + "\013policy_type\030\004 \001(\016" + + "29.google.cloud.designcenter.v1.SerializedPolicy.PolicyTypeB\004\342A\001\002\022L\n" + + "\020apply_conditions\030\007" + + " \003(\0132,.google.cloud.designcenter.v1.ApplyConditionB\004\342A\001\001\022U\n" + + "\025cloud_control_configs\030\010" + + " \003(\01320.google.cloud.designcenter.v1.CloudControlConfigB\004\342A\001\001\"C\n\n" + + "PolicyType\022\033\n" + + "\027POLICY_TYPE_UNSPECIFIED\020\000\022\030\n" + + "\024COMPLIANCE_FRAMEWORK\020\001B\014\n\n" + + "source_uri\"\350\005\n" + + "\033ApplicationTemplateRevision\022\022\n" + + "\004name\030\001 \001(\tB\004\342A\001\010\0225\n" + + "\013create_time\030\002" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022S\n" + + "\010snapshot\030\005 \001(\0132;" + + ".google.cloud.designcenter.v1.SerializedApplicationTemplateB\004\342A\001\003\022O\n" + + "\021artifact_location\030\006" + + " \001(\0132..google.cloud.designcenter.v1.ArtifactLocationB\004\342A\001\003\022R\n" + + "\021template_metadata\030\025" + + " \001(\01321.google.cloud.designcenter.v1.TFBlueprintMetadataB\004\342A\001\003\022M\n" + + "\026application_parameters\030\026" + + " \003(\0132\'.google.cloud.designcenter.v1.ParameterB\004\342A\001\001\022A\n\n" + + "iac_source\030\027" + + " \001(\0162\'.google.cloud.designcenter.v1.IACSourceB\004\342A\001\003:\361\001\352A\355\001\n" + + "7designcenter.googleapis.com/ApplicationTemplateRevision" + + "\022wprojects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{a" + + "pplication_template}/revisions/{revision" + + "}*\034applicationTemplateRevisions2\033applicationTemplateRevision\"\370\004\n" + + "!ApplicationTemplateSystemRevision\022\022\n" + + "\004name\030\001 \001(\tB\004\342A\001\010\0225\n" + + "\013create_time\030\002" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022k\n" + + "\013annotations\030\003 \003(\0132P.google.cloud.designcenter.v1.ApplicationTem" + + "plateSystemRevision.AnnotationsEntryB\004\342A\001\003\022S\n" + + "\010snapshot\030\004 \001(\0132;.google.cloud.desi" + + "gncenter.v1.SerializedApplicationTemplateB\004\342A\001\003\0322\n" + + "\020AnnotationsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001:\221\002\352A\215\002\n" + + "=designcenter.googleapis.com/ApplicationTemplateSyste" + + "mRevision\022\204\001projects/{project}/locations" + + "/{location}/spaces/{space}/applicationTemplates/{application_template}/systemRev" + + "isions/{system_revision}*\"applicationTem" + + "plateSystemRevisions2!applicationTemplateSystemRevision\"\301\007\n" + + "\tComponent\022\022\n" + + "\004name\030\001 \001(\tB\004\342A\001\010\022+\n" + + "\034shared_template_revision_uri\030\002 \001(\tB\005\342A\002\002\005\022A\n\n" + + "parameters\030\003 \003(\0132\'.goo" + + "gle.cloud.designcenter.v1.ParameterB\004\342A\001\001\0225\n" + + "\013create_time\030\004" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0225\n" + + "\013update_time\030\005" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022\023\n" + + "\005roles\030\006 \003(\tB\004\342A\001\003\022\022\n" + + "\004apis\030\007 \003(\tB\004\342A\001\003\022\032\n" + + "\014display_name\030\010 \001(\tB\004\342A\001\001\022X\n" + + "\026connections_parameters\030\t" + + " \003(\01322.google.cloud.designcenter.v1.ConnectionParametersB\004\342A\001\003\022`\n" + + "\032component_parameter_schema\030\n" + + " \003(\01326.google.clou" + + "d.designcenter.v1.ComponentParameterSchemaB\004\342A\001\003\022V\n" + + "\020application_info\030\013 \001(\01326.goo" + + "gle.cloud.designcenter.v1.ComponentApplicationInfoB\004\342A\001\001\022 \n" + + "\022use_as_root_module\030\014 \001(\010B\004\342A\001\001\022V\n" + + "\026input_variable_aliases\030\r" + + " \003(\01320.google.cloud.designcenter.v1.InputVariableAliasB\004\342A\001\001\022/\n" + + "!application_template_revision_uri\030\016 \001(" + + "\tB\004\342A\001\001:\275\001\352A\271\001\n" + + "%designcenter.googleapis.com/Component\022yproje" + + "cts/{project}/locations/{location}/space" + + "s/{space}/applicationTemplates/{application_template}/components/{component}*\n" + + "components2\tcomponent\"\302\005\n\n" + + "Connection\022\022\n" + + "\004name\030\001 \001(\tB\004\342A\001\010\022Q\n" + + "\031destination_component_uri\030\002 \001(\tB.\342A\001\002\372A\'\n" + + "%designcenter.googleapis.com/Component\0225\n" + + "\013create_time\030\004" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0225\n" + + "\013update_time\030\005" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022R\n" + + "\033source_component_parameters\030\006" + + " \003(\0132\'.google.cloud.designcenter.v1.ParameterB\004\342A\001\001\022W\n" + + " destination_component_parameters\030\007" + + " \003(\0132\'.google.cloud.designcenter.v1.ParameterB\004\342A\001\001\022U\n" + + "\017dependency_type\030\010" + + " \001(\01626.google.cloud.designcenter.v1.ConnectionDependencyTypeB\004\342A\001\003:\332\001\352A\326\001\n" + + "&designcenter.googleapis.com/Connection\022\222\001pro" + + "jects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{applic" + + "ation_template}/components/{component}/connections/{connection}*\013connections2\n" + + "connection\"\215\001\n" + + "\022SerializedProvider\022\026\n" + + "\010provider\030\001 \001(\tB\004\342A\001\002\022\034\n" + + "\016provider_alias\030\002 \001(\tB\004\342A\001\001\022A\n\n" + + "parameters\030\003" + + " \003(\0132\'.google.cloud.designcenter.v1.ParameterB\004\342A\001\001B\343\001\n" + + " com.google.cloud.designcenter.v1B\027Authoring" + + "ResourcesProtoP\001ZDcloud.google.com/go/designcenter/apiv1/designcenterpb;designce" + + "nterpb\252\002\034Google.Cloud.DesignCenter.V1\312\002\034" + + "Google\\Cloud\\DesignCenter\\V1\352\002\037Google::Cloud::DesignCenter::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.apphub.v1.ApplicationProto.getDescriptor(), + com.google.cloud.apphub.v1.AttributesProto.getDescriptor(), + com.google.cloud.designcenter.v1.AssessmentProto.getDescriptor(), + com.google.cloud.designcenter.v1.DeploymentProto.getDescriptor(), + com.google.cloud.designcenter.v1.EnumsProto.getDescriptor(), + com.google.cloud.designcenter.v1.ExportProto.getDescriptor(), + com.google.cloud.designcenter.v1.MetadataProto.getDescriptor(), + com.google.cloud.designcenter.v1.ParametersProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_designcenter_v1_ApplicationTemplate_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_designcenter_v1_ApplicationTemplate_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ApplicationTemplate_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "Description", + "CreateTime", + "UpdateTime", + "ApplicationParameters", + "IacFormat", + "SerializedApplicationTemplate", + "LatestRevision", + "ArtifactLocation", + "CompositionType", + "RootInputVariables", + "RootOutputVariables", + "SaasRuntimeContext", + "LatestSystemRevisionUri", + "IacSource", + "TemplateMetadata", + "InputsAsRootModuleVariables", + }); + internal_static_google_cloud_designcenter_v1_SerializedApplicationTemplate_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_designcenter_v1_SerializedApplicationTemplate_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_SerializedApplicationTemplate_descriptor, + new java.lang.String[] { + "Uri", + "DisplayName", + "Description", + "ApplicationParameters", + "IacFormat", + "Components", + "ApphubApplicationParameters", + "HasGlobalResource", + "CompositionType", + "RootInputVariables", + "RootOutputVariables", + "SaasRuntimeContext", + "SerializedPolicies", + "Providers", + "CustomVariables", + "CustomTfvars", + "InputsAsRootModuleVariables", + }); + internal_static_google_cloud_designcenter_v1_AppHubApplicationParameters_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_designcenter_v1_AppHubApplicationParameters_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_AppHubApplicationParameters_descriptor, + new java.lang.String[] { + "ApplicationId", "Scope", "Attributes", "Location", "HostProjectId", + }); + internal_static_google_cloud_designcenter_v1_InputVariableAlias_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_cloud_designcenter_v1_InputVariableAlias_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_InputVariableAlias_descriptor, + new java.lang.String[] { + "Variable", "Alias", + }); + internal_static_google_cloud_designcenter_v1_SerializedComponent_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_cloud_designcenter_v1_SerializedComponent_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_SerializedComponent_descriptor, + new java.lang.String[] { + "Uri", + "SharedTemplateRevisionUri", + "Parameters", + "Connections", + "Roles", + "Apis", + "DisplayName", + "ConnectionsParameters", + "ComponentParameterSchema", + "ApplicationInfo", + "UseAsRootModule", + "InputVariableAliases", + "ApplicationTemplateRevisionUri", + }); + internal_static_google_cloud_designcenter_v1_SerializedConnection_descriptor = + getDescriptor().getMessageType(5); + internal_static_google_cloud_designcenter_v1_SerializedConnection_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_SerializedConnection_descriptor, + new java.lang.String[] { + "Uri", + "DestinationComponentUri", + "SourceComponentParameters", + "DestinationComponentParameters", + "DependencyType", + }); + internal_static_google_cloud_designcenter_v1_SerializedPolicy_descriptor = + getDescriptor().getMessageType(6); + internal_static_google_cloud_designcenter_v1_SerializedPolicy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_SerializedPolicy_descriptor, + new java.lang.String[] { + "PolicyUri", + "PolicyRevisionUri", + "Uri", + "DisplayName", + "Description", + "PolicyType", + "ApplyConditions", + "CloudControlConfigs", + "SourceUri", + }); + internal_static_google_cloud_designcenter_v1_ApplicationTemplateRevision_descriptor = + getDescriptor().getMessageType(7); + internal_static_google_cloud_designcenter_v1_ApplicationTemplateRevision_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ApplicationTemplateRevision_descriptor, + new java.lang.String[] { + "Name", + "CreateTime", + "Snapshot", + "ArtifactLocation", + "TemplateMetadata", + "ApplicationParameters", + "IacSource", + }); + internal_static_google_cloud_designcenter_v1_ApplicationTemplateSystemRevision_descriptor = + getDescriptor().getMessageType(8); + internal_static_google_cloud_designcenter_v1_ApplicationTemplateSystemRevision_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ApplicationTemplateSystemRevision_descriptor, + new java.lang.String[] { + "Name", "CreateTime", "Annotations", "Snapshot", + }); + internal_static_google_cloud_designcenter_v1_ApplicationTemplateSystemRevision_AnnotationsEntry_descriptor = + internal_static_google_cloud_designcenter_v1_ApplicationTemplateSystemRevision_descriptor + .getNestedType(0); + internal_static_google_cloud_designcenter_v1_ApplicationTemplateSystemRevision_AnnotationsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ApplicationTemplateSystemRevision_AnnotationsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_designcenter_v1_Component_descriptor = + getDescriptor().getMessageType(9); + internal_static_google_cloud_designcenter_v1_Component_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_Component_descriptor, + new java.lang.String[] { + "Name", + "SharedTemplateRevisionUri", + "Parameters", + "CreateTime", + "UpdateTime", + "Roles", + "Apis", + "DisplayName", + "ConnectionsParameters", + "ComponentParameterSchema", + "ApplicationInfo", + "UseAsRootModule", + "InputVariableAliases", + "ApplicationTemplateRevisionUri", + }); + internal_static_google_cloud_designcenter_v1_Connection_descriptor = + getDescriptor().getMessageType(10); + internal_static_google_cloud_designcenter_v1_Connection_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_Connection_descriptor, + new java.lang.String[] { + "Name", + "DestinationComponentUri", + "CreateTime", + "UpdateTime", + "SourceComponentParameters", + "DestinationComponentParameters", + "DependencyType", + }); + internal_static_google_cloud_designcenter_v1_SerializedProvider_descriptor = + getDescriptor().getMessageType(11); + internal_static_google_cloud_designcenter_v1_SerializedProvider_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_SerializedProvider_descriptor, + new java.lang.String[] { + "Provider", "ProviderAlias", "Parameters", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.apphub.v1.ApplicationProto.getDescriptor(); + com.google.cloud.apphub.v1.AttributesProto.getDescriptor(); + com.google.cloud.designcenter.v1.AssessmentProto.getDescriptor(); + com.google.cloud.designcenter.v1.DeploymentProto.getDescriptor(); + com.google.cloud.designcenter.v1.EnumsProto.getDescriptor(); + com.google.cloud.designcenter.v1.ExportProto.getDescriptor(); + com.google.cloud.designcenter.v1.MetadataProto.getDescriptor(); + com.google.cloud.designcenter.v1.ParametersProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/AuthoringRpcMessagesProto.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/AuthoringRpcMessagesProto.java new file mode 100644 index 000000000000..df09be2ed7b8 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/AuthoringRpcMessagesProto.java @@ -0,0 +1,878 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public final class AuthoringRpcMessagesProto extends com.google.protobuf.GeneratedFile { + private AuthoringRpcMessagesProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AuthoringRpcMessagesProto"); + } + + 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_designcenter_v1_ListApplicationTemplatesRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ListApplicationTemplatesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_ListApplicationTemplatesResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ListApplicationTemplatesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_GetApplicationTemplateRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_GetApplicationTemplateRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_CreateApplicationTemplateRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_CreateApplicationTemplateRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_UpdateApplicationTemplateRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_UpdateApplicationTemplateRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_DeleteApplicationTemplateRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_DeleteApplicationTemplateRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_CommitApplicationTemplateRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_CommitApplicationTemplateRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_SnapshotApplicationTemplateRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_SnapshotApplicationTemplateRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_SnapshotApplicationTemplateResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_SnapshotApplicationTemplateResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_ImportApplicationTemplateRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ImportApplicationTemplateRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_ImportApplicationTemplateRequest_AnnotationsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ImportApplicationTemplateRequest_AnnotationsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_GenerateApplicationTemplateRevisionIaCRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_GenerateApplicationTemplateRevisionIaCRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_GenerateApplicationTemplateRevisionIaCResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_GenerateApplicationTemplateRevisionIaCResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_GenerateApplicationTemplateIaCRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_GenerateApplicationTemplateIaCRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_GenerateApplicationTemplateIaCResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_GenerateApplicationTemplateIaCResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_ExportApplicationTemplateIaCRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ExportApplicationTemplateIaCRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_ExportApplicationTemplateIaCResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ExportApplicationTemplateIaCResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_ExportApplicationTemplateRevisionIaCRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ExportApplicationTemplateRevisionIaCRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_ExportApplicationTemplateRevisionIaCResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ExportApplicationTemplateRevisionIaCResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_ImportApplicationTemplateIaCRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ImportApplicationTemplateIaCRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_ImportApplicationTemplateIaCResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ImportApplicationTemplateIaCResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_IngestApplicationTemplateIaCRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_IngestApplicationTemplateIaCRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_IngestApplicationTemplateIaCResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_IngestApplicationTemplateIaCResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_ListComponentsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ListComponentsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_ListComponentsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ListComponentsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_GetComponentRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_GetComponentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_CreateComponentRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_CreateComponentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_UpdateComponentRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_UpdateComponentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_DeleteComponentRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_DeleteComponentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_ListConnectionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ListConnectionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_ListConnectionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ListConnectionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_GetConnectionRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_GetConnectionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_CreateConnectionRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_CreateConnectionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_UpdateConnectionRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_UpdateConnectionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_DeleteConnectionRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_DeleteConnectionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_ImportSerializedApplicationTemplateRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ImportSerializedApplicationTemplateRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_ListApplicationTemplateRevisionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ListApplicationTemplateRevisionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_ListApplicationTemplateRevisionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ListApplicationTemplateRevisionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_GetApplicationTemplateRevisionRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_GetApplicationTemplateRevisionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_DeleteApplicationTemplateRevisionRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_DeleteApplicationTemplateRevisionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_ListApplicationTemplateSystemRevisionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ListApplicationTemplateSystemRevisionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_ListApplicationTemplateSystemRevisionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ListApplicationTemplateSystemRevisionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_GetApplicationTemplateSystemRevisionRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_GetApplicationTemplateSystemRevisionRequest_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" + + "5google/cloud/designcenter/v1/authoring_messages.proto\022\034google.cloud.designcent" + + "er.v1\032\037google/api/field_behavior.proto\032\031" + + "google/api/resource.proto\032,google/cloud/designcenter/v1/authoring.proto\032)google/" + + "cloud/designcenter/v1/export.proto\032&google/cloud/designcenter/v1/iac.proto\032,goog" + + "le/cloud/designcenter/v1/ingestion.proto\032" + + " google/protobuf/field_mask.proto\"\314\001\n" + + "\037ListApplicationTemplatesRequest\022H\n" + + "\006parent\030\001 \001(" + + "\tB8\342A\001\002\372A1\022/designcenter.googleapis.com/ApplicationTemplate\022\027\n" + + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n" + + "page_token\030\003 \001(\tB\004\342A\001\001\022\024\n" + + "\006filter\030\004 \001(\tB\004\342A\001\001\022\026\n" + + "\010order_by\030\005 \001(\tB\004\342A\001\001\"\242\001\n" + + " ListApplicationTemplatesResponse\022P\n" + + "\025application_templates\030\001 \003(\01321.google.c" + + "loud.designcenter.v1.ApplicationTemplate\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\023\n" + + "\013unreachable\030\003 \003(\t\"g\n" + + "\035GetApplicationTemplateRequest\022F\n" + + "\004name\030\001 \001(\tB8\342A\001\002\372A1\n" + + "/designcenter.googleapis.com/ApplicationTemplate\"\352\001\n" + + " CreateApplicationTemplateRequest\022H\n" + + "\006parent\030\001 \001(" + + "\tB8\342A\001\002\372A1\022/designcenter.googleapis.com/ApplicationTemplate\022%\n" + + "\027application_template_id\030\002 \001(\tB\004\342A\001\002\022U\n" + + "\024application_template\030\003" + + " \001(\01321.google.cloud.designcenter.v1.ApplicationTemplateB\004\342A\001\002\"\260\001\n" + + " UpdateApplicationTemplateRequest\0225\n" + + "\013update_mask\030\001" + + " \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\001\022U\n" + + "\024application_template\030\002 \001(\01321.google." + + "cloud.designcenter.v1.ApplicationTemplateB\004\342A\001\002\"\177\n" + + " DeleteApplicationTemplateRequest\022F\n" + + "\004name\030\001 \001(\tB8\342A\001\002\372A1\n" + + "/designcenter.googleapis.com/ApplicationTemplate\022\023\n" + + "\005force\030\002 \001(\010B\004\342A\001\001\"j\n" + + " CommitApplicationTemplateRequest\022F\n" + + "\004name\030\001 \001(\tB8\342A\001\002\372A1\n" + + "/designcenter.googleapis.com/ApplicationTemplate\"l\n" + + "\"SnapshotApplicationTemplateRequest\022F\n" + + "\004name\030\001 \001(\tB8\342A\001\002\372A1\n" + + "/designcenter.googleapis.com/ApplicationTemplate\"\207\001\n" + + "#SnapshotApplicationTemplateResponse\022`\n" + + "\035application_template_revision\030\001 \001(\01329.goog" + + "le.cloud.designcenter.v1.ApplicationTemplateRevision\"\316\005\n" + + " ImportApplicationTemplateRequest\022m\n" + + "!application_template_revision_uri\030\003 \001(\tB@\342A\001\001\372A9\n" + + "7designcenter.googleapis.com/ApplicationTemplateRevisionH\000\022c\n" + + "\034shared_template_revision_uri\030\004 \001(\tB;\342A\001\001\372A4\n" + + "2designcenter.googleapis.com/SharedTemplateRevisionH\000\022l\n" + + "\037serialized_application_template\030\005 \001(\0132;.google.cloud.de" + + "signcenter.v1.SerializedApplicationTemplateB\004\342A\001\001H\000\022v\n" + + "$application_template_system_revision\030\006 \001(\tBF\342A\001\001\372A?\n" + + "=designcenter.googleapis.com/ApplicationTemplateSystemRevisionH\000\022F\n" + + "\004name\030\001 \001(\tB8\342A\001\002\372A1\n" + + "/designcenter.googleapis.com/ApplicationTemplate\022j\n" + + "\013annotations\030\007 \003(\0132O.google.cloud." + + "designcenter.v1.ImportApplicationTemplateRequest.AnnotationsEntryB\004\342A\001\001\0322\n" + + "\020AnnotationsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001B\010\n" + + "\006source\"\203\003\n" + + "-GenerateApplicationTemplateRevisionIaCRequest\022N\n" + + "\004name\030\001 \001(\tB@\342A\001\002\372A9\n" + + "7designcenter.googleapis.com/ApplicationTemplateRevision\022o\n\n" + + "iac_format\030\002 \001(\0162U.google.cloud.designcenter.v1.Gener" + + "ateApplicationTemplateRevisionIaCRequest.IACFormatB\004\342A\001\001\022O\n" + + "\021artifact_location\030\003 " + + "\001(\0132..google.cloud.designcenter.v1.ArtifactLocationB\004\342A\001\001\"@\n" + + "\tIACFormat\022\032\n" + + "\026IAC_FORMAT_UNSPECIFIED\020\000\022\r\n" + + "\tTERRAFORM\020\001\022\010\n" + + "\004HELM\020\002\"\315\001\n" + + ".GenerateApplicationTemplateRevisionIaCResponse\022I\n" + + "\021artifact_location\030\001 \001(" + + "\0132..google.cloud.designcenter.v1.ArtifactLocation\022P\n" + + "\025root_modules_metadata\030\002 \001(\013" + + "21.google.cloud.designcenter.v1.RootModulesMetadata\"\204\003\n" + + "%GenerateApplicationTemplateIaCRequest\022F\n" + + "\004name\030\001 \001(\tB8\342A\001\002\372A1\n" + + "/designcenter.googleapis.com/ApplicationTemplate\022g\n\n" + + "iac_format\030\002 \001(\0162M.google.cloud" + + ".designcenter.v1.GenerateApplicationTemplateIaCRequest.IACFormatB\004\342A\001\001\022\027\n" + + "\007gcs_uri\030\003 \001(\tB\006\030\001\342A\001\001\022O\n" + + "\021artifact_location\030\004 \001" + + "(\0132..google.cloud.designcenter.v1.ArtifactLocationB\004\342A\001\001\"@\n" + + "\tIACFormat\022\032\n" + + "\026IAC_FORMAT_UNSPECIFIED\020\000\022\r\n" + + "\tTERRAFORM\020\001\022\010\n" + + "\004HELM\020\002\"\332\001\n" + + "&GenerateApplicationTemplateIaCResponse\022\023\n" + + "\007gcs_uri\030\001 \001(\tB\002\030\001\022I\n" + + "\021artifact_location\030\002" + + " \001(\0132..google.cloud.designcenter.v1.ArtifactLocation\022P\n" + + "\025root_modules_metadata\030\003" + + " \001(\01321.google.cloud.designcenter.v1.RootModulesMetadata\"\216\002\n" + + "#ExportApplicationTemplateIaCRequest\022F\n" + + "\004name\030\001 \001(\tB8\342A\001\002\372A1\n" + + "/designcenter.googleapis.com/ApplicationTemplate\022O\n" + + "\021artifact_location\030\003 \001" + + "(\0132..google.cloud.designcenter.v1.ArtifactLocationB\004\342A\001\001\022N\n" + + "\021export_iac_config\030\005 " + + "\001(\0132-.google.cloud.designcenter.v1.ExportIaCConfigB\004\342A\001\001\"\303\001\n" + + "$ExportApplicationTemplateIaCResponse\022I\n" + + "\021artifact_location\030\001" + + " \001(\0132..google.cloud.designcenter.v1.ArtifactLocation\022P\n" + + "\025root_modules_metadata\030\002 " + + "\001(\01321.google.cloud.designcenter.v1.RootModulesMetadata\"\236\002\n" + + "+ExportApplicationTemplateRevisionIaCRequest\022N\n" + + "\004name\030\001 \001(\tB@\342A\001\002\372A9\n" + + "7designcenter.googleapis.com/ApplicationTemplateRevision\022O\n" + + "\021artifact_location\030\003" + + " \001(\0132..google.cloud.designcenter.v1.ArtifactLocationB\004\342A\001\001\022N\n" + + "\021export_iac_config\030\005" + + " \001(\0132-.google.cloud.designcenter.v1.ExportIaCConfigB\004\342A\001\001\"\313\001\n" + + ",ExportApplicationTemplateRevisionIaCResponse\022I\n" + + "\021artifact_location\030\001" + + " \001(\0132..google.cloud.designcenter.v1.ArtifactLocation\022P\n" + + "\025root_modules_metadata\030\002" + + " \001(\01321.google.cloud.designcenter.v1.RootModulesMetadata\"\202\003\n" + + "#ImportApplicationTemplateIaCRequest\022\027\n" + + "\007gcs_uri\030\002 \001(\tB\004\342A\001\001H\000\022C\n\n" + + "iac_module\030\005 \001(\0132\'.goo" + + "gle.cloud.designcenter.v1.IaCModuleB\004\342A\001\001H\000\022k\n" + + "\037developer_connect_source_config\030\007" + + " \001(\0132:.google.cloud.designcenter.v1.DeveloperConnectSourceConfigB\004\342A\001\001H\000\022F\n" + + "\004name\030\001 \001(\tB8\342A\001\002\372A1\n" + + "/designcenter.googleapis.com/ApplicationTemplate\022\"\n" + + "\024allow_partial_import\030\004 \001(\010B\004\342A\001\001\022\032\n" + + "\014validate_iac\030\006 \001(\010B\004\342A\001\001B\010\n" + + "\006source\"\311\002\n" + + "$ImportApplicationTemplateIaCResponse\022O\n" + + "\024application_template\030\001" + + " \001(\01321.google.cloud.designcenter.v1.ApplicationTemplate\022<\n" + + "\006errors\030\002 \003(\0132,.google.cloud.designcenter.v1.ImportIaCError\022W\n" + + "\005state\030\003 \001(\0162H.google.cloud.designc" + + "enter.v1.ImportApplicationTemplateIaCResponse.State\"9\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\r\n" + + "\tSUCCEEDED\020\001\022\n\n" + + "\006FAILED\020\002\"\332\003\n" + + "#IngestApplicationTemplateIaCRequest\022\027\n" + + "\007gcs_uri\030\002 \001(\tB\004\342A\001\001H\000\022C\n\n" + + "iac_module\030\003 \001(\0132\'.go" + + "ogle.cloud.designcenter.v1.IaCModuleB\004\342A\001\001H\000\022d\n" + + "\030devconnect_source_config\030\004 \001(\0132:" + + ".google.cloud.designcenter.v1.DeveloperConnectSourceConfigB\004\342A\001\001H\000\022C\n\n" + + "git_source\030\005" + + " \001(\0132\'.google.cloud.designcenter.v1.GitSourceB\004\342A\001\001H\000\022F\n" + + "\004name\030\001 \001(\tB8\342A\001\002\372A1\n" + + "/designcenter.googleapis.com/ApplicationTemplate\022,\n" + + "\036validate_catalog_compatibility\030\006 \001(\010B\004\342A\001\001\022*\n" + + "\034raw_terraform_import_enabled\030\007 \001(\010B\004\342A\001\001B\010\n" + + "\006source\"\216\002\n" + + "$IngestApplicationTemplateIaCResponse\022O\n" + + "\024application_template\030\001" + + " \001(\01321.google.cloud.designcenter.v1.ApplicationTemplate\022<\n" + + "\006errors\030\002 \003(\0132,.google.cloud.designcenter.v1.ImportIaCError\022W\n" + + "\005state\030\003 \001(\0162H.google.clou" + + "d.designcenter.v1.ImportApplicationTemplateIaCResponse.State\"\270\001\n" + + "\025ListComponentsRequest\022>\n" + + "\006parent\030\001 \001(" + + "\tB.\342A\001\002\372A\'\022%designcenter.googleapis.com/Component\022\027\n" + + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n" + + "page_token\030\003 \001(\tB\004\342A\001\001\022\024\n" + + "\006filter\030\004 \001(\tB\004\342A\001\001\022\026\n" + + "\010order_by\030\005 \001(\tB\004\342A\001\001\"\203\001\n" + + "\026ListComponentsResponse\022;\n\n" + + "components\030\001 \003(\0132\'.google.cloud.designcenter.v1.Component\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\023\n" + + "\013unreachable\030\003 \003(\t\"S\n" + + "\023GetComponentRequest\022<\n" + + "\004name\030\001 \001(\tB.\342A\001\002\372A\'\n" + + "%designcenter.googleapis.com/Component\"\266\001\n" + + "\026CreateComponentRequest\022>\n" + + "\006parent\030\001 \001(" + + "\tB.\342A\001\002\372A\'\022%designcenter.googleapis.com/Component\022\032\n" + + "\014component_id\030\002 \001(\tB\004\342A\001\002\022@\n" + + "\tcomponent\030\003" + + " \001(\0132\'.google.cloud.designcenter.v1.ComponentB\004\342A\001\002\"\221\001\n" + + "\026UpdateComponentRequest\0225\n" + + "\013update_mask\030\001" + + " \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\001\022@\n" + + "\tcomponent\030\002 \001(\0132\'.googl" + + "e.cloud.designcenter.v1.ComponentB\004\342A\001\002\"k\n" + + "\026DeleteComponentRequest\022<\n" + + "\004name\030\001 \001(\tB.\342A\001\002\372A\'\n" + + "%designcenter.googleapis.com/Component\022\023\n" + + "\005force\030\002 \001(\010B\004\342A\001\001\"\272\001\n" + + "\026ListConnectionsRequest\022?\n" + + "\006parent\030\001 \001(\tB/\342A\001\002\372A(" + + "\022&designcenter.googleapis.com/Connection\022\027\n" + + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n" + + "page_token\030\003 \001(\tB\004\342A\001\001\022\024\n" + + "\006filter\030\004 \001(\tB\004\342A\001\001\022\026\n" + + "\010order_by\030\005 \001(\tB\004\342A\001\001\"\206\001\n" + + "\027ListConnectionsResponse\022=\n" + + "\013connections\030\001 \003(\0132(.google.cloud.designcenter.v1.Connection\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\023\n" + + "\013unreachable\030\003 \003(\t\"U\n" + + "\024GetConnectionRequest\022=\n" + + "\004name\030\001 \001(\tB/\342A\001\002\372A(\n" + + "&designcenter.googleapis.com/Connection\"\273\001\n" + + "\027CreateConnectionRequest\022?\n" + + "\006parent\030\001 \001(" + + "\tB/\342A\001\002\372A(\022&designcenter.googleapis.com/Connection\022\033\n\r" + + "connection_id\030\002 \001(\tB\004\342A\001\002\022B\n\n" + + "connection\030\003" + + " \001(\0132(.google.cloud.designcenter.v1.ConnectionB\004\342A\001\002\"\224\001\n" + + "\027UpdateConnectionRequest\0225\n" + + "\013update_mask\030\001" + + " \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\001\022B\n\n" + + "connection\030\002" + + " \001(\0132(.google.cloud.designcenter.v1.ConnectionB\004\342A\001\002\"X\n" + + "\027DeleteConnectionRequest\022=\n" + + "\004name\030\001 \001(\tB/\342A\001\002\372A(\n" + + "&designcenter.googleapis.com/Connection\"\340\001\n" + + "*ImportSerializedApplicationTemplateRequest\022F\n" + + "\004name\030\001 \001(\tB8\342A\001\002\372A1\n" + + "/designcenter.googleapis.com/ApplicationTemplate\022j\n" + + "\037serialized_application_template\030\002 \001(\0132;.googl" + + "e.cloud.designcenter.v1.SerializedApplicationTemplateB\004\342A\001\002\"\334\001\n" + + "\'ListApplicationTemplateRevisionsRequest\022P\n" + + "\006parent\030\001 \001(\tB" + + "@\342A\001\002\372A9\0227designcenter.googleapis.com/ApplicationTemplateRevision\022\027\n" + + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n" + + "page_token\030\003 \001(\tB\004\342A\001\001\022\024\n" + + "\006filter\030\004 \001(\tB\004\342A\001\001\022\026\n" + + "\010order_by\030\005 \001(\tB\004\342A\001\001\"\273\001\n" + + "(ListApplicationTemplateRevisionsResponse\022a\n" + + "\036application_template_revisions\030\001" + + " \003(\01329.google.cloud.designcenter.v1.ApplicationTemplateRevision\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\023\n" + + "\013unreachable\030\003 \003(\t\"w\n" + + "%GetApplicationTemplateRevisionRequest\022N\n" + + "\004name\030\001 \001(\tB@\342A\001\002\372A9\n" + + "7designcenter.googleapis.com/ApplicationTemplateRevision\"z\n" + + "(DeleteApplicationTemplateRevisionRequest\022N\n" + + "\004name\030\001 \001(\tB@\342A\001\002\372A9\n" + + "7designcenter.googleapis.com/ApplicationTemplateRevision\"\320\001\n" + + "-ListApplicationTemplateSystemRevisionsRequest\022V\n" + + "\006parent\030\001 \001(\tBF\342A\001\002\372A?\022=design" + + "center.googleapis.com/ApplicationTemplateSystemRevision\022\027\n" + + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n" + + "page_token\030\003 \001(\tB\004\342A\001\001\022\024\n" + + "\006filter\030\004 \001(\tB\004\342A\001\001\"\324\001\n" + + ".ListApplicationTemplateSystemRevisionsResponse\022n\n" + + "%application_template_system_revisions\030\001 \003(\0132?.google.clou" + + "d.designcenter.v1.ApplicationTemplateSystemRevision\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\031\n" + + "\013unreachable\030\003 \003(\tB\004\342A\001\006\"\203\001\n" + + "+GetApplicationTemplateSystemRevisionRequest\022T\n" + + "\004name\030\001 \001(\tBF\342A\001\002\372A?\n" + + "=designcenter.googleapis.com/ApplicationTemplateSystemRevisionB\345\001\n" + + " com.google.cloud.designcenter.v1B\031AuthoringRpcMessagesProtoP\001ZDcloud.google.co" + + "m/go/designcenter/apiv1/designcenterpb;d" + + "esigncenterpb\252\002\034Google.Cloud.DesignCente" + + "r.V1\312\002\034Google\\Cloud\\DesignCenter\\V1\352\002\037Go" + + "ogle::Cloud::DesignCenter::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.designcenter.v1.AuthoringResourcesProto.getDescriptor(), + com.google.cloud.designcenter.v1.ExportProto.getDescriptor(), + com.google.cloud.designcenter.v1.IacProto.getDescriptor(), + com.google.cloud.designcenter.v1.IngestionProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_designcenter_v1_ListApplicationTemplatesRequest_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_designcenter_v1_ListApplicationTemplatesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ListApplicationTemplatesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_designcenter_v1_ListApplicationTemplatesResponse_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_designcenter_v1_ListApplicationTemplatesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ListApplicationTemplatesResponse_descriptor, + new java.lang.String[] { + "ApplicationTemplates", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_designcenter_v1_GetApplicationTemplateRequest_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_designcenter_v1_GetApplicationTemplateRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_GetApplicationTemplateRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_designcenter_v1_CreateApplicationTemplateRequest_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_cloud_designcenter_v1_CreateApplicationTemplateRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_CreateApplicationTemplateRequest_descriptor, + new java.lang.String[] { + "Parent", "ApplicationTemplateId", "ApplicationTemplate", + }); + internal_static_google_cloud_designcenter_v1_UpdateApplicationTemplateRequest_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_cloud_designcenter_v1_UpdateApplicationTemplateRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_UpdateApplicationTemplateRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "ApplicationTemplate", + }); + internal_static_google_cloud_designcenter_v1_DeleteApplicationTemplateRequest_descriptor = + getDescriptor().getMessageType(5); + internal_static_google_cloud_designcenter_v1_DeleteApplicationTemplateRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_DeleteApplicationTemplateRequest_descriptor, + new java.lang.String[] { + "Name", "Force", + }); + internal_static_google_cloud_designcenter_v1_CommitApplicationTemplateRequest_descriptor = + getDescriptor().getMessageType(6); + internal_static_google_cloud_designcenter_v1_CommitApplicationTemplateRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_CommitApplicationTemplateRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_designcenter_v1_SnapshotApplicationTemplateRequest_descriptor = + getDescriptor().getMessageType(7); + internal_static_google_cloud_designcenter_v1_SnapshotApplicationTemplateRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_SnapshotApplicationTemplateRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_designcenter_v1_SnapshotApplicationTemplateResponse_descriptor = + getDescriptor().getMessageType(8); + internal_static_google_cloud_designcenter_v1_SnapshotApplicationTemplateResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_SnapshotApplicationTemplateResponse_descriptor, + new java.lang.String[] { + "ApplicationTemplateRevision", + }); + internal_static_google_cloud_designcenter_v1_ImportApplicationTemplateRequest_descriptor = + getDescriptor().getMessageType(9); + internal_static_google_cloud_designcenter_v1_ImportApplicationTemplateRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ImportApplicationTemplateRequest_descriptor, + new java.lang.String[] { + "ApplicationTemplateRevisionUri", + "SharedTemplateRevisionUri", + "SerializedApplicationTemplate", + "ApplicationTemplateSystemRevision", + "Name", + "Annotations", + "Source", + }); + internal_static_google_cloud_designcenter_v1_ImportApplicationTemplateRequest_AnnotationsEntry_descriptor = + internal_static_google_cloud_designcenter_v1_ImportApplicationTemplateRequest_descriptor + .getNestedType(0); + internal_static_google_cloud_designcenter_v1_ImportApplicationTemplateRequest_AnnotationsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ImportApplicationTemplateRequest_AnnotationsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_designcenter_v1_GenerateApplicationTemplateRevisionIaCRequest_descriptor = + getDescriptor().getMessageType(10); + internal_static_google_cloud_designcenter_v1_GenerateApplicationTemplateRevisionIaCRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_GenerateApplicationTemplateRevisionIaCRequest_descriptor, + new java.lang.String[] { + "Name", "IacFormat", "ArtifactLocation", + }); + internal_static_google_cloud_designcenter_v1_GenerateApplicationTemplateRevisionIaCResponse_descriptor = + getDescriptor().getMessageType(11); + internal_static_google_cloud_designcenter_v1_GenerateApplicationTemplateRevisionIaCResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_GenerateApplicationTemplateRevisionIaCResponse_descriptor, + new java.lang.String[] { + "ArtifactLocation", "RootModulesMetadata", + }); + internal_static_google_cloud_designcenter_v1_GenerateApplicationTemplateIaCRequest_descriptor = + getDescriptor().getMessageType(12); + internal_static_google_cloud_designcenter_v1_GenerateApplicationTemplateIaCRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_GenerateApplicationTemplateIaCRequest_descriptor, + new java.lang.String[] { + "Name", "IacFormat", "GcsUri", "ArtifactLocation", + }); + internal_static_google_cloud_designcenter_v1_GenerateApplicationTemplateIaCResponse_descriptor = + getDescriptor().getMessageType(13); + internal_static_google_cloud_designcenter_v1_GenerateApplicationTemplateIaCResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_GenerateApplicationTemplateIaCResponse_descriptor, + new java.lang.String[] { + "GcsUri", "ArtifactLocation", "RootModulesMetadata", + }); + internal_static_google_cloud_designcenter_v1_ExportApplicationTemplateIaCRequest_descriptor = + getDescriptor().getMessageType(14); + internal_static_google_cloud_designcenter_v1_ExportApplicationTemplateIaCRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ExportApplicationTemplateIaCRequest_descriptor, + new java.lang.String[] { + "Name", "ArtifactLocation", "ExportIacConfig", + }); + internal_static_google_cloud_designcenter_v1_ExportApplicationTemplateIaCResponse_descriptor = + getDescriptor().getMessageType(15); + internal_static_google_cloud_designcenter_v1_ExportApplicationTemplateIaCResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ExportApplicationTemplateIaCResponse_descriptor, + new java.lang.String[] { + "ArtifactLocation", "RootModulesMetadata", + }); + internal_static_google_cloud_designcenter_v1_ExportApplicationTemplateRevisionIaCRequest_descriptor = + getDescriptor().getMessageType(16); + internal_static_google_cloud_designcenter_v1_ExportApplicationTemplateRevisionIaCRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ExportApplicationTemplateRevisionIaCRequest_descriptor, + new java.lang.String[] { + "Name", "ArtifactLocation", "ExportIacConfig", + }); + internal_static_google_cloud_designcenter_v1_ExportApplicationTemplateRevisionIaCResponse_descriptor = + getDescriptor().getMessageType(17); + internal_static_google_cloud_designcenter_v1_ExportApplicationTemplateRevisionIaCResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ExportApplicationTemplateRevisionIaCResponse_descriptor, + new java.lang.String[] { + "ArtifactLocation", "RootModulesMetadata", + }); + internal_static_google_cloud_designcenter_v1_ImportApplicationTemplateIaCRequest_descriptor = + getDescriptor().getMessageType(18); + internal_static_google_cloud_designcenter_v1_ImportApplicationTemplateIaCRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ImportApplicationTemplateIaCRequest_descriptor, + new java.lang.String[] { + "GcsUri", + "IacModule", + "DeveloperConnectSourceConfig", + "Name", + "AllowPartialImport", + "ValidateIac", + "Source", + }); + internal_static_google_cloud_designcenter_v1_ImportApplicationTemplateIaCResponse_descriptor = + getDescriptor().getMessageType(19); + internal_static_google_cloud_designcenter_v1_ImportApplicationTemplateIaCResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ImportApplicationTemplateIaCResponse_descriptor, + new java.lang.String[] { + "ApplicationTemplate", "Errors", "State", + }); + internal_static_google_cloud_designcenter_v1_IngestApplicationTemplateIaCRequest_descriptor = + getDescriptor().getMessageType(20); + internal_static_google_cloud_designcenter_v1_IngestApplicationTemplateIaCRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_IngestApplicationTemplateIaCRequest_descriptor, + new java.lang.String[] { + "GcsUri", + "IacModule", + "DevconnectSourceConfig", + "GitSource", + "Name", + "ValidateCatalogCompatibility", + "RawTerraformImportEnabled", + "Source", + }); + internal_static_google_cloud_designcenter_v1_IngestApplicationTemplateIaCResponse_descriptor = + getDescriptor().getMessageType(21); + internal_static_google_cloud_designcenter_v1_IngestApplicationTemplateIaCResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_IngestApplicationTemplateIaCResponse_descriptor, + new java.lang.String[] { + "ApplicationTemplate", "Errors", "State", + }); + internal_static_google_cloud_designcenter_v1_ListComponentsRequest_descriptor = + getDescriptor().getMessageType(22); + internal_static_google_cloud_designcenter_v1_ListComponentsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ListComponentsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_designcenter_v1_ListComponentsResponse_descriptor = + getDescriptor().getMessageType(23); + internal_static_google_cloud_designcenter_v1_ListComponentsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ListComponentsResponse_descriptor, + new java.lang.String[] { + "Components", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_designcenter_v1_GetComponentRequest_descriptor = + getDescriptor().getMessageType(24); + internal_static_google_cloud_designcenter_v1_GetComponentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_GetComponentRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_designcenter_v1_CreateComponentRequest_descriptor = + getDescriptor().getMessageType(25); + internal_static_google_cloud_designcenter_v1_CreateComponentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_CreateComponentRequest_descriptor, + new java.lang.String[] { + "Parent", "ComponentId", "Component", + }); + internal_static_google_cloud_designcenter_v1_UpdateComponentRequest_descriptor = + getDescriptor().getMessageType(26); + internal_static_google_cloud_designcenter_v1_UpdateComponentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_UpdateComponentRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "Component", + }); + internal_static_google_cloud_designcenter_v1_DeleteComponentRequest_descriptor = + getDescriptor().getMessageType(27); + internal_static_google_cloud_designcenter_v1_DeleteComponentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_DeleteComponentRequest_descriptor, + new java.lang.String[] { + "Name", "Force", + }); + internal_static_google_cloud_designcenter_v1_ListConnectionsRequest_descriptor = + getDescriptor().getMessageType(28); + internal_static_google_cloud_designcenter_v1_ListConnectionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ListConnectionsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_designcenter_v1_ListConnectionsResponse_descriptor = + getDescriptor().getMessageType(29); + internal_static_google_cloud_designcenter_v1_ListConnectionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ListConnectionsResponse_descriptor, + new java.lang.String[] { + "Connections", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_designcenter_v1_GetConnectionRequest_descriptor = + getDescriptor().getMessageType(30); + internal_static_google_cloud_designcenter_v1_GetConnectionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_GetConnectionRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_designcenter_v1_CreateConnectionRequest_descriptor = + getDescriptor().getMessageType(31); + internal_static_google_cloud_designcenter_v1_CreateConnectionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_CreateConnectionRequest_descriptor, + new java.lang.String[] { + "Parent", "ConnectionId", "Connection", + }); + internal_static_google_cloud_designcenter_v1_UpdateConnectionRequest_descriptor = + getDescriptor().getMessageType(32); + internal_static_google_cloud_designcenter_v1_UpdateConnectionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_UpdateConnectionRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "Connection", + }); + internal_static_google_cloud_designcenter_v1_DeleteConnectionRequest_descriptor = + getDescriptor().getMessageType(33); + internal_static_google_cloud_designcenter_v1_DeleteConnectionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_DeleteConnectionRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_designcenter_v1_ImportSerializedApplicationTemplateRequest_descriptor = + getDescriptor().getMessageType(34); + internal_static_google_cloud_designcenter_v1_ImportSerializedApplicationTemplateRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ImportSerializedApplicationTemplateRequest_descriptor, + new java.lang.String[] { + "Name", "SerializedApplicationTemplate", + }); + internal_static_google_cloud_designcenter_v1_ListApplicationTemplateRevisionsRequest_descriptor = + getDescriptor().getMessageType(35); + internal_static_google_cloud_designcenter_v1_ListApplicationTemplateRevisionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ListApplicationTemplateRevisionsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_designcenter_v1_ListApplicationTemplateRevisionsResponse_descriptor = + getDescriptor().getMessageType(36); + internal_static_google_cloud_designcenter_v1_ListApplicationTemplateRevisionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ListApplicationTemplateRevisionsResponse_descriptor, + new java.lang.String[] { + "ApplicationTemplateRevisions", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_designcenter_v1_GetApplicationTemplateRevisionRequest_descriptor = + getDescriptor().getMessageType(37); + internal_static_google_cloud_designcenter_v1_GetApplicationTemplateRevisionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_GetApplicationTemplateRevisionRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_designcenter_v1_DeleteApplicationTemplateRevisionRequest_descriptor = + getDescriptor().getMessageType(38); + internal_static_google_cloud_designcenter_v1_DeleteApplicationTemplateRevisionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_DeleteApplicationTemplateRevisionRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_designcenter_v1_ListApplicationTemplateSystemRevisionsRequest_descriptor = + getDescriptor().getMessageType(39); + internal_static_google_cloud_designcenter_v1_ListApplicationTemplateSystemRevisionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ListApplicationTemplateSystemRevisionsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", + }); + internal_static_google_cloud_designcenter_v1_ListApplicationTemplateSystemRevisionsResponse_descriptor = + getDescriptor().getMessageType(40); + internal_static_google_cloud_designcenter_v1_ListApplicationTemplateSystemRevisionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ListApplicationTemplateSystemRevisionsResponse_descriptor, + new java.lang.String[] { + "ApplicationTemplateSystemRevisions", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_designcenter_v1_GetApplicationTemplateSystemRevisionRequest_descriptor = + getDescriptor().getMessageType(41); + internal_static_google_cloud_designcenter_v1_GetApplicationTemplateSystemRevisionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_GetApplicationTemplateSystemRevisionRequest_descriptor, + new java.lang.String[] { + "Name", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.designcenter.v1.AuthoringResourcesProto.getDescriptor(); + com.google.cloud.designcenter.v1.ExportProto.getDescriptor(); + com.google.cloud.designcenter.v1.IacProto.getDescriptor(); + com.google.cloud.designcenter.v1.IngestionProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/BestPracticesResourcesProto.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/BestPracticesResourcesProto.java new file mode 100644 index 000000000000..6c033705af49 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/BestPracticesResourcesProto.java @@ -0,0 +1,164 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/best_practices.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public final class BestPracticesResourcesProto extends com.google.protobuf.GeneratedFile { + private BestPracticesResourcesProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "BestPracticesResourcesProto"); + } + + 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_designcenter_v1_AssessmentReport_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_AssessmentReport_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_Policy_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_Policy_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" + + "1google/cloud/designcenter/v1/best_practices.proto\022\034google.cloud.designcenter.v" + + "1\032\037google/api/field_behavior.proto\032\031goog" + + "le/api/resource.proto\032-google/cloud/designcenter/v1/assessment.proto\032-google/clo" + + "ud/designcenter/v1/parameters.proto\032\037google/protobuf/timestamp.proto\"\244\003\n" + + "\020AssessmentReport\022#\n" + + "\023adc_application_uri\030\001 \001(\tB\004\342A\001\003H\000\022,\n" + + "\034adc_application_template_uri\030\002 \001(\tB\004\342A\001\003H\000\022(\n" + + "\030adc_catalog_template_uri\030\003 \001(\tB\004\342A\001\003H\000\022\035\n\r" + + "adc_space_uri\030\004 \001(\tB\004\342A\001\003H\000\022]\n" + + "\031domain_assessment_reports\030\005 \003(\013" + + "24.google.cloud.designcenter.v1.DomainAssessmentReportB\004\342A\001\003\022J\n" + + "\017skipped_domains\030\006" + + " \003(\0132+.google.cloud.designcenter.v1.SkippedDomainB\004\342A\001\003\0225\n" + + "\013create_time\030\007" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003B\022\n" + + "\020adc_resource_uri\"\363\005\n" + + "\006Policy\022\032\n\n" + + "policy_uri\030\005 \001(\tB\004\342A\001\001H\000\022#\n" + + "\023policy_revision_uri\030\006 \001(\tB\004\342A\001\001H\000\022\022\n" + + "\004name\030\001 \001(\tB\004\342A\001\010\022\032\n" + + "\014display_name\030\002 \001(\tB\004\342A\001\001\022\031\n" + + "\013description\030\003 \001(\tB\004\342A\001\001\022J\n" + + "\013policy_type\030\004 \001(\0162/.google.cloud.d" + + "esigncenter.v1.Policy.PolicyTypeB\004\342A\001\002\022L\n" + + "\020apply_conditions\030\007" + + " \003(\0132,.google.cloud.designcenter.v1.ApplyConditionB\004\342A\001\001\0225\n" + + "\013create_time\030\010" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0225\n" + + "\013update_time\030\t" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022V\n" + + "\025cloud_control_configs\030\n" + + " \003(\01320.google.cloud.designcenter.v1.CloudControlConfigB\005\342A\002\004\001\"C\n\n" + + "PolicyType\022\033\n" + + "\027POLICY_TYPE_UNSPECIFIED\020\000\022\030\n" + + "\024COMPLIANCE_FRAMEWORK\020\001:\260\001\352A\254\001\n" + + "\"designcenter.googleapis.com/Policy\022tprojects/{pr" + + "oject}/locations/{location}/spaces/{space}/applicationTemplates/{application_tem" + + "plate}/policies/{policy}*\010policies2\006policyB\005\n" + + "\003uriB\347\001\n" + + " com.google.cloud.designcenter.v1B\033BestPracticesResourcesProtoP\001ZDc" + + "loud.google.com/go/designcenter/apiv1/de" + + "signcenterpb;designcenterpb\252\002\034Google.Clo" + + "ud.DesignCenter.V1\312\002\034Google\\Cloud\\Design" + + "Center\\V1\352\002\037Google::Cloud::DesignCenter::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.designcenter.v1.AssessmentProto.getDescriptor(), + com.google.cloud.designcenter.v1.ParametersProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_designcenter_v1_AssessmentReport_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_designcenter_v1_AssessmentReport_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_AssessmentReport_descriptor, + new java.lang.String[] { + "AdcApplicationUri", + "AdcApplicationTemplateUri", + "AdcCatalogTemplateUri", + "AdcSpaceUri", + "DomainAssessmentReports", + "SkippedDomains", + "CreateTime", + "AdcResourceUri", + }); + internal_static_google_cloud_designcenter_v1_Policy_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_designcenter_v1_Policy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_Policy_descriptor, + new java.lang.String[] { + "PolicyUri", + "PolicyRevisionUri", + "Name", + "DisplayName", + "Description", + "PolicyType", + "ApplyConditions", + "CreateTime", + "UpdateTime", + "CloudControlConfigs", + "Uri", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.designcenter.v1.AssessmentProto.getDescriptor(); + com.google.cloud.designcenter.v1.ParametersProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/BestPracticesRpcMessagesProto.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/BestPracticesRpcMessagesProto.java new file mode 100644 index 000000000000..1959a99752a9 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/BestPracticesRpcMessagesProto.java @@ -0,0 +1,380 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/best_practices_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public final class BestPracticesRpcMessagesProto extends com.google.protobuf.GeneratedFile { + private BestPracticesRpcMessagesProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "BestPracticesRpcMessagesProto"); + } + + 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_designcenter_v1_FetchApplicationAssessmentReportRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_FetchApplicationAssessmentReportRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_FetchApplicationAssessmentReportResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_FetchApplicationAssessmentReportResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_GenerateApplicationAssessmentReportRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_GenerateApplicationAssessmentReportRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_GenerateApplicationAssessmentReportResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_GenerateApplicationAssessmentReportResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_GenerateApplicationTemplateAssessmentReportRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_GenerateApplicationTemplateAssessmentReportRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_GenerateApplicationTemplateAssessmentReportResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_GenerateApplicationTemplateAssessmentReportResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_GenerateAssessmentReportRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_GenerateAssessmentReportRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_GenerateAssessmentReportResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_GenerateAssessmentReportResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_GenerateTerraformPlanAssessmentReportRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_GenerateTerraformPlanAssessmentReportRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_GenerateTerraformPlanAssessmentReportResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_GenerateTerraformPlanAssessmentReportResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_FetchFrameworksRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_FetchFrameworksRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_FetchFrameworksResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_FetchFrameworksResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_GetPolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_GetPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_ListPoliciesRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ListPoliciesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_ListPoliciesResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ListPoliciesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_CreatePolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_CreatePolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_UpdatePolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_UpdatePolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_DeletePolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_DeletePolicyRequest_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/designcenter/v1/best_practices_messages.proto\022\034google.cloud.desig" + + "ncenter.v1\032\037google/api/field_behavior.pr" + + "oto\032\031google/api/resource.proto\032#google/c" + + "loud/config/v1/config.proto\032-google/cloud/designcenter/v1/assessment.proto\0321goog" + + "le/cloud/designcenter/v1/best_practices.proto\032" + + " google/protobuf/field_mask.proto\"i\n" + + "\'FetchApplicationAssessmentReportRequest\022>\n" + + "\004name\030\001 \001(\tB0\342A\001\002\372A)\n" + + "\'designcenter.googleapis.com/Application\"u\n" + + "(FetchApplicationAssessmentReportResponse\022I\n" + + "\021assessment_report\030\001" + + " \001(\0132..google.cloud.designcenter.v1.AssessmentReport\"l\n" + + "*GenerateApplicationAssessmentReportRequest\022>\n" + + "\004name\030\001 \001(\tB0\342A\001\002\372A)\n" + + "\'designcenter.googleapis.com/Application\"~\n" + + "+GenerateApplicationAssessmentReportResponse\022O\n" + + "\021assessment_report\030\001" + + " \001(\0132..google.cloud.designcenter.v1.AssessmentReportB\004\342A\001\003\"\235\001\n" + + "2GenerateApplicationTemplateAssessmentReportRequest\022F\n" + + "\004name\030\001 \001(\tB8\342A\001\002\372A1\n" + + "/designcenter.googleapis.com/ApplicationTemplate\022\037\n" + + "\017service_account\030\002 \001(\tB\006\030\001\342A\001\001\"\266\001\n" + + "3GenerateApplicationTemplateAssessmentReportResponse\0224\n" + + "\007preview\030\001 \001(\0132\037.google.cloud.config.v1.PreviewB\002\030\001\022I\n" + + "\021assessment_report\030\002 \001(\013" + + "2..google.cloud.designcenter.v1.AssessmentReport\"\250\001\n" + + "\037GenerateAssessmentReportRequest\022\034\n" + + "\016terraform_plan\030\001 \001(\014B\004\342A\001\002\022#\n" + + "\025additional_frameworks\030\002 \003(\tB\004\342A\001\001\022>\n\n" + + "space_name\030\003 \001(\tB*\342A\001\002\372A#\n" + + "!designcenter.googleapis.com/Space:\002\030\001\"q\n" + + " GenerateAssessmentReportResponse\022I\n" + + "\021assessment_report\030\001 \001" + + "(\0132..google.cloud.designcenter.v1.AssessmentReport:\002\030\001\"\253\001\n" + + ",GenerateTerraformPlanAssessmentReportRequest\0228\n" + + "\004name\030\001 \001(\tB*\342A\001\002\372A#\n" + + "!designcenter.googleapis.com/Space\022\034\n" + + "\016terraform_plan\030\002 \001(\014B\004\342A\001\002\022#\n" + + "\025additional_frameworks\030\003 \003(\tB\004\342A\001\001\"z\n" + + "-GenerateTerraformPlanAssessmentReportResponse\022I\n" + + "\021assessment_report\030\001" + + " \001(\0132..google.cloud.designcenter.v1.AssessmentReport\"\217\001\n" + + "\026FetchFrameworksRequest\022\024\n" + + "\006parent\030\001 \001(\tB\004\342A\001\002\022\026\n" + + "\010projects\030\002 \003(\tB\004\342A\001\001\022\027\n" + + "\tpage_size\030\003 \001(\005B\004\342A\001\001\022\030\n\n" + + "page_token\030\004 \001(\tB\004\342A\001\001\022\024\n" + + "\006filter\030\005 \001(\tB\004\342A\001\001\"o\n" + + "\027FetchFrameworksResponse\022;\n\n" + + "frameworks\030\001 \003(\0132\'.google.cloud.designcenter.v1.Framework\022\027\n" + + "\017next_page_token\030\002 \001(\t\"M\n" + + "\020GetPolicyRequest\0229\n" + + "\004name\030\001 \001(\tB+\342A\001\002\372A$\n" + + "\"designcenter.googleapis.com/Policy\"\263\001\n" + + "\023ListPoliciesRequest\022;\n" + + "\006parent\030\001 \001(" + + "\tB+\342A\001\002\372A$\022\"designcenter.googleapis.com/Policy\022\027\n" + + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n" + + "page_token\030\003 \001(\tB\004\342A\001\001\022\024\n" + + "\006filter\030\004 \001(\tB\004\342A\001\001\022\026\n" + + "\010order_by\030\005 \001(\tB\004\342A\001\001\"g\n" + + "\024ListPoliciesResponse\0226\n" + + "\010policies\030\001 \003(\0132$.google.cloud.designcenter.v1.Policy\022\027\n" + + "\017next_page_token\030\002 \001(\t\"\247\001\n" + + "\023CreatePolicyRequest\022;\n" + + "\006parent\030\001 \001(" + + "\tB+\342A\001\002\372A$\022\"designcenter.googleapis.com/Policy\022\027\n" + + "\tpolicy_id\030\002 \001(\tB\004\342A\001\002\022:\n" + + "\006policy\030\003" + + " \001(\0132$.google.cloud.designcenter.v1.PolicyB\004\342A\001\002\"\210\001\n" + + "\023UpdatePolicyRequest\0225\n" + + "\013update_mask\030\001" + + " \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\001\022:\n" + + "\006policy\030\002 \001" + + "(\0132$.google.cloud.designcenter.v1.PolicyB\004\342A\001\002\"P\n" + + "\023DeletePolicyRequest\0229\n" + + "\004name\030\001 \001(\tB+\342A\001\002\372A$\n" + + "\"designcenter.googleapis.com/PolicyB\351\001\n" + + " com.google.cloud.designcenter.v1B\035BestPracticesRpcMessagesProtoP\001ZD" + + "cloud.google.com/go/designcenter/apiv1/d" + + "esigncenterpb;designcenterpb\252\002\034Google.Cl" + + "oud.DesignCenter.V1\312\002\034Google\\Cloud\\Desig" + + "nCenter\\V1\352\002\037Google::Cloud::DesignCenter::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.config.v1.ConfigProto.getDescriptor(), + com.google.cloud.designcenter.v1.AssessmentProto.getDescriptor(), + com.google.cloud.designcenter.v1.BestPracticesResourcesProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_designcenter_v1_FetchApplicationAssessmentReportRequest_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_designcenter_v1_FetchApplicationAssessmentReportRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_FetchApplicationAssessmentReportRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_designcenter_v1_FetchApplicationAssessmentReportResponse_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_designcenter_v1_FetchApplicationAssessmentReportResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_FetchApplicationAssessmentReportResponse_descriptor, + new java.lang.String[] { + "AssessmentReport", + }); + internal_static_google_cloud_designcenter_v1_GenerateApplicationAssessmentReportRequest_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_designcenter_v1_GenerateApplicationAssessmentReportRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_GenerateApplicationAssessmentReportRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_designcenter_v1_GenerateApplicationAssessmentReportResponse_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_cloud_designcenter_v1_GenerateApplicationAssessmentReportResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_GenerateApplicationAssessmentReportResponse_descriptor, + new java.lang.String[] { + "AssessmentReport", + }); + internal_static_google_cloud_designcenter_v1_GenerateApplicationTemplateAssessmentReportRequest_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_cloud_designcenter_v1_GenerateApplicationTemplateAssessmentReportRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_GenerateApplicationTemplateAssessmentReportRequest_descriptor, + new java.lang.String[] { + "Name", "ServiceAccount", + }); + internal_static_google_cloud_designcenter_v1_GenerateApplicationTemplateAssessmentReportResponse_descriptor = + getDescriptor().getMessageType(5); + internal_static_google_cloud_designcenter_v1_GenerateApplicationTemplateAssessmentReportResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_GenerateApplicationTemplateAssessmentReportResponse_descriptor, + new java.lang.String[] { + "Preview", "AssessmentReport", + }); + internal_static_google_cloud_designcenter_v1_GenerateAssessmentReportRequest_descriptor = + getDescriptor().getMessageType(6); + internal_static_google_cloud_designcenter_v1_GenerateAssessmentReportRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_GenerateAssessmentReportRequest_descriptor, + new java.lang.String[] { + "TerraformPlan", "AdditionalFrameworks", "SpaceName", + }); + internal_static_google_cloud_designcenter_v1_GenerateAssessmentReportResponse_descriptor = + getDescriptor().getMessageType(7); + internal_static_google_cloud_designcenter_v1_GenerateAssessmentReportResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_GenerateAssessmentReportResponse_descriptor, + new java.lang.String[] { + "AssessmentReport", + }); + internal_static_google_cloud_designcenter_v1_GenerateTerraformPlanAssessmentReportRequest_descriptor = + getDescriptor().getMessageType(8); + internal_static_google_cloud_designcenter_v1_GenerateTerraformPlanAssessmentReportRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_GenerateTerraformPlanAssessmentReportRequest_descriptor, + new java.lang.String[] { + "Name", "TerraformPlan", "AdditionalFrameworks", + }); + internal_static_google_cloud_designcenter_v1_GenerateTerraformPlanAssessmentReportResponse_descriptor = + getDescriptor().getMessageType(9); + internal_static_google_cloud_designcenter_v1_GenerateTerraformPlanAssessmentReportResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_GenerateTerraformPlanAssessmentReportResponse_descriptor, + new java.lang.String[] { + "AssessmentReport", + }); + internal_static_google_cloud_designcenter_v1_FetchFrameworksRequest_descriptor = + getDescriptor().getMessageType(10); + internal_static_google_cloud_designcenter_v1_FetchFrameworksRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_FetchFrameworksRequest_descriptor, + new java.lang.String[] { + "Parent", "Projects", "PageSize", "PageToken", "Filter", + }); + internal_static_google_cloud_designcenter_v1_FetchFrameworksResponse_descriptor = + getDescriptor().getMessageType(11); + internal_static_google_cloud_designcenter_v1_FetchFrameworksResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_FetchFrameworksResponse_descriptor, + new java.lang.String[] { + "Frameworks", "NextPageToken", + }); + internal_static_google_cloud_designcenter_v1_GetPolicyRequest_descriptor = + getDescriptor().getMessageType(12); + internal_static_google_cloud_designcenter_v1_GetPolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_GetPolicyRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_designcenter_v1_ListPoliciesRequest_descriptor = + getDescriptor().getMessageType(13); + internal_static_google_cloud_designcenter_v1_ListPoliciesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ListPoliciesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_designcenter_v1_ListPoliciesResponse_descriptor = + getDescriptor().getMessageType(14); + internal_static_google_cloud_designcenter_v1_ListPoliciesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ListPoliciesResponse_descriptor, + new java.lang.String[] { + "Policies", "NextPageToken", + }); + internal_static_google_cloud_designcenter_v1_CreatePolicyRequest_descriptor = + getDescriptor().getMessageType(15); + internal_static_google_cloud_designcenter_v1_CreatePolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_CreatePolicyRequest_descriptor, + new java.lang.String[] { + "Parent", "PolicyId", "Policy", + }); + internal_static_google_cloud_designcenter_v1_UpdatePolicyRequest_descriptor = + getDescriptor().getMessageType(16); + internal_static_google_cloud_designcenter_v1_UpdatePolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_UpdatePolicyRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "Policy", + }); + internal_static_google_cloud_designcenter_v1_DeletePolicyRequest_descriptor = + getDescriptor().getMessageType(17); + internal_static_google_cloud_designcenter_v1_DeletePolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_DeletePolicyRequest_descriptor, + new java.lang.String[] { + "Name", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.config.v1.ConfigProto.getDescriptor(); + com.google.cloud.designcenter.v1.AssessmentProto.getDescriptor(); + com.google.cloud.designcenter.v1.BestPracticesResourcesProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/Catalog.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/Catalog.java new file mode 100644 index 000000000000..da108ec39d52 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/Catalog.java @@ -0,0 +1,1586 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/catalog_management.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * A catalog is a collection of templates.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.Catalog} + */ +@com.google.protobuf.Generated +public final class Catalog extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.Catalog) + CatalogOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "Catalog"); + } + + // Use Catalog.newBuilder() to construct. + private Catalog(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Catalog() { + name_ = ""; + displayName_ = ""; + description_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.CatalogManagementResourcesProto + .internal_static_google_cloud_designcenter_v1_Catalog_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.CatalogManagementResourcesProto + .internal_static_google_cloud_designcenter_v1_Catalog_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.Catalog.class, + com.google.cloud.designcenter.v1.Catalog.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Identifier. The catalog name in the following format:
+   * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + + /** + * + * + *
+   * Identifier. The catalog name in the following format:
+   * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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_ = ""; + + /** + * + * + *
+   * Optional. The catalog display name.
+   * 
+ * + * string display_name = 2 [(.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. The catalog display name.
+   * 
+ * + * string display_name = 2 [(.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 DESCRIPTION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
+   * Optional. The catalog description.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The catalog description.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+   * Output only. The catalog creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. The catalog creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.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 catalog creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.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 = 5; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
+   * Output only. The catalog update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. The catalog update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.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 catalog update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, description_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getUpdateTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, description_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateTime()); + } + 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.designcenter.v1.Catalog)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.Catalog other = (com.google.cloud.designcenter.v1.Catalog) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) 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 (!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(); + 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.Catalog parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.Catalog 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.designcenter.v1.Catalog parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.Catalog parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.Catalog parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.Catalog parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.Catalog parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.Catalog parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.Catalog parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.Catalog parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.Catalog parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.Catalog parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.Catalog 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A catalog is a collection of templates.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.Catalog} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.Catalog) + com.google.cloud.designcenter.v1.CatalogOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.CatalogManagementResourcesProto + .internal_static_google_cloud_designcenter_v1_Catalog_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.CatalogManagementResourcesProto + .internal_static_google_cloud_designcenter_v1_Catalog_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.Catalog.class, + com.google.cloud.designcenter.v1.Catalog.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.Catalog.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + description_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.CatalogManagementResourcesProto + .internal_static_google_cloud_designcenter_v1_Catalog_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.Catalog getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.Catalog.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.Catalog build() { + com.google.cloud.designcenter.v1.Catalog result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.Catalog buildPartial() { + com.google.cloud.designcenter.v1.Catalog result = + new com.google.cloud.designcenter.v1.Catalog(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.Catalog 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_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.Catalog) { + return mergeFrom((com.google.cloud.designcenter.v1.Catalog) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.Catalog other) { + if (other == com.google.cloud.designcenter.v1.Catalog.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.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + 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 34: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + 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_ = ""; + + /** + * + * + *
+     * Identifier. The catalog name in the following format:
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.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; + } + } + + /** + * + * + *
+     * Identifier. The catalog name in the following format:
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + + /** + * + * + *
+     * Identifier. The catalog name in the following format:
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + + /** + * + * + *
+     * Identifier. The catalog name in the following format:
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier. The catalog name in the following format:
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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_ = ""; + + /** + * + * + *
+     * Optional. The catalog display name.
+     * 
+ * + * string display_name = 2 [(.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. The catalog display name.
+     * 
+ * + * string display_name = 2 [(.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. The catalog display name.
+     * 
+ * + * string display_name = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The catalog display name.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The catalog display name.
+     * 
+ * + * string display_name = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
+     * Optional. The catalog description.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The catalog description.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The catalog description.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The catalog description.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The catalog description.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
+     * Output only. The catalog creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Output only. The catalog creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.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 catalog creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The catalog creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The catalog creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The catalog creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000008); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The catalog creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The catalog creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.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 catalog creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + 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.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
+     * Output only. The catalog update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Output only. The catalog update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.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 catalog update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.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_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The catalog update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.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_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The catalog update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The catalog update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000010); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The catalog update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The catalog update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.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 catalog update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.Catalog) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.Catalog) + private static final com.google.cloud.designcenter.v1.Catalog DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.Catalog(); + } + + public static com.google.cloud.designcenter.v1.Catalog getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Catalog parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.Catalog getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CatalogManagementResourcesProto.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CatalogManagementResourcesProto.java new file mode 100644 index 000000000000..dcaa0e0e3319 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CatalogManagementResourcesProto.java @@ -0,0 +1,310 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/catalog_management.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public final class CatalogManagementResourcesProto extends com.google.protobuf.GeneratedFile { + private CatalogManagementResourcesProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "CatalogManagementResourcesProto"); + } + + 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_designcenter_v1_Space_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_Space_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_Space_TagsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_Space_TagsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_Catalog_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_Catalog_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_CatalogTemplate_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_CatalogTemplate_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_CatalogTemplateRevision_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_CatalogTemplateRevision_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_CatalogTemplateRevision_AnnotationsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_CatalogTemplateRevision_AnnotationsEntry_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" + + "5google/cloud/designcenter/v1/catalog_management.proto\022\034google.cloud.designcent" + + "er.v1\032\037google/api/field_behavior.proto\032\031" + + "google/api/resource.proto\032,google/cloud/designcenter/v1/authoring.proto\032(google/" + + "cloud/designcenter/v1/enums.proto\032,google/cloud/designcenter/v1/ingestion.proto\032" + + "+google/cloud/designcenter/v1/metadata.proto\032-google/cloud/designcenter/v1/param" + + "eters.proto\032\037google/protobuf/timestamp.proto\"\213\004\n" + + "\005Space\022\022\n" + + "\004name\030\001 \001(\tB\004\342A\001\010\022\032\n" + + "\014display_name\030\002 \001(\tB\004\342A\001\001\022\031\n" + + "\013description\030\003 \001(\tB\004\342A\001\001\0225\n" + + "\013create_time\030\004" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0225\n" + + "\013update_time\030\005" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022.\n" + + "\033enable_gcp_shared_templates\030\006" + + " \001(\010B\004\342A\001\001H\000\210\001\001\022\030\n\n" + + "gcs_bucket\030\007 \001(\tB\004\342A\001\001\022C\n" + + "\004tags\030\010" + + " \003(\0132-.google.cloud.designcenter.v1.Space.TagsEntryB\006\342A\003\004\005\001\032+\n" + + "\tTagsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001:m\352Aj\n" + + "!designcenter.googleapis.com/Space\0226projects/{p" + + "roject}/locations/{location}/spaces/{space}*\006spaces2\005spaceB\036\n" + + "\034_enable_gcp_shared_templates\"\314\002\n" + + "\007Catalog\022\022\n" + + "\004name\030\001 \001(\tB\004\342A\001\010\022\032\n" + + "\014display_name\030\002 \001(\tB\004\342A\001\001\022\031\n" + + "\013description\030\003 \001(\tB\004\342A\001\001\0225\n" + + "\013create_time\030\004" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0225\n" + + "\013update_time\030\005" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003:\207\001\352A\203\001\n" + + "#designcenter.googleapis.com/Catalog\022Iprojects/{project}/location" + + "s/{location}/spaces/{space}/catalogs/{catalog}*\010catalogs2\007catalog\"\320\004\n" + + "\017CatalogTemplate\022\022\n" + + "\004name\030\001 \001(\tB\004\342A\001\010\022\032\n" + + "\014display_name\030\007 \001(\tB\004\342A\001\001\022\031\n" + + "\013description\030\002 \001(\tB\004\342A\001\001\022\022\n" + + "\004uuid\030\005 \001(\tB\004\342A\001\003\0225\n" + + "\013create_time\030\003" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0225\n" + + "\013update_time\030\004 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022" + + " \n" + + "\022latest_revision_id\030\006 \001(\tB\004\342A\001\003\022O\n" + + "\021template_category\030\010 \001(\0162..google" + + ".cloud.designcenter.v1.TemplateCategoryB\004\342A\001\002\022>\n" + + "\004type\030\t" + + " \001(\0162*.google.cloud.designcenter.v1.TemplateTypeB\004\342A\001\001:\274\001\352A\270\001\n" + + "+designcenter.googleapis.com/CatalogTemplate\022fprojects/{project}/locations/{locatio" + + "n}/spaces/{space}/catalogs/{catalog}/tem" + + "plates/{catalog_template}*\020catalogTemplates2\017catalogTemplate\"\355\017\n" + + "\027CatalogTemplateRevision\022C\n\n" + + "git_source\030\005" + + " \001(\0132\'.google.cloud.designcenter.v1.GitSourceB\004\342A\001\001H\000\022 \n" + + "\016gcs_source_uri\030\024 \001(\tB\006\030\001\342A\001\001H\000\022p\n" + + "$application_template_revision_source\030\013 \001(\tB@\342A\001\001\372A9\n" + + "7designcenter.googleapis.com/ApplicationTemplateRevisionH\000\022k\n" + + "\037developer_connect_source_config\030\017 \001(\0132:.google.clou" + + "d.designcenter.v1.DeveloperConnectSourceConfigB\004\342A\001\001H\000\022?\n" + + "\010oci_repo\030\021 \001(\0132%.googl" + + "e.cloud.designcenter.v1.OciRepoB\004\342A\001\001H\000\022\022\n" + + "\004name\030\001 \001(\tB\004\342A\001\010\022\031\n" + + "\013description\030\016 \001(\tB\004\342A\001\001\022>\n" + + "\004type\030\002" + + " \001(\0162*.google.cloud.designcenter.v1.TemplateTypeB\004\342A\001\001\0225\n" + + "\013create_time\030\006" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0225\n" + + "\013update_time\030\007" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022R\n" + + "\021template_metadata\030\010" + + " \001(\01321.google.cloud.designcenter.v1.TFBlueprintMetadataB\004\342A\001\003\022P\n" + + "\005state\030\t \001(\0162" + + ";.google.cloud.designcenter.v1.CatalogTemplateRevision.StateB\004\342A\001\003\022h\n" + + "\035application_template_revision\030\014 \001(\0132;.google.cloud" + + ".designcenter.v1.SerializedApplicationTemplateB\004\342A\001\003\022R\n" + + "\023helm_chart_metadata\030\020 \001(" + + "\0132/.google.cloud.designcenter.v1.HelmChartMetadataB\004\342A\001\003\022\022\n" + + "\004uuid\030\r" + + " \001(\tB\004\342A\001\003\022I\n" + + "\016metadata_input\030\022" + + " \001(\0132+.google.cloud.designcenter.v1.MetadataInputB\004\342A\001\001\022O\n" + + "\021template_category\030\023" + + " \001(\0162..google.cloud.designcenter.v1.TemplateCategoryB\004\342A\001\003\022L\n" + + "\020logical_products\030\025" + + " \003(\0132,.google.cloud.designcenter.v1.LogicalProductB\004\342A\001\003\022a\n" + + "\013annotations\030\026 \003(\0132F.google.cloud.designcenter." + + "v1.CatalogTemplateRevision.AnnotationsEntryB\004\342A\001\001\022O\n" + + "\021inferred_metadata\030\027 \001(\0132..g" + + "oogle.cloud.designcenter.v1.InferredMetadataB\004\342A\001\003\022H\n" + + "\016resource_types\030\030 \003(\0132*.goo" + + "gle.cloud.designcenter.v1.ResourceTypeB\004\342A\001\003\022A\n\n" + + "iac_source\030\033" + + " \001(\0162\'.google.cloud.designcenter.v1.IACSourceB\004\342A\001\003\022M\n" + + "\026application_parameters\030\034" + + " \003(\0132\'.google.cloud.designcenter.v1.ParameterB\004\342A\001\001\0322\n" + + "\020AnnotationsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"G\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\016\n\n" + + "VALIDATING\020\001\022\n\n" + + "\006ACTIVE\020\002\022\013\n" + + "\007INVALID\020\003:\351\001\352A\345\001\n" + + "3designcenter.googleapis.com/CatalogTemplateRevision\022{projects/{project}/loca" + + "tions/{location}/spaces/{space}/catalogs/{catalog}/templates/{catalog_template}/" + + "revisions/{revision}*\030catalogTemplateRevisions2\027catalogTemplateRevisionB\023\n" + + "\021artifact_locationB\353\001\n" + + " com.google.cloud.designcenter.v1B\037CatalogManagementResourcesPro" + + "toP\001ZDcloud.google.com/go/designcenter/a" + + "piv1/designcenterpb;designcenterpb\252\002\034Goo" + + "gle.Cloud.DesignCenter.V1\312\002\034Google\\Cloud" + + "\\DesignCenter\\V1\352\002\037Google::Cloud::DesignCenter::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.designcenter.v1.AuthoringResourcesProto.getDescriptor(), + com.google.cloud.designcenter.v1.EnumsProto.getDescriptor(), + com.google.cloud.designcenter.v1.IngestionProto.getDescriptor(), + com.google.cloud.designcenter.v1.MetadataProto.getDescriptor(), + com.google.cloud.designcenter.v1.ParametersProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_designcenter_v1_Space_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_designcenter_v1_Space_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_Space_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "Description", + "CreateTime", + "UpdateTime", + "EnableGcpSharedTemplates", + "GcsBucket", + "Tags", + }); + internal_static_google_cloud_designcenter_v1_Space_TagsEntry_descriptor = + internal_static_google_cloud_designcenter_v1_Space_descriptor.getNestedType(0); + internal_static_google_cloud_designcenter_v1_Space_TagsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_Space_TagsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_designcenter_v1_Catalog_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_designcenter_v1_Catalog_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_Catalog_descriptor, + new java.lang.String[] { + "Name", "DisplayName", "Description", "CreateTime", "UpdateTime", + }); + internal_static_google_cloud_designcenter_v1_CatalogTemplate_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_designcenter_v1_CatalogTemplate_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_CatalogTemplate_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "Description", + "Uuid", + "CreateTime", + "UpdateTime", + "LatestRevisionId", + "TemplateCategory", + "Type", + }); + internal_static_google_cloud_designcenter_v1_CatalogTemplateRevision_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_cloud_designcenter_v1_CatalogTemplateRevision_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_CatalogTemplateRevision_descriptor, + new java.lang.String[] { + "GitSource", + "GcsSourceUri", + "ApplicationTemplateRevisionSource", + "DeveloperConnectSourceConfig", + "OciRepo", + "Name", + "Description", + "Type", + "CreateTime", + "UpdateTime", + "TemplateMetadata", + "State", + "ApplicationTemplateRevision", + "HelmChartMetadata", + "Uuid", + "MetadataInput", + "TemplateCategory", + "LogicalProducts", + "Annotations", + "InferredMetadata", + "ResourceTypes", + "IacSource", + "ApplicationParameters", + "ArtifactLocation", + }); + internal_static_google_cloud_designcenter_v1_CatalogTemplateRevision_AnnotationsEntry_descriptor = + internal_static_google_cloud_designcenter_v1_CatalogTemplateRevision_descriptor + .getNestedType(0); + internal_static_google_cloud_designcenter_v1_CatalogTemplateRevision_AnnotationsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_CatalogTemplateRevision_AnnotationsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.designcenter.v1.AuthoringResourcesProto.getDescriptor(); + com.google.cloud.designcenter.v1.EnumsProto.getDescriptor(); + com.google.cloud.designcenter.v1.IngestionProto.getDescriptor(); + com.google.cloud.designcenter.v1.MetadataProto.getDescriptor(); + com.google.cloud.designcenter.v1.ParametersProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CatalogManagementRpcMessagesProto.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CatalogManagementRpcMessagesProto.java new file mode 100644 index 000000000000..afb109539e7c --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CatalogManagementRpcMessagesProto.java @@ -0,0 +1,540 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/catalog_management_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public final class CatalogManagementRpcMessagesProto extends com.google.protobuf.GeneratedFile { + private CatalogManagementRpcMessagesProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "CatalogManagementRpcMessagesProto"); + } + + 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_designcenter_v1_ListSpacesRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ListSpacesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_ListSpacesResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ListSpacesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_GetSpaceRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_GetSpaceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_CreateSpaceRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_CreateSpaceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_UpdateSpaceRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_UpdateSpaceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_DeleteSpaceRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_DeleteSpaceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_GetCatalogRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_GetCatalogRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_ListCatalogsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ListCatalogsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_ListCatalogsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ListCatalogsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_CreateCatalogRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_CreateCatalogRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_UpdateCatalogRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_UpdateCatalogRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_DeleteCatalogRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_DeleteCatalogRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_CreateCatalogTemplateRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_CreateCatalogTemplateRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_GetCatalogTemplateRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_GetCatalogTemplateRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_ListCatalogTemplatesRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ListCatalogTemplatesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_ListCatalogTemplatesResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ListCatalogTemplatesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_UpdateCatalogTemplateRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_UpdateCatalogTemplateRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_DeleteCatalogTemplateRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_DeleteCatalogTemplateRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_CreateCatalogTemplateRevisionRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_CreateCatalogTemplateRevisionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_GetCatalogTemplateRevisionRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_GetCatalogTemplateRevisionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_ListCatalogTemplateRevisionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ListCatalogTemplateRevisionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_ListCatalogTemplateRevisionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ListCatalogTemplateRevisionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_DeleteCatalogTemplateRevisionRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_DeleteCatalogTemplateRevisionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_FetchCatalogTemplateRevisionTFSourceRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_FetchCatalogTemplateRevisionTFSourceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_FetchCatalogTemplateRevisionTFSourceResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_FetchCatalogTemplateRevisionTFSourceResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_FetchCatalogTemplateRevisionAssessmentReportRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_FetchCatalogTemplateRevisionAssessmentReportRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_FetchCatalogTemplateRevisionAssessmentReportResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_FetchCatalogTemplateRevisionAssessmentReportResponse_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/designcenter/v1/catalog_management_messages.proto\022\034google.cloud.d" + + "esigncenter.v1\032\037google/api/field_behavio" + + "r.proto\032\031google/api/resource.proto\0321goog" + + "le/cloud/designcenter/v1/best_practices.proto\0325google/cloud/designcenter/v1/cata" + + "log_management.proto\032&google/cloud/designcenter/v1/iac.proto\032" + + " google/protobuf/field_mask.proto\"\260\001\n" + + "\021ListSpacesRequest\022:\n" + + "\006parent\030\001 \001(" + + "\tB*\342A\001\002\372A#\022!designcenter.googleapis.com/Space\022\027\n" + + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n" + + "page_token\030\003 \001(\tB\004\342A\001\001\022\024\n" + + "\006filter\030\004 \001(\tB\004\342A\001\001\022\026\n" + + "\010order_by\030\005 \001(\tB\004\342A\001\001\"}\n" + + "\022ListSpacesResponse\0223\n" + + "\006spaces\030\001 \003(\0132#.google.cloud.designcenter.v1.Space\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\031\n" + + "\013unreachable\030\003 \003(\tB\004\342A\001\006\"K\n" + + "\017GetSpaceRequest\0228\n" + + "\004name\030\001 \001(\tB*\342A\001\002\372A#\n" + + "!designcenter.googleapis.com/Space\"\242\001\n" + + "\022CreateSpaceRequest\022:\n" + + "\006parent\030\001 \001(\tB*\342A" + + "\001\002\372A#\022!designcenter.googleapis.com/Space\022\026\n" + + "\010space_id\030\002 \001(\tB\004\342A\001\002\0228\n" + + "\005space\030\003 \001(\0132" + + "#.google.cloud.designcenter.v1.SpaceB\004\342A\001\002\"\205\001\n" + + "\022UpdateSpaceRequest\0225\n" + + "\013update_mask\030\001" + + " \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\001\0228\n" + + "\005space\030\002" + + " \001(\0132#.google.cloud.designcenter.v1.SpaceB\004\342A\001\002\"c\n" + + "\022DeleteSpaceRequest\0228\n" + + "\004name\030\001 \001(\tB*\342A\001\002\372A#\n" + + "!designcenter.googleapis.com/Space\022\023\n" + + "\005force\030\002 \001(\010B\004\342A\001\001\"O\n" + + "\021GetCatalogRequest\022:\n" + + "\004name\030\001 \001(\tB,\342A\001\002\372A%\n" + + "#designcenter.googleapis.com/Catalog\"\264\001\n" + + "\023ListCatalogsRequest\022<\n" + + "\006parent\030\001 \001(\t" + + "B,\342A\001\002\372A%\022#designcenter.googleapis.com/Catalog\022\027\n" + + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n" + + "page_token\030\003 \001(\tB\004\342A\001\001\022\024\n" + + "\006filter\030\004 \001(\tB\004\342A\001\001\022\026\n" + + "\010order_by\030\005 \001(\tB\004\342A\001\001\"h\n" + + "\024ListCatalogsResponse\0227\n" + + "\010catalogs\030\001 \003(\0132%.google.cloud.designcenter.v1.Catalog\022\027\n" + + "\017next_page_token\030\002 \001(\t\"\254\001\n" + + "\024CreateCatalogRequest\022<\n" + + "\006parent\030\001 \001(" + + "\tB,\342A\001\002\372A%\022#designcenter.googleapis.com/Catalog\022\030\n\n" + + "catalog_id\030\002 \001(\tB\004\342A\001\002\022<\n" + + "\007catalog\030\003" + + " \001(\0132%.google.cloud.designcenter.v1.CatalogB\004\342A\001\002\"\213\001\n" + + "\024UpdateCatalogRequest\0225\n" + + "\013update_mask\030\001" + + " \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\001\022<\n" + + "\007catalog\030\002 \001(" + + "\0132%.google.cloud.designcenter.v1.CatalogB\004\342A\001\002\"g\n" + + "\024DeleteCatalogRequest\022:\n" + + "\004name\030\001 \001(\tB,\342A\001\002\372A%\n" + + "#designcenter.googleapis.com/Catalog\022\023\n" + + "\005force\030\002 \001(\010B\004\342A\001\001\"\326\001\n" + + "\034CreateCatalogTemplateRequest\022D\n" + + "\006parent\030\001 \001(\t" + + "B4\342A\001\002\372A-\022+designcenter.googleapis.com/CatalogTemplate\022!\n" + + "\023catalog_template_id\030\002 \001(\tB\004\342A\001\002\022M\n" + + "\020catalog_template\030\003 \001(\0132-.go" + + "ogle.cloud.designcenter.v1.CatalogTemplateB\004\342A\001\002\"_\n" + + "\031GetCatalogTemplateRequest\022B\n" + + "\004name\030\001 \001(\tB4\342A\001\002\372A-\n" + + "+designcenter.googleapis.com/CatalogTemplate\"\304\001\n" + + "\033ListCatalogTemplatesRequest\022D\n" + + "\006parent\030\001 \001(\tB4\342A\001\002\372" + + "A-\022+designcenter.googleapis.com/CatalogTemplate\022\027\n" + + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n" + + "page_token\030\003 \001(\tB\004\342A\001\001\022\024\n" + + "\006filter\030\004 \001(\tB\004\342A\001\001\022\026\n" + + "\010order_by\030\005 \001(\tB\004\342A\001\001\"\201\001\n" + + "\034ListCatalogTemplatesResponse\022H\n" + + "\021catalog_templates\030\001" + + " \003(\0132-.google.cloud.designcenter.v1.CatalogTemplate\022\027\n" + + "\017next_page_token\030\002 \001(\t\"\244\001\n" + + "\034UpdateCatalogTemplateRequest\022M\n" + + "\020catalog_template\030\002" + + " \001(\0132-.google.cloud.designcenter.v1.CatalogTemplateB\004\342A\001\002\0225\n" + + "\013update_mask\030\001" + + " \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\001\"w\n" + + "\034DeleteCatalogTemplateRequest\022B\n" + + "\004name\030\001 \001(\tB4\342A\001\002\372A-\n" + + "+designcenter.googleapis.com/CatalogTemplate\022\023\n" + + "\005force\030\002 \001(\010B\004\342A\001\001\"\200\002\n" + + "$CreateCatalogTemplateRevisionRequest\022L\n" + + "\006parent\030\001 \001(\tB<\342A\001\002\372A5\0223designce" + + "nter.googleapis.com/CatalogTemplateRevision\022*\n" + + "\034catalog_template_revision_id\030\002 \001(\tB\004\342A\001\002\022^\n" + + "\031catalog_template_revision\030\003 \001" + + "(\01325.google.cloud.designcenter.v1.CatalogTemplateRevisionB\004\342A\001\002\"o\n" + + "!GetCatalogTemplateRevisionRequest\022J\n" + + "\004name\030\001 \001(\tB<\342A\001\002\372A5\n" + + "3designcenter.googleapis.com/CatalogTemplateRevision\"\324\001\n" + + "#ListCatalogTemplateRevisionsRequest\022L\n" + + "\006parent\030\001 \001(\tB<\342A\001\002\372A" + + "5\0223designcenter.googleapis.com/CatalogTemplateRevision\022\027\n" + + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n" + + "page_token\030\003 \001(\tB\004\342A\001\001\022\024\n" + + "\006filter\030\004 \001(\tB\004\342A\001\001\022\026\n" + + "\010order_by\030\005 \001(\tB\004\342A\001\001\"\257\001\n" + + "$ListCatalogTemplateRevisionsResponse\022Y\n" + + "\032catalog_template_revisions\030\001 \003(\01325.google.cl" + + "oud.designcenter.v1.CatalogTemplateRevision\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\023\n" + + "\013unreachable\030\003 \003(\t\"r\n" + + "$DeleteCatalogTemplateRevisionRequest\022J\n" + + "\004name\030\001 \001(\tB<\342A\001\002\372A5\n" + + "3designcenter.googleapis.com/CatalogTemplateRevision\"y\n" + + "+FetchCatalogTemplateRevisionTFSourceRequest\022J\n" + + "\004name\030\001 \001(\tB<\342A\001\002\372A5\n" + + "3designcenter.googleapis.com/CatalogTemplateRevision\"\262\001\n" + + ",FetchCatalogTemplateRevisionTFSourceResponse\022B\n" + + "\013root_module\030\001 \001(\0132-" + + ".google.cloud.designcenter.v1.TerraformModule\022>\n" + + "\007modules\030\002" + + " \003(\0132-.google.cloud.designcenter.v1.TerraformModule\"\201\001\n" + + "3FetchCatalogTemplateRevisionAssessmentReportRequest\022J\n" + + "\004name\030\001 \001(\tB<\342A\001\002\372A5\n" + + "3designcenter.googleapis.com/CatalogTemplateRevision\"\201\001\n" + + "4FetchCatalogTemplateRevisionAssessmentReportResponse\022I\n" + + "\021assessment_report\030\001" + + " \001(\0132..google.cloud.designcenter.v1.AssessmentReportB\355\001\n" + + " com.google.cloud.designcenter.v1B!CatalogManagementRpcMessages" + + "ProtoP\001ZDcloud.google.com/go/designcente" + + "r/apiv1/designcenterpb;designcenterpb\252\002\034" + + "Google.Cloud.DesignCenter.V1\312\002\034Google\\Cl" + + "oud\\DesignCenter\\V1\352\002\037Google::Cloud::DesignCenter::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.designcenter.v1.BestPracticesResourcesProto.getDescriptor(), + com.google.cloud.designcenter.v1.CatalogManagementResourcesProto.getDescriptor(), + com.google.cloud.designcenter.v1.IacProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_designcenter_v1_ListSpacesRequest_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_designcenter_v1_ListSpacesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ListSpacesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_designcenter_v1_ListSpacesResponse_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_designcenter_v1_ListSpacesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ListSpacesResponse_descriptor, + new java.lang.String[] { + "Spaces", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_designcenter_v1_GetSpaceRequest_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_designcenter_v1_GetSpaceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_GetSpaceRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_designcenter_v1_CreateSpaceRequest_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_cloud_designcenter_v1_CreateSpaceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_CreateSpaceRequest_descriptor, + new java.lang.String[] { + "Parent", "SpaceId", "Space", + }); + internal_static_google_cloud_designcenter_v1_UpdateSpaceRequest_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_cloud_designcenter_v1_UpdateSpaceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_UpdateSpaceRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "Space", + }); + internal_static_google_cloud_designcenter_v1_DeleteSpaceRequest_descriptor = + getDescriptor().getMessageType(5); + internal_static_google_cloud_designcenter_v1_DeleteSpaceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_DeleteSpaceRequest_descriptor, + new java.lang.String[] { + "Name", "Force", + }); + internal_static_google_cloud_designcenter_v1_GetCatalogRequest_descriptor = + getDescriptor().getMessageType(6); + internal_static_google_cloud_designcenter_v1_GetCatalogRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_GetCatalogRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_designcenter_v1_ListCatalogsRequest_descriptor = + getDescriptor().getMessageType(7); + internal_static_google_cloud_designcenter_v1_ListCatalogsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ListCatalogsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_designcenter_v1_ListCatalogsResponse_descriptor = + getDescriptor().getMessageType(8); + internal_static_google_cloud_designcenter_v1_ListCatalogsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ListCatalogsResponse_descriptor, + new java.lang.String[] { + "Catalogs", "NextPageToken", + }); + internal_static_google_cloud_designcenter_v1_CreateCatalogRequest_descriptor = + getDescriptor().getMessageType(9); + internal_static_google_cloud_designcenter_v1_CreateCatalogRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_CreateCatalogRequest_descriptor, + new java.lang.String[] { + "Parent", "CatalogId", "Catalog", + }); + internal_static_google_cloud_designcenter_v1_UpdateCatalogRequest_descriptor = + getDescriptor().getMessageType(10); + internal_static_google_cloud_designcenter_v1_UpdateCatalogRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_UpdateCatalogRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "Catalog", + }); + internal_static_google_cloud_designcenter_v1_DeleteCatalogRequest_descriptor = + getDescriptor().getMessageType(11); + internal_static_google_cloud_designcenter_v1_DeleteCatalogRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_DeleteCatalogRequest_descriptor, + new java.lang.String[] { + "Name", "Force", + }); + internal_static_google_cloud_designcenter_v1_CreateCatalogTemplateRequest_descriptor = + getDescriptor().getMessageType(12); + internal_static_google_cloud_designcenter_v1_CreateCatalogTemplateRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_CreateCatalogTemplateRequest_descriptor, + new java.lang.String[] { + "Parent", "CatalogTemplateId", "CatalogTemplate", + }); + internal_static_google_cloud_designcenter_v1_GetCatalogTemplateRequest_descriptor = + getDescriptor().getMessageType(13); + internal_static_google_cloud_designcenter_v1_GetCatalogTemplateRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_GetCatalogTemplateRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_designcenter_v1_ListCatalogTemplatesRequest_descriptor = + getDescriptor().getMessageType(14); + internal_static_google_cloud_designcenter_v1_ListCatalogTemplatesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ListCatalogTemplatesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_designcenter_v1_ListCatalogTemplatesResponse_descriptor = + getDescriptor().getMessageType(15); + internal_static_google_cloud_designcenter_v1_ListCatalogTemplatesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ListCatalogTemplatesResponse_descriptor, + new java.lang.String[] { + "CatalogTemplates", "NextPageToken", + }); + internal_static_google_cloud_designcenter_v1_UpdateCatalogTemplateRequest_descriptor = + getDescriptor().getMessageType(16); + internal_static_google_cloud_designcenter_v1_UpdateCatalogTemplateRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_UpdateCatalogTemplateRequest_descriptor, + new java.lang.String[] { + "CatalogTemplate", "UpdateMask", + }); + internal_static_google_cloud_designcenter_v1_DeleteCatalogTemplateRequest_descriptor = + getDescriptor().getMessageType(17); + internal_static_google_cloud_designcenter_v1_DeleteCatalogTemplateRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_DeleteCatalogTemplateRequest_descriptor, + new java.lang.String[] { + "Name", "Force", + }); + internal_static_google_cloud_designcenter_v1_CreateCatalogTemplateRevisionRequest_descriptor = + getDescriptor().getMessageType(18); + internal_static_google_cloud_designcenter_v1_CreateCatalogTemplateRevisionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_CreateCatalogTemplateRevisionRequest_descriptor, + new java.lang.String[] { + "Parent", "CatalogTemplateRevisionId", "CatalogTemplateRevision", + }); + internal_static_google_cloud_designcenter_v1_GetCatalogTemplateRevisionRequest_descriptor = + getDescriptor().getMessageType(19); + internal_static_google_cloud_designcenter_v1_GetCatalogTemplateRevisionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_GetCatalogTemplateRevisionRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_designcenter_v1_ListCatalogTemplateRevisionsRequest_descriptor = + getDescriptor().getMessageType(20); + internal_static_google_cloud_designcenter_v1_ListCatalogTemplateRevisionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ListCatalogTemplateRevisionsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_designcenter_v1_ListCatalogTemplateRevisionsResponse_descriptor = + getDescriptor().getMessageType(21); + internal_static_google_cloud_designcenter_v1_ListCatalogTemplateRevisionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ListCatalogTemplateRevisionsResponse_descriptor, + new java.lang.String[] { + "CatalogTemplateRevisions", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_designcenter_v1_DeleteCatalogTemplateRevisionRequest_descriptor = + getDescriptor().getMessageType(22); + internal_static_google_cloud_designcenter_v1_DeleteCatalogTemplateRevisionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_DeleteCatalogTemplateRevisionRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_designcenter_v1_FetchCatalogTemplateRevisionTFSourceRequest_descriptor = + getDescriptor().getMessageType(23); + internal_static_google_cloud_designcenter_v1_FetchCatalogTemplateRevisionTFSourceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_FetchCatalogTemplateRevisionTFSourceRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_designcenter_v1_FetchCatalogTemplateRevisionTFSourceResponse_descriptor = + getDescriptor().getMessageType(24); + internal_static_google_cloud_designcenter_v1_FetchCatalogTemplateRevisionTFSourceResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_FetchCatalogTemplateRevisionTFSourceResponse_descriptor, + new java.lang.String[] { + "RootModule", "Modules", + }); + internal_static_google_cloud_designcenter_v1_FetchCatalogTemplateRevisionAssessmentReportRequest_descriptor = + getDescriptor().getMessageType(25); + internal_static_google_cloud_designcenter_v1_FetchCatalogTemplateRevisionAssessmentReportRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_FetchCatalogTemplateRevisionAssessmentReportRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_designcenter_v1_FetchCatalogTemplateRevisionAssessmentReportResponse_descriptor = + getDescriptor().getMessageType(26); + internal_static_google_cloud_designcenter_v1_FetchCatalogTemplateRevisionAssessmentReportResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_FetchCatalogTemplateRevisionAssessmentReportResponse_descriptor, + new java.lang.String[] { + "AssessmentReport", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.designcenter.v1.BestPracticesResourcesProto.getDescriptor(); + com.google.cloud.designcenter.v1.CatalogManagementResourcesProto.getDescriptor(); + com.google.cloud.designcenter.v1.IacProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CatalogName.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CatalogName.java new file mode 100644 index 000000000000..17026f278f57 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CatalogName.java @@ -0,0 +1,260 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.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; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked +@Generated("by gapic-generator-java") +public class CatalogName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_SPACE_CATALOG = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/spaces/{space}/catalogs/{catalog}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String space; + private final String catalog; + + @Deprecated + protected CatalogName() { + project = null; + location = null; + space = null; + catalog = null; + } + + private CatalogName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + space = Preconditions.checkNotNull(builder.getSpace()); + catalog = Preconditions.checkNotNull(builder.getCatalog()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getSpace() { + return space; + } + + public String getCatalog() { + return catalog; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static CatalogName of(String project, String location, String space, String catalog) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setSpace(space) + .setCatalog(catalog) + .build(); + } + + public static String format(String project, String location, String space, String catalog) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setSpace(space) + .setCatalog(catalog) + .build() + .toString(); + } + + public static @Nullable CatalogName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_SPACE_CATALOG.validatedMatch( + formattedString, "CatalogName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("space"), + matchMap.get("catalog")); + } + + 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<@Nullable CatalogName> values) { + List list = new ArrayList<>(values.size()); + for (CatalogName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_SPACE_CATALOG.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 (space != null) { + fieldMapBuilder.put("space", space); + } + if (catalog != null) { + fieldMapBuilder.put("catalog", catalog); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_SPACE_CATALOG.instantiate( + "project", project, "location", location, "space", space, "catalog", catalog); + } + + @Override + public boolean equals(@Nullable Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + CatalogName that = ((CatalogName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.space, that.space) + && Objects.equals(this.catalog, that.catalog); + } + 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(space); + h *= 1000003; + h ^= Objects.hashCode(catalog); + return h; + } + + /** Builder for projects/{project}/locations/{location}/spaces/{space}/catalogs/{catalog}. */ + public static class Builder { + private String project; + private String location; + private String space; + private String catalog; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getSpace() { + return space; + } + + public String getCatalog() { + return catalog; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setSpace(String space) { + this.space = space; + return this; + } + + public Builder setCatalog(String catalog) { + this.catalog = catalog; + return this; + } + + private Builder(CatalogName catalogName) { + this.project = catalogName.project; + this.location = catalogName.location; + this.space = catalogName.space; + this.catalog = catalogName.catalog; + } + + public CatalogName build() { + return new CatalogName(this); + } + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CatalogOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CatalogOrBuilder.java new file mode 100644 index 000000000000..e774ee0068e0 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CatalogOrBuilder.java @@ -0,0 +1,188 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/catalog_management.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface CatalogOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.Catalog) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier. The catalog name in the following format:
+   * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Identifier. The catalog name in the following format:
+   * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. The catalog display name.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
+   * Optional. The catalog display name.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Optional. The catalog description.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
+   * Optional. The catalog description.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Output only. The catalog creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
+   * Output only. The catalog creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
+   * Output only. The catalog creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The catalog update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
+   * Output only. The catalog update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
+   * Output only. The catalog update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CatalogTemplate.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CatalogTemplate.java new file mode 100644 index 000000000000..c72faedd9287 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CatalogTemplate.java @@ -0,0 +1,2319 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/catalog_management.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * A template inside a catalog.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.CatalogTemplate} + */ +@com.google.protobuf.Generated +public final class CatalogTemplate extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.CatalogTemplate) + CatalogTemplateOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "CatalogTemplate"); + } + + // Use CatalogTemplate.newBuilder() to construct. + private CatalogTemplate(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CatalogTemplate() { + name_ = ""; + displayName_ = ""; + description_ = ""; + uuid_ = ""; + latestRevisionId_ = ""; + templateCategory_ = 0; + type_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.CatalogManagementResourcesProto + .internal_static_google_cloud_designcenter_v1_CatalogTemplate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.CatalogManagementResourcesProto + .internal_static_google_cloud_designcenter_v1_CatalogTemplate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.CatalogTemplate.class, + com.google.cloud.designcenter.v1.CatalogTemplate.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Identifier. The catalog template name in following format:
+   * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + + /** + * + * + *
+   * Identifier. The catalog template name in following format:
+   * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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 = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
+   * Optional. The display name of a catalog template.
+   * 
+ * + * 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. The display name of a catalog template.
+   * 
+ * + * 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 DESCRIPTION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
+   * Optional. The catalog template description.
+   * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The catalog template description.
+   * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UUID_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object uuid_ = ""; + + /** + * + * + *
+   * Output only. The template revisions UUID.
+   * 
+ * + * string uuid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uuid. + */ + @java.lang.Override + public java.lang.String getUuid() { + java.lang.Object ref = uuid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uuid_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The template revisions UUID.
+   * 
+ * + * string uuid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uuid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUuidBytes() { + java.lang.Object ref = uuid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+   * Output only. The catalog template creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. The catalog template creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.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 catalog template creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.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 = 4; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
+   * Output only. The catalog template update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. The catalog template update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.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 catalog template update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.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 LATEST_REVISION_ID_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object latestRevisionId_ = ""; + + /** + * + * + *
+   * Output only. Latest revision of the template.
+   * 
+ * + * string latest_revision_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The latestRevisionId. + */ + @java.lang.Override + public java.lang.String getLatestRevisionId() { + java.lang.Object ref = latestRevisionId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + latestRevisionId_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. Latest revision of the template.
+   * 
+ * + * string latest_revision_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for latestRevisionId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLatestRevisionIdBytes() { + java.lang.Object ref = latestRevisionId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + latestRevisionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TEMPLATE_CATEGORY_FIELD_NUMBER = 8; + private int templateCategory_ = 0; + + /** + * + * + *
+   * Required. The category of the Application Design Center application
+   * template.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TemplateCategory template_category = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for templateCategory. + */ + @java.lang.Override + public int getTemplateCategoryValue() { + return templateCategory_; + } + + /** + * + * + *
+   * Required. The category of the Application Design Center application
+   * template.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TemplateCategory template_category = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The templateCategory. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TemplateCategory getTemplateCategory() { + com.google.cloud.designcenter.v1.TemplateCategory result = + com.google.cloud.designcenter.v1.TemplateCategory.forNumber(templateCategory_); + return result == null ? com.google.cloud.designcenter.v1.TemplateCategory.UNRECOGNIZED : result; + } + + public static final int TYPE_FIELD_NUMBER = 9; + private int type_ = 0; + + /** + * + * + *
+   * Optional. The Application Design Center application template type.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TemplateType type = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
+   * Optional. The Application Design Center application template type.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TemplateType type = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TemplateType getType() { + com.google.cloud.designcenter.v1.TemplateType result = + com.google.cloud.designcenter.v1.TemplateType.forNumber(type_); + return result == null ? com.google.cloud.designcenter.v1.TemplateType.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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, description_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uuid_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, uuid_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(latestRevisionId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, latestRevisionId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, displayName_); + } + if (templateCategory_ + != com.google.cloud.designcenter.v1.TemplateCategory.TEMPLATE_CATEGORY_UNSPECIFIED + .getNumber()) { + output.writeEnum(8, templateCategory_); + } + if (type_ + != com.google.cloud.designcenter.v1.TemplateType.TEMPLATE_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(9, type_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, description_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uuid_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, uuid_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(latestRevisionId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, latestRevisionId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, displayName_); + } + if (templateCategory_ + != com.google.cloud.designcenter.v1.TemplateCategory.TEMPLATE_CATEGORY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, templateCategory_); + } + if (type_ + != com.google.cloud.designcenter.v1.TemplateType.TEMPLATE_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, type_); + } + 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.designcenter.v1.CatalogTemplate)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.CatalogTemplate other = + (com.google.cloud.designcenter.v1.CatalogTemplate) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getUuid().equals(other.getUuid())) 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 (!getLatestRevisionId().equals(other.getLatestRevisionId())) return false; + if (templateCategory_ != other.templateCategory_) return false; + if (type_ != other.type_) 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) + UUID_FIELD_NUMBER; + hash = (53 * hash) + getUuid().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) + LATEST_REVISION_ID_FIELD_NUMBER; + hash = (53 * hash) + getLatestRevisionId().hashCode(); + hash = (37 * hash) + TEMPLATE_CATEGORY_FIELD_NUMBER; + hash = (53 * hash) + templateCategory_; + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.CatalogTemplate parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.CatalogTemplate 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.designcenter.v1.CatalogTemplate parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.CatalogTemplate parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.CatalogTemplate parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.CatalogTemplate parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.CatalogTemplate parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.CatalogTemplate parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.CatalogTemplate parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.CatalogTemplate parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.CatalogTemplate parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.CatalogTemplate parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.CatalogTemplate 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A template inside a catalog.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.CatalogTemplate} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.CatalogTemplate) + com.google.cloud.designcenter.v1.CatalogTemplateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.CatalogManagementResourcesProto + .internal_static_google_cloud_designcenter_v1_CatalogTemplate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.CatalogManagementResourcesProto + .internal_static_google_cloud_designcenter_v1_CatalogTemplate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.CatalogTemplate.class, + com.google.cloud.designcenter.v1.CatalogTemplate.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.CatalogTemplate.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + description_ = ""; + uuid_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + latestRevisionId_ = ""; + templateCategory_ = 0; + type_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.CatalogManagementResourcesProto + .internal_static_google_cloud_designcenter_v1_CatalogTemplate_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.CatalogTemplate getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.CatalogTemplate.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.CatalogTemplate build() { + com.google.cloud.designcenter.v1.CatalogTemplate result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.CatalogTemplate buildPartial() { + com.google.cloud.designcenter.v1.CatalogTemplate result = + new com.google.cloud.designcenter.v1.CatalogTemplate(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.CatalogTemplate 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.uuid_ = uuid_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.latestRevisionId_ = latestRevisionId_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.templateCategory_ = templateCategory_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.type_ = type_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.CatalogTemplate) { + return mergeFrom((com.google.cloud.designcenter.v1.CatalogTemplate) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.CatalogTemplate other) { + if (other == com.google.cloud.designcenter.v1.CatalogTemplate.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.getUuid().isEmpty()) { + uuid_ = other.uuid_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (!other.getLatestRevisionId().isEmpty()) { + latestRevisionId_ = other.latestRevisionId_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (other.templateCategory_ != 0) { + setTemplateCategoryValue(other.getTemplateCategoryValue()); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + 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: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 34 + case 42: + { + uuid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 50: + { + latestRevisionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 50 + case 58: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 58 + case 64: + { + templateCategory_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 72: + { + type_ = input.readEnum(); + bitField0_ |= 0x00000100; + break; + } // case 72 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Identifier. The catalog template name in following format:
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.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; + } + } + + /** + * + * + *
+     * Identifier. The catalog template name in following format:
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + + /** + * + * + *
+     * Identifier. The catalog template name in following format:
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + + /** + * + * + *
+     * Identifier. The catalog template name in following format:
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier. The catalog template name in following format:
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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_ = ""; + + /** + * + * + *
+     * Optional. The display name of a catalog template.
+     * 
+ * + * 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. The display name of a catalog template.
+     * 
+ * + * 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. The display name of a catalog template.
+     * 
+ * + * 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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The display name of a catalog template.
+     * 
+ * + * string display_name = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The display name of a catalog template.
+     * 
+ * + * 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_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
+     * Optional. The catalog template description.
+     * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The catalog template description.
+     * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The catalog template description.
+     * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The catalog template description.
+     * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The catalog template description.
+     * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object uuid_ = ""; + + /** + * + * + *
+     * Output only. The template revisions UUID.
+     * 
+ * + * string uuid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uuid. + */ + public java.lang.String getUuid() { + java.lang.Object ref = uuid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uuid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The template revisions UUID.
+     * 
+ * + * string uuid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uuid. + */ + public com.google.protobuf.ByteString getUuidBytes() { + java.lang.Object ref = uuid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The template revisions UUID.
+     * 
+ * + * string uuid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The uuid to set. + * @return This builder for chaining. + */ + public Builder setUuid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uuid_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The template revisions UUID.
+     * 
+ * + * string uuid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearUuid() { + uuid_ = getDefaultInstance().getUuid(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The template revisions UUID.
+     * 
+ * + * string uuid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for uuid to set. + * @return This builder for chaining. + */ + public Builder setUuidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uuid_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
+     * Output only. The catalog template creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Output only. The catalog template creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.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 catalog template creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The catalog template creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The catalog template creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The catalog template creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000010); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The catalog template creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The catalog template creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.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 catalog template creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + 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.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
+     * Output only. The catalog template update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+     * Output only. The catalog template update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.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 catalog template update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The catalog template update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The catalog template update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The catalog template update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000020); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The catalog template update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The catalog template update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.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 catalog template update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private java.lang.Object latestRevisionId_ = ""; + + /** + * + * + *
+     * Output only. Latest revision of the template.
+     * 
+ * + * string latest_revision_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The latestRevisionId. + */ + public java.lang.String getLatestRevisionId() { + java.lang.Object ref = latestRevisionId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + latestRevisionId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Latest revision of the template.
+     * 
+ * + * string latest_revision_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for latestRevisionId. + */ + public com.google.protobuf.ByteString getLatestRevisionIdBytes() { + java.lang.Object ref = latestRevisionId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + latestRevisionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Latest revision of the template.
+     * 
+ * + * string latest_revision_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The latestRevisionId to set. + * @return This builder for chaining. + */ + public Builder setLatestRevisionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + latestRevisionId_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Latest revision of the template.
+     * 
+ * + * string latest_revision_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearLatestRevisionId() { + latestRevisionId_ = getDefaultInstance().getLatestRevisionId(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Latest revision of the template.
+     * 
+ * + * string latest_revision_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for latestRevisionId to set. + * @return This builder for chaining. + */ + public Builder setLatestRevisionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + latestRevisionId_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private int templateCategory_ = 0; + + /** + * + * + *
+     * Required. The category of the Application Design Center application
+     * template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateCategory template_category = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for templateCategory. + */ + @java.lang.Override + public int getTemplateCategoryValue() { + return templateCategory_; + } + + /** + * + * + *
+     * Required. The category of the Application Design Center application
+     * template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateCategory template_category = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for templateCategory to set. + * @return This builder for chaining. + */ + public Builder setTemplateCategoryValue(int value) { + templateCategory_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The category of the Application Design Center application
+     * template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateCategory template_category = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The templateCategory. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TemplateCategory getTemplateCategory() { + com.google.cloud.designcenter.v1.TemplateCategory result = + com.google.cloud.designcenter.v1.TemplateCategory.forNumber(templateCategory_); + return result == null + ? com.google.cloud.designcenter.v1.TemplateCategory.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Required. The category of the Application Design Center application
+     * template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateCategory template_category = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The templateCategory to set. + * @return This builder for chaining. + */ + public Builder setTemplateCategory(com.google.cloud.designcenter.v1.TemplateCategory value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; + templateCategory_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The category of the Application Design Center application
+     * template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateCategory template_category = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearTemplateCategory() { + bitField0_ = (bitField0_ & ~0x00000080); + templateCategory_ = 0; + onChanged(); + return this; + } + + private int type_ = 0; + + /** + * + * + *
+     * Optional. The Application Design Center application template type.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateType type = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
+     * Optional. The Application Design Center application template type.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateType type = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + type_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The Application Design Center application template type.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateType type = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TemplateType getType() { + com.google.cloud.designcenter.v1.TemplateType result = + com.google.cloud.designcenter.v1.TemplateType.forNumber(type_); + return result == null ? com.google.cloud.designcenter.v1.TemplateType.UNRECOGNIZED : result; + } + + /** + * + * + *
+     * Optional. The Application Design Center application template type.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateType type = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(com.google.cloud.designcenter.v1.TemplateType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000100; + type_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The Application Design Center application template type.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateType type = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000100); + type_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.CatalogTemplate) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.CatalogTemplate) + private static final com.google.cloud.designcenter.v1.CatalogTemplate DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.CatalogTemplate(); + } + + public static com.google.cloud.designcenter.v1.CatalogTemplate getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CatalogTemplate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.CatalogTemplate getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CatalogTemplateName.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CatalogTemplateName.java new file mode 100644 index 000000000000..0e4b1c12dfa3 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CatalogTemplateName.java @@ -0,0 +1,301 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.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; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked +@Generated("by gapic-generator-java") +public class CatalogTemplateName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_SPACE_CATALOG_CATALOG_TEMPLATE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/spaces/{space}/catalogs/{catalog}/templates/{catalog_template}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String space; + private final String catalog; + private final String catalogTemplate; + + @Deprecated + protected CatalogTemplateName() { + project = null; + location = null; + space = null; + catalog = null; + catalogTemplate = null; + } + + private CatalogTemplateName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + space = Preconditions.checkNotNull(builder.getSpace()); + catalog = Preconditions.checkNotNull(builder.getCatalog()); + catalogTemplate = Preconditions.checkNotNull(builder.getCatalogTemplate()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getSpace() { + return space; + } + + public String getCatalog() { + return catalog; + } + + public String getCatalogTemplate() { + return catalogTemplate; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static CatalogTemplateName of( + String project, String location, String space, String catalog, String catalogTemplate) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setSpace(space) + .setCatalog(catalog) + .setCatalogTemplate(catalogTemplate) + .build(); + } + + public static String format( + String project, String location, String space, String catalog, String catalogTemplate) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setSpace(space) + .setCatalog(catalog) + .setCatalogTemplate(catalogTemplate) + .build() + .toString(); + } + + public static @Nullable CatalogTemplateName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_SPACE_CATALOG_CATALOG_TEMPLATE.validatedMatch( + formattedString, "CatalogTemplateName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("space"), + matchMap.get("catalog"), + matchMap.get("catalog_template")); + } + + 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<@Nullable CatalogTemplateName> values) { + List list = new ArrayList<>(values.size()); + for (CatalogTemplateName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_SPACE_CATALOG_CATALOG_TEMPLATE.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 (space != null) { + fieldMapBuilder.put("space", space); + } + if (catalog != null) { + fieldMapBuilder.put("catalog", catalog); + } + if (catalogTemplate != null) { + fieldMapBuilder.put("catalog_template", catalogTemplate); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_SPACE_CATALOG_CATALOG_TEMPLATE.instantiate( + "project", + project, + "location", + location, + "space", + space, + "catalog", + catalog, + "catalog_template", + catalogTemplate); + } + + @Override + public boolean equals(@Nullable Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + CatalogTemplateName that = ((CatalogTemplateName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.space, that.space) + && Objects.equals(this.catalog, that.catalog) + && Objects.equals(this.catalogTemplate, that.catalogTemplate); + } + 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(space); + h *= 1000003; + h ^= Objects.hashCode(catalog); + h *= 1000003; + h ^= Objects.hashCode(catalogTemplate); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/spaces/{space}/catalogs/{catalog}/templates/{catalog_template}. + */ + public static class Builder { + private String project; + private String location; + private String space; + private String catalog; + private String catalogTemplate; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getSpace() { + return space; + } + + public String getCatalog() { + return catalog; + } + + public String getCatalogTemplate() { + return catalogTemplate; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setSpace(String space) { + this.space = space; + return this; + } + + public Builder setCatalog(String catalog) { + this.catalog = catalog; + return this; + } + + public Builder setCatalogTemplate(String catalogTemplate) { + this.catalogTemplate = catalogTemplate; + return this; + } + + private Builder(CatalogTemplateName catalogTemplateName) { + this.project = catalogTemplateName.project; + this.location = catalogTemplateName.location; + this.space = catalogTemplateName.space; + this.catalog = catalogTemplateName.catalog; + this.catalogTemplate = catalogTemplateName.catalogTemplate; + } + + public CatalogTemplateName build() { + return new CatalogTemplateName(this); + } + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CatalogTemplateOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CatalogTemplateOrBuilder.java new file mode 100644 index 000000000000..5f8de6d15edb --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CatalogTemplateOrBuilder.java @@ -0,0 +1,302 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/catalog_management.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface CatalogTemplateOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.CatalogTemplate) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier. The catalog template name in following format:
+   * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Identifier. The catalog template name in following format:
+   * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. The display name of a catalog template.
+   * 
+ * + * string display_name = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
+   * Optional. The display name of a catalog template.
+   * 
+ * + * string display_name = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Optional. The catalog template description.
+   * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
+   * Optional. The catalog template description.
+   * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Output only. The template revisions UUID.
+   * 
+ * + * string uuid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uuid. + */ + java.lang.String getUuid(); + + /** + * + * + *
+   * Output only. The template revisions UUID.
+   * 
+ * + * string uuid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uuid. + */ + com.google.protobuf.ByteString getUuidBytes(); + + /** + * + * + *
+   * Output only. The catalog template creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
+   * Output only. The catalog template creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
+   * Output only. The catalog template creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The catalog template update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
+   * Output only. The catalog template update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
+   * Output only. The catalog template update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Latest revision of the template.
+   * 
+ * + * string latest_revision_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The latestRevisionId. + */ + java.lang.String getLatestRevisionId(); + + /** + * + * + *
+   * Output only. Latest revision of the template.
+   * 
+ * + * string latest_revision_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for latestRevisionId. + */ + com.google.protobuf.ByteString getLatestRevisionIdBytes(); + + /** + * + * + *
+   * Required. The category of the Application Design Center application
+   * template.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TemplateCategory template_category = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for templateCategory. + */ + int getTemplateCategoryValue(); + + /** + * + * + *
+   * Required. The category of the Application Design Center application
+   * template.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TemplateCategory template_category = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The templateCategory. + */ + com.google.cloud.designcenter.v1.TemplateCategory getTemplateCategory(); + + /** + * + * + *
+   * Optional. The Application Design Center application template type.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TemplateType type = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + + /** + * + * + *
+   * Optional. The Application Design Center application template type.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TemplateType type = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The type. + */ + com.google.cloud.designcenter.v1.TemplateType getType(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CatalogTemplateRevision.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CatalogTemplateRevision.java new file mode 100644 index 000000000000..5d3d301cef61 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CatalogTemplateRevision.java @@ -0,0 +1,7846 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/catalog_management.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Template revisions inside a catalog.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.CatalogTemplateRevision} + */ +@com.google.protobuf.Generated +public final class CatalogTemplateRevision extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.CatalogTemplateRevision) + CatalogTemplateRevisionOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "CatalogTemplateRevision"); + } + + // Use CatalogTemplateRevision.newBuilder() to construct. + private CatalogTemplateRevision(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CatalogTemplateRevision() { + name_ = ""; + description_ = ""; + type_ = 0; + state_ = 0; + uuid_ = ""; + templateCategory_ = 0; + logicalProducts_ = java.util.Collections.emptyList(); + resourceTypes_ = java.util.Collections.emptyList(); + iacSource_ = 0; + applicationParameters_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.CatalogManagementResourcesProto + .internal_static_google_cloud_designcenter_v1_CatalogTemplateRevision_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 22: + return internalGetAnnotations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.CatalogManagementResourcesProto + .internal_static_google_cloud_designcenter_v1_CatalogTemplateRevision_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.CatalogTemplateRevision.class, + com.google.cloud.designcenter.v1.CatalogTemplateRevision.Builder.class); + } + + /** + * + * + *
+   * The template state.
+   * 
+ * + * Protobuf enum {@code google.cloud.designcenter.v1.CatalogTemplateRevision.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * The template is being validated.
+     * 
+ * + * VALIDATING = 1; + */ + VALIDATING(1), + /** + * + * + *
+     * The template is ready to be used.
+     * 
+ * + * ACTIVE = 2; + */ + ACTIVE(2), + /** + * + * + *
+     * The template is invalid.
+     * 
+ * + * INVALID = 3; + */ + INVALID(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
+     * Default.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * The template is being validated.
+     * 
+ * + * VALIDATING = 1; + */ + public static final int VALIDATING_VALUE = 1; + + /** + * + * + *
+     * The template is ready to be used.
+     * 
+ * + * ACTIVE = 2; + */ + public static final int ACTIVE_VALUE = 2; + + /** + * + * + *
+     * The template is invalid.
+     * 
+ * + * INVALID = 3; + */ + public static final int INVALID_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 VALIDATING; + case 2: + return ACTIVE; + case 3: + return INVALID; + 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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.designcenter.v1.CatalogTemplateRevision.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.designcenter.v1.CatalogTemplateRevision.State) + } + + private int bitField0_; + private int artifactLocationCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object artifactLocation_; + + public enum ArtifactLocationCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + GIT_SOURCE(5), + @java.lang.Deprecated + GCS_SOURCE_URI(20), + APPLICATION_TEMPLATE_REVISION_SOURCE(11), + DEVELOPER_CONNECT_SOURCE_CONFIG(15), + OCI_REPO(17), + ARTIFACTLOCATION_NOT_SET(0); + private final int value; + + private ArtifactLocationCase(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 ArtifactLocationCase valueOf(int value) { + return forNumber(value); + } + + public static ArtifactLocationCase forNumber(int value) { + switch (value) { + case 5: + return GIT_SOURCE; + case 20: + return GCS_SOURCE_URI; + case 11: + return APPLICATION_TEMPLATE_REVISION_SOURCE; + case 15: + return DEVELOPER_CONNECT_SOURCE_CONFIG; + case 17: + return OCI_REPO; + case 0: + return ARTIFACTLOCATION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ArtifactLocationCase getArtifactLocationCase() { + return ArtifactLocationCase.forNumber(artifactLocationCase_); + } + + public static final int GIT_SOURCE_FIELD_NUMBER = 5; + + /** + * + * + *
+   * Optional. The git source.
+   * 
+ * + * + * .google.cloud.designcenter.v1.GitSource git_source = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the gitSource field is set. + */ + @java.lang.Override + public boolean hasGitSource() { + return artifactLocationCase_ == 5; + } + + /** + * + * + *
+   * Optional. The git source.
+   * 
+ * + * + * .google.cloud.designcenter.v1.GitSource git_source = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The gitSource. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.GitSource getGitSource() { + if (artifactLocationCase_ == 5) { + return (com.google.cloud.designcenter.v1.GitSource) artifactLocation_; + } + return com.google.cloud.designcenter.v1.GitSource.getDefaultInstance(); + } + + /** + * + * + *
+   * Optional. The git source.
+   * 
+ * + * + * .google.cloud.designcenter.v1.GitSource git_source = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.GitSourceOrBuilder getGitSourceOrBuilder() { + if (artifactLocationCase_ == 5) { + return (com.google.cloud.designcenter.v1.GitSource) artifactLocation_; + } + return com.google.cloud.designcenter.v1.GitSource.getDefaultInstance(); + } + + public static final int GCS_SOURCE_URI_FIELD_NUMBER = 20; + + /** + * + * + *
+   * Optional. Deprecated: Added new field tf_module_gcs_uri.
+   * The Cloud Storage URI, which must be in the format gs://[bucket] or
+   * gs://[bucket]/[object].
+   * 
+ * + * string gcs_source_uri = 20 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.designcenter.v1.CatalogTemplateRevision.gcs_source_uri is deprecated. + * See google/cloud/designcenter/v1/catalog_management.proto;l=195 + * @return Whether the gcsSourceUri field is set. + */ + @java.lang.Deprecated + public boolean hasGcsSourceUri() { + return artifactLocationCase_ == 20; + } + + /** + * + * + *
+   * Optional. Deprecated: Added new field tf_module_gcs_uri.
+   * The Cloud Storage URI, which must be in the format gs://[bucket] or
+   * gs://[bucket]/[object].
+   * 
+ * + * string gcs_source_uri = 20 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.designcenter.v1.CatalogTemplateRevision.gcs_source_uri is deprecated. + * See google/cloud/designcenter/v1/catalog_management.proto;l=195 + * @return The gcsSourceUri. + */ + @java.lang.Deprecated + public java.lang.String getGcsSourceUri() { + java.lang.Object ref = ""; + if (artifactLocationCase_ == 20) { + ref = artifactLocation_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (artifactLocationCase_ == 20) { + artifactLocation_ = s; + } + return s; + } + } + + /** + * + * + *
+   * Optional. Deprecated: Added new field tf_module_gcs_uri.
+   * The Cloud Storage URI, which must be in the format gs://[bucket] or
+   * gs://[bucket]/[object].
+   * 
+ * + * string gcs_source_uri = 20 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.designcenter.v1.CatalogTemplateRevision.gcs_source_uri is deprecated. + * See google/cloud/designcenter/v1/catalog_management.proto;l=195 + * @return The bytes for gcsSourceUri. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getGcsSourceUriBytes() { + java.lang.Object ref = ""; + if (artifactLocationCase_ == 20) { + ref = artifactLocation_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (artifactLocationCase_ == 20) { + artifactLocation_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int APPLICATION_TEMPLATE_REVISION_SOURCE_FIELD_NUMBER = 11; + + /** + * + * + *
+   * Optional. The application template revision source.
+   * 
+ * + * + * string application_template_revision_source = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the applicationTemplateRevisionSource field is set. + */ + public boolean hasApplicationTemplateRevisionSource() { + return artifactLocationCase_ == 11; + } + + /** + * + * + *
+   * Optional. The application template revision source.
+   * 
+ * + * + * string application_template_revision_source = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The applicationTemplateRevisionSource. + */ + public java.lang.String getApplicationTemplateRevisionSource() { + java.lang.Object ref = ""; + if (artifactLocationCase_ == 11) { + ref = artifactLocation_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (artifactLocationCase_ == 11) { + artifactLocation_ = s; + } + return s; + } + } + + /** + * + * + *
+   * Optional. The application template revision source.
+   * 
+ * + * + * string application_template_revision_source = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for applicationTemplateRevisionSource. + */ + public com.google.protobuf.ByteString getApplicationTemplateRevisionSourceBytes() { + java.lang.Object ref = ""; + if (artifactLocationCase_ == 11) { + ref = artifactLocation_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (artifactLocationCase_ == 11) { + artifactLocation_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEVELOPER_CONNECT_SOURCE_CONFIG_FIELD_NUMBER = 15; + + /** + * + * + *
+   * Optional. Configuration for fetching content from source code repository
+   * such as GitHub or Bitbucket through Developer Connect.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectSourceConfig developer_connect_source_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the developerConnectSourceConfig field is set. + */ + @java.lang.Override + public boolean hasDeveloperConnectSourceConfig() { + return artifactLocationCase_ == 15; + } + + /** + * + * + *
+   * Optional. Configuration for fetching content from source code repository
+   * such as GitHub or Bitbucket through Developer Connect.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectSourceConfig developer_connect_source_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The developerConnectSourceConfig. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig + getDeveloperConnectSourceConfig() { + if (artifactLocationCase_ == 15) { + return (com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig) artifactLocation_; + } + return com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig.getDefaultInstance(); + } + + /** + * + * + *
+   * Optional. Configuration for fetching content from source code repository
+   * such as GitHub or Bitbucket through Developer Connect.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectSourceConfig developer_connect_source_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.DeveloperConnectSourceConfigOrBuilder + getDeveloperConnectSourceConfigOrBuilder() { + if (artifactLocationCase_ == 15) { + return (com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig) artifactLocation_; + } + return com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig.getDefaultInstance(); + } + + public static final int OCI_REPO_FIELD_NUMBER = 17; + + /** + * + * + *
+   * Optional. The Open Container Initiative (OCI) repo source that contains
+   * helm charts.
+   * 
+ * + * + * .google.cloud.designcenter.v1.OciRepo oci_repo = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the ociRepo field is set. + */ + @java.lang.Override + public boolean hasOciRepo() { + return artifactLocationCase_ == 17; + } + + /** + * + * + *
+   * Optional. The Open Container Initiative (OCI) repo source that contains
+   * helm charts.
+   * 
+ * + * + * .google.cloud.designcenter.v1.OciRepo oci_repo = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The ociRepo. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.OciRepo getOciRepo() { + if (artifactLocationCase_ == 17) { + return (com.google.cloud.designcenter.v1.OciRepo) artifactLocation_; + } + return com.google.cloud.designcenter.v1.OciRepo.getDefaultInstance(); + } + + /** + * + * + *
+   * Optional. The Open Container Initiative (OCI) repo source that contains
+   * helm charts.
+   * 
+ * + * + * .google.cloud.designcenter.v1.OciRepo oci_repo = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.OciRepoOrBuilder getOciRepoOrBuilder() { + if (artifactLocationCase_ == 17) { + return (com.google.cloud.designcenter.v1.OciRepo) artifactLocation_; + } + return com.google.cloud.designcenter.v1.OciRepo.getDefaultInstance(); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Identifier. The catalog template revision name.
+   * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template/revisions/$revision`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + + /** + * + * + *
+   * Identifier. The catalog template revision name.
+   * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template/revisions/$revision`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 14; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
+   * Optional. The catalog template revision description.
+   * 
+ * + * string description = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The catalog template revision description.
+   * 
+ * + * string description = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TYPE_FIELD_NUMBER = 2; + private int type_ = 0; + + /** + * + * + *
+   * Optional. The Application Design Center application template type.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TemplateType type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
+   * Optional. The Application Design Center application template type.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TemplateType type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TemplateType getType() { + com.google.cloud.designcenter.v1.TemplateType result = + com.google.cloud.designcenter.v1.TemplateType.forNumber(type_); + return result == null ? com.google.cloud.designcenter.v1.TemplateType.UNRECOGNIZED : result; + } + + public static final int CREATE_TIME_FIELD_NUMBER = 6; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+   * Output only. The catalog template creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. The catalog template creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.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 catalog template creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.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 = 7; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
+   * Output only. The catalog template update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. The catalog template update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.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 catalog template update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.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 TEMPLATE_METADATA_FIELD_NUMBER = 8; + private com.google.cloud.designcenter.v1.TFBlueprintMetadata templateMetadata_; + + /** + * + * + *
+   * Output only. Template metadata related to Terraform input and output.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata template_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the templateMetadata field is set. + */ + @java.lang.Override + public boolean hasTemplateMetadata() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Output only. Template metadata related to Terraform input and output.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata template_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The templateMetadata. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TFBlueprintMetadata getTemplateMetadata() { + return templateMetadata_ == null + ? com.google.cloud.designcenter.v1.TFBlueprintMetadata.getDefaultInstance() + : templateMetadata_; + } + + /** + * + * + *
+   * Output only. Template metadata related to Terraform input and output.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata template_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TFBlueprintMetadataOrBuilder + getTemplateMetadataOrBuilder() { + return templateMetadata_ == null + ? com.google.cloud.designcenter.v1.TFBlueprintMetadata.getDefaultInstance() + : templateMetadata_; + } + + public static final int STATE_FIELD_NUMBER = 9; + private int state_ = 0; + + /** + * + * + *
+   * Output only. The template state (validating/ready/invalid).
+   * 
+ * + * + * .google.cloud.designcenter.v1.CatalogTemplateRevision.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+   * Output only. The template state (validating/ready/invalid).
+   * 
+ * + * + * .google.cloud.designcenter.v1.CatalogTemplateRevision.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.CatalogTemplateRevision.State getState() { + com.google.cloud.designcenter.v1.CatalogTemplateRevision.State result = + com.google.cloud.designcenter.v1.CatalogTemplateRevision.State.forNumber(state_); + return result == null + ? com.google.cloud.designcenter.v1.CatalogTemplateRevision.State.UNRECOGNIZED + : result; + } + + public static final int APPLICATION_TEMPLATE_REVISION_FIELD_NUMBER = 12; + private com.google.cloud.designcenter.v1.SerializedApplicationTemplate + applicationTemplateRevision_; + + /** + * + * + *
+   * Output only. The application template revision.
+   * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate application_template_revision = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the applicationTemplateRevision field is set. + */ + @java.lang.Override + public boolean hasApplicationTemplateRevision() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Output only. The application template revision.
+   * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate application_template_revision = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The applicationTemplateRevision. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.SerializedApplicationTemplate + getApplicationTemplateRevision() { + return applicationTemplateRevision_ == null + ? com.google.cloud.designcenter.v1.SerializedApplicationTemplate.getDefaultInstance() + : applicationTemplateRevision_; + } + + /** + * + * + *
+   * Output only. The application template revision.
+   * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate application_template_revision = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.SerializedApplicationTemplateOrBuilder + getApplicationTemplateRevisionOrBuilder() { + return applicationTemplateRevision_ == null + ? com.google.cloud.designcenter.v1.SerializedApplicationTemplate.getDefaultInstance() + : applicationTemplateRevision_; + } + + public static final int HELM_CHART_METADATA_FIELD_NUMBER = 16; + private com.google.cloud.designcenter.v1.HelmChartMetadata helmChartMetadata_; + + /** + * + * + *
+   * Output only. The helm chart metadata.
+   * 
+ * + * + * .google.cloud.designcenter.v1.HelmChartMetadata helm_chart_metadata = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the helmChartMetadata field is set. + */ + @java.lang.Override + public boolean hasHelmChartMetadata() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+   * Output only. The helm chart metadata.
+   * 
+ * + * + * .google.cloud.designcenter.v1.HelmChartMetadata helm_chart_metadata = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The helmChartMetadata. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.HelmChartMetadata getHelmChartMetadata() { + return helmChartMetadata_ == null + ? com.google.cloud.designcenter.v1.HelmChartMetadata.getDefaultInstance() + : helmChartMetadata_; + } + + /** + * + * + *
+   * Output only. The helm chart metadata.
+   * 
+ * + * + * .google.cloud.designcenter.v1.HelmChartMetadata helm_chart_metadata = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.HelmChartMetadataOrBuilder + getHelmChartMetadataOrBuilder() { + return helmChartMetadata_ == null + ? com.google.cloud.designcenter.v1.HelmChartMetadata.getDefaultInstance() + : helmChartMetadata_; + } + + public static final int UUID_FIELD_NUMBER = 13; + + @SuppressWarnings("serial") + private volatile java.lang.Object uuid_ = ""; + + /** + * + * + *
+   * Output only. UUID of the template revision.
+   * 
+ * + * string uuid = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uuid. + */ + @java.lang.Override + public java.lang.String getUuid() { + java.lang.Object ref = uuid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uuid_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. UUID of the template revision.
+   * 
+ * + * string uuid = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uuid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUuidBytes() { + java.lang.Object ref = uuid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int METADATA_INPUT_FIELD_NUMBER = 18; + private com.google.cloud.designcenter.v1.MetadataInput metadataInput_; + + /** + * + * + *
+   * Optional. Metadata input.
+   * 
+ * + * + * .google.cloud.designcenter.v1.MetadataInput metadata_input = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the metadataInput field is set. + */ + @java.lang.Override + public boolean hasMetadataInput() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+   * Optional. Metadata input.
+   * 
+ * + * + * .google.cloud.designcenter.v1.MetadataInput metadata_input = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The metadataInput. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.MetadataInput getMetadataInput() { + return metadataInput_ == null + ? com.google.cloud.designcenter.v1.MetadataInput.getDefaultInstance() + : metadataInput_; + } + + /** + * + * + *
+   * Optional. Metadata input.
+   * 
+ * + * + * .google.cloud.designcenter.v1.MetadataInput metadata_input = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.MetadataInputOrBuilder getMetadataInputOrBuilder() { + return metadataInput_ == null + ? com.google.cloud.designcenter.v1.MetadataInput.getDefaultInstance() + : metadataInput_; + } + + public static final int TEMPLATE_CATEGORY_FIELD_NUMBER = 19; + private int templateCategory_ = 0; + + /** + * + * + *
+   * Output only. The category of the template.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TemplateCategory template_category = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for templateCategory. + */ + @java.lang.Override + public int getTemplateCategoryValue() { + return templateCategory_; + } + + /** + * + * + *
+   * Output only. The category of the template.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TemplateCategory template_category = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The templateCategory. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TemplateCategory getTemplateCategory() { + com.google.cloud.designcenter.v1.TemplateCategory result = + com.google.cloud.designcenter.v1.TemplateCategory.forNumber(templateCategory_); + return result == null ? com.google.cloud.designcenter.v1.TemplateCategory.UNRECOGNIZED : result; + } + + public static final int LOGICAL_PRODUCTS_FIELD_NUMBER = 21; + + @SuppressWarnings("serial") + private java.util.List logicalProducts_; + + /** + * + * + *
+   * Output only. The Product Main logical product type information.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.LogicalProduct logical_products = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getLogicalProductsList() { + return logicalProducts_; + } + + /** + * + * + *
+   * Output only. The Product Main logical product type information.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.LogicalProduct logical_products = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getLogicalProductsOrBuilderList() { + return logicalProducts_; + } + + /** + * + * + *
+   * Output only. The Product Main logical product type information.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.LogicalProduct logical_products = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getLogicalProductsCount() { + return logicalProducts_.size(); + } + + /** + * + * + *
+   * Output only. The Product Main logical product type information.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.LogicalProduct logical_products = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.LogicalProduct getLogicalProducts(int index) { + return logicalProducts_.get(index); + } + + /** + * + * + *
+   * Output only. The Product Main logical product type information.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.LogicalProduct logical_products = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.LogicalProductOrBuilder getLogicalProductsOrBuilder( + int index) { + return logicalProducts_.get(index); + } + + public static final int ANNOTATIONS_FIELD_NUMBER = 22; + + private static final class AnnotationsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.designcenter.v1.CatalogManagementResourcesProto + .internal_static_google_cloud_designcenter_v1_CatalogTemplateRevision_AnnotationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField annotations_; + + private com.google.protobuf.MapField + internalGetAnnotations() { + if (annotations_ == null) { + return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry); + } + return annotations_; + } + + public int getAnnotationsCount() { + return internalGetAnnotations().getMap().size(); + } + + /** + * + * + *
+   * Optional. The annotations of the template revision.
+   * Key is the annotation name. Value is the annotation value.
+   * 
+ * + * map<string, string> annotations = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetAnnotations().getMap().containsKey(key); + } + + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAnnotations() { + return getAnnotationsMap(); + } + + /** + * + * + *
+   * Optional. The annotations of the template revision.
+   * Key is the annotation name. Value is the annotation value.
+   * 
+ * + * map<string, string> annotations = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getAnnotationsMap() { + return internalGetAnnotations().getMap(); + } + + /** + * + * + *
+   * Optional. The annotations of the template revision.
+   * Key is the annotation name. Value is the annotation value.
+   * 
+ * + * map<string, string> annotations = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+   * Optional. The annotations of the template revision.
+   * Key is the annotation name. Value is the annotation value.
+   * 
+ * + * map<string, string> annotations = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int INFERRED_METADATA_FIELD_NUMBER = 23; + private com.google.cloud.designcenter.v1.InferredMetadata inferredMetadata_; + + /** + * + * + *
+   * Output only. Metadata that was automatically inferred from the template
+   * content. This field can be updated by the system as it gets new
+   * information.
+   * 
+ * + * + * .google.cloud.designcenter.v1.InferredMetadata inferred_metadata = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the inferredMetadata field is set. + */ + @java.lang.Override + public boolean hasInferredMetadata() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+   * Output only. Metadata that was automatically inferred from the template
+   * content. This field can be updated by the system as it gets new
+   * information.
+   * 
+ * + * + * .google.cloud.designcenter.v1.InferredMetadata inferred_metadata = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The inferredMetadata. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.InferredMetadata getInferredMetadata() { + return inferredMetadata_ == null + ? com.google.cloud.designcenter.v1.InferredMetadata.getDefaultInstance() + : inferredMetadata_; + } + + /** + * + * + *
+   * Output only. Metadata that was automatically inferred from the template
+   * content. This field can be updated by the system as it gets new
+   * information.
+   * 
+ * + * + * .google.cloud.designcenter.v1.InferredMetadata inferred_metadata = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.InferredMetadataOrBuilder getInferredMetadataOrBuilder() { + return inferredMetadata_ == null + ? com.google.cloud.designcenter.v1.InferredMetadata.getDefaultInstance() + : inferredMetadata_; + } + + public static final int RESOURCE_TYPES_FIELD_NUMBER = 24; + + @SuppressWarnings("serial") + private java.util.List resourceTypes_; + + /** + * + * + *
+   * Output only. The resource types present in the template revision.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ResourceType resource_types = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getResourceTypesList() { + return resourceTypes_; + } + + /** + * + * + *
+   * Output only. The resource types present in the template revision.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ResourceType resource_types = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getResourceTypesOrBuilderList() { + return resourceTypes_; + } + + /** + * + * + *
+   * Output only. The resource types present in the template revision.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ResourceType resource_types = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getResourceTypesCount() { + return resourceTypes_.size(); + } + + /** + * + * + *
+   * Output only. The resource types present in the template revision.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ResourceType resource_types = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ResourceType getResourceTypes(int index) { + return resourceTypes_.get(index); + } + + /** + * + * + *
+   * Output only. The resource types present in the template revision.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ResourceType resource_types = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ResourceTypeOrBuilder getResourceTypesOrBuilder( + int index) { + return resourceTypes_.get(index); + } + + public static final int IAC_SOURCE_FIELD_NUMBER = 27; + private int iacSource_ = 0; + + /** + * + * + *
+   * Output only. Indicates the IaC source format of this catalog template
+   * revision.
+   * 
+ * + * + * .google.cloud.designcenter.v1.IACSource iac_source = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for iacSource. + */ + @java.lang.Override + public int getIacSourceValue() { + return iacSource_; + } + + /** + * + * + *
+   * Output only. Indicates the IaC source format of this catalog template
+   * revision.
+   * 
+ * + * + * .google.cloud.designcenter.v1.IACSource iac_source = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The iacSource. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.IACSource getIacSource() { + com.google.cloud.designcenter.v1.IACSource result = + com.google.cloud.designcenter.v1.IACSource.forNumber(iacSource_); + return result == null ? com.google.cloud.designcenter.v1.IACSource.UNRECOGNIZED : result; + } + + public static final int APPLICATION_PARAMETERS_FIELD_NUMBER = 28; + + @SuppressWarnings("serial") + private java.util.List applicationParameters_; + + /** + * + * + *
+   * Optional. The values provided for the input variables.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getApplicationParametersList() { + return applicationParameters_; + } + + /** + * + * + *
+   * Optional. The values provided for the input variables.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getApplicationParametersOrBuilderList() { + return applicationParameters_; + } + + /** + * + * + *
+   * Optional. The values provided for the input variables.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getApplicationParametersCount() { + return applicationParameters_.size(); + } + + /** + * + * + *
+   * Optional. The values provided for the input variables.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.Parameter getApplicationParameters(int index) { + return applicationParameters_.get(index); + } + + /** + * + * + *
+   * Optional. The values provided for the input variables.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ParameterOrBuilder getApplicationParametersOrBuilder( + int index) { + return applicationParameters_.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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (type_ + != com.google.cloud.designcenter.v1.TemplateType.TEMPLATE_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(2, type_); + } + if (artifactLocationCase_ == 5) { + output.writeMessage(5, (com.google.cloud.designcenter.v1.GitSource) artifactLocation_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(6, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(7, getUpdateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(8, getTemplateMetadata()); + } + if (state_ + != com.google.cloud.designcenter.v1.CatalogTemplateRevision.State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(9, state_); + } + if (artifactLocationCase_ == 11) { + com.google.protobuf.GeneratedMessage.writeString(output, 11, artifactLocation_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(12, getApplicationTemplateRevision()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uuid_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 13, uuid_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 14, description_); + } + if (artifactLocationCase_ == 15) { + output.writeMessage( + 15, (com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig) artifactLocation_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(16, getHelmChartMetadata()); + } + if (artifactLocationCase_ == 17) { + output.writeMessage(17, (com.google.cloud.designcenter.v1.OciRepo) artifactLocation_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(18, getMetadataInput()); + } + if (templateCategory_ + != com.google.cloud.designcenter.v1.TemplateCategory.TEMPLATE_CATEGORY_UNSPECIFIED + .getNumber()) { + output.writeEnum(19, templateCategory_); + } + if (artifactLocationCase_ == 20) { + com.google.protobuf.GeneratedMessage.writeString(output, 20, artifactLocation_); + } + for (int i = 0; i < logicalProducts_.size(); i++) { + output.writeMessage(21, logicalProducts_.get(i)); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 22); + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(23, getInferredMetadata()); + } + for (int i = 0; i < resourceTypes_.size(); i++) { + output.writeMessage(24, resourceTypes_.get(i)); + } + if (iacSource_ + != com.google.cloud.designcenter.v1.IACSource.IAC_SOURCE_UNSPECIFIED.getNumber()) { + output.writeEnum(27, iacSource_); + } + for (int i = 0; i < applicationParameters_.size(); i++) { + output.writeMessage(28, applicationParameters_.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.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (type_ + != com.google.cloud.designcenter.v1.TemplateType.TEMPLATE_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); + } + if (artifactLocationCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.cloud.designcenter.v1.GitSource) artifactLocation_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getTemplateMetadata()); + } + if (state_ + != com.google.cloud.designcenter.v1.CatalogTemplateRevision.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, state_); + } + if (artifactLocationCase_ == 11) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(11, artifactLocation_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 12, getApplicationTemplateRevision()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uuid_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(13, uuid_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(14, description_); + } + if (artifactLocationCase_ == 15) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 15, + (com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig) artifactLocation_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getHelmChartMetadata()); + } + if (artifactLocationCase_ == 17) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 17, (com.google.cloud.designcenter.v1.OciRepo) artifactLocation_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getMetadataInput()); + } + if (templateCategory_ + != com.google.cloud.designcenter.v1.TemplateCategory.TEMPLATE_CATEGORY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(19, templateCategory_); + } + if (artifactLocationCase_ == 20) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(20, artifactLocation_); + } + for (int i = 0; i < logicalProducts_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, logicalProducts_.get(i)); + } + for (java.util.Map.Entry entry : + internalGetAnnotations().getMap().entrySet()) { + com.google.protobuf.MapEntry annotations__ = + AnnotationsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, annotations__); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getInferredMetadata()); + } + for (int i = 0; i < resourceTypes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(24, resourceTypes_.get(i)); + } + if (iacSource_ + != com.google.cloud.designcenter.v1.IACSource.IAC_SOURCE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(27, iacSource_); + } + for (int i = 0; i < applicationParameters_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 28, applicationParameters_.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.designcenter.v1.CatalogTemplateRevision)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.CatalogTemplateRevision other = + (com.google.cloud.designcenter.v1.CatalogTemplateRevision) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (type_ != other.type_) 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 (hasTemplateMetadata() != other.hasTemplateMetadata()) return false; + if (hasTemplateMetadata()) { + if (!getTemplateMetadata().equals(other.getTemplateMetadata())) return false; + } + if (state_ != other.state_) return false; + if (hasApplicationTemplateRevision() != other.hasApplicationTemplateRevision()) return false; + if (hasApplicationTemplateRevision()) { + if (!getApplicationTemplateRevision().equals(other.getApplicationTemplateRevision())) + return false; + } + if (hasHelmChartMetadata() != other.hasHelmChartMetadata()) return false; + if (hasHelmChartMetadata()) { + if (!getHelmChartMetadata().equals(other.getHelmChartMetadata())) return false; + } + if (!getUuid().equals(other.getUuid())) return false; + if (hasMetadataInput() != other.hasMetadataInput()) return false; + if (hasMetadataInput()) { + if (!getMetadataInput().equals(other.getMetadataInput())) return false; + } + if (templateCategory_ != other.templateCategory_) return false; + if (!getLogicalProductsList().equals(other.getLogicalProductsList())) return false; + if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; + if (hasInferredMetadata() != other.hasInferredMetadata()) return false; + if (hasInferredMetadata()) { + if (!getInferredMetadata().equals(other.getInferredMetadata())) return false; + } + if (!getResourceTypesList().equals(other.getResourceTypesList())) return false; + if (iacSource_ != other.iacSource_) return false; + if (!getApplicationParametersList().equals(other.getApplicationParametersList())) return false; + if (!getArtifactLocationCase().equals(other.getArtifactLocationCase())) return false; + switch (artifactLocationCase_) { + case 5: + if (!getGitSource().equals(other.getGitSource())) return false; + break; + case 20: + if (!getGcsSourceUri().equals(other.getGcsSourceUri())) return false; + break; + case 11: + if (!getApplicationTemplateRevisionSource() + .equals(other.getApplicationTemplateRevisionSource())) return false; + break; + case 15: + if (!getDeveloperConnectSourceConfig().equals(other.getDeveloperConnectSourceConfig())) + return false; + break; + case 17: + if (!getOciRepo().equals(other.getOciRepo())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + 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 (hasTemplateMetadata()) { + hash = (37 * hash) + TEMPLATE_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getTemplateMetadata().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + if (hasApplicationTemplateRevision()) { + hash = (37 * hash) + APPLICATION_TEMPLATE_REVISION_FIELD_NUMBER; + hash = (53 * hash) + getApplicationTemplateRevision().hashCode(); + } + if (hasHelmChartMetadata()) { + hash = (37 * hash) + HELM_CHART_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getHelmChartMetadata().hashCode(); + } + hash = (37 * hash) + UUID_FIELD_NUMBER; + hash = (53 * hash) + getUuid().hashCode(); + if (hasMetadataInput()) { + hash = (37 * hash) + METADATA_INPUT_FIELD_NUMBER; + hash = (53 * hash) + getMetadataInput().hashCode(); + } + hash = (37 * hash) + TEMPLATE_CATEGORY_FIELD_NUMBER; + hash = (53 * hash) + templateCategory_; + if (getLogicalProductsCount() > 0) { + hash = (37 * hash) + LOGICAL_PRODUCTS_FIELD_NUMBER; + hash = (53 * hash) + getLogicalProductsList().hashCode(); + } + if (!internalGetAnnotations().getMap().isEmpty()) { + hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; + hash = (53 * hash) + internalGetAnnotations().hashCode(); + } + if (hasInferredMetadata()) { + hash = (37 * hash) + INFERRED_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getInferredMetadata().hashCode(); + } + if (getResourceTypesCount() > 0) { + hash = (37 * hash) + RESOURCE_TYPES_FIELD_NUMBER; + hash = (53 * hash) + getResourceTypesList().hashCode(); + } + hash = (37 * hash) + IAC_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + iacSource_; + if (getApplicationParametersCount() > 0) { + hash = (37 * hash) + APPLICATION_PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getApplicationParametersList().hashCode(); + } + switch (artifactLocationCase_) { + case 5: + hash = (37 * hash) + GIT_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getGitSource().hashCode(); + break; + case 20: + hash = (37 * hash) + GCS_SOURCE_URI_FIELD_NUMBER; + hash = (53 * hash) + getGcsSourceUri().hashCode(); + break; + case 11: + hash = (37 * hash) + APPLICATION_TEMPLATE_REVISION_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getApplicationTemplateRevisionSource().hashCode(); + break; + case 15: + hash = (37 * hash) + DEVELOPER_CONNECT_SOURCE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDeveloperConnectSourceConfig().hashCode(); + break; + case 17: + hash = (37 * hash) + OCI_REPO_FIELD_NUMBER; + hash = (53 * hash) + getOciRepo().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.CatalogTemplateRevision parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.CatalogTemplateRevision 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.designcenter.v1.CatalogTemplateRevision parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.CatalogTemplateRevision parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.CatalogTemplateRevision parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.CatalogTemplateRevision parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.CatalogTemplateRevision parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.CatalogTemplateRevision parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.CatalogTemplateRevision parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.CatalogTemplateRevision parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.CatalogTemplateRevision parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.CatalogTemplateRevision parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.CatalogTemplateRevision 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Template revisions inside a catalog.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.CatalogTemplateRevision} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.CatalogTemplateRevision) + com.google.cloud.designcenter.v1.CatalogTemplateRevisionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.CatalogManagementResourcesProto + .internal_static_google_cloud_designcenter_v1_CatalogTemplateRevision_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 22: + return internalGetAnnotations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 22: + return internalGetMutableAnnotations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.CatalogManagementResourcesProto + .internal_static_google_cloud_designcenter_v1_CatalogTemplateRevision_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.CatalogTemplateRevision.class, + com.google.cloud.designcenter.v1.CatalogTemplateRevision.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.CatalogTemplateRevision.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + internalGetTemplateMetadataFieldBuilder(); + internalGetApplicationTemplateRevisionFieldBuilder(); + internalGetHelmChartMetadataFieldBuilder(); + internalGetMetadataInputFieldBuilder(); + internalGetLogicalProductsFieldBuilder(); + internalGetInferredMetadataFieldBuilder(); + internalGetResourceTypesFieldBuilder(); + internalGetApplicationParametersFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (gitSourceBuilder_ != null) { + gitSourceBuilder_.clear(); + } + if (developerConnectSourceConfigBuilder_ != null) { + developerConnectSourceConfigBuilder_.clear(); + } + if (ociRepoBuilder_ != null) { + ociRepoBuilder_.clear(); + } + name_ = ""; + description_ = ""; + type_ = 0; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + templateMetadata_ = null; + if (templateMetadataBuilder_ != null) { + templateMetadataBuilder_.dispose(); + templateMetadataBuilder_ = null; + } + state_ = 0; + applicationTemplateRevision_ = null; + if (applicationTemplateRevisionBuilder_ != null) { + applicationTemplateRevisionBuilder_.dispose(); + applicationTemplateRevisionBuilder_ = null; + } + helmChartMetadata_ = null; + if (helmChartMetadataBuilder_ != null) { + helmChartMetadataBuilder_.dispose(); + helmChartMetadataBuilder_ = null; + } + uuid_ = ""; + metadataInput_ = null; + if (metadataInputBuilder_ != null) { + metadataInputBuilder_.dispose(); + metadataInputBuilder_ = null; + } + templateCategory_ = 0; + if (logicalProductsBuilder_ == null) { + logicalProducts_ = java.util.Collections.emptyList(); + } else { + logicalProducts_ = null; + logicalProductsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00020000); + internalGetMutableAnnotations().clear(); + inferredMetadata_ = null; + if (inferredMetadataBuilder_ != null) { + inferredMetadataBuilder_.dispose(); + inferredMetadataBuilder_ = null; + } + if (resourceTypesBuilder_ == null) { + resourceTypes_ = java.util.Collections.emptyList(); + } else { + resourceTypes_ = null; + resourceTypesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00100000); + iacSource_ = 0; + if (applicationParametersBuilder_ == null) { + applicationParameters_ = java.util.Collections.emptyList(); + } else { + applicationParameters_ = null; + applicationParametersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00400000); + artifactLocationCase_ = 0; + artifactLocation_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.CatalogManagementResourcesProto + .internal_static_google_cloud_designcenter_v1_CatalogTemplateRevision_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.CatalogTemplateRevision getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.CatalogTemplateRevision.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.CatalogTemplateRevision build() { + com.google.cloud.designcenter.v1.CatalogTemplateRevision result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.CatalogTemplateRevision buildPartial() { + com.google.cloud.designcenter.v1.CatalogTemplateRevision result = + new com.google.cloud.designcenter.v1.CatalogTemplateRevision(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.designcenter.v1.CatalogTemplateRevision result) { + if (logicalProductsBuilder_ == null) { + if (((bitField0_ & 0x00020000) != 0)) { + logicalProducts_ = java.util.Collections.unmodifiableList(logicalProducts_); + bitField0_ = (bitField0_ & ~0x00020000); + } + result.logicalProducts_ = logicalProducts_; + } else { + result.logicalProducts_ = logicalProductsBuilder_.build(); + } + if (resourceTypesBuilder_ == null) { + if (((bitField0_ & 0x00100000) != 0)) { + resourceTypes_ = java.util.Collections.unmodifiableList(resourceTypes_); + bitField0_ = (bitField0_ & ~0x00100000); + } + result.resourceTypes_ = resourceTypes_; + } else { + result.resourceTypes_ = resourceTypesBuilder_.build(); + } + if (applicationParametersBuilder_ == null) { + if (((bitField0_ & 0x00400000) != 0)) { + applicationParameters_ = java.util.Collections.unmodifiableList(applicationParameters_); + bitField0_ = (bitField0_ & ~0x00400000); + } + result.applicationParameters_ = applicationParameters_; + } else { + result.applicationParameters_ = applicationParametersBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.designcenter.v1.CatalogTemplateRevision result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.type_ = type_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000100) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.templateMetadata_ = + templateMetadataBuilder_ == null ? templateMetadata_ : templateMetadataBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.applicationTemplateRevision_ = + applicationTemplateRevisionBuilder_ == null + ? applicationTemplateRevision_ + : applicationTemplateRevisionBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.helmChartMetadata_ = + helmChartMetadataBuilder_ == null + ? helmChartMetadata_ + : helmChartMetadataBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.uuid_ = uuid_; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.metadataInput_ = + metadataInputBuilder_ == null ? metadataInput_ : metadataInputBuilder_.build(); + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.templateCategory_ = templateCategory_; + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.annotations_ = internalGetAnnotations(); + result.annotations_.makeImmutable(); + } + if (((from_bitField0_ & 0x00080000) != 0)) { + result.inferredMetadata_ = + inferredMetadataBuilder_ == null ? inferredMetadata_ : inferredMetadataBuilder_.build(); + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00200000) != 0)) { + result.iacSource_ = iacSource_; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.designcenter.v1.CatalogTemplateRevision result) { + result.artifactLocationCase_ = artifactLocationCase_; + result.artifactLocation_ = this.artifactLocation_; + if (artifactLocationCase_ == 5 && gitSourceBuilder_ != null) { + result.artifactLocation_ = gitSourceBuilder_.build(); + } + if (artifactLocationCase_ == 15 && developerConnectSourceConfigBuilder_ != null) { + result.artifactLocation_ = developerConnectSourceConfigBuilder_.build(); + } + if (artifactLocationCase_ == 17 && ociRepoBuilder_ != null) { + result.artifactLocation_ = ociRepoBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.CatalogTemplateRevision) { + return mergeFrom((com.google.cloud.designcenter.v1.CatalogTemplateRevision) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.CatalogTemplateRevision other) { + if (other == com.google.cloud.designcenter.v1.CatalogTemplateRevision.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.hasTemplateMetadata()) { + mergeTemplateMetadata(other.getTemplateMetadata()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.hasApplicationTemplateRevision()) { + mergeApplicationTemplateRevision(other.getApplicationTemplateRevision()); + } + if (other.hasHelmChartMetadata()) { + mergeHelmChartMetadata(other.getHelmChartMetadata()); + } + if (!other.getUuid().isEmpty()) { + uuid_ = other.uuid_; + bitField0_ |= 0x00004000; + onChanged(); + } + if (other.hasMetadataInput()) { + mergeMetadataInput(other.getMetadataInput()); + } + if (other.templateCategory_ != 0) { + setTemplateCategoryValue(other.getTemplateCategoryValue()); + } + if (logicalProductsBuilder_ == null) { + if (!other.logicalProducts_.isEmpty()) { + if (logicalProducts_.isEmpty()) { + logicalProducts_ = other.logicalProducts_; + bitField0_ = (bitField0_ & ~0x00020000); + } else { + ensureLogicalProductsIsMutable(); + logicalProducts_.addAll(other.logicalProducts_); + } + onChanged(); + } + } else { + if (!other.logicalProducts_.isEmpty()) { + if (logicalProductsBuilder_.isEmpty()) { + logicalProductsBuilder_.dispose(); + logicalProductsBuilder_ = null; + logicalProducts_ = other.logicalProducts_; + bitField0_ = (bitField0_ & ~0x00020000); + logicalProductsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetLogicalProductsFieldBuilder() + : null; + } else { + logicalProductsBuilder_.addAllMessages(other.logicalProducts_); + } + } + } + internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations()); + bitField0_ |= 0x00040000; + if (other.hasInferredMetadata()) { + mergeInferredMetadata(other.getInferredMetadata()); + } + if (resourceTypesBuilder_ == null) { + if (!other.resourceTypes_.isEmpty()) { + if (resourceTypes_.isEmpty()) { + resourceTypes_ = other.resourceTypes_; + bitField0_ = (bitField0_ & ~0x00100000); + } else { + ensureResourceTypesIsMutable(); + resourceTypes_.addAll(other.resourceTypes_); + } + onChanged(); + } + } else { + if (!other.resourceTypes_.isEmpty()) { + if (resourceTypesBuilder_.isEmpty()) { + resourceTypesBuilder_.dispose(); + resourceTypesBuilder_ = null; + resourceTypes_ = other.resourceTypes_; + bitField0_ = (bitField0_ & ~0x00100000); + resourceTypesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetResourceTypesFieldBuilder() + : null; + } else { + resourceTypesBuilder_.addAllMessages(other.resourceTypes_); + } + } + } + if (other.iacSource_ != 0) { + setIacSourceValue(other.getIacSourceValue()); + } + if (applicationParametersBuilder_ == null) { + if (!other.applicationParameters_.isEmpty()) { + if (applicationParameters_.isEmpty()) { + applicationParameters_ = other.applicationParameters_; + bitField0_ = (bitField0_ & ~0x00400000); + } else { + ensureApplicationParametersIsMutable(); + applicationParameters_.addAll(other.applicationParameters_); + } + onChanged(); + } + } else { + if (!other.applicationParameters_.isEmpty()) { + if (applicationParametersBuilder_.isEmpty()) { + applicationParametersBuilder_.dispose(); + applicationParametersBuilder_ = null; + applicationParameters_ = other.applicationParameters_; + bitField0_ = (bitField0_ & ~0x00400000); + applicationParametersBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetApplicationParametersFieldBuilder() + : null; + } else { + applicationParametersBuilder_.addAllMessages(other.applicationParameters_); + } + } + } + switch (other.getArtifactLocationCase()) { + case GIT_SOURCE: + { + mergeGitSource(other.getGitSource()); + break; + } + case GCS_SOURCE_URI: + { + artifactLocationCase_ = 20; + artifactLocation_ = other.artifactLocation_; + onChanged(); + break; + } + case APPLICATION_TEMPLATE_REVISION_SOURCE: + { + artifactLocationCase_ = 11; + artifactLocation_ = other.artifactLocation_; + onChanged(); + break; + } + case DEVELOPER_CONNECT_SOURCE_CONFIG: + { + mergeDeveloperConnectSourceConfig(other.getDeveloperConnectSourceConfig()); + break; + } + case OCI_REPO: + { + mergeOciRepo(other.getOciRepo()); + break; + } + case ARTIFACTLOCATION_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 10 + case 16: + { + type_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 16 + case 42: + { + input.readMessage( + internalGetGitSourceFieldBuilder().getBuilder(), extensionRegistry); + artifactLocationCase_ = 5; + break; + } // case 42 + case 50: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 50 + case 58: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 58 + case 66: + { + input.readMessage( + internalGetTemplateMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 66 + case 72: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000800; + break; + } // case 72 + case 90: + { + java.lang.String s = input.readStringRequireUtf8(); + artifactLocationCase_ = 11; + artifactLocation_ = s; + break; + } // case 90 + case 98: + { + input.readMessage( + internalGetApplicationTemplateRevisionFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00001000; + break; + } // case 98 + case 106: + { + uuid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00004000; + break; + } // case 106 + case 114: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 114 + case 122: + { + input.readMessage( + internalGetDeveloperConnectSourceConfigFieldBuilder().getBuilder(), + extensionRegistry); + artifactLocationCase_ = 15; + break; + } // case 122 + case 130: + { + input.readMessage( + internalGetHelmChartMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00002000; + break; + } // case 130 + case 138: + { + input.readMessage(internalGetOciRepoFieldBuilder().getBuilder(), extensionRegistry); + artifactLocationCase_ = 17; + break; + } // case 138 + case 146: + { + input.readMessage( + internalGetMetadataInputFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00008000; + break; + } // case 146 + case 152: + { + templateCategory_ = input.readEnum(); + bitField0_ |= 0x00010000; + break; + } // case 152 + case 162: + { + java.lang.String s = input.readStringRequireUtf8(); + artifactLocationCase_ = 20; + artifactLocation_ = s; + break; + } // case 162 + case 170: + { + com.google.cloud.designcenter.v1.LogicalProduct m = + input.readMessage( + com.google.cloud.designcenter.v1.LogicalProduct.parser(), + extensionRegistry); + if (logicalProductsBuilder_ == null) { + ensureLogicalProductsIsMutable(); + logicalProducts_.add(m); + } else { + logicalProductsBuilder_.addMessage(m); + } + break; + } // case 170 + case 178: + { + com.google.protobuf.MapEntry annotations__ = + input.readMessage( + AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableAnnotations() + .getMutableMap() + .put(annotations__.getKey(), annotations__.getValue()); + bitField0_ |= 0x00040000; + break; + } // case 178 + case 186: + { + input.readMessage( + internalGetInferredMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00080000; + break; + } // case 186 + case 194: + { + com.google.cloud.designcenter.v1.ResourceType m = + input.readMessage( + com.google.cloud.designcenter.v1.ResourceType.parser(), extensionRegistry); + if (resourceTypesBuilder_ == null) { + ensureResourceTypesIsMutable(); + resourceTypes_.add(m); + } else { + resourceTypesBuilder_.addMessage(m); + } + break; + } // case 194 + case 216: + { + iacSource_ = input.readEnum(); + bitField0_ |= 0x00200000; + break; + } // case 216 + case 226: + { + com.google.cloud.designcenter.v1.Parameter m = + input.readMessage( + com.google.cloud.designcenter.v1.Parameter.parser(), extensionRegistry); + if (applicationParametersBuilder_ == null) { + ensureApplicationParametersIsMutable(); + applicationParameters_.add(m); + } else { + applicationParametersBuilder_.addMessage(m); + } + break; + } // case 226 + default: + { + 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 artifactLocationCase_ = 0; + private java.lang.Object artifactLocation_; + + public ArtifactLocationCase getArtifactLocationCase() { + return ArtifactLocationCase.forNumber(artifactLocationCase_); + } + + public Builder clearArtifactLocation() { + artifactLocationCase_ = 0; + artifactLocation_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.GitSource, + com.google.cloud.designcenter.v1.GitSource.Builder, + com.google.cloud.designcenter.v1.GitSourceOrBuilder> + gitSourceBuilder_; + + /** + * + * + *
+     * Optional. The git source.
+     * 
+ * + * + * .google.cloud.designcenter.v1.GitSource git_source = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the gitSource field is set. + */ + @java.lang.Override + public boolean hasGitSource() { + return artifactLocationCase_ == 5; + } + + /** + * + * + *
+     * Optional. The git source.
+     * 
+ * + * + * .google.cloud.designcenter.v1.GitSource git_source = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The gitSource. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.GitSource getGitSource() { + if (gitSourceBuilder_ == null) { + if (artifactLocationCase_ == 5) { + return (com.google.cloud.designcenter.v1.GitSource) artifactLocation_; + } + return com.google.cloud.designcenter.v1.GitSource.getDefaultInstance(); + } else { + if (artifactLocationCase_ == 5) { + return gitSourceBuilder_.getMessage(); + } + return com.google.cloud.designcenter.v1.GitSource.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. The git source.
+     * 
+ * + * + * .google.cloud.designcenter.v1.GitSource git_source = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGitSource(com.google.cloud.designcenter.v1.GitSource value) { + if (gitSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + artifactLocation_ = value; + onChanged(); + } else { + gitSourceBuilder_.setMessage(value); + } + artifactLocationCase_ = 5; + return this; + } + + /** + * + * + *
+     * Optional. The git source.
+     * 
+ * + * + * .google.cloud.designcenter.v1.GitSource git_source = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGitSource( + com.google.cloud.designcenter.v1.GitSource.Builder builderForValue) { + if (gitSourceBuilder_ == null) { + artifactLocation_ = builderForValue.build(); + onChanged(); + } else { + gitSourceBuilder_.setMessage(builderForValue.build()); + } + artifactLocationCase_ = 5; + return this; + } + + /** + * + * + *
+     * Optional. The git source.
+     * 
+ * + * + * .google.cloud.designcenter.v1.GitSource git_source = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeGitSource(com.google.cloud.designcenter.v1.GitSource value) { + if (gitSourceBuilder_ == null) { + if (artifactLocationCase_ == 5 + && artifactLocation_ + != com.google.cloud.designcenter.v1.GitSource.getDefaultInstance()) { + artifactLocation_ = + com.google.cloud.designcenter.v1.GitSource.newBuilder( + (com.google.cloud.designcenter.v1.GitSource) artifactLocation_) + .mergeFrom(value) + .buildPartial(); + } else { + artifactLocation_ = value; + } + onChanged(); + } else { + if (artifactLocationCase_ == 5) { + gitSourceBuilder_.mergeFrom(value); + } else { + gitSourceBuilder_.setMessage(value); + } + } + artifactLocationCase_ = 5; + return this; + } + + /** + * + * + *
+     * Optional. The git source.
+     * 
+ * + * + * .google.cloud.designcenter.v1.GitSource git_source = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearGitSource() { + if (gitSourceBuilder_ == null) { + if (artifactLocationCase_ == 5) { + artifactLocationCase_ = 0; + artifactLocation_ = null; + onChanged(); + } + } else { + if (artifactLocationCase_ == 5) { + artifactLocationCase_ = 0; + artifactLocation_ = null; + } + gitSourceBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. The git source.
+     * 
+ * + * + * .google.cloud.designcenter.v1.GitSource git_source = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.GitSource.Builder getGitSourceBuilder() { + return internalGetGitSourceFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The git source.
+     * 
+ * + * + * .google.cloud.designcenter.v1.GitSource git_source = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.GitSourceOrBuilder getGitSourceOrBuilder() { + if ((artifactLocationCase_ == 5) && (gitSourceBuilder_ != null)) { + return gitSourceBuilder_.getMessageOrBuilder(); + } else { + if (artifactLocationCase_ == 5) { + return (com.google.cloud.designcenter.v1.GitSource) artifactLocation_; + } + return com.google.cloud.designcenter.v1.GitSource.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. The git source.
+     * 
+ * + * + * .google.cloud.designcenter.v1.GitSource git_source = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.GitSource, + com.google.cloud.designcenter.v1.GitSource.Builder, + com.google.cloud.designcenter.v1.GitSourceOrBuilder> + internalGetGitSourceFieldBuilder() { + if (gitSourceBuilder_ == null) { + if (!(artifactLocationCase_ == 5)) { + artifactLocation_ = com.google.cloud.designcenter.v1.GitSource.getDefaultInstance(); + } + gitSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.GitSource, + com.google.cloud.designcenter.v1.GitSource.Builder, + com.google.cloud.designcenter.v1.GitSourceOrBuilder>( + (com.google.cloud.designcenter.v1.GitSource) artifactLocation_, + getParentForChildren(), + isClean()); + artifactLocation_ = null; + } + artifactLocationCase_ = 5; + onChanged(); + return gitSourceBuilder_; + } + + /** + * + * + *
+     * Optional. Deprecated: Added new field tf_module_gcs_uri.
+     * The Cloud Storage URI, which must be in the format gs://[bucket] or
+     * gs://[bucket]/[object].
+     * 
+ * + * + * string gcs_source_uri = 20 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.designcenter.v1.CatalogTemplateRevision.gcs_source_uri is + * deprecated. See google/cloud/designcenter/v1/catalog_management.proto;l=195 + * @return Whether the gcsSourceUri field is set. + */ + @java.lang.Override + @java.lang.Deprecated + public boolean hasGcsSourceUri() { + return artifactLocationCase_ == 20; + } + + /** + * + * + *
+     * Optional. Deprecated: Added new field tf_module_gcs_uri.
+     * The Cloud Storage URI, which must be in the format gs://[bucket] or
+     * gs://[bucket]/[object].
+     * 
+ * + * + * string gcs_source_uri = 20 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.designcenter.v1.CatalogTemplateRevision.gcs_source_uri is + * deprecated. See google/cloud/designcenter/v1/catalog_management.proto;l=195 + * @return The gcsSourceUri. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getGcsSourceUri() { + java.lang.Object ref = ""; + if (artifactLocationCase_ == 20) { + ref = artifactLocation_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (artifactLocationCase_ == 20) { + artifactLocation_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Deprecated: Added new field tf_module_gcs_uri.
+     * The Cloud Storage URI, which must be in the format gs://[bucket] or
+     * gs://[bucket]/[object].
+     * 
+ * + * + * string gcs_source_uri = 20 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.designcenter.v1.CatalogTemplateRevision.gcs_source_uri is + * deprecated. See google/cloud/designcenter/v1/catalog_management.proto;l=195 + * @return The bytes for gcsSourceUri. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getGcsSourceUriBytes() { + java.lang.Object ref = ""; + if (artifactLocationCase_ == 20) { + ref = artifactLocation_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (artifactLocationCase_ == 20) { + artifactLocation_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Deprecated: Added new field tf_module_gcs_uri.
+     * The Cloud Storage URI, which must be in the format gs://[bucket] or
+     * gs://[bucket]/[object].
+     * 
+ * + * + * string gcs_source_uri = 20 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.designcenter.v1.CatalogTemplateRevision.gcs_source_uri is + * deprecated. See google/cloud/designcenter/v1/catalog_management.proto;l=195 + * @param value The gcsSourceUri to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setGcsSourceUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + artifactLocationCase_ = 20; + artifactLocation_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Deprecated: Added new field tf_module_gcs_uri.
+     * The Cloud Storage URI, which must be in the format gs://[bucket] or
+     * gs://[bucket]/[object].
+     * 
+ * + * + * string gcs_source_uri = 20 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.designcenter.v1.CatalogTemplateRevision.gcs_source_uri is + * deprecated. See google/cloud/designcenter/v1/catalog_management.proto;l=195 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearGcsSourceUri() { + if (artifactLocationCase_ == 20) { + artifactLocationCase_ = 0; + artifactLocation_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Deprecated: Added new field tf_module_gcs_uri.
+     * The Cloud Storage URI, which must be in the format gs://[bucket] or
+     * gs://[bucket]/[object].
+     * 
+ * + * + * string gcs_source_uri = 20 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.designcenter.v1.CatalogTemplateRevision.gcs_source_uri is + * deprecated. See google/cloud/designcenter/v1/catalog_management.proto;l=195 + * @param value The bytes for gcsSourceUri to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setGcsSourceUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + artifactLocationCase_ = 20; + artifactLocation_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The application template revision source.
+     * 
+ * + * + * string application_template_revision_source = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the applicationTemplateRevisionSource field is set. + */ + @java.lang.Override + public boolean hasApplicationTemplateRevisionSource() { + return artifactLocationCase_ == 11; + } + + /** + * + * + *
+     * Optional. The application template revision source.
+     * 
+ * + * + * string application_template_revision_source = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The applicationTemplateRevisionSource. + */ + @java.lang.Override + public java.lang.String getApplicationTemplateRevisionSource() { + java.lang.Object ref = ""; + if (artifactLocationCase_ == 11) { + ref = artifactLocation_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (artifactLocationCase_ == 11) { + artifactLocation_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The application template revision source.
+     * 
+ * + * + * string application_template_revision_source = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for applicationTemplateRevisionSource. + */ + @java.lang.Override + public com.google.protobuf.ByteString getApplicationTemplateRevisionSourceBytes() { + java.lang.Object ref = ""; + if (artifactLocationCase_ == 11) { + ref = artifactLocation_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (artifactLocationCase_ == 11) { + artifactLocation_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The application template revision source.
+     * 
+ * + * + * string application_template_revision_source = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The applicationTemplateRevisionSource to set. + * @return This builder for chaining. + */ + public Builder setApplicationTemplateRevisionSource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + artifactLocationCase_ = 11; + artifactLocation_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The application template revision source.
+     * 
+ * + * + * string application_template_revision_source = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearApplicationTemplateRevisionSource() { + if (artifactLocationCase_ == 11) { + artifactLocationCase_ = 0; + artifactLocation_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The application template revision source.
+     * 
+ * + * + * string application_template_revision_source = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for applicationTemplateRevisionSource to set. + * @return This builder for chaining. + */ + public Builder setApplicationTemplateRevisionSourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + artifactLocationCase_ = 11; + artifactLocation_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig, + com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig.Builder, + com.google.cloud.designcenter.v1.DeveloperConnectSourceConfigOrBuilder> + developerConnectSourceConfigBuilder_; + + /** + * + * + *
+     * Optional. Configuration for fetching content from source code repository
+     * such as GitHub or Bitbucket through Developer Connect.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectSourceConfig developer_connect_source_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the developerConnectSourceConfig field is set. + */ + @java.lang.Override + public boolean hasDeveloperConnectSourceConfig() { + return artifactLocationCase_ == 15; + } + + /** + * + * + *
+     * Optional. Configuration for fetching content from source code repository
+     * such as GitHub or Bitbucket through Developer Connect.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectSourceConfig developer_connect_source_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The developerConnectSourceConfig. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig + getDeveloperConnectSourceConfig() { + if (developerConnectSourceConfigBuilder_ == null) { + if (artifactLocationCase_ == 15) { + return (com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig) artifactLocation_; + } + return com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig.getDefaultInstance(); + } else { + if (artifactLocationCase_ == 15) { + return developerConnectSourceConfigBuilder_.getMessage(); + } + return com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. Configuration for fetching content from source code repository
+     * such as GitHub or Bitbucket through Developer Connect.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectSourceConfig developer_connect_source_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDeveloperConnectSourceConfig( + com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig value) { + if (developerConnectSourceConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + artifactLocation_ = value; + onChanged(); + } else { + developerConnectSourceConfigBuilder_.setMessage(value); + } + artifactLocationCase_ = 15; + return this; + } + + /** + * + * + *
+     * Optional. Configuration for fetching content from source code repository
+     * such as GitHub or Bitbucket through Developer Connect.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectSourceConfig developer_connect_source_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDeveloperConnectSourceConfig( + com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig.Builder builderForValue) { + if (developerConnectSourceConfigBuilder_ == null) { + artifactLocation_ = builderForValue.build(); + onChanged(); + } else { + developerConnectSourceConfigBuilder_.setMessage(builderForValue.build()); + } + artifactLocationCase_ = 15; + return this; + } + + /** + * + * + *
+     * Optional. Configuration for fetching content from source code repository
+     * such as GitHub or Bitbucket through Developer Connect.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectSourceConfig developer_connect_source_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeDeveloperConnectSourceConfig( + com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig value) { + if (developerConnectSourceConfigBuilder_ == null) { + if (artifactLocationCase_ == 15 + && artifactLocation_ + != com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig + .getDefaultInstance()) { + artifactLocation_ = + com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig.newBuilder( + (com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig) + artifactLocation_) + .mergeFrom(value) + .buildPartial(); + } else { + artifactLocation_ = value; + } + onChanged(); + } else { + if (artifactLocationCase_ == 15) { + developerConnectSourceConfigBuilder_.mergeFrom(value); + } else { + developerConnectSourceConfigBuilder_.setMessage(value); + } + } + artifactLocationCase_ = 15; + return this; + } + + /** + * + * + *
+     * Optional. Configuration for fetching content from source code repository
+     * such as GitHub or Bitbucket through Developer Connect.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectSourceConfig developer_connect_source_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDeveloperConnectSourceConfig() { + if (developerConnectSourceConfigBuilder_ == null) { + if (artifactLocationCase_ == 15) { + artifactLocationCase_ = 0; + artifactLocation_ = null; + onChanged(); + } + } else { + if (artifactLocationCase_ == 15) { + artifactLocationCase_ = 0; + artifactLocation_ = null; + } + developerConnectSourceConfigBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Configuration for fetching content from source code repository
+     * such as GitHub or Bitbucket through Developer Connect.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectSourceConfig developer_connect_source_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig.Builder + getDeveloperConnectSourceConfigBuilder() { + return internalGetDeveloperConnectSourceConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Configuration for fetching content from source code repository
+     * such as GitHub or Bitbucket through Developer Connect.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectSourceConfig developer_connect_source_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.DeveloperConnectSourceConfigOrBuilder + getDeveloperConnectSourceConfigOrBuilder() { + if ((artifactLocationCase_ == 15) && (developerConnectSourceConfigBuilder_ != null)) { + return developerConnectSourceConfigBuilder_.getMessageOrBuilder(); + } else { + if (artifactLocationCase_ == 15) { + return (com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig) artifactLocation_; + } + return com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. Configuration for fetching content from source code repository
+     * such as GitHub or Bitbucket through Developer Connect.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectSourceConfig developer_connect_source_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig, + com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig.Builder, + com.google.cloud.designcenter.v1.DeveloperConnectSourceConfigOrBuilder> + internalGetDeveloperConnectSourceConfigFieldBuilder() { + if (developerConnectSourceConfigBuilder_ == null) { + if (!(artifactLocationCase_ == 15)) { + artifactLocation_ = + com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig.getDefaultInstance(); + } + developerConnectSourceConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig, + com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig.Builder, + com.google.cloud.designcenter.v1.DeveloperConnectSourceConfigOrBuilder>( + (com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig) artifactLocation_, + getParentForChildren(), + isClean()); + artifactLocation_ = null; + } + artifactLocationCase_ = 15; + onChanged(); + return developerConnectSourceConfigBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.OciRepo, + com.google.cloud.designcenter.v1.OciRepo.Builder, + com.google.cloud.designcenter.v1.OciRepoOrBuilder> + ociRepoBuilder_; + + /** + * + * + *
+     * Optional. The Open Container Initiative (OCI) repo source that contains
+     * helm charts.
+     * 
+ * + * + * .google.cloud.designcenter.v1.OciRepo oci_repo = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the ociRepo field is set. + */ + @java.lang.Override + public boolean hasOciRepo() { + return artifactLocationCase_ == 17; + } + + /** + * + * + *
+     * Optional. The Open Container Initiative (OCI) repo source that contains
+     * helm charts.
+     * 
+ * + * + * .google.cloud.designcenter.v1.OciRepo oci_repo = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The ociRepo. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.OciRepo getOciRepo() { + if (ociRepoBuilder_ == null) { + if (artifactLocationCase_ == 17) { + return (com.google.cloud.designcenter.v1.OciRepo) artifactLocation_; + } + return com.google.cloud.designcenter.v1.OciRepo.getDefaultInstance(); + } else { + if (artifactLocationCase_ == 17) { + return ociRepoBuilder_.getMessage(); + } + return com.google.cloud.designcenter.v1.OciRepo.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. The Open Container Initiative (OCI) repo source that contains
+     * helm charts.
+     * 
+ * + * + * .google.cloud.designcenter.v1.OciRepo oci_repo = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOciRepo(com.google.cloud.designcenter.v1.OciRepo value) { + if (ociRepoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + artifactLocation_ = value; + onChanged(); + } else { + ociRepoBuilder_.setMessage(value); + } + artifactLocationCase_ = 17; + return this; + } + + /** + * + * + *
+     * Optional. The Open Container Initiative (OCI) repo source that contains
+     * helm charts.
+     * 
+ * + * + * .google.cloud.designcenter.v1.OciRepo oci_repo = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOciRepo(com.google.cloud.designcenter.v1.OciRepo.Builder builderForValue) { + if (ociRepoBuilder_ == null) { + artifactLocation_ = builderForValue.build(); + onChanged(); + } else { + ociRepoBuilder_.setMessage(builderForValue.build()); + } + artifactLocationCase_ = 17; + return this; + } + + /** + * + * + *
+     * Optional. The Open Container Initiative (OCI) repo source that contains
+     * helm charts.
+     * 
+ * + * + * .google.cloud.designcenter.v1.OciRepo oci_repo = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeOciRepo(com.google.cloud.designcenter.v1.OciRepo value) { + if (ociRepoBuilder_ == null) { + if (artifactLocationCase_ == 17 + && artifactLocation_ != com.google.cloud.designcenter.v1.OciRepo.getDefaultInstance()) { + artifactLocation_ = + com.google.cloud.designcenter.v1.OciRepo.newBuilder( + (com.google.cloud.designcenter.v1.OciRepo) artifactLocation_) + .mergeFrom(value) + .buildPartial(); + } else { + artifactLocation_ = value; + } + onChanged(); + } else { + if (artifactLocationCase_ == 17) { + ociRepoBuilder_.mergeFrom(value); + } else { + ociRepoBuilder_.setMessage(value); + } + } + artifactLocationCase_ = 17; + return this; + } + + /** + * + * + *
+     * Optional. The Open Container Initiative (OCI) repo source that contains
+     * helm charts.
+     * 
+ * + * + * .google.cloud.designcenter.v1.OciRepo oci_repo = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearOciRepo() { + if (ociRepoBuilder_ == null) { + if (artifactLocationCase_ == 17) { + artifactLocationCase_ = 0; + artifactLocation_ = null; + onChanged(); + } + } else { + if (artifactLocationCase_ == 17) { + artifactLocationCase_ = 0; + artifactLocation_ = null; + } + ociRepoBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. The Open Container Initiative (OCI) repo source that contains
+     * helm charts.
+     * 
+ * + * + * .google.cloud.designcenter.v1.OciRepo oci_repo = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.OciRepo.Builder getOciRepoBuilder() { + return internalGetOciRepoFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The Open Container Initiative (OCI) repo source that contains
+     * helm charts.
+     * 
+ * + * + * .google.cloud.designcenter.v1.OciRepo oci_repo = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.OciRepoOrBuilder getOciRepoOrBuilder() { + if ((artifactLocationCase_ == 17) && (ociRepoBuilder_ != null)) { + return ociRepoBuilder_.getMessageOrBuilder(); + } else { + if (artifactLocationCase_ == 17) { + return (com.google.cloud.designcenter.v1.OciRepo) artifactLocation_; + } + return com.google.cloud.designcenter.v1.OciRepo.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. The Open Container Initiative (OCI) repo source that contains
+     * helm charts.
+     * 
+ * + * + * .google.cloud.designcenter.v1.OciRepo oci_repo = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.OciRepo, + com.google.cloud.designcenter.v1.OciRepo.Builder, + com.google.cloud.designcenter.v1.OciRepoOrBuilder> + internalGetOciRepoFieldBuilder() { + if (ociRepoBuilder_ == null) { + if (!(artifactLocationCase_ == 17)) { + artifactLocation_ = com.google.cloud.designcenter.v1.OciRepo.getDefaultInstance(); + } + ociRepoBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.OciRepo, + com.google.cloud.designcenter.v1.OciRepo.Builder, + com.google.cloud.designcenter.v1.OciRepoOrBuilder>( + (com.google.cloud.designcenter.v1.OciRepo) artifactLocation_, + getParentForChildren(), + isClean()); + artifactLocation_ = null; + } + artifactLocationCase_ = 17; + onChanged(); + return ociRepoBuilder_; + } + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Identifier. The catalog template revision name.
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template/revisions/$revision`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.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; + } + } + + /** + * + * + *
+     * Identifier. The catalog template revision name.
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template/revisions/$revision`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + + /** + * + * + *
+     * Identifier. The catalog template revision name.
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template/revisions/$revision`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier. The catalog template revision name.
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template/revisions/$revision`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier. The catalog template revision name.
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template/revisions/$revision`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
+     * Optional. The catalog template revision description.
+     * 
+ * + * string description = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The catalog template revision description.
+     * 
+ * + * string description = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The catalog template revision description.
+     * 
+ * + * string description = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The catalog template revision description.
+     * 
+ * + * string description = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The catalog template revision description.
+     * 
+ * + * string description = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private int type_ = 0; + + /** + * + * + *
+     * Optional. The Application Design Center application template type.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateType type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
+     * Optional. The Application Design Center application template type.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateType type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + type_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The Application Design Center application template type.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateType type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TemplateType getType() { + com.google.cloud.designcenter.v1.TemplateType result = + com.google.cloud.designcenter.v1.TemplateType.forNumber(type_); + return result == null ? com.google.cloud.designcenter.v1.TemplateType.UNRECOGNIZED : result; + } + + /** + * + * + *
+     * Optional. The Application Design Center application template type.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateType type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(com.google.cloud.designcenter.v1.TemplateType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; + type_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The Application Design Center application template type.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateType type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000080); + type_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
+     * Output only. The catalog template creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
+     * Output only. The catalog template creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 6 [(.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 catalog template creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 6 [(.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_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The catalog template creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 6 [(.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_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The catalog template creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The catalog template creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000100); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The catalog template creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The catalog template creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 6 [(.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 catalog template creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + 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.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
+     * Output only. The catalog template update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
+     * Output only. The catalog template update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 7 [(.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 catalog template update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 7 [(.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_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The catalog template update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 7 [(.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_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The catalog template update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The catalog template update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000200); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The catalog template update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The catalog template update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 7 [(.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 catalog template update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.cloud.designcenter.v1.TFBlueprintMetadata templateMetadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.TFBlueprintMetadata, + com.google.cloud.designcenter.v1.TFBlueprintMetadata.Builder, + com.google.cloud.designcenter.v1.TFBlueprintMetadataOrBuilder> + templateMetadataBuilder_; + + /** + * + * + *
+     * Output only. Template metadata related to Terraform input and output.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata template_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the templateMetadata field is set. + */ + public boolean hasTemplateMetadata() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
+     * Output only. Template metadata related to Terraform input and output.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata template_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The templateMetadata. + */ + public com.google.cloud.designcenter.v1.TFBlueprintMetadata getTemplateMetadata() { + if (templateMetadataBuilder_ == null) { + return templateMetadata_ == null + ? com.google.cloud.designcenter.v1.TFBlueprintMetadata.getDefaultInstance() + : templateMetadata_; + } else { + return templateMetadataBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Template metadata related to Terraform input and output.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata template_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTemplateMetadata(com.google.cloud.designcenter.v1.TFBlueprintMetadata value) { + if (templateMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + templateMetadata_ = value; + } else { + templateMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Template metadata related to Terraform input and output.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata template_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTemplateMetadata( + com.google.cloud.designcenter.v1.TFBlueprintMetadata.Builder builderForValue) { + if (templateMetadataBuilder_ == null) { + templateMetadata_ = builderForValue.build(); + } else { + templateMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Template metadata related to Terraform input and output.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata template_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeTemplateMetadata( + com.google.cloud.designcenter.v1.TFBlueprintMetadata value) { + if (templateMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0) + && templateMetadata_ != null + && templateMetadata_ + != com.google.cloud.designcenter.v1.TFBlueprintMetadata.getDefaultInstance()) { + getTemplateMetadataBuilder().mergeFrom(value); + } else { + templateMetadata_ = value; + } + } else { + templateMetadataBuilder_.mergeFrom(value); + } + if (templateMetadata_ != null) { + bitField0_ |= 0x00000400; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Template metadata related to Terraform input and output.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata template_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearTemplateMetadata() { + bitField0_ = (bitField0_ & ~0x00000400); + templateMetadata_ = null; + if (templateMetadataBuilder_ != null) { + templateMetadataBuilder_.dispose(); + templateMetadataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Template metadata related to Terraform input and output.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata template_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.TFBlueprintMetadata.Builder + getTemplateMetadataBuilder() { + bitField0_ |= 0x00000400; + onChanged(); + return internalGetTemplateMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Template metadata related to Terraform input and output.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata template_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.TFBlueprintMetadataOrBuilder + getTemplateMetadataOrBuilder() { + if (templateMetadataBuilder_ != null) { + return templateMetadataBuilder_.getMessageOrBuilder(); + } else { + return templateMetadata_ == null + ? com.google.cloud.designcenter.v1.TFBlueprintMetadata.getDefaultInstance() + : templateMetadata_; + } + } + + /** + * + * + *
+     * Output only. Template metadata related to Terraform input and output.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata template_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.TFBlueprintMetadata, + com.google.cloud.designcenter.v1.TFBlueprintMetadata.Builder, + com.google.cloud.designcenter.v1.TFBlueprintMetadataOrBuilder> + internalGetTemplateMetadataFieldBuilder() { + if (templateMetadataBuilder_ == null) { + templateMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.TFBlueprintMetadata, + com.google.cloud.designcenter.v1.TFBlueprintMetadata.Builder, + com.google.cloud.designcenter.v1.TFBlueprintMetadataOrBuilder>( + getTemplateMetadata(), getParentForChildren(), isClean()); + templateMetadata_ = null; + } + return templateMetadataBuilder_; + } + + private int state_ = 0; + + /** + * + * + *
+     * Output only. The template state (validating/ready/invalid).
+     * 
+ * + * + * .google.cloud.designcenter.v1.CatalogTemplateRevision.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+     * Output only. The template state (validating/ready/invalid).
+     * 
+ * + * + * .google.cloud.designcenter.v1.CatalogTemplateRevision.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The template state (validating/ready/invalid).
+     * 
+ * + * + * .google.cloud.designcenter.v1.CatalogTemplateRevision.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.CatalogTemplateRevision.State getState() { + com.google.cloud.designcenter.v1.CatalogTemplateRevision.State result = + com.google.cloud.designcenter.v1.CatalogTemplateRevision.State.forNumber(state_); + return result == null + ? com.google.cloud.designcenter.v1.CatalogTemplateRevision.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Output only. The template state (validating/ready/invalid).
+     * 
+ * + * + * .google.cloud.designcenter.v1.CatalogTemplateRevision.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.designcenter.v1.CatalogTemplateRevision.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000800; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The template state (validating/ready/invalid).
+     * 
+ * + * + * .google.cloud.designcenter.v1.CatalogTemplateRevision.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000800); + state_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.designcenter.v1.SerializedApplicationTemplate + applicationTemplateRevision_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.SerializedApplicationTemplate, + com.google.cloud.designcenter.v1.SerializedApplicationTemplate.Builder, + com.google.cloud.designcenter.v1.SerializedApplicationTemplateOrBuilder> + applicationTemplateRevisionBuilder_; + + /** + * + * + *
+     * Output only. The application template revision.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate application_template_revision = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the applicationTemplateRevision field is set. + */ + public boolean hasApplicationTemplateRevision() { + return ((bitField0_ & 0x00001000) != 0); + } + + /** + * + * + *
+     * Output only. The application template revision.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate application_template_revision = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The applicationTemplateRevision. + */ + public com.google.cloud.designcenter.v1.SerializedApplicationTemplate + getApplicationTemplateRevision() { + if (applicationTemplateRevisionBuilder_ == null) { + return applicationTemplateRevision_ == null + ? com.google.cloud.designcenter.v1.SerializedApplicationTemplate.getDefaultInstance() + : applicationTemplateRevision_; + } else { + return applicationTemplateRevisionBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. The application template revision.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate application_template_revision = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setApplicationTemplateRevision( + com.google.cloud.designcenter.v1.SerializedApplicationTemplate value) { + if (applicationTemplateRevisionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + applicationTemplateRevision_ = value; + } else { + applicationTemplateRevisionBuilder_.setMessage(value); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The application template revision.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate application_template_revision = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setApplicationTemplateRevision( + com.google.cloud.designcenter.v1.SerializedApplicationTemplate.Builder builderForValue) { + if (applicationTemplateRevisionBuilder_ == null) { + applicationTemplateRevision_ = builderForValue.build(); + } else { + applicationTemplateRevisionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The application template revision.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate application_template_revision = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeApplicationTemplateRevision( + com.google.cloud.designcenter.v1.SerializedApplicationTemplate value) { + if (applicationTemplateRevisionBuilder_ == null) { + if (((bitField0_ & 0x00001000) != 0) + && applicationTemplateRevision_ != null + && applicationTemplateRevision_ + != com.google.cloud.designcenter.v1.SerializedApplicationTemplate + .getDefaultInstance()) { + getApplicationTemplateRevisionBuilder().mergeFrom(value); + } else { + applicationTemplateRevision_ = value; + } + } else { + applicationTemplateRevisionBuilder_.mergeFrom(value); + } + if (applicationTemplateRevision_ != null) { + bitField0_ |= 0x00001000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The application template revision.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate application_template_revision = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearApplicationTemplateRevision() { + bitField0_ = (bitField0_ & ~0x00001000); + applicationTemplateRevision_ = null; + if (applicationTemplateRevisionBuilder_ != null) { + applicationTemplateRevisionBuilder_.dispose(); + applicationTemplateRevisionBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The application template revision.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate application_template_revision = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.SerializedApplicationTemplate.Builder + getApplicationTemplateRevisionBuilder() { + bitField0_ |= 0x00001000; + onChanged(); + return internalGetApplicationTemplateRevisionFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The application template revision.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate application_template_revision = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.SerializedApplicationTemplateOrBuilder + getApplicationTemplateRevisionOrBuilder() { + if (applicationTemplateRevisionBuilder_ != null) { + return applicationTemplateRevisionBuilder_.getMessageOrBuilder(); + } else { + return applicationTemplateRevision_ == null + ? com.google.cloud.designcenter.v1.SerializedApplicationTemplate.getDefaultInstance() + : applicationTemplateRevision_; + } + } + + /** + * + * + *
+     * Output only. The application template revision.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate application_template_revision = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.SerializedApplicationTemplate, + com.google.cloud.designcenter.v1.SerializedApplicationTemplate.Builder, + com.google.cloud.designcenter.v1.SerializedApplicationTemplateOrBuilder> + internalGetApplicationTemplateRevisionFieldBuilder() { + if (applicationTemplateRevisionBuilder_ == null) { + applicationTemplateRevisionBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.SerializedApplicationTemplate, + com.google.cloud.designcenter.v1.SerializedApplicationTemplate.Builder, + com.google.cloud.designcenter.v1.SerializedApplicationTemplateOrBuilder>( + getApplicationTemplateRevision(), getParentForChildren(), isClean()); + applicationTemplateRevision_ = null; + } + return applicationTemplateRevisionBuilder_; + } + + private com.google.cloud.designcenter.v1.HelmChartMetadata helmChartMetadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.HelmChartMetadata, + com.google.cloud.designcenter.v1.HelmChartMetadata.Builder, + com.google.cloud.designcenter.v1.HelmChartMetadataOrBuilder> + helmChartMetadataBuilder_; + + /** + * + * + *
+     * Output only. The helm chart metadata.
+     * 
+ * + * + * .google.cloud.designcenter.v1.HelmChartMetadata helm_chart_metadata = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the helmChartMetadata field is set. + */ + public boolean hasHelmChartMetadata() { + return ((bitField0_ & 0x00002000) != 0); + } + + /** + * + * + *
+     * Output only. The helm chart metadata.
+     * 
+ * + * + * .google.cloud.designcenter.v1.HelmChartMetadata helm_chart_metadata = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The helmChartMetadata. + */ + public com.google.cloud.designcenter.v1.HelmChartMetadata getHelmChartMetadata() { + if (helmChartMetadataBuilder_ == null) { + return helmChartMetadata_ == null + ? com.google.cloud.designcenter.v1.HelmChartMetadata.getDefaultInstance() + : helmChartMetadata_; + } else { + return helmChartMetadataBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. The helm chart metadata.
+     * 
+ * + * + * .google.cloud.designcenter.v1.HelmChartMetadata helm_chart_metadata = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setHelmChartMetadata(com.google.cloud.designcenter.v1.HelmChartMetadata value) { + if (helmChartMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + helmChartMetadata_ = value; + } else { + helmChartMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The helm chart metadata.
+     * 
+ * + * + * .google.cloud.designcenter.v1.HelmChartMetadata helm_chart_metadata = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setHelmChartMetadata( + com.google.cloud.designcenter.v1.HelmChartMetadata.Builder builderForValue) { + if (helmChartMetadataBuilder_ == null) { + helmChartMetadata_ = builderForValue.build(); + } else { + helmChartMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The helm chart metadata.
+     * 
+ * + * + * .google.cloud.designcenter.v1.HelmChartMetadata helm_chart_metadata = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeHelmChartMetadata( + com.google.cloud.designcenter.v1.HelmChartMetadata value) { + if (helmChartMetadataBuilder_ == null) { + if (((bitField0_ & 0x00002000) != 0) + && helmChartMetadata_ != null + && helmChartMetadata_ + != com.google.cloud.designcenter.v1.HelmChartMetadata.getDefaultInstance()) { + getHelmChartMetadataBuilder().mergeFrom(value); + } else { + helmChartMetadata_ = value; + } + } else { + helmChartMetadataBuilder_.mergeFrom(value); + } + if (helmChartMetadata_ != null) { + bitField0_ |= 0x00002000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The helm chart metadata.
+     * 
+ * + * + * .google.cloud.designcenter.v1.HelmChartMetadata helm_chart_metadata = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearHelmChartMetadata() { + bitField0_ = (bitField0_ & ~0x00002000); + helmChartMetadata_ = null; + if (helmChartMetadataBuilder_ != null) { + helmChartMetadataBuilder_.dispose(); + helmChartMetadataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The helm chart metadata.
+     * 
+ * + * + * .google.cloud.designcenter.v1.HelmChartMetadata helm_chart_metadata = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.HelmChartMetadata.Builder + getHelmChartMetadataBuilder() { + bitField0_ |= 0x00002000; + onChanged(); + return internalGetHelmChartMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The helm chart metadata.
+     * 
+ * + * + * .google.cloud.designcenter.v1.HelmChartMetadata helm_chart_metadata = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.HelmChartMetadataOrBuilder + getHelmChartMetadataOrBuilder() { + if (helmChartMetadataBuilder_ != null) { + return helmChartMetadataBuilder_.getMessageOrBuilder(); + } else { + return helmChartMetadata_ == null + ? com.google.cloud.designcenter.v1.HelmChartMetadata.getDefaultInstance() + : helmChartMetadata_; + } + } + + /** + * + * + *
+     * Output only. The helm chart metadata.
+     * 
+ * + * + * .google.cloud.designcenter.v1.HelmChartMetadata helm_chart_metadata = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.HelmChartMetadata, + com.google.cloud.designcenter.v1.HelmChartMetadata.Builder, + com.google.cloud.designcenter.v1.HelmChartMetadataOrBuilder> + internalGetHelmChartMetadataFieldBuilder() { + if (helmChartMetadataBuilder_ == null) { + helmChartMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.HelmChartMetadata, + com.google.cloud.designcenter.v1.HelmChartMetadata.Builder, + com.google.cloud.designcenter.v1.HelmChartMetadataOrBuilder>( + getHelmChartMetadata(), getParentForChildren(), isClean()); + helmChartMetadata_ = null; + } + return helmChartMetadataBuilder_; + } + + private java.lang.Object uuid_ = ""; + + /** + * + * + *
+     * Output only. UUID of the template revision.
+     * 
+ * + * string uuid = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uuid. + */ + public java.lang.String getUuid() { + java.lang.Object ref = uuid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uuid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. UUID of the template revision.
+     * 
+ * + * string uuid = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uuid. + */ + public com.google.protobuf.ByteString getUuidBytes() { + java.lang.Object ref = uuid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. UUID of the template revision.
+     * 
+ * + * string uuid = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The uuid to set. + * @return This builder for chaining. + */ + public Builder setUuid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uuid_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. UUID of the template revision.
+     * 
+ * + * string uuid = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearUuid() { + uuid_ = getDefaultInstance().getUuid(); + bitField0_ = (bitField0_ & ~0x00004000); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. UUID of the template revision.
+     * 
+ * + * string uuid = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for uuid to set. + * @return This builder for chaining. + */ + public Builder setUuidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uuid_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + private com.google.cloud.designcenter.v1.MetadataInput metadataInput_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.MetadataInput, + com.google.cloud.designcenter.v1.MetadataInput.Builder, + com.google.cloud.designcenter.v1.MetadataInputOrBuilder> + metadataInputBuilder_; + + /** + * + * + *
+     * Optional. Metadata input.
+     * 
+ * + * + * .google.cloud.designcenter.v1.MetadataInput metadata_input = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the metadataInput field is set. + */ + public boolean hasMetadataInput() { + return ((bitField0_ & 0x00008000) != 0); + } + + /** + * + * + *
+     * Optional. Metadata input.
+     * 
+ * + * + * .google.cloud.designcenter.v1.MetadataInput metadata_input = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The metadataInput. + */ + public com.google.cloud.designcenter.v1.MetadataInput getMetadataInput() { + if (metadataInputBuilder_ == null) { + return metadataInput_ == null + ? com.google.cloud.designcenter.v1.MetadataInput.getDefaultInstance() + : metadataInput_; + } else { + return metadataInputBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Metadata input.
+     * 
+ * + * + * .google.cloud.designcenter.v1.MetadataInput metadata_input = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMetadataInput(com.google.cloud.designcenter.v1.MetadataInput value) { + if (metadataInputBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadataInput_ = value; + } else { + metadataInputBuilder_.setMessage(value); + } + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Metadata input.
+     * 
+ * + * + * .google.cloud.designcenter.v1.MetadataInput metadata_input = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMetadataInput( + com.google.cloud.designcenter.v1.MetadataInput.Builder builderForValue) { + if (metadataInputBuilder_ == null) { + metadataInput_ = builderForValue.build(); + } else { + metadataInputBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Metadata input.
+     * 
+ * + * + * .google.cloud.designcenter.v1.MetadataInput metadata_input = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeMetadataInput(com.google.cloud.designcenter.v1.MetadataInput value) { + if (metadataInputBuilder_ == null) { + if (((bitField0_ & 0x00008000) != 0) + && metadataInput_ != null + && metadataInput_ + != com.google.cloud.designcenter.v1.MetadataInput.getDefaultInstance()) { + getMetadataInputBuilder().mergeFrom(value); + } else { + metadataInput_ = value; + } + } else { + metadataInputBuilder_.mergeFrom(value); + } + if (metadataInput_ != null) { + bitField0_ |= 0x00008000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Metadata input.
+     * 
+ * + * + * .google.cloud.designcenter.v1.MetadataInput metadata_input = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearMetadataInput() { + bitField0_ = (bitField0_ & ~0x00008000); + metadataInput_ = null; + if (metadataInputBuilder_ != null) { + metadataInputBuilder_.dispose(); + metadataInputBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Metadata input.
+     * 
+ * + * + * .google.cloud.designcenter.v1.MetadataInput metadata_input = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.MetadataInput.Builder getMetadataInputBuilder() { + bitField0_ |= 0x00008000; + onChanged(); + return internalGetMetadataInputFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Metadata input.
+     * 
+ * + * + * .google.cloud.designcenter.v1.MetadataInput metadata_input = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.MetadataInputOrBuilder getMetadataInputOrBuilder() { + if (metadataInputBuilder_ != null) { + return metadataInputBuilder_.getMessageOrBuilder(); + } else { + return metadataInput_ == null + ? com.google.cloud.designcenter.v1.MetadataInput.getDefaultInstance() + : metadataInput_; + } + } + + /** + * + * + *
+     * Optional. Metadata input.
+     * 
+ * + * + * .google.cloud.designcenter.v1.MetadataInput metadata_input = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.MetadataInput, + com.google.cloud.designcenter.v1.MetadataInput.Builder, + com.google.cloud.designcenter.v1.MetadataInputOrBuilder> + internalGetMetadataInputFieldBuilder() { + if (metadataInputBuilder_ == null) { + metadataInputBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.MetadataInput, + com.google.cloud.designcenter.v1.MetadataInput.Builder, + com.google.cloud.designcenter.v1.MetadataInputOrBuilder>( + getMetadataInput(), getParentForChildren(), isClean()); + metadataInput_ = null; + } + return metadataInputBuilder_; + } + + private int templateCategory_ = 0; + + /** + * + * + *
+     * Output only. The category of the template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateCategory template_category = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for templateCategory. + */ + @java.lang.Override + public int getTemplateCategoryValue() { + return templateCategory_; + } + + /** + * + * + *
+     * Output only. The category of the template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateCategory template_category = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for templateCategory to set. + * @return This builder for chaining. + */ + public Builder setTemplateCategoryValue(int value) { + templateCategory_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The category of the template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateCategory template_category = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The templateCategory. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TemplateCategory getTemplateCategory() { + com.google.cloud.designcenter.v1.TemplateCategory result = + com.google.cloud.designcenter.v1.TemplateCategory.forNumber(templateCategory_); + return result == null + ? com.google.cloud.designcenter.v1.TemplateCategory.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Output only. The category of the template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateCategory template_category = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The templateCategory to set. + * @return This builder for chaining. + */ + public Builder setTemplateCategory(com.google.cloud.designcenter.v1.TemplateCategory value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00010000; + templateCategory_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The category of the template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateCategory template_category = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearTemplateCategory() { + bitField0_ = (bitField0_ & ~0x00010000); + templateCategory_ = 0; + onChanged(); + return this; + } + + private java.util.List logicalProducts_ = + java.util.Collections.emptyList(); + + private void ensureLogicalProductsIsMutable() { + if (!((bitField0_ & 0x00020000) != 0)) { + logicalProducts_ = + new java.util.ArrayList( + logicalProducts_); + bitField0_ |= 0x00020000; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.LogicalProduct, + com.google.cloud.designcenter.v1.LogicalProduct.Builder, + com.google.cloud.designcenter.v1.LogicalProductOrBuilder> + logicalProductsBuilder_; + + /** + * + * + *
+     * Output only. The Product Main logical product type information.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.LogicalProduct logical_products = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getLogicalProductsList() { + if (logicalProductsBuilder_ == null) { + return java.util.Collections.unmodifiableList(logicalProducts_); + } else { + return logicalProductsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Output only. The Product Main logical product type information.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.LogicalProduct logical_products = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getLogicalProductsCount() { + if (logicalProductsBuilder_ == null) { + return logicalProducts_.size(); + } else { + return logicalProductsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Output only. The Product Main logical product type information.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.LogicalProduct logical_products = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.LogicalProduct getLogicalProducts(int index) { + if (logicalProductsBuilder_ == null) { + return logicalProducts_.get(index); + } else { + return logicalProductsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Output only. The Product Main logical product type information.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.LogicalProduct logical_products = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setLogicalProducts( + int index, com.google.cloud.designcenter.v1.LogicalProduct value) { + if (logicalProductsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogicalProductsIsMutable(); + logicalProducts_.set(index, value); + onChanged(); + } else { + logicalProductsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. The Product Main logical product type information.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.LogicalProduct logical_products = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setLogicalProducts( + int index, com.google.cloud.designcenter.v1.LogicalProduct.Builder builderForValue) { + if (logicalProductsBuilder_ == null) { + ensureLogicalProductsIsMutable(); + logicalProducts_.set(index, builderForValue.build()); + onChanged(); + } else { + logicalProductsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The Product Main logical product type information.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.LogicalProduct logical_products = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addLogicalProducts(com.google.cloud.designcenter.v1.LogicalProduct value) { + if (logicalProductsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogicalProductsIsMutable(); + logicalProducts_.add(value); + onChanged(); + } else { + logicalProductsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Output only. The Product Main logical product type information.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.LogicalProduct logical_products = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addLogicalProducts( + int index, com.google.cloud.designcenter.v1.LogicalProduct value) { + if (logicalProductsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogicalProductsIsMutable(); + logicalProducts_.add(index, value); + onChanged(); + } else { + logicalProductsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. The Product Main logical product type information.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.LogicalProduct logical_products = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addLogicalProducts( + com.google.cloud.designcenter.v1.LogicalProduct.Builder builderForValue) { + if (logicalProductsBuilder_ == null) { + ensureLogicalProductsIsMutable(); + logicalProducts_.add(builderForValue.build()); + onChanged(); + } else { + logicalProductsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The Product Main logical product type information.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.LogicalProduct logical_products = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addLogicalProducts( + int index, com.google.cloud.designcenter.v1.LogicalProduct.Builder builderForValue) { + if (logicalProductsBuilder_ == null) { + ensureLogicalProductsIsMutable(); + logicalProducts_.add(index, builderForValue.build()); + onChanged(); + } else { + logicalProductsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The Product Main logical product type information.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.LogicalProduct logical_products = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllLogicalProducts( + java.lang.Iterable values) { + if (logicalProductsBuilder_ == null) { + ensureLogicalProductsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, logicalProducts_); + onChanged(); + } else { + logicalProductsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Output only. The Product Main logical product type information.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.LogicalProduct logical_products = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearLogicalProducts() { + if (logicalProductsBuilder_ == null) { + logicalProducts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00020000); + onChanged(); + } else { + logicalProductsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Output only. The Product Main logical product type information.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.LogicalProduct logical_products = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeLogicalProducts(int index) { + if (logicalProductsBuilder_ == null) { + ensureLogicalProductsIsMutable(); + logicalProducts_.remove(index); + onChanged(); + } else { + logicalProductsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Output only. The Product Main logical product type information.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.LogicalProduct logical_products = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.LogicalProduct.Builder getLogicalProductsBuilder( + int index) { + return internalGetLogicalProductsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Output only. The Product Main logical product type information.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.LogicalProduct logical_products = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.LogicalProductOrBuilder getLogicalProductsOrBuilder( + int index) { + if (logicalProductsBuilder_ == null) { + return logicalProducts_.get(index); + } else { + return logicalProductsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Output only. The Product Main logical product type information.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.LogicalProduct logical_products = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getLogicalProductsOrBuilderList() { + if (logicalProductsBuilder_ != null) { + return logicalProductsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(logicalProducts_); + } + } + + /** + * + * + *
+     * Output only. The Product Main logical product type information.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.LogicalProduct logical_products = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.LogicalProduct.Builder addLogicalProductsBuilder() { + return internalGetLogicalProductsFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.LogicalProduct.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. The Product Main logical product type information.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.LogicalProduct logical_products = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.LogicalProduct.Builder addLogicalProductsBuilder( + int index) { + return internalGetLogicalProductsFieldBuilder() + .addBuilder(index, com.google.cloud.designcenter.v1.LogicalProduct.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. The Product Main logical product type information.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.LogicalProduct logical_products = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getLogicalProductsBuilderList() { + return internalGetLogicalProductsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.LogicalProduct, + com.google.cloud.designcenter.v1.LogicalProduct.Builder, + com.google.cloud.designcenter.v1.LogicalProductOrBuilder> + internalGetLogicalProductsFieldBuilder() { + if (logicalProductsBuilder_ == null) { + logicalProductsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.LogicalProduct, + com.google.cloud.designcenter.v1.LogicalProduct.Builder, + com.google.cloud.designcenter.v1.LogicalProductOrBuilder>( + logicalProducts_, + ((bitField0_ & 0x00020000) != 0), + getParentForChildren(), + isClean()); + logicalProducts_ = null; + } + return logicalProductsBuilder_; + } + + private com.google.protobuf.MapField annotations_; + + private com.google.protobuf.MapField + internalGetAnnotations() { + if (annotations_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AnnotationsDefaultEntryHolder.defaultEntry); + } + return annotations_; + } + + private com.google.protobuf.MapField + internalGetMutableAnnotations() { + if (annotations_ == null) { + annotations_ = + com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry); + } + if (!annotations_.isMutable()) { + annotations_ = annotations_.copy(); + } + bitField0_ |= 0x00040000; + onChanged(); + return annotations_; + } + + public int getAnnotationsCount() { + return internalGetAnnotations().getMap().size(); + } + + /** + * + * + *
+     * Optional. The annotations of the template revision.
+     * Key is the annotation name. Value is the annotation value.
+     * 
+ * + * map<string, string> annotations = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetAnnotations().getMap().containsKey(key); + } + + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAnnotations() { + return getAnnotationsMap(); + } + + /** + * + * + *
+     * Optional. The annotations of the template revision.
+     * Key is the annotation name. Value is the annotation value.
+     * 
+ * + * map<string, string> annotations = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getAnnotationsMap() { + return internalGetAnnotations().getMap(); + } + + /** + * + * + *
+     * Optional. The annotations of the template revision.
+     * Key is the annotation name. Value is the annotation value.
+     * 
+ * + * map<string, string> annotations = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+     * Optional. The annotations of the template revision.
+     * Key is the annotation name. Value is the annotation value.
+     * 
+ * + * map<string, string> annotations = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearAnnotations() { + bitField0_ = (bitField0_ & ~0x00040000); + internalGetMutableAnnotations().getMutableMap().clear(); + return this; + } + + /** + * + * + *
+     * Optional. The annotations of the template revision.
+     * Key is the annotation name. Value is the annotation value.
+     * 
+ * + * map<string, string> annotations = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableAnnotations().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableAnnotations() { + bitField0_ |= 0x00040000; + return internalGetMutableAnnotations().getMutableMap(); + } + + /** + * + * + *
+     * Optional. The annotations of the template revision.
+     * Key is the annotation name. Value is the annotation value.
+     * 
+ * + * map<string, string> annotations = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAnnotations(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableAnnotations().getMutableMap().put(key, value); + bitField0_ |= 0x00040000; + return this; + } + + /** + * + * + *
+     * Optional. The annotations of the template revision.
+     * Key is the annotation name. Value is the annotation value.
+     * 
+ * + * map<string, string> annotations = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllAnnotations(java.util.Map values) { + internalGetMutableAnnotations().getMutableMap().putAll(values); + bitField0_ |= 0x00040000; + return this; + } + + private com.google.cloud.designcenter.v1.InferredMetadata inferredMetadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.InferredMetadata, + com.google.cloud.designcenter.v1.InferredMetadata.Builder, + com.google.cloud.designcenter.v1.InferredMetadataOrBuilder> + inferredMetadataBuilder_; + + /** + * + * + *
+     * Output only. Metadata that was automatically inferred from the template
+     * content. This field can be updated by the system as it gets new
+     * information.
+     * 
+ * + * + * .google.cloud.designcenter.v1.InferredMetadata inferred_metadata = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the inferredMetadata field is set. + */ + public boolean hasInferredMetadata() { + return ((bitField0_ & 0x00080000) != 0); + } + + /** + * + * + *
+     * Output only. Metadata that was automatically inferred from the template
+     * content. This field can be updated by the system as it gets new
+     * information.
+     * 
+ * + * + * .google.cloud.designcenter.v1.InferredMetadata inferred_metadata = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The inferredMetadata. + */ + public com.google.cloud.designcenter.v1.InferredMetadata getInferredMetadata() { + if (inferredMetadataBuilder_ == null) { + return inferredMetadata_ == null + ? com.google.cloud.designcenter.v1.InferredMetadata.getDefaultInstance() + : inferredMetadata_; + } else { + return inferredMetadataBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Metadata that was automatically inferred from the template
+     * content. This field can be updated by the system as it gets new
+     * information.
+     * 
+ * + * + * .google.cloud.designcenter.v1.InferredMetadata inferred_metadata = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setInferredMetadata(com.google.cloud.designcenter.v1.InferredMetadata value) { + if (inferredMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inferredMetadata_ = value; + } else { + inferredMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Metadata that was automatically inferred from the template
+     * content. This field can be updated by the system as it gets new
+     * information.
+     * 
+ * + * + * .google.cloud.designcenter.v1.InferredMetadata inferred_metadata = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setInferredMetadata( + com.google.cloud.designcenter.v1.InferredMetadata.Builder builderForValue) { + if (inferredMetadataBuilder_ == null) { + inferredMetadata_ = builderForValue.build(); + } else { + inferredMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Metadata that was automatically inferred from the template
+     * content. This field can be updated by the system as it gets new
+     * information.
+     * 
+ * + * + * .google.cloud.designcenter.v1.InferredMetadata inferred_metadata = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeInferredMetadata(com.google.cloud.designcenter.v1.InferredMetadata value) { + if (inferredMetadataBuilder_ == null) { + if (((bitField0_ & 0x00080000) != 0) + && inferredMetadata_ != null + && inferredMetadata_ + != com.google.cloud.designcenter.v1.InferredMetadata.getDefaultInstance()) { + getInferredMetadataBuilder().mergeFrom(value); + } else { + inferredMetadata_ = value; + } + } else { + inferredMetadataBuilder_.mergeFrom(value); + } + if (inferredMetadata_ != null) { + bitField0_ |= 0x00080000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Metadata that was automatically inferred from the template
+     * content. This field can be updated by the system as it gets new
+     * information.
+     * 
+ * + * + * .google.cloud.designcenter.v1.InferredMetadata inferred_metadata = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearInferredMetadata() { + bitField0_ = (bitField0_ & ~0x00080000); + inferredMetadata_ = null; + if (inferredMetadataBuilder_ != null) { + inferredMetadataBuilder_.dispose(); + inferredMetadataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Metadata that was automatically inferred from the template
+     * content. This field can be updated by the system as it gets new
+     * information.
+     * 
+ * + * + * .google.cloud.designcenter.v1.InferredMetadata inferred_metadata = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.InferredMetadata.Builder getInferredMetadataBuilder() { + bitField0_ |= 0x00080000; + onChanged(); + return internalGetInferredMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Metadata that was automatically inferred from the template
+     * content. This field can be updated by the system as it gets new
+     * information.
+     * 
+ * + * + * .google.cloud.designcenter.v1.InferredMetadata inferred_metadata = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.InferredMetadataOrBuilder + getInferredMetadataOrBuilder() { + if (inferredMetadataBuilder_ != null) { + return inferredMetadataBuilder_.getMessageOrBuilder(); + } else { + return inferredMetadata_ == null + ? com.google.cloud.designcenter.v1.InferredMetadata.getDefaultInstance() + : inferredMetadata_; + } + } + + /** + * + * + *
+     * Output only. Metadata that was automatically inferred from the template
+     * content. This field can be updated by the system as it gets new
+     * information.
+     * 
+ * + * + * .google.cloud.designcenter.v1.InferredMetadata inferred_metadata = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.InferredMetadata, + com.google.cloud.designcenter.v1.InferredMetadata.Builder, + com.google.cloud.designcenter.v1.InferredMetadataOrBuilder> + internalGetInferredMetadataFieldBuilder() { + if (inferredMetadataBuilder_ == null) { + inferredMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.InferredMetadata, + com.google.cloud.designcenter.v1.InferredMetadata.Builder, + com.google.cloud.designcenter.v1.InferredMetadataOrBuilder>( + getInferredMetadata(), getParentForChildren(), isClean()); + inferredMetadata_ = null; + } + return inferredMetadataBuilder_; + } + + private java.util.List resourceTypes_ = + java.util.Collections.emptyList(); + + private void ensureResourceTypesIsMutable() { + if (!((bitField0_ & 0x00100000) != 0)) { + resourceTypes_ = + new java.util.ArrayList(resourceTypes_); + bitField0_ |= 0x00100000; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ResourceType, + com.google.cloud.designcenter.v1.ResourceType.Builder, + com.google.cloud.designcenter.v1.ResourceTypeOrBuilder> + resourceTypesBuilder_; + + /** + * + * + *
+     * Output only. The resource types present in the template revision.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ResourceType resource_types = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getResourceTypesList() { + if (resourceTypesBuilder_ == null) { + return java.util.Collections.unmodifiableList(resourceTypes_); + } else { + return resourceTypesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Output only. The resource types present in the template revision.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ResourceType resource_types = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getResourceTypesCount() { + if (resourceTypesBuilder_ == null) { + return resourceTypes_.size(); + } else { + return resourceTypesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Output only. The resource types present in the template revision.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ResourceType resource_types = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ResourceType getResourceTypes(int index) { + if (resourceTypesBuilder_ == null) { + return resourceTypes_.get(index); + } else { + return resourceTypesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Output only. The resource types present in the template revision.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ResourceType resource_types = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setResourceTypes( + int index, com.google.cloud.designcenter.v1.ResourceType value) { + if (resourceTypesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourceTypesIsMutable(); + resourceTypes_.set(index, value); + onChanged(); + } else { + resourceTypesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. The resource types present in the template revision.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ResourceType resource_types = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setResourceTypes( + int index, com.google.cloud.designcenter.v1.ResourceType.Builder builderForValue) { + if (resourceTypesBuilder_ == null) { + ensureResourceTypesIsMutable(); + resourceTypes_.set(index, builderForValue.build()); + onChanged(); + } else { + resourceTypesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The resource types present in the template revision.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ResourceType resource_types = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addResourceTypes(com.google.cloud.designcenter.v1.ResourceType value) { + if (resourceTypesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourceTypesIsMutable(); + resourceTypes_.add(value); + onChanged(); + } else { + resourceTypesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Output only. The resource types present in the template revision.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ResourceType resource_types = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addResourceTypes( + int index, com.google.cloud.designcenter.v1.ResourceType value) { + if (resourceTypesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourceTypesIsMutable(); + resourceTypes_.add(index, value); + onChanged(); + } else { + resourceTypesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. The resource types present in the template revision.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ResourceType resource_types = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addResourceTypes( + com.google.cloud.designcenter.v1.ResourceType.Builder builderForValue) { + if (resourceTypesBuilder_ == null) { + ensureResourceTypesIsMutable(); + resourceTypes_.add(builderForValue.build()); + onChanged(); + } else { + resourceTypesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The resource types present in the template revision.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ResourceType resource_types = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addResourceTypes( + int index, com.google.cloud.designcenter.v1.ResourceType.Builder builderForValue) { + if (resourceTypesBuilder_ == null) { + ensureResourceTypesIsMutable(); + resourceTypes_.add(index, builderForValue.build()); + onChanged(); + } else { + resourceTypesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The resource types present in the template revision.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ResourceType resource_types = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllResourceTypes( + java.lang.Iterable values) { + if (resourceTypesBuilder_ == null) { + ensureResourceTypesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resourceTypes_); + onChanged(); + } else { + resourceTypesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Output only. The resource types present in the template revision.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ResourceType resource_types = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearResourceTypes() { + if (resourceTypesBuilder_ == null) { + resourceTypes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00100000); + onChanged(); + } else { + resourceTypesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Output only. The resource types present in the template revision.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ResourceType resource_types = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeResourceTypes(int index) { + if (resourceTypesBuilder_ == null) { + ensureResourceTypesIsMutable(); + resourceTypes_.remove(index); + onChanged(); + } else { + resourceTypesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Output only. The resource types present in the template revision.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ResourceType resource_types = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ResourceType.Builder getResourceTypesBuilder( + int index) { + return internalGetResourceTypesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Output only. The resource types present in the template revision.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ResourceType resource_types = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ResourceTypeOrBuilder getResourceTypesOrBuilder( + int index) { + if (resourceTypesBuilder_ == null) { + return resourceTypes_.get(index); + } else { + return resourceTypesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Output only. The resource types present in the template revision.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ResourceType resource_types = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getResourceTypesOrBuilderList() { + if (resourceTypesBuilder_ != null) { + return resourceTypesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(resourceTypes_); + } + } + + /** + * + * + *
+     * Output only. The resource types present in the template revision.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ResourceType resource_types = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ResourceType.Builder addResourceTypesBuilder() { + return internalGetResourceTypesFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.ResourceType.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. The resource types present in the template revision.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ResourceType resource_types = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ResourceType.Builder addResourceTypesBuilder( + int index) { + return internalGetResourceTypesFieldBuilder() + .addBuilder(index, com.google.cloud.designcenter.v1.ResourceType.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. The resource types present in the template revision.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ResourceType resource_types = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getResourceTypesBuilderList() { + return internalGetResourceTypesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ResourceType, + com.google.cloud.designcenter.v1.ResourceType.Builder, + com.google.cloud.designcenter.v1.ResourceTypeOrBuilder> + internalGetResourceTypesFieldBuilder() { + if (resourceTypesBuilder_ == null) { + resourceTypesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ResourceType, + com.google.cloud.designcenter.v1.ResourceType.Builder, + com.google.cloud.designcenter.v1.ResourceTypeOrBuilder>( + resourceTypes_, + ((bitField0_ & 0x00100000) != 0), + getParentForChildren(), + isClean()); + resourceTypes_ = null; + } + return resourceTypesBuilder_; + } + + private int iacSource_ = 0; + + /** + * + * + *
+     * Output only. Indicates the IaC source format of this catalog template
+     * revision.
+     * 
+ * + * + * .google.cloud.designcenter.v1.IACSource iac_source = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for iacSource. + */ + @java.lang.Override + public int getIacSourceValue() { + return iacSource_; + } + + /** + * + * + *
+     * Output only. Indicates the IaC source format of this catalog template
+     * revision.
+     * 
+ * + * + * .google.cloud.designcenter.v1.IACSource iac_source = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for iacSource to set. + * @return This builder for chaining. + */ + public Builder setIacSourceValue(int value) { + iacSource_ = value; + bitField0_ |= 0x00200000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Indicates the IaC source format of this catalog template
+     * revision.
+     * 
+ * + * + * .google.cloud.designcenter.v1.IACSource iac_source = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The iacSource. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.IACSource getIacSource() { + com.google.cloud.designcenter.v1.IACSource result = + com.google.cloud.designcenter.v1.IACSource.forNumber(iacSource_); + return result == null ? com.google.cloud.designcenter.v1.IACSource.UNRECOGNIZED : result; + } + + /** + * + * + *
+     * Output only. Indicates the IaC source format of this catalog template
+     * revision.
+     * 
+ * + * + * .google.cloud.designcenter.v1.IACSource iac_source = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The iacSource to set. + * @return This builder for chaining. + */ + public Builder setIacSource(com.google.cloud.designcenter.v1.IACSource value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00200000; + iacSource_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Indicates the IaC source format of this catalog template
+     * revision.
+     * 
+ * + * + * .google.cloud.designcenter.v1.IACSource iac_source = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearIacSource() { + bitField0_ = (bitField0_ & ~0x00200000); + iacSource_ = 0; + onChanged(); + return this; + } + + private java.util.List applicationParameters_ = + java.util.Collections.emptyList(); + + private void ensureApplicationParametersIsMutable() { + if (!((bitField0_ & 0x00400000) != 0)) { + applicationParameters_ = + new java.util.ArrayList( + applicationParameters_); + bitField0_ |= 0x00400000; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Parameter, + com.google.cloud.designcenter.v1.Parameter.Builder, + com.google.cloud.designcenter.v1.ParameterOrBuilder> + applicationParametersBuilder_; + + /** + * + * + *
+     * Optional. The values provided for the input variables.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getApplicationParametersList() { + if (applicationParametersBuilder_ == null) { + return java.util.Collections.unmodifiableList(applicationParameters_); + } else { + return applicationParametersBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. The values provided for the input variables.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getApplicationParametersCount() { + if (applicationParametersBuilder_ == null) { + return applicationParameters_.size(); + } else { + return applicationParametersBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. The values provided for the input variables.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter getApplicationParameters(int index) { + if (applicationParametersBuilder_ == null) { + return applicationParameters_.get(index); + } else { + return applicationParametersBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. The values provided for the input variables.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setApplicationParameters( + int index, com.google.cloud.designcenter.v1.Parameter value) { + if (applicationParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicationParametersIsMutable(); + applicationParameters_.set(index, value); + onChanged(); + } else { + applicationParametersBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The values provided for the input variables.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setApplicationParameters( + int index, com.google.cloud.designcenter.v1.Parameter.Builder builderForValue) { + if (applicationParametersBuilder_ == null) { + ensureApplicationParametersIsMutable(); + applicationParameters_.set(index, builderForValue.build()); + onChanged(); + } else { + applicationParametersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The values provided for the input variables.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addApplicationParameters(com.google.cloud.designcenter.v1.Parameter value) { + if (applicationParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicationParametersIsMutable(); + applicationParameters_.add(value); + onChanged(); + } else { + applicationParametersBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. The values provided for the input variables.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addApplicationParameters( + int index, com.google.cloud.designcenter.v1.Parameter value) { + if (applicationParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicationParametersIsMutable(); + applicationParameters_.add(index, value); + onChanged(); + } else { + applicationParametersBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The values provided for the input variables.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addApplicationParameters( + com.google.cloud.designcenter.v1.Parameter.Builder builderForValue) { + if (applicationParametersBuilder_ == null) { + ensureApplicationParametersIsMutable(); + applicationParameters_.add(builderForValue.build()); + onChanged(); + } else { + applicationParametersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The values provided for the input variables.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addApplicationParameters( + int index, com.google.cloud.designcenter.v1.Parameter.Builder builderForValue) { + if (applicationParametersBuilder_ == null) { + ensureApplicationParametersIsMutable(); + applicationParameters_.add(index, builderForValue.build()); + onChanged(); + } else { + applicationParametersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The values provided for the input variables.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllApplicationParameters( + java.lang.Iterable values) { + if (applicationParametersBuilder_ == null) { + ensureApplicationParametersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, applicationParameters_); + onChanged(); + } else { + applicationParametersBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. The values provided for the input variables.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearApplicationParameters() { + if (applicationParametersBuilder_ == null) { + applicationParameters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00400000); + onChanged(); + } else { + applicationParametersBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. The values provided for the input variables.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeApplicationParameters(int index) { + if (applicationParametersBuilder_ == null) { + ensureApplicationParametersIsMutable(); + applicationParameters_.remove(index); + onChanged(); + } else { + applicationParametersBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. The values provided for the input variables.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter.Builder getApplicationParametersBuilder( + int index) { + return internalGetApplicationParametersFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. The values provided for the input variables.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ParameterOrBuilder getApplicationParametersOrBuilder( + int index) { + if (applicationParametersBuilder_ == null) { + return applicationParameters_.get(index); + } else { + return applicationParametersBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. The values provided for the input variables.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getApplicationParametersOrBuilderList() { + if (applicationParametersBuilder_ != null) { + return applicationParametersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(applicationParameters_); + } + } + + /** + * + * + *
+     * Optional. The values provided for the input variables.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter.Builder addApplicationParametersBuilder() { + return internalGetApplicationParametersFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.Parameter.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The values provided for the input variables.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter.Builder addApplicationParametersBuilder( + int index) { + return internalGetApplicationParametersFieldBuilder() + .addBuilder(index, com.google.cloud.designcenter.v1.Parameter.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The values provided for the input variables.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getApplicationParametersBuilderList() { + return internalGetApplicationParametersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Parameter, + com.google.cloud.designcenter.v1.Parameter.Builder, + com.google.cloud.designcenter.v1.ParameterOrBuilder> + internalGetApplicationParametersFieldBuilder() { + if (applicationParametersBuilder_ == null) { + applicationParametersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Parameter, + com.google.cloud.designcenter.v1.Parameter.Builder, + com.google.cloud.designcenter.v1.ParameterOrBuilder>( + applicationParameters_, + ((bitField0_ & 0x00400000) != 0), + getParentForChildren(), + isClean()); + applicationParameters_ = null; + } + return applicationParametersBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.CatalogTemplateRevision) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.CatalogTemplateRevision) + private static final com.google.cloud.designcenter.v1.CatalogTemplateRevision DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.CatalogTemplateRevision(); + } + + public static com.google.cloud.designcenter.v1.CatalogTemplateRevision getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CatalogTemplateRevision parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.CatalogTemplateRevision getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CatalogTemplateRevisionMetadata.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CatalogTemplateRevisionMetadata.java new file mode 100644 index 000000000000..5dd571d7ae4f --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CatalogTemplateRevisionMetadata.java @@ -0,0 +1,2338 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Represents metadata of a catalog template revision in the management context.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata} + */ +@com.google.protobuf.Generated +public final class CatalogTemplateRevisionMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata) + CatalogTemplateRevisionMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "CatalogTemplateRevisionMetadata"); + } + + // Use CatalogTemplateRevisionMetadata.newBuilder() to construct. + private CatalogTemplateRevisionMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CatalogTemplateRevisionMetadata() { + name_ = ""; + uuid_ = ""; + latestRevisionId_ = ""; + displayName_ = ""; + templateCategory_ = 0; + gitSourceUri_ = ""; + description_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_CatalogTemplateRevisionMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_CatalogTemplateRevisionMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata.class, + com.google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Output only. The catalog template name in following format:
+   * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template`
+   * 
+ * + * 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 catalog template name in following format:
+   * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+   * Output only. The catalog template creation timestamp.
+   * 
+ * + * .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 ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. The catalog template creation timestamp.
+   * 
+ * + * .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. The catalog template creation timestamp.
+   * 
+ * + * .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. The catalog template update timestamp.
+   * 
+ * + * .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 ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. The catalog template update timestamp.
+   * 
+ * + * .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. The catalog template update timestamp.
+   * 
+ * + * .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 UUID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object uuid_ = ""; + + /** + * + * + *
+   * Output only. The template revisions UUID.
+   * 
+ * + * string uuid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uuid. + */ + @java.lang.Override + public java.lang.String getUuid() { + java.lang.Object ref = uuid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uuid_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The template revisions UUID.
+   * 
+ * + * string uuid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uuid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUuidBytes() { + java.lang.Object ref = uuid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LATEST_REVISION_ID_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object latestRevisionId_ = ""; + + /** + * + * + *
+   * Output only. Latest revision of the template.
+   * 
+ * + * string latest_revision_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The latestRevisionId. + */ + @java.lang.Override + public java.lang.String getLatestRevisionId() { + java.lang.Object ref = latestRevisionId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + latestRevisionId_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. Latest revision of the template.
+   * 
+ * + * string latest_revision_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for latestRevisionId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLatestRevisionIdBytes() { + java.lang.Object ref = latestRevisionId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + latestRevisionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
+   * Optional. The display name of the catalog template.
+   * 
+ * + * 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. The display name of the catalog template.
+   * 
+ * + * 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 TEMPLATE_CATEGORY_FIELD_NUMBER = 7; + private int templateCategory_ = 0; + + /** + * + * + *
+   * Required. The category of the catalog template.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TemplateCategory template_category = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for templateCategory. + */ + @java.lang.Override + public int getTemplateCategoryValue() { + return templateCategory_; + } + + /** + * + * + *
+   * Required. The category of the catalog template.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TemplateCategory template_category = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The templateCategory. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TemplateCategory getTemplateCategory() { + com.google.cloud.designcenter.v1.TemplateCategory result = + com.google.cloud.designcenter.v1.TemplateCategory.forNumber(templateCategory_); + return result == null ? com.google.cloud.designcenter.v1.TemplateCategory.UNRECOGNIZED : result; + } + + public static final int GIT_SOURCE_URI_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object gitSourceUri_ = ""; + + /** + * + * + *
+   * Optional. The Git source URI where the template repository is hosted.
+   * 
+ * + * string git_source_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The gitSourceUri. + */ + @java.lang.Override + public java.lang.String getGitSourceUri() { + java.lang.Object ref = gitSourceUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gitSourceUri_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The Git source URI where the template repository is hosted.
+   * 
+ * + * string git_source_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for gitSourceUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGitSourceUriBytes() { + java.lang.Object ref = gitSourceUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gitSourceUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
+   * Optional. The catalog template description.
+   * 
+ * + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The catalog template description.
+   * 
+ * + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uuid_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, uuid_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(latestRevisionId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, latestRevisionId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, displayName_); + } + if (templateCategory_ + != com.google.cloud.designcenter.v1.TemplateCategory.TEMPLATE_CATEGORY_UNSPECIFIED + .getNumber()) { + output.writeEnum(7, templateCategory_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gitSourceUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 8, gitSourceUri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 9, description_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uuid_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, uuid_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(latestRevisionId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, latestRevisionId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, displayName_); + } + if (templateCategory_ + != com.google.cloud.designcenter.v1.TemplateCategory.TEMPLATE_CATEGORY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, templateCategory_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gitSourceUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(8, gitSourceUri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(9, description_); + } + 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.designcenter.v1.CatalogTemplateRevisionMetadata)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata other = + (com.google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata) obj; + + if (!getName().equals(other.getName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!getUuid().equals(other.getUuid())) return false; + if (!getLatestRevisionId().equals(other.getLatestRevisionId())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (templateCategory_ != other.templateCategory_) return false; + if (!getGitSourceUri().equals(other.getGitSourceUri())) return false; + if (!getDescription().equals(other.getDescription())) 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 (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) + UUID_FIELD_NUMBER; + hash = (53 * hash) + getUuid().hashCode(); + hash = (37 * hash) + LATEST_REVISION_ID_FIELD_NUMBER; + hash = (53 * hash) + getLatestRevisionId().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + TEMPLATE_CATEGORY_FIELD_NUMBER; + hash = (53 * hash) + templateCategory_; + hash = (37 * hash) + GIT_SOURCE_URI_FIELD_NUMBER; + hash = (53 * hash) + getGitSourceUri().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata 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.designcenter.v1.CatalogTemplateRevisionMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.CatalogTemplateRevisionMetadata 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Represents metadata of a catalog template revision in the management context.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata) + com.google.cloud.designcenter.v1.CatalogTemplateRevisionMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_CatalogTemplateRevisionMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_CatalogTemplateRevisionMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata.class, + com.google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + uuid_ = ""; + latestRevisionId_ = ""; + displayName_ = ""; + templateCategory_ = 0; + gitSourceUri_ = ""; + description_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_CatalogTemplateRevisionMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata build() { + com.google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata buildPartial() { + com.google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata result = + new com.google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.uuid_ = uuid_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.latestRevisionId_ = latestRevisionId_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.templateCategory_ = templateCategory_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.gitSourceUri_ = gitSourceUri_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.description_ = description_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata) { + return mergeFrom((com.google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata other) { + if (other + == com.google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (!other.getUuid().isEmpty()) { + uuid_ = other.uuid_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getLatestRevisionId().isEmpty()) { + latestRevisionId_ = other.latestRevisionId_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.templateCategory_ != 0) { + setTemplateCategoryValue(other.getTemplateCategoryValue()); + } + if (!other.getGitSourceUri().isEmpty()) { + gitSourceUri_ = other.gitSourceUri_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000100; + 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: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + uuid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + latestRevisionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 56: + { + templateCategory_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 66: + { + gitSourceUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 + default: + { + 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 catalog template name in following format:
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template`
+     * 
+ * + * 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 catalog template name in following format:
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template`
+     * 
+ * + * 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 catalog template name in following format:
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template`
+     * 
+ * + * 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 catalog template name in following format:
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template`
+     * 
+ * + * 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 catalog template name in following format:
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template`
+     * 
+ * + * 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 com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
+     * Output only. The catalog template creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Output only. The catalog template creation timestamp.
+     * 
+ * + * + * .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. The catalog template creation timestamp.
+     * 
+ * + * + * .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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The catalog template creation timestamp.
+     * 
+ * + * + * .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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The catalog template creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The catalog template creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The catalog template creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The catalog template creation timestamp.
+     * 
+ * + * + * .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. The catalog template creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + 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.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
+     * Output only. The catalog template update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Output only. The catalog template update timestamp.
+     * 
+ * + * + * .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. The catalog template update timestamp.
+     * 
+ * + * + * .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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The catalog template update timestamp.
+     * 
+ * + * + * .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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The catalog template update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The catalog template update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The catalog template update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The catalog template update timestamp.
+     * 
+ * + * + * .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. The catalog template update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private java.lang.Object uuid_ = ""; + + /** + * + * + *
+     * Output only. The template revisions UUID.
+     * 
+ * + * string uuid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uuid. + */ + public java.lang.String getUuid() { + java.lang.Object ref = uuid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uuid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The template revisions UUID.
+     * 
+ * + * string uuid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uuid. + */ + public com.google.protobuf.ByteString getUuidBytes() { + java.lang.Object ref = uuid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The template revisions UUID.
+     * 
+ * + * string uuid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The uuid to set. + * @return This builder for chaining. + */ + public Builder setUuid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uuid_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The template revisions UUID.
+     * 
+ * + * string uuid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearUuid() { + uuid_ = getDefaultInstance().getUuid(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The template revisions UUID.
+     * 
+ * + * string uuid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for uuid to set. + * @return This builder for chaining. + */ + public Builder setUuidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uuid_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object latestRevisionId_ = ""; + + /** + * + * + *
+     * Output only. Latest revision of the template.
+     * 
+ * + * string latest_revision_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The latestRevisionId. + */ + public java.lang.String getLatestRevisionId() { + java.lang.Object ref = latestRevisionId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + latestRevisionId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Latest revision of the template.
+     * 
+ * + * string latest_revision_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for latestRevisionId. + */ + public com.google.protobuf.ByteString getLatestRevisionIdBytes() { + java.lang.Object ref = latestRevisionId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + latestRevisionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Latest revision of the template.
+     * 
+ * + * string latest_revision_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The latestRevisionId to set. + * @return This builder for chaining. + */ + public Builder setLatestRevisionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + latestRevisionId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Latest revision of the template.
+     * 
+ * + * string latest_revision_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearLatestRevisionId() { + latestRevisionId_ = getDefaultInstance().getLatestRevisionId(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Latest revision of the template.
+     * 
+ * + * string latest_revision_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for latestRevisionId to set. + * @return This builder for chaining. + */ + public Builder setLatestRevisionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + latestRevisionId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
+     * Optional. The display name of the catalog template.
+     * 
+ * + * 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. The display name of the catalog template.
+     * 
+ * + * 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. The display name of the catalog template.
+     * 
+ * + * 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. The display name of the catalog template.
+     * 
+ * + * 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. The display name of the catalog template.
+     * 
+ * + * 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 int templateCategory_ = 0; + + /** + * + * + *
+     * Required. The category of the catalog template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateCategory template_category = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for templateCategory. + */ + @java.lang.Override + public int getTemplateCategoryValue() { + return templateCategory_; + } + + /** + * + * + *
+     * Required. The category of the catalog template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateCategory template_category = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for templateCategory to set. + * @return This builder for chaining. + */ + public Builder setTemplateCategoryValue(int value) { + templateCategory_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The category of the catalog template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateCategory template_category = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The templateCategory. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TemplateCategory getTemplateCategory() { + com.google.cloud.designcenter.v1.TemplateCategory result = + com.google.cloud.designcenter.v1.TemplateCategory.forNumber(templateCategory_); + return result == null + ? com.google.cloud.designcenter.v1.TemplateCategory.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Required. The category of the catalog template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateCategory template_category = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The templateCategory to set. + * @return This builder for chaining. + */ + public Builder setTemplateCategory(com.google.cloud.designcenter.v1.TemplateCategory value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + templateCategory_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The category of the catalog template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateCategory template_category = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearTemplateCategory() { + bitField0_ = (bitField0_ & ~0x00000040); + templateCategory_ = 0; + onChanged(); + return this; + } + + private java.lang.Object gitSourceUri_ = ""; + + /** + * + * + *
+     * Optional. The Git source URI where the template repository is hosted.
+     * 
+ * + * string git_source_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The gitSourceUri. + */ + public java.lang.String getGitSourceUri() { + java.lang.Object ref = gitSourceUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gitSourceUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The Git source URI where the template repository is hosted.
+     * 
+ * + * string git_source_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for gitSourceUri. + */ + public com.google.protobuf.ByteString getGitSourceUriBytes() { + java.lang.Object ref = gitSourceUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gitSourceUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The Git source URI where the template repository is hosted.
+     * 
+ * + * string git_source_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The gitSourceUri to set. + * @return This builder for chaining. + */ + public Builder setGitSourceUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + gitSourceUri_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The Git source URI where the template repository is hosted.
+     * 
+ * + * string git_source_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearGitSourceUri() { + gitSourceUri_ = getDefaultInstance().getGitSourceUri(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The Git source URI where the template repository is hosted.
+     * 
+ * + * string git_source_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for gitSourceUri to set. + * @return This builder for chaining. + */ + public Builder setGitSourceUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gitSourceUri_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
+     * Optional. The catalog template description.
+     * 
+ * + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The catalog template description.
+     * 
+ * + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The catalog template description.
+     * 
+ * + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The catalog template description.
+     * 
+ * + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The catalog template description.
+     * 
+ * + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata) + private static final com.google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata(); + } + + public static com.google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CatalogTemplateRevisionMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.CatalogTemplateRevisionMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CatalogTemplateRevisionMetadataOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CatalogTemplateRevisionMetadataOrBuilder.java new file mode 100644 index 000000000000..e7406e00ae97 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CatalogTemplateRevisionMetadataOrBuilder.java @@ -0,0 +1,296 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface CatalogTemplateRevisionMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The catalog template name in following format:
+   * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Output only. The catalog template name in following format:
+   * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. The catalog template creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
+   * Output only. The catalog template creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
+   * Output only. The catalog template creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The catalog template update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
+   * Output only. The catalog template update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
+   * Output only. The catalog template update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The template revisions UUID.
+   * 
+ * + * string uuid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uuid. + */ + java.lang.String getUuid(); + + /** + * + * + *
+   * Output only. The template revisions UUID.
+   * 
+ * + * string uuid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uuid. + */ + com.google.protobuf.ByteString getUuidBytes(); + + /** + * + * + *
+   * Output only. Latest revision of the template.
+   * 
+ * + * string latest_revision_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The latestRevisionId. + */ + java.lang.String getLatestRevisionId(); + + /** + * + * + *
+   * Output only. Latest revision of the template.
+   * 
+ * + * string latest_revision_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for latestRevisionId. + */ + com.google.protobuf.ByteString getLatestRevisionIdBytes(); + + /** + * + * + *
+   * Optional. The display name of the catalog template.
+   * 
+ * + * string display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
+   * Optional. The display name of the catalog template.
+   * 
+ * + * string display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Required. The category of the catalog template.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TemplateCategory template_category = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for templateCategory. + */ + int getTemplateCategoryValue(); + + /** + * + * + *
+   * Required. The category of the catalog template.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TemplateCategory template_category = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The templateCategory. + */ + com.google.cloud.designcenter.v1.TemplateCategory getTemplateCategory(); + + /** + * + * + *
+   * Optional. The Git source URI where the template repository is hosted.
+   * 
+ * + * string git_source_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The gitSourceUri. + */ + java.lang.String getGitSourceUri(); + + /** + * + * + *
+   * Optional. The Git source URI where the template repository is hosted.
+   * 
+ * + * string git_source_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for gitSourceUri. + */ + com.google.protobuf.ByteString getGitSourceUriBytes(); + + /** + * + * + *
+   * Optional. The catalog template description.
+   * 
+ * + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
+   * Optional. The catalog template description.
+   * 
+ * + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CatalogTemplateRevisionName.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CatalogTemplateRevisionName.java new file mode 100644 index 000000000000..128a8a839dfe --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CatalogTemplateRevisionName.java @@ -0,0 +1,341 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.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; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked +@Generated("by gapic-generator-java") +public class CatalogTemplateRevisionName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_SPACE_CATALOG_CATALOG_TEMPLATE_REVISION = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/spaces/{space}/catalogs/{catalog}/templates/{catalog_template}/revisions/{revision}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String space; + private final String catalog; + private final String catalogTemplate; + private final String revision; + + @Deprecated + protected CatalogTemplateRevisionName() { + project = null; + location = null; + space = null; + catalog = null; + catalogTemplate = null; + revision = null; + } + + private CatalogTemplateRevisionName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + space = Preconditions.checkNotNull(builder.getSpace()); + catalog = Preconditions.checkNotNull(builder.getCatalog()); + catalogTemplate = Preconditions.checkNotNull(builder.getCatalogTemplate()); + revision = Preconditions.checkNotNull(builder.getRevision()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getSpace() { + return space; + } + + public String getCatalog() { + return catalog; + } + + public String getCatalogTemplate() { + return catalogTemplate; + } + + public String getRevision() { + return revision; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static CatalogTemplateRevisionName of( + String project, + String location, + String space, + String catalog, + String catalogTemplate, + String revision) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setSpace(space) + .setCatalog(catalog) + .setCatalogTemplate(catalogTemplate) + .setRevision(revision) + .build(); + } + + public static String format( + String project, + String location, + String space, + String catalog, + String catalogTemplate, + String revision) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setSpace(space) + .setCatalog(catalog) + .setCatalogTemplate(catalogTemplate) + .setRevision(revision) + .build() + .toString(); + } + + public static @Nullable CatalogTemplateRevisionName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_SPACE_CATALOG_CATALOG_TEMPLATE_REVISION.validatedMatch( + formattedString, + "CatalogTemplateRevisionName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("space"), + matchMap.get("catalog"), + matchMap.get("catalog_template"), + matchMap.get("revision")); + } + + 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<@Nullable CatalogTemplateRevisionName> values) { + List list = new ArrayList<>(values.size()); + for (CatalogTemplateRevisionName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_SPACE_CATALOG_CATALOG_TEMPLATE_REVISION.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 (space != null) { + fieldMapBuilder.put("space", space); + } + if (catalog != null) { + fieldMapBuilder.put("catalog", catalog); + } + if (catalogTemplate != null) { + fieldMapBuilder.put("catalog_template", catalogTemplate); + } + if (revision != null) { + fieldMapBuilder.put("revision", revision); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_SPACE_CATALOG_CATALOG_TEMPLATE_REVISION.instantiate( + "project", + project, + "location", + location, + "space", + space, + "catalog", + catalog, + "catalog_template", + catalogTemplate, + "revision", + revision); + } + + @Override + public boolean equals(@Nullable Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + CatalogTemplateRevisionName that = ((CatalogTemplateRevisionName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.space, that.space) + && Objects.equals(this.catalog, that.catalog) + && Objects.equals(this.catalogTemplate, that.catalogTemplate) + && Objects.equals(this.revision, that.revision); + } + 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(space); + h *= 1000003; + h ^= Objects.hashCode(catalog); + h *= 1000003; + h ^= Objects.hashCode(catalogTemplate); + h *= 1000003; + h ^= Objects.hashCode(revision); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/spaces/{space}/catalogs/{catalog}/templates/{catalog_template}/revisions/{revision}. + */ + public static class Builder { + private String project; + private String location; + private String space; + private String catalog; + private String catalogTemplate; + private String revision; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getSpace() { + return space; + } + + public String getCatalog() { + return catalog; + } + + public String getCatalogTemplate() { + return catalogTemplate; + } + + public String getRevision() { + return revision; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setSpace(String space) { + this.space = space; + return this; + } + + public Builder setCatalog(String catalog) { + this.catalog = catalog; + return this; + } + + public Builder setCatalogTemplate(String catalogTemplate) { + this.catalogTemplate = catalogTemplate; + return this; + } + + public Builder setRevision(String revision) { + this.revision = revision; + return this; + } + + private Builder(CatalogTemplateRevisionName catalogTemplateRevisionName) { + this.project = catalogTemplateRevisionName.project; + this.location = catalogTemplateRevisionName.location; + this.space = catalogTemplateRevisionName.space; + this.catalog = catalogTemplateRevisionName.catalog; + this.catalogTemplate = catalogTemplateRevisionName.catalogTemplate; + this.revision = catalogTemplateRevisionName.revision; + } + + public CatalogTemplateRevisionName build() { + return new CatalogTemplateRevisionName(this); + } + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CatalogTemplateRevisionOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CatalogTemplateRevisionOrBuilder.java new file mode 100644 index 000000000000..520ab1138ee4 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CatalogTemplateRevisionOrBuilder.java @@ -0,0 +1,1044 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/catalog_management.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface CatalogTemplateRevisionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.CatalogTemplateRevision) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The git source.
+   * 
+ * + * + * .google.cloud.designcenter.v1.GitSource git_source = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the gitSource field is set. + */ + boolean hasGitSource(); + + /** + * + * + *
+   * Optional. The git source.
+   * 
+ * + * + * .google.cloud.designcenter.v1.GitSource git_source = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The gitSource. + */ + com.google.cloud.designcenter.v1.GitSource getGitSource(); + + /** + * + * + *
+   * Optional. The git source.
+   * 
+ * + * + * .google.cloud.designcenter.v1.GitSource git_source = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.GitSourceOrBuilder getGitSourceOrBuilder(); + + /** + * + * + *
+   * Optional. Deprecated: Added new field tf_module_gcs_uri.
+   * The Cloud Storage URI, which must be in the format gs://[bucket] or
+   * gs://[bucket]/[object].
+   * 
+ * + * string gcs_source_uri = 20 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.designcenter.v1.CatalogTemplateRevision.gcs_source_uri is deprecated. + * See google/cloud/designcenter/v1/catalog_management.proto;l=195 + * @return Whether the gcsSourceUri field is set. + */ + @java.lang.Deprecated + boolean hasGcsSourceUri(); + + /** + * + * + *
+   * Optional. Deprecated: Added new field tf_module_gcs_uri.
+   * The Cloud Storage URI, which must be in the format gs://[bucket] or
+   * gs://[bucket]/[object].
+   * 
+ * + * string gcs_source_uri = 20 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.designcenter.v1.CatalogTemplateRevision.gcs_source_uri is deprecated. + * See google/cloud/designcenter/v1/catalog_management.proto;l=195 + * @return The gcsSourceUri. + */ + @java.lang.Deprecated + java.lang.String getGcsSourceUri(); + + /** + * + * + *
+   * Optional. Deprecated: Added new field tf_module_gcs_uri.
+   * The Cloud Storage URI, which must be in the format gs://[bucket] or
+   * gs://[bucket]/[object].
+   * 
+ * + * string gcs_source_uri = 20 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.designcenter.v1.CatalogTemplateRevision.gcs_source_uri is deprecated. + * See google/cloud/designcenter/v1/catalog_management.proto;l=195 + * @return The bytes for gcsSourceUri. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getGcsSourceUriBytes(); + + /** + * + * + *
+   * Optional. The application template revision source.
+   * 
+ * + * + * string application_template_revision_source = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the applicationTemplateRevisionSource field is set. + */ + boolean hasApplicationTemplateRevisionSource(); + + /** + * + * + *
+   * Optional. The application template revision source.
+   * 
+ * + * + * string application_template_revision_source = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The applicationTemplateRevisionSource. + */ + java.lang.String getApplicationTemplateRevisionSource(); + + /** + * + * + *
+   * Optional. The application template revision source.
+   * 
+ * + * + * string application_template_revision_source = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for applicationTemplateRevisionSource. + */ + com.google.protobuf.ByteString getApplicationTemplateRevisionSourceBytes(); + + /** + * + * + *
+   * Optional. Configuration for fetching content from source code repository
+   * such as GitHub or Bitbucket through Developer Connect.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectSourceConfig developer_connect_source_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the developerConnectSourceConfig field is set. + */ + boolean hasDeveloperConnectSourceConfig(); + + /** + * + * + *
+   * Optional. Configuration for fetching content from source code repository
+   * such as GitHub or Bitbucket through Developer Connect.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectSourceConfig developer_connect_source_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The developerConnectSourceConfig. + */ + com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig getDeveloperConnectSourceConfig(); + + /** + * + * + *
+   * Optional. Configuration for fetching content from source code repository
+   * such as GitHub or Bitbucket through Developer Connect.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectSourceConfig developer_connect_source_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.DeveloperConnectSourceConfigOrBuilder + getDeveloperConnectSourceConfigOrBuilder(); + + /** + * + * + *
+   * Optional. The Open Container Initiative (OCI) repo source that contains
+   * helm charts.
+   * 
+ * + * + * .google.cloud.designcenter.v1.OciRepo oci_repo = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the ociRepo field is set. + */ + boolean hasOciRepo(); + + /** + * + * + *
+   * Optional. The Open Container Initiative (OCI) repo source that contains
+   * helm charts.
+   * 
+ * + * + * .google.cloud.designcenter.v1.OciRepo oci_repo = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The ociRepo. + */ + com.google.cloud.designcenter.v1.OciRepo getOciRepo(); + + /** + * + * + *
+   * Optional. The Open Container Initiative (OCI) repo source that contains
+   * helm charts.
+   * 
+ * + * + * .google.cloud.designcenter.v1.OciRepo oci_repo = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.OciRepoOrBuilder getOciRepoOrBuilder(); + + /** + * + * + *
+   * Identifier. The catalog template revision name.
+   * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template/revisions/$revision`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Identifier. The catalog template revision name.
+   * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template/revisions/$revision`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. The catalog template revision description.
+   * 
+ * + * string description = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
+   * Optional. The catalog template revision description.
+   * 
+ * + * string description = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Optional. The Application Design Center application template type.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TemplateType type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + + /** + * + * + *
+   * Optional. The Application Design Center application template type.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TemplateType type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The type. + */ + com.google.cloud.designcenter.v1.TemplateType getType(); + + /** + * + * + *
+   * Output only. The catalog template creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
+   * Output only. The catalog template creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
+   * Output only. The catalog template creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The catalog template update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
+   * Output only. The catalog template update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
+   * Output only. The catalog template update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Template metadata related to Terraform input and output.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata template_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the templateMetadata field is set. + */ + boolean hasTemplateMetadata(); + + /** + * + * + *
+   * Output only. Template metadata related to Terraform input and output.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata template_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The templateMetadata. + */ + com.google.cloud.designcenter.v1.TFBlueprintMetadata getTemplateMetadata(); + + /** + * + * + *
+   * Output only. Template metadata related to Terraform input and output.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata template_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.TFBlueprintMetadataOrBuilder getTemplateMetadataOrBuilder(); + + /** + * + * + *
+   * Output only. The template state (validating/ready/invalid).
+   * 
+ * + * + * .google.cloud.designcenter.v1.CatalogTemplateRevision.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
+   * Output only. The template state (validating/ready/invalid).
+   * 
+ * + * + * .google.cloud.designcenter.v1.CatalogTemplateRevision.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.designcenter.v1.CatalogTemplateRevision.State getState(); + + /** + * + * + *
+   * Output only. The application template revision.
+   * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate application_template_revision = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the applicationTemplateRevision field is set. + */ + boolean hasApplicationTemplateRevision(); + + /** + * + * + *
+   * Output only. The application template revision.
+   * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate application_template_revision = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The applicationTemplateRevision. + */ + com.google.cloud.designcenter.v1.SerializedApplicationTemplate getApplicationTemplateRevision(); + + /** + * + * + *
+   * Output only. The application template revision.
+   * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate application_template_revision = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.SerializedApplicationTemplateOrBuilder + getApplicationTemplateRevisionOrBuilder(); + + /** + * + * + *
+   * Output only. The helm chart metadata.
+   * 
+ * + * + * .google.cloud.designcenter.v1.HelmChartMetadata helm_chart_metadata = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the helmChartMetadata field is set. + */ + boolean hasHelmChartMetadata(); + + /** + * + * + *
+   * Output only. The helm chart metadata.
+   * 
+ * + * + * .google.cloud.designcenter.v1.HelmChartMetadata helm_chart_metadata = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The helmChartMetadata. + */ + com.google.cloud.designcenter.v1.HelmChartMetadata getHelmChartMetadata(); + + /** + * + * + *
+   * Output only. The helm chart metadata.
+   * 
+ * + * + * .google.cloud.designcenter.v1.HelmChartMetadata helm_chart_metadata = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.HelmChartMetadataOrBuilder getHelmChartMetadataOrBuilder(); + + /** + * + * + *
+   * Output only. UUID of the template revision.
+   * 
+ * + * string uuid = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uuid. + */ + java.lang.String getUuid(); + + /** + * + * + *
+   * Output only. UUID of the template revision.
+   * 
+ * + * string uuid = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uuid. + */ + com.google.protobuf.ByteString getUuidBytes(); + + /** + * + * + *
+   * Optional. Metadata input.
+   * 
+ * + * + * .google.cloud.designcenter.v1.MetadataInput metadata_input = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the metadataInput field is set. + */ + boolean hasMetadataInput(); + + /** + * + * + *
+   * Optional. Metadata input.
+   * 
+ * + * + * .google.cloud.designcenter.v1.MetadataInput metadata_input = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The metadataInput. + */ + com.google.cloud.designcenter.v1.MetadataInput getMetadataInput(); + + /** + * + * + *
+   * Optional. Metadata input.
+   * 
+ * + * + * .google.cloud.designcenter.v1.MetadataInput metadata_input = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.MetadataInputOrBuilder getMetadataInputOrBuilder(); + + /** + * + * + *
+   * Output only. The category of the template.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TemplateCategory template_category = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for templateCategory. + */ + int getTemplateCategoryValue(); + + /** + * + * + *
+   * Output only. The category of the template.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TemplateCategory template_category = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The templateCategory. + */ + com.google.cloud.designcenter.v1.TemplateCategory getTemplateCategory(); + + /** + * + * + *
+   * Output only. The Product Main logical product type information.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.LogicalProduct logical_products = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getLogicalProductsList(); + + /** + * + * + *
+   * Output only. The Product Main logical product type information.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.LogicalProduct logical_products = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.LogicalProduct getLogicalProducts(int index); + + /** + * + * + *
+   * Output only. The Product Main logical product type information.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.LogicalProduct logical_products = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getLogicalProductsCount(); + + /** + * + * + *
+   * Output only. The Product Main logical product type information.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.LogicalProduct logical_products = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getLogicalProductsOrBuilderList(); + + /** + * + * + *
+   * Output only. The Product Main logical product type information.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.LogicalProduct logical_products = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.LogicalProductOrBuilder getLogicalProductsOrBuilder(int index); + + /** + * + * + *
+   * Optional. The annotations of the template revision.
+   * Key is the annotation name. Value is the annotation value.
+   * 
+ * + * map<string, string> annotations = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getAnnotationsCount(); + + /** + * + * + *
+   * Optional. The annotations of the template revision.
+   * Key is the annotation name. Value is the annotation value.
+   * 
+ * + * map<string, string> annotations = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsAnnotations(java.lang.String key); + + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getAnnotations(); + + /** + * + * + *
+   * Optional. The annotations of the template revision.
+   * Key is the annotation name. Value is the annotation value.
+   * 
+ * + * map<string, string> annotations = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getAnnotationsMap(); + + /** + * + * + *
+   * Optional. The annotations of the template revision.
+   * Key is the annotation name. Value is the annotation value.
+   * 
+ * + * map<string, string> annotations = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
+   * Optional. The annotations of the template revision.
+   * Key is the annotation name. Value is the annotation value.
+   * 
+ * + * map<string, string> annotations = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getAnnotationsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Output only. Metadata that was automatically inferred from the template
+   * content. This field can be updated by the system as it gets new
+   * information.
+   * 
+ * + * + * .google.cloud.designcenter.v1.InferredMetadata inferred_metadata = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the inferredMetadata field is set. + */ + boolean hasInferredMetadata(); + + /** + * + * + *
+   * Output only. Metadata that was automatically inferred from the template
+   * content. This field can be updated by the system as it gets new
+   * information.
+   * 
+ * + * + * .google.cloud.designcenter.v1.InferredMetadata inferred_metadata = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The inferredMetadata. + */ + com.google.cloud.designcenter.v1.InferredMetadata getInferredMetadata(); + + /** + * + * + *
+   * Output only. Metadata that was automatically inferred from the template
+   * content. This field can be updated by the system as it gets new
+   * information.
+   * 
+ * + * + * .google.cloud.designcenter.v1.InferredMetadata inferred_metadata = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.InferredMetadataOrBuilder getInferredMetadataOrBuilder(); + + /** + * + * + *
+   * Output only. The resource types present in the template revision.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ResourceType resource_types = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getResourceTypesList(); + + /** + * + * + *
+   * Output only. The resource types present in the template revision.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ResourceType resource_types = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.ResourceType getResourceTypes(int index); + + /** + * + * + *
+   * Output only. The resource types present in the template revision.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ResourceType resource_types = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getResourceTypesCount(); + + /** + * + * + *
+   * Output only. The resource types present in the template revision.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ResourceType resource_types = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getResourceTypesOrBuilderList(); + + /** + * + * + *
+   * Output only. The resource types present in the template revision.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ResourceType resource_types = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.ResourceTypeOrBuilder getResourceTypesOrBuilder(int index); + + /** + * + * + *
+   * Output only. Indicates the IaC source format of this catalog template
+   * revision.
+   * 
+ * + * + * .google.cloud.designcenter.v1.IACSource iac_source = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for iacSource. + */ + int getIacSourceValue(); + + /** + * + * + *
+   * Output only. Indicates the IaC source format of this catalog template
+   * revision.
+   * 
+ * + * + * .google.cloud.designcenter.v1.IACSource iac_source = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The iacSource. + */ + com.google.cloud.designcenter.v1.IACSource getIacSource(); + + /** + * + * + *
+   * Optional. The values provided for the input variables.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getApplicationParametersList(); + + /** + * + * + *
+   * Optional. The values provided for the input variables.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.Parameter getApplicationParameters(int index); + + /** + * + * + *
+   * Optional. The values provided for the input variables.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getApplicationParametersCount(); + + /** + * + * + *
+   * Optional. The values provided for the input variables.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getApplicationParametersOrBuilderList(); + + /** + * + * + *
+   * Optional. The values provided for the input variables.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.ParameterOrBuilder getApplicationParametersOrBuilder(int index); + + com.google.cloud.designcenter.v1.CatalogTemplateRevision.ArtifactLocationCase + getArtifactLocationCase(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CloudControl.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CloudControl.java new file mode 100644 index 000000000000..60ab3a599afb --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CloudControl.java @@ -0,0 +1,2454 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/assessment.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Cloud control for a framework.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.CloudControl} + */ +@com.google.protobuf.Generated +public final class CloudControl extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.CloudControl) + CloudControlOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "CloudControl"); + } + + // Use CloudControl.newBuilder() to construct. + private CloudControl(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CloudControl() { + name_ = ""; + description_ = ""; + enforcementMode_ = 0; + parameterSpecs_ = java.util.Collections.emptyList(); + parameters_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_CloudControl_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_CloudControl_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.CloudControl.class, + com.google.cloud.designcenter.v1.CloudControl.Builder.class); + } + + /** + * + * + *
+   * Enum for enforcement mode of a cloud control.
+   * 
+ * + * Protobuf enum {@code google.cloud.designcenter.v1.CloudControl.EnforcementMode} + */ + public enum EnforcementMode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Enforcement type unspecified.
+     * 
+ * + * ENFORCEMENT_MODE_UNSPECIFIED = 0; + */ + ENFORCEMENT_MODE_UNSPECIFIED(0), + /** + * + * + *
+     * The cloud control is enforced to prevent non-compliance.
+     * 
+ * + * PREVENTIVE = 1; + */ + PREVENTIVE(1), + /** + * + * + *
+     * The cloud control is enforced to detect non-compliance.
+     * 
+ * + * DETECTIVE = 2; + */ + DETECTIVE(2), + /** + * + * + *
+     * The cloud control is enforced to audit for non-compliance.
+     * 
+ * + * AUDIT = 3; + */ + AUDIT(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "EnforcementMode"); + } + + /** + * + * + *
+     * Enforcement type unspecified.
+     * 
+ * + * ENFORCEMENT_MODE_UNSPECIFIED = 0; + */ + public static final int ENFORCEMENT_MODE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * The cloud control is enforced to prevent non-compliance.
+     * 
+ * + * PREVENTIVE = 1; + */ + public static final int PREVENTIVE_VALUE = 1; + + /** + * + * + *
+     * The cloud control is enforced to detect non-compliance.
+     * 
+ * + * DETECTIVE = 2; + */ + public static final int DETECTIVE_VALUE = 2; + + /** + * + * + *
+     * The cloud control is enforced to audit for non-compliance.
+     * 
+ * + * AUDIT = 3; + */ + public static final int AUDIT_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 EnforcementMode 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 EnforcementMode forNumber(int value) { + switch (value) { + case 0: + return ENFORCEMENT_MODE_UNSPECIFIED; + case 1: + return PREVENTIVE; + case 2: + return DETECTIVE; + case 3: + return AUDIT; + 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 EnforcementMode findValueByNumber(int number) { + return EnforcementMode.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.designcenter.v1.CloudControl.getDescriptor().getEnumTypes().get(0); + } + + private static final EnforcementMode[] VALUES = values(); + + public static EnforcementMode 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 EnforcementMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.designcenter.v1.CloudControl.EnforcementMode) + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The name of the cloud control.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 cloud control.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
+   * Optional. The description of the cloud control.
+   * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The description of the cloud control.
+   * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MAJOR_REVISION_ID_FIELD_NUMBER = 3; + private int majorRevisionId_ = 0; + + /** + * + * + *
+   * Required. The major revision id of the cloud control.
+   * 
+ * + * int32 major_revision_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The majorRevisionId. + */ + @java.lang.Override + public int getMajorRevisionId() { + return majorRevisionId_; + } + + public static final int ENFORCEMENT_MODE_FIELD_NUMBER = 4; + private int enforcementMode_ = 0; + + /** + * + * + *
+   * Optional. The enforcement mode of the cloud control.
+   * 
+ * + * + * .google.cloud.designcenter.v1.CloudControl.EnforcementMode enforcement_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for enforcementMode. + */ + @java.lang.Override + public int getEnforcementModeValue() { + return enforcementMode_; + } + + /** + * + * + *
+   * Optional. The enforcement mode of the cloud control.
+   * 
+ * + * + * .google.cloud.designcenter.v1.CloudControl.EnforcementMode enforcement_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enforcementMode. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.CloudControl.EnforcementMode getEnforcementMode() { + com.google.cloud.designcenter.v1.CloudControl.EnforcementMode result = + com.google.cloud.designcenter.v1.CloudControl.EnforcementMode.forNumber(enforcementMode_); + return result == null + ? com.google.cloud.designcenter.v1.CloudControl.EnforcementMode.UNRECOGNIZED + : result; + } + + public static final int PARAMETER_SPECS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private java.util.List parameterSpecs_; + + /** + * + * + *
+   * Optional. The specifications of the parameters supported by the cloud
+   * control.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ParameterSpec parameter_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getParameterSpecsList() { + return parameterSpecs_; + } + + /** + * + * + *
+   * Optional. The specifications of the parameters supported by the cloud
+   * control.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ParameterSpec parameter_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getParameterSpecsOrBuilderList() { + return parameterSpecs_; + } + + /** + * + * + *
+   * Optional. The specifications of the parameters supported by the cloud
+   * control.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ParameterSpec parameter_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getParameterSpecsCount() { + return parameterSpecs_.size(); + } + + /** + * + * + *
+   * Optional. The specifications of the parameters supported by the cloud
+   * control.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ParameterSpec parameter_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ParameterSpec getParameterSpecs(int index) { + return parameterSpecs_.get(index); + } + + /** + * + * + *
+   * Optional. The specifications of the parameters supported by the cloud
+   * control.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ParameterSpec parameter_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ParameterSpecOrBuilder getParameterSpecsOrBuilder( + int index) { + return parameterSpecs_.get(index); + } + + public static final int PARAMETERS_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private java.util.List parameters_; + + /** + * + * + *
+   * Optional. The parameter values that are already configured for the cloud
+   * control, if any. Used to pre-populate the parameter values presented to the
+   * user.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getParametersList() { + return parameters_; + } + + /** + * + * + *
+   * Optional. The parameter values that are already configured for the cloud
+   * control, if any. Used to pre-populate the parameter values presented to the
+   * user.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getParametersOrBuilderList() { + return parameters_; + } + + /** + * + * + *
+   * Optional. The parameter values that are already configured for the cloud
+   * control, if any. Used to pre-populate the parameter values presented to the
+   * user.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getParametersCount() { + return parameters_.size(); + } + + /** + * + * + *
+   * Optional. The parameter values that are already configured for the cloud
+   * control, if any. Used to pre-populate the parameter values presented to the
+   * user.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.Parameter getParameters(int index) { + return parameters_.get(index); + } + + /** + * + * + *
+   * Optional. The parameter values that are already configured for the cloud
+   * control, if any. Used to pre-populate the parameter values presented to the
+   * user.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ParameterOrBuilder getParametersOrBuilder(int index) { + return parameters_.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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, description_); + } + if (majorRevisionId_ != 0) { + output.writeInt32(3, majorRevisionId_); + } + if (enforcementMode_ + != com.google.cloud.designcenter.v1.CloudControl.EnforcementMode + .ENFORCEMENT_MODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, enforcementMode_); + } + for (int i = 0; i < parameterSpecs_.size(); i++) { + output.writeMessage(5, parameterSpecs_.get(i)); + } + for (int i = 0; i < parameters_.size(); i++) { + output.writeMessage(6, parameters_.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.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, description_); + } + if (majorRevisionId_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, majorRevisionId_); + } + if (enforcementMode_ + != com.google.cloud.designcenter.v1.CloudControl.EnforcementMode + .ENFORCEMENT_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, enforcementMode_); + } + for (int i = 0; i < parameterSpecs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, parameterSpecs_.get(i)); + } + for (int i = 0; i < parameters_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, parameters_.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.designcenter.v1.CloudControl)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.CloudControl other = + (com.google.cloud.designcenter.v1.CloudControl) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (getMajorRevisionId() != other.getMajorRevisionId()) return false; + if (enforcementMode_ != other.enforcementMode_) return false; + if (!getParameterSpecsList().equals(other.getParameterSpecsList())) return false; + if (!getParametersList().equals(other.getParametersList())) 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) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + MAJOR_REVISION_ID_FIELD_NUMBER; + hash = (53 * hash) + getMajorRevisionId(); + hash = (37 * hash) + ENFORCEMENT_MODE_FIELD_NUMBER; + hash = (53 * hash) + enforcementMode_; + if (getParameterSpecsCount() > 0) { + hash = (37 * hash) + PARAMETER_SPECS_FIELD_NUMBER; + hash = (53 * hash) + getParameterSpecsList().hashCode(); + } + if (getParametersCount() > 0) { + hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getParametersList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.CloudControl parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.CloudControl 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.designcenter.v1.CloudControl parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.CloudControl parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.CloudControl parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.CloudControl parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.CloudControl parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.CloudControl parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.CloudControl parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.CloudControl parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.CloudControl parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.CloudControl parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.CloudControl 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Cloud control for a framework.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.CloudControl} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.CloudControl) + com.google.cloud.designcenter.v1.CloudControlOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_CloudControl_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_CloudControl_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.CloudControl.class, + com.google.cloud.designcenter.v1.CloudControl.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.CloudControl.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + description_ = ""; + majorRevisionId_ = 0; + enforcementMode_ = 0; + if (parameterSpecsBuilder_ == null) { + parameterSpecs_ = java.util.Collections.emptyList(); + } else { + parameterSpecs_ = null; + parameterSpecsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + if (parametersBuilder_ == null) { + parameters_ = java.util.Collections.emptyList(); + } else { + parameters_ = null; + parametersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_CloudControl_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.CloudControl getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.CloudControl.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.CloudControl build() { + com.google.cloud.designcenter.v1.CloudControl result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.CloudControl buildPartial() { + com.google.cloud.designcenter.v1.CloudControl result = + new com.google.cloud.designcenter.v1.CloudControl(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.designcenter.v1.CloudControl result) { + if (parameterSpecsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + parameterSpecs_ = java.util.Collections.unmodifiableList(parameterSpecs_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.parameterSpecs_ = parameterSpecs_; + } else { + result.parameterSpecs_ = parameterSpecsBuilder_.build(); + } + if (parametersBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + parameters_ = java.util.Collections.unmodifiableList(parameters_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.parameters_ = parameters_; + } else { + result.parameters_ = parametersBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.designcenter.v1.CloudControl result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.majorRevisionId_ = majorRevisionId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.enforcementMode_ = enforcementMode_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.CloudControl) { + return mergeFrom((com.google.cloud.designcenter.v1.CloudControl) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.CloudControl other) { + if (other == com.google.cloud.designcenter.v1.CloudControl.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getMajorRevisionId() != 0) { + setMajorRevisionId(other.getMajorRevisionId()); + } + if (other.enforcementMode_ != 0) { + setEnforcementModeValue(other.getEnforcementModeValue()); + } + if (parameterSpecsBuilder_ == null) { + if (!other.parameterSpecs_.isEmpty()) { + if (parameterSpecs_.isEmpty()) { + parameterSpecs_ = other.parameterSpecs_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureParameterSpecsIsMutable(); + parameterSpecs_.addAll(other.parameterSpecs_); + } + onChanged(); + } + } else { + if (!other.parameterSpecs_.isEmpty()) { + if (parameterSpecsBuilder_.isEmpty()) { + parameterSpecsBuilder_.dispose(); + parameterSpecsBuilder_ = null; + parameterSpecs_ = other.parameterSpecs_; + bitField0_ = (bitField0_ & ~0x00000010); + parameterSpecsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetParameterSpecsFieldBuilder() + : null; + } else { + parameterSpecsBuilder_.addAllMessages(other.parameterSpecs_); + } + } + } + if (parametersBuilder_ == null) { + if (!other.parameters_.isEmpty()) { + if (parameters_.isEmpty()) { + parameters_ = other.parameters_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureParametersIsMutable(); + parameters_.addAll(other.parameters_); + } + onChanged(); + } + } else { + if (!other.parameters_.isEmpty()) { + if (parametersBuilder_.isEmpty()) { + parametersBuilder_.dispose(); + parametersBuilder_ = null; + parameters_ = other.parameters_; + bitField0_ = (bitField0_ & ~0x00000020); + parametersBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetParametersFieldBuilder() + : null; + } else { + parametersBuilder_.addAllMessages(other.parameters_); + } + } + } + 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: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + majorRevisionId_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + enforcementMode_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + com.google.cloud.designcenter.v1.ParameterSpec m = + input.readMessage( + com.google.cloud.designcenter.v1.ParameterSpec.parser(), extensionRegistry); + if (parameterSpecsBuilder_ == null) { + ensureParameterSpecsIsMutable(); + parameterSpecs_.add(m); + } else { + parameterSpecsBuilder_.addMessage(m); + } + break; + } // case 42 + case 50: + { + com.google.cloud.designcenter.v1.Parameter m = + input.readMessage( + com.google.cloud.designcenter.v1.Parameter.parser(), extensionRegistry); + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + parameters_.add(m); + } else { + parametersBuilder_.addMessage(m); + } + break; + } // case 50 + default: + { + 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 cloud control.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The name of the cloud control.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 cloud control.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The name of the cloud control.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The name of the cloud control.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
+     * Optional. The description of the cloud control.
+     * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The description of the cloud control.
+     * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The description of the cloud control.
+     * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The description of the cloud control.
+     * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The description of the cloud control.
+     * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int majorRevisionId_; + + /** + * + * + *
+     * Required. The major revision id of the cloud control.
+     * 
+ * + * int32 major_revision_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The majorRevisionId. + */ + @java.lang.Override + public int getMajorRevisionId() { + return majorRevisionId_; + } + + /** + * + * + *
+     * Required. The major revision id of the cloud control.
+     * 
+ * + * int32 major_revision_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The majorRevisionId to set. + * @return This builder for chaining. + */ + public Builder setMajorRevisionId(int value) { + + majorRevisionId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The major revision id of the cloud control.
+     * 
+ * + * int32 major_revision_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearMajorRevisionId() { + bitField0_ = (bitField0_ & ~0x00000004); + majorRevisionId_ = 0; + onChanged(); + return this; + } + + private int enforcementMode_ = 0; + + /** + * + * + *
+     * Optional. The enforcement mode of the cloud control.
+     * 
+ * + * + * .google.cloud.designcenter.v1.CloudControl.EnforcementMode enforcement_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for enforcementMode. + */ + @java.lang.Override + public int getEnforcementModeValue() { + return enforcementMode_; + } + + /** + * + * + *
+     * Optional. The enforcement mode of the cloud control.
+     * 
+ * + * + * .google.cloud.designcenter.v1.CloudControl.EnforcementMode enforcement_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for enforcementMode to set. + * @return This builder for chaining. + */ + public Builder setEnforcementModeValue(int value) { + enforcementMode_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The enforcement mode of the cloud control.
+     * 
+ * + * + * .google.cloud.designcenter.v1.CloudControl.EnforcementMode enforcement_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enforcementMode. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.CloudControl.EnforcementMode getEnforcementMode() { + com.google.cloud.designcenter.v1.CloudControl.EnforcementMode result = + com.google.cloud.designcenter.v1.CloudControl.EnforcementMode.forNumber(enforcementMode_); + return result == null + ? com.google.cloud.designcenter.v1.CloudControl.EnforcementMode.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Optional. The enforcement mode of the cloud control.
+     * 
+ * + * + * .google.cloud.designcenter.v1.CloudControl.EnforcementMode enforcement_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enforcementMode to set. + * @return This builder for chaining. + */ + public Builder setEnforcementMode( + com.google.cloud.designcenter.v1.CloudControl.EnforcementMode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + enforcementMode_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The enforcement mode of the cloud control.
+     * 
+ * + * + * .google.cloud.designcenter.v1.CloudControl.EnforcementMode enforcement_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearEnforcementMode() { + bitField0_ = (bitField0_ & ~0x00000008); + enforcementMode_ = 0; + onChanged(); + return this; + } + + private java.util.List parameterSpecs_ = + java.util.Collections.emptyList(); + + private void ensureParameterSpecsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + parameterSpecs_ = + new java.util.ArrayList( + parameterSpecs_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ParameterSpec, + com.google.cloud.designcenter.v1.ParameterSpec.Builder, + com.google.cloud.designcenter.v1.ParameterSpecOrBuilder> + parameterSpecsBuilder_; + + /** + * + * + *
+     * Optional. The specifications of the parameters supported by the cloud
+     * control.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ParameterSpec parameter_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getParameterSpecsList() { + if (parameterSpecsBuilder_ == null) { + return java.util.Collections.unmodifiableList(parameterSpecs_); + } else { + return parameterSpecsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. The specifications of the parameters supported by the cloud
+     * control.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ParameterSpec parameter_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getParameterSpecsCount() { + if (parameterSpecsBuilder_ == null) { + return parameterSpecs_.size(); + } else { + return parameterSpecsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. The specifications of the parameters supported by the cloud
+     * control.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ParameterSpec parameter_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ParameterSpec getParameterSpecs(int index) { + if (parameterSpecsBuilder_ == null) { + return parameterSpecs_.get(index); + } else { + return parameterSpecsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. The specifications of the parameters supported by the cloud
+     * control.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ParameterSpec parameter_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setParameterSpecs( + int index, com.google.cloud.designcenter.v1.ParameterSpec value) { + if (parameterSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureParameterSpecsIsMutable(); + parameterSpecs_.set(index, value); + onChanged(); + } else { + parameterSpecsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The specifications of the parameters supported by the cloud
+     * control.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ParameterSpec parameter_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setParameterSpecs( + int index, com.google.cloud.designcenter.v1.ParameterSpec.Builder builderForValue) { + if (parameterSpecsBuilder_ == null) { + ensureParameterSpecsIsMutable(); + parameterSpecs_.set(index, builderForValue.build()); + onChanged(); + } else { + parameterSpecsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The specifications of the parameters supported by the cloud
+     * control.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ParameterSpec parameter_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addParameterSpecs(com.google.cloud.designcenter.v1.ParameterSpec value) { + if (parameterSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureParameterSpecsIsMutable(); + parameterSpecs_.add(value); + onChanged(); + } else { + parameterSpecsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. The specifications of the parameters supported by the cloud
+     * control.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ParameterSpec parameter_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addParameterSpecs( + int index, com.google.cloud.designcenter.v1.ParameterSpec value) { + if (parameterSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureParameterSpecsIsMutable(); + parameterSpecs_.add(index, value); + onChanged(); + } else { + parameterSpecsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The specifications of the parameters supported by the cloud
+     * control.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ParameterSpec parameter_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addParameterSpecs( + com.google.cloud.designcenter.v1.ParameterSpec.Builder builderForValue) { + if (parameterSpecsBuilder_ == null) { + ensureParameterSpecsIsMutable(); + parameterSpecs_.add(builderForValue.build()); + onChanged(); + } else { + parameterSpecsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The specifications of the parameters supported by the cloud
+     * control.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ParameterSpec parameter_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addParameterSpecs( + int index, com.google.cloud.designcenter.v1.ParameterSpec.Builder builderForValue) { + if (parameterSpecsBuilder_ == null) { + ensureParameterSpecsIsMutable(); + parameterSpecs_.add(index, builderForValue.build()); + onChanged(); + } else { + parameterSpecsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The specifications of the parameters supported by the cloud
+     * control.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ParameterSpec parameter_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllParameterSpecs( + java.lang.Iterable values) { + if (parameterSpecsBuilder_ == null) { + ensureParameterSpecsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, parameterSpecs_); + onChanged(); + } else { + parameterSpecsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. The specifications of the parameters supported by the cloud
+     * control.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ParameterSpec parameter_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearParameterSpecs() { + if (parameterSpecsBuilder_ == null) { + parameterSpecs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + parameterSpecsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. The specifications of the parameters supported by the cloud
+     * control.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ParameterSpec parameter_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeParameterSpecs(int index) { + if (parameterSpecsBuilder_ == null) { + ensureParameterSpecsIsMutable(); + parameterSpecs_.remove(index); + onChanged(); + } else { + parameterSpecsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. The specifications of the parameters supported by the cloud
+     * control.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ParameterSpec parameter_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ParameterSpec.Builder getParameterSpecsBuilder( + int index) { + return internalGetParameterSpecsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. The specifications of the parameters supported by the cloud
+     * control.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ParameterSpec parameter_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ParameterSpecOrBuilder getParameterSpecsOrBuilder( + int index) { + if (parameterSpecsBuilder_ == null) { + return parameterSpecs_.get(index); + } else { + return parameterSpecsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. The specifications of the parameters supported by the cloud
+     * control.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ParameterSpec parameter_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getParameterSpecsOrBuilderList() { + if (parameterSpecsBuilder_ != null) { + return parameterSpecsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(parameterSpecs_); + } + } + + /** + * + * + *
+     * Optional. The specifications of the parameters supported by the cloud
+     * control.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ParameterSpec parameter_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ParameterSpec.Builder addParameterSpecsBuilder() { + return internalGetParameterSpecsFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.ParameterSpec.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The specifications of the parameters supported by the cloud
+     * control.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ParameterSpec parameter_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ParameterSpec.Builder addParameterSpecsBuilder( + int index) { + return internalGetParameterSpecsFieldBuilder() + .addBuilder(index, com.google.cloud.designcenter.v1.ParameterSpec.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The specifications of the parameters supported by the cloud
+     * control.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ParameterSpec parameter_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getParameterSpecsBuilderList() { + return internalGetParameterSpecsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ParameterSpec, + com.google.cloud.designcenter.v1.ParameterSpec.Builder, + com.google.cloud.designcenter.v1.ParameterSpecOrBuilder> + internalGetParameterSpecsFieldBuilder() { + if (parameterSpecsBuilder_ == null) { + parameterSpecsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ParameterSpec, + com.google.cloud.designcenter.v1.ParameterSpec.Builder, + com.google.cloud.designcenter.v1.ParameterSpecOrBuilder>( + parameterSpecs_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + parameterSpecs_ = null; + } + return parameterSpecsBuilder_; + } + + private java.util.List parameters_ = + java.util.Collections.emptyList(); + + private void ensureParametersIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + parameters_ = + new java.util.ArrayList(parameters_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Parameter, + com.google.cloud.designcenter.v1.Parameter.Builder, + com.google.cloud.designcenter.v1.ParameterOrBuilder> + parametersBuilder_; + + /** + * + * + *
+     * Optional. The parameter values that are already configured for the cloud
+     * control, if any. Used to pre-populate the parameter values presented to the
+     * user.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getParametersList() { + if (parametersBuilder_ == null) { + return java.util.Collections.unmodifiableList(parameters_); + } else { + return parametersBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. The parameter values that are already configured for the cloud
+     * control, if any. Used to pre-populate the parameter values presented to the
+     * user.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getParametersCount() { + if (parametersBuilder_ == null) { + return parameters_.size(); + } else { + return parametersBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. The parameter values that are already configured for the cloud
+     * control, if any. Used to pre-populate the parameter values presented to the
+     * user.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter getParameters(int index) { + if (parametersBuilder_ == null) { + return parameters_.get(index); + } else { + return parametersBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. The parameter values that are already configured for the cloud
+     * control, if any. Used to pre-populate the parameter values presented to the
+     * user.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setParameters(int index, com.google.cloud.designcenter.v1.Parameter value) { + if (parametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureParametersIsMutable(); + parameters_.set(index, value); + onChanged(); + } else { + parametersBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The parameter values that are already configured for the cloud
+     * control, if any. Used to pre-populate the parameter values presented to the
+     * user.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setParameters( + int index, com.google.cloud.designcenter.v1.Parameter.Builder builderForValue) { + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + parameters_.set(index, builderForValue.build()); + onChanged(); + } else { + parametersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The parameter values that are already configured for the cloud
+     * control, if any. Used to pre-populate the parameter values presented to the
+     * user.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addParameters(com.google.cloud.designcenter.v1.Parameter value) { + if (parametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureParametersIsMutable(); + parameters_.add(value); + onChanged(); + } else { + parametersBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. The parameter values that are already configured for the cloud
+     * control, if any. Used to pre-populate the parameter values presented to the
+     * user.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addParameters(int index, com.google.cloud.designcenter.v1.Parameter value) { + if (parametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureParametersIsMutable(); + parameters_.add(index, value); + onChanged(); + } else { + parametersBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The parameter values that are already configured for the cloud
+     * control, if any. Used to pre-populate the parameter values presented to the
+     * user.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addParameters( + com.google.cloud.designcenter.v1.Parameter.Builder builderForValue) { + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + parameters_.add(builderForValue.build()); + onChanged(); + } else { + parametersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The parameter values that are already configured for the cloud
+     * control, if any. Used to pre-populate the parameter values presented to the
+     * user.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addParameters( + int index, com.google.cloud.designcenter.v1.Parameter.Builder builderForValue) { + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + parameters_.add(index, builderForValue.build()); + onChanged(); + } else { + parametersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The parameter values that are already configured for the cloud
+     * control, if any. Used to pre-populate the parameter values presented to the
+     * user.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllParameters( + java.lang.Iterable values) { + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, parameters_); + onChanged(); + } else { + parametersBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. The parameter values that are already configured for the cloud
+     * control, if any. Used to pre-populate the parameter values presented to the
+     * user.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearParameters() { + if (parametersBuilder_ == null) { + parameters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + parametersBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. The parameter values that are already configured for the cloud
+     * control, if any. Used to pre-populate the parameter values presented to the
+     * user.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeParameters(int index) { + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + parameters_.remove(index); + onChanged(); + } else { + parametersBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. The parameter values that are already configured for the cloud
+     * control, if any. Used to pre-populate the parameter values presented to the
+     * user.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter.Builder getParametersBuilder(int index) { + return internalGetParametersFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. The parameter values that are already configured for the cloud
+     * control, if any. Used to pre-populate the parameter values presented to the
+     * user.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ParameterOrBuilder getParametersOrBuilder(int index) { + if (parametersBuilder_ == null) { + return parameters_.get(index); + } else { + return parametersBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. The parameter values that are already configured for the cloud
+     * control, if any. Used to pre-populate the parameter values presented to the
+     * user.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getParametersOrBuilderList() { + if (parametersBuilder_ != null) { + return parametersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(parameters_); + } + } + + /** + * + * + *
+     * Optional. The parameter values that are already configured for the cloud
+     * control, if any. Used to pre-populate the parameter values presented to the
+     * user.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter.Builder addParametersBuilder() { + return internalGetParametersFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.Parameter.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The parameter values that are already configured for the cloud
+     * control, if any. Used to pre-populate the parameter values presented to the
+     * user.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter.Builder addParametersBuilder(int index) { + return internalGetParametersFieldBuilder() + .addBuilder(index, com.google.cloud.designcenter.v1.Parameter.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The parameter values that are already configured for the cloud
+     * control, if any. Used to pre-populate the parameter values presented to the
+     * user.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getParametersBuilderList() { + return internalGetParametersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Parameter, + com.google.cloud.designcenter.v1.Parameter.Builder, + com.google.cloud.designcenter.v1.ParameterOrBuilder> + internalGetParametersFieldBuilder() { + if (parametersBuilder_ == null) { + parametersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Parameter, + com.google.cloud.designcenter.v1.Parameter.Builder, + com.google.cloud.designcenter.v1.ParameterOrBuilder>( + parameters_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); + parameters_ = null; + } + return parametersBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.CloudControl) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.CloudControl) + private static final com.google.cloud.designcenter.v1.CloudControl DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.CloudControl(); + } + + public static com.google.cloud.designcenter.v1.CloudControl getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CloudControl parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.CloudControl getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CloudControlConfig.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CloudControlConfig.java new file mode 100644 index 000000000000..780c48da1d25 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CloudControlConfig.java @@ -0,0 +1,1194 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/parameters.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Parameter values stored for a single cloud control of a policy.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.CloudControlConfig} + */ +@com.google.protobuf.Generated +public final class CloudControlConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.CloudControlConfig) + CloudControlConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "CloudControlConfig"); + } + + // Use CloudControlConfig.newBuilder() to construct. + private CloudControlConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CloudControlConfig() { + cloudControl_ = ""; + parameters_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.ParametersProto + .internal_static_google_cloud_designcenter_v1_CloudControlConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.ParametersProto + .internal_static_google_cloud_designcenter_v1_CloudControlConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.CloudControlConfig.class, + com.google.cloud.designcenter.v1.CloudControlConfig.Builder.class); + } + + public static final int CLOUD_CONTROL_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object cloudControl_ = ""; + + /** + * + * + *
+   * Required. Resource name of the cloud control that these parameter values
+   * apply to. Format:
+   * organizations/{organization}/locations/{location}/cloudControls/{cloud_control}
+   * or projects/{project}/locations/{location}/cloudControls/{cloud_control}
+   * 
+ * + * + * string cloud_control = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The cloudControl. + */ + @java.lang.Override + public java.lang.String getCloudControl() { + java.lang.Object ref = cloudControl_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cloudControl_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Resource name of the cloud control that these parameter values
+   * apply to. Format:
+   * organizations/{organization}/locations/{location}/cloudControls/{cloud_control}
+   * or projects/{project}/locations/{location}/cloudControls/{cloud_control}
+   * 
+ * + * + * string cloud_control = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cloudControl. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCloudControlBytes() { + java.lang.Object ref = cloudControl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cloudControl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARAMETERS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List parameters_; + + /** + * + * + *
+   * Optional. Parameter values for this specific control.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getParametersList() { + return parameters_; + } + + /** + * + * + *
+   * Optional. Parameter values for this specific control.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getParametersOrBuilderList() { + return parameters_; + } + + /** + * + * + *
+   * Optional. Parameter values for this specific control.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getParametersCount() { + return parameters_.size(); + } + + /** + * + * + *
+   * Optional. Parameter values for this specific control.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.Parameter getParameters(int index) { + return parameters_.get(index); + } + + /** + * + * + *
+   * Optional. Parameter values for this specific control.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ParameterOrBuilder getParametersOrBuilder(int index) { + return parameters_.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.GeneratedMessage.isStringEmpty(cloudControl_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, cloudControl_); + } + for (int i = 0; i < parameters_.size(); i++) { + output.writeMessage(2, parameters_.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.GeneratedMessage.isStringEmpty(cloudControl_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, cloudControl_); + } + for (int i = 0; i < parameters_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, parameters_.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.designcenter.v1.CloudControlConfig)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.CloudControlConfig other = + (com.google.cloud.designcenter.v1.CloudControlConfig) obj; + + if (!getCloudControl().equals(other.getCloudControl())) return false; + if (!getParametersList().equals(other.getParametersList())) 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) + CLOUD_CONTROL_FIELD_NUMBER; + hash = (53 * hash) + getCloudControl().hashCode(); + if (getParametersCount() > 0) { + hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getParametersList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.CloudControlConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.CloudControlConfig 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.designcenter.v1.CloudControlConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.CloudControlConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.CloudControlConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.CloudControlConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.CloudControlConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.CloudControlConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.CloudControlConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.CloudControlConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.CloudControlConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.CloudControlConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.CloudControlConfig 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Parameter values stored for a single cloud control of a policy.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.CloudControlConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.CloudControlConfig) + com.google.cloud.designcenter.v1.CloudControlConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.ParametersProto + .internal_static_google_cloud_designcenter_v1_CloudControlConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.ParametersProto + .internal_static_google_cloud_designcenter_v1_CloudControlConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.CloudControlConfig.class, + com.google.cloud.designcenter.v1.CloudControlConfig.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.CloudControlConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + cloudControl_ = ""; + if (parametersBuilder_ == null) { + parameters_ = java.util.Collections.emptyList(); + } else { + parameters_ = null; + parametersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.ParametersProto + .internal_static_google_cloud_designcenter_v1_CloudControlConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.CloudControlConfig getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.CloudControlConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.CloudControlConfig build() { + com.google.cloud.designcenter.v1.CloudControlConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.CloudControlConfig buildPartial() { + com.google.cloud.designcenter.v1.CloudControlConfig result = + new com.google.cloud.designcenter.v1.CloudControlConfig(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.designcenter.v1.CloudControlConfig result) { + if (parametersBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + parameters_ = java.util.Collections.unmodifiableList(parameters_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.parameters_ = parameters_; + } else { + result.parameters_ = parametersBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.designcenter.v1.CloudControlConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.cloudControl_ = cloudControl_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.CloudControlConfig) { + return mergeFrom((com.google.cloud.designcenter.v1.CloudControlConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.CloudControlConfig other) { + if (other == com.google.cloud.designcenter.v1.CloudControlConfig.getDefaultInstance()) + return this; + if (!other.getCloudControl().isEmpty()) { + cloudControl_ = other.cloudControl_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (parametersBuilder_ == null) { + if (!other.parameters_.isEmpty()) { + if (parameters_.isEmpty()) { + parameters_ = other.parameters_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureParametersIsMutable(); + parameters_.addAll(other.parameters_); + } + onChanged(); + } + } else { + if (!other.parameters_.isEmpty()) { + if (parametersBuilder_.isEmpty()) { + parametersBuilder_.dispose(); + parametersBuilder_ = null; + parameters_ = other.parameters_; + bitField0_ = (bitField0_ & ~0x00000002); + parametersBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetParametersFieldBuilder() + : null; + } else { + parametersBuilder_.addAllMessages(other.parameters_); + } + } + } + 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: + { + cloudControl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.designcenter.v1.Parameter m = + input.readMessage( + com.google.cloud.designcenter.v1.Parameter.parser(), extensionRegistry); + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + parameters_.add(m); + } else { + parametersBuilder_.addMessage(m); + } + 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 cloudControl_ = ""; + + /** + * + * + *
+     * Required. Resource name of the cloud control that these parameter values
+     * apply to. Format:
+     * organizations/{organization}/locations/{location}/cloudControls/{cloud_control}
+     * or projects/{project}/locations/{location}/cloudControls/{cloud_control}
+     * 
+ * + * + * string cloud_control = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The cloudControl. + */ + public java.lang.String getCloudControl() { + java.lang.Object ref = cloudControl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cloudControl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Resource name of the cloud control that these parameter values
+     * apply to. Format:
+     * organizations/{organization}/locations/{location}/cloudControls/{cloud_control}
+     * or projects/{project}/locations/{location}/cloudControls/{cloud_control}
+     * 
+ * + * + * string cloud_control = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cloudControl. + */ + public com.google.protobuf.ByteString getCloudControlBytes() { + java.lang.Object ref = cloudControl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cloudControl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Resource name of the cloud control that these parameter values
+     * apply to. Format:
+     * organizations/{organization}/locations/{location}/cloudControls/{cloud_control}
+     * or projects/{project}/locations/{location}/cloudControls/{cloud_control}
+     * 
+ * + * + * string cloud_control = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The cloudControl to set. + * @return This builder for chaining. + */ + public Builder setCloudControl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + cloudControl_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Resource name of the cloud control that these parameter values
+     * apply to. Format:
+     * organizations/{organization}/locations/{location}/cloudControls/{cloud_control}
+     * or projects/{project}/locations/{location}/cloudControls/{cloud_control}
+     * 
+ * + * + * string cloud_control = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearCloudControl() { + cloudControl_ = getDefaultInstance().getCloudControl(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Resource name of the cloud control that these parameter values
+     * apply to. Format:
+     * organizations/{organization}/locations/{location}/cloudControls/{cloud_control}
+     * or projects/{project}/locations/{location}/cloudControls/{cloud_control}
+     * 
+ * + * + * string cloud_control = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for cloudControl to set. + * @return This builder for chaining. + */ + public Builder setCloudControlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cloudControl_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List parameters_ = + java.util.Collections.emptyList(); + + private void ensureParametersIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + parameters_ = + new java.util.ArrayList(parameters_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Parameter, + com.google.cloud.designcenter.v1.Parameter.Builder, + com.google.cloud.designcenter.v1.ParameterOrBuilder> + parametersBuilder_; + + /** + * + * + *
+     * Optional. Parameter values for this specific control.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getParametersList() { + if (parametersBuilder_ == null) { + return java.util.Collections.unmodifiableList(parameters_); + } else { + return parametersBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. Parameter values for this specific control.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getParametersCount() { + if (parametersBuilder_ == null) { + return parameters_.size(); + } else { + return parametersBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. Parameter values for this specific control.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter getParameters(int index) { + if (parametersBuilder_ == null) { + return parameters_.get(index); + } else { + return parametersBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. Parameter values for this specific control.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setParameters(int index, com.google.cloud.designcenter.v1.Parameter value) { + if (parametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureParametersIsMutable(); + parameters_.set(index, value); + onChanged(); + } else { + parametersBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Parameter values for this specific control.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setParameters( + int index, com.google.cloud.designcenter.v1.Parameter.Builder builderForValue) { + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + parameters_.set(index, builderForValue.build()); + onChanged(); + } else { + parametersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Parameter values for this specific control.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addParameters(com.google.cloud.designcenter.v1.Parameter value) { + if (parametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureParametersIsMutable(); + parameters_.add(value); + onChanged(); + } else { + parametersBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. Parameter values for this specific control.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addParameters(int index, com.google.cloud.designcenter.v1.Parameter value) { + if (parametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureParametersIsMutable(); + parameters_.add(index, value); + onChanged(); + } else { + parametersBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Parameter values for this specific control.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addParameters( + com.google.cloud.designcenter.v1.Parameter.Builder builderForValue) { + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + parameters_.add(builderForValue.build()); + onChanged(); + } else { + parametersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Parameter values for this specific control.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addParameters( + int index, com.google.cloud.designcenter.v1.Parameter.Builder builderForValue) { + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + parameters_.add(index, builderForValue.build()); + onChanged(); + } else { + parametersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Parameter values for this specific control.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllParameters( + java.lang.Iterable values) { + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, parameters_); + onChanged(); + } else { + parametersBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. Parameter values for this specific control.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearParameters() { + if (parametersBuilder_ == null) { + parameters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + parametersBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Parameter values for this specific control.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeParameters(int index) { + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + parameters_.remove(index); + onChanged(); + } else { + parametersBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. Parameter values for this specific control.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter.Builder getParametersBuilder(int index) { + return internalGetParametersFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. Parameter values for this specific control.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ParameterOrBuilder getParametersOrBuilder(int index) { + if (parametersBuilder_ == null) { + return parameters_.get(index); + } else { + return parametersBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. Parameter values for this specific control.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getParametersOrBuilderList() { + if (parametersBuilder_ != null) { + return parametersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(parameters_); + } + } + + /** + * + * + *
+     * Optional. Parameter values for this specific control.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter.Builder addParametersBuilder() { + return internalGetParametersFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.Parameter.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Parameter values for this specific control.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter.Builder addParametersBuilder(int index) { + return internalGetParametersFieldBuilder() + .addBuilder(index, com.google.cloud.designcenter.v1.Parameter.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Parameter values for this specific control.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getParametersBuilderList() { + return internalGetParametersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Parameter, + com.google.cloud.designcenter.v1.Parameter.Builder, + com.google.cloud.designcenter.v1.ParameterOrBuilder> + internalGetParametersFieldBuilder() { + if (parametersBuilder_ == null) { + parametersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Parameter, + com.google.cloud.designcenter.v1.Parameter.Builder, + com.google.cloud.designcenter.v1.ParameterOrBuilder>( + parameters_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + parameters_ = null; + } + return parametersBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.CloudControlConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.CloudControlConfig) + private static final com.google.cloud.designcenter.v1.CloudControlConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.CloudControlConfig(); + } + + public static com.google.cloud.designcenter.v1.CloudControlConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CloudControlConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.CloudControlConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CloudControlConfigOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CloudControlConfigOrBuilder.java new file mode 100644 index 000000000000..3db7d5849f7a --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CloudControlConfigOrBuilder.java @@ -0,0 +1,130 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/parameters.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface CloudControlConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.CloudControlConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Resource name of the cloud control that these parameter values
+   * apply to. Format:
+   * organizations/{organization}/locations/{location}/cloudControls/{cloud_control}
+   * or projects/{project}/locations/{location}/cloudControls/{cloud_control}
+   * 
+ * + * + * string cloud_control = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The cloudControl. + */ + java.lang.String getCloudControl(); + + /** + * + * + *
+   * Required. Resource name of the cloud control that these parameter values
+   * apply to. Format:
+   * organizations/{organization}/locations/{location}/cloudControls/{cloud_control}
+   * or projects/{project}/locations/{location}/cloudControls/{cloud_control}
+   * 
+ * + * + * string cloud_control = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cloudControl. + */ + com.google.protobuf.ByteString getCloudControlBytes(); + + /** + * + * + *
+   * Optional. Parameter values for this specific control.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getParametersList(); + + /** + * + * + *
+   * Optional. Parameter values for this specific control.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.Parameter getParameters(int index); + + /** + * + * + *
+   * Optional. Parameter values for this specific control.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getParametersCount(); + + /** + * + * + *
+   * Optional. Parameter values for this specific control.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getParametersOrBuilderList(); + + /** + * + * + *
+   * Optional. Parameter values for this specific control.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.ParameterOrBuilder getParametersOrBuilder(int index); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CloudControlOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CloudControlOrBuilder.java new file mode 100644 index 000000000000..7a7a12bca6a1 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CloudControlOrBuilder.java @@ -0,0 +1,270 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/assessment.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface CloudControlOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.CloudControl) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the cloud control.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The name of the cloud control.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. The description of the cloud control.
+   * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
+   * Optional. The description of the cloud control.
+   * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Required. The major revision id of the cloud control.
+   * 
+ * + * int32 major_revision_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The majorRevisionId. + */ + int getMajorRevisionId(); + + /** + * + * + *
+   * Optional. The enforcement mode of the cloud control.
+   * 
+ * + * + * .google.cloud.designcenter.v1.CloudControl.EnforcementMode enforcement_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for enforcementMode. + */ + int getEnforcementModeValue(); + + /** + * + * + *
+   * Optional. The enforcement mode of the cloud control.
+   * 
+ * + * + * .google.cloud.designcenter.v1.CloudControl.EnforcementMode enforcement_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enforcementMode. + */ + com.google.cloud.designcenter.v1.CloudControl.EnforcementMode getEnforcementMode(); + + /** + * + * + *
+   * Optional. The specifications of the parameters supported by the cloud
+   * control.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ParameterSpec parameter_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getParameterSpecsList(); + + /** + * + * + *
+   * Optional. The specifications of the parameters supported by the cloud
+   * control.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ParameterSpec parameter_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.ParameterSpec getParameterSpecs(int index); + + /** + * + * + *
+   * Optional. The specifications of the parameters supported by the cloud
+   * control.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ParameterSpec parameter_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getParameterSpecsCount(); + + /** + * + * + *
+   * Optional. The specifications of the parameters supported by the cloud
+   * control.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ParameterSpec parameter_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getParameterSpecsOrBuilderList(); + + /** + * + * + *
+   * Optional. The specifications of the parameters supported by the cloud
+   * control.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ParameterSpec parameter_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.ParameterSpecOrBuilder getParameterSpecsOrBuilder(int index); + + /** + * + * + *
+   * Optional. The parameter values that are already configured for the cloud
+   * control, if any. Used to pre-populate the parameter values presented to the
+   * user.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getParametersList(); + + /** + * + * + *
+   * Optional. The parameter values that are already configured for the cloud
+   * control, if any. Used to pre-populate the parameter values presented to the
+   * user.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.Parameter getParameters(int index); + + /** + * + * + *
+   * Optional. The parameter values that are already configured for the cloud
+   * control, if any. Used to pre-populate the parameter values presented to the
+   * user.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getParametersCount(); + + /** + * + * + *
+   * Optional. The parameter values that are already configured for the cloud
+   * control, if any. Used to pre-populate the parameter values presented to the
+   * user.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getParametersOrBuilderList(); + + /** + * + * + *
+   * Optional. The parameter values that are already configured for the cloud
+   * control, if any. Used to pre-populate the parameter values presented to the
+   * user.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.ParameterOrBuilder getParametersOrBuilder(int index); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CodePosition.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CodePosition.java new file mode 100644 index 000000000000..f06be28b6e6a --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CodePosition.java @@ -0,0 +1,696 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/ingestion.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * CodePosition represents a code location.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.CodePosition} + */ +@com.google.protobuf.Generated +public final class CodePosition extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.CodePosition) + CodePositionOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "CodePosition"); + } + + // Use CodePosition.newBuilder() to construct. + private CodePosition(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CodePosition() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.IngestionProto + .internal_static_google_cloud_designcenter_v1_CodePosition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.IngestionProto + .internal_static_google_cloud_designcenter_v1_CodePosition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.CodePosition.class, + com.google.cloud.designcenter.v1.CodePosition.Builder.class); + } + + public static final int LINE_FIELD_NUMBER = 1; + private int line_ = 0; + + /** + * + * + *
+   * Output only. One-based line count of the relevant position.
+   * 
+ * + * int32 line = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The line. + */ + @java.lang.Override + public int getLine() { + return line_; + } + + public static final int BYTE_OFFSET_FIELD_NUMBER = 2; + private int byteOffset_ = 0; + + /** + * + * + *
+   * Output only. Byte offset in the content.
+   * 
+ * + * int32 byte_offset = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The byteOffset. + */ + @java.lang.Override + public int getByteOffset() { + return byteOffset_; + } + + public static final int COLUMN_FIELD_NUMBER = 3; + private int column_ = 0; + + /** + * + * + *
+   * Output only. One-based column count of the relevant position.
+   * 
+ * + * int32 column = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The column. + */ + @java.lang.Override + public int getColumn() { + return column_; + } + + 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 (line_ != 0) { + output.writeInt32(1, line_); + } + if (byteOffset_ != 0) { + output.writeInt32(2, byteOffset_); + } + if (column_ != 0) { + output.writeInt32(3, column_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (line_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, line_); + } + if (byteOffset_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, byteOffset_); + } + if (column_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, column_); + } + 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.designcenter.v1.CodePosition)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.CodePosition other = + (com.google.cloud.designcenter.v1.CodePosition) obj; + + if (getLine() != other.getLine()) return false; + if (getByteOffset() != other.getByteOffset()) return false; + if (getColumn() != other.getColumn()) 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) + LINE_FIELD_NUMBER; + hash = (53 * hash) + getLine(); + hash = (37 * hash) + BYTE_OFFSET_FIELD_NUMBER; + hash = (53 * hash) + getByteOffset(); + hash = (37 * hash) + COLUMN_FIELD_NUMBER; + hash = (53 * hash) + getColumn(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.CodePosition parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.CodePosition 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.designcenter.v1.CodePosition parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.CodePosition parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.CodePosition parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.CodePosition parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.CodePosition parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.CodePosition parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.CodePosition parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.CodePosition parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.CodePosition parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.CodePosition parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.CodePosition 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * CodePosition represents a code location.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.CodePosition} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.CodePosition) + com.google.cloud.designcenter.v1.CodePositionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.IngestionProto + .internal_static_google_cloud_designcenter_v1_CodePosition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.IngestionProto + .internal_static_google_cloud_designcenter_v1_CodePosition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.CodePosition.class, + com.google.cloud.designcenter.v1.CodePosition.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.CodePosition.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + line_ = 0; + byteOffset_ = 0; + column_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.IngestionProto + .internal_static_google_cloud_designcenter_v1_CodePosition_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.CodePosition getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.CodePosition.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.CodePosition build() { + com.google.cloud.designcenter.v1.CodePosition result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.CodePosition buildPartial() { + com.google.cloud.designcenter.v1.CodePosition result = + new com.google.cloud.designcenter.v1.CodePosition(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.CodePosition result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.line_ = line_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.byteOffset_ = byteOffset_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.column_ = column_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.CodePosition) { + return mergeFrom((com.google.cloud.designcenter.v1.CodePosition) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.CodePosition other) { + if (other == com.google.cloud.designcenter.v1.CodePosition.getDefaultInstance()) return this; + if (other.getLine() != 0) { + setLine(other.getLine()); + } + if (other.getByteOffset() != 0) { + setByteOffset(other.getByteOffset()); + } + if (other.getColumn() != 0) { + setColumn(other.getColumn()); + } + 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: + { + line_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + byteOffset_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + column_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + 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 line_; + + /** + * + * + *
+     * Output only. One-based line count of the relevant position.
+     * 
+ * + * int32 line = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The line. + */ + @java.lang.Override + public int getLine() { + return line_; + } + + /** + * + * + *
+     * Output only. One-based line count of the relevant position.
+     * 
+ * + * int32 line = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The line to set. + * @return This builder for chaining. + */ + public Builder setLine(int value) { + + line_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. One-based line count of the relevant position.
+     * 
+ * + * int32 line = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearLine() { + bitField0_ = (bitField0_ & ~0x00000001); + line_ = 0; + onChanged(); + return this; + } + + private int byteOffset_; + + /** + * + * + *
+     * Output only. Byte offset in the content.
+     * 
+ * + * int32 byte_offset = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The byteOffset. + */ + @java.lang.Override + public int getByteOffset() { + return byteOffset_; + } + + /** + * + * + *
+     * Output only. Byte offset in the content.
+     * 
+ * + * int32 byte_offset = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The byteOffset to set. + * @return This builder for chaining. + */ + public Builder setByteOffset(int value) { + + byteOffset_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Byte offset in the content.
+     * 
+ * + * int32 byte_offset = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearByteOffset() { + bitField0_ = (bitField0_ & ~0x00000002); + byteOffset_ = 0; + onChanged(); + return this; + } + + private int column_; + + /** + * + * + *
+     * Output only. One-based column count of the relevant position.
+     * 
+ * + * int32 column = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The column. + */ + @java.lang.Override + public int getColumn() { + return column_; + } + + /** + * + * + *
+     * Output only. One-based column count of the relevant position.
+     * 
+ * + * int32 column = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The column to set. + * @return This builder for chaining. + */ + public Builder setColumn(int value) { + + column_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. One-based column count of the relevant position.
+     * 
+ * + * int32 column = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearColumn() { + bitField0_ = (bitField0_ & ~0x00000004); + column_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.CodePosition) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.CodePosition) + private static final com.google.cloud.designcenter.v1.CodePosition DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.CodePosition(); + } + + public static com.google.cloud.designcenter.v1.CodePosition getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CodePosition parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.CodePosition getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CodePositionOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CodePositionOrBuilder.java new file mode 100644 index 000000000000..2b872cc2d8c8 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CodePositionOrBuilder.java @@ -0,0 +1,67 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/ingestion.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface CodePositionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.CodePosition) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. One-based line count of the relevant position.
+   * 
+ * + * int32 line = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The line. + */ + int getLine(); + + /** + * + * + *
+   * Output only. Byte offset in the content.
+   * 
+ * + * int32 byte_offset = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The byteOffset. + */ + int getByteOffset(); + + /** + * + * + *
+   * Output only. One-based column count of the relevant position.
+   * 
+ * + * int32 column = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The column. + */ + int getColumn(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CodeRange.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CodeRange.java new file mode 100644 index 000000000000..3261ee66a3d7 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CodeRange.java @@ -0,0 +1,1020 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/ingestion.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * CodeRange represents a portion of code.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.CodeRange} + */ +@com.google.protobuf.Generated +public final class CodeRange extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.CodeRange) + CodeRangeOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "CodeRange"); + } + + // Use CodeRange.newBuilder() to construct. + private CodeRange(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CodeRange() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.IngestionProto + .internal_static_google_cloud_designcenter_v1_CodeRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.IngestionProto + .internal_static_google_cloud_designcenter_v1_CodeRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.CodeRange.class, + com.google.cloud.designcenter.v1.CodeRange.Builder.class); + } + + private int bitField0_; + public static final int START_FIELD_NUMBER = 1; + private com.google.cloud.designcenter.v1.CodePosition start_; + + /** + * + * + *
+   * Output only. Start position.
+   * 
+ * + * + * .google.cloud.designcenter.v1.CodePosition start = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the start field is set. + */ + @java.lang.Override + public boolean hasStart() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. Start position.
+   * 
+ * + * + * .google.cloud.designcenter.v1.CodePosition start = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The start. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.CodePosition getStart() { + return start_ == null + ? com.google.cloud.designcenter.v1.CodePosition.getDefaultInstance() + : start_; + } + + /** + * + * + *
+   * Output only. Start position.
+   * 
+ * + * + * .google.cloud.designcenter.v1.CodePosition start = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.CodePositionOrBuilder getStartOrBuilder() { + return start_ == null + ? com.google.cloud.designcenter.v1.CodePosition.getDefaultInstance() + : start_; + } + + public static final int END_FIELD_NUMBER = 2; + private com.google.cloud.designcenter.v1.CodePosition end_; + + /** + * + * + *
+   * Output only. End position.
+   * 
+ * + * + * .google.cloud.designcenter.v1.CodePosition end = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the end field is set. + */ + @java.lang.Override + public boolean hasEnd() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. End position.
+   * 
+ * + * + * .google.cloud.designcenter.v1.CodePosition end = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The end. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.CodePosition getEnd() { + return end_ == null ? com.google.cloud.designcenter.v1.CodePosition.getDefaultInstance() : end_; + } + + /** + * + * + *
+   * Output only. End position.
+   * 
+ * + * + * .google.cloud.designcenter.v1.CodePosition end = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.CodePositionOrBuilder getEndOrBuilder() { + return end_ == null ? com.google.cloud.designcenter.v1.CodePosition.getDefaultInstance() : end_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getStart()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getEnd()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStart()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEnd()); + } + 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.designcenter.v1.CodeRange)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.CodeRange other = + (com.google.cloud.designcenter.v1.CodeRange) obj; + + if (hasStart() != other.hasStart()) return false; + if (hasStart()) { + if (!getStart().equals(other.getStart())) return false; + } + if (hasEnd() != other.hasEnd()) return false; + if (hasEnd()) { + if (!getEnd().equals(other.getEnd())) 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 (hasStart()) { + hash = (37 * hash) + START_FIELD_NUMBER; + hash = (53 * hash) + getStart().hashCode(); + } + if (hasEnd()) { + hash = (37 * hash) + END_FIELD_NUMBER; + hash = (53 * hash) + getEnd().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.CodeRange parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.CodeRange 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.designcenter.v1.CodeRange parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.CodeRange parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.CodeRange parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.CodeRange parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.CodeRange parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.CodeRange parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.CodeRange parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.CodeRange parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.CodeRange parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.CodeRange parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.CodeRange 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * CodeRange represents a portion of code.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.CodeRange} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.CodeRange) + com.google.cloud.designcenter.v1.CodeRangeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.IngestionProto + .internal_static_google_cloud_designcenter_v1_CodeRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.IngestionProto + .internal_static_google_cloud_designcenter_v1_CodeRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.CodeRange.class, + com.google.cloud.designcenter.v1.CodeRange.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.CodeRange.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetStartFieldBuilder(); + internalGetEndFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + start_ = null; + if (startBuilder_ != null) { + startBuilder_.dispose(); + startBuilder_ = null; + } + end_ = null; + if (endBuilder_ != null) { + endBuilder_.dispose(); + endBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.IngestionProto + .internal_static_google_cloud_designcenter_v1_CodeRange_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.CodeRange getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.CodeRange.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.CodeRange build() { + com.google.cloud.designcenter.v1.CodeRange result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.CodeRange buildPartial() { + com.google.cloud.designcenter.v1.CodeRange result = + new com.google.cloud.designcenter.v1.CodeRange(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.CodeRange result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.start_ = startBuilder_ == null ? start_ : startBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.end_ = endBuilder_ == null ? end_ : endBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.CodeRange) { + return mergeFrom((com.google.cloud.designcenter.v1.CodeRange) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.CodeRange other) { + if (other == com.google.cloud.designcenter.v1.CodeRange.getDefaultInstance()) return this; + if (other.hasStart()) { + mergeStart(other.getStart()); + } + if (other.hasEnd()) { + mergeEnd(other.getEnd()); + } + 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(internalGetStartFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(internalGetEndFieldBuilder().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.designcenter.v1.CodePosition start_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.CodePosition, + com.google.cloud.designcenter.v1.CodePosition.Builder, + com.google.cloud.designcenter.v1.CodePositionOrBuilder> + startBuilder_; + + /** + * + * + *
+     * Output only. Start position.
+     * 
+ * + * + * .google.cloud.designcenter.v1.CodePosition start = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the start field is set. + */ + public boolean hasStart() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Output only. Start position.
+     * 
+ * + * + * .google.cloud.designcenter.v1.CodePosition start = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The start. + */ + public com.google.cloud.designcenter.v1.CodePosition getStart() { + if (startBuilder_ == null) { + return start_ == null + ? com.google.cloud.designcenter.v1.CodePosition.getDefaultInstance() + : start_; + } else { + return startBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Start position.
+     * 
+ * + * + * .google.cloud.designcenter.v1.CodePosition start = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStart(com.google.cloud.designcenter.v1.CodePosition value) { + if (startBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + start_ = value; + } else { + startBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Start position.
+     * 
+ * + * + * .google.cloud.designcenter.v1.CodePosition start = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStart(com.google.cloud.designcenter.v1.CodePosition.Builder builderForValue) { + if (startBuilder_ == null) { + start_ = builderForValue.build(); + } else { + startBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Start position.
+     * 
+ * + * + * .google.cloud.designcenter.v1.CodePosition start = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeStart(com.google.cloud.designcenter.v1.CodePosition value) { + if (startBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && start_ != null + && start_ != com.google.cloud.designcenter.v1.CodePosition.getDefaultInstance()) { + getStartBuilder().mergeFrom(value); + } else { + start_ = value; + } + } else { + startBuilder_.mergeFrom(value); + } + if (start_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Start position.
+     * 
+ * + * + * .google.cloud.designcenter.v1.CodePosition start = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearStart() { + bitField0_ = (bitField0_ & ~0x00000001); + start_ = null; + if (startBuilder_ != null) { + startBuilder_.dispose(); + startBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Start position.
+     * 
+ * + * + * .google.cloud.designcenter.v1.CodePosition start = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.CodePosition.Builder getStartBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetStartFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Start position.
+     * 
+ * + * + * .google.cloud.designcenter.v1.CodePosition start = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.CodePositionOrBuilder getStartOrBuilder() { + if (startBuilder_ != null) { + return startBuilder_.getMessageOrBuilder(); + } else { + return start_ == null + ? com.google.cloud.designcenter.v1.CodePosition.getDefaultInstance() + : start_; + } + } + + /** + * + * + *
+     * Output only. Start position.
+     * 
+ * + * + * .google.cloud.designcenter.v1.CodePosition start = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.CodePosition, + com.google.cloud.designcenter.v1.CodePosition.Builder, + com.google.cloud.designcenter.v1.CodePositionOrBuilder> + internalGetStartFieldBuilder() { + if (startBuilder_ == null) { + startBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.CodePosition, + com.google.cloud.designcenter.v1.CodePosition.Builder, + com.google.cloud.designcenter.v1.CodePositionOrBuilder>( + getStart(), getParentForChildren(), isClean()); + start_ = null; + } + return startBuilder_; + } + + private com.google.cloud.designcenter.v1.CodePosition end_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.CodePosition, + com.google.cloud.designcenter.v1.CodePosition.Builder, + com.google.cloud.designcenter.v1.CodePositionOrBuilder> + endBuilder_; + + /** + * + * + *
+     * Output only. End position.
+     * 
+ * + * + * .google.cloud.designcenter.v1.CodePosition end = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the end field is set. + */ + public boolean hasEnd() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Output only. End position.
+     * 
+ * + * + * .google.cloud.designcenter.v1.CodePosition end = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The end. + */ + public com.google.cloud.designcenter.v1.CodePosition getEnd() { + if (endBuilder_ == null) { + return end_ == null + ? com.google.cloud.designcenter.v1.CodePosition.getDefaultInstance() + : end_; + } else { + return endBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. End position.
+     * 
+ * + * + * .google.cloud.designcenter.v1.CodePosition end = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEnd(com.google.cloud.designcenter.v1.CodePosition value) { + if (endBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + end_ = value; + } else { + endBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. End position.
+     * 
+ * + * + * .google.cloud.designcenter.v1.CodePosition end = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEnd(com.google.cloud.designcenter.v1.CodePosition.Builder builderForValue) { + if (endBuilder_ == null) { + end_ = builderForValue.build(); + } else { + endBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. End position.
+     * 
+ * + * + * .google.cloud.designcenter.v1.CodePosition end = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeEnd(com.google.cloud.designcenter.v1.CodePosition value) { + if (endBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && end_ != null + && end_ != com.google.cloud.designcenter.v1.CodePosition.getDefaultInstance()) { + getEndBuilder().mergeFrom(value); + } else { + end_ = value; + } + } else { + endBuilder_.mergeFrom(value); + } + if (end_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. End position.
+     * 
+ * + * + * .google.cloud.designcenter.v1.CodePosition end = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearEnd() { + bitField0_ = (bitField0_ & ~0x00000002); + end_ = null; + if (endBuilder_ != null) { + endBuilder_.dispose(); + endBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. End position.
+     * 
+ * + * + * .google.cloud.designcenter.v1.CodePosition end = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.CodePosition.Builder getEndBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetEndFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. End position.
+     * 
+ * + * + * .google.cloud.designcenter.v1.CodePosition end = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.CodePositionOrBuilder getEndOrBuilder() { + if (endBuilder_ != null) { + return endBuilder_.getMessageOrBuilder(); + } else { + return end_ == null + ? com.google.cloud.designcenter.v1.CodePosition.getDefaultInstance() + : end_; + } + } + + /** + * + * + *
+     * Output only. End position.
+     * 
+ * + * + * .google.cloud.designcenter.v1.CodePosition end = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.CodePosition, + com.google.cloud.designcenter.v1.CodePosition.Builder, + com.google.cloud.designcenter.v1.CodePositionOrBuilder> + internalGetEndFieldBuilder() { + if (endBuilder_ == null) { + endBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.CodePosition, + com.google.cloud.designcenter.v1.CodePosition.Builder, + com.google.cloud.designcenter.v1.CodePositionOrBuilder>( + getEnd(), getParentForChildren(), isClean()); + end_ = null; + } + return endBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.CodeRange) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.CodeRange) + private static final com.google.cloud.designcenter.v1.CodeRange DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.CodeRange(); + } + + public static com.google.cloud.designcenter.v1.CodeRange getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CodeRange parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.CodeRange getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CodeRangeOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CodeRangeOrBuilder.java new file mode 100644 index 000000000000..78953132a941 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CodeRangeOrBuilder.java @@ -0,0 +1,114 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/ingestion.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface CodeRangeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.CodeRange) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Start position.
+   * 
+ * + * + * .google.cloud.designcenter.v1.CodePosition start = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the start field is set. + */ + boolean hasStart(); + + /** + * + * + *
+   * Output only. Start position.
+   * 
+ * + * + * .google.cloud.designcenter.v1.CodePosition start = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The start. + */ + com.google.cloud.designcenter.v1.CodePosition getStart(); + + /** + * + * + *
+   * Output only. Start position.
+   * 
+ * + * + * .google.cloud.designcenter.v1.CodePosition start = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.CodePositionOrBuilder getStartOrBuilder(); + + /** + * + * + *
+   * Output only. End position.
+   * 
+ * + * + * .google.cloud.designcenter.v1.CodePosition end = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the end field is set. + */ + boolean hasEnd(); + + /** + * + * + *
+   * Output only. End position.
+   * 
+ * + * + * .google.cloud.designcenter.v1.CodePosition end = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The end. + */ + com.google.cloud.designcenter.v1.CodePosition getEnd(); + + /** + * + * + *
+   * Output only. End position.
+   * 
+ * + * + * .google.cloud.designcenter.v1.CodePosition end = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.CodePositionOrBuilder getEndOrBuilder(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CommitApplicationTemplateRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CommitApplicationTemplateRequest.java new file mode 100644 index 000000000000..9368b25f3b8f --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CommitApplicationTemplateRequest.java @@ -0,0 +1,621 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Request message for CommitApplicationTemplate method.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.CommitApplicationTemplateRequest} + */ +@com.google.protobuf.Generated +public final class CommitApplicationTemplateRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.CommitApplicationTemplateRequest) + CommitApplicationTemplateRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "CommitApplicationTemplateRequest"); + } + + // Use CommitApplicationTemplateRequest.newBuilder() to construct. + private CommitApplicationTemplateRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CommitApplicationTemplateRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_CommitApplicationTemplateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_CommitApplicationTemplateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.CommitApplicationTemplateRequest.class, + com.google.cloud.designcenter.v1.CommitApplicationTemplateRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The name of the application template.
+   * 
+ * + * + * 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 application template.
+   * 
+ * + * + * 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.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.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.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.designcenter.v1.CommitApplicationTemplateRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.CommitApplicationTemplateRequest other = + (com.google.cloud.designcenter.v1.CommitApplicationTemplateRequest) 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.designcenter.v1.CommitApplicationTemplateRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.CommitApplicationTemplateRequest 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.designcenter.v1.CommitApplicationTemplateRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.CommitApplicationTemplateRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.CommitApplicationTemplateRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.CommitApplicationTemplateRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.CommitApplicationTemplateRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.CommitApplicationTemplateRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.CommitApplicationTemplateRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.CommitApplicationTemplateRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.CommitApplicationTemplateRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.CommitApplicationTemplateRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.CommitApplicationTemplateRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for CommitApplicationTemplate method.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.CommitApplicationTemplateRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.CommitApplicationTemplateRequest) + com.google.cloud.designcenter.v1.CommitApplicationTemplateRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_CommitApplicationTemplateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_CommitApplicationTemplateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.CommitApplicationTemplateRequest.class, + com.google.cloud.designcenter.v1.CommitApplicationTemplateRequest.Builder.class); + } + + // Construct using + // com.google.cloud.designcenter.v1.CommitApplicationTemplateRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.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.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_CommitApplicationTemplateRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.CommitApplicationTemplateRequest + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.CommitApplicationTemplateRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.CommitApplicationTemplateRequest build() { + com.google.cloud.designcenter.v1.CommitApplicationTemplateRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.CommitApplicationTemplateRequest buildPartial() { + com.google.cloud.designcenter.v1.CommitApplicationTemplateRequest result = + new com.google.cloud.designcenter.v1.CommitApplicationTemplateRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.CommitApplicationTemplateRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.CommitApplicationTemplateRequest) { + return mergeFrom((com.google.cloud.designcenter.v1.CommitApplicationTemplateRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.designcenter.v1.CommitApplicationTemplateRequest other) { + if (other + == com.google.cloud.designcenter.v1.CommitApplicationTemplateRequest.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 application template.
+     * 
+ * + * + * 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 application template.
+     * 
+ * + * + * 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 application template.
+     * 
+ * + * + * 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 application template.
+     * 
+ * + * + * 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 application template.
+     * 
+ * + * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.CommitApplicationTemplateRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.CommitApplicationTemplateRequest) + private static final com.google.cloud.designcenter.v1.CommitApplicationTemplateRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.CommitApplicationTemplateRequest(); + } + + public static com.google.cloud.designcenter.v1.CommitApplicationTemplateRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CommitApplicationTemplateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.CommitApplicationTemplateRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CommitApplicationTemplateRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CommitApplicationTemplateRequestOrBuilder.java new file mode 100644 index 000000000000..fd8663950c4e --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CommitApplicationTemplateRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface CommitApplicationTemplateRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.CommitApplicationTemplateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the application template.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The name of the application template.
+   * 
+ * + * + * 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-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/Component.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/Component.java new file mode 100644 index 000000000000..a2e7ae6e0a05 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/Component.java @@ -0,0 +1,5158 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Component resource.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.Component} + */ +@com.google.protobuf.Generated +public final class Component extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.Component) + ComponentOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "Component"); + } + + // Use Component.newBuilder() to construct. + private Component(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Component() { + name_ = ""; + sharedTemplateRevisionUri_ = ""; + parameters_ = java.util.Collections.emptyList(); + roles_ = com.google.protobuf.LazyStringArrayList.emptyList(); + apis_ = com.google.protobuf.LazyStringArrayList.emptyList(); + displayName_ = ""; + connectionsParameters_ = java.util.Collections.emptyList(); + componentParameterSchema_ = java.util.Collections.emptyList(); + inputVariableAliases_ = java.util.Collections.emptyList(); + applicationTemplateRevisionUri_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringResourcesProto + .internal_static_google_cloud_designcenter_v1_Component_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringResourcesProto + .internal_static_google_cloud_designcenter_v1_Component_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.Component.class, + com.google.cloud.designcenter.v1.Component.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Identifier. The component name.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + + /** + * + * + *
+   * Identifier. The component name.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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 SHARED_TEMPLATE_REVISION_URI_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object sharedTemplateRevisionUri_ = ""; + + /** + * + * + *
+   * Required. Immutable. The shared template used to generate the component.
+   * 
+ * + * + * string shared_template_revision_uri = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The sharedTemplateRevisionUri. + */ + @java.lang.Override + public java.lang.String getSharedTemplateRevisionUri() { + java.lang.Object ref = sharedTemplateRevisionUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sharedTemplateRevisionUri_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Immutable. The shared template used to generate the component.
+   * 
+ * + * + * string shared_template_revision_uri = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for sharedTemplateRevisionUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSharedTemplateRevisionUriBytes() { + java.lang.Object ref = sharedTemplateRevisionUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sharedTemplateRevisionUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARAMETERS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List parameters_; + + /** + * + * + *
+   * Optional. The component parameters.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getParametersList() { + return parameters_; + } + + /** + * + * + *
+   * Optional. The component parameters.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getParametersOrBuilderList() { + return parameters_; + } + + /** + * + * + *
+   * Optional. The component parameters.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getParametersCount() { + return parameters_.size(); + } + + /** + * + * + *
+   * Optional. The component parameters.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.Parameter getParameters(int index) { + return parameters_.get(index); + } + + /** + * + * + *
+   * Optional. The component parameters.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ParameterOrBuilder getParametersOrBuilder(int index) { + return parameters_.get(index); + } + + public static final int CREATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+   * Output only. The component creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. The component creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.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 component creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.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 = 5; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
+   * Output only. The component update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. The component update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.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 component update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.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 ROLES_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList roles_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Output only. IAM roles required by the service account to deploy the
+   * component.
+   * 
+ * + * repeated string roles = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the roles. + */ + public com.google.protobuf.ProtocolStringList getRolesList() { + return roles_; + } + + /** + * + * + *
+   * Output only. IAM roles required by the service account to deploy the
+   * component.
+   * 
+ * + * repeated string roles = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of roles. + */ + public int getRolesCount() { + return roles_.size(); + } + + /** + * + * + *
+   * Output only. IAM roles required by the service account to deploy the
+   * component.
+   * 
+ * + * repeated string roles = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The roles at the given index. + */ + public java.lang.String getRoles(int index) { + return roles_.get(index); + } + + /** + * + * + *
+   * Output only. IAM roles required by the service account to deploy the
+   * component.
+   * 
+ * + * repeated string roles = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the roles at the given index. + */ + public com.google.protobuf.ByteString getRolesBytes(int index) { + return roles_.getByteString(index); + } + + public static final int APIS_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList apis_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Output only. APIs required to be enabled to deploy the component, in the
+   * form of "*.googleapis.com".
+   * 
+ * + * repeated string apis = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the apis. + */ + public com.google.protobuf.ProtocolStringList getApisList() { + return apis_; + } + + /** + * + * + *
+   * Output only. APIs required to be enabled to deploy the component, in the
+   * form of "*.googleapis.com".
+   * 
+ * + * repeated string apis = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of apis. + */ + public int getApisCount() { + return apis_.size(); + } + + /** + * + * + *
+   * Output only. APIs required to be enabled to deploy the component, in the
+   * form of "*.googleapis.com".
+   * 
+ * + * repeated string apis = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The apis at the given index. + */ + public java.lang.String getApis(int index) { + return apis_.get(index); + } + + /** + * + * + *
+   * Output only. APIs required to be enabled to deploy the component, in the
+   * form of "*.googleapis.com".
+   * 
+ * + * repeated string apis = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the apis at the given index. + */ + public com.google.protobuf.ByteString getApisBytes(int index) { + return apis_.getByteString(index); + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
+   * Optional. The component display name.
+   * 
+ * + * string display_name = 8 [(.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. The component display name.
+   * 
+ * + * string display_name = 8 [(.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 CONNECTIONS_PARAMETERS_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private java.util.List + connectionsParameters_; + + /** + * + * + *
+   * Output only. The connection parameters of the component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getConnectionsParametersList() { + return connectionsParameters_; + } + + /** + * + * + *
+   * Output only. The connection parameters of the component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getConnectionsParametersOrBuilderList() { + return connectionsParameters_; + } + + /** + * + * + *
+   * Output only. The connection parameters of the component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getConnectionsParametersCount() { + return connectionsParameters_.size(); + } + + /** + * + * + *
+   * Output only. The connection parameters of the component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ConnectionParameters getConnectionsParameters(int index) { + return connectionsParameters_.get(index); + } + + /** + * + * + *
+   * Output only. The connection parameters of the component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ConnectionParametersOrBuilder + getConnectionsParametersOrBuilder(int index) { + return connectionsParameters_.get(index); + } + + public static final int COMPONENT_PARAMETER_SCHEMA_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private java.util.List + componentParameterSchema_; + + /** + * + * + *
+   * Output only. The component parameter schema, which includes possible
+   * parameter values. values.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getComponentParameterSchemaList() { + return componentParameterSchema_; + } + + /** + * + * + *
+   * Output only. The component parameter schema, which includes possible
+   * parameter values. values.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.designcenter.v1.ComponentParameterSchemaOrBuilder> + getComponentParameterSchemaOrBuilderList() { + return componentParameterSchema_; + } + + /** + * + * + *
+   * Output only. The component parameter schema, which includes possible
+   * parameter values. values.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getComponentParameterSchemaCount() { + return componentParameterSchema_.size(); + } + + /** + * + * + *
+   * Output only. The component parameter schema, which includes possible
+   * parameter values. values.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ComponentParameterSchema getComponentParameterSchema( + int index) { + return componentParameterSchema_.get(index); + } + + /** + * + * + *
+   * Output only. The component parameter schema, which includes possible
+   * parameter values. values.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ComponentParameterSchemaOrBuilder + getComponentParameterSchemaOrBuilder(int index) { + return componentParameterSchema_.get(index); + } + + public static final int APPLICATION_INFO_FIELD_NUMBER = 11; + private com.google.cloud.designcenter.v1.ComponentApplicationInfo applicationInfo_; + + /** + * + * + *
+   * Optional. The application associated with the component.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ComponentApplicationInfo application_info = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the applicationInfo field is set. + */ + @java.lang.Override + public boolean hasApplicationInfo() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Optional. The application associated with the component.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ComponentApplicationInfo application_info = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The applicationInfo. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ComponentApplicationInfo getApplicationInfo() { + return applicationInfo_ == null + ? com.google.cloud.designcenter.v1.ComponentApplicationInfo.getDefaultInstance() + : applicationInfo_; + } + + /** + * + * + *
+   * Optional. The application associated with the component.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ComponentApplicationInfo application_info = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ComponentApplicationInfoOrBuilder + getApplicationInfoOrBuilder() { + return applicationInfo_ == null + ? com.google.cloud.designcenter.v1.ComponentApplicationInfo.getDefaultInstance() + : applicationInfo_; + } + + public static final int USE_AS_ROOT_MODULE_FIELD_NUMBER = 12; + private boolean useAsRootModule_ = false; + + /** + * + * + *
+   * Optional. Whether the component is exported as a separate terraform root
+   * module in a composite application template. If this is false, then native
+   * components will be exported as a submodule of a separate terraform root
+   * module.
+   * 
+ * + * bool use_as_root_module = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The useAsRootModule. + */ + @java.lang.Override + public boolean getUseAsRootModule() { + return useAsRootModule_; + } + + public static final int INPUT_VARIABLE_ALIASES_FIELD_NUMBER = 13; + + @SuppressWarnings("serial") + private java.util.List inputVariableAliases_; + + /** + * + * + *
+   * Optional. Input variable aliases defined on this live component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.InputVariableAlias input_variable_aliases = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getInputVariableAliasesList() { + return inputVariableAliases_; + } + + /** + * + * + *
+   * Optional. Input variable aliases defined on this live component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.InputVariableAlias input_variable_aliases = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getInputVariableAliasesOrBuilderList() { + return inputVariableAliases_; + } + + /** + * + * + *
+   * Optional. Input variable aliases defined on this live component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.InputVariableAlias input_variable_aliases = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getInputVariableAliasesCount() { + return inputVariableAliases_.size(); + } + + /** + * + * + *
+   * Optional. Input variable aliases defined on this live component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.InputVariableAlias input_variable_aliases = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.InputVariableAlias getInputVariableAliases(int index) { + return inputVariableAliases_.get(index); + } + + /** + * + * + *
+   * Optional. Input variable aliases defined on this live component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.InputVariableAlias input_variable_aliases = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.InputVariableAliasOrBuilder + getInputVariableAliasesOrBuilder(int index) { + return inputVariableAliases_.get(index); + } + + public static final int APPLICATION_TEMPLATE_REVISION_URI_FIELD_NUMBER = 14; + + @SuppressWarnings("serial") + private volatile java.lang.Object applicationTemplateRevisionUri_ = ""; + + /** + * + * + *
+   * Optional. The application template revision used to generate the component.
+   * 
+ * + * string application_template_revision_uri = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The applicationTemplateRevisionUri. + */ + @java.lang.Override + public java.lang.String getApplicationTemplateRevisionUri() { + java.lang.Object ref = applicationTemplateRevisionUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + applicationTemplateRevisionUri_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The application template revision used to generate the component.
+   * 
+ * + * string application_template_revision_uri = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for applicationTemplateRevisionUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getApplicationTemplateRevisionUriBytes() { + java.lang.Object ref = applicationTemplateRevisionUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + applicationTemplateRevisionUri_ = 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(sharedTemplateRevisionUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, sharedTemplateRevisionUri_); + } + for (int i = 0; i < parameters_.size(); i++) { + output.writeMessage(3, parameters_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getUpdateTime()); + } + for (int i = 0; i < roles_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, roles_.getRaw(i)); + } + for (int i = 0; i < apis_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, apis_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 8, displayName_); + } + for (int i = 0; i < connectionsParameters_.size(); i++) { + output.writeMessage(9, connectionsParameters_.get(i)); + } + for (int i = 0; i < componentParameterSchema_.size(); i++) { + output.writeMessage(10, componentParameterSchema_.get(i)); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(11, getApplicationInfo()); + } + if (useAsRootModule_ != false) { + output.writeBool(12, useAsRootModule_); + } + for (int i = 0; i < inputVariableAliases_.size(); i++) { + output.writeMessage(13, inputVariableAliases_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(applicationTemplateRevisionUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 14, applicationTemplateRevisionUri_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(sharedTemplateRevisionUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, sharedTemplateRevisionUri_); + } + for (int i = 0; i < parameters_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, parameters_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateTime()); + } + { + int dataSize = 0; + for (int i = 0; i < roles_.size(); i++) { + dataSize += computeStringSizeNoTag(roles_.getRaw(i)); + } + size += dataSize; + size += 1 * getRolesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < apis_.size(); i++) { + dataSize += computeStringSizeNoTag(apis_.getRaw(i)); + } + size += dataSize; + size += 1 * getApisList().size(); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(8, displayName_); + } + for (int i = 0; i < connectionsParameters_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, connectionsParameters_.get(i)); + } + for (int i = 0; i < componentParameterSchema_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10, componentParameterSchema_.get(i)); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getApplicationInfo()); + } + if (useAsRootModule_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(12, useAsRootModule_); + } + for (int i = 0; i < inputVariableAliases_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 13, inputVariableAliases_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(applicationTemplateRevisionUri_)) { + size += + com.google.protobuf.GeneratedMessage.computeStringSize( + 14, applicationTemplateRevisionUri_); + } + 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.designcenter.v1.Component)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.Component other = + (com.google.cloud.designcenter.v1.Component) obj; + + if (!getName().equals(other.getName())) return false; + if (!getSharedTemplateRevisionUri().equals(other.getSharedTemplateRevisionUri())) return false; + if (!getParametersList().equals(other.getParametersList())) 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 (!getRolesList().equals(other.getRolesList())) return false; + if (!getApisList().equals(other.getApisList())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getConnectionsParametersList().equals(other.getConnectionsParametersList())) return false; + if (!getComponentParameterSchemaList().equals(other.getComponentParameterSchemaList())) + return false; + if (hasApplicationInfo() != other.hasApplicationInfo()) return false; + if (hasApplicationInfo()) { + if (!getApplicationInfo().equals(other.getApplicationInfo())) return false; + } + if (getUseAsRootModule() != other.getUseAsRootModule()) return false; + if (!getInputVariableAliasesList().equals(other.getInputVariableAliasesList())) return false; + if (!getApplicationTemplateRevisionUri().equals(other.getApplicationTemplateRevisionUri())) + 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) + SHARED_TEMPLATE_REVISION_URI_FIELD_NUMBER; + hash = (53 * hash) + getSharedTemplateRevisionUri().hashCode(); + if (getParametersCount() > 0) { + hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getParametersList().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 (getRolesCount() > 0) { + hash = (37 * hash) + ROLES_FIELD_NUMBER; + hash = (53 * hash) + getRolesList().hashCode(); + } + if (getApisCount() > 0) { + hash = (37 * hash) + APIS_FIELD_NUMBER; + hash = (53 * hash) + getApisList().hashCode(); + } + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + if (getConnectionsParametersCount() > 0) { + hash = (37 * hash) + CONNECTIONS_PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getConnectionsParametersList().hashCode(); + } + if (getComponentParameterSchemaCount() > 0) { + hash = (37 * hash) + COMPONENT_PARAMETER_SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getComponentParameterSchemaList().hashCode(); + } + if (hasApplicationInfo()) { + hash = (37 * hash) + APPLICATION_INFO_FIELD_NUMBER; + hash = (53 * hash) + getApplicationInfo().hashCode(); + } + hash = (37 * hash) + USE_AS_ROOT_MODULE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUseAsRootModule()); + if (getInputVariableAliasesCount() > 0) { + hash = (37 * hash) + INPUT_VARIABLE_ALIASES_FIELD_NUMBER; + hash = (53 * hash) + getInputVariableAliasesList().hashCode(); + } + hash = (37 * hash) + APPLICATION_TEMPLATE_REVISION_URI_FIELD_NUMBER; + hash = (53 * hash) + getApplicationTemplateRevisionUri().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.Component parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.Component 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.designcenter.v1.Component parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.Component parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.Component parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.Component parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.Component parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.Component parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.Component parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.Component parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.Component parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.Component parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.Component 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Component resource.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.Component} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.Component) + com.google.cloud.designcenter.v1.ComponentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringResourcesProto + .internal_static_google_cloud_designcenter_v1_Component_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringResourcesProto + .internal_static_google_cloud_designcenter_v1_Component_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.Component.class, + com.google.cloud.designcenter.v1.Component.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.Component.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetParametersFieldBuilder(); + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + internalGetConnectionsParametersFieldBuilder(); + internalGetComponentParameterSchemaFieldBuilder(); + internalGetApplicationInfoFieldBuilder(); + internalGetInputVariableAliasesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + sharedTemplateRevisionUri_ = ""; + if (parametersBuilder_ == null) { + parameters_ = java.util.Collections.emptyList(); + } else { + parameters_ = null; + parametersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + roles_ = com.google.protobuf.LazyStringArrayList.emptyList(); + apis_ = com.google.protobuf.LazyStringArrayList.emptyList(); + displayName_ = ""; + if (connectionsParametersBuilder_ == null) { + connectionsParameters_ = java.util.Collections.emptyList(); + } else { + connectionsParameters_ = null; + connectionsParametersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000100); + if (componentParameterSchemaBuilder_ == null) { + componentParameterSchema_ = java.util.Collections.emptyList(); + } else { + componentParameterSchema_ = null; + componentParameterSchemaBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000200); + applicationInfo_ = null; + if (applicationInfoBuilder_ != null) { + applicationInfoBuilder_.dispose(); + applicationInfoBuilder_ = null; + } + useAsRootModule_ = false; + if (inputVariableAliasesBuilder_ == null) { + inputVariableAliases_ = java.util.Collections.emptyList(); + } else { + inputVariableAliases_ = null; + inputVariableAliasesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00001000); + applicationTemplateRevisionUri_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.AuthoringResourcesProto + .internal_static_google_cloud_designcenter_v1_Component_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.Component getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.Component.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.Component build() { + com.google.cloud.designcenter.v1.Component result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.Component buildPartial() { + com.google.cloud.designcenter.v1.Component result = + new com.google.cloud.designcenter.v1.Component(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.designcenter.v1.Component result) { + if (parametersBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + parameters_ = java.util.Collections.unmodifiableList(parameters_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.parameters_ = parameters_; + } else { + result.parameters_ = parametersBuilder_.build(); + } + if (connectionsParametersBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0)) { + connectionsParameters_ = java.util.Collections.unmodifiableList(connectionsParameters_); + bitField0_ = (bitField0_ & ~0x00000100); + } + result.connectionsParameters_ = connectionsParameters_; + } else { + result.connectionsParameters_ = connectionsParametersBuilder_.build(); + } + if (componentParameterSchemaBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0)) { + componentParameterSchema_ = + java.util.Collections.unmodifiableList(componentParameterSchema_); + bitField0_ = (bitField0_ & ~0x00000200); + } + result.componentParameterSchema_ = componentParameterSchema_; + } else { + result.componentParameterSchema_ = componentParameterSchemaBuilder_.build(); + } + if (inputVariableAliasesBuilder_ == null) { + if (((bitField0_ & 0x00001000) != 0)) { + inputVariableAliases_ = java.util.Collections.unmodifiableList(inputVariableAliases_); + bitField0_ = (bitField0_ & ~0x00001000); + } + result.inputVariableAliases_ = inputVariableAliases_; + } else { + result.inputVariableAliases_ = inputVariableAliasesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.designcenter.v1.Component result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.sharedTemplateRevisionUri_ = sharedTemplateRevisionUri_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + roles_.makeImmutable(); + result.roles_ = roles_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + apis_.makeImmutable(); + result.apis_ = apis_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.applicationInfo_ = + applicationInfoBuilder_ == null ? applicationInfo_ : applicationInfoBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.useAsRootModule_ = useAsRootModule_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.applicationTemplateRevisionUri_ = applicationTemplateRevisionUri_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.Component) { + return mergeFrom((com.google.cloud.designcenter.v1.Component) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.Component other) { + if (other == com.google.cloud.designcenter.v1.Component.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getSharedTemplateRevisionUri().isEmpty()) { + sharedTemplateRevisionUri_ = other.sharedTemplateRevisionUri_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (parametersBuilder_ == null) { + if (!other.parameters_.isEmpty()) { + if (parameters_.isEmpty()) { + parameters_ = other.parameters_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureParametersIsMutable(); + parameters_.addAll(other.parameters_); + } + onChanged(); + } + } else { + if (!other.parameters_.isEmpty()) { + if (parametersBuilder_.isEmpty()) { + parametersBuilder_.dispose(); + parametersBuilder_ = null; + parameters_ = other.parameters_; + bitField0_ = (bitField0_ & ~0x00000004); + parametersBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetParametersFieldBuilder() + : null; + } else { + parametersBuilder_.addAllMessages(other.parameters_); + } + } + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (!other.roles_.isEmpty()) { + if (roles_.isEmpty()) { + roles_ = other.roles_; + bitField0_ |= 0x00000020; + } else { + ensureRolesIsMutable(); + roles_.addAll(other.roles_); + } + onChanged(); + } + if (!other.apis_.isEmpty()) { + if (apis_.isEmpty()) { + apis_ = other.apis_; + bitField0_ |= 0x00000040; + } else { + ensureApisIsMutable(); + apis_.addAll(other.apis_); + } + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (connectionsParametersBuilder_ == null) { + if (!other.connectionsParameters_.isEmpty()) { + if (connectionsParameters_.isEmpty()) { + connectionsParameters_ = other.connectionsParameters_; + bitField0_ = (bitField0_ & ~0x00000100); + } else { + ensureConnectionsParametersIsMutable(); + connectionsParameters_.addAll(other.connectionsParameters_); + } + onChanged(); + } + } else { + if (!other.connectionsParameters_.isEmpty()) { + if (connectionsParametersBuilder_.isEmpty()) { + connectionsParametersBuilder_.dispose(); + connectionsParametersBuilder_ = null; + connectionsParameters_ = other.connectionsParameters_; + bitField0_ = (bitField0_ & ~0x00000100); + connectionsParametersBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetConnectionsParametersFieldBuilder() + : null; + } else { + connectionsParametersBuilder_.addAllMessages(other.connectionsParameters_); + } + } + } + if (componentParameterSchemaBuilder_ == null) { + if (!other.componentParameterSchema_.isEmpty()) { + if (componentParameterSchema_.isEmpty()) { + componentParameterSchema_ = other.componentParameterSchema_; + bitField0_ = (bitField0_ & ~0x00000200); + } else { + ensureComponentParameterSchemaIsMutable(); + componentParameterSchema_.addAll(other.componentParameterSchema_); + } + onChanged(); + } + } else { + if (!other.componentParameterSchema_.isEmpty()) { + if (componentParameterSchemaBuilder_.isEmpty()) { + componentParameterSchemaBuilder_.dispose(); + componentParameterSchemaBuilder_ = null; + componentParameterSchema_ = other.componentParameterSchema_; + bitField0_ = (bitField0_ & ~0x00000200); + componentParameterSchemaBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetComponentParameterSchemaFieldBuilder() + : null; + } else { + componentParameterSchemaBuilder_.addAllMessages(other.componentParameterSchema_); + } + } + } + if (other.hasApplicationInfo()) { + mergeApplicationInfo(other.getApplicationInfo()); + } + if (other.getUseAsRootModule() != false) { + setUseAsRootModule(other.getUseAsRootModule()); + } + if (inputVariableAliasesBuilder_ == null) { + if (!other.inputVariableAliases_.isEmpty()) { + if (inputVariableAliases_.isEmpty()) { + inputVariableAliases_ = other.inputVariableAliases_; + bitField0_ = (bitField0_ & ~0x00001000); + } else { + ensureInputVariableAliasesIsMutable(); + inputVariableAliases_.addAll(other.inputVariableAliases_); + } + onChanged(); + } + } else { + if (!other.inputVariableAliases_.isEmpty()) { + if (inputVariableAliasesBuilder_.isEmpty()) { + inputVariableAliasesBuilder_.dispose(); + inputVariableAliasesBuilder_ = null; + inputVariableAliases_ = other.inputVariableAliases_; + bitField0_ = (bitField0_ & ~0x00001000); + inputVariableAliasesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetInputVariableAliasesFieldBuilder() + : null; + } else { + inputVariableAliasesBuilder_.addAllMessages(other.inputVariableAliases_); + } + } + } + if (!other.getApplicationTemplateRevisionUri().isEmpty()) { + applicationTemplateRevisionUri_ = other.applicationTemplateRevisionUri_; + bitField0_ |= 0x00002000; + 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: + { + sharedTemplateRevisionUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + com.google.cloud.designcenter.v1.Parameter m = + input.readMessage( + com.google.cloud.designcenter.v1.Parameter.parser(), extensionRegistry); + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + parameters_.add(m); + } else { + parametersBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureRolesIsMutable(); + roles_.add(s); + break; + } // case 50 + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureApisIsMutable(); + apis_.add(s); + break; + } // case 58 + case 66: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: + { + com.google.cloud.designcenter.v1.ConnectionParameters m = + input.readMessage( + com.google.cloud.designcenter.v1.ConnectionParameters.parser(), + extensionRegistry); + if (connectionsParametersBuilder_ == null) { + ensureConnectionsParametersIsMutable(); + connectionsParameters_.add(m); + } else { + connectionsParametersBuilder_.addMessage(m); + } + break; + } // case 74 + case 82: + { + com.google.cloud.designcenter.v1.ComponentParameterSchema m = + input.readMessage( + com.google.cloud.designcenter.v1.ComponentParameterSchema.parser(), + extensionRegistry); + if (componentParameterSchemaBuilder_ == null) { + ensureComponentParameterSchemaIsMutable(); + componentParameterSchema_.add(m); + } else { + componentParameterSchemaBuilder_.addMessage(m); + } + break; + } // case 82 + case 90: + { + input.readMessage( + internalGetApplicationInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 90 + case 96: + { + useAsRootModule_ = input.readBool(); + bitField0_ |= 0x00000800; + break; + } // case 96 + case 106: + { + com.google.cloud.designcenter.v1.InputVariableAlias m = + input.readMessage( + com.google.cloud.designcenter.v1.InputVariableAlias.parser(), + extensionRegistry); + if (inputVariableAliasesBuilder_ == null) { + ensureInputVariableAliasesIsMutable(); + inputVariableAliases_.add(m); + } else { + inputVariableAliasesBuilder_.addMessage(m); + } + break; + } // case 106 + case 114: + { + applicationTemplateRevisionUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00002000; + break; + } // case 114 + default: + { + 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_ = ""; + + /** + * + * + *
+     * Identifier. The component name.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.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; + } + } + + /** + * + * + *
+     * Identifier. The component name.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + + /** + * + * + *
+     * Identifier. The component name.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + + /** + * + * + *
+     * Identifier. The component name.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier. The component name.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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 sharedTemplateRevisionUri_ = ""; + + /** + * + * + *
+     * Required. Immutable. The shared template used to generate the component.
+     * 
+ * + * + * string shared_template_revision_uri = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The sharedTemplateRevisionUri. + */ + public java.lang.String getSharedTemplateRevisionUri() { + java.lang.Object ref = sharedTemplateRevisionUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sharedTemplateRevisionUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Immutable. The shared template used to generate the component.
+     * 
+ * + * + * string shared_template_revision_uri = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for sharedTemplateRevisionUri. + */ + public com.google.protobuf.ByteString getSharedTemplateRevisionUriBytes() { + java.lang.Object ref = sharedTemplateRevisionUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sharedTemplateRevisionUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Immutable. The shared template used to generate the component.
+     * 
+ * + * + * string shared_template_revision_uri = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The sharedTemplateRevisionUri to set. + * @return This builder for chaining. + */ + public Builder setSharedTemplateRevisionUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sharedTemplateRevisionUri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Immutable. The shared template used to generate the component.
+     * 
+ * + * + * string shared_template_revision_uri = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearSharedTemplateRevisionUri() { + sharedTemplateRevisionUri_ = getDefaultInstance().getSharedTemplateRevisionUri(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Immutable. The shared template used to generate the component.
+     * 
+ * + * + * string shared_template_revision_uri = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The bytes for sharedTemplateRevisionUri to set. + * @return This builder for chaining. + */ + public Builder setSharedTemplateRevisionUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sharedTemplateRevisionUri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.util.List parameters_ = + java.util.Collections.emptyList(); + + private void ensureParametersIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + parameters_ = + new java.util.ArrayList(parameters_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Parameter, + com.google.cloud.designcenter.v1.Parameter.Builder, + com.google.cloud.designcenter.v1.ParameterOrBuilder> + parametersBuilder_; + + /** + * + * + *
+     * Optional. The component parameters.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getParametersList() { + if (parametersBuilder_ == null) { + return java.util.Collections.unmodifiableList(parameters_); + } else { + return parametersBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. The component parameters.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getParametersCount() { + if (parametersBuilder_ == null) { + return parameters_.size(); + } else { + return parametersBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. The component parameters.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter getParameters(int index) { + if (parametersBuilder_ == null) { + return parameters_.get(index); + } else { + return parametersBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. The component parameters.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setParameters(int index, com.google.cloud.designcenter.v1.Parameter value) { + if (parametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureParametersIsMutable(); + parameters_.set(index, value); + onChanged(); + } else { + parametersBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The component parameters.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setParameters( + int index, com.google.cloud.designcenter.v1.Parameter.Builder builderForValue) { + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + parameters_.set(index, builderForValue.build()); + onChanged(); + } else { + parametersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The component parameters.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addParameters(com.google.cloud.designcenter.v1.Parameter value) { + if (parametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureParametersIsMutable(); + parameters_.add(value); + onChanged(); + } else { + parametersBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. The component parameters.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addParameters(int index, com.google.cloud.designcenter.v1.Parameter value) { + if (parametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureParametersIsMutable(); + parameters_.add(index, value); + onChanged(); + } else { + parametersBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The component parameters.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addParameters( + com.google.cloud.designcenter.v1.Parameter.Builder builderForValue) { + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + parameters_.add(builderForValue.build()); + onChanged(); + } else { + parametersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The component parameters.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addParameters( + int index, com.google.cloud.designcenter.v1.Parameter.Builder builderForValue) { + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + parameters_.add(index, builderForValue.build()); + onChanged(); + } else { + parametersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The component parameters.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllParameters( + java.lang.Iterable values) { + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, parameters_); + onChanged(); + } else { + parametersBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. The component parameters.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearParameters() { + if (parametersBuilder_ == null) { + parameters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + parametersBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. The component parameters.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeParameters(int index) { + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + parameters_.remove(index); + onChanged(); + } else { + parametersBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. The component parameters.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter.Builder getParametersBuilder(int index) { + return internalGetParametersFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. The component parameters.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ParameterOrBuilder getParametersOrBuilder(int index) { + if (parametersBuilder_ == null) { + return parameters_.get(index); + } else { + return parametersBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. The component parameters.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getParametersOrBuilderList() { + if (parametersBuilder_ != null) { + return parametersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(parameters_); + } + } + + /** + * + * + *
+     * Optional. The component parameters.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter.Builder addParametersBuilder() { + return internalGetParametersFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.Parameter.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The component parameters.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter.Builder addParametersBuilder(int index) { + return internalGetParametersFieldBuilder() + .addBuilder(index, com.google.cloud.designcenter.v1.Parameter.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The component parameters.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getParametersBuilderList() { + return internalGetParametersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Parameter, + com.google.cloud.designcenter.v1.Parameter.Builder, + com.google.cloud.designcenter.v1.ParameterOrBuilder> + internalGetParametersFieldBuilder() { + if (parametersBuilder_ == null) { + parametersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Parameter, + com.google.cloud.designcenter.v1.Parameter.Builder, + com.google.cloud.designcenter.v1.ParameterOrBuilder>( + parameters_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + parameters_ = null; + } + return parametersBuilder_; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
+     * Output only. The component creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Output only. The component creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.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 component creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The component creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The component creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The component creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000008); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The component creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The component creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.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 component creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + 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.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
+     * Output only. The component update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Output only. The component update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.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 component update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.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_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The component update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.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_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The component update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The component update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000010); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The component update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The component update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.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 component update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.protobuf.LazyStringArrayList roles_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureRolesIsMutable() { + if (!roles_.isModifiable()) { + roles_ = new com.google.protobuf.LazyStringArrayList(roles_); + } + bitField0_ |= 0x00000020; + } + + /** + * + * + *
+     * Output only. IAM roles required by the service account to deploy the
+     * component.
+     * 
+ * + * repeated string roles = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the roles. + */ + public com.google.protobuf.ProtocolStringList getRolesList() { + roles_.makeImmutable(); + return roles_; + } + + /** + * + * + *
+     * Output only. IAM roles required by the service account to deploy the
+     * component.
+     * 
+ * + * repeated string roles = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of roles. + */ + public int getRolesCount() { + return roles_.size(); + } + + /** + * + * + *
+     * Output only. IAM roles required by the service account to deploy the
+     * component.
+     * 
+ * + * repeated string roles = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The roles at the given index. + */ + public java.lang.String getRoles(int index) { + return roles_.get(index); + } + + /** + * + * + *
+     * Output only. IAM roles required by the service account to deploy the
+     * component.
+     * 
+ * + * repeated string roles = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the roles at the given index. + */ + public com.google.protobuf.ByteString getRolesBytes(int index) { + return roles_.getByteString(index); + } + + /** + * + * + *
+     * Output only. IAM roles required by the service account to deploy the
+     * component.
+     * 
+ * + * repeated string roles = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index to set the value at. + * @param value The roles to set. + * @return This builder for chaining. + */ + public Builder setRoles(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRolesIsMutable(); + roles_.set(index, value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. IAM roles required by the service account to deploy the
+     * component.
+     * 
+ * + * repeated string roles = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The roles to add. + * @return This builder for chaining. + */ + public Builder addRoles(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRolesIsMutable(); + roles_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. IAM roles required by the service account to deploy the
+     * component.
+     * 
+ * + * repeated string roles = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param values The roles to add. + * @return This builder for chaining. + */ + public Builder addAllRoles(java.lang.Iterable values) { + ensureRolesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, roles_); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. IAM roles required by the service account to deploy the
+     * component.
+     * 
+ * + * repeated string roles = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearRoles() { + roles_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. IAM roles required by the service account to deploy the
+     * component.
+     * 
+ * + * repeated string roles = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes of the roles to add. + * @return This builder for chaining. + */ + public Builder addRolesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureRolesIsMutable(); + roles_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList apis_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureApisIsMutable() { + if (!apis_.isModifiable()) { + apis_ = new com.google.protobuf.LazyStringArrayList(apis_); + } + bitField0_ |= 0x00000040; + } + + /** + * + * + *
+     * Output only. APIs required to be enabled to deploy the component, in the
+     * form of "*.googleapis.com".
+     * 
+ * + * repeated string apis = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the apis. + */ + public com.google.protobuf.ProtocolStringList getApisList() { + apis_.makeImmutable(); + return apis_; + } + + /** + * + * + *
+     * Output only. APIs required to be enabled to deploy the component, in the
+     * form of "*.googleapis.com".
+     * 
+ * + * repeated string apis = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of apis. + */ + public int getApisCount() { + return apis_.size(); + } + + /** + * + * + *
+     * Output only. APIs required to be enabled to deploy the component, in the
+     * form of "*.googleapis.com".
+     * 
+ * + * repeated string apis = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The apis at the given index. + */ + public java.lang.String getApis(int index) { + return apis_.get(index); + } + + /** + * + * + *
+     * Output only. APIs required to be enabled to deploy the component, in the
+     * form of "*.googleapis.com".
+     * 
+ * + * repeated string apis = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the apis at the given index. + */ + public com.google.protobuf.ByteString getApisBytes(int index) { + return apis_.getByteString(index); + } + + /** + * + * + *
+     * Output only. APIs required to be enabled to deploy the component, in the
+     * form of "*.googleapis.com".
+     * 
+ * + * repeated string apis = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index to set the value at. + * @param value The apis to set. + * @return This builder for chaining. + */ + public Builder setApis(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureApisIsMutable(); + apis_.set(index, value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. APIs required to be enabled to deploy the component, in the
+     * form of "*.googleapis.com".
+     * 
+ * + * repeated string apis = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The apis to add. + * @return This builder for chaining. + */ + public Builder addApis(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureApisIsMutable(); + apis_.add(value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. APIs required to be enabled to deploy the component, in the
+     * form of "*.googleapis.com".
+     * 
+ * + * repeated string apis = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param values The apis to add. + * @return This builder for chaining. + */ + public Builder addAllApis(java.lang.Iterable values) { + ensureApisIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, apis_); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. APIs required to be enabled to deploy the component, in the
+     * form of "*.googleapis.com".
+     * 
+ * + * repeated string apis = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearApis() { + apis_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. APIs required to be enabled to deploy the component, in the
+     * form of "*.googleapis.com".
+     * 
+ * + * repeated string apis = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes of the apis to add. + * @return This builder for chaining. + */ + public Builder addApisBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureApisIsMutable(); + apis_.add(value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
+     * Optional. The component display name.
+     * 
+ * + * string display_name = 8 [(.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. The component display name.
+     * 
+ * + * string display_name = 8 [(.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. The component display name.
+     * 
+ * + * string display_name = 8 [(.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_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The component display name.
+     * 
+ * + * string display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The component display name.
+     * 
+ * + * string display_name = 8 [(.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_ |= 0x00000080; + onChanged(); + return this; + } + + private java.util.List + connectionsParameters_ = java.util.Collections.emptyList(); + + private void ensureConnectionsParametersIsMutable() { + if (!((bitField0_ & 0x00000100) != 0)) { + connectionsParameters_ = + new java.util.ArrayList( + connectionsParameters_); + bitField0_ |= 0x00000100; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ConnectionParameters, + com.google.cloud.designcenter.v1.ConnectionParameters.Builder, + com.google.cloud.designcenter.v1.ConnectionParametersOrBuilder> + connectionsParametersBuilder_; + + /** + * + * + *
+     * Output only. The connection parameters of the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getConnectionsParametersList() { + if (connectionsParametersBuilder_ == null) { + return java.util.Collections.unmodifiableList(connectionsParameters_); + } else { + return connectionsParametersBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Output only. The connection parameters of the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getConnectionsParametersCount() { + if (connectionsParametersBuilder_ == null) { + return connectionsParameters_.size(); + } else { + return connectionsParametersBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Output only. The connection parameters of the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ConnectionParameters getConnectionsParameters( + int index) { + if (connectionsParametersBuilder_ == null) { + return connectionsParameters_.get(index); + } else { + return connectionsParametersBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Output only. The connection parameters of the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setConnectionsParameters( + int index, com.google.cloud.designcenter.v1.ConnectionParameters value) { + if (connectionsParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConnectionsParametersIsMutable(); + connectionsParameters_.set(index, value); + onChanged(); + } else { + connectionsParametersBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. The connection parameters of the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setConnectionsParameters( + int index, com.google.cloud.designcenter.v1.ConnectionParameters.Builder builderForValue) { + if (connectionsParametersBuilder_ == null) { + ensureConnectionsParametersIsMutable(); + connectionsParameters_.set(index, builderForValue.build()); + onChanged(); + } else { + connectionsParametersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The connection parameters of the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addConnectionsParameters( + com.google.cloud.designcenter.v1.ConnectionParameters value) { + if (connectionsParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConnectionsParametersIsMutable(); + connectionsParameters_.add(value); + onChanged(); + } else { + connectionsParametersBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Output only. The connection parameters of the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addConnectionsParameters( + int index, com.google.cloud.designcenter.v1.ConnectionParameters value) { + if (connectionsParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConnectionsParametersIsMutable(); + connectionsParameters_.add(index, value); + onChanged(); + } else { + connectionsParametersBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. The connection parameters of the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addConnectionsParameters( + com.google.cloud.designcenter.v1.ConnectionParameters.Builder builderForValue) { + if (connectionsParametersBuilder_ == null) { + ensureConnectionsParametersIsMutable(); + connectionsParameters_.add(builderForValue.build()); + onChanged(); + } else { + connectionsParametersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The connection parameters of the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addConnectionsParameters( + int index, com.google.cloud.designcenter.v1.ConnectionParameters.Builder builderForValue) { + if (connectionsParametersBuilder_ == null) { + ensureConnectionsParametersIsMutable(); + connectionsParameters_.add(index, builderForValue.build()); + onChanged(); + } else { + connectionsParametersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The connection parameters of the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllConnectionsParameters( + java.lang.Iterable + values) { + if (connectionsParametersBuilder_ == null) { + ensureConnectionsParametersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, connectionsParameters_); + onChanged(); + } else { + connectionsParametersBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Output only. The connection parameters of the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearConnectionsParameters() { + if (connectionsParametersBuilder_ == null) { + connectionsParameters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + } else { + connectionsParametersBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Output only. The connection parameters of the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeConnectionsParameters(int index) { + if (connectionsParametersBuilder_ == null) { + ensureConnectionsParametersIsMutable(); + connectionsParameters_.remove(index); + onChanged(); + } else { + connectionsParametersBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Output only. The connection parameters of the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ConnectionParameters.Builder + getConnectionsParametersBuilder(int index) { + return internalGetConnectionsParametersFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Output only. The connection parameters of the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ConnectionParametersOrBuilder + getConnectionsParametersOrBuilder(int index) { + if (connectionsParametersBuilder_ == null) { + return connectionsParameters_.get(index); + } else { + return connectionsParametersBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Output only. The connection parameters of the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getConnectionsParametersOrBuilderList() { + if (connectionsParametersBuilder_ != null) { + return connectionsParametersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(connectionsParameters_); + } + } + + /** + * + * + *
+     * Output only. The connection parameters of the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ConnectionParameters.Builder + addConnectionsParametersBuilder() { + return internalGetConnectionsParametersFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.ConnectionParameters.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. The connection parameters of the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ConnectionParameters.Builder + addConnectionsParametersBuilder(int index) { + return internalGetConnectionsParametersFieldBuilder() + .addBuilder( + index, com.google.cloud.designcenter.v1.ConnectionParameters.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. The connection parameters of the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getConnectionsParametersBuilderList() { + return internalGetConnectionsParametersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ConnectionParameters, + com.google.cloud.designcenter.v1.ConnectionParameters.Builder, + com.google.cloud.designcenter.v1.ConnectionParametersOrBuilder> + internalGetConnectionsParametersFieldBuilder() { + if (connectionsParametersBuilder_ == null) { + connectionsParametersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ConnectionParameters, + com.google.cloud.designcenter.v1.ConnectionParameters.Builder, + com.google.cloud.designcenter.v1.ConnectionParametersOrBuilder>( + connectionsParameters_, + ((bitField0_ & 0x00000100) != 0), + getParentForChildren(), + isClean()); + connectionsParameters_ = null; + } + return connectionsParametersBuilder_; + } + + private java.util.List + componentParameterSchema_ = java.util.Collections.emptyList(); + + private void ensureComponentParameterSchemaIsMutable() { + if (!((bitField0_ & 0x00000200) != 0)) { + componentParameterSchema_ = + new java.util.ArrayList( + componentParameterSchema_); + bitField0_ |= 0x00000200; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ComponentParameterSchema, + com.google.cloud.designcenter.v1.ComponentParameterSchema.Builder, + com.google.cloud.designcenter.v1.ComponentParameterSchemaOrBuilder> + componentParameterSchemaBuilder_; + + /** + * + * + *
+     * Output only. The component parameter schema, which includes possible
+     * parameter values. values.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getComponentParameterSchemaList() { + if (componentParameterSchemaBuilder_ == null) { + return java.util.Collections.unmodifiableList(componentParameterSchema_); + } else { + return componentParameterSchemaBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Output only. The component parameter schema, which includes possible
+     * parameter values. values.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getComponentParameterSchemaCount() { + if (componentParameterSchemaBuilder_ == null) { + return componentParameterSchema_.size(); + } else { + return componentParameterSchemaBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Output only. The component parameter schema, which includes possible
+     * parameter values. values.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ComponentParameterSchema getComponentParameterSchema( + int index) { + if (componentParameterSchemaBuilder_ == null) { + return componentParameterSchema_.get(index); + } else { + return componentParameterSchemaBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Output only. The component parameter schema, which includes possible
+     * parameter values. values.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setComponentParameterSchema( + int index, com.google.cloud.designcenter.v1.ComponentParameterSchema value) { + if (componentParameterSchemaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureComponentParameterSchemaIsMutable(); + componentParameterSchema_.set(index, value); + onChanged(); + } else { + componentParameterSchemaBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. The component parameter schema, which includes possible
+     * parameter values. values.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setComponentParameterSchema( + int index, + com.google.cloud.designcenter.v1.ComponentParameterSchema.Builder builderForValue) { + if (componentParameterSchemaBuilder_ == null) { + ensureComponentParameterSchemaIsMutable(); + componentParameterSchema_.set(index, builderForValue.build()); + onChanged(); + } else { + componentParameterSchemaBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The component parameter schema, which includes possible
+     * parameter values. values.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addComponentParameterSchema( + com.google.cloud.designcenter.v1.ComponentParameterSchema value) { + if (componentParameterSchemaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureComponentParameterSchemaIsMutable(); + componentParameterSchema_.add(value); + onChanged(); + } else { + componentParameterSchemaBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Output only. The component parameter schema, which includes possible
+     * parameter values. values.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addComponentParameterSchema( + int index, com.google.cloud.designcenter.v1.ComponentParameterSchema value) { + if (componentParameterSchemaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureComponentParameterSchemaIsMutable(); + componentParameterSchema_.add(index, value); + onChanged(); + } else { + componentParameterSchemaBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. The component parameter schema, which includes possible
+     * parameter values. values.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addComponentParameterSchema( + com.google.cloud.designcenter.v1.ComponentParameterSchema.Builder builderForValue) { + if (componentParameterSchemaBuilder_ == null) { + ensureComponentParameterSchemaIsMutable(); + componentParameterSchema_.add(builderForValue.build()); + onChanged(); + } else { + componentParameterSchemaBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The component parameter schema, which includes possible
+     * parameter values. values.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addComponentParameterSchema( + int index, + com.google.cloud.designcenter.v1.ComponentParameterSchema.Builder builderForValue) { + if (componentParameterSchemaBuilder_ == null) { + ensureComponentParameterSchemaIsMutable(); + componentParameterSchema_.add(index, builderForValue.build()); + onChanged(); + } else { + componentParameterSchemaBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The component parameter schema, which includes possible
+     * parameter values. values.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllComponentParameterSchema( + java.lang.Iterable + values) { + if (componentParameterSchemaBuilder_ == null) { + ensureComponentParameterSchemaIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, componentParameterSchema_); + onChanged(); + } else { + componentParameterSchemaBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Output only. The component parameter schema, which includes possible
+     * parameter values. values.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearComponentParameterSchema() { + if (componentParameterSchemaBuilder_ == null) { + componentParameterSchema_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + } else { + componentParameterSchemaBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Output only. The component parameter schema, which includes possible
+     * parameter values. values.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeComponentParameterSchema(int index) { + if (componentParameterSchemaBuilder_ == null) { + ensureComponentParameterSchemaIsMutable(); + componentParameterSchema_.remove(index); + onChanged(); + } else { + componentParameterSchemaBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Output only. The component parameter schema, which includes possible
+     * parameter values. values.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ComponentParameterSchema.Builder + getComponentParameterSchemaBuilder(int index) { + return internalGetComponentParameterSchemaFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Output only. The component parameter schema, which includes possible
+     * parameter values. values.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ComponentParameterSchemaOrBuilder + getComponentParameterSchemaOrBuilder(int index) { + if (componentParameterSchemaBuilder_ == null) { + return componentParameterSchema_.get(index); + } else { + return componentParameterSchemaBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Output only. The component parameter schema, which includes possible
+     * parameter values. values.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends com.google.cloud.designcenter.v1.ComponentParameterSchemaOrBuilder> + getComponentParameterSchemaOrBuilderList() { + if (componentParameterSchemaBuilder_ != null) { + return componentParameterSchemaBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(componentParameterSchema_); + } + } + + /** + * + * + *
+     * Output only. The component parameter schema, which includes possible
+     * parameter values. values.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ComponentParameterSchema.Builder + addComponentParameterSchemaBuilder() { + return internalGetComponentParameterSchemaFieldBuilder() + .addBuilder( + com.google.cloud.designcenter.v1.ComponentParameterSchema.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. The component parameter schema, which includes possible
+     * parameter values. values.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ComponentParameterSchema.Builder + addComponentParameterSchemaBuilder(int index) { + return internalGetComponentParameterSchemaFieldBuilder() + .addBuilder( + index, + com.google.cloud.designcenter.v1.ComponentParameterSchema.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. The component parameter schema, which includes possible
+     * parameter values. values.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getComponentParameterSchemaBuilderList() { + return internalGetComponentParameterSchemaFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ComponentParameterSchema, + com.google.cloud.designcenter.v1.ComponentParameterSchema.Builder, + com.google.cloud.designcenter.v1.ComponentParameterSchemaOrBuilder> + internalGetComponentParameterSchemaFieldBuilder() { + if (componentParameterSchemaBuilder_ == null) { + componentParameterSchemaBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ComponentParameterSchema, + com.google.cloud.designcenter.v1.ComponentParameterSchema.Builder, + com.google.cloud.designcenter.v1.ComponentParameterSchemaOrBuilder>( + componentParameterSchema_, + ((bitField0_ & 0x00000200) != 0), + getParentForChildren(), + isClean()); + componentParameterSchema_ = null; + } + return componentParameterSchemaBuilder_; + } + + private com.google.cloud.designcenter.v1.ComponentApplicationInfo applicationInfo_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ComponentApplicationInfo, + com.google.cloud.designcenter.v1.ComponentApplicationInfo.Builder, + com.google.cloud.designcenter.v1.ComponentApplicationInfoOrBuilder> + applicationInfoBuilder_; + + /** + * + * + *
+     * Optional. The application associated with the component.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ComponentApplicationInfo application_info = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the applicationInfo field is set. + */ + public boolean hasApplicationInfo() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
+     * Optional. The application associated with the component.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ComponentApplicationInfo application_info = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The applicationInfo. + */ + public com.google.cloud.designcenter.v1.ComponentApplicationInfo getApplicationInfo() { + if (applicationInfoBuilder_ == null) { + return applicationInfo_ == null + ? com.google.cloud.designcenter.v1.ComponentApplicationInfo.getDefaultInstance() + : applicationInfo_; + } else { + return applicationInfoBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The application associated with the component.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ComponentApplicationInfo application_info = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setApplicationInfo( + com.google.cloud.designcenter.v1.ComponentApplicationInfo value) { + if (applicationInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + applicationInfo_ = value; + } else { + applicationInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The application associated with the component.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ComponentApplicationInfo application_info = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setApplicationInfo( + com.google.cloud.designcenter.v1.ComponentApplicationInfo.Builder builderForValue) { + if (applicationInfoBuilder_ == null) { + applicationInfo_ = builderForValue.build(); + } else { + applicationInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The application associated with the component.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ComponentApplicationInfo application_info = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeApplicationInfo( + com.google.cloud.designcenter.v1.ComponentApplicationInfo value) { + if (applicationInfoBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0) + && applicationInfo_ != null + && applicationInfo_ + != com.google.cloud.designcenter.v1.ComponentApplicationInfo.getDefaultInstance()) { + getApplicationInfoBuilder().mergeFrom(value); + } else { + applicationInfo_ = value; + } + } else { + applicationInfoBuilder_.mergeFrom(value); + } + if (applicationInfo_ != null) { + bitField0_ |= 0x00000400; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The application associated with the component.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ComponentApplicationInfo application_info = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearApplicationInfo() { + bitField0_ = (bitField0_ & ~0x00000400); + applicationInfo_ = null; + if (applicationInfoBuilder_ != null) { + applicationInfoBuilder_.dispose(); + applicationInfoBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The application associated with the component.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ComponentApplicationInfo application_info = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ComponentApplicationInfo.Builder + getApplicationInfoBuilder() { + bitField0_ |= 0x00000400; + onChanged(); + return internalGetApplicationInfoFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The application associated with the component.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ComponentApplicationInfo application_info = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ComponentApplicationInfoOrBuilder + getApplicationInfoOrBuilder() { + if (applicationInfoBuilder_ != null) { + return applicationInfoBuilder_.getMessageOrBuilder(); + } else { + return applicationInfo_ == null + ? com.google.cloud.designcenter.v1.ComponentApplicationInfo.getDefaultInstance() + : applicationInfo_; + } + } + + /** + * + * + *
+     * Optional. The application associated with the component.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ComponentApplicationInfo application_info = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ComponentApplicationInfo, + com.google.cloud.designcenter.v1.ComponentApplicationInfo.Builder, + com.google.cloud.designcenter.v1.ComponentApplicationInfoOrBuilder> + internalGetApplicationInfoFieldBuilder() { + if (applicationInfoBuilder_ == null) { + applicationInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ComponentApplicationInfo, + com.google.cloud.designcenter.v1.ComponentApplicationInfo.Builder, + com.google.cloud.designcenter.v1.ComponentApplicationInfoOrBuilder>( + getApplicationInfo(), getParentForChildren(), isClean()); + applicationInfo_ = null; + } + return applicationInfoBuilder_; + } + + private boolean useAsRootModule_; + + /** + * + * + *
+     * Optional. Whether the component is exported as a separate terraform root
+     * module in a composite application template. If this is false, then native
+     * components will be exported as a submodule of a separate terraform root
+     * module.
+     * 
+ * + * bool use_as_root_module = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The useAsRootModule. + */ + @java.lang.Override + public boolean getUseAsRootModule() { + return useAsRootModule_; + } + + /** + * + * + *
+     * Optional. Whether the component is exported as a separate terraform root
+     * module in a composite application template. If this is false, then native
+     * components will be exported as a submodule of a separate terraform root
+     * module.
+     * 
+ * + * bool use_as_root_module = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The useAsRootModule to set. + * @return This builder for chaining. + */ + public Builder setUseAsRootModule(boolean value) { + + useAsRootModule_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Whether the component is exported as a separate terraform root
+     * module in a composite application template. If this is false, then native
+     * components will be exported as a submodule of a separate terraform root
+     * module.
+     * 
+ * + * bool use_as_root_module = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearUseAsRootModule() { + bitField0_ = (bitField0_ & ~0x00000800); + useAsRootModule_ = false; + onChanged(); + return this; + } + + private java.util.List + inputVariableAliases_ = java.util.Collections.emptyList(); + + private void ensureInputVariableAliasesIsMutable() { + if (!((bitField0_ & 0x00001000) != 0)) { + inputVariableAliases_ = + new java.util.ArrayList( + inputVariableAliases_); + bitField0_ |= 0x00001000; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.InputVariableAlias, + com.google.cloud.designcenter.v1.InputVariableAlias.Builder, + com.google.cloud.designcenter.v1.InputVariableAliasOrBuilder> + inputVariableAliasesBuilder_; + + /** + * + * + *
+     * Optional. Input variable aliases defined on this live component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.InputVariableAlias input_variable_aliases = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getInputVariableAliasesList() { + if (inputVariableAliasesBuilder_ == null) { + return java.util.Collections.unmodifiableList(inputVariableAliases_); + } else { + return inputVariableAliasesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. Input variable aliases defined on this live component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.InputVariableAlias input_variable_aliases = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getInputVariableAliasesCount() { + if (inputVariableAliasesBuilder_ == null) { + return inputVariableAliases_.size(); + } else { + return inputVariableAliasesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. Input variable aliases defined on this live component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.InputVariableAlias input_variable_aliases = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.InputVariableAlias getInputVariableAliases(int index) { + if (inputVariableAliasesBuilder_ == null) { + return inputVariableAliases_.get(index); + } else { + return inputVariableAliasesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. Input variable aliases defined on this live component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.InputVariableAlias input_variable_aliases = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setInputVariableAliases( + int index, com.google.cloud.designcenter.v1.InputVariableAlias value) { + if (inputVariableAliasesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputVariableAliasesIsMutable(); + inputVariableAliases_.set(index, value); + onChanged(); + } else { + inputVariableAliasesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Input variable aliases defined on this live component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.InputVariableAlias input_variable_aliases = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setInputVariableAliases( + int index, com.google.cloud.designcenter.v1.InputVariableAlias.Builder builderForValue) { + if (inputVariableAliasesBuilder_ == null) { + ensureInputVariableAliasesIsMutable(); + inputVariableAliases_.set(index, builderForValue.build()); + onChanged(); + } else { + inputVariableAliasesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Input variable aliases defined on this live component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.InputVariableAlias input_variable_aliases = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addInputVariableAliases( + com.google.cloud.designcenter.v1.InputVariableAlias value) { + if (inputVariableAliasesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputVariableAliasesIsMutable(); + inputVariableAliases_.add(value); + onChanged(); + } else { + inputVariableAliasesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. Input variable aliases defined on this live component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.InputVariableAlias input_variable_aliases = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addInputVariableAliases( + int index, com.google.cloud.designcenter.v1.InputVariableAlias value) { + if (inputVariableAliasesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputVariableAliasesIsMutable(); + inputVariableAliases_.add(index, value); + onChanged(); + } else { + inputVariableAliasesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Input variable aliases defined on this live component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.InputVariableAlias input_variable_aliases = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addInputVariableAliases( + com.google.cloud.designcenter.v1.InputVariableAlias.Builder builderForValue) { + if (inputVariableAliasesBuilder_ == null) { + ensureInputVariableAliasesIsMutable(); + inputVariableAliases_.add(builderForValue.build()); + onChanged(); + } else { + inputVariableAliasesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Input variable aliases defined on this live component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.InputVariableAlias input_variable_aliases = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addInputVariableAliases( + int index, com.google.cloud.designcenter.v1.InputVariableAlias.Builder builderForValue) { + if (inputVariableAliasesBuilder_ == null) { + ensureInputVariableAliasesIsMutable(); + inputVariableAliases_.add(index, builderForValue.build()); + onChanged(); + } else { + inputVariableAliasesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Input variable aliases defined on this live component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.InputVariableAlias input_variable_aliases = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllInputVariableAliases( + java.lang.Iterable values) { + if (inputVariableAliasesBuilder_ == null) { + ensureInputVariableAliasesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, inputVariableAliases_); + onChanged(); + } else { + inputVariableAliasesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. Input variable aliases defined on this live component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.InputVariableAlias input_variable_aliases = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearInputVariableAliases() { + if (inputVariableAliasesBuilder_ == null) { + inputVariableAliases_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + } else { + inputVariableAliasesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Input variable aliases defined on this live component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.InputVariableAlias input_variable_aliases = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeInputVariableAliases(int index) { + if (inputVariableAliasesBuilder_ == null) { + ensureInputVariableAliasesIsMutable(); + inputVariableAliases_.remove(index); + onChanged(); + } else { + inputVariableAliasesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. Input variable aliases defined on this live component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.InputVariableAlias input_variable_aliases = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.InputVariableAlias.Builder + getInputVariableAliasesBuilder(int index) { + return internalGetInputVariableAliasesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. Input variable aliases defined on this live component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.InputVariableAlias input_variable_aliases = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.InputVariableAliasOrBuilder + getInputVariableAliasesOrBuilder(int index) { + if (inputVariableAliasesBuilder_ == null) { + return inputVariableAliases_.get(index); + } else { + return inputVariableAliasesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. Input variable aliases defined on this live component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.InputVariableAlias input_variable_aliases = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getInputVariableAliasesOrBuilderList() { + if (inputVariableAliasesBuilder_ != null) { + return inputVariableAliasesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(inputVariableAliases_); + } + } + + /** + * + * + *
+     * Optional. Input variable aliases defined on this live component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.InputVariableAlias input_variable_aliases = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.InputVariableAlias.Builder + addInputVariableAliasesBuilder() { + return internalGetInputVariableAliasesFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.InputVariableAlias.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Input variable aliases defined on this live component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.InputVariableAlias input_variable_aliases = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.InputVariableAlias.Builder + addInputVariableAliasesBuilder(int index) { + return internalGetInputVariableAliasesFieldBuilder() + .addBuilder( + index, com.google.cloud.designcenter.v1.InputVariableAlias.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Input variable aliases defined on this live component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.InputVariableAlias input_variable_aliases = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getInputVariableAliasesBuilderList() { + return internalGetInputVariableAliasesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.InputVariableAlias, + com.google.cloud.designcenter.v1.InputVariableAlias.Builder, + com.google.cloud.designcenter.v1.InputVariableAliasOrBuilder> + internalGetInputVariableAliasesFieldBuilder() { + if (inputVariableAliasesBuilder_ == null) { + inputVariableAliasesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.InputVariableAlias, + com.google.cloud.designcenter.v1.InputVariableAlias.Builder, + com.google.cloud.designcenter.v1.InputVariableAliasOrBuilder>( + inputVariableAliases_, + ((bitField0_ & 0x00001000) != 0), + getParentForChildren(), + isClean()); + inputVariableAliases_ = null; + } + return inputVariableAliasesBuilder_; + } + + private java.lang.Object applicationTemplateRevisionUri_ = ""; + + /** + * + * + *
+     * Optional. The application template revision used to generate the component.
+     * 
+ * + * + * string application_template_revision_uri = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The applicationTemplateRevisionUri. + */ + public java.lang.String getApplicationTemplateRevisionUri() { + java.lang.Object ref = applicationTemplateRevisionUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + applicationTemplateRevisionUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The application template revision used to generate the component.
+     * 
+ * + * + * string application_template_revision_uri = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for applicationTemplateRevisionUri. + */ + public com.google.protobuf.ByteString getApplicationTemplateRevisionUriBytes() { + java.lang.Object ref = applicationTemplateRevisionUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + applicationTemplateRevisionUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The application template revision used to generate the component.
+     * 
+ * + * + * string application_template_revision_uri = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The applicationTemplateRevisionUri to set. + * @return This builder for chaining. + */ + public Builder setApplicationTemplateRevisionUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + applicationTemplateRevisionUri_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The application template revision used to generate the component.
+     * 
+ * + * + * string application_template_revision_uri = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearApplicationTemplateRevisionUri() { + applicationTemplateRevisionUri_ = getDefaultInstance().getApplicationTemplateRevisionUri(); + bitField0_ = (bitField0_ & ~0x00002000); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The application template revision used to generate the component.
+     * 
+ * + * + * string application_template_revision_uri = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes for applicationTemplateRevisionUri to set. + * @return This builder for chaining. + */ + public Builder setApplicationTemplateRevisionUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + applicationTemplateRevisionUri_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.Component) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.Component) + private static final com.google.cloud.designcenter.v1.Component DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.Component(); + } + + public static com.google.cloud.designcenter.v1.Component getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Component parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.Component getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ComponentApplicationInfo.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ComponentApplicationInfo.java new file mode 100644 index 000000000000..abe06d6d5926 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ComponentApplicationInfo.java @@ -0,0 +1,1607 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * This captures the apphub application details associated with the component.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ComponentApplicationInfo} + */ +@com.google.protobuf.Generated +public final class ComponentApplicationInfo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ComponentApplicationInfo) + ComponentApplicationInfoOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ComponentApplicationInfo"); + } + + // Use ComponentApplicationInfo.newBuilder() to construct. + private ComponentApplicationInfo(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ComponentApplicationInfo() { + apphubApplicationId_ = ""; + displayName_ = ""; + deploymentRegion_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_ComponentApplicationInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_ComponentApplicationInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ComponentApplicationInfo.class, + com.google.cloud.designcenter.v1.ComponentApplicationInfo.Builder.class); + } + + private int bitField0_; + public static final int APPHUB_APPLICATION_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object apphubApplicationId_ = ""; + + /** + * + * + *
+   * Required. The application ID of the apphub application. The ID must be 1-63
+   * characters long and should match the regular expression
+   * `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
+   * 
+ * + * string apphub_application_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The apphubApplicationId. + */ + @java.lang.Override + public java.lang.String getApphubApplicationId() { + java.lang.Object ref = apphubApplicationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + apphubApplicationId_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The application ID of the apphub application. The ID must be 1-63
+   * characters long and should match the regular expression
+   * `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
+   * 
+ * + * string apphub_application_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for apphubApplicationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getApphubApplicationIdBytes() { + java.lang.Object ref = apphubApplicationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + apphubApplicationId_ = 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_ = ""; + + /** + * + * + *
+   * Optional. Display name for the application. The number of characters should
+   * be less than 64 characters.
+   * 
+ * + * string display_name = 2 [(.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 for the application. The number of characters should
+   * be less than 64 characters.
+   * 
+ * + * string display_name = 2 [(.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 SCOPE_FIELD_NUMBER = 3; + private com.google.cloud.apphub.v1.Scope scope_; + + /** + * + * + *
+   * Optional. Scope of apphub application.
+   * 
+ * + * .google.cloud.apphub.v1.Scope scope = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the scope field is set. + */ + @java.lang.Override + public boolean hasScope() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. Scope of apphub application.
+   * 
+ * + * .google.cloud.apphub.v1.Scope scope = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The scope. + */ + @java.lang.Override + public com.google.cloud.apphub.v1.Scope getScope() { + return scope_ == null ? com.google.cloud.apphub.v1.Scope.getDefaultInstance() : scope_; + } + + /** + * + * + *
+   * Optional. Scope of apphub application.
+   * 
+ * + * .google.cloud.apphub.v1.Scope scope = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.cloud.apphub.v1.ScopeOrBuilder getScopeOrBuilder() { + return scope_ == null ? com.google.cloud.apphub.v1.Scope.getDefaultInstance() : scope_; + } + + public static final int ATTRIBUTES_FIELD_NUMBER = 4; + private com.google.cloud.apphub.v1.Attributes attributes_; + + /** + * + * + *
+   * Optional. Attributes of apphub application.
+   * 
+ * + * + * .google.cloud.apphub.v1.Attributes attributes = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the attributes field is set. + */ + @java.lang.Override + public boolean hasAttributes() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. Attributes of apphub application.
+   * 
+ * + * + * .google.cloud.apphub.v1.Attributes attributes = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The attributes. + */ + @java.lang.Override + public com.google.cloud.apphub.v1.Attributes getAttributes() { + return attributes_ == null + ? com.google.cloud.apphub.v1.Attributes.getDefaultInstance() + : attributes_; + } + + /** + * + * + *
+   * Optional. Attributes of apphub application.
+   * 
+ * + * + * .google.cloud.apphub.v1.Attributes attributes = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.apphub.v1.AttributesOrBuilder getAttributesOrBuilder() { + return attributes_ == null + ? com.google.cloud.apphub.v1.Attributes.getDefaultInstance() + : attributes_; + } + + public static final int DEPLOYMENT_REGION_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object deploymentRegion_ = ""; + + /** + * + * + *
+   * Optional. Deployment region for the component. If the scope is set to
+   * REGIONAL, then the apphub application is created in this region, e.g.
+   * `us-central1`.
+   * 
+ * + * string deployment_region = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The deploymentRegion. + */ + @java.lang.Override + public java.lang.String getDeploymentRegion() { + java.lang.Object ref = deploymentRegion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deploymentRegion_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Deployment region for the component. If the scope is set to
+   * REGIONAL, then the apphub application is created in this region, e.g.
+   * `us-central1`.
+   * 
+ * + * string deployment_region = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for deploymentRegion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDeploymentRegionBytes() { + java.lang.Object ref = deploymentRegion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deploymentRegion_ = 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.GeneratedMessage.isStringEmpty(apphubApplicationId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, apphubApplicationId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, displayName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getScope()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getAttributes()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(deploymentRegion_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, deploymentRegion_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(apphubApplicationId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, apphubApplicationId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, displayName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getScope()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getAttributes()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(deploymentRegion_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, deploymentRegion_); + } + 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.designcenter.v1.ComponentApplicationInfo)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ComponentApplicationInfo other = + (com.google.cloud.designcenter.v1.ComponentApplicationInfo) obj; + + if (!getApphubApplicationId().equals(other.getApphubApplicationId())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (hasScope() != other.hasScope()) return false; + if (hasScope()) { + if (!getScope().equals(other.getScope())) return false; + } + if (hasAttributes() != other.hasAttributes()) return false; + if (hasAttributes()) { + if (!getAttributes().equals(other.getAttributes())) return false; + } + if (!getDeploymentRegion().equals(other.getDeploymentRegion())) 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) + APPHUB_APPLICATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getApphubApplicationId().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + if (hasScope()) { + hash = (37 * hash) + SCOPE_FIELD_NUMBER; + hash = (53 * hash) + getScope().hashCode(); + } + if (hasAttributes()) { + hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + getAttributes().hashCode(); + } + hash = (37 * hash) + DEPLOYMENT_REGION_FIELD_NUMBER; + hash = (53 * hash) + getDeploymentRegion().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.ComponentApplicationInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ComponentApplicationInfo 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.designcenter.v1.ComponentApplicationInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ComponentApplicationInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ComponentApplicationInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ComponentApplicationInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ComponentApplicationInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ComponentApplicationInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ComponentApplicationInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ComponentApplicationInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ComponentApplicationInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ComponentApplicationInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ComponentApplicationInfo 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * This captures the apphub application details associated with the component.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ComponentApplicationInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ComponentApplicationInfo) + com.google.cloud.designcenter.v1.ComponentApplicationInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_ComponentApplicationInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_ComponentApplicationInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ComponentApplicationInfo.class, + com.google.cloud.designcenter.v1.ComponentApplicationInfo.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.ComponentApplicationInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetScopeFieldBuilder(); + internalGetAttributesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + apphubApplicationId_ = ""; + displayName_ = ""; + scope_ = null; + if (scopeBuilder_ != null) { + scopeBuilder_.dispose(); + scopeBuilder_ = null; + } + attributes_ = null; + if (attributesBuilder_ != null) { + attributesBuilder_.dispose(); + attributesBuilder_ = null; + } + deploymentRegion_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_ComponentApplicationInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ComponentApplicationInfo getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ComponentApplicationInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ComponentApplicationInfo build() { + com.google.cloud.designcenter.v1.ComponentApplicationInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ComponentApplicationInfo buildPartial() { + com.google.cloud.designcenter.v1.ComponentApplicationInfo result = + new com.google.cloud.designcenter.v1.ComponentApplicationInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.ComponentApplicationInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.apphubApplicationId_ = apphubApplicationId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.scope_ = scopeBuilder_ == null ? scope_ : scopeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.attributes_ = attributesBuilder_ == null ? attributes_ : attributesBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.deploymentRegion_ = deploymentRegion_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.ComponentApplicationInfo) { + return mergeFrom((com.google.cloud.designcenter.v1.ComponentApplicationInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.ComponentApplicationInfo other) { + if (other == com.google.cloud.designcenter.v1.ComponentApplicationInfo.getDefaultInstance()) + return this; + if (!other.getApphubApplicationId().isEmpty()) { + apphubApplicationId_ = other.apphubApplicationId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasScope()) { + mergeScope(other.getScope()); + } + if (other.hasAttributes()) { + mergeAttributes(other.getAttributes()); + } + if (!other.getDeploymentRegion().isEmpty()) { + deploymentRegion_ = other.deploymentRegion_; + 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: + { + apphubApplicationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(internalGetScopeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetAttributesFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + deploymentRegion_ = 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 apphubApplicationId_ = ""; + + /** + * + * + *
+     * Required. The application ID of the apphub application. The ID must be 1-63
+     * characters long and should match the regular expression
+     * `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
+     * 
+ * + * string apphub_application_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The apphubApplicationId. + */ + public java.lang.String getApphubApplicationId() { + java.lang.Object ref = apphubApplicationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + apphubApplicationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The application ID of the apphub application. The ID must be 1-63
+     * characters long and should match the regular expression
+     * `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
+     * 
+ * + * string apphub_application_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for apphubApplicationId. + */ + public com.google.protobuf.ByteString getApphubApplicationIdBytes() { + java.lang.Object ref = apphubApplicationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + apphubApplicationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The application ID of the apphub application. The ID must be 1-63
+     * characters long and should match the regular expression
+     * `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
+     * 
+ * + * string apphub_application_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The apphubApplicationId to set. + * @return This builder for chaining. + */ + public Builder setApphubApplicationId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + apphubApplicationId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The application ID of the apphub application. The ID must be 1-63
+     * characters long and should match the regular expression
+     * `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
+     * 
+ * + * string apphub_application_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearApphubApplicationId() { + apphubApplicationId_ = getDefaultInstance().getApphubApplicationId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The application ID of the apphub application. The ID must be 1-63
+     * characters long and should match the regular expression
+     * `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
+     * 
+ * + * string apphub_application_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for apphubApplicationId to set. + * @return This builder for chaining. + */ + public Builder setApphubApplicationIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apphubApplicationId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
+     * Optional. Display name for the application. The number of characters should
+     * be less than 64 characters.
+     * 
+ * + * string display_name = 2 [(.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 for the application. The number of characters should
+     * be less than 64 characters.
+     * 
+ * + * string display_name = 2 [(.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 for the application. The number of characters should
+     * be less than 64 characters.
+     * 
+ * + * string display_name = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Display name for the application. The number of characters should
+     * be less than 64 characters.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Display name for the application. The number of characters should
+     * be less than 64 characters.
+     * 
+ * + * string display_name = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.apphub.v1.Scope scope_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.apphub.v1.Scope, + com.google.cloud.apphub.v1.Scope.Builder, + com.google.cloud.apphub.v1.ScopeOrBuilder> + scopeBuilder_; + + /** + * + * + *
+     * Optional. Scope of apphub application.
+     * 
+ * + * .google.cloud.apphub.v1.Scope scope = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the scope field is set. + */ + public boolean hasScope() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Optional. Scope of apphub application.
+     * 
+ * + * .google.cloud.apphub.v1.Scope scope = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The scope. + */ + public com.google.cloud.apphub.v1.Scope getScope() { + if (scopeBuilder_ == null) { + return scope_ == null ? com.google.cloud.apphub.v1.Scope.getDefaultInstance() : scope_; + } else { + return scopeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Scope of apphub application.
+     * 
+ * + * .google.cloud.apphub.v1.Scope scope = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setScope(com.google.cloud.apphub.v1.Scope value) { + if (scopeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + scope_ = value; + } else { + scopeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Scope of apphub application.
+     * 
+ * + * .google.cloud.apphub.v1.Scope scope = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setScope(com.google.cloud.apphub.v1.Scope.Builder builderForValue) { + if (scopeBuilder_ == null) { + scope_ = builderForValue.build(); + } else { + scopeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Scope of apphub application.
+     * 
+ * + * .google.cloud.apphub.v1.Scope scope = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeScope(com.google.cloud.apphub.v1.Scope value) { + if (scopeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && scope_ != null + && scope_ != com.google.cloud.apphub.v1.Scope.getDefaultInstance()) { + getScopeBuilder().mergeFrom(value); + } else { + scope_ = value; + } + } else { + scopeBuilder_.mergeFrom(value); + } + if (scope_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Scope of apphub application.
+     * 
+ * + * .google.cloud.apphub.v1.Scope scope = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearScope() { + bitField0_ = (bitField0_ & ~0x00000004); + scope_ = null; + if (scopeBuilder_ != null) { + scopeBuilder_.dispose(); + scopeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Scope of apphub application.
+     * 
+ * + * .google.cloud.apphub.v1.Scope scope = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.apphub.v1.Scope.Builder getScopeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetScopeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Scope of apphub application.
+     * 
+ * + * .google.cloud.apphub.v1.Scope scope = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.apphub.v1.ScopeOrBuilder getScopeOrBuilder() { + if (scopeBuilder_ != null) { + return scopeBuilder_.getMessageOrBuilder(); + } else { + return scope_ == null ? com.google.cloud.apphub.v1.Scope.getDefaultInstance() : scope_; + } + } + + /** + * + * + *
+     * Optional. Scope of apphub application.
+     * 
+ * + * .google.cloud.apphub.v1.Scope scope = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.apphub.v1.Scope, + com.google.cloud.apphub.v1.Scope.Builder, + com.google.cloud.apphub.v1.ScopeOrBuilder> + internalGetScopeFieldBuilder() { + if (scopeBuilder_ == null) { + scopeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.apphub.v1.Scope, + com.google.cloud.apphub.v1.Scope.Builder, + com.google.cloud.apphub.v1.ScopeOrBuilder>( + getScope(), getParentForChildren(), isClean()); + scope_ = null; + } + return scopeBuilder_; + } + + private com.google.cloud.apphub.v1.Attributes attributes_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.apphub.v1.Attributes, + com.google.cloud.apphub.v1.Attributes.Builder, + com.google.cloud.apphub.v1.AttributesOrBuilder> + attributesBuilder_; + + /** + * + * + *
+     * Optional. Attributes of apphub application.
+     * 
+ * + * + * .google.cloud.apphub.v1.Attributes attributes = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the attributes field is set. + */ + public boolean hasAttributes() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Optional. Attributes of apphub application.
+     * 
+ * + * + * .google.cloud.apphub.v1.Attributes attributes = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The attributes. + */ + public com.google.cloud.apphub.v1.Attributes getAttributes() { + if (attributesBuilder_ == null) { + return attributes_ == null + ? com.google.cloud.apphub.v1.Attributes.getDefaultInstance() + : attributes_; + } else { + return attributesBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Attributes of apphub application.
+     * 
+ * + * + * .google.cloud.apphub.v1.Attributes attributes = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAttributes(com.google.cloud.apphub.v1.Attributes value) { + if (attributesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + attributes_ = value; + } else { + attributesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Attributes of apphub application.
+     * 
+ * + * + * .google.cloud.apphub.v1.Attributes attributes = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAttributes(com.google.cloud.apphub.v1.Attributes.Builder builderForValue) { + if (attributesBuilder_ == null) { + attributes_ = builderForValue.build(); + } else { + attributesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Attributes of apphub application.
+     * 
+ * + * + * .google.cloud.apphub.v1.Attributes attributes = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAttributes(com.google.cloud.apphub.v1.Attributes value) { + if (attributesBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && attributes_ != null + && attributes_ != com.google.cloud.apphub.v1.Attributes.getDefaultInstance()) { + getAttributesBuilder().mergeFrom(value); + } else { + attributes_ = value; + } + } else { + attributesBuilder_.mergeFrom(value); + } + if (attributes_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Attributes of apphub application.
+     * 
+ * + * + * .google.cloud.apphub.v1.Attributes attributes = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAttributes() { + bitField0_ = (bitField0_ & ~0x00000008); + attributes_ = null; + if (attributesBuilder_ != null) { + attributesBuilder_.dispose(); + attributesBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Attributes of apphub application.
+     * 
+ * + * + * .google.cloud.apphub.v1.Attributes attributes = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.apphub.v1.Attributes.Builder getAttributesBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetAttributesFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Attributes of apphub application.
+     * 
+ * + * + * .google.cloud.apphub.v1.Attributes attributes = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.apphub.v1.AttributesOrBuilder getAttributesOrBuilder() { + if (attributesBuilder_ != null) { + return attributesBuilder_.getMessageOrBuilder(); + } else { + return attributes_ == null + ? com.google.cloud.apphub.v1.Attributes.getDefaultInstance() + : attributes_; + } + } + + /** + * + * + *
+     * Optional. Attributes of apphub application.
+     * 
+ * + * + * .google.cloud.apphub.v1.Attributes attributes = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.apphub.v1.Attributes, + com.google.cloud.apphub.v1.Attributes.Builder, + com.google.cloud.apphub.v1.AttributesOrBuilder> + internalGetAttributesFieldBuilder() { + if (attributesBuilder_ == null) { + attributesBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.apphub.v1.Attributes, + com.google.cloud.apphub.v1.Attributes.Builder, + com.google.cloud.apphub.v1.AttributesOrBuilder>( + getAttributes(), getParentForChildren(), isClean()); + attributes_ = null; + } + return attributesBuilder_; + } + + private java.lang.Object deploymentRegion_ = ""; + + /** + * + * + *
+     * Optional. Deployment region for the component. If the scope is set to
+     * REGIONAL, then the apphub application is created in this region, e.g.
+     * `us-central1`.
+     * 
+ * + * string deployment_region = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The deploymentRegion. + */ + public java.lang.String getDeploymentRegion() { + java.lang.Object ref = deploymentRegion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deploymentRegion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Deployment region for the component. If the scope is set to
+     * REGIONAL, then the apphub application is created in this region, e.g.
+     * `us-central1`.
+     * 
+ * + * string deployment_region = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for deploymentRegion. + */ + public com.google.protobuf.ByteString getDeploymentRegionBytes() { + java.lang.Object ref = deploymentRegion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deploymentRegion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Deployment region for the component. If the scope is set to
+     * REGIONAL, then the apphub application is created in this region, e.g.
+     * `us-central1`.
+     * 
+ * + * string deployment_region = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The deploymentRegion to set. + * @return This builder for chaining. + */ + public Builder setDeploymentRegion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + deploymentRegion_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Deployment region for the component. If the scope is set to
+     * REGIONAL, then the apphub application is created in this region, e.g.
+     * `us-central1`.
+     * 
+ * + * string deployment_region = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDeploymentRegion() { + deploymentRegion_ = getDefaultInstance().getDeploymentRegion(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Deployment region for the component. If the scope is set to
+     * REGIONAL, then the apphub application is created in this region, e.g.
+     * `us-central1`.
+     * 
+ * + * string deployment_region = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for deploymentRegion to set. + * @return This builder for chaining. + */ + public Builder setDeploymentRegionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + deploymentRegion_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ComponentApplicationInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ComponentApplicationInfo) + private static final com.google.cloud.designcenter.v1.ComponentApplicationInfo DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.ComponentApplicationInfo(); + } + + public static com.google.cloud.designcenter.v1.ComponentApplicationInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ComponentApplicationInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ComponentApplicationInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ComponentApplicationInfoOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ComponentApplicationInfoOrBuilder.java new file mode 100644 index 000000000000..44d9c5259bef --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ComponentApplicationInfoOrBuilder.java @@ -0,0 +1,196 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ComponentApplicationInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ComponentApplicationInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The application ID of the apphub application. The ID must be 1-63
+   * characters long and should match the regular expression
+   * `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
+   * 
+ * + * string apphub_application_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The apphubApplicationId. + */ + java.lang.String getApphubApplicationId(); + + /** + * + * + *
+   * Required. The application ID of the apphub application. The ID must be 1-63
+   * characters long and should match the regular expression
+   * `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
+   * 
+ * + * string apphub_application_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for apphubApplicationId. + */ + com.google.protobuf.ByteString getApphubApplicationIdBytes(); + + /** + * + * + *
+   * Optional. Display name for the application. The number of characters should
+   * be less than 64 characters.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
+   * Optional. Display name for the application. The number of characters should
+   * be less than 64 characters.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Optional. Scope of apphub application.
+   * 
+ * + * .google.cloud.apphub.v1.Scope scope = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the scope field is set. + */ + boolean hasScope(); + + /** + * + * + *
+   * Optional. Scope of apphub application.
+   * 
+ * + * .google.cloud.apphub.v1.Scope scope = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The scope. + */ + com.google.cloud.apphub.v1.Scope getScope(); + + /** + * + * + *
+   * Optional. Scope of apphub application.
+   * 
+ * + * .google.cloud.apphub.v1.Scope scope = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.cloud.apphub.v1.ScopeOrBuilder getScopeOrBuilder(); + + /** + * + * + *
+   * Optional. Attributes of apphub application.
+   * 
+ * + * + * .google.cloud.apphub.v1.Attributes attributes = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the attributes field is set. + */ + boolean hasAttributes(); + + /** + * + * + *
+   * Optional. Attributes of apphub application.
+   * 
+ * + * + * .google.cloud.apphub.v1.Attributes attributes = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The attributes. + */ + com.google.cloud.apphub.v1.Attributes getAttributes(); + + /** + * + * + *
+   * Optional. Attributes of apphub application.
+   * 
+ * + * + * .google.cloud.apphub.v1.Attributes attributes = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.apphub.v1.AttributesOrBuilder getAttributesOrBuilder(); + + /** + * + * + *
+   * Optional. Deployment region for the component. If the scope is set to
+   * REGIONAL, then the apphub application is created in this region, e.g.
+   * `us-central1`.
+   * 
+ * + * string deployment_region = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The deploymentRegion. + */ + java.lang.String getDeploymentRegion(); + + /** + * + * + *
+   * Optional. Deployment region for the component. If the scope is set to
+   * REGIONAL, then the apphub application is created in this region, e.g.
+   * `us-central1`.
+   * 
+ * + * string deployment_region = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for deploymentRegion. + */ + com.google.protobuf.ByteString getDeploymentRegionBytes(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ComponentName.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ComponentName.java new file mode 100644 index 000000000000..9bf4210ca973 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ComponentName.java @@ -0,0 +1,301 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.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; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked +@Generated("by gapic-generator-java") +public class ComponentName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_SPACE_APPLICATION_TEMPLATE_COMPONENT = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/components/{component}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String space; + private final String applicationTemplate; + private final String component; + + @Deprecated + protected ComponentName() { + project = null; + location = null; + space = null; + applicationTemplate = null; + component = null; + } + + private ComponentName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + space = Preconditions.checkNotNull(builder.getSpace()); + applicationTemplate = Preconditions.checkNotNull(builder.getApplicationTemplate()); + component = Preconditions.checkNotNull(builder.getComponent()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getSpace() { + return space; + } + + public String getApplicationTemplate() { + return applicationTemplate; + } + + public String getComponent() { + return component; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ComponentName of( + String project, String location, String space, String applicationTemplate, String component) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setSpace(space) + .setApplicationTemplate(applicationTemplate) + .setComponent(component) + .build(); + } + + public static String format( + String project, String location, String space, String applicationTemplate, String component) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setSpace(space) + .setApplicationTemplate(applicationTemplate) + .setComponent(component) + .build() + .toString(); + } + + public static @Nullable ComponentName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_SPACE_APPLICATION_TEMPLATE_COMPONENT.validatedMatch( + formattedString, "ComponentName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("space"), + matchMap.get("application_template"), + matchMap.get("component")); + } + + 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<@Nullable ComponentName> values) { + List list = new ArrayList<>(values.size()); + for (ComponentName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_SPACE_APPLICATION_TEMPLATE_COMPONENT.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 (space != null) { + fieldMapBuilder.put("space", space); + } + if (applicationTemplate != null) { + fieldMapBuilder.put("application_template", applicationTemplate); + } + if (component != null) { + fieldMapBuilder.put("component", component); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_SPACE_APPLICATION_TEMPLATE_COMPONENT.instantiate( + "project", + project, + "location", + location, + "space", + space, + "application_template", + applicationTemplate, + "component", + component); + } + + @Override + public boolean equals(@Nullable Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + ComponentName that = ((ComponentName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.space, that.space) + && Objects.equals(this.applicationTemplate, that.applicationTemplate) + && Objects.equals(this.component, that.component); + } + 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(space); + h *= 1000003; + h ^= Objects.hashCode(applicationTemplate); + h *= 1000003; + h ^= Objects.hashCode(component); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/components/{component}. + */ + public static class Builder { + private String project; + private String location; + private String space; + private String applicationTemplate; + private String component; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getSpace() { + return space; + } + + public String getApplicationTemplate() { + return applicationTemplate; + } + + public String getComponent() { + return component; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setSpace(String space) { + this.space = space; + return this; + } + + public Builder setApplicationTemplate(String applicationTemplate) { + this.applicationTemplate = applicationTemplate; + return this; + } + + public Builder setComponent(String component) { + this.component = component; + return this; + } + + private Builder(ComponentName componentName) { + this.project = componentName.project; + this.location = componentName.location; + this.space = componentName.space; + this.applicationTemplate = componentName.applicationTemplate; + this.component = componentName.component; + } + + public ComponentName build() { + return new ComponentName(this); + } + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ComponentOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ComponentOrBuilder.java new file mode 100644 index 000000000000..54180839cd49 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ComponentOrBuilder.java @@ -0,0 +1,667 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ComponentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.Component) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier. The component name.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Identifier. The component name.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. Immutable. The shared template used to generate the component.
+   * 
+ * + * + * string shared_template_revision_uri = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The sharedTemplateRevisionUri. + */ + java.lang.String getSharedTemplateRevisionUri(); + + /** + * + * + *
+   * Required. Immutable. The shared template used to generate the component.
+   * 
+ * + * + * string shared_template_revision_uri = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for sharedTemplateRevisionUri. + */ + com.google.protobuf.ByteString getSharedTemplateRevisionUriBytes(); + + /** + * + * + *
+   * Optional. The component parameters.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getParametersList(); + + /** + * + * + *
+   * Optional. The component parameters.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.Parameter getParameters(int index); + + /** + * + * + *
+   * Optional. The component parameters.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getParametersCount(); + + /** + * + * + *
+   * Optional. The component parameters.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getParametersOrBuilderList(); + + /** + * + * + *
+   * Optional. The component parameters.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.ParameterOrBuilder getParametersOrBuilder(int index); + + /** + * + * + *
+   * Output only. The component creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
+   * Output only. The component creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
+   * Output only. The component creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The component update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
+   * Output only. The component update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
+   * Output only. The component update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. IAM roles required by the service account to deploy the
+   * component.
+   * 
+ * + * repeated string roles = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the roles. + */ + java.util.List getRolesList(); + + /** + * + * + *
+   * Output only. IAM roles required by the service account to deploy the
+   * component.
+   * 
+ * + * repeated string roles = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of roles. + */ + int getRolesCount(); + + /** + * + * + *
+   * Output only. IAM roles required by the service account to deploy the
+   * component.
+   * 
+ * + * repeated string roles = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The roles at the given index. + */ + java.lang.String getRoles(int index); + + /** + * + * + *
+   * Output only. IAM roles required by the service account to deploy the
+   * component.
+   * 
+ * + * repeated string roles = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the roles at the given index. + */ + com.google.protobuf.ByteString getRolesBytes(int index); + + /** + * + * + *
+   * Output only. APIs required to be enabled to deploy the component, in the
+   * form of "*.googleapis.com".
+   * 
+ * + * repeated string apis = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the apis. + */ + java.util.List getApisList(); + + /** + * + * + *
+   * Output only. APIs required to be enabled to deploy the component, in the
+   * form of "*.googleapis.com".
+   * 
+ * + * repeated string apis = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of apis. + */ + int getApisCount(); + + /** + * + * + *
+   * Output only. APIs required to be enabled to deploy the component, in the
+   * form of "*.googleapis.com".
+   * 
+ * + * repeated string apis = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The apis at the given index. + */ + java.lang.String getApis(int index); + + /** + * + * + *
+   * Output only. APIs required to be enabled to deploy the component, in the
+   * form of "*.googleapis.com".
+   * 
+ * + * repeated string apis = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the apis at the given index. + */ + com.google.protobuf.ByteString getApisBytes(int index); + + /** + * + * + *
+   * Optional. The component display name.
+   * 
+ * + * string display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
+   * Optional. The component display name.
+   * 
+ * + * string display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Output only. The connection parameters of the component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getConnectionsParametersList(); + + /** + * + * + *
+   * Output only. The connection parameters of the component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.ConnectionParameters getConnectionsParameters(int index); + + /** + * + * + *
+   * Output only. The connection parameters of the component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getConnectionsParametersCount(); + + /** + * + * + *
+   * Output only. The connection parameters of the component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getConnectionsParametersOrBuilderList(); + + /** + * + * + *
+   * Output only. The connection parameters of the component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.ConnectionParametersOrBuilder getConnectionsParametersOrBuilder( + int index); + + /** + * + * + *
+   * Output only. The component parameter schema, which includes possible
+   * parameter values. values.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getComponentParameterSchemaList(); + + /** + * + * + *
+   * Output only. The component parameter schema, which includes possible
+   * parameter values. values.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.ComponentParameterSchema getComponentParameterSchema(int index); + + /** + * + * + *
+   * Output only. The component parameter schema, which includes possible
+   * parameter values. values.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getComponentParameterSchemaCount(); + + /** + * + * + *
+   * Output only. The component parameter schema, which includes possible
+   * parameter values. values.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getComponentParameterSchemaOrBuilderList(); + + /** + * + * + *
+   * Output only. The component parameter schema, which includes possible
+   * parameter values. values.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.ComponentParameterSchemaOrBuilder + getComponentParameterSchemaOrBuilder(int index); + + /** + * + * + *
+   * Optional. The application associated with the component.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ComponentApplicationInfo application_info = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the applicationInfo field is set. + */ + boolean hasApplicationInfo(); + + /** + * + * + *
+   * Optional. The application associated with the component.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ComponentApplicationInfo application_info = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The applicationInfo. + */ + com.google.cloud.designcenter.v1.ComponentApplicationInfo getApplicationInfo(); + + /** + * + * + *
+   * Optional. The application associated with the component.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ComponentApplicationInfo application_info = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.ComponentApplicationInfoOrBuilder getApplicationInfoOrBuilder(); + + /** + * + * + *
+   * Optional. Whether the component is exported as a separate terraform root
+   * module in a composite application template. If this is false, then native
+   * components will be exported as a submodule of a separate terraform root
+   * module.
+   * 
+ * + * bool use_as_root_module = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The useAsRootModule. + */ + boolean getUseAsRootModule(); + + /** + * + * + *
+   * Optional. Input variable aliases defined on this live component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.InputVariableAlias input_variable_aliases = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getInputVariableAliasesList(); + + /** + * + * + *
+   * Optional. Input variable aliases defined on this live component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.InputVariableAlias input_variable_aliases = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.InputVariableAlias getInputVariableAliases(int index); + + /** + * + * + *
+   * Optional. Input variable aliases defined on this live component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.InputVariableAlias input_variable_aliases = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getInputVariableAliasesCount(); + + /** + * + * + *
+   * Optional. Input variable aliases defined on this live component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.InputVariableAlias input_variable_aliases = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getInputVariableAliasesOrBuilderList(); + + /** + * + * + *
+   * Optional. Input variable aliases defined on this live component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.InputVariableAlias input_variable_aliases = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.InputVariableAliasOrBuilder getInputVariableAliasesOrBuilder( + int index); + + /** + * + * + *
+   * Optional. The application template revision used to generate the component.
+   * 
+ * + * string application_template_revision_uri = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The applicationTemplateRevisionUri. + */ + java.lang.String getApplicationTemplateRevisionUri(); + + /** + * + * + *
+   * Optional. The application template revision used to generate the component.
+   * 
+ * + * string application_template_revision_uri = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for applicationTemplateRevisionUri. + */ + com.google.protobuf.ByteString getApplicationTemplateRevisionUriBytes(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ComponentOutputParameters.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ComponentOutputParameters.java new file mode 100644 index 000000000000..2d64a2f00c97 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ComponentOutputParameters.java @@ -0,0 +1,1160 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * The component output parameters of the deployment.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ComponentOutputParameters} + */ +@com.google.protobuf.Generated +public final class ComponentOutputParameters extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ComponentOutputParameters) + ComponentOutputParametersOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ComponentOutputParameters"); + } + + // Use ComponentOutputParameters.newBuilder() to construct. + private ComponentOutputParameters(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ComponentOutputParameters() { + component_ = ""; + parameters_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_ComponentOutputParameters_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_ComponentOutputParameters_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ComponentOutputParameters.class, + com.google.cloud.designcenter.v1.ComponentOutputParameters.Builder.class); + } + + public static final int COMPONENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object component_ = ""; + + /** + * + * + *
+   * Output only. The component name of the output parameters.
+   * 
+ * + * string component = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The component. + */ + @java.lang.Override + public java.lang.String getComponent() { + java.lang.Object ref = component_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + component_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The component name of the output parameters.
+   * 
+ * + * string component = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for component. + */ + @java.lang.Override + public com.google.protobuf.ByteString getComponentBytes() { + java.lang.Object ref = component_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + component_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARAMETERS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List parameters_; + + /** + * + * + *
+   * Output only. The output parameters of the component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getParametersList() { + return parameters_; + } + + /** + * + * + *
+   * Output only. The output parameters of the component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getParametersOrBuilderList() { + return parameters_; + } + + /** + * + * + *
+   * Output only. The output parameters of the component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getParametersCount() { + return parameters_.size(); + } + + /** + * + * + *
+   * Output only. The output parameters of the component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.Parameter getParameters(int index) { + return parameters_.get(index); + } + + /** + * + * + *
+   * Output only. The output parameters of the component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ParameterOrBuilder getParametersOrBuilder(int index) { + return parameters_.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.GeneratedMessage.isStringEmpty(component_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, component_); + } + for (int i = 0; i < parameters_.size(); i++) { + output.writeMessage(2, parameters_.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.GeneratedMessage.isStringEmpty(component_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, component_); + } + for (int i = 0; i < parameters_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, parameters_.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.designcenter.v1.ComponentOutputParameters)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ComponentOutputParameters other = + (com.google.cloud.designcenter.v1.ComponentOutputParameters) obj; + + if (!getComponent().equals(other.getComponent())) return false; + if (!getParametersList().equals(other.getParametersList())) 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) + COMPONENT_FIELD_NUMBER; + hash = (53 * hash) + getComponent().hashCode(); + if (getParametersCount() > 0) { + hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getParametersList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.ComponentOutputParameters parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ComponentOutputParameters 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.designcenter.v1.ComponentOutputParameters parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ComponentOutputParameters parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ComponentOutputParameters parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ComponentOutputParameters parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ComponentOutputParameters parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ComponentOutputParameters parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ComponentOutputParameters parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ComponentOutputParameters parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ComponentOutputParameters parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ComponentOutputParameters parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ComponentOutputParameters 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * The component output parameters of the deployment.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ComponentOutputParameters} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ComponentOutputParameters) + com.google.cloud.designcenter.v1.ComponentOutputParametersOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_ComponentOutputParameters_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_ComponentOutputParameters_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ComponentOutputParameters.class, + com.google.cloud.designcenter.v1.ComponentOutputParameters.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.ComponentOutputParameters.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + component_ = ""; + if (parametersBuilder_ == null) { + parameters_ = java.util.Collections.emptyList(); + } else { + parameters_ = null; + parametersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_ComponentOutputParameters_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ComponentOutputParameters getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ComponentOutputParameters.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ComponentOutputParameters build() { + com.google.cloud.designcenter.v1.ComponentOutputParameters result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ComponentOutputParameters buildPartial() { + com.google.cloud.designcenter.v1.ComponentOutputParameters result = + new com.google.cloud.designcenter.v1.ComponentOutputParameters(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.designcenter.v1.ComponentOutputParameters result) { + if (parametersBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + parameters_ = java.util.Collections.unmodifiableList(parameters_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.parameters_ = parameters_; + } else { + result.parameters_ = parametersBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.designcenter.v1.ComponentOutputParameters result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.component_ = component_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.ComponentOutputParameters) { + return mergeFrom((com.google.cloud.designcenter.v1.ComponentOutputParameters) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.ComponentOutputParameters other) { + if (other == com.google.cloud.designcenter.v1.ComponentOutputParameters.getDefaultInstance()) + return this; + if (!other.getComponent().isEmpty()) { + component_ = other.component_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (parametersBuilder_ == null) { + if (!other.parameters_.isEmpty()) { + if (parameters_.isEmpty()) { + parameters_ = other.parameters_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureParametersIsMutable(); + parameters_.addAll(other.parameters_); + } + onChanged(); + } + } else { + if (!other.parameters_.isEmpty()) { + if (parametersBuilder_.isEmpty()) { + parametersBuilder_.dispose(); + parametersBuilder_ = null; + parameters_ = other.parameters_; + bitField0_ = (bitField0_ & ~0x00000002); + parametersBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetParametersFieldBuilder() + : null; + } else { + parametersBuilder_.addAllMessages(other.parameters_); + } + } + } + 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: + { + component_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.designcenter.v1.Parameter m = + input.readMessage( + com.google.cloud.designcenter.v1.Parameter.parser(), extensionRegistry); + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + parameters_.add(m); + } else { + parametersBuilder_.addMessage(m); + } + 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 component_ = ""; + + /** + * + * + *
+     * Output only. The component name of the output parameters.
+     * 
+ * + * string component = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The component. + */ + public java.lang.String getComponent() { + java.lang.Object ref = component_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + component_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The component name of the output parameters.
+     * 
+ * + * string component = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for component. + */ + public com.google.protobuf.ByteString getComponentBytes() { + java.lang.Object ref = component_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + component_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The component name of the output parameters.
+     * 
+ * + * string component = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The component to set. + * @return This builder for chaining. + */ + public Builder setComponent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + component_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The component name of the output parameters.
+     * 
+ * + * string component = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearComponent() { + component_ = getDefaultInstance().getComponent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The component name of the output parameters.
+     * 
+ * + * string component = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for component to set. + * @return This builder for chaining. + */ + public Builder setComponentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + component_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List parameters_ = + java.util.Collections.emptyList(); + + private void ensureParametersIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + parameters_ = + new java.util.ArrayList(parameters_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Parameter, + com.google.cloud.designcenter.v1.Parameter.Builder, + com.google.cloud.designcenter.v1.ParameterOrBuilder> + parametersBuilder_; + + /** + * + * + *
+     * Output only. The output parameters of the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getParametersList() { + if (parametersBuilder_ == null) { + return java.util.Collections.unmodifiableList(parameters_); + } else { + return parametersBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Output only. The output parameters of the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getParametersCount() { + if (parametersBuilder_ == null) { + return parameters_.size(); + } else { + return parametersBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Output only. The output parameters of the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.Parameter getParameters(int index) { + if (parametersBuilder_ == null) { + return parameters_.get(index); + } else { + return parametersBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Output only. The output parameters of the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setParameters(int index, com.google.cloud.designcenter.v1.Parameter value) { + if (parametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureParametersIsMutable(); + parameters_.set(index, value); + onChanged(); + } else { + parametersBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. The output parameters of the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setParameters( + int index, com.google.cloud.designcenter.v1.Parameter.Builder builderForValue) { + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + parameters_.set(index, builderForValue.build()); + onChanged(); + } else { + parametersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The output parameters of the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addParameters(com.google.cloud.designcenter.v1.Parameter value) { + if (parametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureParametersIsMutable(); + parameters_.add(value); + onChanged(); + } else { + parametersBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Output only. The output parameters of the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addParameters(int index, com.google.cloud.designcenter.v1.Parameter value) { + if (parametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureParametersIsMutable(); + parameters_.add(index, value); + onChanged(); + } else { + parametersBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. The output parameters of the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addParameters( + com.google.cloud.designcenter.v1.Parameter.Builder builderForValue) { + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + parameters_.add(builderForValue.build()); + onChanged(); + } else { + parametersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The output parameters of the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addParameters( + int index, com.google.cloud.designcenter.v1.Parameter.Builder builderForValue) { + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + parameters_.add(index, builderForValue.build()); + onChanged(); + } else { + parametersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The output parameters of the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllParameters( + java.lang.Iterable values) { + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, parameters_); + onChanged(); + } else { + parametersBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Output only. The output parameters of the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearParameters() { + if (parametersBuilder_ == null) { + parameters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + parametersBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Output only. The output parameters of the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeParameters(int index) { + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + parameters_.remove(index); + onChanged(); + } else { + parametersBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Output only. The output parameters of the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.Parameter.Builder getParametersBuilder(int index) { + return internalGetParametersFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Output only. The output parameters of the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ParameterOrBuilder getParametersOrBuilder(int index) { + if (parametersBuilder_ == null) { + return parameters_.get(index); + } else { + return parametersBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Output only. The output parameters of the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getParametersOrBuilderList() { + if (parametersBuilder_ != null) { + return parametersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(parameters_); + } + } + + /** + * + * + *
+     * Output only. The output parameters of the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.Parameter.Builder addParametersBuilder() { + return internalGetParametersFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.Parameter.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. The output parameters of the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.Parameter.Builder addParametersBuilder(int index) { + return internalGetParametersFieldBuilder() + .addBuilder(index, com.google.cloud.designcenter.v1.Parameter.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. The output parameters of the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getParametersBuilderList() { + return internalGetParametersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Parameter, + com.google.cloud.designcenter.v1.Parameter.Builder, + com.google.cloud.designcenter.v1.ParameterOrBuilder> + internalGetParametersFieldBuilder() { + if (parametersBuilder_ == null) { + parametersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Parameter, + com.google.cloud.designcenter.v1.Parameter.Builder, + com.google.cloud.designcenter.v1.ParameterOrBuilder>( + parameters_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + parameters_ = null; + } + return parametersBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ComponentOutputParameters) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ComponentOutputParameters) + private static final com.google.cloud.designcenter.v1.ComponentOutputParameters DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.ComponentOutputParameters(); + } + + public static com.google.cloud.designcenter.v1.ComponentOutputParameters getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ComponentOutputParameters parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ComponentOutputParameters getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ComponentOutputParametersOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ComponentOutputParametersOrBuilder.java new file mode 100644 index 000000000000..c2d9bcaa394b --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ComponentOutputParametersOrBuilder.java @@ -0,0 +1,120 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ComponentOutputParametersOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ComponentOutputParameters) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The component name of the output parameters.
+   * 
+ * + * string component = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The component. + */ + java.lang.String getComponent(); + + /** + * + * + *
+   * Output only. The component name of the output parameters.
+   * 
+ * + * string component = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for component. + */ + com.google.protobuf.ByteString getComponentBytes(); + + /** + * + * + *
+   * Output only. The output parameters of the component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getParametersList(); + + /** + * + * + *
+   * Output only. The output parameters of the component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.Parameter getParameters(int index); + + /** + * + * + *
+   * Output only. The output parameters of the component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getParametersCount(); + + /** + * + * + *
+   * Output only. The output parameters of the component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getParametersOrBuilderList(); + + /** + * + * + *
+   * Output only. The output parameters of the component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.ParameterOrBuilder getParametersOrBuilder(int index); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ComponentParameterSchema.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ComponentParameterSchema.java new file mode 100644 index 000000000000..5de20825318a --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ComponentParameterSchema.java @@ -0,0 +1,1186 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/parameters.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Component parameter schema, which contains a list of all component
+ * parameters.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ComponentParameterSchema} + */ +@com.google.protobuf.Generated +public final class ComponentParameterSchema extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ComponentParameterSchema) + ComponentParameterSchemaOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ComponentParameterSchema"); + } + + // Use ComponentParameterSchema.newBuilder() to construct. + private ComponentParameterSchema(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ComponentParameterSchema() { + key_ = ""; + type_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.ParametersProto + .internal_static_google_cloud_designcenter_v1_ComponentParameterSchema_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.ParametersProto + .internal_static_google_cloud_designcenter_v1_ComponentParameterSchema_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ComponentParameterSchema.class, + com.google.cloud.designcenter.v1.ComponentParameterSchema.Builder.class); + } + + private int bitField0_; + public static final int KEY_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object key_ = ""; + + /** + * + * + *
+   * Output only. The key of the parameter.
+   * 
+ * + * string key = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The key. + */ + @java.lang.Override + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The key of the parameter.
+   * 
+ * + * string key = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for key. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEFAULT_VALUE_FIELD_NUMBER = 2; + private com.google.protobuf.Value defaultValue_; + + /** + * + * + *
+   * Output only. The default value of the parameter.
+   * 
+ * + * .google.protobuf.Value default_value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the defaultValue field is set. + */ + @java.lang.Override + public boolean hasDefaultValue() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. The default value of the parameter.
+   * 
+ * + * .google.protobuf.Value default_value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The defaultValue. + */ + @java.lang.Override + public com.google.protobuf.Value getDefaultValue() { + return defaultValue_ == null ? com.google.protobuf.Value.getDefaultInstance() : defaultValue_; + } + + /** + * + * + *
+   * Output only. The default value of the parameter.
+   * 
+ * + * .google.protobuf.Value default_value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.ValueOrBuilder getDefaultValueOrBuilder() { + return defaultValue_ == null ? com.google.protobuf.Value.getDefaultInstance() : defaultValue_; + } + + public static final int IS_REQUIRED_FIELD_NUMBER = 3; + private boolean isRequired_ = false; + + /** + * + * + *
+   * Output only. Whether the parameter is required.
+   * 
+ * + * bool is_required = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The isRequired. + */ + @java.lang.Override + public boolean getIsRequired() { + return isRequired_; + } + + public static final int TYPE_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object type_ = ""; + + /** + * + * + *
+   * Output only. The type of the parameter.
+   * 
+ * + * string type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The type. + */ + @java.lang.Override + public java.lang.String getType() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + type_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The type of the parameter.
+   * 
+ * + * string type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for type. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + type_ = 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.GeneratedMessage.isStringEmpty(key_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, key_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getDefaultValue()); + } + if (isRequired_ != false) { + output.writeBool(3, isRequired_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(type_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, type_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(key_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, key_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDefaultValue()); + } + if (isRequired_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, isRequired_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(type_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, type_); + } + 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.designcenter.v1.ComponentParameterSchema)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ComponentParameterSchema other = + (com.google.cloud.designcenter.v1.ComponentParameterSchema) obj; + + if (!getKey().equals(other.getKey())) return false; + if (hasDefaultValue() != other.hasDefaultValue()) return false; + if (hasDefaultValue()) { + if (!getDefaultValue().equals(other.getDefaultValue())) return false; + } + if (getIsRequired() != other.getIsRequired()) return false; + if (!getType().equals(other.getType())) 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) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + if (hasDefaultValue()) { + hash = (37 * hash) + DEFAULT_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getDefaultValue().hashCode(); + } + hash = (37 * hash) + IS_REQUIRED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsRequired()); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.ComponentParameterSchema parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ComponentParameterSchema 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.designcenter.v1.ComponentParameterSchema parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ComponentParameterSchema parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ComponentParameterSchema parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ComponentParameterSchema parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ComponentParameterSchema parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ComponentParameterSchema parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ComponentParameterSchema parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ComponentParameterSchema parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ComponentParameterSchema parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ComponentParameterSchema parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ComponentParameterSchema 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Component parameter schema, which contains a list of all component
+   * parameters.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ComponentParameterSchema} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ComponentParameterSchema) + com.google.cloud.designcenter.v1.ComponentParameterSchemaOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.ParametersProto + .internal_static_google_cloud_designcenter_v1_ComponentParameterSchema_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.ParametersProto + .internal_static_google_cloud_designcenter_v1_ComponentParameterSchema_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ComponentParameterSchema.class, + com.google.cloud.designcenter.v1.ComponentParameterSchema.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.ComponentParameterSchema.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetDefaultValueFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + key_ = ""; + defaultValue_ = null; + if (defaultValueBuilder_ != null) { + defaultValueBuilder_.dispose(); + defaultValueBuilder_ = null; + } + isRequired_ = false; + type_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.ParametersProto + .internal_static_google_cloud_designcenter_v1_ComponentParameterSchema_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ComponentParameterSchema getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ComponentParameterSchema.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ComponentParameterSchema build() { + com.google.cloud.designcenter.v1.ComponentParameterSchema result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ComponentParameterSchema buildPartial() { + com.google.cloud.designcenter.v1.ComponentParameterSchema result = + new com.google.cloud.designcenter.v1.ComponentParameterSchema(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.ComponentParameterSchema result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.key_ = key_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.defaultValue_ = + defaultValueBuilder_ == null ? defaultValue_ : defaultValueBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.isRequired_ = isRequired_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.type_ = type_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.ComponentParameterSchema) { + return mergeFrom((com.google.cloud.designcenter.v1.ComponentParameterSchema) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.ComponentParameterSchema other) { + if (other == com.google.cloud.designcenter.v1.ComponentParameterSchema.getDefaultInstance()) + return this; + if (!other.getKey().isEmpty()) { + key_ = other.key_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasDefaultValue()) { + mergeDefaultValue(other.getDefaultValue()); + } + if (other.getIsRequired() != false) { + setIsRequired(other.getIsRequired()); + } + if (!other.getType().isEmpty()) { + type_ = other.type_; + 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: + { + key_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetDefaultValueFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + isRequired_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + type_ = 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 key_ = ""; + + /** + * + * + *
+     * Output only. The key of the parameter.
+     * 
+ * + * string key = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The key. + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The key of the parameter.
+     * 
+ * + * string key = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for key. + */ + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The key of the parameter.
+     * 
+ * + * string key = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The key to set. + * @return This builder for chaining. + */ + public Builder setKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + key_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The key of the parameter.
+     * 
+ * + * string key = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearKey() { + key_ = getDefaultInstance().getKey(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The key of the parameter.
+     * 
+ * + * string key = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for key to set. + * @return This builder for chaining. + */ + public Builder setKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + key_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Value defaultValue_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder> + defaultValueBuilder_; + + /** + * + * + *
+     * Output only. The default value of the parameter.
+     * 
+ * + * .google.protobuf.Value default_value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the defaultValue field is set. + */ + public boolean hasDefaultValue() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Output only. The default value of the parameter.
+     * 
+ * + * .google.protobuf.Value default_value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The defaultValue. + */ + public com.google.protobuf.Value getDefaultValue() { + if (defaultValueBuilder_ == null) { + return defaultValue_ == null + ? com.google.protobuf.Value.getDefaultInstance() + : defaultValue_; + } else { + return defaultValueBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. The default value of the parameter.
+     * 
+ * + * .google.protobuf.Value default_value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDefaultValue(com.google.protobuf.Value value) { + if (defaultValueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + defaultValue_ = value; + } else { + defaultValueBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The default value of the parameter.
+     * 
+ * + * .google.protobuf.Value default_value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDefaultValue(com.google.protobuf.Value.Builder builderForValue) { + if (defaultValueBuilder_ == null) { + defaultValue_ = builderForValue.build(); + } else { + defaultValueBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The default value of the parameter.
+     * 
+ * + * .google.protobuf.Value default_value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeDefaultValue(com.google.protobuf.Value value) { + if (defaultValueBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && defaultValue_ != null + && defaultValue_ != com.google.protobuf.Value.getDefaultInstance()) { + getDefaultValueBuilder().mergeFrom(value); + } else { + defaultValue_ = value; + } + } else { + defaultValueBuilder_.mergeFrom(value); + } + if (defaultValue_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The default value of the parameter.
+     * 
+ * + * .google.protobuf.Value default_value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDefaultValue() { + bitField0_ = (bitField0_ & ~0x00000002); + defaultValue_ = null; + if (defaultValueBuilder_ != null) { + defaultValueBuilder_.dispose(); + defaultValueBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The default value of the parameter.
+     * 
+ * + * .google.protobuf.Value default_value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Value.Builder getDefaultValueBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetDefaultValueFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The default value of the parameter.
+     * 
+ * + * .google.protobuf.Value default_value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.ValueOrBuilder getDefaultValueOrBuilder() { + if (defaultValueBuilder_ != null) { + return defaultValueBuilder_.getMessageOrBuilder(); + } else { + return defaultValue_ == null + ? com.google.protobuf.Value.getDefaultInstance() + : defaultValue_; + } + } + + /** + * + * + *
+     * Output only. The default value of the parameter.
+     * 
+ * + * .google.protobuf.Value default_value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder> + internalGetDefaultValueFieldBuilder() { + if (defaultValueBuilder_ == null) { + defaultValueBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder>( + getDefaultValue(), getParentForChildren(), isClean()); + defaultValue_ = null; + } + return defaultValueBuilder_; + } + + private boolean isRequired_; + + /** + * + * + *
+     * Output only. Whether the parameter is required.
+     * 
+ * + * bool is_required = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The isRequired. + */ + @java.lang.Override + public boolean getIsRequired() { + return isRequired_; + } + + /** + * + * + *
+     * Output only. Whether the parameter is required.
+     * 
+ * + * bool is_required = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The isRequired to set. + * @return This builder for chaining. + */ + public Builder setIsRequired(boolean value) { + + isRequired_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Whether the parameter is required.
+     * 
+ * + * bool is_required = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearIsRequired() { + bitField0_ = (bitField0_ & ~0x00000004); + isRequired_ = false; + onChanged(); + return this; + } + + private java.lang.Object type_ = ""; + + /** + * + * + *
+     * Output only. The type of the parameter.
+     * 
+ * + * string type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The type. + */ + public java.lang.String getType() { + java.lang.Object ref = type_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + type_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The type of the parameter.
+     * 
+ * + * string type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for type. + */ + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The type of the parameter.
+     * 
+ * + * string type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The type of the parameter.
+     * 
+ * + * string type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearType() { + type_ = getDefaultInstance().getType(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The type of the parameter.
+     * 
+ * + * string type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for type to set. + * @return This builder for chaining. + */ + public Builder setTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + type_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ComponentParameterSchema) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ComponentParameterSchema) + private static final com.google.cloud.designcenter.v1.ComponentParameterSchema DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.ComponentParameterSchema(); + } + + public static com.google.cloud.designcenter.v1.ComponentParameterSchema getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ComponentParameterSchema parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ComponentParameterSchema getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ComponentParameterSchemaOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ComponentParameterSchemaOrBuilder.java new file mode 100644 index 000000000000..3d7f4bb05a66 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ComponentParameterSchemaOrBuilder.java @@ -0,0 +1,133 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/parameters.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ComponentParameterSchemaOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ComponentParameterSchema) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The key of the parameter.
+   * 
+ * + * string key = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The key. + */ + java.lang.String getKey(); + + /** + * + * + *
+   * Output only. The key of the parameter.
+   * 
+ * + * string key = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for key. + */ + com.google.protobuf.ByteString getKeyBytes(); + + /** + * + * + *
+   * Output only. The default value of the parameter.
+   * 
+ * + * .google.protobuf.Value default_value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the defaultValue field is set. + */ + boolean hasDefaultValue(); + + /** + * + * + *
+   * Output only. The default value of the parameter.
+   * 
+ * + * .google.protobuf.Value default_value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The defaultValue. + */ + com.google.protobuf.Value getDefaultValue(); + + /** + * + * + *
+   * Output only. The default value of the parameter.
+   * 
+ * + * .google.protobuf.Value default_value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.ValueOrBuilder getDefaultValueOrBuilder(); + + /** + * + * + *
+   * Output only. Whether the parameter is required.
+   * 
+ * + * bool is_required = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The isRequired. + */ + boolean getIsRequired(); + + /** + * + * + *
+   * Output only. The type of the parameter.
+   * 
+ * + * string type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The type. + */ + java.lang.String getType(); + + /** + * + * + *
+   * Output only. The type of the parameter.
+   * 
+ * + * string type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for type. + */ + com.google.protobuf.ByteString getTypeBytes(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ComponentParameters.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ComponentParameters.java new file mode 100644 index 000000000000..478ef9441bf9 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ComponentParameters.java @@ -0,0 +1,3469 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Information about the component level parameters for an application.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ComponentParameters} + */ +@com.google.protobuf.Generated +public final class ComponentParameters extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ComponentParameters) + ComponentParametersOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ComponentParameters"); + } + + // Use ComponentParameters.newBuilder() to construct. + private ComponentParameters(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ComponentParameters() { + component_ = ""; + parameters_ = java.util.Collections.emptyList(); + connectionsParameters_ = java.util.Collections.emptyList(); + state_ = 0; + componentParameterSchema_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_ComponentParameters_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_ComponentParameters_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ComponentParameters.class, + com.google.cloud.designcenter.v1.ComponentParameters.Builder.class); + } + + /** + * + * + *
+   * Possible values of deployment state of the component.
+   * 
+ * + * Protobuf enum {@code google.cloud.designcenter.v1.ComponentParameters.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified component deployment state.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * Component is in draft.
+     * 
+ * + * DRAFT = 1; + */ + DRAFT(1), + /** + * + * + *
+     * New deployment is in progress.
+     * 
+ * + * CREATING_DEPLOYMENT = 2; + */ + CREATING_DEPLOYMENT(2), + /** + * + * + *
+     * Update is in progress.
+     * 
+ * + * UPDATING_DEPLOYMENT = 3; + */ + UPDATING_DEPLOYMENT(3), + /** + * + * + *
+     * Deletion is in progress.
+     * 
+ * + * DELETING = 4; + */ + DELETING(4), + /** + * + * + *
+     * Component deployment is completed.
+     * 
+ * + * DEPLOYED = 5; + */ + DEPLOYED(5), + /** + * + * + *
+     * Component deployment is deleted.
+     * 
+ * + * DELETED = 6; + */ + DELETED(6), + /** + * + * + *
+     * Component deployment is failed.
+     * 
+ * + * FAILED = 7; + */ + FAILED(7), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
+     * Unspecified component deployment state.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Component is in draft.
+     * 
+ * + * DRAFT = 1; + */ + public static final int DRAFT_VALUE = 1; + + /** + * + * + *
+     * New deployment is in progress.
+     * 
+ * + * CREATING_DEPLOYMENT = 2; + */ + public static final int CREATING_DEPLOYMENT_VALUE = 2; + + /** + * + * + *
+     * Update is in progress.
+     * 
+ * + * UPDATING_DEPLOYMENT = 3; + */ + public static final int UPDATING_DEPLOYMENT_VALUE = 3; + + /** + * + * + *
+     * Deletion is in progress.
+     * 
+ * + * DELETING = 4; + */ + public static final int DELETING_VALUE = 4; + + /** + * + * + *
+     * Component deployment is completed.
+     * 
+ * + * DEPLOYED = 5; + */ + public static final int DEPLOYED_VALUE = 5; + + /** + * + * + *
+     * Component deployment is deleted.
+     * 
+ * + * DELETED = 6; + */ + public static final int DELETED_VALUE = 6; + + /** + * + * + *
+     * Component deployment is failed.
+     * 
+ * + * FAILED = 7; + */ + public static final int FAILED_VALUE = 7; + + 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 CREATING_DEPLOYMENT; + case 3: + return UPDATING_DEPLOYMENT; + case 4: + return DELETING; + case 5: + return DEPLOYED; + case 6: + return DELETED; + case 7: + 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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.designcenter.v1.ComponentParameters.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.designcenter.v1.ComponentParameters.State) + } + + private int bitField0_; + public static final int COMPONENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object component_ = ""; + + /** + * + * + *
+   * Required. The name of the component parameter.
+   * 
+ * + * string component = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The component. + */ + @java.lang.Override + public java.lang.String getComponent() { + java.lang.Object ref = component_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + component_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The name of the component parameter.
+   * 
+ * + * string component = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for component. + */ + @java.lang.Override + public com.google.protobuf.ByteString getComponentBytes() { + java.lang.Object ref = component_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + component_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARAMETERS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List parameters_; + + /** + * + * + *
+   * Optional. A list of parameters associated with the component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getParametersList() { + return parameters_; + } + + /** + * + * + *
+   * Optional. A list of parameters associated with the component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getParametersOrBuilderList() { + return parameters_; + } + + /** + * + * + *
+   * Optional. A list of parameters associated with the component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getParametersCount() { + return parameters_.size(); + } + + /** + * + * + *
+   * Optional. A list of parameters associated with the component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.Parameter getParameters(int index) { + return parameters_.get(index); + } + + /** + * + * + *
+   * Optional. A list of parameters associated with the component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ParameterOrBuilder getParametersOrBuilder(int index) { + return parameters_.get(index); + } + + public static final int CONNECTIONS_PARAMETERS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List + connectionsParameters_; + + /** + * + * + *
+   * Output only. A list of connections associated with the component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getConnectionsParametersList() { + return connectionsParameters_; + } + + /** + * + * + *
+   * Output only. A list of connections associated with the component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getConnectionsParametersOrBuilderList() { + return connectionsParameters_; + } + + /** + * + * + *
+   * Output only. A list of connections associated with the component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getConnectionsParametersCount() { + return connectionsParameters_.size(); + } + + /** + * + * + *
+   * Output only. A list of connections associated with the component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ConnectionParameters getConnectionsParameters(int index) { + return connectionsParameters_.get(index); + } + + /** + * + * + *
+   * Output only. A list of connections associated with the component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ConnectionParametersOrBuilder + getConnectionsParametersOrBuilder(int index) { + return connectionsParameters_.get(index); + } + + public static final int STATE_FIELD_NUMBER = 4; + private int state_ = 0; + + /** + * + * + *
+   * Output only. Deployment state of the component.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ComponentParameters.State state = 4 [(.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. Deployment state of the component.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ComponentParameters.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ComponentParameters.State getState() { + com.google.cloud.designcenter.v1.ComponentParameters.State result = + com.google.cloud.designcenter.v1.ComponentParameters.State.forNumber(state_); + return result == null + ? com.google.cloud.designcenter.v1.ComponentParameters.State.UNRECOGNIZED + : result; + } + + public static final int COMPONENT_PARAMETER_SCHEMA_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private java.util.List + componentParameterSchema_; + + /** + * + * + *
+   * Output only. The component parameter schema, which includes possible
+   * parameter values.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getComponentParameterSchemaList() { + return componentParameterSchema_; + } + + /** + * + * + *
+   * Output only. The component parameter schema, which includes possible
+   * parameter values.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.designcenter.v1.ComponentParameterSchemaOrBuilder> + getComponentParameterSchemaOrBuilderList() { + return componentParameterSchema_; + } + + /** + * + * + *
+   * Output only. The component parameter schema, which includes possible
+   * parameter values.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getComponentParameterSchemaCount() { + return componentParameterSchema_.size(); + } + + /** + * + * + *
+   * Output only. The component parameter schema, which includes possible
+   * parameter values.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ComponentParameterSchema getComponentParameterSchema( + int index) { + return componentParameterSchema_.get(index); + } + + /** + * + * + *
+   * Output only. The component parameter schema, which includes possible
+   * parameter values.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ComponentParameterSchemaOrBuilder + getComponentParameterSchemaOrBuilder(int index) { + return componentParameterSchema_.get(index); + } + + public static final int APPLICATION_INFO_FIELD_NUMBER = 6; + private com.google.cloud.designcenter.v1.ComponentApplicationInfo applicationInfo_; + + /** + * + * + *
+   * Optional. The application associated with the component.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ComponentApplicationInfo application_info = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the applicationInfo field is set. + */ + @java.lang.Override + public boolean hasApplicationInfo() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. The application associated with the component.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ComponentApplicationInfo application_info = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The applicationInfo. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ComponentApplicationInfo getApplicationInfo() { + return applicationInfo_ == null + ? com.google.cloud.designcenter.v1.ComponentApplicationInfo.getDefaultInstance() + : applicationInfo_; + } + + /** + * + * + *
+   * Optional. The application associated with the component.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ComponentApplicationInfo application_info = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ComponentApplicationInfoOrBuilder + getApplicationInfoOrBuilder() { + return applicationInfo_ == null + ? com.google.cloud.designcenter.v1.ComponentApplicationInfo.getDefaultInstance() + : applicationInfo_; + } + + public static final int EFFECTIVE_APPLICATION_INFO_FIELD_NUMBER = 7; + private com.google.cloud.designcenter.v1.ComponentApplicationInfo effectiveApplicationInfo_; + + /** + * + * + *
+   * Output only. The effective application associated with the component. This
+   * is the server set application field.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ComponentApplicationInfo effective_application_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the effectiveApplicationInfo field is set. + */ + @java.lang.Override + public boolean hasEffectiveApplicationInfo() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. The effective application associated with the component. This
+   * is the server set application field.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ComponentApplicationInfo effective_application_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The effectiveApplicationInfo. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ComponentApplicationInfo getEffectiveApplicationInfo() { + return effectiveApplicationInfo_ == null + ? com.google.cloud.designcenter.v1.ComponentApplicationInfo.getDefaultInstance() + : effectiveApplicationInfo_; + } + + /** + * + * + *
+   * Output only. The effective application associated with the component. This
+   * is the server set application field.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ComponentApplicationInfo effective_application_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ComponentApplicationInfoOrBuilder + getEffectiveApplicationInfoOrBuilder() { + return effectiveApplicationInfo_ == null + ? com.google.cloud.designcenter.v1.ComponentApplicationInfo.getDefaultInstance() + : effectiveApplicationInfo_; + } + + 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.GeneratedMessage.isStringEmpty(component_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, component_); + } + for (int i = 0; i < parameters_.size(); i++) { + output.writeMessage(2, parameters_.get(i)); + } + for (int i = 0; i < connectionsParameters_.size(); i++) { + output.writeMessage(3, connectionsParameters_.get(i)); + } + if (state_ + != com.google.cloud.designcenter.v1.ComponentParameters.State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, state_); + } + for (int i = 0; i < componentParameterSchema_.size(); i++) { + output.writeMessage(5, componentParameterSchema_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(6, getApplicationInfo()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(7, getEffectiveApplicationInfo()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(component_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, component_); + } + for (int i = 0; i < parameters_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, parameters_.get(i)); + } + for (int i = 0; i < connectionsParameters_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, connectionsParameters_.get(i)); + } + if (state_ + != com.google.cloud.designcenter.v1.ComponentParameters.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, state_); + } + for (int i = 0; i < componentParameterSchema_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, componentParameterSchema_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getApplicationInfo()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, getEffectiveApplicationInfo()); + } + 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.designcenter.v1.ComponentParameters)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ComponentParameters other = + (com.google.cloud.designcenter.v1.ComponentParameters) obj; + + if (!getComponent().equals(other.getComponent())) return false; + if (!getParametersList().equals(other.getParametersList())) return false; + if (!getConnectionsParametersList().equals(other.getConnectionsParametersList())) return false; + if (state_ != other.state_) return false; + if (!getComponentParameterSchemaList().equals(other.getComponentParameterSchemaList())) + return false; + if (hasApplicationInfo() != other.hasApplicationInfo()) return false; + if (hasApplicationInfo()) { + if (!getApplicationInfo().equals(other.getApplicationInfo())) return false; + } + if (hasEffectiveApplicationInfo() != other.hasEffectiveApplicationInfo()) return false; + if (hasEffectiveApplicationInfo()) { + if (!getEffectiveApplicationInfo().equals(other.getEffectiveApplicationInfo())) 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) + COMPONENT_FIELD_NUMBER; + hash = (53 * hash) + getComponent().hashCode(); + if (getParametersCount() > 0) { + hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getParametersList().hashCode(); + } + if (getConnectionsParametersCount() > 0) { + hash = (37 * hash) + CONNECTIONS_PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getConnectionsParametersList().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + if (getComponentParameterSchemaCount() > 0) { + hash = (37 * hash) + COMPONENT_PARAMETER_SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getComponentParameterSchemaList().hashCode(); + } + if (hasApplicationInfo()) { + hash = (37 * hash) + APPLICATION_INFO_FIELD_NUMBER; + hash = (53 * hash) + getApplicationInfo().hashCode(); + } + if (hasEffectiveApplicationInfo()) { + hash = (37 * hash) + EFFECTIVE_APPLICATION_INFO_FIELD_NUMBER; + hash = (53 * hash) + getEffectiveApplicationInfo().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.ComponentParameters parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ComponentParameters 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.designcenter.v1.ComponentParameters parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ComponentParameters parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ComponentParameters parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ComponentParameters parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ComponentParameters parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ComponentParameters parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ComponentParameters parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ComponentParameters parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ComponentParameters parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ComponentParameters parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ComponentParameters 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Information about the component level parameters for an application.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ComponentParameters} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ComponentParameters) + com.google.cloud.designcenter.v1.ComponentParametersOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_ComponentParameters_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_ComponentParameters_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ComponentParameters.class, + com.google.cloud.designcenter.v1.ComponentParameters.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.ComponentParameters.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetParametersFieldBuilder(); + internalGetConnectionsParametersFieldBuilder(); + internalGetComponentParameterSchemaFieldBuilder(); + internalGetApplicationInfoFieldBuilder(); + internalGetEffectiveApplicationInfoFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + component_ = ""; + if (parametersBuilder_ == null) { + parameters_ = java.util.Collections.emptyList(); + } else { + parameters_ = null; + parametersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + if (connectionsParametersBuilder_ == null) { + connectionsParameters_ = java.util.Collections.emptyList(); + } else { + connectionsParameters_ = null; + connectionsParametersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + state_ = 0; + if (componentParameterSchemaBuilder_ == null) { + componentParameterSchema_ = java.util.Collections.emptyList(); + } else { + componentParameterSchema_ = null; + componentParameterSchemaBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + applicationInfo_ = null; + if (applicationInfoBuilder_ != null) { + applicationInfoBuilder_.dispose(); + applicationInfoBuilder_ = null; + } + effectiveApplicationInfo_ = null; + if (effectiveApplicationInfoBuilder_ != null) { + effectiveApplicationInfoBuilder_.dispose(); + effectiveApplicationInfoBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_ComponentParameters_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ComponentParameters getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ComponentParameters.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ComponentParameters build() { + com.google.cloud.designcenter.v1.ComponentParameters result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ComponentParameters buildPartial() { + com.google.cloud.designcenter.v1.ComponentParameters result = + new com.google.cloud.designcenter.v1.ComponentParameters(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.designcenter.v1.ComponentParameters result) { + if (parametersBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + parameters_ = java.util.Collections.unmodifiableList(parameters_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.parameters_ = parameters_; + } else { + result.parameters_ = parametersBuilder_.build(); + } + if (connectionsParametersBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + connectionsParameters_ = java.util.Collections.unmodifiableList(connectionsParameters_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.connectionsParameters_ = connectionsParameters_; + } else { + result.connectionsParameters_ = connectionsParametersBuilder_.build(); + } + if (componentParameterSchemaBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + componentParameterSchema_ = + java.util.Collections.unmodifiableList(componentParameterSchema_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.componentParameterSchema_ = componentParameterSchema_; + } else { + result.componentParameterSchema_ = componentParameterSchemaBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.designcenter.v1.ComponentParameters result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.component_ = component_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.state_ = state_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.applicationInfo_ = + applicationInfoBuilder_ == null ? applicationInfo_ : applicationInfoBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.effectiveApplicationInfo_ = + effectiveApplicationInfoBuilder_ == null + ? effectiveApplicationInfo_ + : effectiveApplicationInfoBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.ComponentParameters) { + return mergeFrom((com.google.cloud.designcenter.v1.ComponentParameters) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.ComponentParameters other) { + if (other == com.google.cloud.designcenter.v1.ComponentParameters.getDefaultInstance()) + return this; + if (!other.getComponent().isEmpty()) { + component_ = other.component_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (parametersBuilder_ == null) { + if (!other.parameters_.isEmpty()) { + if (parameters_.isEmpty()) { + parameters_ = other.parameters_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureParametersIsMutable(); + parameters_.addAll(other.parameters_); + } + onChanged(); + } + } else { + if (!other.parameters_.isEmpty()) { + if (parametersBuilder_.isEmpty()) { + parametersBuilder_.dispose(); + parametersBuilder_ = null; + parameters_ = other.parameters_; + bitField0_ = (bitField0_ & ~0x00000002); + parametersBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetParametersFieldBuilder() + : null; + } else { + parametersBuilder_.addAllMessages(other.parameters_); + } + } + } + if (connectionsParametersBuilder_ == null) { + if (!other.connectionsParameters_.isEmpty()) { + if (connectionsParameters_.isEmpty()) { + connectionsParameters_ = other.connectionsParameters_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureConnectionsParametersIsMutable(); + connectionsParameters_.addAll(other.connectionsParameters_); + } + onChanged(); + } + } else { + if (!other.connectionsParameters_.isEmpty()) { + if (connectionsParametersBuilder_.isEmpty()) { + connectionsParametersBuilder_.dispose(); + connectionsParametersBuilder_ = null; + connectionsParameters_ = other.connectionsParameters_; + bitField0_ = (bitField0_ & ~0x00000004); + connectionsParametersBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetConnectionsParametersFieldBuilder() + : null; + } else { + connectionsParametersBuilder_.addAllMessages(other.connectionsParameters_); + } + } + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (componentParameterSchemaBuilder_ == null) { + if (!other.componentParameterSchema_.isEmpty()) { + if (componentParameterSchema_.isEmpty()) { + componentParameterSchema_ = other.componentParameterSchema_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureComponentParameterSchemaIsMutable(); + componentParameterSchema_.addAll(other.componentParameterSchema_); + } + onChanged(); + } + } else { + if (!other.componentParameterSchema_.isEmpty()) { + if (componentParameterSchemaBuilder_.isEmpty()) { + componentParameterSchemaBuilder_.dispose(); + componentParameterSchemaBuilder_ = null; + componentParameterSchema_ = other.componentParameterSchema_; + bitField0_ = (bitField0_ & ~0x00000010); + componentParameterSchemaBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetComponentParameterSchemaFieldBuilder() + : null; + } else { + componentParameterSchemaBuilder_.addAllMessages(other.componentParameterSchema_); + } + } + } + if (other.hasApplicationInfo()) { + mergeApplicationInfo(other.getApplicationInfo()); + } + if (other.hasEffectiveApplicationInfo()) { + mergeEffectiveApplicationInfo(other.getEffectiveApplicationInfo()); + } + 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: + { + component_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.designcenter.v1.Parameter m = + input.readMessage( + com.google.cloud.designcenter.v1.Parameter.parser(), extensionRegistry); + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + parameters_.add(m); + } else { + parametersBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: + { + com.google.cloud.designcenter.v1.ConnectionParameters m = + input.readMessage( + com.google.cloud.designcenter.v1.ConnectionParameters.parser(), + extensionRegistry); + if (connectionsParametersBuilder_ == null) { + ensureConnectionsParametersIsMutable(); + connectionsParameters_.add(m); + } else { + connectionsParametersBuilder_.addMessage(m); + } + break; + } // case 26 + case 32: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + com.google.cloud.designcenter.v1.ComponentParameterSchema m = + input.readMessage( + com.google.cloud.designcenter.v1.ComponentParameterSchema.parser(), + extensionRegistry); + if (componentParameterSchemaBuilder_ == null) { + ensureComponentParameterSchemaIsMutable(); + componentParameterSchema_.add(m); + } else { + componentParameterSchemaBuilder_.addMessage(m); + } + break; + } // case 42 + case 50: + { + input.readMessage( + internalGetApplicationInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + input.readMessage( + internalGetEffectiveApplicationInfoFieldBuilder().getBuilder(), + extensionRegistry); + 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 java.lang.Object component_ = ""; + + /** + * + * + *
+     * Required. The name of the component parameter.
+     * 
+ * + * string component = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The component. + */ + public java.lang.String getComponent() { + java.lang.Object ref = component_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + component_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The name of the component parameter.
+     * 
+ * + * string component = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for component. + */ + public com.google.protobuf.ByteString getComponentBytes() { + java.lang.Object ref = component_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + component_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The name of the component parameter.
+     * 
+ * + * string component = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The component to set. + * @return This builder for chaining. + */ + public Builder setComponent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + component_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The name of the component parameter.
+     * 
+ * + * string component = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearComponent() { + component_ = getDefaultInstance().getComponent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The name of the component parameter.
+     * 
+ * + * string component = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for component to set. + * @return This builder for chaining. + */ + public Builder setComponentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + component_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List parameters_ = + java.util.Collections.emptyList(); + + private void ensureParametersIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + parameters_ = + new java.util.ArrayList(parameters_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Parameter, + com.google.cloud.designcenter.v1.Parameter.Builder, + com.google.cloud.designcenter.v1.ParameterOrBuilder> + parametersBuilder_; + + /** + * + * + *
+     * Optional. A list of parameters associated with the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getParametersList() { + if (parametersBuilder_ == null) { + return java.util.Collections.unmodifiableList(parameters_); + } else { + return parametersBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. A list of parameters associated with the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getParametersCount() { + if (parametersBuilder_ == null) { + return parameters_.size(); + } else { + return parametersBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. A list of parameters associated with the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter getParameters(int index) { + if (parametersBuilder_ == null) { + return parameters_.get(index); + } else { + return parametersBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. A list of parameters associated with the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setParameters(int index, com.google.cloud.designcenter.v1.Parameter value) { + if (parametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureParametersIsMutable(); + parameters_.set(index, value); + onChanged(); + } else { + parametersBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of parameters associated with the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setParameters( + int index, com.google.cloud.designcenter.v1.Parameter.Builder builderForValue) { + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + parameters_.set(index, builderForValue.build()); + onChanged(); + } else { + parametersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of parameters associated with the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addParameters(com.google.cloud.designcenter.v1.Parameter value) { + if (parametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureParametersIsMutable(); + parameters_.add(value); + onChanged(); + } else { + parametersBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of parameters associated with the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addParameters(int index, com.google.cloud.designcenter.v1.Parameter value) { + if (parametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureParametersIsMutable(); + parameters_.add(index, value); + onChanged(); + } else { + parametersBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of parameters associated with the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addParameters( + com.google.cloud.designcenter.v1.Parameter.Builder builderForValue) { + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + parameters_.add(builderForValue.build()); + onChanged(); + } else { + parametersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of parameters associated with the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addParameters( + int index, com.google.cloud.designcenter.v1.Parameter.Builder builderForValue) { + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + parameters_.add(index, builderForValue.build()); + onChanged(); + } else { + parametersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of parameters associated with the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllParameters( + java.lang.Iterable values) { + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, parameters_); + onChanged(); + } else { + parametersBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of parameters associated with the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearParameters() { + if (parametersBuilder_ == null) { + parameters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + parametersBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of parameters associated with the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeParameters(int index) { + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + parameters_.remove(index); + onChanged(); + } else { + parametersBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of parameters associated with the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter.Builder getParametersBuilder(int index) { + return internalGetParametersFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. A list of parameters associated with the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ParameterOrBuilder getParametersOrBuilder(int index) { + if (parametersBuilder_ == null) { + return parameters_.get(index); + } else { + return parametersBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. A list of parameters associated with the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getParametersOrBuilderList() { + if (parametersBuilder_ != null) { + return parametersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(parameters_); + } + } + + /** + * + * + *
+     * Optional. A list of parameters associated with the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter.Builder addParametersBuilder() { + return internalGetParametersFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.Parameter.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. A list of parameters associated with the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter.Builder addParametersBuilder(int index) { + return internalGetParametersFieldBuilder() + .addBuilder(index, com.google.cloud.designcenter.v1.Parameter.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. A list of parameters associated with the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getParametersBuilderList() { + return internalGetParametersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Parameter, + com.google.cloud.designcenter.v1.Parameter.Builder, + com.google.cloud.designcenter.v1.ParameterOrBuilder> + internalGetParametersFieldBuilder() { + if (parametersBuilder_ == null) { + parametersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Parameter, + com.google.cloud.designcenter.v1.Parameter.Builder, + com.google.cloud.designcenter.v1.ParameterOrBuilder>( + parameters_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + parameters_ = null; + } + return parametersBuilder_; + } + + private java.util.List + connectionsParameters_ = java.util.Collections.emptyList(); + + private void ensureConnectionsParametersIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + connectionsParameters_ = + new java.util.ArrayList( + connectionsParameters_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ConnectionParameters, + com.google.cloud.designcenter.v1.ConnectionParameters.Builder, + com.google.cloud.designcenter.v1.ConnectionParametersOrBuilder> + connectionsParametersBuilder_; + + /** + * + * + *
+     * Output only. A list of connections associated with the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getConnectionsParametersList() { + if (connectionsParametersBuilder_ == null) { + return java.util.Collections.unmodifiableList(connectionsParameters_); + } else { + return connectionsParametersBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Output only. A list of connections associated with the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getConnectionsParametersCount() { + if (connectionsParametersBuilder_ == null) { + return connectionsParameters_.size(); + } else { + return connectionsParametersBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Output only. A list of connections associated with the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ConnectionParameters getConnectionsParameters( + int index) { + if (connectionsParametersBuilder_ == null) { + return connectionsParameters_.get(index); + } else { + return connectionsParametersBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Output only. A list of connections associated with the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setConnectionsParameters( + int index, com.google.cloud.designcenter.v1.ConnectionParameters value) { + if (connectionsParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConnectionsParametersIsMutable(); + connectionsParameters_.set(index, value); + onChanged(); + } else { + connectionsParametersBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. A list of connections associated with the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setConnectionsParameters( + int index, com.google.cloud.designcenter.v1.ConnectionParameters.Builder builderForValue) { + if (connectionsParametersBuilder_ == null) { + ensureConnectionsParametersIsMutable(); + connectionsParameters_.set(index, builderForValue.build()); + onChanged(); + } else { + connectionsParametersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. A list of connections associated with the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addConnectionsParameters( + com.google.cloud.designcenter.v1.ConnectionParameters value) { + if (connectionsParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConnectionsParametersIsMutable(); + connectionsParameters_.add(value); + onChanged(); + } else { + connectionsParametersBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Output only. A list of connections associated with the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addConnectionsParameters( + int index, com.google.cloud.designcenter.v1.ConnectionParameters value) { + if (connectionsParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConnectionsParametersIsMutable(); + connectionsParameters_.add(index, value); + onChanged(); + } else { + connectionsParametersBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. A list of connections associated with the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addConnectionsParameters( + com.google.cloud.designcenter.v1.ConnectionParameters.Builder builderForValue) { + if (connectionsParametersBuilder_ == null) { + ensureConnectionsParametersIsMutable(); + connectionsParameters_.add(builderForValue.build()); + onChanged(); + } else { + connectionsParametersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. A list of connections associated with the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addConnectionsParameters( + int index, com.google.cloud.designcenter.v1.ConnectionParameters.Builder builderForValue) { + if (connectionsParametersBuilder_ == null) { + ensureConnectionsParametersIsMutable(); + connectionsParameters_.add(index, builderForValue.build()); + onChanged(); + } else { + connectionsParametersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. A list of connections associated with the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllConnectionsParameters( + java.lang.Iterable + values) { + if (connectionsParametersBuilder_ == null) { + ensureConnectionsParametersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, connectionsParameters_); + onChanged(); + } else { + connectionsParametersBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Output only. A list of connections associated with the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearConnectionsParameters() { + if (connectionsParametersBuilder_ == null) { + connectionsParameters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + connectionsParametersBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Output only. A list of connections associated with the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeConnectionsParameters(int index) { + if (connectionsParametersBuilder_ == null) { + ensureConnectionsParametersIsMutable(); + connectionsParameters_.remove(index); + onChanged(); + } else { + connectionsParametersBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Output only. A list of connections associated with the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ConnectionParameters.Builder + getConnectionsParametersBuilder(int index) { + return internalGetConnectionsParametersFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Output only. A list of connections associated with the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ConnectionParametersOrBuilder + getConnectionsParametersOrBuilder(int index) { + if (connectionsParametersBuilder_ == null) { + return connectionsParameters_.get(index); + } else { + return connectionsParametersBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Output only. A list of connections associated with the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getConnectionsParametersOrBuilderList() { + if (connectionsParametersBuilder_ != null) { + return connectionsParametersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(connectionsParameters_); + } + } + + /** + * + * + *
+     * Output only. A list of connections associated with the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ConnectionParameters.Builder + addConnectionsParametersBuilder() { + return internalGetConnectionsParametersFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.ConnectionParameters.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. A list of connections associated with the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ConnectionParameters.Builder + addConnectionsParametersBuilder(int index) { + return internalGetConnectionsParametersFieldBuilder() + .addBuilder( + index, com.google.cloud.designcenter.v1.ConnectionParameters.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. A list of connections associated with the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getConnectionsParametersBuilderList() { + return internalGetConnectionsParametersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ConnectionParameters, + com.google.cloud.designcenter.v1.ConnectionParameters.Builder, + com.google.cloud.designcenter.v1.ConnectionParametersOrBuilder> + internalGetConnectionsParametersFieldBuilder() { + if (connectionsParametersBuilder_ == null) { + connectionsParametersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ConnectionParameters, + com.google.cloud.designcenter.v1.ConnectionParameters.Builder, + com.google.cloud.designcenter.v1.ConnectionParametersOrBuilder>( + connectionsParameters_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + connectionsParameters_ = null; + } + return connectionsParametersBuilder_; + } + + private int state_ = 0; + + /** + * + * + *
+     * Output only. Deployment state of the component.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ComponentParameters.State state = 4 [(.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. Deployment state of the component.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ComponentParameters.State state = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Deployment state of the component.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ComponentParameters.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ComponentParameters.State getState() { + com.google.cloud.designcenter.v1.ComponentParameters.State result = + com.google.cloud.designcenter.v1.ComponentParameters.State.forNumber(state_); + return result == null + ? com.google.cloud.designcenter.v1.ComponentParameters.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Output only. Deployment state of the component.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ComponentParameters.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.designcenter.v1.ComponentParameters.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Deployment state of the component.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ComponentParameters.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000008); + state_ = 0; + onChanged(); + return this; + } + + private java.util.List + componentParameterSchema_ = java.util.Collections.emptyList(); + + private void ensureComponentParameterSchemaIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + componentParameterSchema_ = + new java.util.ArrayList( + componentParameterSchema_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ComponentParameterSchema, + com.google.cloud.designcenter.v1.ComponentParameterSchema.Builder, + com.google.cloud.designcenter.v1.ComponentParameterSchemaOrBuilder> + componentParameterSchemaBuilder_; + + /** + * + * + *
+     * Output only. The component parameter schema, which includes possible
+     * parameter values.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getComponentParameterSchemaList() { + if (componentParameterSchemaBuilder_ == null) { + return java.util.Collections.unmodifiableList(componentParameterSchema_); + } else { + return componentParameterSchemaBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Output only. The component parameter schema, which includes possible
+     * parameter values.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getComponentParameterSchemaCount() { + if (componentParameterSchemaBuilder_ == null) { + return componentParameterSchema_.size(); + } else { + return componentParameterSchemaBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Output only. The component parameter schema, which includes possible
+     * parameter values.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ComponentParameterSchema getComponentParameterSchema( + int index) { + if (componentParameterSchemaBuilder_ == null) { + return componentParameterSchema_.get(index); + } else { + return componentParameterSchemaBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Output only. The component parameter schema, which includes possible
+     * parameter values.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setComponentParameterSchema( + int index, com.google.cloud.designcenter.v1.ComponentParameterSchema value) { + if (componentParameterSchemaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureComponentParameterSchemaIsMutable(); + componentParameterSchema_.set(index, value); + onChanged(); + } else { + componentParameterSchemaBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. The component parameter schema, which includes possible
+     * parameter values.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setComponentParameterSchema( + int index, + com.google.cloud.designcenter.v1.ComponentParameterSchema.Builder builderForValue) { + if (componentParameterSchemaBuilder_ == null) { + ensureComponentParameterSchemaIsMutable(); + componentParameterSchema_.set(index, builderForValue.build()); + onChanged(); + } else { + componentParameterSchemaBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The component parameter schema, which includes possible
+     * parameter values.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addComponentParameterSchema( + com.google.cloud.designcenter.v1.ComponentParameterSchema value) { + if (componentParameterSchemaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureComponentParameterSchemaIsMutable(); + componentParameterSchema_.add(value); + onChanged(); + } else { + componentParameterSchemaBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Output only. The component parameter schema, which includes possible
+     * parameter values.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addComponentParameterSchema( + int index, com.google.cloud.designcenter.v1.ComponentParameterSchema value) { + if (componentParameterSchemaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureComponentParameterSchemaIsMutable(); + componentParameterSchema_.add(index, value); + onChanged(); + } else { + componentParameterSchemaBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. The component parameter schema, which includes possible
+     * parameter values.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addComponentParameterSchema( + com.google.cloud.designcenter.v1.ComponentParameterSchema.Builder builderForValue) { + if (componentParameterSchemaBuilder_ == null) { + ensureComponentParameterSchemaIsMutable(); + componentParameterSchema_.add(builderForValue.build()); + onChanged(); + } else { + componentParameterSchemaBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The component parameter schema, which includes possible
+     * parameter values.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addComponentParameterSchema( + int index, + com.google.cloud.designcenter.v1.ComponentParameterSchema.Builder builderForValue) { + if (componentParameterSchemaBuilder_ == null) { + ensureComponentParameterSchemaIsMutable(); + componentParameterSchema_.add(index, builderForValue.build()); + onChanged(); + } else { + componentParameterSchemaBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The component parameter schema, which includes possible
+     * parameter values.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllComponentParameterSchema( + java.lang.Iterable + values) { + if (componentParameterSchemaBuilder_ == null) { + ensureComponentParameterSchemaIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, componentParameterSchema_); + onChanged(); + } else { + componentParameterSchemaBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Output only. The component parameter schema, which includes possible
+     * parameter values.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearComponentParameterSchema() { + if (componentParameterSchemaBuilder_ == null) { + componentParameterSchema_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + componentParameterSchemaBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Output only. The component parameter schema, which includes possible
+     * parameter values.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeComponentParameterSchema(int index) { + if (componentParameterSchemaBuilder_ == null) { + ensureComponentParameterSchemaIsMutable(); + componentParameterSchema_.remove(index); + onChanged(); + } else { + componentParameterSchemaBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Output only. The component parameter schema, which includes possible
+     * parameter values.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ComponentParameterSchema.Builder + getComponentParameterSchemaBuilder(int index) { + return internalGetComponentParameterSchemaFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Output only. The component parameter schema, which includes possible
+     * parameter values.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ComponentParameterSchemaOrBuilder + getComponentParameterSchemaOrBuilder(int index) { + if (componentParameterSchemaBuilder_ == null) { + return componentParameterSchema_.get(index); + } else { + return componentParameterSchemaBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Output only. The component parameter schema, which includes possible
+     * parameter values.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends com.google.cloud.designcenter.v1.ComponentParameterSchemaOrBuilder> + getComponentParameterSchemaOrBuilderList() { + if (componentParameterSchemaBuilder_ != null) { + return componentParameterSchemaBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(componentParameterSchema_); + } + } + + /** + * + * + *
+     * Output only. The component parameter schema, which includes possible
+     * parameter values.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ComponentParameterSchema.Builder + addComponentParameterSchemaBuilder() { + return internalGetComponentParameterSchemaFieldBuilder() + .addBuilder( + com.google.cloud.designcenter.v1.ComponentParameterSchema.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. The component parameter schema, which includes possible
+     * parameter values.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ComponentParameterSchema.Builder + addComponentParameterSchemaBuilder(int index) { + return internalGetComponentParameterSchemaFieldBuilder() + .addBuilder( + index, + com.google.cloud.designcenter.v1.ComponentParameterSchema.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. The component parameter schema, which includes possible
+     * parameter values.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getComponentParameterSchemaBuilderList() { + return internalGetComponentParameterSchemaFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ComponentParameterSchema, + com.google.cloud.designcenter.v1.ComponentParameterSchema.Builder, + com.google.cloud.designcenter.v1.ComponentParameterSchemaOrBuilder> + internalGetComponentParameterSchemaFieldBuilder() { + if (componentParameterSchemaBuilder_ == null) { + componentParameterSchemaBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ComponentParameterSchema, + com.google.cloud.designcenter.v1.ComponentParameterSchema.Builder, + com.google.cloud.designcenter.v1.ComponentParameterSchemaOrBuilder>( + componentParameterSchema_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + componentParameterSchema_ = null; + } + return componentParameterSchemaBuilder_; + } + + private com.google.cloud.designcenter.v1.ComponentApplicationInfo applicationInfo_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ComponentApplicationInfo, + com.google.cloud.designcenter.v1.ComponentApplicationInfo.Builder, + com.google.cloud.designcenter.v1.ComponentApplicationInfoOrBuilder> + applicationInfoBuilder_; + + /** + * + * + *
+     * Optional. The application associated with the component.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ComponentApplicationInfo application_info = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the applicationInfo field is set. + */ + public boolean hasApplicationInfo() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+     * Optional. The application associated with the component.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ComponentApplicationInfo application_info = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The applicationInfo. + */ + public com.google.cloud.designcenter.v1.ComponentApplicationInfo getApplicationInfo() { + if (applicationInfoBuilder_ == null) { + return applicationInfo_ == null + ? com.google.cloud.designcenter.v1.ComponentApplicationInfo.getDefaultInstance() + : applicationInfo_; + } else { + return applicationInfoBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The application associated with the component.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ComponentApplicationInfo application_info = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setApplicationInfo( + com.google.cloud.designcenter.v1.ComponentApplicationInfo value) { + if (applicationInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + applicationInfo_ = value; + } else { + applicationInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The application associated with the component.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ComponentApplicationInfo application_info = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setApplicationInfo( + com.google.cloud.designcenter.v1.ComponentApplicationInfo.Builder builderForValue) { + if (applicationInfoBuilder_ == null) { + applicationInfo_ = builderForValue.build(); + } else { + applicationInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The application associated with the component.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ComponentApplicationInfo application_info = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeApplicationInfo( + com.google.cloud.designcenter.v1.ComponentApplicationInfo value) { + if (applicationInfoBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && applicationInfo_ != null + && applicationInfo_ + != com.google.cloud.designcenter.v1.ComponentApplicationInfo.getDefaultInstance()) { + getApplicationInfoBuilder().mergeFrom(value); + } else { + applicationInfo_ = value; + } + } else { + applicationInfoBuilder_.mergeFrom(value); + } + if (applicationInfo_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The application associated with the component.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ComponentApplicationInfo application_info = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearApplicationInfo() { + bitField0_ = (bitField0_ & ~0x00000020); + applicationInfo_ = null; + if (applicationInfoBuilder_ != null) { + applicationInfoBuilder_.dispose(); + applicationInfoBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The application associated with the component.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ComponentApplicationInfo application_info = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ComponentApplicationInfo.Builder + getApplicationInfoBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetApplicationInfoFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The application associated with the component.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ComponentApplicationInfo application_info = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ComponentApplicationInfoOrBuilder + getApplicationInfoOrBuilder() { + if (applicationInfoBuilder_ != null) { + return applicationInfoBuilder_.getMessageOrBuilder(); + } else { + return applicationInfo_ == null + ? com.google.cloud.designcenter.v1.ComponentApplicationInfo.getDefaultInstance() + : applicationInfo_; + } + } + + /** + * + * + *
+     * Optional. The application associated with the component.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ComponentApplicationInfo application_info = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ComponentApplicationInfo, + com.google.cloud.designcenter.v1.ComponentApplicationInfo.Builder, + com.google.cloud.designcenter.v1.ComponentApplicationInfoOrBuilder> + internalGetApplicationInfoFieldBuilder() { + if (applicationInfoBuilder_ == null) { + applicationInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ComponentApplicationInfo, + com.google.cloud.designcenter.v1.ComponentApplicationInfo.Builder, + com.google.cloud.designcenter.v1.ComponentApplicationInfoOrBuilder>( + getApplicationInfo(), getParentForChildren(), isClean()); + applicationInfo_ = null; + } + return applicationInfoBuilder_; + } + + private com.google.cloud.designcenter.v1.ComponentApplicationInfo effectiveApplicationInfo_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ComponentApplicationInfo, + com.google.cloud.designcenter.v1.ComponentApplicationInfo.Builder, + com.google.cloud.designcenter.v1.ComponentApplicationInfoOrBuilder> + effectiveApplicationInfoBuilder_; + + /** + * + * + *
+     * Output only. The effective application associated with the component. This
+     * is the server set application field.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ComponentApplicationInfo effective_application_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the effectiveApplicationInfo field is set. + */ + public boolean hasEffectiveApplicationInfo() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+     * Output only. The effective application associated with the component. This
+     * is the server set application field.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ComponentApplicationInfo effective_application_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The effectiveApplicationInfo. + */ + public com.google.cloud.designcenter.v1.ComponentApplicationInfo getEffectiveApplicationInfo() { + if (effectiveApplicationInfoBuilder_ == null) { + return effectiveApplicationInfo_ == null + ? com.google.cloud.designcenter.v1.ComponentApplicationInfo.getDefaultInstance() + : effectiveApplicationInfo_; + } else { + return effectiveApplicationInfoBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. The effective application associated with the component. This
+     * is the server set application field.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ComponentApplicationInfo effective_application_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEffectiveApplicationInfo( + com.google.cloud.designcenter.v1.ComponentApplicationInfo value) { + if (effectiveApplicationInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + effectiveApplicationInfo_ = value; + } else { + effectiveApplicationInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The effective application associated with the component. This
+     * is the server set application field.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ComponentApplicationInfo effective_application_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEffectiveApplicationInfo( + com.google.cloud.designcenter.v1.ComponentApplicationInfo.Builder builderForValue) { + if (effectiveApplicationInfoBuilder_ == null) { + effectiveApplicationInfo_ = builderForValue.build(); + } else { + effectiveApplicationInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The effective application associated with the component. This
+     * is the server set application field.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ComponentApplicationInfo effective_application_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeEffectiveApplicationInfo( + com.google.cloud.designcenter.v1.ComponentApplicationInfo value) { + if (effectiveApplicationInfoBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && effectiveApplicationInfo_ != null + && effectiveApplicationInfo_ + != com.google.cloud.designcenter.v1.ComponentApplicationInfo.getDefaultInstance()) { + getEffectiveApplicationInfoBuilder().mergeFrom(value); + } else { + effectiveApplicationInfo_ = value; + } + } else { + effectiveApplicationInfoBuilder_.mergeFrom(value); + } + if (effectiveApplicationInfo_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The effective application associated with the component. This
+     * is the server set application field.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ComponentApplicationInfo effective_application_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearEffectiveApplicationInfo() { + bitField0_ = (bitField0_ & ~0x00000040); + effectiveApplicationInfo_ = null; + if (effectiveApplicationInfoBuilder_ != null) { + effectiveApplicationInfoBuilder_.dispose(); + effectiveApplicationInfoBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The effective application associated with the component. This
+     * is the server set application field.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ComponentApplicationInfo effective_application_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ComponentApplicationInfo.Builder + getEffectiveApplicationInfoBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetEffectiveApplicationInfoFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The effective application associated with the component. This
+     * is the server set application field.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ComponentApplicationInfo effective_application_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ComponentApplicationInfoOrBuilder + getEffectiveApplicationInfoOrBuilder() { + if (effectiveApplicationInfoBuilder_ != null) { + return effectiveApplicationInfoBuilder_.getMessageOrBuilder(); + } else { + return effectiveApplicationInfo_ == null + ? com.google.cloud.designcenter.v1.ComponentApplicationInfo.getDefaultInstance() + : effectiveApplicationInfo_; + } + } + + /** + * + * + *
+     * Output only. The effective application associated with the component. This
+     * is the server set application field.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ComponentApplicationInfo effective_application_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ComponentApplicationInfo, + com.google.cloud.designcenter.v1.ComponentApplicationInfo.Builder, + com.google.cloud.designcenter.v1.ComponentApplicationInfoOrBuilder> + internalGetEffectiveApplicationInfoFieldBuilder() { + if (effectiveApplicationInfoBuilder_ == null) { + effectiveApplicationInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ComponentApplicationInfo, + com.google.cloud.designcenter.v1.ComponentApplicationInfo.Builder, + com.google.cloud.designcenter.v1.ComponentApplicationInfoOrBuilder>( + getEffectiveApplicationInfo(), getParentForChildren(), isClean()); + effectiveApplicationInfo_ = null; + } + return effectiveApplicationInfoBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ComponentParameters) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ComponentParameters) + private static final com.google.cloud.designcenter.v1.ComponentParameters DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.ComponentParameters(); + } + + public static com.google.cloud.designcenter.v1.ComponentParameters getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ComponentParameters parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ComponentParameters getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ComponentParametersOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ComponentParametersOrBuilder.java new file mode 100644 index 000000000000..c2a2d631737a --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ComponentParametersOrBuilder.java @@ -0,0 +1,381 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ComponentParametersOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ComponentParameters) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the component parameter.
+   * 
+ * + * string component = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The component. + */ + java.lang.String getComponent(); + + /** + * + * + *
+   * Required. The name of the component parameter.
+   * 
+ * + * string component = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for component. + */ + com.google.protobuf.ByteString getComponentBytes(); + + /** + * + * + *
+   * Optional. A list of parameters associated with the component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getParametersList(); + + /** + * + * + *
+   * Optional. A list of parameters associated with the component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.Parameter getParameters(int index); + + /** + * + * + *
+   * Optional. A list of parameters associated with the component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getParametersCount(); + + /** + * + * + *
+   * Optional. A list of parameters associated with the component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getParametersOrBuilderList(); + + /** + * + * + *
+   * Optional. A list of parameters associated with the component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.ParameterOrBuilder getParametersOrBuilder(int index); + + /** + * + * + *
+   * Output only. A list of connections associated with the component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getConnectionsParametersList(); + + /** + * + * + *
+   * Output only. A list of connections associated with the component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.ConnectionParameters getConnectionsParameters(int index); + + /** + * + * + *
+   * Output only. A list of connections associated with the component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getConnectionsParametersCount(); + + /** + * + * + *
+   * Output only. A list of connections associated with the component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getConnectionsParametersOrBuilderList(); + + /** + * + * + *
+   * Output only. A list of connections associated with the component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.ConnectionParametersOrBuilder getConnectionsParametersOrBuilder( + int index); + + /** + * + * + *
+   * Output only. Deployment state of the component.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ComponentParameters.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
+   * Output only. Deployment state of the component.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ComponentParameters.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.designcenter.v1.ComponentParameters.State getState(); + + /** + * + * + *
+   * Output only. The component parameter schema, which includes possible
+   * parameter values.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getComponentParameterSchemaList(); + + /** + * + * + *
+   * Output only. The component parameter schema, which includes possible
+   * parameter values.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.ComponentParameterSchema getComponentParameterSchema(int index); + + /** + * + * + *
+   * Output only. The component parameter schema, which includes possible
+   * parameter values.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getComponentParameterSchemaCount(); + + /** + * + * + *
+   * Output only. The component parameter schema, which includes possible
+   * parameter values.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getComponentParameterSchemaOrBuilderList(); + + /** + * + * + *
+   * Output only. The component parameter schema, which includes possible
+   * parameter values.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.ComponentParameterSchemaOrBuilder + getComponentParameterSchemaOrBuilder(int index); + + /** + * + * + *
+   * Optional. The application associated with the component.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ComponentApplicationInfo application_info = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the applicationInfo field is set. + */ + boolean hasApplicationInfo(); + + /** + * + * + *
+   * Optional. The application associated with the component.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ComponentApplicationInfo application_info = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The applicationInfo. + */ + com.google.cloud.designcenter.v1.ComponentApplicationInfo getApplicationInfo(); + + /** + * + * + *
+   * Optional. The application associated with the component.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ComponentApplicationInfo application_info = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.ComponentApplicationInfoOrBuilder getApplicationInfoOrBuilder(); + + /** + * + * + *
+   * Output only. The effective application associated with the component. This
+   * is the server set application field.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ComponentApplicationInfo effective_application_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the effectiveApplicationInfo field is set. + */ + boolean hasEffectiveApplicationInfo(); + + /** + * + * + *
+   * Output only. The effective application associated with the component. This
+   * is the server set application field.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ComponentApplicationInfo effective_application_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The effectiveApplicationInfo. + */ + com.google.cloud.designcenter.v1.ComponentApplicationInfo getEffectiveApplicationInfo(); + + /** + * + * + *
+   * Output only. The effective application associated with the component. This
+   * is the server set application field.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ComponentApplicationInfo effective_application_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.ComponentApplicationInfoOrBuilder + getEffectiveApplicationInfoOrBuilder(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ComponentVariable.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ComponentVariable.java new file mode 100644 index 000000000000..63e11e58c65c --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ComponentVariable.java @@ -0,0 +1,787 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/parameters.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * The details of an input/output variable: the variable and the component Uri.
+ * name.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ComponentVariable} + */ +@com.google.protobuf.Generated +public final class ComponentVariable extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ComponentVariable) + ComponentVariableOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ComponentVariable"); + } + + // Use ComponentVariable.newBuilder() to construct. + private ComponentVariable(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ComponentVariable() { + variable_ = ""; + componentUri_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.ParametersProto + .internal_static_google_cloud_designcenter_v1_ComponentVariable_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.ParametersProto + .internal_static_google_cloud_designcenter_v1_ComponentVariable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ComponentVariable.class, + com.google.cloud.designcenter.v1.ComponentVariable.Builder.class); + } + + public static final int VARIABLE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object variable_ = ""; + + /** + * + * + *
+   * Required. Name of the variable.
+   * 
+ * + * string variable = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The variable. + */ + @java.lang.Override + public java.lang.String getVariable() { + java.lang.Object ref = variable_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + variable_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Name of the variable.
+   * 
+ * + * string variable = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for variable. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVariableBytes() { + java.lang.Object ref = variable_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + variable_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COMPONENT_URI_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object componentUri_ = ""; + + /** + * + * + *
+   * Required. Component to which this variable belongs.
+   * 
+ * + * string component_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The componentUri. + */ + @java.lang.Override + public java.lang.String getComponentUri() { + java.lang.Object ref = componentUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + componentUri_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Component to which this variable belongs.
+   * 
+ * + * string component_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for componentUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getComponentUriBytes() { + java.lang.Object ref = componentUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + componentUri_ = 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.GeneratedMessage.isStringEmpty(variable_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, variable_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(componentUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, componentUri_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(variable_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, variable_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(componentUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, componentUri_); + } + 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.designcenter.v1.ComponentVariable)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ComponentVariable other = + (com.google.cloud.designcenter.v1.ComponentVariable) obj; + + if (!getVariable().equals(other.getVariable())) return false; + if (!getComponentUri().equals(other.getComponentUri())) 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) + VARIABLE_FIELD_NUMBER; + hash = (53 * hash) + getVariable().hashCode(); + hash = (37 * hash) + COMPONENT_URI_FIELD_NUMBER; + hash = (53 * hash) + getComponentUri().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.ComponentVariable parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ComponentVariable 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.designcenter.v1.ComponentVariable parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ComponentVariable parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ComponentVariable parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ComponentVariable parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ComponentVariable parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ComponentVariable parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ComponentVariable parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ComponentVariable parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ComponentVariable parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ComponentVariable parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ComponentVariable 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * The details of an input/output variable: the variable and the component Uri.
+   * name.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ComponentVariable} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ComponentVariable) + com.google.cloud.designcenter.v1.ComponentVariableOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.ParametersProto + .internal_static_google_cloud_designcenter_v1_ComponentVariable_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.ParametersProto + .internal_static_google_cloud_designcenter_v1_ComponentVariable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ComponentVariable.class, + com.google.cloud.designcenter.v1.ComponentVariable.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.ComponentVariable.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + variable_ = ""; + componentUri_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.ParametersProto + .internal_static_google_cloud_designcenter_v1_ComponentVariable_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ComponentVariable getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ComponentVariable.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ComponentVariable build() { + com.google.cloud.designcenter.v1.ComponentVariable result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ComponentVariable buildPartial() { + com.google.cloud.designcenter.v1.ComponentVariable result = + new com.google.cloud.designcenter.v1.ComponentVariable(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.ComponentVariable result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.variable_ = variable_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.componentUri_ = componentUri_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.ComponentVariable) { + return mergeFrom((com.google.cloud.designcenter.v1.ComponentVariable) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.ComponentVariable other) { + if (other == com.google.cloud.designcenter.v1.ComponentVariable.getDefaultInstance()) + return this; + if (!other.getVariable().isEmpty()) { + variable_ = other.variable_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getComponentUri().isEmpty()) { + componentUri_ = other.componentUri_; + 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: + { + variable_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + componentUri_ = 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 variable_ = ""; + + /** + * + * + *
+     * Required. Name of the variable.
+     * 
+ * + * string variable = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The variable. + */ + public java.lang.String getVariable() { + java.lang.Object ref = variable_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + variable_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Name of the variable.
+     * 
+ * + * string variable = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for variable. + */ + public com.google.protobuf.ByteString getVariableBytes() { + java.lang.Object ref = variable_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + variable_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Name of the variable.
+     * 
+ * + * string variable = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The variable to set. + * @return This builder for chaining. + */ + public Builder setVariable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + variable_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Name of the variable.
+     * 
+ * + * string variable = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearVariable() { + variable_ = getDefaultInstance().getVariable(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Name of the variable.
+     * 
+ * + * string variable = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for variable to set. + * @return This builder for chaining. + */ + public Builder setVariableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + variable_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object componentUri_ = ""; + + /** + * + * + *
+     * Required. Component to which this variable belongs.
+     * 
+ * + * string component_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The componentUri. + */ + public java.lang.String getComponentUri() { + java.lang.Object ref = componentUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + componentUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Component to which this variable belongs.
+     * 
+ * + * string component_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for componentUri. + */ + public com.google.protobuf.ByteString getComponentUriBytes() { + java.lang.Object ref = componentUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + componentUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Component to which this variable belongs.
+     * 
+ * + * string component_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The componentUri to set. + * @return This builder for chaining. + */ + public Builder setComponentUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + componentUri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Component to which this variable belongs.
+     * 
+ * + * string component_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearComponentUri() { + componentUri_ = getDefaultInstance().getComponentUri(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Component to which this variable belongs.
+     * 
+ * + * string component_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for componentUri to set. + * @return This builder for chaining. + */ + public Builder setComponentUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + componentUri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ComponentVariable) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ComponentVariable) + private static final com.google.cloud.designcenter.v1.ComponentVariable DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.ComponentVariable(); + } + + public static com.google.cloud.designcenter.v1.ComponentVariable getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ComponentVariable parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ComponentVariable getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ComponentVariableOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ComponentVariableOrBuilder.java new file mode 100644 index 000000000000..84d7dad28e96 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ComponentVariableOrBuilder.java @@ -0,0 +1,80 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/parameters.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ComponentVariableOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ComponentVariable) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the variable.
+   * 
+ * + * string variable = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The variable. + */ + java.lang.String getVariable(); + + /** + * + * + *
+   * Required. Name of the variable.
+   * 
+ * + * string variable = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for variable. + */ + com.google.protobuf.ByteString getVariableBytes(); + + /** + * + * + *
+   * Required. Component to which this variable belongs.
+   * 
+ * + * string component_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The componentUri. + */ + java.lang.String getComponentUri(); + + /** + * + * + *
+   * Required. Component to which this variable belongs.
+   * 
+ * + * string component_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for componentUri. + */ + com.google.protobuf.ByteString getComponentUriBytes(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CompositeApplicationParameters.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CompositeApplicationParameters.java new file mode 100644 index 000000000000..a316ccc17a93 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CompositeApplicationParameters.java @@ -0,0 +1,1322 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Holds parameters that are specific to composite applications.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.CompositeApplicationParameters} + */ +@com.google.protobuf.Generated +public final class CompositeApplicationParameters extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.CompositeApplicationParameters) + CompositeApplicationParametersOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "CompositeApplicationParameters"); + } + + // Use CompositeApplicationParameters.newBuilder() to construct. + private CompositeApplicationParameters(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CompositeApplicationParameters() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_CompositeApplicationParameters_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetServiceAccountMap(); + case 2: + return internalGetProjectParametersMap(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_CompositeApplicationParameters_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.CompositeApplicationParameters.class, + com.google.cloud.designcenter.v1.CompositeApplicationParameters.Builder.class); + } + + public static final int SERVICE_ACCOUNT_MAP_FIELD_NUMBER = 1; + + private static final class ServiceAccountMapDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_CompositeApplicationParameters_ServiceAccountMapEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField serviceAccountMap_; + + private com.google.protobuf.MapField + internalGetServiceAccountMap() { + if (serviceAccountMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ServiceAccountMapDefaultEntryHolder.defaultEntry); + } + return serviceAccountMap_; + } + + public int getServiceAccountMapCount() { + return internalGetServiceAccountMap().getMap().size(); + } + + /** + * + * + *
+   * Optional. A map from a component's URI to the deployment service account
+   * for composite application. key format:
+   * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/components/{component}
+   * value format:
+   * projects/{project}/serviceAccounts/{email_address}
+   * 
+ * + * + * map<string, string> service_account_map = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsServiceAccountMap(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetServiceAccountMap().getMap().containsKey(key); + } + + /** Use {@link #getServiceAccountMapMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getServiceAccountMap() { + return getServiceAccountMapMap(); + } + + /** + * + * + *
+   * Optional. A map from a component's URI to the deployment service account
+   * for composite application. key format:
+   * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/components/{component}
+   * value format:
+   * projects/{project}/serviceAccounts/{email_address}
+   * 
+ * + * + * map<string, string> service_account_map = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getServiceAccountMapMap() { + return internalGetServiceAccountMap().getMap(); + } + + /** + * + * + *
+   * Optional. A map from a component's URI to the deployment service account
+   * for composite application. key format:
+   * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/components/{component}
+   * value format:
+   * projects/{project}/serviceAccounts/{email_address}
+   * 
+ * + * + * map<string, string> service_account_map = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getServiceAccountMapOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetServiceAccountMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+   * Optional. A map from a component's URI to the deployment service account
+   * for composite application. key format:
+   * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/components/{component}
+   * value format:
+   * projects/{project}/serviceAccounts/{email_address}
+   * 
+ * + * + * map<string, string> service_account_map = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getServiceAccountMapOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetServiceAccountMap().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int PROJECT_PARAMETERS_MAP_FIELD_NUMBER = 2; + + private static final class ProjectParametersMapDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.designcenter.v1.ProjectParametersList> + defaultEntry = + com.google.protobuf.MapEntry + . + newDefaultInstance( + com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_CompositeApplicationParameters_ProjectParametersMapEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.designcenter.v1.ProjectParametersList + .getDefaultInstance()); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.designcenter.v1.ProjectParametersList> + projectParametersMap_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.designcenter.v1.ProjectParametersList> + internalGetProjectParametersMap() { + if (projectParametersMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ProjectParametersMapDefaultEntryHolder.defaultEntry); + } + return projectParametersMap_; + } + + public int getProjectParametersMapCount() { + return internalGetProjectParametersMap().getMap().size(); + } + + /** + * + * + *
+   * Output only. A map from a component's URI to its project parameters.
+   * The key format is:
+   * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/components/{component}
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.ProjectParametersList> project_parameters_map = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public boolean containsProjectParametersMap(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetProjectParametersMap().getMap().containsKey(key); + } + + /** Use {@link #getProjectParametersMapMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getProjectParametersMap() { + return getProjectParametersMapMap(); + } + + /** + * + * + *
+   * Output only. A map from a component's URI to its project parameters.
+   * The key format is:
+   * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/components/{component}
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.ProjectParametersList> project_parameters_map = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.Map + getProjectParametersMapMap() { + return internalGetProjectParametersMap().getMap(); + } + + /** + * + * + *
+   * Output only. A map from a component's URI to its project parameters.
+   * The key format is:
+   * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/components/{component}
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.ProjectParametersList> project_parameters_map = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.designcenter.v1.ProjectParametersList + getProjectParametersMapOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.designcenter.v1.ProjectParametersList defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetProjectParametersMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+   * Output only. A map from a component's URI to its project parameters.
+   * The key format is:
+   * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/components/{component}
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.ProjectParametersList> project_parameters_map = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ProjectParametersList getProjectParametersMapOrThrow( + java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetProjectParametersMap().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, + internalGetServiceAccountMap(), + ServiceAccountMapDefaultEntryHolder.defaultEntry, + 1); + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, + internalGetProjectParametersMap(), + ProjectParametersMapDefaultEntryHolder.defaultEntry, + 2); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry : + internalGetServiceAccountMap().getMap().entrySet()) { + com.google.protobuf.MapEntry serviceAccountMap__ = + ServiceAccountMapDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, serviceAccountMap__); + } + for (java.util.Map.Entry< + java.lang.String, com.google.cloud.designcenter.v1.ProjectParametersList> + entry : internalGetProjectParametersMap().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.designcenter.v1.ProjectParametersList> + projectParametersMap__ = + ProjectParametersMapDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, projectParametersMap__); + } + 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.designcenter.v1.CompositeApplicationParameters)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.CompositeApplicationParameters other = + (com.google.cloud.designcenter.v1.CompositeApplicationParameters) obj; + + if (!internalGetServiceAccountMap().equals(other.internalGetServiceAccountMap())) return false; + if (!internalGetProjectParametersMap().equals(other.internalGetProjectParametersMap())) + 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 (!internalGetServiceAccountMap().getMap().isEmpty()) { + hash = (37 * hash) + SERVICE_ACCOUNT_MAP_FIELD_NUMBER; + hash = (53 * hash) + internalGetServiceAccountMap().hashCode(); + } + if (!internalGetProjectParametersMap().getMap().isEmpty()) { + hash = (37 * hash) + PROJECT_PARAMETERS_MAP_FIELD_NUMBER; + hash = (53 * hash) + internalGetProjectParametersMap().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.CompositeApplicationParameters parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.CompositeApplicationParameters 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.designcenter.v1.CompositeApplicationParameters parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.CompositeApplicationParameters parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.CompositeApplicationParameters parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.CompositeApplicationParameters parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.CompositeApplicationParameters parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.CompositeApplicationParameters parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.CompositeApplicationParameters parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.CompositeApplicationParameters parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.CompositeApplicationParameters parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.CompositeApplicationParameters parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.CompositeApplicationParameters 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Holds parameters that are specific to composite applications.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.CompositeApplicationParameters} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.CompositeApplicationParameters) + com.google.cloud.designcenter.v1.CompositeApplicationParametersOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_CompositeApplicationParameters_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetServiceAccountMap(); + case 2: + return internalGetProjectParametersMap(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetMutableServiceAccountMap(); + case 2: + return internalGetMutableProjectParametersMap(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_CompositeApplicationParameters_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.CompositeApplicationParameters.class, + com.google.cloud.designcenter.v1.CompositeApplicationParameters.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.CompositeApplicationParameters.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + internalGetMutableServiceAccountMap().clear(); + internalGetMutableProjectParametersMap().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_CompositeApplicationParameters_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.CompositeApplicationParameters + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.CompositeApplicationParameters.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.CompositeApplicationParameters build() { + com.google.cloud.designcenter.v1.CompositeApplicationParameters result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.CompositeApplicationParameters buildPartial() { + com.google.cloud.designcenter.v1.CompositeApplicationParameters result = + new com.google.cloud.designcenter.v1.CompositeApplicationParameters(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.CompositeApplicationParameters result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.serviceAccountMap_ = internalGetServiceAccountMap(); + result.serviceAccountMap_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.projectParametersMap_ = + internalGetProjectParametersMap() + .build(ProjectParametersMapDefaultEntryHolder.defaultEntry); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.CompositeApplicationParameters) { + return mergeFrom((com.google.cloud.designcenter.v1.CompositeApplicationParameters) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.designcenter.v1.CompositeApplicationParameters other) { + if (other + == com.google.cloud.designcenter.v1.CompositeApplicationParameters.getDefaultInstance()) + return this; + internalGetMutableServiceAccountMap().mergeFrom(other.internalGetServiceAccountMap()); + bitField0_ |= 0x00000001; + internalGetMutableProjectParametersMap().mergeFrom(other.internalGetProjectParametersMap()); + bitField0_ |= 0x00000002; + 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.protobuf.MapEntry + serviceAccountMap__ = + input.readMessage( + ServiceAccountMapDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableServiceAccountMap() + .getMutableMap() + .put(serviceAccountMap__.getKey(), serviceAccountMap__.getValue()); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.designcenter.v1.ProjectParametersList> + projectParametersMap__ = + input.readMessage( + ProjectParametersMapDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableProjectParametersMap() + .ensureBuilderMap() + .put(projectParametersMap__.getKey(), projectParametersMap__.getValue()); + 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.protobuf.MapField serviceAccountMap_; + + private com.google.protobuf.MapField + internalGetServiceAccountMap() { + if (serviceAccountMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ServiceAccountMapDefaultEntryHolder.defaultEntry); + } + return serviceAccountMap_; + } + + private com.google.protobuf.MapField + internalGetMutableServiceAccountMap() { + if (serviceAccountMap_ == null) { + serviceAccountMap_ = + com.google.protobuf.MapField.newMapField( + ServiceAccountMapDefaultEntryHolder.defaultEntry); + } + if (!serviceAccountMap_.isMutable()) { + serviceAccountMap_ = serviceAccountMap_.copy(); + } + bitField0_ |= 0x00000001; + onChanged(); + return serviceAccountMap_; + } + + public int getServiceAccountMapCount() { + return internalGetServiceAccountMap().getMap().size(); + } + + /** + * + * + *
+     * Optional. A map from a component's URI to the deployment service account
+     * for composite application. key format:
+     * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/components/{component}
+     * value format:
+     * projects/{project}/serviceAccounts/{email_address}
+     * 
+ * + * + * map<string, string> service_account_map = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsServiceAccountMap(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetServiceAccountMap().getMap().containsKey(key); + } + + /** Use {@link #getServiceAccountMapMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getServiceAccountMap() { + return getServiceAccountMapMap(); + } + + /** + * + * + *
+     * Optional. A map from a component's URI to the deployment service account
+     * for composite application. key format:
+     * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/components/{component}
+     * value format:
+     * projects/{project}/serviceAccounts/{email_address}
+     * 
+ * + * + * map<string, string> service_account_map = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getServiceAccountMapMap() { + return internalGetServiceAccountMap().getMap(); + } + + /** + * + * + *
+     * Optional. A map from a component's URI to the deployment service account
+     * for composite application. key format:
+     * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/components/{component}
+     * value format:
+     * projects/{project}/serviceAccounts/{email_address}
+     * 
+ * + * + * map<string, string> service_account_map = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getServiceAccountMapOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetServiceAccountMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+     * Optional. A map from a component's URI to the deployment service account
+     * for composite application. key format:
+     * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/components/{component}
+     * value format:
+     * projects/{project}/serviceAccounts/{email_address}
+     * 
+ * + * + * map<string, string> service_account_map = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getServiceAccountMapOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetServiceAccountMap().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearServiceAccountMap() { + bitField0_ = (bitField0_ & ~0x00000001); + internalGetMutableServiceAccountMap().getMutableMap().clear(); + return this; + } + + /** + * + * + *
+     * Optional. A map from a component's URI to the deployment service account
+     * for composite application. key format:
+     * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/components/{component}
+     * value format:
+     * projects/{project}/serviceAccounts/{email_address}
+     * 
+ * + * + * map<string, string> service_account_map = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeServiceAccountMap(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableServiceAccountMap().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableServiceAccountMap() { + bitField0_ |= 0x00000001; + return internalGetMutableServiceAccountMap().getMutableMap(); + } + + /** + * + * + *
+     * Optional. A map from a component's URI to the deployment service account
+     * for composite application. key format:
+     * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/components/{component}
+     * value format:
+     * projects/{project}/serviceAccounts/{email_address}
+     * 
+ * + * + * map<string, string> service_account_map = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putServiceAccountMap(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableServiceAccountMap().getMutableMap().put(key, value); + bitField0_ |= 0x00000001; + return this; + } + + /** + * + * + *
+     * Optional. A map from a component's URI to the deployment service account
+     * for composite application. key format:
+     * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/components/{component}
+     * value format:
+     * projects/{project}/serviceAccounts/{email_address}
+     * 
+ * + * + * map<string, string> service_account_map = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllServiceAccountMap( + java.util.Map values) { + internalGetMutableServiceAccountMap().getMutableMap().putAll(values); + bitField0_ |= 0x00000001; + return this; + } + + private static final class ProjectParametersMapConverter + implements com.google.protobuf.MapFieldBuilder.Converter< + java.lang.String, + com.google.cloud.designcenter.v1.ProjectParametersListOrBuilder, + com.google.cloud.designcenter.v1.ProjectParametersList> { + @java.lang.Override + public com.google.cloud.designcenter.v1.ProjectParametersList build( + com.google.cloud.designcenter.v1.ProjectParametersListOrBuilder val) { + if (val instanceof com.google.cloud.designcenter.v1.ProjectParametersList) { + return (com.google.cloud.designcenter.v1.ProjectParametersList) val; + } + return ((com.google.cloud.designcenter.v1.ProjectParametersList.Builder) val).build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.designcenter.v1.ProjectParametersList> + defaultEntry() { + return ProjectParametersMapDefaultEntryHolder.defaultEntry; + } + } + ; + + private static final ProjectParametersMapConverter projectParametersMapConverter = + new ProjectParametersMapConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.designcenter.v1.ProjectParametersListOrBuilder, + com.google.cloud.designcenter.v1.ProjectParametersList, + com.google.cloud.designcenter.v1.ProjectParametersList.Builder> + projectParametersMap_; + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.designcenter.v1.ProjectParametersListOrBuilder, + com.google.cloud.designcenter.v1.ProjectParametersList, + com.google.cloud.designcenter.v1.ProjectParametersList.Builder> + internalGetProjectParametersMap() { + if (projectParametersMap_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(projectParametersMapConverter); + } + return projectParametersMap_; + } + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.designcenter.v1.ProjectParametersListOrBuilder, + com.google.cloud.designcenter.v1.ProjectParametersList, + com.google.cloud.designcenter.v1.ProjectParametersList.Builder> + internalGetMutableProjectParametersMap() { + if (projectParametersMap_ == null) { + projectParametersMap_ = + new com.google.protobuf.MapFieldBuilder<>(projectParametersMapConverter); + } + bitField0_ |= 0x00000002; + onChanged(); + return projectParametersMap_; + } + + public int getProjectParametersMapCount() { + return internalGetProjectParametersMap().ensureBuilderMap().size(); + } + + /** + * + * + *
+     * Output only. A map from a component's URI to its project parameters.
+     * The key format is:
+     * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/components/{component}
+     * 
+ * + * + * map<string, .google.cloud.designcenter.v1.ProjectParametersList> project_parameters_map = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public boolean containsProjectParametersMap(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetProjectParametersMap().ensureBuilderMap().containsKey(key); + } + + /** Use {@link #getProjectParametersMapMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getProjectParametersMap() { + return getProjectParametersMapMap(); + } + + /** + * + * + *
+     * Output only. A map from a component's URI to its project parameters.
+     * The key format is:
+     * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/components/{component}
+     * 
+ * + * + * map<string, .google.cloud.designcenter.v1.ProjectParametersList> project_parameters_map = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.Map + getProjectParametersMapMap() { + return internalGetProjectParametersMap().getImmutableMap(); + } + + /** + * + * + *
+     * Output only. A map from a component's URI to its project parameters.
+     * The key format is:
+     * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/components/{component}
+     * 
+ * + * + * map<string, .google.cloud.designcenter.v1.ProjectParametersList> project_parameters_map = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.designcenter.v1.ProjectParametersList + getProjectParametersMapOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.designcenter.v1.ProjectParametersList defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, com.google.cloud.designcenter.v1.ProjectParametersListOrBuilder> + map = internalGetMutableProjectParametersMap().ensureBuilderMap(); + return map.containsKey(key) + ? projectParametersMapConverter.build(map.get(key)) + : defaultValue; + } + + /** + * + * + *
+     * Output only. A map from a component's URI to its project parameters.
+     * The key format is:
+     * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/components/{component}
+     * 
+ * + * + * map<string, .google.cloud.designcenter.v1.ProjectParametersList> project_parameters_map = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ProjectParametersList getProjectParametersMapOrThrow( + java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, com.google.cloud.designcenter.v1.ProjectParametersListOrBuilder> + map = internalGetMutableProjectParametersMap().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return projectParametersMapConverter.build(map.get(key)); + } + + public Builder clearProjectParametersMap() { + bitField0_ = (bitField0_ & ~0x00000002); + internalGetMutableProjectParametersMap().clear(); + return this; + } + + /** + * + * + *
+     * Output only. A map from a component's URI to its project parameters.
+     * The key format is:
+     * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/components/{component}
+     * 
+ * + * + * map<string, .google.cloud.designcenter.v1.ProjectParametersList> project_parameters_map = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeProjectParametersMap(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableProjectParametersMap().ensureBuilderMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map + getMutableProjectParametersMap() { + bitField0_ |= 0x00000002; + return internalGetMutableProjectParametersMap().ensureMessageMap(); + } + + /** + * + * + *
+     * Output only. A map from a component's URI to its project parameters.
+     * The key format is:
+     * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/components/{component}
+     * 
+ * + * + * map<string, .google.cloud.designcenter.v1.ProjectParametersList> project_parameters_map = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder putProjectParametersMap( + java.lang.String key, com.google.cloud.designcenter.v1.ProjectParametersList value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableProjectParametersMap().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00000002; + return this; + } + + /** + * + * + *
+     * Output only. A map from a component's URI to its project parameters.
+     * The key format is:
+     * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/components/{component}
+     * 
+ * + * + * map<string, .google.cloud.designcenter.v1.ProjectParametersList> project_parameters_map = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder putAllProjectParametersMap( + java.util.Map + values) { + for (java.util.Map.Entry< + java.lang.String, com.google.cloud.designcenter.v1.ProjectParametersList> + e : values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableProjectParametersMap().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00000002; + return this; + } + + /** + * + * + *
+     * Output only. A map from a component's URI to its project parameters.
+     * The key format is:
+     * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/components/{component}
+     * 
+ * + * + * map<string, .google.cloud.designcenter.v1.ProjectParametersList> project_parameters_map = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ProjectParametersList.Builder + putProjectParametersMapBuilderIfAbsent(java.lang.String key) { + java.util.Map< + java.lang.String, com.google.cloud.designcenter.v1.ProjectParametersListOrBuilder> + builderMap = internalGetMutableProjectParametersMap().ensureBuilderMap(); + com.google.cloud.designcenter.v1.ProjectParametersListOrBuilder entry = builderMap.get(key); + if (entry == null) { + entry = com.google.cloud.designcenter.v1.ProjectParametersList.newBuilder(); + builderMap.put(key, entry); + } + if (entry instanceof com.google.cloud.designcenter.v1.ProjectParametersList) { + entry = ((com.google.cloud.designcenter.v1.ProjectParametersList) entry).toBuilder(); + builderMap.put(key, entry); + } + return (com.google.cloud.designcenter.v1.ProjectParametersList.Builder) entry; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.CompositeApplicationParameters) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.CompositeApplicationParameters) + private static final com.google.cloud.designcenter.v1.CompositeApplicationParameters + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.CompositeApplicationParameters(); + } + + public static com.google.cloud.designcenter.v1.CompositeApplicationParameters + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CompositeApplicationParameters parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.CompositeApplicationParameters + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CompositeApplicationParametersOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CompositeApplicationParametersOrBuilder.java new file mode 100644 index 000000000000..ae1711ade9ef --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CompositeApplicationParametersOrBuilder.java @@ -0,0 +1,207 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface CompositeApplicationParametersOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.CompositeApplicationParameters) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. A map from a component's URI to the deployment service account
+   * for composite application. key format:
+   * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/components/{component}
+   * value format:
+   * projects/{project}/serviceAccounts/{email_address}
+   * 
+ * + * + * map<string, string> service_account_map = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getServiceAccountMapCount(); + + /** + * + * + *
+   * Optional. A map from a component's URI to the deployment service account
+   * for composite application. key format:
+   * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/components/{component}
+   * value format:
+   * projects/{project}/serviceAccounts/{email_address}
+   * 
+ * + * + * map<string, string> service_account_map = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsServiceAccountMap(java.lang.String key); + + /** Use {@link #getServiceAccountMapMap()} instead. */ + @java.lang.Deprecated + java.util.Map getServiceAccountMap(); + + /** + * + * + *
+   * Optional. A map from a component's URI to the deployment service account
+   * for composite application. key format:
+   * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/components/{component}
+   * value format:
+   * projects/{project}/serviceAccounts/{email_address}
+   * 
+ * + * + * map<string, string> service_account_map = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getServiceAccountMapMap(); + + /** + * + * + *
+   * Optional. A map from a component's URI to the deployment service account
+   * for composite application. key format:
+   * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/components/{component}
+   * value format:
+   * projects/{project}/serviceAccounts/{email_address}
+   * 
+ * + * + * map<string, string> service_account_map = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + java.lang.String getServiceAccountMapOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
+   * Optional. A map from a component's URI to the deployment service account
+   * for composite application. key format:
+   * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/components/{component}
+   * value format:
+   * projects/{project}/serviceAccounts/{email_address}
+   * 
+ * + * + * map<string, string> service_account_map = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getServiceAccountMapOrThrow(java.lang.String key); + + /** + * + * + *
+   * Output only. A map from a component's URI to its project parameters.
+   * The key format is:
+   * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/components/{component}
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.ProjectParametersList> project_parameters_map = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getProjectParametersMapCount(); + + /** + * + * + *
+   * Output only. A map from a component's URI to its project parameters.
+   * The key format is:
+   * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/components/{component}
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.ProjectParametersList> project_parameters_map = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + boolean containsProjectParametersMap(java.lang.String key); + + /** Use {@link #getProjectParametersMapMap()} instead. */ + @java.lang.Deprecated + java.util.Map + getProjectParametersMap(); + + /** + * + * + *
+   * Output only. A map from a component's URI to its project parameters.
+   * The key format is:
+   * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/components/{component}
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.ProjectParametersList> project_parameters_map = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.Map + getProjectParametersMapMap(); + + /** + * + * + *
+   * Output only. A map from a component's URI to its project parameters.
+   * The key format is:
+   * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/components/{component}
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.ProjectParametersList> project_parameters_map = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + /* nullable */ + com.google.cloud.designcenter.v1.ProjectParametersList getProjectParametersMapOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.designcenter.v1.ProjectParametersList defaultValue); + + /** + * + * + *
+   * Output only. A map from a component's URI to its project parameters.
+   * The key format is:
+   * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/components/{component}
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.ProjectParametersList> project_parameters_map = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.ProjectParametersList getProjectParametersMapOrThrow( + java.lang.String key); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ConfigureAndDeployTemplateRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ConfigureAndDeployTemplateRequest.java new file mode 100644 index 000000000000..e74b91db660b --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ConfigureAndDeployTemplateRequest.java @@ -0,0 +1,1827 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Request message for ConfigureAndDeployTemplate.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ConfigureAndDeployTemplateRequest} + */ +@com.google.protobuf.Generated +public final class ConfigureAndDeployTemplateRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ConfigureAndDeployTemplateRequest) + ConfigureAndDeployTemplateRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ConfigureAndDeployTemplateRequest"); + } + + // Use ConfigureAndDeployTemplateRequest.newBuilder() to construct. + private ConfigureAndDeployTemplateRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ConfigureAndDeployTemplateRequest() { + parent_ = ""; + templateUri_ = ""; + spaceId_ = ""; + templateParameters_ = java.util.Collections.emptyList(); + serviceAccount_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ConfigureAndDeployTemplateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ConfigureAndDeployTemplateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ConfigureAndDeployTemplateRequest.class, + com.google.cloud.designcenter.v1.ConfigureAndDeployTemplateRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent resource where the template will be deployed.
+   * Format: `projects/{project}/locations/{location}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The parent resource where the template will be deployed.
+   * Format: `projects/{project}/locations/{location}`
+   * 
+ * + * + * 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 TEMPLATE_URI_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object templateUri_ = ""; + + /** + * + * + *
+   * Required. The URI or identifier of the template to configure and deploy.
+   * 
+ * + * string template_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The templateUri. + */ + @java.lang.Override + public java.lang.String getTemplateUri() { + java.lang.Object ref = templateUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + templateUri_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The URI or identifier of the template to configure and deploy.
+   * 
+ * + * string template_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for templateUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTemplateUriBytes() { + java.lang.Object ref = templateUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + templateUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SPACE_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object spaceId_ = ""; + + /** + * + * + *
+   * Required. The space ID where the template and application will be created.
+   * 
+ * + * string space_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The spaceId. + */ + @java.lang.Override + public java.lang.String getSpaceId() { + java.lang.Object ref = spaceId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + spaceId_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The space ID where the template and application will be created.
+   * 
+ * + * string space_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for spaceId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSpaceIdBytes() { + java.lang.Object ref = spaceId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + spaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TEMPLATE_PARAMETERS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private java.util.List templateParameters_; + + /** + * + * + *
+   * Optional. Template configuration parameters (key-value pairs).
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter template_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getTemplateParametersList() { + return templateParameters_; + } + + /** + * + * + *
+   * Optional. Template configuration parameters (key-value pairs).
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter template_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getTemplateParametersOrBuilderList() { + return templateParameters_; + } + + /** + * + * + *
+   * Optional. Template configuration parameters (key-value pairs).
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter template_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getTemplateParametersCount() { + return templateParameters_.size(); + } + + /** + * + * + *
+   * Optional. Template configuration parameters (key-value pairs).
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter template_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.Parameter getTemplateParameters(int index) { + return templateParameters_.get(index); + } + + /** + * + * + *
+   * Optional. Template configuration parameters (key-value pairs).
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter template_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ParameterOrBuilder getTemplateParametersOrBuilder( + int index) { + return templateParameters_.get(index); + } + + public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object serviceAccount_ = ""; + + /** + * + * + *
+   * Optional. The resource name of the service account to use for this
+   * deployment.
+   *
+   * - If provided, this service account will be used to execute the deployment
+   * process.
+   * - The caller must have the `iam.serviceAccounts.actAs` permission on this
+   * service account.
+   * - If this field is omitted, a default system service account will be used.
+   * Format: projects/{PROJECT}/serviceAccounts/{EMAIL_ADDRESS}
+   * 
+ * + * string service_account = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The serviceAccount. + */ + @java.lang.Override + public java.lang.String getServiceAccount() { + java.lang.Object ref = serviceAccount_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccount_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The resource name of the service account to use for this
+   * deployment.
+   *
+   * - If provided, this service account will be used to execute the deployment
+   * process.
+   * - The caller must have the `iam.serviceAccounts.actAs` permission on this
+   * service account.
+   * - If this field is omitted, a default system service account will be used.
+   * Format: projects/{PROJECT}/serviceAccounts/{EMAIL_ADDRESS}
+   * 
+ * + * string service_account = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for serviceAccount. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServiceAccountBytes() { + java.lang.Object ref = serviceAccount_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAccount_ = 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.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(templateUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, templateUri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(spaceId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, spaceId_); + } + for (int i = 0; i < templateParameters_.size(); i++) { + output.writeMessage(4, templateParameters_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(serviceAccount_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, serviceAccount_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(templateUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, templateUri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(spaceId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, spaceId_); + } + for (int i = 0; i < templateParameters_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(4, templateParameters_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(serviceAccount_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, serviceAccount_); + } + 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.designcenter.v1.ConfigureAndDeployTemplateRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ConfigureAndDeployTemplateRequest other = + (com.google.cloud.designcenter.v1.ConfigureAndDeployTemplateRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getTemplateUri().equals(other.getTemplateUri())) return false; + if (!getSpaceId().equals(other.getSpaceId())) return false; + if (!getTemplateParametersList().equals(other.getTemplateParametersList())) return false; + if (!getServiceAccount().equals(other.getServiceAccount())) 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) + TEMPLATE_URI_FIELD_NUMBER; + hash = (53 * hash) + getTemplateUri().hashCode(); + hash = (37 * hash) + SPACE_ID_FIELD_NUMBER; + hash = (53 * hash) + getSpaceId().hashCode(); + if (getTemplateParametersCount() > 0) { + hash = (37 * hash) + TEMPLATE_PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getTemplateParametersList().hashCode(); + } + hash = (37 * hash) + SERVICE_ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getServiceAccount().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.ConfigureAndDeployTemplateRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ConfigureAndDeployTemplateRequest 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.designcenter.v1.ConfigureAndDeployTemplateRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ConfigureAndDeployTemplateRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ConfigureAndDeployTemplateRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ConfigureAndDeployTemplateRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ConfigureAndDeployTemplateRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ConfigureAndDeployTemplateRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ConfigureAndDeployTemplateRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ConfigureAndDeployTemplateRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ConfigureAndDeployTemplateRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ConfigureAndDeployTemplateRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ConfigureAndDeployTemplateRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for ConfigureAndDeployTemplate.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ConfigureAndDeployTemplateRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ConfigureAndDeployTemplateRequest) + com.google.cloud.designcenter.v1.ConfigureAndDeployTemplateRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ConfigureAndDeployTemplateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ConfigureAndDeployTemplateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ConfigureAndDeployTemplateRequest.class, + com.google.cloud.designcenter.v1.ConfigureAndDeployTemplateRequest.Builder.class); + } + + // Construct using + // com.google.cloud.designcenter.v1.ConfigureAndDeployTemplateRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + templateUri_ = ""; + spaceId_ = ""; + if (templateParametersBuilder_ == null) { + templateParameters_ = java.util.Collections.emptyList(); + } else { + templateParameters_ = null; + templateParametersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + serviceAccount_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ConfigureAndDeployTemplateRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ConfigureAndDeployTemplateRequest + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ConfigureAndDeployTemplateRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ConfigureAndDeployTemplateRequest build() { + com.google.cloud.designcenter.v1.ConfigureAndDeployTemplateRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ConfigureAndDeployTemplateRequest buildPartial() { + com.google.cloud.designcenter.v1.ConfigureAndDeployTemplateRequest result = + new com.google.cloud.designcenter.v1.ConfigureAndDeployTemplateRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.designcenter.v1.ConfigureAndDeployTemplateRequest result) { + if (templateParametersBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + templateParameters_ = java.util.Collections.unmodifiableList(templateParameters_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.templateParameters_ = templateParameters_; + } else { + result.templateParameters_ = templateParametersBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.ConfigureAndDeployTemplateRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.templateUri_ = templateUri_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.spaceId_ = spaceId_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.serviceAccount_ = serviceAccount_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.ConfigureAndDeployTemplateRequest) { + return mergeFrom( + (com.google.cloud.designcenter.v1.ConfigureAndDeployTemplateRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.designcenter.v1.ConfigureAndDeployTemplateRequest other) { + if (other + == com.google.cloud.designcenter.v1.ConfigureAndDeployTemplateRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getTemplateUri().isEmpty()) { + templateUri_ = other.templateUri_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getSpaceId().isEmpty()) { + spaceId_ = other.spaceId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (templateParametersBuilder_ == null) { + if (!other.templateParameters_.isEmpty()) { + if (templateParameters_.isEmpty()) { + templateParameters_ = other.templateParameters_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureTemplateParametersIsMutable(); + templateParameters_.addAll(other.templateParameters_); + } + onChanged(); + } + } else { + if (!other.templateParameters_.isEmpty()) { + if (templateParametersBuilder_.isEmpty()) { + templateParametersBuilder_.dispose(); + templateParametersBuilder_ = null; + templateParameters_ = other.templateParameters_; + bitField0_ = (bitField0_ & ~0x00000008); + templateParametersBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetTemplateParametersFieldBuilder() + : null; + } else { + templateParametersBuilder_.addAllMessages(other.templateParameters_); + } + } + } + if (!other.getServiceAccount().isEmpty()) { + serviceAccount_ = other.serviceAccount_; + 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 18: + { + templateUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + spaceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + com.google.cloud.designcenter.v1.Parameter m = + input.readMessage( + com.google.cloud.designcenter.v1.Parameter.parser(), extensionRegistry); + if (templateParametersBuilder_ == null) { + ensureTemplateParametersIsMutable(); + templateParameters_.add(m); + } else { + templateParametersBuilder_.addMessage(m); + } + break; + } // case 34 + case 42: + { + serviceAccount_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent resource where the template will be deployed.
+     * Format: `projects/{project}/locations/{location}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The parent resource where the template will be deployed.
+     * Format: `projects/{project}/locations/{location}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The parent resource where the template will be deployed.
+     * Format: `projects/{project}/locations/{location}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource where the template will be deployed.
+     * Format: `projects/{project}/locations/{location}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource where the template will be deployed.
+     * Format: `projects/{project}/locations/{location}`
+     * 
+ * + * + * 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 templateUri_ = ""; + + /** + * + * + *
+     * Required. The URI or identifier of the template to configure and deploy.
+     * 
+ * + * string template_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The templateUri. + */ + public java.lang.String getTemplateUri() { + java.lang.Object ref = templateUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + templateUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The URI or identifier of the template to configure and deploy.
+     * 
+ * + * string template_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for templateUri. + */ + public com.google.protobuf.ByteString getTemplateUriBytes() { + java.lang.Object ref = templateUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + templateUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The URI or identifier of the template to configure and deploy.
+     * 
+ * + * string template_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The templateUri to set. + * @return This builder for chaining. + */ + public Builder setTemplateUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + templateUri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The URI or identifier of the template to configure and deploy.
+     * 
+ * + * string template_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearTemplateUri() { + templateUri_ = getDefaultInstance().getTemplateUri(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The URI or identifier of the template to configure and deploy.
+     * 
+ * + * string template_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for templateUri to set. + * @return This builder for chaining. + */ + public Builder setTemplateUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + templateUri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object spaceId_ = ""; + + /** + * + * + *
+     * Required. The space ID where the template and application will be created.
+     * 
+ * + * string space_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The spaceId. + */ + public java.lang.String getSpaceId() { + java.lang.Object ref = spaceId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + spaceId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The space ID where the template and application will be created.
+     * 
+ * + * string space_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for spaceId. + */ + public com.google.protobuf.ByteString getSpaceIdBytes() { + java.lang.Object ref = spaceId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + spaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The space ID where the template and application will be created.
+     * 
+ * + * string space_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The spaceId to set. + * @return This builder for chaining. + */ + public Builder setSpaceId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + spaceId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The space ID where the template and application will be created.
+     * 
+ * + * string space_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearSpaceId() { + spaceId_ = getDefaultInstance().getSpaceId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The space ID where the template and application will be created.
+     * 
+ * + * string space_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for spaceId to set. + * @return This builder for chaining. + */ + public Builder setSpaceIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + spaceId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.util.List templateParameters_ = + java.util.Collections.emptyList(); + + private void ensureTemplateParametersIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + templateParameters_ = + new java.util.ArrayList( + templateParameters_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Parameter, + com.google.cloud.designcenter.v1.Parameter.Builder, + com.google.cloud.designcenter.v1.ParameterOrBuilder> + templateParametersBuilder_; + + /** + * + * + *
+     * Optional. Template configuration parameters (key-value pairs).
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter template_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getTemplateParametersList() { + if (templateParametersBuilder_ == null) { + return java.util.Collections.unmodifiableList(templateParameters_); + } else { + return templateParametersBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. Template configuration parameters (key-value pairs).
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter template_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getTemplateParametersCount() { + if (templateParametersBuilder_ == null) { + return templateParameters_.size(); + } else { + return templateParametersBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. Template configuration parameters (key-value pairs).
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter template_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter getTemplateParameters(int index) { + if (templateParametersBuilder_ == null) { + return templateParameters_.get(index); + } else { + return templateParametersBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. Template configuration parameters (key-value pairs).
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter template_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTemplateParameters( + int index, com.google.cloud.designcenter.v1.Parameter value) { + if (templateParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTemplateParametersIsMutable(); + templateParameters_.set(index, value); + onChanged(); + } else { + templateParametersBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Template configuration parameters (key-value pairs).
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter template_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTemplateParameters( + int index, com.google.cloud.designcenter.v1.Parameter.Builder builderForValue) { + if (templateParametersBuilder_ == null) { + ensureTemplateParametersIsMutable(); + templateParameters_.set(index, builderForValue.build()); + onChanged(); + } else { + templateParametersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Template configuration parameters (key-value pairs).
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter template_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addTemplateParameters(com.google.cloud.designcenter.v1.Parameter value) { + if (templateParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTemplateParametersIsMutable(); + templateParameters_.add(value); + onChanged(); + } else { + templateParametersBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. Template configuration parameters (key-value pairs).
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter template_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addTemplateParameters( + int index, com.google.cloud.designcenter.v1.Parameter value) { + if (templateParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTemplateParametersIsMutable(); + templateParameters_.add(index, value); + onChanged(); + } else { + templateParametersBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Template configuration parameters (key-value pairs).
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter template_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addTemplateParameters( + com.google.cloud.designcenter.v1.Parameter.Builder builderForValue) { + if (templateParametersBuilder_ == null) { + ensureTemplateParametersIsMutable(); + templateParameters_.add(builderForValue.build()); + onChanged(); + } else { + templateParametersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Template configuration parameters (key-value pairs).
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter template_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addTemplateParameters( + int index, com.google.cloud.designcenter.v1.Parameter.Builder builderForValue) { + if (templateParametersBuilder_ == null) { + ensureTemplateParametersIsMutable(); + templateParameters_.add(index, builderForValue.build()); + onChanged(); + } else { + templateParametersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Template configuration parameters (key-value pairs).
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter template_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllTemplateParameters( + java.lang.Iterable values) { + if (templateParametersBuilder_ == null) { + ensureTemplateParametersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, templateParameters_); + onChanged(); + } else { + templateParametersBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. Template configuration parameters (key-value pairs).
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter template_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearTemplateParameters() { + if (templateParametersBuilder_ == null) { + templateParameters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + templateParametersBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Template configuration parameters (key-value pairs).
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter template_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeTemplateParameters(int index) { + if (templateParametersBuilder_ == null) { + ensureTemplateParametersIsMutable(); + templateParameters_.remove(index); + onChanged(); + } else { + templateParametersBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. Template configuration parameters (key-value pairs).
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter template_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter.Builder getTemplateParametersBuilder( + int index) { + return internalGetTemplateParametersFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. Template configuration parameters (key-value pairs).
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter template_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ParameterOrBuilder getTemplateParametersOrBuilder( + int index) { + if (templateParametersBuilder_ == null) { + return templateParameters_.get(index); + } else { + return templateParametersBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. Template configuration parameters (key-value pairs).
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter template_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getTemplateParametersOrBuilderList() { + if (templateParametersBuilder_ != null) { + return templateParametersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(templateParameters_); + } + } + + /** + * + * + *
+     * Optional. Template configuration parameters (key-value pairs).
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter template_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter.Builder addTemplateParametersBuilder() { + return internalGetTemplateParametersFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.Parameter.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Template configuration parameters (key-value pairs).
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter template_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter.Builder addTemplateParametersBuilder( + int index) { + return internalGetTemplateParametersFieldBuilder() + .addBuilder(index, com.google.cloud.designcenter.v1.Parameter.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Template configuration parameters (key-value pairs).
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter template_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getTemplateParametersBuilderList() { + return internalGetTemplateParametersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Parameter, + com.google.cloud.designcenter.v1.Parameter.Builder, + com.google.cloud.designcenter.v1.ParameterOrBuilder> + internalGetTemplateParametersFieldBuilder() { + if (templateParametersBuilder_ == null) { + templateParametersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Parameter, + com.google.cloud.designcenter.v1.Parameter.Builder, + com.google.cloud.designcenter.v1.ParameterOrBuilder>( + templateParameters_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + templateParameters_ = null; + } + return templateParametersBuilder_; + } + + private java.lang.Object serviceAccount_ = ""; + + /** + * + * + *
+     * Optional. The resource name of the service account to use for this
+     * deployment.
+     *
+     * - If provided, this service account will be used to execute the deployment
+     * process.
+     * - The caller must have the `iam.serviceAccounts.actAs` permission on this
+     * service account.
+     * - If this field is omitted, a default system service account will be used.
+     * Format: projects/{PROJECT}/serviceAccounts/{EMAIL_ADDRESS}
+     * 
+ * + * string service_account = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The serviceAccount. + */ + public java.lang.String getServiceAccount() { + java.lang.Object ref = serviceAccount_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccount_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The resource name of the service account to use for this
+     * deployment.
+     *
+     * - If provided, this service account will be used to execute the deployment
+     * process.
+     * - The caller must have the `iam.serviceAccounts.actAs` permission on this
+     * service account.
+     * - If this field is omitted, a default system service account will be used.
+     * Format: projects/{PROJECT}/serviceAccounts/{EMAIL_ADDRESS}
+     * 
+ * + * string service_account = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for serviceAccount. + */ + public com.google.protobuf.ByteString getServiceAccountBytes() { + java.lang.Object ref = serviceAccount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The resource name of the service account to use for this
+     * deployment.
+     *
+     * - If provided, this service account will be used to execute the deployment
+     * process.
+     * - The caller must have the `iam.serviceAccounts.actAs` permission on this
+     * service account.
+     * - If this field is omitted, a default system service account will be used.
+     * Format: projects/{PROJECT}/serviceAccounts/{EMAIL_ADDRESS}
+     * 
+ * + * string service_account = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The serviceAccount to set. + * @return This builder for chaining. + */ + public Builder setServiceAccount(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + serviceAccount_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The resource name of the service account to use for this
+     * deployment.
+     *
+     * - If provided, this service account will be used to execute the deployment
+     * process.
+     * - The caller must have the `iam.serviceAccounts.actAs` permission on this
+     * service account.
+     * - If this field is omitted, a default system service account will be used.
+     * Format: projects/{PROJECT}/serviceAccounts/{EMAIL_ADDRESS}
+     * 
+ * + * string service_account = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearServiceAccount() { + serviceAccount_ = getDefaultInstance().getServiceAccount(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The resource name of the service account to use for this
+     * deployment.
+     *
+     * - If provided, this service account will be used to execute the deployment
+     * process.
+     * - The caller must have the `iam.serviceAccounts.actAs` permission on this
+     * service account.
+     * - If this field is omitted, a default system service account will be used.
+     * Format: projects/{PROJECT}/serviceAccounts/{EMAIL_ADDRESS}
+     * 
+ * + * string service_account = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for serviceAccount to set. + * @return This builder for chaining. + */ + public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceAccount_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ConfigureAndDeployTemplateRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ConfigureAndDeployTemplateRequest) + private static final com.google.cloud.designcenter.v1.ConfigureAndDeployTemplateRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.ConfigureAndDeployTemplateRequest(); + } + + public static com.google.cloud.designcenter.v1.ConfigureAndDeployTemplateRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConfigureAndDeployTemplateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ConfigureAndDeployTemplateRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ConfigureAndDeployTemplateRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ConfigureAndDeployTemplateRequestOrBuilder.java new file mode 100644 index 000000000000..89be947257e4 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ConfigureAndDeployTemplateRequestOrBuilder.java @@ -0,0 +1,220 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ConfigureAndDeployTemplateRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ConfigureAndDeployTemplateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource where the template will be deployed.
+   * Format: `projects/{project}/locations/{location}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent resource where the template will be deployed.
+   * Format: `projects/{project}/locations/{location}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The URI or identifier of the template to configure and deploy.
+   * 
+ * + * string template_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The templateUri. + */ + java.lang.String getTemplateUri(); + + /** + * + * + *
+   * Required. The URI or identifier of the template to configure and deploy.
+   * 
+ * + * string template_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for templateUri. + */ + com.google.protobuf.ByteString getTemplateUriBytes(); + + /** + * + * + *
+   * Required. The space ID where the template and application will be created.
+   * 
+ * + * string space_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The spaceId. + */ + java.lang.String getSpaceId(); + + /** + * + * + *
+   * Required. The space ID where the template and application will be created.
+   * 
+ * + * string space_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for spaceId. + */ + com.google.protobuf.ByteString getSpaceIdBytes(); + + /** + * + * + *
+   * Optional. Template configuration parameters (key-value pairs).
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter template_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getTemplateParametersList(); + + /** + * + * + *
+   * Optional. Template configuration parameters (key-value pairs).
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter template_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.Parameter getTemplateParameters(int index); + + /** + * + * + *
+   * Optional. Template configuration parameters (key-value pairs).
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter template_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getTemplateParametersCount(); + + /** + * + * + *
+   * Optional. Template configuration parameters (key-value pairs).
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter template_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getTemplateParametersOrBuilderList(); + + /** + * + * + *
+   * Optional. Template configuration parameters (key-value pairs).
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter template_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.ParameterOrBuilder getTemplateParametersOrBuilder(int index); + + /** + * + * + *
+   * Optional. The resource name of the service account to use for this
+   * deployment.
+   *
+   * - If provided, this service account will be used to execute the deployment
+   * process.
+   * - The caller must have the `iam.serviceAccounts.actAs` permission on this
+   * service account.
+   * - If this field is omitted, a default system service account will be used.
+   * Format: projects/{PROJECT}/serviceAccounts/{EMAIL_ADDRESS}
+   * 
+ * + * string service_account = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The serviceAccount. + */ + java.lang.String getServiceAccount(); + + /** + * + * + *
+   * Optional. The resource name of the service account to use for this
+   * deployment.
+   *
+   * - If provided, this service account will be used to execute the deployment
+   * process.
+   * - The caller must have the `iam.serviceAccounts.actAs` permission on this
+   * service account.
+   * - If this field is omitted, a default system service account will be used.
+   * Format: projects/{PROJECT}/serviceAccounts/{EMAIL_ADDRESS}
+   * 
+ * + * string service_account = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for serviceAccount. + */ + com.google.protobuf.ByteString getServiceAccountBytes(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ConfigureAndDeployTemplateResponse.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ConfigureAndDeployTemplateResponse.java new file mode 100644 index 000000000000..1e66d111d6f1 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ConfigureAndDeployTemplateResponse.java @@ -0,0 +1,1263 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Response message for ConfigureAndDeployTemplate.
+ * Populated inside Operation.response upon LRO completion.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ConfigureAndDeployTemplateResponse} + */ +@com.google.protobuf.Generated +public final class ConfigureAndDeployTemplateResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ConfigureAndDeployTemplateResponse) + ConfigureAndDeployTemplateResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ConfigureAndDeployTemplateResponse"); + } + + // Use ConfigureAndDeployTemplateResponse.newBuilder() to construct. + private ConfigureAndDeployTemplateResponse( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ConfigureAndDeployTemplateResponse() { + applicationUri_ = ""; + applicationTemplateUri_ = ""; + deploymentState_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ConfigureAndDeployTemplateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ConfigureAndDeployTemplateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ConfigureAndDeployTemplateResponse.class, + com.google.cloud.designcenter.v1.ConfigureAndDeployTemplateResponse.Builder.class); + } + + private int bitField0_; + public static final int APPLICATION_URI_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object applicationUri_ = ""; + + /** + * + * + *
+   * The URI of the deployed application.
+   * 
+ * + * string application_uri = 1 [(.google.api.resource_reference) = { ... } + * + * @return The applicationUri. + */ + @java.lang.Override + public java.lang.String getApplicationUri() { + java.lang.Object ref = applicationUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + applicationUri_ = s; + return s; + } + } + + /** + * + * + *
+   * The URI of the deployed application.
+   * 
+ * + * string application_uri = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for applicationUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getApplicationUriBytes() { + java.lang.Object ref = applicationUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + applicationUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int APPLICATION_TEMPLATE_URI_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object applicationTemplateUri_ = ""; + + /** + * + * + *
+   * The URI of the application template.
+   * 
+ * + * string application_template_uri = 2 [(.google.api.resource_reference) = { ... } + * + * @return The applicationTemplateUri. + */ + @java.lang.Override + public java.lang.String getApplicationTemplateUri() { + java.lang.Object ref = applicationTemplateUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + applicationTemplateUri_ = s; + return s; + } + } + + /** + * + * + *
+   * The URI of the application template.
+   * 
+ * + * string application_template_uri = 2 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for applicationTemplateUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getApplicationTemplateUriBytes() { + java.lang.Object ref = applicationTemplateUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + applicationTemplateUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEPLOYMENT_METADATA_FIELD_NUMBER = 3; + private com.google.cloud.designcenter.v1.DeploymentMetadata deploymentMetadata_; + + /** + * + * + *
+   * The deployment metadata of the deployed application.
+   * 
+ * + * .google.cloud.designcenter.v1.DeploymentMetadata deployment_metadata = 3; + * + * @return Whether the deploymentMetadata field is set. + */ + @java.lang.Override + public boolean hasDeploymentMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * The deployment metadata of the deployed application.
+   * 
+ * + * .google.cloud.designcenter.v1.DeploymentMetadata deployment_metadata = 3; + * + * @return The deploymentMetadata. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.DeploymentMetadata getDeploymentMetadata() { + return deploymentMetadata_ == null + ? com.google.cloud.designcenter.v1.DeploymentMetadata.getDefaultInstance() + : deploymentMetadata_; + } + + /** + * + * + *
+   * The deployment metadata of the deployed application.
+   * 
+ * + * .google.cloud.designcenter.v1.DeploymentMetadata deployment_metadata = 3; + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.DeploymentMetadataOrBuilder + getDeploymentMetadataOrBuilder() { + return deploymentMetadata_ == null + ? com.google.cloud.designcenter.v1.DeploymentMetadata.getDefaultInstance() + : deploymentMetadata_; + } + + public static final int DEPLOYMENT_STATE_FIELD_NUMBER = 4; + private int deploymentState_ = 0; + + /** + * + * + *
+   * The deployment state of the deployed application.
+   * 
+ * + * .google.cloud.designcenter.v1.Application.State deployment_state = 4; + * + * @return The enum numeric value on the wire for deploymentState. + */ + @java.lang.Override + public int getDeploymentStateValue() { + return deploymentState_; + } + + /** + * + * + *
+   * The deployment state of the deployed application.
+   * 
+ * + * .google.cloud.designcenter.v1.Application.State deployment_state = 4; + * + * @return The deploymentState. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.Application.State getDeploymentState() { + com.google.cloud.designcenter.v1.Application.State result = + com.google.cloud.designcenter.v1.Application.State.forNumber(deploymentState_); + return result == null + ? com.google.cloud.designcenter.v1.Application.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.GeneratedMessage.isStringEmpty(applicationUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, applicationUri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(applicationTemplateUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, applicationTemplateUri_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getDeploymentMetadata()); + } + if (deploymentState_ + != com.google.cloud.designcenter.v1.Application.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(4, deploymentState_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(applicationUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, applicationUri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(applicationTemplateUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, applicationTemplateUri_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDeploymentMetadata()); + } + if (deploymentState_ + != com.google.cloud.designcenter.v1.Application.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, deploymentState_); + } + 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.designcenter.v1.ConfigureAndDeployTemplateResponse)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ConfigureAndDeployTemplateResponse other = + (com.google.cloud.designcenter.v1.ConfigureAndDeployTemplateResponse) obj; + + if (!getApplicationUri().equals(other.getApplicationUri())) return false; + if (!getApplicationTemplateUri().equals(other.getApplicationTemplateUri())) return false; + if (hasDeploymentMetadata() != other.hasDeploymentMetadata()) return false; + if (hasDeploymentMetadata()) { + if (!getDeploymentMetadata().equals(other.getDeploymentMetadata())) return false; + } + if (deploymentState_ != other.deploymentState_) 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) + APPLICATION_URI_FIELD_NUMBER; + hash = (53 * hash) + getApplicationUri().hashCode(); + hash = (37 * hash) + APPLICATION_TEMPLATE_URI_FIELD_NUMBER; + hash = (53 * hash) + getApplicationTemplateUri().hashCode(); + if (hasDeploymentMetadata()) { + hash = (37 * hash) + DEPLOYMENT_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getDeploymentMetadata().hashCode(); + } + hash = (37 * hash) + DEPLOYMENT_STATE_FIELD_NUMBER; + hash = (53 * hash) + deploymentState_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.ConfigureAndDeployTemplateResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ConfigureAndDeployTemplateResponse 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.designcenter.v1.ConfigureAndDeployTemplateResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ConfigureAndDeployTemplateResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ConfigureAndDeployTemplateResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ConfigureAndDeployTemplateResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ConfigureAndDeployTemplateResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ConfigureAndDeployTemplateResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ConfigureAndDeployTemplateResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ConfigureAndDeployTemplateResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ConfigureAndDeployTemplateResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ConfigureAndDeployTemplateResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ConfigureAndDeployTemplateResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response message for ConfigureAndDeployTemplate.
+   * Populated inside Operation.response upon LRO completion.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ConfigureAndDeployTemplateResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ConfigureAndDeployTemplateResponse) + com.google.cloud.designcenter.v1.ConfigureAndDeployTemplateResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ConfigureAndDeployTemplateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ConfigureAndDeployTemplateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ConfigureAndDeployTemplateResponse.class, + com.google.cloud.designcenter.v1.ConfigureAndDeployTemplateResponse.Builder.class); + } + + // Construct using + // com.google.cloud.designcenter.v1.ConfigureAndDeployTemplateResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetDeploymentMetadataFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + applicationUri_ = ""; + applicationTemplateUri_ = ""; + deploymentMetadata_ = null; + if (deploymentMetadataBuilder_ != null) { + deploymentMetadataBuilder_.dispose(); + deploymentMetadataBuilder_ = null; + } + deploymentState_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ConfigureAndDeployTemplateResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ConfigureAndDeployTemplateResponse + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ConfigureAndDeployTemplateResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ConfigureAndDeployTemplateResponse build() { + com.google.cloud.designcenter.v1.ConfigureAndDeployTemplateResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ConfigureAndDeployTemplateResponse buildPartial() { + com.google.cloud.designcenter.v1.ConfigureAndDeployTemplateResponse result = + new com.google.cloud.designcenter.v1.ConfigureAndDeployTemplateResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.ConfigureAndDeployTemplateResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.applicationUri_ = applicationUri_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.applicationTemplateUri_ = applicationTemplateUri_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.deploymentMetadata_ = + deploymentMetadataBuilder_ == null + ? deploymentMetadata_ + : deploymentMetadataBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.deploymentState_ = deploymentState_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.ConfigureAndDeployTemplateResponse) { + return mergeFrom( + (com.google.cloud.designcenter.v1.ConfigureAndDeployTemplateResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.designcenter.v1.ConfigureAndDeployTemplateResponse other) { + if (other + == com.google.cloud.designcenter.v1.ConfigureAndDeployTemplateResponse + .getDefaultInstance()) return this; + if (!other.getApplicationUri().isEmpty()) { + applicationUri_ = other.applicationUri_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getApplicationTemplateUri().isEmpty()) { + applicationTemplateUri_ = other.applicationTemplateUri_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasDeploymentMetadata()) { + mergeDeploymentMetadata(other.getDeploymentMetadata()); + } + if (other.deploymentState_ != 0) { + setDeploymentStateValue(other.getDeploymentStateValue()); + } + 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: + { + applicationUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + applicationTemplateUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetDeploymentMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + deploymentState_ = input.readEnum(); + 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 applicationUri_ = ""; + + /** + * + * + *
+     * The URI of the deployed application.
+     * 
+ * + * string application_uri = 1 [(.google.api.resource_reference) = { ... } + * + * @return The applicationUri. + */ + public java.lang.String getApplicationUri() { + java.lang.Object ref = applicationUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + applicationUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The URI of the deployed application.
+     * 
+ * + * string application_uri = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for applicationUri. + */ + public com.google.protobuf.ByteString getApplicationUriBytes() { + java.lang.Object ref = applicationUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + applicationUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The URI of the deployed application.
+     * 
+ * + * string application_uri = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The applicationUri to set. + * @return This builder for chaining. + */ + public Builder setApplicationUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + applicationUri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The URI of the deployed application.
+     * 
+ * + * string application_uri = 1 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearApplicationUri() { + applicationUri_ = getDefaultInstance().getApplicationUri(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * The URI of the deployed application.
+     * 
+ * + * string application_uri = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for applicationUri to set. + * @return This builder for chaining. + */ + public Builder setApplicationUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + applicationUri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object applicationTemplateUri_ = ""; + + /** + * + * + *
+     * The URI of the application template.
+     * 
+ * + * string application_template_uri = 2 [(.google.api.resource_reference) = { ... } + * + * @return The applicationTemplateUri. + */ + public java.lang.String getApplicationTemplateUri() { + java.lang.Object ref = applicationTemplateUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + applicationTemplateUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The URI of the application template.
+     * 
+ * + * string application_template_uri = 2 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for applicationTemplateUri. + */ + public com.google.protobuf.ByteString getApplicationTemplateUriBytes() { + java.lang.Object ref = applicationTemplateUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + applicationTemplateUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The URI of the application template.
+     * 
+ * + * string application_template_uri = 2 [(.google.api.resource_reference) = { ... } + * + * @param value The applicationTemplateUri to set. + * @return This builder for chaining. + */ + public Builder setApplicationTemplateUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + applicationTemplateUri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * The URI of the application template.
+     * 
+ * + * string application_template_uri = 2 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearApplicationTemplateUri() { + applicationTemplateUri_ = getDefaultInstance().getApplicationTemplateUri(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * The URI of the application template.
+     * 
+ * + * string application_template_uri = 2 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for applicationTemplateUri to set. + * @return This builder for chaining. + */ + public Builder setApplicationTemplateUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + applicationTemplateUri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.designcenter.v1.DeploymentMetadata deploymentMetadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.DeploymentMetadata, + com.google.cloud.designcenter.v1.DeploymentMetadata.Builder, + com.google.cloud.designcenter.v1.DeploymentMetadataOrBuilder> + deploymentMetadataBuilder_; + + /** + * + * + *
+     * The deployment metadata of the deployed application.
+     * 
+ * + * .google.cloud.designcenter.v1.DeploymentMetadata deployment_metadata = 3; + * + * @return Whether the deploymentMetadata field is set. + */ + public boolean hasDeploymentMetadata() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * The deployment metadata of the deployed application.
+     * 
+ * + * .google.cloud.designcenter.v1.DeploymentMetadata deployment_metadata = 3; + * + * @return The deploymentMetadata. + */ + public com.google.cloud.designcenter.v1.DeploymentMetadata getDeploymentMetadata() { + if (deploymentMetadataBuilder_ == null) { + return deploymentMetadata_ == null + ? com.google.cloud.designcenter.v1.DeploymentMetadata.getDefaultInstance() + : deploymentMetadata_; + } else { + return deploymentMetadataBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * The deployment metadata of the deployed application.
+     * 
+ * + * .google.cloud.designcenter.v1.DeploymentMetadata deployment_metadata = 3; + */ + public Builder setDeploymentMetadata( + com.google.cloud.designcenter.v1.DeploymentMetadata value) { + if (deploymentMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deploymentMetadata_ = value; + } else { + deploymentMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * The deployment metadata of the deployed application.
+     * 
+ * + * .google.cloud.designcenter.v1.DeploymentMetadata deployment_metadata = 3; + */ + public Builder setDeploymentMetadata( + com.google.cloud.designcenter.v1.DeploymentMetadata.Builder builderForValue) { + if (deploymentMetadataBuilder_ == null) { + deploymentMetadata_ = builderForValue.build(); + } else { + deploymentMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * The deployment metadata of the deployed application.
+     * 
+ * + * .google.cloud.designcenter.v1.DeploymentMetadata deployment_metadata = 3; + */ + public Builder mergeDeploymentMetadata( + com.google.cloud.designcenter.v1.DeploymentMetadata value) { + if (deploymentMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && deploymentMetadata_ != null + && deploymentMetadata_ + != com.google.cloud.designcenter.v1.DeploymentMetadata.getDefaultInstance()) { + getDeploymentMetadataBuilder().mergeFrom(value); + } else { + deploymentMetadata_ = value; + } + } else { + deploymentMetadataBuilder_.mergeFrom(value); + } + if (deploymentMetadata_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The deployment metadata of the deployed application.
+     * 
+ * + * .google.cloud.designcenter.v1.DeploymentMetadata deployment_metadata = 3; + */ + public Builder clearDeploymentMetadata() { + bitField0_ = (bitField0_ & ~0x00000004); + deploymentMetadata_ = null; + if (deploymentMetadataBuilder_ != null) { + deploymentMetadataBuilder_.dispose(); + deploymentMetadataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * The deployment metadata of the deployed application.
+     * 
+ * + * .google.cloud.designcenter.v1.DeploymentMetadata deployment_metadata = 3; + */ + public com.google.cloud.designcenter.v1.DeploymentMetadata.Builder + getDeploymentMetadataBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetDeploymentMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * The deployment metadata of the deployed application.
+     * 
+ * + * .google.cloud.designcenter.v1.DeploymentMetadata deployment_metadata = 3; + */ + public com.google.cloud.designcenter.v1.DeploymentMetadataOrBuilder + getDeploymentMetadataOrBuilder() { + if (deploymentMetadataBuilder_ != null) { + return deploymentMetadataBuilder_.getMessageOrBuilder(); + } else { + return deploymentMetadata_ == null + ? com.google.cloud.designcenter.v1.DeploymentMetadata.getDefaultInstance() + : deploymentMetadata_; + } + } + + /** + * + * + *
+     * The deployment metadata of the deployed application.
+     * 
+ * + * .google.cloud.designcenter.v1.DeploymentMetadata deployment_metadata = 3; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.DeploymentMetadata, + com.google.cloud.designcenter.v1.DeploymentMetadata.Builder, + com.google.cloud.designcenter.v1.DeploymentMetadataOrBuilder> + internalGetDeploymentMetadataFieldBuilder() { + if (deploymentMetadataBuilder_ == null) { + deploymentMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.DeploymentMetadata, + com.google.cloud.designcenter.v1.DeploymentMetadata.Builder, + com.google.cloud.designcenter.v1.DeploymentMetadataOrBuilder>( + getDeploymentMetadata(), getParentForChildren(), isClean()); + deploymentMetadata_ = null; + } + return deploymentMetadataBuilder_; + } + + private int deploymentState_ = 0; + + /** + * + * + *
+     * The deployment state of the deployed application.
+     * 
+ * + * .google.cloud.designcenter.v1.Application.State deployment_state = 4; + * + * @return The enum numeric value on the wire for deploymentState. + */ + @java.lang.Override + public int getDeploymentStateValue() { + return deploymentState_; + } + + /** + * + * + *
+     * The deployment state of the deployed application.
+     * 
+ * + * .google.cloud.designcenter.v1.Application.State deployment_state = 4; + * + * @param value The enum numeric value on the wire for deploymentState to set. + * @return This builder for chaining. + */ + public Builder setDeploymentStateValue(int value) { + deploymentState_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * The deployment state of the deployed application.
+     * 
+ * + * .google.cloud.designcenter.v1.Application.State deployment_state = 4; + * + * @return The deploymentState. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.Application.State getDeploymentState() { + com.google.cloud.designcenter.v1.Application.State result = + com.google.cloud.designcenter.v1.Application.State.forNumber(deploymentState_); + return result == null + ? com.google.cloud.designcenter.v1.Application.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * The deployment state of the deployed application.
+     * 
+ * + * .google.cloud.designcenter.v1.Application.State deployment_state = 4; + * + * @param value The deploymentState to set. + * @return This builder for chaining. + */ + public Builder setDeploymentState(com.google.cloud.designcenter.v1.Application.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + deploymentState_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * The deployment state of the deployed application.
+     * 
+ * + * .google.cloud.designcenter.v1.Application.State deployment_state = 4; + * + * @return This builder for chaining. + */ + public Builder clearDeploymentState() { + bitField0_ = (bitField0_ & ~0x00000008); + deploymentState_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ConfigureAndDeployTemplateResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ConfigureAndDeployTemplateResponse) + private static final com.google.cloud.designcenter.v1.ConfigureAndDeployTemplateResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.ConfigureAndDeployTemplateResponse(); + } + + public static com.google.cloud.designcenter.v1.ConfigureAndDeployTemplateResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConfigureAndDeployTemplateResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ConfigureAndDeployTemplateResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ConfigureAndDeployTemplateResponseOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ConfigureAndDeployTemplateResponseOrBuilder.java new file mode 100644 index 000000000000..ceeb6325aa34 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ConfigureAndDeployTemplateResponseOrBuilder.java @@ -0,0 +1,143 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ConfigureAndDeployTemplateResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ConfigureAndDeployTemplateResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The URI of the deployed application.
+   * 
+ * + * string application_uri = 1 [(.google.api.resource_reference) = { ... } + * + * @return The applicationUri. + */ + java.lang.String getApplicationUri(); + + /** + * + * + *
+   * The URI of the deployed application.
+   * 
+ * + * string application_uri = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for applicationUri. + */ + com.google.protobuf.ByteString getApplicationUriBytes(); + + /** + * + * + *
+   * The URI of the application template.
+   * 
+ * + * string application_template_uri = 2 [(.google.api.resource_reference) = { ... } + * + * @return The applicationTemplateUri. + */ + java.lang.String getApplicationTemplateUri(); + + /** + * + * + *
+   * The URI of the application template.
+   * 
+ * + * string application_template_uri = 2 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for applicationTemplateUri. + */ + com.google.protobuf.ByteString getApplicationTemplateUriBytes(); + + /** + * + * + *
+   * The deployment metadata of the deployed application.
+   * 
+ * + * .google.cloud.designcenter.v1.DeploymentMetadata deployment_metadata = 3; + * + * @return Whether the deploymentMetadata field is set. + */ + boolean hasDeploymentMetadata(); + + /** + * + * + *
+   * The deployment metadata of the deployed application.
+   * 
+ * + * .google.cloud.designcenter.v1.DeploymentMetadata deployment_metadata = 3; + * + * @return The deploymentMetadata. + */ + com.google.cloud.designcenter.v1.DeploymentMetadata getDeploymentMetadata(); + + /** + * + * + *
+   * The deployment metadata of the deployed application.
+   * 
+ * + * .google.cloud.designcenter.v1.DeploymentMetadata deployment_metadata = 3; + */ + com.google.cloud.designcenter.v1.DeploymentMetadataOrBuilder getDeploymentMetadataOrBuilder(); + + /** + * + * + *
+   * The deployment state of the deployed application.
+   * 
+ * + * .google.cloud.designcenter.v1.Application.State deployment_state = 4; + * + * @return The enum numeric value on the wire for deploymentState. + */ + int getDeploymentStateValue(); + + /** + * + * + *
+   * The deployment state of the deployed application.
+   * 
+ * + * .google.cloud.designcenter.v1.Application.State deployment_state = 4; + * + * @return The deploymentState. + */ + com.google.cloud.designcenter.v1.Application.State getDeploymentState(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/Connection.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/Connection.java new file mode 100644 index 000000000000..b209ed27c841 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/Connection.java @@ -0,0 +1,2805 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Connection resource.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.Connection} + */ +@com.google.protobuf.Generated +public final class Connection extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.Connection) + ConnectionOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "Connection"); + } + + // Use Connection.newBuilder() to construct. + private Connection(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Connection() { + name_ = ""; + destinationComponentUri_ = ""; + sourceComponentParameters_ = java.util.Collections.emptyList(); + destinationComponentParameters_ = java.util.Collections.emptyList(); + dependencyType_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringResourcesProto + .internal_static_google_cloud_designcenter_v1_Connection_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringResourcesProto + .internal_static_google_cloud_designcenter_v1_Connection_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.Connection.class, + com.google.cloud.designcenter.v1.Connection.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Identifier. The connection name.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + + /** + * + * + *
+   * Identifier. The connection name.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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 DESTINATION_COMPONENT_URI_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object destinationComponentUri_ = ""; + + /** + * + * + *
+   * Required. The destination component URI used to generate the connection.
+   * Format is
+   * `projects/$project/locations/$location/spaces/$space/applicationTemplates/$application_template/components/$component`
+   * 
+ * + * + * string destination_component_uri = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The destinationComponentUri. + */ + @java.lang.Override + public java.lang.String getDestinationComponentUri() { + java.lang.Object ref = destinationComponentUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + destinationComponentUri_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The destination component URI used to generate the connection.
+   * Format is
+   * `projects/$project/locations/$location/spaces/$space/applicationTemplates/$application_template/components/$component`
+   * 
+ * + * + * string destination_component_uri = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for destinationComponentUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDestinationComponentUriBytes() { + java.lang.Object ref = destinationComponentUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + destinationComponentUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+   * Output only. The connection creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. The connection creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.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 connection creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.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 = 5; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
+   * Output only. The connection update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. The connection update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.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 connection update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.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_COMPONENT_PARAMETERS_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private java.util.List sourceComponentParameters_; + + /** + * + * + *
+   * Optional. The parameters of the connection associated with the source
+   * component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getSourceComponentParametersList() { + return sourceComponentParameters_; + } + + /** + * + * + *
+   * Optional. The parameters of the connection associated with the source
+   * component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getSourceComponentParametersOrBuilderList() { + return sourceComponentParameters_; + } + + /** + * + * + *
+   * Optional. The parameters of the connection associated with the source
+   * component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getSourceComponentParametersCount() { + return sourceComponentParameters_.size(); + } + + /** + * + * + *
+   * Optional. The parameters of the connection associated with the source
+   * component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.Parameter getSourceComponentParameters(int index) { + return sourceComponentParameters_.get(index); + } + + /** + * + * + *
+   * Optional. The parameters of the connection associated with the source
+   * component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ParameterOrBuilder getSourceComponentParametersOrBuilder( + int index) { + return sourceComponentParameters_.get(index); + } + + public static final int DESTINATION_COMPONENT_PARAMETERS_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private java.util.List + destinationComponentParameters_; + + /** + * + * + *
+   * Optional. The parameters of the connection associated with the destination
+   * component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getDestinationComponentParametersList() { + return destinationComponentParameters_; + } + + /** + * + * + *
+   * Optional. The parameters of the connection associated with the destination
+   * component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getDestinationComponentParametersOrBuilderList() { + return destinationComponentParameters_; + } + + /** + * + * + *
+   * Optional. The parameters of the connection associated with the destination
+   * component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getDestinationComponentParametersCount() { + return destinationComponentParameters_.size(); + } + + /** + * + * + *
+   * Optional. The parameters of the connection associated with the destination
+   * component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.Parameter getDestinationComponentParameters(int index) { + return destinationComponentParameters_.get(index); + } + + /** + * + * + *
+   * Optional. The parameters of the connection associated with the destination
+   * component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ParameterOrBuilder + getDestinationComponentParametersOrBuilder(int index) { + return destinationComponentParameters_.get(index); + } + + public static final int DEPENDENCY_TYPE_FIELD_NUMBER = 8; + private int dependencyType_ = 0; + + /** + * + * + *
+   * Output only. The type of the connection (data or logical).
+   * 
+ * + * + * .google.cloud.designcenter.v1.ConnectionDependencyType dependency_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for dependencyType. + */ + @java.lang.Override + public int getDependencyTypeValue() { + return dependencyType_; + } + + /** + * + * + *
+   * Output only. The type of the connection (data or logical).
+   * 
+ * + * + * .google.cloud.designcenter.v1.ConnectionDependencyType dependency_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dependencyType. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ConnectionDependencyType getDependencyType() { + com.google.cloud.designcenter.v1.ConnectionDependencyType result = + com.google.cloud.designcenter.v1.ConnectionDependencyType.forNumber(dependencyType_); + return result == null + ? com.google.cloud.designcenter.v1.ConnectionDependencyType.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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(destinationComponentUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, destinationComponentUri_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getUpdateTime()); + } + for (int i = 0; i < sourceComponentParameters_.size(); i++) { + output.writeMessage(6, sourceComponentParameters_.get(i)); + } + for (int i = 0; i < destinationComponentParameters_.size(); i++) { + output.writeMessage(7, destinationComponentParameters_.get(i)); + } + if (dependencyType_ + != com.google.cloud.designcenter.v1.ConnectionDependencyType + .CONNECTION_DEPENDENCY_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(8, dependencyType_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(destinationComponentUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, destinationComponentUri_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateTime()); + } + for (int i = 0; i < sourceComponentParameters_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, sourceComponentParameters_.get(i)); + } + for (int i = 0; i < destinationComponentParameters_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, destinationComponentParameters_.get(i)); + } + if (dependencyType_ + != com.google.cloud.designcenter.v1.ConnectionDependencyType + .CONNECTION_DEPENDENCY_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, dependencyType_); + } + 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.designcenter.v1.Connection)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.Connection other = + (com.google.cloud.designcenter.v1.Connection) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDestinationComponentUri().equals(other.getDestinationComponentUri())) 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 (!getSourceComponentParametersList().equals(other.getSourceComponentParametersList())) + return false; + if (!getDestinationComponentParametersList() + .equals(other.getDestinationComponentParametersList())) return false; + if (dependencyType_ != other.dependencyType_) 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) + DESTINATION_COMPONENT_URI_FIELD_NUMBER; + hash = (53 * hash) + getDestinationComponentUri().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 (getSourceComponentParametersCount() > 0) { + hash = (37 * hash) + SOURCE_COMPONENT_PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getSourceComponentParametersList().hashCode(); + } + if (getDestinationComponentParametersCount() > 0) { + hash = (37 * hash) + DESTINATION_COMPONENT_PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getDestinationComponentParametersList().hashCode(); + } + hash = (37 * hash) + DEPENDENCY_TYPE_FIELD_NUMBER; + hash = (53 * hash) + dependencyType_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.Connection parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.Connection 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.designcenter.v1.Connection parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.Connection parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.Connection parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.Connection parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.Connection parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.Connection parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.Connection parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.Connection parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.Connection parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.Connection parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.Connection 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Connection resource.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.Connection} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.Connection) + com.google.cloud.designcenter.v1.ConnectionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringResourcesProto + .internal_static_google_cloud_designcenter_v1_Connection_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringResourcesProto + .internal_static_google_cloud_designcenter_v1_Connection_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.Connection.class, + com.google.cloud.designcenter.v1.Connection.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.Connection.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + internalGetSourceComponentParametersFieldBuilder(); + internalGetDestinationComponentParametersFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + destinationComponentUri_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + if (sourceComponentParametersBuilder_ == null) { + sourceComponentParameters_ = java.util.Collections.emptyList(); + } else { + sourceComponentParameters_ = null; + sourceComponentParametersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + if (destinationComponentParametersBuilder_ == null) { + destinationComponentParameters_ = java.util.Collections.emptyList(); + } else { + destinationComponentParameters_ = null; + destinationComponentParametersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + dependencyType_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.AuthoringResourcesProto + .internal_static_google_cloud_designcenter_v1_Connection_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.Connection getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.Connection.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.Connection build() { + com.google.cloud.designcenter.v1.Connection result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.Connection buildPartial() { + com.google.cloud.designcenter.v1.Connection result = + new com.google.cloud.designcenter.v1.Connection(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.designcenter.v1.Connection result) { + if (sourceComponentParametersBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + sourceComponentParameters_ = + java.util.Collections.unmodifiableList(sourceComponentParameters_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.sourceComponentParameters_ = sourceComponentParameters_; + } else { + result.sourceComponentParameters_ = sourceComponentParametersBuilder_.build(); + } + if (destinationComponentParametersBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + destinationComponentParameters_ = + java.util.Collections.unmodifiableList(destinationComponentParameters_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.destinationComponentParameters_ = destinationComponentParameters_; + } else { + result.destinationComponentParameters_ = destinationComponentParametersBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.designcenter.v1.Connection result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.destinationComponentUri_ = destinationComponentUri_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.dependencyType_ = dependencyType_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.Connection) { + return mergeFrom((com.google.cloud.designcenter.v1.Connection) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.Connection other) { + if (other == com.google.cloud.designcenter.v1.Connection.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDestinationComponentUri().isEmpty()) { + destinationComponentUri_ = other.destinationComponentUri_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (sourceComponentParametersBuilder_ == null) { + if (!other.sourceComponentParameters_.isEmpty()) { + if (sourceComponentParameters_.isEmpty()) { + sourceComponentParameters_ = other.sourceComponentParameters_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureSourceComponentParametersIsMutable(); + sourceComponentParameters_.addAll(other.sourceComponentParameters_); + } + onChanged(); + } + } else { + if (!other.sourceComponentParameters_.isEmpty()) { + if (sourceComponentParametersBuilder_.isEmpty()) { + sourceComponentParametersBuilder_.dispose(); + sourceComponentParametersBuilder_ = null; + sourceComponentParameters_ = other.sourceComponentParameters_; + bitField0_ = (bitField0_ & ~0x00000010); + sourceComponentParametersBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetSourceComponentParametersFieldBuilder() + : null; + } else { + sourceComponentParametersBuilder_.addAllMessages(other.sourceComponentParameters_); + } + } + } + if (destinationComponentParametersBuilder_ == null) { + if (!other.destinationComponentParameters_.isEmpty()) { + if (destinationComponentParameters_.isEmpty()) { + destinationComponentParameters_ = other.destinationComponentParameters_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureDestinationComponentParametersIsMutable(); + destinationComponentParameters_.addAll(other.destinationComponentParameters_); + } + onChanged(); + } + } else { + if (!other.destinationComponentParameters_.isEmpty()) { + if (destinationComponentParametersBuilder_.isEmpty()) { + destinationComponentParametersBuilder_.dispose(); + destinationComponentParametersBuilder_ = null; + destinationComponentParameters_ = other.destinationComponentParameters_; + bitField0_ = (bitField0_ & ~0x00000020); + destinationComponentParametersBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetDestinationComponentParametersFieldBuilder() + : null; + } else { + destinationComponentParametersBuilder_.addAllMessages( + other.destinationComponentParameters_); + } + } + } + if (other.dependencyType_ != 0) { + setDependencyTypeValue(other.getDependencyTypeValue()); + } + 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: + { + destinationComponentUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 34: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 50: + { + com.google.cloud.designcenter.v1.Parameter m = + input.readMessage( + com.google.cloud.designcenter.v1.Parameter.parser(), extensionRegistry); + if (sourceComponentParametersBuilder_ == null) { + ensureSourceComponentParametersIsMutable(); + sourceComponentParameters_.add(m); + } else { + sourceComponentParametersBuilder_.addMessage(m); + } + break; + } // case 50 + case 58: + { + com.google.cloud.designcenter.v1.Parameter m = + input.readMessage( + com.google.cloud.designcenter.v1.Parameter.parser(), extensionRegistry); + if (destinationComponentParametersBuilder_ == null) { + ensureDestinationComponentParametersIsMutable(); + destinationComponentParameters_.add(m); + } else { + destinationComponentParametersBuilder_.addMessage(m); + } + break; + } // case 58 + case 64: + { + dependencyType_ = input.readEnum(); + bitField0_ |= 0x00000040; + 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_ = ""; + + /** + * + * + *
+     * Identifier. The connection name.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.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; + } + } + + /** + * + * + *
+     * Identifier. The connection name.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + + /** + * + * + *
+     * Identifier. The connection name.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + + /** + * + * + *
+     * Identifier. The connection name.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier. The connection name.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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 destinationComponentUri_ = ""; + + /** + * + * + *
+     * Required. The destination component URI used to generate the connection.
+     * Format is
+     * `projects/$project/locations/$location/spaces/$space/applicationTemplates/$application_template/components/$component`
+     * 
+ * + * + * string destination_component_uri = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The destinationComponentUri. + */ + public java.lang.String getDestinationComponentUri() { + java.lang.Object ref = destinationComponentUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + destinationComponentUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The destination component URI used to generate the connection.
+     * Format is
+     * `projects/$project/locations/$location/spaces/$space/applicationTemplates/$application_template/components/$component`
+     * 
+ * + * + * string destination_component_uri = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for destinationComponentUri. + */ + public com.google.protobuf.ByteString getDestinationComponentUriBytes() { + java.lang.Object ref = destinationComponentUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + destinationComponentUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The destination component URI used to generate the connection.
+     * Format is
+     * `projects/$project/locations/$location/spaces/$space/applicationTemplates/$application_template/components/$component`
+     * 
+ * + * + * string destination_component_uri = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The destinationComponentUri to set. + * @return This builder for chaining. + */ + public Builder setDestinationComponentUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + destinationComponentUri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The destination component URI used to generate the connection.
+     * Format is
+     * `projects/$project/locations/$location/spaces/$space/applicationTemplates/$application_template/components/$component`
+     * 
+ * + * + * string destination_component_uri = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearDestinationComponentUri() { + destinationComponentUri_ = getDefaultInstance().getDestinationComponentUri(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The destination component URI used to generate the connection.
+     * Format is
+     * `projects/$project/locations/$location/spaces/$space/applicationTemplates/$application_template/components/$component`
+     * 
+ * + * + * string destination_component_uri = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for destinationComponentUri to set. + * @return This builder for chaining. + */ + public Builder setDestinationComponentUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + destinationComponentUri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
+     * Output only. The connection creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Output only. The connection creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.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 connection creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.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. The connection creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.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. The connection creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.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); + } + if (createTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The connection creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.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. The connection creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The connection creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.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 connection creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + 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.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
+     * Output only. The connection update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Output only. The connection update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.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 connection update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.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. The connection update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.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. The connection update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.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); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The connection update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.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. The connection update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The connection update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.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 connection update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private java.util.List sourceComponentParameters_ = + java.util.Collections.emptyList(); + + private void ensureSourceComponentParametersIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + sourceComponentParameters_ = + new java.util.ArrayList( + sourceComponentParameters_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Parameter, + com.google.cloud.designcenter.v1.Parameter.Builder, + com.google.cloud.designcenter.v1.ParameterOrBuilder> + sourceComponentParametersBuilder_; + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the source
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getSourceComponentParametersList() { + if (sourceComponentParametersBuilder_ == null) { + return java.util.Collections.unmodifiableList(sourceComponentParameters_); + } else { + return sourceComponentParametersBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the source
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getSourceComponentParametersCount() { + if (sourceComponentParametersBuilder_ == null) { + return sourceComponentParameters_.size(); + } else { + return sourceComponentParametersBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the source
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter getSourceComponentParameters(int index) { + if (sourceComponentParametersBuilder_ == null) { + return sourceComponentParameters_.get(index); + } else { + return sourceComponentParametersBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the source
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSourceComponentParameters( + int index, com.google.cloud.designcenter.v1.Parameter value) { + if (sourceComponentParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSourceComponentParametersIsMutable(); + sourceComponentParameters_.set(index, value); + onChanged(); + } else { + sourceComponentParametersBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the source
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSourceComponentParameters( + int index, com.google.cloud.designcenter.v1.Parameter.Builder builderForValue) { + if (sourceComponentParametersBuilder_ == null) { + ensureSourceComponentParametersIsMutable(); + sourceComponentParameters_.set(index, builderForValue.build()); + onChanged(); + } else { + sourceComponentParametersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the source
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSourceComponentParameters(com.google.cloud.designcenter.v1.Parameter value) { + if (sourceComponentParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSourceComponentParametersIsMutable(); + sourceComponentParameters_.add(value); + onChanged(); + } else { + sourceComponentParametersBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the source
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSourceComponentParameters( + int index, com.google.cloud.designcenter.v1.Parameter value) { + if (sourceComponentParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSourceComponentParametersIsMutable(); + sourceComponentParameters_.add(index, value); + onChanged(); + } else { + sourceComponentParametersBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the source
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSourceComponentParameters( + com.google.cloud.designcenter.v1.Parameter.Builder builderForValue) { + if (sourceComponentParametersBuilder_ == null) { + ensureSourceComponentParametersIsMutable(); + sourceComponentParameters_.add(builderForValue.build()); + onChanged(); + } else { + sourceComponentParametersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the source
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSourceComponentParameters( + int index, com.google.cloud.designcenter.v1.Parameter.Builder builderForValue) { + if (sourceComponentParametersBuilder_ == null) { + ensureSourceComponentParametersIsMutable(); + sourceComponentParameters_.add(index, builderForValue.build()); + onChanged(); + } else { + sourceComponentParametersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the source
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllSourceComponentParameters( + java.lang.Iterable values) { + if (sourceComponentParametersBuilder_ == null) { + ensureSourceComponentParametersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sourceComponentParameters_); + onChanged(); + } else { + sourceComponentParametersBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the source
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSourceComponentParameters() { + if (sourceComponentParametersBuilder_ == null) { + sourceComponentParameters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + sourceComponentParametersBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the source
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeSourceComponentParameters(int index) { + if (sourceComponentParametersBuilder_ == null) { + ensureSourceComponentParametersIsMutable(); + sourceComponentParameters_.remove(index); + onChanged(); + } else { + sourceComponentParametersBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the source
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter.Builder getSourceComponentParametersBuilder( + int index) { + return internalGetSourceComponentParametersFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the source
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ParameterOrBuilder + getSourceComponentParametersOrBuilder(int index) { + if (sourceComponentParametersBuilder_ == null) { + return sourceComponentParameters_.get(index); + } else { + return sourceComponentParametersBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the source
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getSourceComponentParametersOrBuilderList() { + if (sourceComponentParametersBuilder_ != null) { + return sourceComponentParametersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(sourceComponentParameters_); + } + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the source
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter.Builder + addSourceComponentParametersBuilder() { + return internalGetSourceComponentParametersFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.Parameter.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the source
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter.Builder addSourceComponentParametersBuilder( + int index) { + return internalGetSourceComponentParametersFieldBuilder() + .addBuilder(index, com.google.cloud.designcenter.v1.Parameter.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the source
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getSourceComponentParametersBuilderList() { + return internalGetSourceComponentParametersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Parameter, + com.google.cloud.designcenter.v1.Parameter.Builder, + com.google.cloud.designcenter.v1.ParameterOrBuilder> + internalGetSourceComponentParametersFieldBuilder() { + if (sourceComponentParametersBuilder_ == null) { + sourceComponentParametersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Parameter, + com.google.cloud.designcenter.v1.Parameter.Builder, + com.google.cloud.designcenter.v1.ParameterOrBuilder>( + sourceComponentParameters_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + sourceComponentParameters_ = null; + } + return sourceComponentParametersBuilder_; + } + + private java.util.List + destinationComponentParameters_ = java.util.Collections.emptyList(); + + private void ensureDestinationComponentParametersIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + destinationComponentParameters_ = + new java.util.ArrayList( + destinationComponentParameters_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Parameter, + com.google.cloud.designcenter.v1.Parameter.Builder, + com.google.cloud.designcenter.v1.ParameterOrBuilder> + destinationComponentParametersBuilder_; + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the destination
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getDestinationComponentParametersList() { + if (destinationComponentParametersBuilder_ == null) { + return java.util.Collections.unmodifiableList(destinationComponentParameters_); + } else { + return destinationComponentParametersBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the destination
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getDestinationComponentParametersCount() { + if (destinationComponentParametersBuilder_ == null) { + return destinationComponentParameters_.size(); + } else { + return destinationComponentParametersBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the destination
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter getDestinationComponentParameters(int index) { + if (destinationComponentParametersBuilder_ == null) { + return destinationComponentParameters_.get(index); + } else { + return destinationComponentParametersBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the destination
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDestinationComponentParameters( + int index, com.google.cloud.designcenter.v1.Parameter value) { + if (destinationComponentParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDestinationComponentParametersIsMutable(); + destinationComponentParameters_.set(index, value); + onChanged(); + } else { + destinationComponentParametersBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the destination
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDestinationComponentParameters( + int index, com.google.cloud.designcenter.v1.Parameter.Builder builderForValue) { + if (destinationComponentParametersBuilder_ == null) { + ensureDestinationComponentParametersIsMutable(); + destinationComponentParameters_.set(index, builderForValue.build()); + onChanged(); + } else { + destinationComponentParametersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the destination
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addDestinationComponentParameters( + com.google.cloud.designcenter.v1.Parameter value) { + if (destinationComponentParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDestinationComponentParametersIsMutable(); + destinationComponentParameters_.add(value); + onChanged(); + } else { + destinationComponentParametersBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the destination
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addDestinationComponentParameters( + int index, com.google.cloud.designcenter.v1.Parameter value) { + if (destinationComponentParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDestinationComponentParametersIsMutable(); + destinationComponentParameters_.add(index, value); + onChanged(); + } else { + destinationComponentParametersBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the destination
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addDestinationComponentParameters( + com.google.cloud.designcenter.v1.Parameter.Builder builderForValue) { + if (destinationComponentParametersBuilder_ == null) { + ensureDestinationComponentParametersIsMutable(); + destinationComponentParameters_.add(builderForValue.build()); + onChanged(); + } else { + destinationComponentParametersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the destination
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addDestinationComponentParameters( + int index, com.google.cloud.designcenter.v1.Parameter.Builder builderForValue) { + if (destinationComponentParametersBuilder_ == null) { + ensureDestinationComponentParametersIsMutable(); + destinationComponentParameters_.add(index, builderForValue.build()); + onChanged(); + } else { + destinationComponentParametersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the destination
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllDestinationComponentParameters( + java.lang.Iterable values) { + if (destinationComponentParametersBuilder_ == null) { + ensureDestinationComponentParametersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, destinationComponentParameters_); + onChanged(); + } else { + destinationComponentParametersBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the destination
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDestinationComponentParameters() { + if (destinationComponentParametersBuilder_ == null) { + destinationComponentParameters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + destinationComponentParametersBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the destination
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeDestinationComponentParameters(int index) { + if (destinationComponentParametersBuilder_ == null) { + ensureDestinationComponentParametersIsMutable(); + destinationComponentParameters_.remove(index); + onChanged(); + } else { + destinationComponentParametersBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the destination
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter.Builder + getDestinationComponentParametersBuilder(int index) { + return internalGetDestinationComponentParametersFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the destination
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ParameterOrBuilder + getDestinationComponentParametersOrBuilder(int index) { + if (destinationComponentParametersBuilder_ == null) { + return destinationComponentParameters_.get(index); + } else { + return destinationComponentParametersBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the destination
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getDestinationComponentParametersOrBuilderList() { + if (destinationComponentParametersBuilder_ != null) { + return destinationComponentParametersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(destinationComponentParameters_); + } + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the destination
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter.Builder + addDestinationComponentParametersBuilder() { + return internalGetDestinationComponentParametersFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.Parameter.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the destination
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter.Builder + addDestinationComponentParametersBuilder(int index) { + return internalGetDestinationComponentParametersFieldBuilder() + .addBuilder(index, com.google.cloud.designcenter.v1.Parameter.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the destination
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getDestinationComponentParametersBuilderList() { + return internalGetDestinationComponentParametersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Parameter, + com.google.cloud.designcenter.v1.Parameter.Builder, + com.google.cloud.designcenter.v1.ParameterOrBuilder> + internalGetDestinationComponentParametersFieldBuilder() { + if (destinationComponentParametersBuilder_ == null) { + destinationComponentParametersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Parameter, + com.google.cloud.designcenter.v1.Parameter.Builder, + com.google.cloud.designcenter.v1.ParameterOrBuilder>( + destinationComponentParameters_, + ((bitField0_ & 0x00000020) != 0), + getParentForChildren(), + isClean()); + destinationComponentParameters_ = null; + } + return destinationComponentParametersBuilder_; + } + + private int dependencyType_ = 0; + + /** + * + * + *
+     * Output only. The type of the connection (data or logical).
+     * 
+ * + * + * .google.cloud.designcenter.v1.ConnectionDependencyType dependency_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for dependencyType. + */ + @java.lang.Override + public int getDependencyTypeValue() { + return dependencyType_; + } + + /** + * + * + *
+     * Output only. The type of the connection (data or logical).
+     * 
+ * + * + * .google.cloud.designcenter.v1.ConnectionDependencyType dependency_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for dependencyType to set. + * @return This builder for chaining. + */ + public Builder setDependencyTypeValue(int value) { + dependencyType_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The type of the connection (data or logical).
+     * 
+ * + * + * .google.cloud.designcenter.v1.ConnectionDependencyType dependency_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dependencyType. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ConnectionDependencyType getDependencyType() { + com.google.cloud.designcenter.v1.ConnectionDependencyType result = + com.google.cloud.designcenter.v1.ConnectionDependencyType.forNumber(dependencyType_); + return result == null + ? com.google.cloud.designcenter.v1.ConnectionDependencyType.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Output only. The type of the connection (data or logical).
+     * 
+ * + * + * .google.cloud.designcenter.v1.ConnectionDependencyType dependency_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The dependencyType to set. + * @return This builder for chaining. + */ + public Builder setDependencyType( + com.google.cloud.designcenter.v1.ConnectionDependencyType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + dependencyType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The type of the connection (data or logical).
+     * 
+ * + * + * .google.cloud.designcenter.v1.ConnectionDependencyType dependency_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearDependencyType() { + bitField0_ = (bitField0_ & ~0x00000040); + dependencyType_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.Connection) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.Connection) + private static final com.google.cloud.designcenter.v1.Connection DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.Connection(); + } + + public static com.google.cloud.designcenter.v1.Connection getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Connection parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.Connection getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ConnectionConfig.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ConnectionConfig.java new file mode 100644 index 000000000000..330a1074527c --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ConnectionConfig.java @@ -0,0 +1,1801 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Connection configuration for the application.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ConnectionConfig} + */ +@com.google.protobuf.Generated +public final class ConnectionConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ConnectionConfig) + ConnectionConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ConnectionConfig"); + } + + // Use ConnectionConfig.newBuilder() to construct. + private ConnectionConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ConnectionConfig() { + connectionUri_ = ""; + sourceComponentParameters_ = java.util.Collections.emptyList(); + destinationComponentParameters_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_ConnectionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_ConnectionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ConnectionConfig.class, + com.google.cloud.designcenter.v1.ConnectionConfig.Builder.class); + } + + public static final int CONNECTION_URI_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object connectionUri_ = ""; + + /** + * + * + *
+   * Required. The connection URI.
+   * 
+ * + * string connection_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The connectionUri. + */ + @java.lang.Override + public java.lang.String getConnectionUri() { + java.lang.Object ref = connectionUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + connectionUri_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The connection URI.
+   * 
+ * + * string connection_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for connectionUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getConnectionUriBytes() { + java.lang.Object ref = connectionUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + connectionUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SOURCE_COMPONENT_PARAMETERS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List sourceComponentParameters_; + + /** + * + * + *
+   * Optional. The parameters of the connection associated with the source
+   * component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getSourceComponentParametersList() { + return sourceComponentParameters_; + } + + /** + * + * + *
+   * Optional. The parameters of the connection associated with the source
+   * component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getSourceComponentParametersOrBuilderList() { + return sourceComponentParameters_; + } + + /** + * + * + *
+   * Optional. The parameters of the connection associated with the source
+   * component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getSourceComponentParametersCount() { + return sourceComponentParameters_.size(); + } + + /** + * + * + *
+   * Optional. The parameters of the connection associated with the source
+   * component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.Parameter getSourceComponentParameters(int index) { + return sourceComponentParameters_.get(index); + } + + /** + * + * + *
+   * Optional. The parameters of the connection associated with the source
+   * component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ParameterOrBuilder getSourceComponentParametersOrBuilder( + int index) { + return sourceComponentParameters_.get(index); + } + + public static final int DESTINATION_COMPONENT_PARAMETERS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List + destinationComponentParameters_; + + /** + * + * + *
+   * Optional. The parameters of the connection associated with the destination
+   * component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getDestinationComponentParametersList() { + return destinationComponentParameters_; + } + + /** + * + * + *
+   * Optional. The parameters of the connection associated with the destination
+   * component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getDestinationComponentParametersOrBuilderList() { + return destinationComponentParameters_; + } + + /** + * + * + *
+   * Optional. The parameters of the connection associated with the destination
+   * component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getDestinationComponentParametersCount() { + return destinationComponentParameters_.size(); + } + + /** + * + * + *
+   * Optional. The parameters of the connection associated with the destination
+   * component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.Parameter getDestinationComponentParameters(int index) { + return destinationComponentParameters_.get(index); + } + + /** + * + * + *
+   * Optional. The parameters of the connection associated with the destination
+   * component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ParameterOrBuilder + getDestinationComponentParametersOrBuilder(int index) { + return destinationComponentParameters_.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.GeneratedMessage.isStringEmpty(connectionUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, connectionUri_); + } + for (int i = 0; i < sourceComponentParameters_.size(); i++) { + output.writeMessage(2, sourceComponentParameters_.get(i)); + } + for (int i = 0; i < destinationComponentParameters_.size(); i++) { + output.writeMessage(3, destinationComponentParameters_.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.GeneratedMessage.isStringEmpty(connectionUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, connectionUri_); + } + for (int i = 0; i < sourceComponentParameters_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, sourceComponentParameters_.get(i)); + } + for (int i = 0; i < destinationComponentParameters_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, destinationComponentParameters_.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.designcenter.v1.ConnectionConfig)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ConnectionConfig other = + (com.google.cloud.designcenter.v1.ConnectionConfig) obj; + + if (!getConnectionUri().equals(other.getConnectionUri())) return false; + if (!getSourceComponentParametersList().equals(other.getSourceComponentParametersList())) + return false; + if (!getDestinationComponentParametersList() + .equals(other.getDestinationComponentParametersList())) 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) + CONNECTION_URI_FIELD_NUMBER; + hash = (53 * hash) + getConnectionUri().hashCode(); + if (getSourceComponentParametersCount() > 0) { + hash = (37 * hash) + SOURCE_COMPONENT_PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getSourceComponentParametersList().hashCode(); + } + if (getDestinationComponentParametersCount() > 0) { + hash = (37 * hash) + DESTINATION_COMPONENT_PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getDestinationComponentParametersList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.ConnectionConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ConnectionConfig 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.designcenter.v1.ConnectionConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ConnectionConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ConnectionConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ConnectionConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ConnectionConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ConnectionConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ConnectionConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ConnectionConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ConnectionConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ConnectionConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ConnectionConfig 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Connection configuration for the application.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ConnectionConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ConnectionConfig) + com.google.cloud.designcenter.v1.ConnectionConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_ConnectionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_ConnectionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ConnectionConfig.class, + com.google.cloud.designcenter.v1.ConnectionConfig.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.ConnectionConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + connectionUri_ = ""; + if (sourceComponentParametersBuilder_ == null) { + sourceComponentParameters_ = java.util.Collections.emptyList(); + } else { + sourceComponentParameters_ = null; + sourceComponentParametersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + if (destinationComponentParametersBuilder_ == null) { + destinationComponentParameters_ = java.util.Collections.emptyList(); + } else { + destinationComponentParameters_ = null; + destinationComponentParametersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_ConnectionConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ConnectionConfig getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ConnectionConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ConnectionConfig build() { + com.google.cloud.designcenter.v1.ConnectionConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ConnectionConfig buildPartial() { + com.google.cloud.designcenter.v1.ConnectionConfig result = + new com.google.cloud.designcenter.v1.ConnectionConfig(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.designcenter.v1.ConnectionConfig result) { + if (sourceComponentParametersBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + sourceComponentParameters_ = + java.util.Collections.unmodifiableList(sourceComponentParameters_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.sourceComponentParameters_ = sourceComponentParameters_; + } else { + result.sourceComponentParameters_ = sourceComponentParametersBuilder_.build(); + } + if (destinationComponentParametersBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + destinationComponentParameters_ = + java.util.Collections.unmodifiableList(destinationComponentParameters_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.destinationComponentParameters_ = destinationComponentParameters_; + } else { + result.destinationComponentParameters_ = destinationComponentParametersBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.designcenter.v1.ConnectionConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.connectionUri_ = connectionUri_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.ConnectionConfig) { + return mergeFrom((com.google.cloud.designcenter.v1.ConnectionConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.ConnectionConfig other) { + if (other == com.google.cloud.designcenter.v1.ConnectionConfig.getDefaultInstance()) + return this; + if (!other.getConnectionUri().isEmpty()) { + connectionUri_ = other.connectionUri_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (sourceComponentParametersBuilder_ == null) { + if (!other.sourceComponentParameters_.isEmpty()) { + if (sourceComponentParameters_.isEmpty()) { + sourceComponentParameters_ = other.sourceComponentParameters_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureSourceComponentParametersIsMutable(); + sourceComponentParameters_.addAll(other.sourceComponentParameters_); + } + onChanged(); + } + } else { + if (!other.sourceComponentParameters_.isEmpty()) { + if (sourceComponentParametersBuilder_.isEmpty()) { + sourceComponentParametersBuilder_.dispose(); + sourceComponentParametersBuilder_ = null; + sourceComponentParameters_ = other.sourceComponentParameters_; + bitField0_ = (bitField0_ & ~0x00000002); + sourceComponentParametersBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetSourceComponentParametersFieldBuilder() + : null; + } else { + sourceComponentParametersBuilder_.addAllMessages(other.sourceComponentParameters_); + } + } + } + if (destinationComponentParametersBuilder_ == null) { + if (!other.destinationComponentParameters_.isEmpty()) { + if (destinationComponentParameters_.isEmpty()) { + destinationComponentParameters_ = other.destinationComponentParameters_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureDestinationComponentParametersIsMutable(); + destinationComponentParameters_.addAll(other.destinationComponentParameters_); + } + onChanged(); + } + } else { + if (!other.destinationComponentParameters_.isEmpty()) { + if (destinationComponentParametersBuilder_.isEmpty()) { + destinationComponentParametersBuilder_.dispose(); + destinationComponentParametersBuilder_ = null; + destinationComponentParameters_ = other.destinationComponentParameters_; + bitField0_ = (bitField0_ & ~0x00000004); + destinationComponentParametersBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetDestinationComponentParametersFieldBuilder() + : null; + } else { + destinationComponentParametersBuilder_.addAllMessages( + other.destinationComponentParameters_); + } + } + } + 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: + { + connectionUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.designcenter.v1.Parameter m = + input.readMessage( + com.google.cloud.designcenter.v1.Parameter.parser(), extensionRegistry); + if (sourceComponentParametersBuilder_ == null) { + ensureSourceComponentParametersIsMutable(); + sourceComponentParameters_.add(m); + } else { + sourceComponentParametersBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: + { + com.google.cloud.designcenter.v1.Parameter m = + input.readMessage( + com.google.cloud.designcenter.v1.Parameter.parser(), extensionRegistry); + if (destinationComponentParametersBuilder_ == null) { + ensureDestinationComponentParametersIsMutable(); + destinationComponentParameters_.add(m); + } else { + destinationComponentParametersBuilder_.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 connectionUri_ = ""; + + /** + * + * + *
+     * Required. The connection URI.
+     * 
+ * + * string connection_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The connectionUri. + */ + public java.lang.String getConnectionUri() { + java.lang.Object ref = connectionUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + connectionUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The connection URI.
+     * 
+ * + * string connection_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for connectionUri. + */ + public com.google.protobuf.ByteString getConnectionUriBytes() { + java.lang.Object ref = connectionUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + connectionUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The connection URI.
+     * 
+ * + * string connection_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The connectionUri to set. + * @return This builder for chaining. + */ + public Builder setConnectionUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + connectionUri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The connection URI.
+     * 
+ * + * string connection_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearConnectionUri() { + connectionUri_ = getDefaultInstance().getConnectionUri(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The connection URI.
+     * 
+ * + * string connection_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for connectionUri to set. + * @return This builder for chaining. + */ + public Builder setConnectionUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + connectionUri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List sourceComponentParameters_ = + java.util.Collections.emptyList(); + + private void ensureSourceComponentParametersIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + sourceComponentParameters_ = + new java.util.ArrayList( + sourceComponentParameters_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Parameter, + com.google.cloud.designcenter.v1.Parameter.Builder, + com.google.cloud.designcenter.v1.ParameterOrBuilder> + sourceComponentParametersBuilder_; + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the source
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getSourceComponentParametersList() { + if (sourceComponentParametersBuilder_ == null) { + return java.util.Collections.unmodifiableList(sourceComponentParameters_); + } else { + return sourceComponentParametersBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the source
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getSourceComponentParametersCount() { + if (sourceComponentParametersBuilder_ == null) { + return sourceComponentParameters_.size(); + } else { + return sourceComponentParametersBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the source
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter getSourceComponentParameters(int index) { + if (sourceComponentParametersBuilder_ == null) { + return sourceComponentParameters_.get(index); + } else { + return sourceComponentParametersBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the source
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSourceComponentParameters( + int index, com.google.cloud.designcenter.v1.Parameter value) { + if (sourceComponentParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSourceComponentParametersIsMutable(); + sourceComponentParameters_.set(index, value); + onChanged(); + } else { + sourceComponentParametersBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the source
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSourceComponentParameters( + int index, com.google.cloud.designcenter.v1.Parameter.Builder builderForValue) { + if (sourceComponentParametersBuilder_ == null) { + ensureSourceComponentParametersIsMutable(); + sourceComponentParameters_.set(index, builderForValue.build()); + onChanged(); + } else { + sourceComponentParametersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the source
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSourceComponentParameters(com.google.cloud.designcenter.v1.Parameter value) { + if (sourceComponentParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSourceComponentParametersIsMutable(); + sourceComponentParameters_.add(value); + onChanged(); + } else { + sourceComponentParametersBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the source
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSourceComponentParameters( + int index, com.google.cloud.designcenter.v1.Parameter value) { + if (sourceComponentParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSourceComponentParametersIsMutable(); + sourceComponentParameters_.add(index, value); + onChanged(); + } else { + sourceComponentParametersBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the source
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSourceComponentParameters( + com.google.cloud.designcenter.v1.Parameter.Builder builderForValue) { + if (sourceComponentParametersBuilder_ == null) { + ensureSourceComponentParametersIsMutable(); + sourceComponentParameters_.add(builderForValue.build()); + onChanged(); + } else { + sourceComponentParametersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the source
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSourceComponentParameters( + int index, com.google.cloud.designcenter.v1.Parameter.Builder builderForValue) { + if (sourceComponentParametersBuilder_ == null) { + ensureSourceComponentParametersIsMutable(); + sourceComponentParameters_.add(index, builderForValue.build()); + onChanged(); + } else { + sourceComponentParametersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the source
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllSourceComponentParameters( + java.lang.Iterable values) { + if (sourceComponentParametersBuilder_ == null) { + ensureSourceComponentParametersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sourceComponentParameters_); + onChanged(); + } else { + sourceComponentParametersBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the source
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSourceComponentParameters() { + if (sourceComponentParametersBuilder_ == null) { + sourceComponentParameters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + sourceComponentParametersBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the source
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeSourceComponentParameters(int index) { + if (sourceComponentParametersBuilder_ == null) { + ensureSourceComponentParametersIsMutable(); + sourceComponentParameters_.remove(index); + onChanged(); + } else { + sourceComponentParametersBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the source
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter.Builder getSourceComponentParametersBuilder( + int index) { + return internalGetSourceComponentParametersFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the source
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ParameterOrBuilder + getSourceComponentParametersOrBuilder(int index) { + if (sourceComponentParametersBuilder_ == null) { + return sourceComponentParameters_.get(index); + } else { + return sourceComponentParametersBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the source
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getSourceComponentParametersOrBuilderList() { + if (sourceComponentParametersBuilder_ != null) { + return sourceComponentParametersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(sourceComponentParameters_); + } + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the source
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter.Builder + addSourceComponentParametersBuilder() { + return internalGetSourceComponentParametersFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.Parameter.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the source
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter.Builder addSourceComponentParametersBuilder( + int index) { + return internalGetSourceComponentParametersFieldBuilder() + .addBuilder(index, com.google.cloud.designcenter.v1.Parameter.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the source
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getSourceComponentParametersBuilderList() { + return internalGetSourceComponentParametersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Parameter, + com.google.cloud.designcenter.v1.Parameter.Builder, + com.google.cloud.designcenter.v1.ParameterOrBuilder> + internalGetSourceComponentParametersFieldBuilder() { + if (sourceComponentParametersBuilder_ == null) { + sourceComponentParametersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Parameter, + com.google.cloud.designcenter.v1.Parameter.Builder, + com.google.cloud.designcenter.v1.ParameterOrBuilder>( + sourceComponentParameters_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + sourceComponentParameters_ = null; + } + return sourceComponentParametersBuilder_; + } + + private java.util.List + destinationComponentParameters_ = java.util.Collections.emptyList(); + + private void ensureDestinationComponentParametersIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + destinationComponentParameters_ = + new java.util.ArrayList( + destinationComponentParameters_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Parameter, + com.google.cloud.designcenter.v1.Parameter.Builder, + com.google.cloud.designcenter.v1.ParameterOrBuilder> + destinationComponentParametersBuilder_; + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the destination
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getDestinationComponentParametersList() { + if (destinationComponentParametersBuilder_ == null) { + return java.util.Collections.unmodifiableList(destinationComponentParameters_); + } else { + return destinationComponentParametersBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the destination
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getDestinationComponentParametersCount() { + if (destinationComponentParametersBuilder_ == null) { + return destinationComponentParameters_.size(); + } else { + return destinationComponentParametersBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the destination
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter getDestinationComponentParameters(int index) { + if (destinationComponentParametersBuilder_ == null) { + return destinationComponentParameters_.get(index); + } else { + return destinationComponentParametersBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the destination
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDestinationComponentParameters( + int index, com.google.cloud.designcenter.v1.Parameter value) { + if (destinationComponentParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDestinationComponentParametersIsMutable(); + destinationComponentParameters_.set(index, value); + onChanged(); + } else { + destinationComponentParametersBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the destination
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDestinationComponentParameters( + int index, com.google.cloud.designcenter.v1.Parameter.Builder builderForValue) { + if (destinationComponentParametersBuilder_ == null) { + ensureDestinationComponentParametersIsMutable(); + destinationComponentParameters_.set(index, builderForValue.build()); + onChanged(); + } else { + destinationComponentParametersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the destination
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addDestinationComponentParameters( + com.google.cloud.designcenter.v1.Parameter value) { + if (destinationComponentParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDestinationComponentParametersIsMutable(); + destinationComponentParameters_.add(value); + onChanged(); + } else { + destinationComponentParametersBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the destination
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addDestinationComponentParameters( + int index, com.google.cloud.designcenter.v1.Parameter value) { + if (destinationComponentParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDestinationComponentParametersIsMutable(); + destinationComponentParameters_.add(index, value); + onChanged(); + } else { + destinationComponentParametersBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the destination
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addDestinationComponentParameters( + com.google.cloud.designcenter.v1.Parameter.Builder builderForValue) { + if (destinationComponentParametersBuilder_ == null) { + ensureDestinationComponentParametersIsMutable(); + destinationComponentParameters_.add(builderForValue.build()); + onChanged(); + } else { + destinationComponentParametersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the destination
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addDestinationComponentParameters( + int index, com.google.cloud.designcenter.v1.Parameter.Builder builderForValue) { + if (destinationComponentParametersBuilder_ == null) { + ensureDestinationComponentParametersIsMutable(); + destinationComponentParameters_.add(index, builderForValue.build()); + onChanged(); + } else { + destinationComponentParametersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the destination
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllDestinationComponentParameters( + java.lang.Iterable values) { + if (destinationComponentParametersBuilder_ == null) { + ensureDestinationComponentParametersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, destinationComponentParameters_); + onChanged(); + } else { + destinationComponentParametersBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the destination
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDestinationComponentParameters() { + if (destinationComponentParametersBuilder_ == null) { + destinationComponentParameters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + destinationComponentParametersBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the destination
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeDestinationComponentParameters(int index) { + if (destinationComponentParametersBuilder_ == null) { + ensureDestinationComponentParametersIsMutable(); + destinationComponentParameters_.remove(index); + onChanged(); + } else { + destinationComponentParametersBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the destination
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter.Builder + getDestinationComponentParametersBuilder(int index) { + return internalGetDestinationComponentParametersFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the destination
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ParameterOrBuilder + getDestinationComponentParametersOrBuilder(int index) { + if (destinationComponentParametersBuilder_ == null) { + return destinationComponentParameters_.get(index); + } else { + return destinationComponentParametersBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the destination
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getDestinationComponentParametersOrBuilderList() { + if (destinationComponentParametersBuilder_ != null) { + return destinationComponentParametersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(destinationComponentParameters_); + } + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the destination
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter.Builder + addDestinationComponentParametersBuilder() { + return internalGetDestinationComponentParametersFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.Parameter.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the destination
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter.Builder + addDestinationComponentParametersBuilder(int index) { + return internalGetDestinationComponentParametersFieldBuilder() + .addBuilder(index, com.google.cloud.designcenter.v1.Parameter.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the destination
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getDestinationComponentParametersBuilderList() { + return internalGetDestinationComponentParametersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Parameter, + com.google.cloud.designcenter.v1.Parameter.Builder, + com.google.cloud.designcenter.v1.ParameterOrBuilder> + internalGetDestinationComponentParametersFieldBuilder() { + if (destinationComponentParametersBuilder_ == null) { + destinationComponentParametersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Parameter, + com.google.cloud.designcenter.v1.Parameter.Builder, + com.google.cloud.designcenter.v1.ParameterOrBuilder>( + destinationComponentParameters_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + destinationComponentParameters_ = null; + } + return destinationComponentParametersBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ConnectionConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ConnectionConfig) + private static final com.google.cloud.designcenter.v1.ConnectionConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.ConnectionConfig(); + } + + public static com.google.cloud.designcenter.v1.ConnectionConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConnectionConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ConnectionConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ConnectionConfigOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ConnectionConfigOrBuilder.java new file mode 100644 index 000000000000..d2be6c196c2c --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ConnectionConfigOrBuilder.java @@ -0,0 +1,199 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ConnectionConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ConnectionConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The connection URI.
+   * 
+ * + * string connection_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The connectionUri. + */ + java.lang.String getConnectionUri(); + + /** + * + * + *
+   * Required. The connection URI.
+   * 
+ * + * string connection_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for connectionUri. + */ + com.google.protobuf.ByteString getConnectionUriBytes(); + + /** + * + * + *
+   * Optional. The parameters of the connection associated with the source
+   * component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getSourceComponentParametersList(); + + /** + * + * + *
+   * Optional. The parameters of the connection associated with the source
+   * component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.Parameter getSourceComponentParameters(int index); + + /** + * + * + *
+   * Optional. The parameters of the connection associated with the source
+   * component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getSourceComponentParametersCount(); + + /** + * + * + *
+   * Optional. The parameters of the connection associated with the source
+   * component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getSourceComponentParametersOrBuilderList(); + + /** + * + * + *
+   * Optional. The parameters of the connection associated with the source
+   * component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.ParameterOrBuilder getSourceComponentParametersOrBuilder( + int index); + + /** + * + * + *
+   * Optional. The parameters of the connection associated with the destination
+   * component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getDestinationComponentParametersList(); + + /** + * + * + *
+   * Optional. The parameters of the connection associated with the destination
+   * component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.Parameter getDestinationComponentParameters(int index); + + /** + * + * + *
+   * Optional. The parameters of the connection associated with the destination
+   * component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getDestinationComponentParametersCount(); + + /** + * + * + *
+   * Optional. The parameters of the connection associated with the destination
+   * component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getDestinationComponentParametersOrBuilderList(); + + /** + * + * + *
+   * Optional. The parameters of the connection associated with the destination
+   * component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.ParameterOrBuilder getDestinationComponentParametersOrBuilder( + int index); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ConnectionDependencyType.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ConnectionDependencyType.java new file mode 100644 index 000000000000..84a1f4b08b80 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ConnectionDependencyType.java @@ -0,0 +1,196 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/enums.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Indicates the dependency type of the connection.
+ * 
+ * + * Protobuf enum {@code google.cloud.designcenter.v1.ConnectionDependencyType} + */ +@com.google.protobuf.Generated +public enum ConnectionDependencyType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * The dependency type is unspecified.
+   * 
+ * + * CONNECTION_DEPENDENCY_TYPE_UNSPECIFIED = 0; + */ + CONNECTION_DEPENDENCY_TYPE_UNSPECIFIED(0), + /** + * + * + *
+   * Data dependency: output parameter of one module is input to another.
+   * 
+ * + * CONNECTION_DEPENDENCY_TYPE_DATA = 1; + */ + CONNECTION_DEPENDENCY_TYPE_DATA(1), + /** + * + * + *
+   * Logical dependency: explicitly declared execution order dependency
+   * (depends_on).
+   * 
+ * + * CONNECTION_DEPENDENCY_TYPE_LOGICAL = 2; + */ + CONNECTION_DEPENDENCY_TYPE_LOGICAL(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ConnectionDependencyType"); + } + + /** + * + * + *
+   * The dependency type is unspecified.
+   * 
+ * + * CONNECTION_DEPENDENCY_TYPE_UNSPECIFIED = 0; + */ + public static final int CONNECTION_DEPENDENCY_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+   * Data dependency: output parameter of one module is input to another.
+   * 
+ * + * CONNECTION_DEPENDENCY_TYPE_DATA = 1; + */ + public static final int CONNECTION_DEPENDENCY_TYPE_DATA_VALUE = 1; + + /** + * + * + *
+   * Logical dependency: explicitly declared execution order dependency
+   * (depends_on).
+   * 
+ * + * CONNECTION_DEPENDENCY_TYPE_LOGICAL = 2; + */ + public static final int CONNECTION_DEPENDENCY_TYPE_LOGICAL_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 ConnectionDependencyType 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 ConnectionDependencyType forNumber(int value) { + switch (value) { + case 0: + return CONNECTION_DEPENDENCY_TYPE_UNSPECIFIED; + case 1: + return CONNECTION_DEPENDENCY_TYPE_DATA; + case 2: + return CONNECTION_DEPENDENCY_TYPE_LOGICAL; + 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 ConnectionDependencyType findValueByNumber(int number) { + return ConnectionDependencyType.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.designcenter.v1.EnumsProto.getDescriptor().getEnumTypes().get(10); + } + + private static final ConnectionDependencyType[] VALUES = values(); + + public static ConnectionDependencyType 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 ConnectionDependencyType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.designcenter.v1.ConnectionDependencyType) +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ConnectionName.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ConnectionName.java new file mode 100644 index 000000000000..78692ad82f14 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ConnectionName.java @@ -0,0 +1,342 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.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; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked +@Generated("by gapic-generator-java") +public class ConnectionName implements ResourceName { + private static final PathTemplate + PROJECT_LOCATION_SPACE_APPLICATION_TEMPLATE_COMPONENT_CONNECTION = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/components/{component}/connections/{connection}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String space; + private final String applicationTemplate; + private final String component; + private final String connection; + + @Deprecated + protected ConnectionName() { + project = null; + location = null; + space = null; + applicationTemplate = null; + component = null; + connection = null; + } + + private ConnectionName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + space = Preconditions.checkNotNull(builder.getSpace()); + applicationTemplate = Preconditions.checkNotNull(builder.getApplicationTemplate()); + component = Preconditions.checkNotNull(builder.getComponent()); + connection = Preconditions.checkNotNull(builder.getConnection()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getSpace() { + return space; + } + + public String getApplicationTemplate() { + return applicationTemplate; + } + + public String getComponent() { + return component; + } + + public String getConnection() { + return connection; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ConnectionName of( + String project, + String location, + String space, + String applicationTemplate, + String component, + String connection) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setSpace(space) + .setApplicationTemplate(applicationTemplate) + .setComponent(component) + .setConnection(connection) + .build(); + } + + public static String format( + String project, + String location, + String space, + String applicationTemplate, + String component, + String connection) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setSpace(space) + .setApplicationTemplate(applicationTemplate) + .setComponent(component) + .setConnection(connection) + .build() + .toString(); + } + + public static @Nullable ConnectionName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_SPACE_APPLICATION_TEMPLATE_COMPONENT_CONNECTION.validatedMatch( + formattedString, "ConnectionName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("space"), + matchMap.get("application_template"), + matchMap.get("component"), + matchMap.get("connection")); + } + + 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<@Nullable ConnectionName> values) { + List list = new ArrayList<>(values.size()); + for (ConnectionName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_SPACE_APPLICATION_TEMPLATE_COMPONENT_CONNECTION.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 (space != null) { + fieldMapBuilder.put("space", space); + } + if (applicationTemplate != null) { + fieldMapBuilder.put("application_template", applicationTemplate); + } + if (component != null) { + fieldMapBuilder.put("component", component); + } + if (connection != null) { + fieldMapBuilder.put("connection", connection); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_SPACE_APPLICATION_TEMPLATE_COMPONENT_CONNECTION.instantiate( + "project", + project, + "location", + location, + "space", + space, + "application_template", + applicationTemplate, + "component", + component, + "connection", + connection); + } + + @Override + public boolean equals(@Nullable Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + ConnectionName that = ((ConnectionName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.space, that.space) + && Objects.equals(this.applicationTemplate, that.applicationTemplate) + && Objects.equals(this.component, that.component) + && Objects.equals(this.connection, that.connection); + } + 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(space); + h *= 1000003; + h ^= Objects.hashCode(applicationTemplate); + h *= 1000003; + h ^= Objects.hashCode(component); + h *= 1000003; + h ^= Objects.hashCode(connection); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/components/{component}/connections/{connection}. + */ + public static class Builder { + private String project; + private String location; + private String space; + private String applicationTemplate; + private String component; + private String connection; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getSpace() { + return space; + } + + public String getApplicationTemplate() { + return applicationTemplate; + } + + public String getComponent() { + return component; + } + + public String getConnection() { + return connection; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setSpace(String space) { + this.space = space; + return this; + } + + public Builder setApplicationTemplate(String applicationTemplate) { + this.applicationTemplate = applicationTemplate; + return this; + } + + public Builder setComponent(String component) { + this.component = component; + return this; + } + + public Builder setConnection(String connection) { + this.connection = connection; + return this; + } + + private Builder(ConnectionName connectionName) { + this.project = connectionName.project; + this.location = connectionName.location; + this.space = connectionName.space; + this.applicationTemplate = connectionName.applicationTemplate; + this.component = connectionName.component; + this.connection = connectionName.connection; + } + + public ConnectionName build() { + return new ConnectionName(this); + } + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ConnectionOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ConnectionOrBuilder.java new file mode 100644 index 000000000000..057a9a162ddc --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ConnectionOrBuilder.java @@ -0,0 +1,343 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ConnectionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.Connection) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier. The connection name.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Identifier. The connection name.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The destination component URI used to generate the connection.
+   * Format is
+   * `projects/$project/locations/$location/spaces/$space/applicationTemplates/$application_template/components/$component`
+   * 
+ * + * + * string destination_component_uri = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The destinationComponentUri. + */ + java.lang.String getDestinationComponentUri(); + + /** + * + * + *
+   * Required. The destination component URI used to generate the connection.
+   * Format is
+   * `projects/$project/locations/$location/spaces/$space/applicationTemplates/$application_template/components/$component`
+   * 
+ * + * + * string destination_component_uri = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for destinationComponentUri. + */ + com.google.protobuf.ByteString getDestinationComponentUriBytes(); + + /** + * + * + *
+   * Output only. The connection creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
+   * Output only. The connection creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
+   * Output only. The connection creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The connection update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
+   * Output only. The connection update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
+   * Output only. The connection update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Optional. The parameters of the connection associated with the source
+   * component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getSourceComponentParametersList(); + + /** + * + * + *
+   * Optional. The parameters of the connection associated with the source
+   * component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.Parameter getSourceComponentParameters(int index); + + /** + * + * + *
+   * Optional. The parameters of the connection associated with the source
+   * component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getSourceComponentParametersCount(); + + /** + * + * + *
+   * Optional. The parameters of the connection associated with the source
+   * component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getSourceComponentParametersOrBuilderList(); + + /** + * + * + *
+   * Optional. The parameters of the connection associated with the source
+   * component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.ParameterOrBuilder getSourceComponentParametersOrBuilder( + int index); + + /** + * + * + *
+   * Optional. The parameters of the connection associated with the destination
+   * component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getDestinationComponentParametersList(); + + /** + * + * + *
+   * Optional. The parameters of the connection associated with the destination
+   * component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.Parameter getDestinationComponentParameters(int index); + + /** + * + * + *
+   * Optional. The parameters of the connection associated with the destination
+   * component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getDestinationComponentParametersCount(); + + /** + * + * + *
+   * Optional. The parameters of the connection associated with the destination
+   * component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getDestinationComponentParametersOrBuilderList(); + + /** + * + * + *
+   * Optional. The parameters of the connection associated with the destination
+   * component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.ParameterOrBuilder getDestinationComponentParametersOrBuilder( + int index); + + /** + * + * + *
+   * Output only. The type of the connection (data or logical).
+   * 
+ * + * + * .google.cloud.designcenter.v1.ConnectionDependencyType dependency_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for dependencyType. + */ + int getDependencyTypeValue(); + + /** + * + * + *
+   * Output only. The type of the connection (data or logical).
+   * 
+ * + * + * .google.cloud.designcenter.v1.ConnectionDependencyType dependency_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dependencyType. + */ + com.google.cloud.designcenter.v1.ConnectionDependencyType getDependencyType(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ConnectionParameters.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ConnectionParameters.java new file mode 100644 index 000000000000..f97fd006e7dd --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ConnectionParameters.java @@ -0,0 +1,1162 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/parameters.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Connection level parameters associated with each component within an
+ * application.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ConnectionParameters} + */ +@com.google.protobuf.Generated +public final class ConnectionParameters extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ConnectionParameters) + ConnectionParametersOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ConnectionParameters"); + } + + // Use ConnectionParameters.newBuilder() to construct. + private ConnectionParameters(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ConnectionParameters() { + connection_ = ""; + parameters_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.ParametersProto + .internal_static_google_cloud_designcenter_v1_ConnectionParameters_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.ParametersProto + .internal_static_google_cloud_designcenter_v1_ConnectionParameters_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ConnectionParameters.class, + com.google.cloud.designcenter.v1.ConnectionParameters.Builder.class); + } + + public static final int CONNECTION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object connection_ = ""; + + /** + * + * + *
+   * Required. The name of the connection parameter.
+   * 
+ * + * string connection = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The connection. + */ + @java.lang.Override + public java.lang.String getConnection() { + java.lang.Object ref = connection_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + connection_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The name of the connection parameter.
+   * 
+ * + * string connection = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for connection. + */ + @java.lang.Override + public com.google.protobuf.ByteString getConnectionBytes() { + java.lang.Object ref = connection_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + connection_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARAMETERS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List parameters_; + + /** + * + * + *
+   * Optional. A list of parameters associated with the connection.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getParametersList() { + return parameters_; + } + + /** + * + * + *
+   * Optional. A list of parameters associated with the connection.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getParametersOrBuilderList() { + return parameters_; + } + + /** + * + * + *
+   * Optional. A list of parameters associated with the connection.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getParametersCount() { + return parameters_.size(); + } + + /** + * + * + *
+   * Optional. A list of parameters associated with the connection.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.Parameter getParameters(int index) { + return parameters_.get(index); + } + + /** + * + * + *
+   * Optional. A list of parameters associated with the connection.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ParameterOrBuilder getParametersOrBuilder(int index) { + return parameters_.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.GeneratedMessage.isStringEmpty(connection_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, connection_); + } + for (int i = 0; i < parameters_.size(); i++) { + output.writeMessage(2, parameters_.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.GeneratedMessage.isStringEmpty(connection_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, connection_); + } + for (int i = 0; i < parameters_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, parameters_.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.designcenter.v1.ConnectionParameters)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ConnectionParameters other = + (com.google.cloud.designcenter.v1.ConnectionParameters) obj; + + if (!getConnection().equals(other.getConnection())) return false; + if (!getParametersList().equals(other.getParametersList())) 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) + CONNECTION_FIELD_NUMBER; + hash = (53 * hash) + getConnection().hashCode(); + if (getParametersCount() > 0) { + hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getParametersList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.ConnectionParameters parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ConnectionParameters 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.designcenter.v1.ConnectionParameters parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ConnectionParameters parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ConnectionParameters parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ConnectionParameters parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ConnectionParameters parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ConnectionParameters parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ConnectionParameters parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ConnectionParameters parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ConnectionParameters parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ConnectionParameters parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ConnectionParameters 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Connection level parameters associated with each component within an
+   * application.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ConnectionParameters} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ConnectionParameters) + com.google.cloud.designcenter.v1.ConnectionParametersOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.ParametersProto + .internal_static_google_cloud_designcenter_v1_ConnectionParameters_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.ParametersProto + .internal_static_google_cloud_designcenter_v1_ConnectionParameters_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ConnectionParameters.class, + com.google.cloud.designcenter.v1.ConnectionParameters.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.ConnectionParameters.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + connection_ = ""; + if (parametersBuilder_ == null) { + parameters_ = java.util.Collections.emptyList(); + } else { + parameters_ = null; + parametersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.ParametersProto + .internal_static_google_cloud_designcenter_v1_ConnectionParameters_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ConnectionParameters getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ConnectionParameters.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ConnectionParameters build() { + com.google.cloud.designcenter.v1.ConnectionParameters result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ConnectionParameters buildPartial() { + com.google.cloud.designcenter.v1.ConnectionParameters result = + new com.google.cloud.designcenter.v1.ConnectionParameters(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.designcenter.v1.ConnectionParameters result) { + if (parametersBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + parameters_ = java.util.Collections.unmodifiableList(parameters_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.parameters_ = parameters_; + } else { + result.parameters_ = parametersBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.designcenter.v1.ConnectionParameters result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.connection_ = connection_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.ConnectionParameters) { + return mergeFrom((com.google.cloud.designcenter.v1.ConnectionParameters) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.ConnectionParameters other) { + if (other == com.google.cloud.designcenter.v1.ConnectionParameters.getDefaultInstance()) + return this; + if (!other.getConnection().isEmpty()) { + connection_ = other.connection_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (parametersBuilder_ == null) { + if (!other.parameters_.isEmpty()) { + if (parameters_.isEmpty()) { + parameters_ = other.parameters_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureParametersIsMutable(); + parameters_.addAll(other.parameters_); + } + onChanged(); + } + } else { + if (!other.parameters_.isEmpty()) { + if (parametersBuilder_.isEmpty()) { + parametersBuilder_.dispose(); + parametersBuilder_ = null; + parameters_ = other.parameters_; + bitField0_ = (bitField0_ & ~0x00000002); + parametersBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetParametersFieldBuilder() + : null; + } else { + parametersBuilder_.addAllMessages(other.parameters_); + } + } + } + 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: + { + connection_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.designcenter.v1.Parameter m = + input.readMessage( + com.google.cloud.designcenter.v1.Parameter.parser(), extensionRegistry); + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + parameters_.add(m); + } else { + parametersBuilder_.addMessage(m); + } + 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 connection_ = ""; + + /** + * + * + *
+     * Required. The name of the connection parameter.
+     * 
+ * + * string connection = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The connection. + */ + public java.lang.String getConnection() { + java.lang.Object ref = connection_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + connection_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The name of the connection parameter.
+     * 
+ * + * string connection = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for connection. + */ + public com.google.protobuf.ByteString getConnectionBytes() { + java.lang.Object ref = connection_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + connection_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The name of the connection parameter.
+     * 
+ * + * string connection = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The connection to set. + * @return This builder for chaining. + */ + public Builder setConnection(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + connection_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The name of the connection parameter.
+     * 
+ * + * string connection = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearConnection() { + connection_ = getDefaultInstance().getConnection(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The name of the connection parameter.
+     * 
+ * + * string connection = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for connection to set. + * @return This builder for chaining. + */ + public Builder setConnectionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + connection_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List parameters_ = + java.util.Collections.emptyList(); + + private void ensureParametersIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + parameters_ = + new java.util.ArrayList(parameters_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Parameter, + com.google.cloud.designcenter.v1.Parameter.Builder, + com.google.cloud.designcenter.v1.ParameterOrBuilder> + parametersBuilder_; + + /** + * + * + *
+     * Optional. A list of parameters associated with the connection.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getParametersList() { + if (parametersBuilder_ == null) { + return java.util.Collections.unmodifiableList(parameters_); + } else { + return parametersBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. A list of parameters associated with the connection.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getParametersCount() { + if (parametersBuilder_ == null) { + return parameters_.size(); + } else { + return parametersBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. A list of parameters associated with the connection.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter getParameters(int index) { + if (parametersBuilder_ == null) { + return parameters_.get(index); + } else { + return parametersBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. A list of parameters associated with the connection.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setParameters(int index, com.google.cloud.designcenter.v1.Parameter value) { + if (parametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureParametersIsMutable(); + parameters_.set(index, value); + onChanged(); + } else { + parametersBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of parameters associated with the connection.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setParameters( + int index, com.google.cloud.designcenter.v1.Parameter.Builder builderForValue) { + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + parameters_.set(index, builderForValue.build()); + onChanged(); + } else { + parametersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of parameters associated with the connection.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addParameters(com.google.cloud.designcenter.v1.Parameter value) { + if (parametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureParametersIsMutable(); + parameters_.add(value); + onChanged(); + } else { + parametersBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of parameters associated with the connection.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addParameters(int index, com.google.cloud.designcenter.v1.Parameter value) { + if (parametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureParametersIsMutable(); + parameters_.add(index, value); + onChanged(); + } else { + parametersBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of parameters associated with the connection.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addParameters( + com.google.cloud.designcenter.v1.Parameter.Builder builderForValue) { + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + parameters_.add(builderForValue.build()); + onChanged(); + } else { + parametersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of parameters associated with the connection.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addParameters( + int index, com.google.cloud.designcenter.v1.Parameter.Builder builderForValue) { + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + parameters_.add(index, builderForValue.build()); + onChanged(); + } else { + parametersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of parameters associated with the connection.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllParameters( + java.lang.Iterable values) { + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, parameters_); + onChanged(); + } else { + parametersBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of parameters associated with the connection.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearParameters() { + if (parametersBuilder_ == null) { + parameters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + parametersBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of parameters associated with the connection.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeParameters(int index) { + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + parameters_.remove(index); + onChanged(); + } else { + parametersBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of parameters associated with the connection.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter.Builder getParametersBuilder(int index) { + return internalGetParametersFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. A list of parameters associated with the connection.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ParameterOrBuilder getParametersOrBuilder(int index) { + if (parametersBuilder_ == null) { + return parameters_.get(index); + } else { + return parametersBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. A list of parameters associated with the connection.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getParametersOrBuilderList() { + if (parametersBuilder_ != null) { + return parametersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(parameters_); + } + } + + /** + * + * + *
+     * Optional. A list of parameters associated with the connection.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter.Builder addParametersBuilder() { + return internalGetParametersFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.Parameter.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. A list of parameters associated with the connection.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter.Builder addParametersBuilder(int index) { + return internalGetParametersFieldBuilder() + .addBuilder(index, com.google.cloud.designcenter.v1.Parameter.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. A list of parameters associated with the connection.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getParametersBuilderList() { + return internalGetParametersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Parameter, + com.google.cloud.designcenter.v1.Parameter.Builder, + com.google.cloud.designcenter.v1.ParameterOrBuilder> + internalGetParametersFieldBuilder() { + if (parametersBuilder_ == null) { + parametersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Parameter, + com.google.cloud.designcenter.v1.Parameter.Builder, + com.google.cloud.designcenter.v1.ParameterOrBuilder>( + parameters_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + parameters_ = null; + } + return parametersBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ConnectionParameters) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ConnectionParameters) + private static final com.google.cloud.designcenter.v1.ConnectionParameters DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.ConnectionParameters(); + } + + public static com.google.cloud.designcenter.v1.ConnectionParameters getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConnectionParameters parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ConnectionParameters getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ConnectionParametersOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ConnectionParametersOrBuilder.java new file mode 100644 index 000000000000..ae8785a054f6 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ConnectionParametersOrBuilder.java @@ -0,0 +1,120 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/parameters.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ConnectionParametersOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ConnectionParameters) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the connection parameter.
+   * 
+ * + * string connection = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The connection. + */ + java.lang.String getConnection(); + + /** + * + * + *
+   * Required. The name of the connection parameter.
+   * 
+ * + * string connection = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for connection. + */ + com.google.protobuf.ByteString getConnectionBytes(); + + /** + * + * + *
+   * Optional. A list of parameters associated with the connection.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getParametersList(); + + /** + * + * + *
+   * Optional. A list of parameters associated with the connection.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.Parameter getParameters(int index); + + /** + * + * + *
+   * Optional. A list of parameters associated with the connection.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getParametersCount(); + + /** + * + * + *
+   * Optional. A list of parameters associated with the connection.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getParametersOrBuilderList(); + + /** + * + * + *
+   * Optional. A list of parameters associated with the connection.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.ParameterOrBuilder getParametersOrBuilder(int index); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ConnectionSource.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ConnectionSource.java new file mode 100644 index 000000000000..f829decd9401 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ConnectionSource.java @@ -0,0 +1,806 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Defines the source of a connection.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ConnectionSource} + */ +@com.google.protobuf.Generated +public final class ConnectionSource extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ConnectionSource) + ConnectionSourceOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ConnectionSource"); + } + + // Use ConnectionSource.newBuilder() to construct. + private ConnectionSource(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ConnectionSource() { + source_ = ""; + version_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_ConnectionSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_ConnectionSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ConnectionSource.class, + com.google.cloud.designcenter.v1.ConnectionSource.Builder.class); + } + + public static final int SOURCE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object source_ = ""; + + /** + * + * + *
+   * Required. Source of the connection. Defined using the same format as module
+   * source of form [hostname]/namespace/name/provider for registry references
+   * and unprefixed github.com URLs for github references.
+   * 
+ * + * string source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The source. + */ + @java.lang.Override + public java.lang.String getSource() { + java.lang.Object ref = source_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + source_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Source of the connection. Defined using the same format as module
+   * source of form [hostname]/namespace/name/provider for registry references
+   * and unprefixed github.com URLs for github references.
+   * 
+ * + * string source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for source. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSourceBytes() { + java.lang.Object ref = source_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + source_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VERSION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object version_ = ""; + + /** + * + * + *
+   * Required. Version constraint syntax using the same format as module version
+   * constraints.
+   * 
+ * + * string version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + /** + * + * + *
+   * Required. Version constraint syntax using the same format as module version
+   * constraints.
+   * 
+ * + * string version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + 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.GeneratedMessage.isStringEmpty(source_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, source_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(version_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, version_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(source_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, source_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(version_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, version_); + } + 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.designcenter.v1.ConnectionSource)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ConnectionSource other = + (com.google.cloud.designcenter.v1.ConnectionSource) obj; + + if (!getSource().equals(other.getSource())) return false; + if (!getVersion().equals(other.getVersion())) 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) + SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getSource().hashCode(); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.ConnectionSource parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ConnectionSource 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.designcenter.v1.ConnectionSource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ConnectionSource parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ConnectionSource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ConnectionSource parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ConnectionSource parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ConnectionSource parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ConnectionSource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ConnectionSource parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ConnectionSource parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ConnectionSource parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ConnectionSource 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Defines the source of a connection.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ConnectionSource} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ConnectionSource) + com.google.cloud.designcenter.v1.ConnectionSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_ConnectionSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_ConnectionSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ConnectionSource.class, + com.google.cloud.designcenter.v1.ConnectionSource.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.ConnectionSource.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + source_ = ""; + version_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_ConnectionSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ConnectionSource getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ConnectionSource.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ConnectionSource build() { + com.google.cloud.designcenter.v1.ConnectionSource result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ConnectionSource buildPartial() { + com.google.cloud.designcenter.v1.ConnectionSource result = + new com.google.cloud.designcenter.v1.ConnectionSource(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.ConnectionSource result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.source_ = source_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.version_ = version_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.ConnectionSource) { + return mergeFrom((com.google.cloud.designcenter.v1.ConnectionSource) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.ConnectionSource other) { + if (other == com.google.cloud.designcenter.v1.ConnectionSource.getDefaultInstance()) + return this; + if (!other.getSource().isEmpty()) { + source_ = other.source_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + 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: + { + source_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + version_ = 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 source_ = ""; + + /** + * + * + *
+     * Required. Source of the connection. Defined using the same format as module
+     * source of form [hostname]/namespace/name/provider for registry references
+     * and unprefixed github.com URLs for github references.
+     * 
+ * + * string source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The source. + */ + public java.lang.String getSource() { + java.lang.Object ref = source_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + source_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Source of the connection. Defined using the same format as module
+     * source of form [hostname]/namespace/name/provider for registry references
+     * and unprefixed github.com URLs for github references.
+     * 
+ * + * string source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for source. + */ + public com.google.protobuf.ByteString getSourceBytes() { + java.lang.Object ref = source_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + source_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Source of the connection. Defined using the same format as module
+     * source of form [hostname]/namespace/name/provider for registry references
+     * and unprefixed github.com URLs for github references.
+     * 
+ * + * string source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The source to set. + * @return This builder for chaining. + */ + public Builder setSource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Source of the connection. Defined using the same format as module
+     * source of form [hostname]/namespace/name/provider for registry references
+     * and unprefixed github.com URLs for github references.
+     * 
+ * + * string source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearSource() { + source_ = getDefaultInstance().getSource(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Source of the connection. Defined using the same format as module
+     * source of form [hostname]/namespace/name/provider for registry references
+     * and unprefixed github.com URLs for github references.
+     * 
+ * + * string source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for source to set. + * @return This builder for chaining. + */ + public Builder setSourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + source_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object version_ = ""; + + /** + * + * + *
+     * Required. Version constraint syntax using the same format as module version
+     * constraints.
+     * 
+ * + * string version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + /** + * + * + *
+     * Required. Version constraint syntax using the same format as module version
+     * constraints.
+     * 
+ * + * string version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + /** + * + * + *
+     * Required. Version constraint syntax using the same format as module version
+     * constraints.
+     * 
+ * + * string version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Version constraint syntax using the same format as module version
+     * constraints.
+     * 
+ * + * string version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearVersion() { + version_ = getDefaultInstance().getVersion(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Version constraint syntax using the same format as module version
+     * constraints.
+     * 
+ * + * string version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ConnectionSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ConnectionSource) + private static final com.google.cloud.designcenter.v1.ConnectionSource DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.ConnectionSource(); + } + + public static com.google.cloud.designcenter.v1.ConnectionSource getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConnectionSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ConnectionSource getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ConnectionSourceOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ConnectionSourceOrBuilder.java new file mode 100644 index 000000000000..20b46dd39f7b --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ConnectionSourceOrBuilder.java @@ -0,0 +1,86 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ConnectionSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ConnectionSource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Source of the connection. Defined using the same format as module
+   * source of form [hostname]/namespace/name/provider for registry references
+   * and unprefixed github.com URLs for github references.
+   * 
+ * + * string source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The source. + */ + java.lang.String getSource(); + + /** + * + * + *
+   * Required. Source of the connection. Defined using the same format as module
+   * source of form [hostname]/namespace/name/provider for registry references
+   * and unprefixed github.com URLs for github references.
+   * 
+ * + * string source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for source. + */ + com.google.protobuf.ByteString getSourceBytes(); + + /** + * + * + *
+   * Required. Version constraint syntax using the same format as module version
+   * constraints.
+   * 
+ * + * string version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The version. + */ + java.lang.String getVersion(); + + /** + * + * + *
+   * Required. Version constraint syntax using the same format as module version
+   * constraints.
+   * 
+ * + * string version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for version. + */ + com.google.protobuf.ByteString getVersionBytes(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ConnectionSpec.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ConnectionSpec.java new file mode 100644 index 000000000000..527d28cc5be3 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ConnectionSpec.java @@ -0,0 +1,834 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Defines the specifications of a connection.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ConnectionSpec} + */ +@com.google.protobuf.Generated +public final class ConnectionSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ConnectionSpec) + ConnectionSpecOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ConnectionSpec"); + } + + // Use ConnectionSpec.newBuilder() to construct. + private ConnectionSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ConnectionSpec() { + outputExpr_ = ""; + inputPath_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_ConnectionSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_ConnectionSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ConnectionSpec.class, + com.google.cloud.designcenter.v1.ConnectionSpec.Builder.class); + } + + private int bitField0_; + public static final int OUTPUT_EXPR_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object outputExpr_ = ""; + + /** + * + * + *
+   * Required. Output expression identifying output being connected to variable.
+   * 
+ * + * string output_expr = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The outputExpr. + */ + @java.lang.Override + public java.lang.String getOutputExpr() { + java.lang.Object ref = outputExpr_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outputExpr_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Output expression identifying output being connected to variable.
+   * 
+ * + * string output_expr = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for outputExpr. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOutputExprBytes() { + java.lang.Object ref = outputExpr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + outputExpr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INPUT_PATH_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object inputPath_ = ""; + + /** + * + * + *
+   * Optional. Optional dot separated attribuite notation to connect to a
+   * specific object field of the input variable.
+   * 
+ * + * optional string input_path = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the inputPath field is set. + */ + @java.lang.Override + public boolean hasInputPath() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. Optional dot separated attribuite notation to connect to a
+   * specific object field of the input variable.
+   * 
+ * + * optional string input_path = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The inputPath. + */ + @java.lang.Override + public java.lang.String getInputPath() { + java.lang.Object ref = inputPath_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inputPath_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Optional dot separated attribuite notation to connect to a
+   * specific object field of the input variable.
+   * 
+ * + * optional string input_path = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for inputPath. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInputPathBytes() { + java.lang.Object ref = inputPath_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + inputPath_ = 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.GeneratedMessage.isStringEmpty(outputExpr_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, outputExpr_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, inputPath_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(outputExpr_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, outputExpr_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, inputPath_); + } + 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.designcenter.v1.ConnectionSpec)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ConnectionSpec other = + (com.google.cloud.designcenter.v1.ConnectionSpec) obj; + + if (!getOutputExpr().equals(other.getOutputExpr())) return false; + if (hasInputPath() != other.hasInputPath()) return false; + if (hasInputPath()) { + if (!getInputPath().equals(other.getInputPath())) 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) + OUTPUT_EXPR_FIELD_NUMBER; + hash = (53 * hash) + getOutputExpr().hashCode(); + if (hasInputPath()) { + hash = (37 * hash) + INPUT_PATH_FIELD_NUMBER; + hash = (53 * hash) + getInputPath().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.ConnectionSpec parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ConnectionSpec 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.designcenter.v1.ConnectionSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ConnectionSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ConnectionSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ConnectionSpec parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ConnectionSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ConnectionSpec parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ConnectionSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ConnectionSpec parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ConnectionSpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ConnectionSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ConnectionSpec 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Defines the specifications of a connection.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ConnectionSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ConnectionSpec) + com.google.cloud.designcenter.v1.ConnectionSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_ConnectionSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_ConnectionSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ConnectionSpec.class, + com.google.cloud.designcenter.v1.ConnectionSpec.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.ConnectionSpec.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + outputExpr_ = ""; + inputPath_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_ConnectionSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ConnectionSpec getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ConnectionSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ConnectionSpec build() { + com.google.cloud.designcenter.v1.ConnectionSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ConnectionSpec buildPartial() { + com.google.cloud.designcenter.v1.ConnectionSpec result = + new com.google.cloud.designcenter.v1.ConnectionSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.ConnectionSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.outputExpr_ = outputExpr_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.inputPath_ = inputPath_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.ConnectionSpec) { + return mergeFrom((com.google.cloud.designcenter.v1.ConnectionSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.ConnectionSpec other) { + if (other == com.google.cloud.designcenter.v1.ConnectionSpec.getDefaultInstance()) + return this; + if (!other.getOutputExpr().isEmpty()) { + outputExpr_ = other.outputExpr_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasInputPath()) { + inputPath_ = other.inputPath_; + 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: + { + outputExpr_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + inputPath_ = 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 outputExpr_ = ""; + + /** + * + * + *
+     * Required. Output expression identifying output being connected to variable.
+     * 
+ * + * string output_expr = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The outputExpr. + */ + public java.lang.String getOutputExpr() { + java.lang.Object ref = outputExpr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outputExpr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Output expression identifying output being connected to variable.
+     * 
+ * + * string output_expr = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for outputExpr. + */ + public com.google.protobuf.ByteString getOutputExprBytes() { + java.lang.Object ref = outputExpr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + outputExpr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Output expression identifying output being connected to variable.
+     * 
+ * + * string output_expr = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The outputExpr to set. + * @return This builder for chaining. + */ + public Builder setOutputExpr(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + outputExpr_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Output expression identifying output being connected to variable.
+     * 
+ * + * string output_expr = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearOutputExpr() { + outputExpr_ = getDefaultInstance().getOutputExpr(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Output expression identifying output being connected to variable.
+     * 
+ * + * string output_expr = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for outputExpr to set. + * @return This builder for chaining. + */ + public Builder setOutputExprBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputExpr_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object inputPath_ = ""; + + /** + * + * + *
+     * Optional. Optional dot separated attribuite notation to connect to a
+     * specific object field of the input variable.
+     * 
+ * + * optional string input_path = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the inputPath field is set. + */ + public boolean hasInputPath() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Optional. Optional dot separated attribuite notation to connect to a
+     * specific object field of the input variable.
+     * 
+ * + * optional string input_path = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The inputPath. + */ + public java.lang.String getInputPath() { + java.lang.Object ref = inputPath_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inputPath_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Optional dot separated attribuite notation to connect to a
+     * specific object field of the input variable.
+     * 
+ * + * optional string input_path = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for inputPath. + */ + public com.google.protobuf.ByteString getInputPathBytes() { + java.lang.Object ref = inputPath_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + inputPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Optional dot separated attribuite notation to connect to a
+     * specific object field of the input variable.
+     * 
+ * + * optional string input_path = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The inputPath to set. + * @return This builder for chaining. + */ + public Builder setInputPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + inputPath_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Optional dot separated attribuite notation to connect to a
+     * specific object field of the input variable.
+     * 
+ * + * optional string input_path = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearInputPath() { + inputPath_ = getDefaultInstance().getInputPath(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Optional dot separated attribuite notation to connect to a
+     * specific object field of the input variable.
+     * 
+ * + * optional string input_path = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for inputPath to set. + * @return This builder for chaining. + */ + public Builder setInputPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + inputPath_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ConnectionSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ConnectionSpec) + private static final com.google.cloud.designcenter.v1.ConnectionSpec DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.ConnectionSpec(); + } + + public static com.google.cloud.designcenter.v1.ConnectionSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConnectionSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ConnectionSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ConnectionSpecOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ConnectionSpecOrBuilder.java new file mode 100644 index 000000000000..79c72988baec --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ConnectionSpecOrBuilder.java @@ -0,0 +1,96 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ConnectionSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ConnectionSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Output expression identifying output being connected to variable.
+   * 
+ * + * string output_expr = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The outputExpr. + */ + java.lang.String getOutputExpr(); + + /** + * + * + *
+   * Required. Output expression identifying output being connected to variable.
+   * 
+ * + * string output_expr = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for outputExpr. + */ + com.google.protobuf.ByteString getOutputExprBytes(); + + /** + * + * + *
+   * Optional. Optional dot separated attribuite notation to connect to a
+   * specific object field of the input variable.
+   * 
+ * + * optional string input_path = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the inputPath field is set. + */ + boolean hasInputPath(); + + /** + * + * + *
+   * Optional. Optional dot separated attribuite notation to connect to a
+   * specific object field of the input variable.
+   * 
+ * + * optional string input_path = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The inputPath. + */ + java.lang.String getInputPath(); + + /** + * + * + *
+   * Optional. Optional dot separated attribuite notation to connect to a
+   * specific object field of the input variable.
+   * 
+ * + * optional string input_path = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for inputPath. + */ + com.google.protobuf.ByteString getInputPathBytes(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreateApplicationRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreateApplicationRequest.java new file mode 100644 index 000000000000..eb6249433a75 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreateApplicationRequest.java @@ -0,0 +1,1125 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for creating an application.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.CreateApplicationRequest} + */ +@com.google.protobuf.Generated +public final class CreateApplicationRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.CreateApplicationRequest) + CreateApplicationRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "CreateApplicationRequest"); + } + + // Use CreateApplicationRequest.newBuilder() to construct. + private CreateApplicationRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateApplicationRequest() { + parent_ = ""; + applicationId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_CreateApplicationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_CreateApplicationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.CreateApplicationRequest.class, + com.google.cloud.designcenter.v1.CreateApplicationRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent resource in which to create the application.
+   * Format: `projects/$project/locations/$location/spaces/$space`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The parent resource in which to create the application.
+   * Format: `projects/$project/locations/$location/spaces/$space`
+   * 
+ * + * + * 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 APPLICATION_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object applicationId_ = ""; + + /** + * + * + *
+   * Required. The ID of the application to create.
+   * 
+ * + * string application_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The applicationId. + */ + @java.lang.Override + public java.lang.String getApplicationId() { + java.lang.Object ref = applicationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + applicationId_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The ID of the application to create.
+   * 
+ * + * string application_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for applicationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getApplicationIdBytes() { + java.lang.Object ref = applicationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + applicationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int APPLICATION_FIELD_NUMBER = 3; + private com.google.cloud.designcenter.v1.Application application_; + + /** + * + * + *
+   * Required. The application to create.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Application application = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the application field is set. + */ + @java.lang.Override + public boolean hasApplication() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The application to create.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Application application = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The application. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.Application getApplication() { + return application_ == null + ? com.google.cloud.designcenter.v1.Application.getDefaultInstance() + : application_; + } + + /** + * + * + *
+   * Required. The application to create.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Application application = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ApplicationOrBuilder getApplicationOrBuilder() { + return application_ == null + ? com.google.cloud.designcenter.v1.Application.getDefaultInstance() + : application_; + } + + 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.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(applicationId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, applicationId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getApplication()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(applicationId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, applicationId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getApplication()); + } + 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.designcenter.v1.CreateApplicationRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.CreateApplicationRequest other = + (com.google.cloud.designcenter.v1.CreateApplicationRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getApplicationId().equals(other.getApplicationId())) return false; + if (hasApplication() != other.hasApplication()) return false; + if (hasApplication()) { + if (!getApplication().equals(other.getApplication())) 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) + APPLICATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getApplicationId().hashCode(); + if (hasApplication()) { + hash = (37 * hash) + APPLICATION_FIELD_NUMBER; + hash = (53 * hash) + getApplication().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.CreateApplicationRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.CreateApplicationRequest 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.designcenter.v1.CreateApplicationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.CreateApplicationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.CreateApplicationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.CreateApplicationRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.CreateApplicationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.CreateApplicationRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.CreateApplicationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.CreateApplicationRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.CreateApplicationRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.CreateApplicationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.CreateApplicationRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for creating an application.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.CreateApplicationRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.CreateApplicationRequest) + com.google.cloud.designcenter.v1.CreateApplicationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_CreateApplicationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_CreateApplicationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.CreateApplicationRequest.class, + com.google.cloud.designcenter.v1.CreateApplicationRequest.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.CreateApplicationRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetApplicationFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + applicationId_ = ""; + application_ = null; + if (applicationBuilder_ != null) { + applicationBuilder_.dispose(); + applicationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_CreateApplicationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.CreateApplicationRequest getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.CreateApplicationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.CreateApplicationRequest build() { + com.google.cloud.designcenter.v1.CreateApplicationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.CreateApplicationRequest buildPartial() { + com.google.cloud.designcenter.v1.CreateApplicationRequest result = + new com.google.cloud.designcenter.v1.CreateApplicationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.CreateApplicationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.applicationId_ = applicationId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.application_ = + applicationBuilder_ == null ? application_ : applicationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.CreateApplicationRequest) { + return mergeFrom((com.google.cloud.designcenter.v1.CreateApplicationRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.CreateApplicationRequest other) { + if (other == com.google.cloud.designcenter.v1.CreateApplicationRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getApplicationId().isEmpty()) { + applicationId_ = other.applicationId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasApplication()) { + mergeApplication(other.getApplication()); + } + 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: + { + applicationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetApplicationFieldBuilder().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 parent resource in which to create the application.
+     * Format: `projects/$project/locations/$location/spaces/$space`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The parent resource in which to create the application.
+     * Format: `projects/$project/locations/$location/spaces/$space`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The parent resource in which to create the application.
+     * Format: `projects/$project/locations/$location/spaces/$space`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource in which to create the application.
+     * Format: `projects/$project/locations/$location/spaces/$space`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource in which to create the application.
+     * Format: `projects/$project/locations/$location/spaces/$space`
+     * 
+ * + * + * 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 applicationId_ = ""; + + /** + * + * + *
+     * Required. The ID of the application to create.
+     * 
+ * + * string application_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The applicationId. + */ + public java.lang.String getApplicationId() { + java.lang.Object ref = applicationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + applicationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The ID of the application to create.
+     * 
+ * + * string application_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for applicationId. + */ + public com.google.protobuf.ByteString getApplicationIdBytes() { + java.lang.Object ref = applicationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + applicationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The ID of the application to create.
+     * 
+ * + * string application_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The applicationId to set. + * @return This builder for chaining. + */ + public Builder setApplicationId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + applicationId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ID of the application to create.
+     * 
+ * + * string application_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearApplicationId() { + applicationId_ = getDefaultInstance().getApplicationId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ID of the application to create.
+     * 
+ * + * string application_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for applicationId to set. + * @return This builder for chaining. + */ + public Builder setApplicationIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + applicationId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.designcenter.v1.Application application_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.Application, + com.google.cloud.designcenter.v1.Application.Builder, + com.google.cloud.designcenter.v1.ApplicationOrBuilder> + applicationBuilder_; + + /** + * + * + *
+     * Required. The application to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Application application = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the application field is set. + */ + public boolean hasApplication() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Required. The application to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Application application = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The application. + */ + public com.google.cloud.designcenter.v1.Application getApplication() { + if (applicationBuilder_ == null) { + return application_ == null + ? com.google.cloud.designcenter.v1.Application.getDefaultInstance() + : application_; + } else { + return applicationBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The application to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Application application = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setApplication(com.google.cloud.designcenter.v1.Application value) { + if (applicationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + application_ = value; + } else { + applicationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The application to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Application application = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setApplication( + com.google.cloud.designcenter.v1.Application.Builder builderForValue) { + if (applicationBuilder_ == null) { + application_ = builderForValue.build(); + } else { + applicationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The application to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Application application = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeApplication(com.google.cloud.designcenter.v1.Application value) { + if (applicationBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && application_ != null + && application_ != com.google.cloud.designcenter.v1.Application.getDefaultInstance()) { + getApplicationBuilder().mergeFrom(value); + } else { + application_ = value; + } + } else { + applicationBuilder_.mergeFrom(value); + } + if (application_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The application to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Application application = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearApplication() { + bitField0_ = (bitField0_ & ~0x00000004); + application_ = null; + if (applicationBuilder_ != null) { + applicationBuilder_.dispose(); + applicationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The application to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Application application = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.Application.Builder getApplicationBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetApplicationFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The application to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Application application = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.ApplicationOrBuilder getApplicationOrBuilder() { + if (applicationBuilder_ != null) { + return applicationBuilder_.getMessageOrBuilder(); + } else { + return application_ == null + ? com.google.cloud.designcenter.v1.Application.getDefaultInstance() + : application_; + } + } + + /** + * + * + *
+     * Required. The application to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Application application = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.Application, + com.google.cloud.designcenter.v1.Application.Builder, + com.google.cloud.designcenter.v1.ApplicationOrBuilder> + internalGetApplicationFieldBuilder() { + if (applicationBuilder_ == null) { + applicationBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.Application, + com.google.cloud.designcenter.v1.Application.Builder, + com.google.cloud.designcenter.v1.ApplicationOrBuilder>( + getApplication(), getParentForChildren(), isClean()); + application_ = null; + } + return applicationBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.CreateApplicationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.CreateApplicationRequest) + private static final com.google.cloud.designcenter.v1.CreateApplicationRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.CreateApplicationRequest(); + } + + public static com.google.cloud.designcenter.v1.CreateApplicationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateApplicationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.CreateApplicationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreateApplicationRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreateApplicationRequestOrBuilder.java new file mode 100644 index 000000000000..7ca6788664f9 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreateApplicationRequestOrBuilder.java @@ -0,0 +1,129 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface CreateApplicationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.CreateApplicationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource in which to create the application.
+   * Format: `projects/$project/locations/$location/spaces/$space`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent resource in which to create the application.
+   * Format: `projects/$project/locations/$location/spaces/$space`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The ID of the application to create.
+   * 
+ * + * string application_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The applicationId. + */ + java.lang.String getApplicationId(); + + /** + * + * + *
+   * Required. The ID of the application to create.
+   * 
+ * + * string application_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for applicationId. + */ + com.google.protobuf.ByteString getApplicationIdBytes(); + + /** + * + * + *
+   * Required. The application to create.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Application application = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the application field is set. + */ + boolean hasApplication(); + + /** + * + * + *
+   * Required. The application to create.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Application application = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The application. + */ + com.google.cloud.designcenter.v1.Application getApplication(); + + /** + * + * + *
+   * Required. The application to create.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Application application = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.designcenter.v1.ApplicationOrBuilder getApplicationOrBuilder(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreateApplicationTemplateRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreateApplicationTemplateRequest.java new file mode 100644 index 000000000000..69c514e55910 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreateApplicationTemplateRequest.java @@ -0,0 +1,1136 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for creating an application template.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.CreateApplicationTemplateRequest} + */ +@com.google.protobuf.Generated +public final class CreateApplicationTemplateRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.CreateApplicationTemplateRequest) + CreateApplicationTemplateRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "CreateApplicationTemplateRequest"); + } + + // Use CreateApplicationTemplateRequest.newBuilder() to construct. + private CreateApplicationTemplateRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateApplicationTemplateRequest() { + parent_ = ""; + applicationTemplateId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_CreateApplicationTemplateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_CreateApplicationTemplateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.CreateApplicationTemplateRequest.class, + com.google.cloud.designcenter.v1.CreateApplicationTemplateRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent resource in which to create the application template.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The parent resource in which to create the application template.
+   * 
+ * + * + * 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 APPLICATION_TEMPLATE_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object applicationTemplateId_ = ""; + + /** + * + * + *
+   * Required. The ID of the application template to create.
+   * 
+ * + * string application_template_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The applicationTemplateId. + */ + @java.lang.Override + public java.lang.String getApplicationTemplateId() { + java.lang.Object ref = applicationTemplateId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + applicationTemplateId_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The ID of the application template to create.
+   * 
+ * + * string application_template_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for applicationTemplateId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getApplicationTemplateIdBytes() { + java.lang.Object ref = applicationTemplateId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + applicationTemplateId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int APPLICATION_TEMPLATE_FIELD_NUMBER = 3; + private com.google.cloud.designcenter.v1.ApplicationTemplate applicationTemplate_; + + /** + * + * + *
+   * Required. The application template to create.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationTemplate application_template = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the applicationTemplate field is set. + */ + @java.lang.Override + public boolean hasApplicationTemplate() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The application template to create.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationTemplate application_template = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The applicationTemplate. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ApplicationTemplate getApplicationTemplate() { + return applicationTemplate_ == null + ? com.google.cloud.designcenter.v1.ApplicationTemplate.getDefaultInstance() + : applicationTemplate_; + } + + /** + * + * + *
+   * Required. The application template to create.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationTemplate application_template = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ApplicationTemplateOrBuilder + getApplicationTemplateOrBuilder() { + return applicationTemplate_ == null + ? com.google.cloud.designcenter.v1.ApplicationTemplate.getDefaultInstance() + : applicationTemplate_; + } + + 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.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(applicationTemplateId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, applicationTemplateId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getApplicationTemplate()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(applicationTemplateId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, applicationTemplateId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getApplicationTemplate()); + } + 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.designcenter.v1.CreateApplicationTemplateRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.CreateApplicationTemplateRequest other = + (com.google.cloud.designcenter.v1.CreateApplicationTemplateRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getApplicationTemplateId().equals(other.getApplicationTemplateId())) return false; + if (hasApplicationTemplate() != other.hasApplicationTemplate()) return false; + if (hasApplicationTemplate()) { + if (!getApplicationTemplate().equals(other.getApplicationTemplate())) 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) + APPLICATION_TEMPLATE_ID_FIELD_NUMBER; + hash = (53 * hash) + getApplicationTemplateId().hashCode(); + if (hasApplicationTemplate()) { + hash = (37 * hash) + APPLICATION_TEMPLATE_FIELD_NUMBER; + hash = (53 * hash) + getApplicationTemplate().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.CreateApplicationTemplateRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.CreateApplicationTemplateRequest 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.designcenter.v1.CreateApplicationTemplateRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.CreateApplicationTemplateRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.CreateApplicationTemplateRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.CreateApplicationTemplateRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.CreateApplicationTemplateRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.CreateApplicationTemplateRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.CreateApplicationTemplateRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.CreateApplicationTemplateRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.CreateApplicationTemplateRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.CreateApplicationTemplateRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.CreateApplicationTemplateRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for creating an application template.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.CreateApplicationTemplateRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.CreateApplicationTemplateRequest) + com.google.cloud.designcenter.v1.CreateApplicationTemplateRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_CreateApplicationTemplateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_CreateApplicationTemplateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.CreateApplicationTemplateRequest.class, + com.google.cloud.designcenter.v1.CreateApplicationTemplateRequest.Builder.class); + } + + // Construct using + // com.google.cloud.designcenter.v1.CreateApplicationTemplateRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetApplicationTemplateFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + applicationTemplateId_ = ""; + applicationTemplate_ = null; + if (applicationTemplateBuilder_ != null) { + applicationTemplateBuilder_.dispose(); + applicationTemplateBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_CreateApplicationTemplateRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.CreateApplicationTemplateRequest + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.CreateApplicationTemplateRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.CreateApplicationTemplateRequest build() { + com.google.cloud.designcenter.v1.CreateApplicationTemplateRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.CreateApplicationTemplateRequest buildPartial() { + com.google.cloud.designcenter.v1.CreateApplicationTemplateRequest result = + new com.google.cloud.designcenter.v1.CreateApplicationTemplateRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.CreateApplicationTemplateRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.applicationTemplateId_ = applicationTemplateId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.applicationTemplate_ = + applicationTemplateBuilder_ == null + ? applicationTemplate_ + : applicationTemplateBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.CreateApplicationTemplateRequest) { + return mergeFrom((com.google.cloud.designcenter.v1.CreateApplicationTemplateRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.designcenter.v1.CreateApplicationTemplateRequest other) { + if (other + == com.google.cloud.designcenter.v1.CreateApplicationTemplateRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getApplicationTemplateId().isEmpty()) { + applicationTemplateId_ = other.applicationTemplateId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasApplicationTemplate()) { + mergeApplicationTemplate(other.getApplicationTemplate()); + } + 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: + { + applicationTemplateId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetApplicationTemplateFieldBuilder().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 parent resource in which to create the application template.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The parent resource in which to create the application template.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The parent resource in which to create the application template.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource in which to create the application template.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource in which to create the application template.
+     * 
+ * + * + * 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 applicationTemplateId_ = ""; + + /** + * + * + *
+     * Required. The ID of the application template to create.
+     * 
+ * + * string application_template_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The applicationTemplateId. + */ + public java.lang.String getApplicationTemplateId() { + java.lang.Object ref = applicationTemplateId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + applicationTemplateId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The ID of the application template to create.
+     * 
+ * + * string application_template_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for applicationTemplateId. + */ + public com.google.protobuf.ByteString getApplicationTemplateIdBytes() { + java.lang.Object ref = applicationTemplateId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + applicationTemplateId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The ID of the application template to create.
+     * 
+ * + * string application_template_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The applicationTemplateId to set. + * @return This builder for chaining. + */ + public Builder setApplicationTemplateId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + applicationTemplateId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ID of the application template to create.
+     * 
+ * + * string application_template_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearApplicationTemplateId() { + applicationTemplateId_ = getDefaultInstance().getApplicationTemplateId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ID of the application template to create.
+     * 
+ * + * string application_template_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for applicationTemplateId to set. + * @return This builder for chaining. + */ + public Builder setApplicationTemplateIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + applicationTemplateId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.designcenter.v1.ApplicationTemplate applicationTemplate_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ApplicationTemplate, + com.google.cloud.designcenter.v1.ApplicationTemplate.Builder, + com.google.cloud.designcenter.v1.ApplicationTemplateOrBuilder> + applicationTemplateBuilder_; + + /** + * + * + *
+     * Required. The application template to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationTemplate application_template = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the applicationTemplate field is set. + */ + public boolean hasApplicationTemplate() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Required. The application template to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationTemplate application_template = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The applicationTemplate. + */ + public com.google.cloud.designcenter.v1.ApplicationTemplate getApplicationTemplate() { + if (applicationTemplateBuilder_ == null) { + return applicationTemplate_ == null + ? com.google.cloud.designcenter.v1.ApplicationTemplate.getDefaultInstance() + : applicationTemplate_; + } else { + return applicationTemplateBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The application template to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationTemplate application_template = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setApplicationTemplate( + com.google.cloud.designcenter.v1.ApplicationTemplate value) { + if (applicationTemplateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + applicationTemplate_ = value; + } else { + applicationTemplateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The application template to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationTemplate application_template = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setApplicationTemplate( + com.google.cloud.designcenter.v1.ApplicationTemplate.Builder builderForValue) { + if (applicationTemplateBuilder_ == null) { + applicationTemplate_ = builderForValue.build(); + } else { + applicationTemplateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The application template to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationTemplate application_template = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeApplicationTemplate( + com.google.cloud.designcenter.v1.ApplicationTemplate value) { + if (applicationTemplateBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && applicationTemplate_ != null + && applicationTemplate_ + != com.google.cloud.designcenter.v1.ApplicationTemplate.getDefaultInstance()) { + getApplicationTemplateBuilder().mergeFrom(value); + } else { + applicationTemplate_ = value; + } + } else { + applicationTemplateBuilder_.mergeFrom(value); + } + if (applicationTemplate_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The application template to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationTemplate application_template = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearApplicationTemplate() { + bitField0_ = (bitField0_ & ~0x00000004); + applicationTemplate_ = null; + if (applicationTemplateBuilder_ != null) { + applicationTemplateBuilder_.dispose(); + applicationTemplateBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The application template to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationTemplate application_template = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.ApplicationTemplate.Builder + getApplicationTemplateBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetApplicationTemplateFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The application template to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationTemplate application_template = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.ApplicationTemplateOrBuilder + getApplicationTemplateOrBuilder() { + if (applicationTemplateBuilder_ != null) { + return applicationTemplateBuilder_.getMessageOrBuilder(); + } else { + return applicationTemplate_ == null + ? com.google.cloud.designcenter.v1.ApplicationTemplate.getDefaultInstance() + : applicationTemplate_; + } + } + + /** + * + * + *
+     * Required. The application template to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationTemplate application_template = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ApplicationTemplate, + com.google.cloud.designcenter.v1.ApplicationTemplate.Builder, + com.google.cloud.designcenter.v1.ApplicationTemplateOrBuilder> + internalGetApplicationTemplateFieldBuilder() { + if (applicationTemplateBuilder_ == null) { + applicationTemplateBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ApplicationTemplate, + com.google.cloud.designcenter.v1.ApplicationTemplate.Builder, + com.google.cloud.designcenter.v1.ApplicationTemplateOrBuilder>( + getApplicationTemplate(), getParentForChildren(), isClean()); + applicationTemplate_ = null; + } + return applicationTemplateBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.CreateApplicationTemplateRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.CreateApplicationTemplateRequest) + private static final com.google.cloud.designcenter.v1.CreateApplicationTemplateRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.CreateApplicationTemplateRequest(); + } + + public static com.google.cloud.designcenter.v1.CreateApplicationTemplateRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateApplicationTemplateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.CreateApplicationTemplateRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreateApplicationTemplateRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreateApplicationTemplateRequestOrBuilder.java new file mode 100644 index 000000000000..a86dcb78a363 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreateApplicationTemplateRequestOrBuilder.java @@ -0,0 +1,127 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface CreateApplicationTemplateRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.CreateApplicationTemplateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource in which to create the application template.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent resource in which to create the application template.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The ID of the application template to create.
+   * 
+ * + * string application_template_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The applicationTemplateId. + */ + java.lang.String getApplicationTemplateId(); + + /** + * + * + *
+   * Required. The ID of the application template to create.
+   * 
+ * + * string application_template_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for applicationTemplateId. + */ + com.google.protobuf.ByteString getApplicationTemplateIdBytes(); + + /** + * + * + *
+   * Required. The application template to create.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationTemplate application_template = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the applicationTemplate field is set. + */ + boolean hasApplicationTemplate(); + + /** + * + * + *
+   * Required. The application template to create.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationTemplate application_template = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The applicationTemplate. + */ + com.google.cloud.designcenter.v1.ApplicationTemplate getApplicationTemplate(); + + /** + * + * + *
+   * Required. The application template to create.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationTemplate application_template = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.designcenter.v1.ApplicationTemplateOrBuilder getApplicationTemplateOrBuilder(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreateCatalogRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreateCatalogRequest.java new file mode 100644 index 000000000000..25234aba0ac8 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreateCatalogRequest.java @@ -0,0 +1,1122 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/catalog_management_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for creating a catalog.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.CreateCatalogRequest} + */ +@com.google.protobuf.Generated +public final class CreateCatalogRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.CreateCatalogRequest) + CreateCatalogRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "CreateCatalogRequest"); + } + + // Use CreateCatalogRequest.newBuilder() to construct. + private CreateCatalogRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateCatalogRequest() { + parent_ = ""; + catalogId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_CreateCatalogRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_CreateCatalogRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.CreateCatalogRequest.class, + com.google.cloud.designcenter.v1.CreateCatalogRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent space in which a catalog is created in the following
+   * format: `projects/$project/locations/$location/spaces/$space`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The parent space in which a catalog is created in the following
+   * format: `projects/$project/locations/$location/spaces/$space`
+   * 
+ * + * + * 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 CATALOG_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object catalogId_ = ""; + + /** + * + * + *
+   * Required. The ID of the catalog to create.
+   * 
+ * + * string catalog_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The catalogId. + */ + @java.lang.Override + public java.lang.String getCatalogId() { + java.lang.Object ref = catalogId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + catalogId_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The ID of the catalog to create.
+   * 
+ * + * string catalog_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for catalogId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCatalogIdBytes() { + java.lang.Object ref = catalogId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + catalogId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CATALOG_FIELD_NUMBER = 3; + private com.google.cloud.designcenter.v1.Catalog catalog_; + + /** + * + * + *
+   * Required. The catalog to create.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Catalog catalog = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the catalog field is set. + */ + @java.lang.Override + public boolean hasCatalog() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The catalog to create.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Catalog catalog = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The catalog. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.Catalog getCatalog() { + return catalog_ == null + ? com.google.cloud.designcenter.v1.Catalog.getDefaultInstance() + : catalog_; + } + + /** + * + * + *
+   * Required. The catalog to create.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Catalog catalog = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.CatalogOrBuilder getCatalogOrBuilder() { + return catalog_ == null + ? com.google.cloud.designcenter.v1.Catalog.getDefaultInstance() + : catalog_; + } + + 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.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(catalogId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, catalogId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getCatalog()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(catalogId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, catalogId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCatalog()); + } + 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.designcenter.v1.CreateCatalogRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.CreateCatalogRequest other = + (com.google.cloud.designcenter.v1.CreateCatalogRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getCatalogId().equals(other.getCatalogId())) return false; + if (hasCatalog() != other.hasCatalog()) return false; + if (hasCatalog()) { + if (!getCatalog().equals(other.getCatalog())) 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) + CATALOG_ID_FIELD_NUMBER; + hash = (53 * hash) + getCatalogId().hashCode(); + if (hasCatalog()) { + hash = (37 * hash) + CATALOG_FIELD_NUMBER; + hash = (53 * hash) + getCatalog().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.CreateCatalogRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.CreateCatalogRequest 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.designcenter.v1.CreateCatalogRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.CreateCatalogRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.CreateCatalogRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.CreateCatalogRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.CreateCatalogRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.CreateCatalogRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.CreateCatalogRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.CreateCatalogRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.CreateCatalogRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.CreateCatalogRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.CreateCatalogRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for creating a catalog.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.CreateCatalogRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.CreateCatalogRequest) + com.google.cloud.designcenter.v1.CreateCatalogRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_CreateCatalogRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_CreateCatalogRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.CreateCatalogRequest.class, + com.google.cloud.designcenter.v1.CreateCatalogRequest.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.CreateCatalogRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCatalogFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + catalogId_ = ""; + catalog_ = null; + if (catalogBuilder_ != null) { + catalogBuilder_.dispose(); + catalogBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_CreateCatalogRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.CreateCatalogRequest getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.CreateCatalogRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.CreateCatalogRequest build() { + com.google.cloud.designcenter.v1.CreateCatalogRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.CreateCatalogRequest buildPartial() { + com.google.cloud.designcenter.v1.CreateCatalogRequest result = + new com.google.cloud.designcenter.v1.CreateCatalogRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.CreateCatalogRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.catalogId_ = catalogId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.catalog_ = catalogBuilder_ == null ? catalog_ : catalogBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.CreateCatalogRequest) { + return mergeFrom((com.google.cloud.designcenter.v1.CreateCatalogRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.CreateCatalogRequest other) { + if (other == com.google.cloud.designcenter.v1.CreateCatalogRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getCatalogId().isEmpty()) { + catalogId_ = other.catalogId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasCatalog()) { + mergeCatalog(other.getCatalog()); + } + 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: + { + catalogId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(internalGetCatalogFieldBuilder().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 parent space in which a catalog is created in the following
+     * format: `projects/$project/locations/$location/spaces/$space`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The parent space in which a catalog is created in the following
+     * format: `projects/$project/locations/$location/spaces/$space`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The parent space in which a catalog is created in the following
+     * format: `projects/$project/locations/$location/spaces/$space`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent space in which a catalog is created in the following
+     * format: `projects/$project/locations/$location/spaces/$space`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent space in which a catalog is created in the following
+     * format: `projects/$project/locations/$location/spaces/$space`
+     * 
+ * + * + * 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 catalogId_ = ""; + + /** + * + * + *
+     * Required. The ID of the catalog to create.
+     * 
+ * + * string catalog_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The catalogId. + */ + public java.lang.String getCatalogId() { + java.lang.Object ref = catalogId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + catalogId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The ID of the catalog to create.
+     * 
+ * + * string catalog_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for catalogId. + */ + public com.google.protobuf.ByteString getCatalogIdBytes() { + java.lang.Object ref = catalogId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + catalogId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The ID of the catalog to create.
+     * 
+ * + * string catalog_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The catalogId to set. + * @return This builder for chaining. + */ + public Builder setCatalogId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + catalogId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ID of the catalog to create.
+     * 
+ * + * string catalog_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearCatalogId() { + catalogId_ = getDefaultInstance().getCatalogId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ID of the catalog to create.
+     * 
+ * + * string catalog_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for catalogId to set. + * @return This builder for chaining. + */ + public Builder setCatalogIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + catalogId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.designcenter.v1.Catalog catalog_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.Catalog, + com.google.cloud.designcenter.v1.Catalog.Builder, + com.google.cloud.designcenter.v1.CatalogOrBuilder> + catalogBuilder_; + + /** + * + * + *
+     * Required. The catalog to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Catalog catalog = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the catalog field is set. + */ + public boolean hasCatalog() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Required. The catalog to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Catalog catalog = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The catalog. + */ + public com.google.cloud.designcenter.v1.Catalog getCatalog() { + if (catalogBuilder_ == null) { + return catalog_ == null + ? com.google.cloud.designcenter.v1.Catalog.getDefaultInstance() + : catalog_; + } else { + return catalogBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The catalog to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Catalog catalog = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCatalog(com.google.cloud.designcenter.v1.Catalog value) { + if (catalogBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + catalog_ = value; + } else { + catalogBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The catalog to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Catalog catalog = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCatalog(com.google.cloud.designcenter.v1.Catalog.Builder builderForValue) { + if (catalogBuilder_ == null) { + catalog_ = builderForValue.build(); + } else { + catalogBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The catalog to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Catalog catalog = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeCatalog(com.google.cloud.designcenter.v1.Catalog value) { + if (catalogBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && catalog_ != null + && catalog_ != com.google.cloud.designcenter.v1.Catalog.getDefaultInstance()) { + getCatalogBuilder().mergeFrom(value); + } else { + catalog_ = value; + } + } else { + catalogBuilder_.mergeFrom(value); + } + if (catalog_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The catalog to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Catalog catalog = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearCatalog() { + bitField0_ = (bitField0_ & ~0x00000004); + catalog_ = null; + if (catalogBuilder_ != null) { + catalogBuilder_.dispose(); + catalogBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The catalog to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Catalog catalog = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.Catalog.Builder getCatalogBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetCatalogFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The catalog to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Catalog catalog = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.CatalogOrBuilder getCatalogOrBuilder() { + if (catalogBuilder_ != null) { + return catalogBuilder_.getMessageOrBuilder(); + } else { + return catalog_ == null + ? com.google.cloud.designcenter.v1.Catalog.getDefaultInstance() + : catalog_; + } + } + + /** + * + * + *
+     * Required. The catalog to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Catalog catalog = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.Catalog, + com.google.cloud.designcenter.v1.Catalog.Builder, + com.google.cloud.designcenter.v1.CatalogOrBuilder> + internalGetCatalogFieldBuilder() { + if (catalogBuilder_ == null) { + catalogBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.Catalog, + com.google.cloud.designcenter.v1.Catalog.Builder, + com.google.cloud.designcenter.v1.CatalogOrBuilder>( + getCatalog(), getParentForChildren(), isClean()); + catalog_ = null; + } + return catalogBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.CreateCatalogRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.CreateCatalogRequest) + private static final com.google.cloud.designcenter.v1.CreateCatalogRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.CreateCatalogRequest(); + } + + public static com.google.cloud.designcenter.v1.CreateCatalogRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateCatalogRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.CreateCatalogRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreateCatalogRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreateCatalogRequestOrBuilder.java new file mode 100644 index 000000000000..7a26f08db597 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreateCatalogRequestOrBuilder.java @@ -0,0 +1,129 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/catalog_management_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface CreateCatalogRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.CreateCatalogRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent space in which a catalog is created in the following
+   * format: `projects/$project/locations/$location/spaces/$space`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent space in which a catalog is created in the following
+   * format: `projects/$project/locations/$location/spaces/$space`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The ID of the catalog to create.
+   * 
+ * + * string catalog_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The catalogId. + */ + java.lang.String getCatalogId(); + + /** + * + * + *
+   * Required. The ID of the catalog to create.
+   * 
+ * + * string catalog_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for catalogId. + */ + com.google.protobuf.ByteString getCatalogIdBytes(); + + /** + * + * + *
+   * Required. The catalog to create.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Catalog catalog = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the catalog field is set. + */ + boolean hasCatalog(); + + /** + * + * + *
+   * Required. The catalog to create.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Catalog catalog = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The catalog. + */ + com.google.cloud.designcenter.v1.Catalog getCatalog(); + + /** + * + * + *
+   * Required. The catalog to create.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Catalog catalog = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.designcenter.v1.CatalogOrBuilder getCatalogOrBuilder(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreateCatalogTemplateRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreateCatalogTemplateRequest.java new file mode 100644 index 000000000000..92901b688cb8 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreateCatalogTemplateRequest.java @@ -0,0 +1,1130 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/catalog_management_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for creating a catalog template.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.CreateCatalogTemplateRequest} + */ +@com.google.protobuf.Generated +public final class CreateCatalogTemplateRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.CreateCatalogTemplateRequest) + CreateCatalogTemplateRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "CreateCatalogTemplateRequest"); + } + + // Use CreateCatalogTemplateRequest.newBuilder() to construct. + private CreateCatalogTemplateRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateCatalogTemplateRequest() { + parent_ = ""; + catalogTemplateId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_CreateCatalogTemplateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_CreateCatalogTemplateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.CreateCatalogTemplateRequest.class, + com.google.cloud.designcenter.v1.CreateCatalogTemplateRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent resource in which the catalog template is created.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The parent resource in which the catalog template is created.
+   * 
+ * + * + * 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 CATALOG_TEMPLATE_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object catalogTemplateId_ = ""; + + /** + * + * + *
+   * Required. The ID of the catalog template to create. The ID is appended to
+   * the catalog template's name.
+   * 
+ * + * string catalog_template_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The catalogTemplateId. + */ + @java.lang.Override + public java.lang.String getCatalogTemplateId() { + java.lang.Object ref = catalogTemplateId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + catalogTemplateId_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The ID of the catalog template to create. The ID is appended to
+   * the catalog template's name.
+   * 
+ * + * string catalog_template_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for catalogTemplateId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCatalogTemplateIdBytes() { + java.lang.Object ref = catalogTemplateId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + catalogTemplateId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CATALOG_TEMPLATE_FIELD_NUMBER = 3; + private com.google.cloud.designcenter.v1.CatalogTemplate catalogTemplate_; + + /** + * + * + *
+   * Required. The catalog template to create.
+   * 
+ * + * + * .google.cloud.designcenter.v1.CatalogTemplate catalog_template = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the catalogTemplate field is set. + */ + @java.lang.Override + public boolean hasCatalogTemplate() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The catalog template to create.
+   * 
+ * + * + * .google.cloud.designcenter.v1.CatalogTemplate catalog_template = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The catalogTemplate. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.CatalogTemplate getCatalogTemplate() { + return catalogTemplate_ == null + ? com.google.cloud.designcenter.v1.CatalogTemplate.getDefaultInstance() + : catalogTemplate_; + } + + /** + * + * + *
+   * Required. The catalog template to create.
+   * 
+ * + * + * .google.cloud.designcenter.v1.CatalogTemplate catalog_template = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.CatalogTemplateOrBuilder getCatalogTemplateOrBuilder() { + return catalogTemplate_ == null + ? com.google.cloud.designcenter.v1.CatalogTemplate.getDefaultInstance() + : catalogTemplate_; + } + + 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.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(catalogTemplateId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, catalogTemplateId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getCatalogTemplate()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(catalogTemplateId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, catalogTemplateId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCatalogTemplate()); + } + 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.designcenter.v1.CreateCatalogTemplateRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.CreateCatalogTemplateRequest other = + (com.google.cloud.designcenter.v1.CreateCatalogTemplateRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getCatalogTemplateId().equals(other.getCatalogTemplateId())) return false; + if (hasCatalogTemplate() != other.hasCatalogTemplate()) return false; + if (hasCatalogTemplate()) { + if (!getCatalogTemplate().equals(other.getCatalogTemplate())) 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) + CATALOG_TEMPLATE_ID_FIELD_NUMBER; + hash = (53 * hash) + getCatalogTemplateId().hashCode(); + if (hasCatalogTemplate()) { + hash = (37 * hash) + CATALOG_TEMPLATE_FIELD_NUMBER; + hash = (53 * hash) + getCatalogTemplate().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.CreateCatalogTemplateRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.CreateCatalogTemplateRequest 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.designcenter.v1.CreateCatalogTemplateRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.CreateCatalogTemplateRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.CreateCatalogTemplateRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.CreateCatalogTemplateRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.CreateCatalogTemplateRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.CreateCatalogTemplateRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.CreateCatalogTemplateRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.CreateCatalogTemplateRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.CreateCatalogTemplateRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.CreateCatalogTemplateRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.CreateCatalogTemplateRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for creating a catalog template.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.CreateCatalogTemplateRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.CreateCatalogTemplateRequest) + com.google.cloud.designcenter.v1.CreateCatalogTemplateRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_CreateCatalogTemplateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_CreateCatalogTemplateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.CreateCatalogTemplateRequest.class, + com.google.cloud.designcenter.v1.CreateCatalogTemplateRequest.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.CreateCatalogTemplateRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCatalogTemplateFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + catalogTemplateId_ = ""; + catalogTemplate_ = null; + if (catalogTemplateBuilder_ != null) { + catalogTemplateBuilder_.dispose(); + catalogTemplateBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_CreateCatalogTemplateRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.CreateCatalogTemplateRequest + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.CreateCatalogTemplateRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.CreateCatalogTemplateRequest build() { + com.google.cloud.designcenter.v1.CreateCatalogTemplateRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.CreateCatalogTemplateRequest buildPartial() { + com.google.cloud.designcenter.v1.CreateCatalogTemplateRequest result = + new com.google.cloud.designcenter.v1.CreateCatalogTemplateRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.CreateCatalogTemplateRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.catalogTemplateId_ = catalogTemplateId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.catalogTemplate_ = + catalogTemplateBuilder_ == null ? catalogTemplate_ : catalogTemplateBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.CreateCatalogTemplateRequest) { + return mergeFrom((com.google.cloud.designcenter.v1.CreateCatalogTemplateRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.CreateCatalogTemplateRequest other) { + if (other + == com.google.cloud.designcenter.v1.CreateCatalogTemplateRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getCatalogTemplateId().isEmpty()) { + catalogTemplateId_ = other.catalogTemplateId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasCatalogTemplate()) { + mergeCatalogTemplate(other.getCatalogTemplate()); + } + 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: + { + catalogTemplateId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetCatalogTemplateFieldBuilder().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 parent resource in which the catalog template is created.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The parent resource in which the catalog template is created.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The parent resource in which the catalog template is created.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource in which the catalog template is created.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource in which the catalog template is created.
+     * 
+ * + * + * 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 catalogTemplateId_ = ""; + + /** + * + * + *
+     * Required. The ID of the catalog template to create. The ID is appended to
+     * the catalog template's name.
+     * 
+ * + * string catalog_template_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The catalogTemplateId. + */ + public java.lang.String getCatalogTemplateId() { + java.lang.Object ref = catalogTemplateId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + catalogTemplateId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The ID of the catalog template to create. The ID is appended to
+     * the catalog template's name.
+     * 
+ * + * string catalog_template_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for catalogTemplateId. + */ + public com.google.protobuf.ByteString getCatalogTemplateIdBytes() { + java.lang.Object ref = catalogTemplateId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + catalogTemplateId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The ID of the catalog template to create. The ID is appended to
+     * the catalog template's name.
+     * 
+ * + * string catalog_template_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The catalogTemplateId to set. + * @return This builder for chaining. + */ + public Builder setCatalogTemplateId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + catalogTemplateId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ID of the catalog template to create. The ID is appended to
+     * the catalog template's name.
+     * 
+ * + * string catalog_template_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearCatalogTemplateId() { + catalogTemplateId_ = getDefaultInstance().getCatalogTemplateId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ID of the catalog template to create. The ID is appended to
+     * the catalog template's name.
+     * 
+ * + * string catalog_template_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for catalogTemplateId to set. + * @return This builder for chaining. + */ + public Builder setCatalogTemplateIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + catalogTemplateId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.designcenter.v1.CatalogTemplate catalogTemplate_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.CatalogTemplate, + com.google.cloud.designcenter.v1.CatalogTemplate.Builder, + com.google.cloud.designcenter.v1.CatalogTemplateOrBuilder> + catalogTemplateBuilder_; + + /** + * + * + *
+     * Required. The catalog template to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.CatalogTemplate catalog_template = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the catalogTemplate field is set. + */ + public boolean hasCatalogTemplate() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Required. The catalog template to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.CatalogTemplate catalog_template = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The catalogTemplate. + */ + public com.google.cloud.designcenter.v1.CatalogTemplate getCatalogTemplate() { + if (catalogTemplateBuilder_ == null) { + return catalogTemplate_ == null + ? com.google.cloud.designcenter.v1.CatalogTemplate.getDefaultInstance() + : catalogTemplate_; + } else { + return catalogTemplateBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The catalog template to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.CatalogTemplate catalog_template = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCatalogTemplate(com.google.cloud.designcenter.v1.CatalogTemplate value) { + if (catalogTemplateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + catalogTemplate_ = value; + } else { + catalogTemplateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The catalog template to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.CatalogTemplate catalog_template = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCatalogTemplate( + com.google.cloud.designcenter.v1.CatalogTemplate.Builder builderForValue) { + if (catalogTemplateBuilder_ == null) { + catalogTemplate_ = builderForValue.build(); + } else { + catalogTemplateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The catalog template to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.CatalogTemplate catalog_template = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeCatalogTemplate(com.google.cloud.designcenter.v1.CatalogTemplate value) { + if (catalogTemplateBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && catalogTemplate_ != null + && catalogTemplate_ + != com.google.cloud.designcenter.v1.CatalogTemplate.getDefaultInstance()) { + getCatalogTemplateBuilder().mergeFrom(value); + } else { + catalogTemplate_ = value; + } + } else { + catalogTemplateBuilder_.mergeFrom(value); + } + if (catalogTemplate_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The catalog template to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.CatalogTemplate catalog_template = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearCatalogTemplate() { + bitField0_ = (bitField0_ & ~0x00000004); + catalogTemplate_ = null; + if (catalogTemplateBuilder_ != null) { + catalogTemplateBuilder_.dispose(); + catalogTemplateBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The catalog template to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.CatalogTemplate catalog_template = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.CatalogTemplate.Builder getCatalogTemplateBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetCatalogTemplateFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The catalog template to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.CatalogTemplate catalog_template = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.CatalogTemplateOrBuilder getCatalogTemplateOrBuilder() { + if (catalogTemplateBuilder_ != null) { + return catalogTemplateBuilder_.getMessageOrBuilder(); + } else { + return catalogTemplate_ == null + ? com.google.cloud.designcenter.v1.CatalogTemplate.getDefaultInstance() + : catalogTemplate_; + } + } + + /** + * + * + *
+     * Required. The catalog template to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.CatalogTemplate catalog_template = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.CatalogTemplate, + com.google.cloud.designcenter.v1.CatalogTemplate.Builder, + com.google.cloud.designcenter.v1.CatalogTemplateOrBuilder> + internalGetCatalogTemplateFieldBuilder() { + if (catalogTemplateBuilder_ == null) { + catalogTemplateBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.CatalogTemplate, + com.google.cloud.designcenter.v1.CatalogTemplate.Builder, + com.google.cloud.designcenter.v1.CatalogTemplateOrBuilder>( + getCatalogTemplate(), getParentForChildren(), isClean()); + catalogTemplate_ = null; + } + return catalogTemplateBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.CreateCatalogTemplateRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.CreateCatalogTemplateRequest) + private static final com.google.cloud.designcenter.v1.CreateCatalogTemplateRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.CreateCatalogTemplateRequest(); + } + + public static com.google.cloud.designcenter.v1.CreateCatalogTemplateRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateCatalogTemplateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.CreateCatalogTemplateRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreateCatalogTemplateRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreateCatalogTemplateRequestOrBuilder.java new file mode 100644 index 000000000000..888ec0d93773 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreateCatalogTemplateRequestOrBuilder.java @@ -0,0 +1,129 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/catalog_management_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface CreateCatalogTemplateRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.CreateCatalogTemplateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource in which the catalog template is created.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent resource in which the catalog template is created.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The ID of the catalog template to create. The ID is appended to
+   * the catalog template's name.
+   * 
+ * + * string catalog_template_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The catalogTemplateId. + */ + java.lang.String getCatalogTemplateId(); + + /** + * + * + *
+   * Required. The ID of the catalog template to create. The ID is appended to
+   * the catalog template's name.
+   * 
+ * + * string catalog_template_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for catalogTemplateId. + */ + com.google.protobuf.ByteString getCatalogTemplateIdBytes(); + + /** + * + * + *
+   * Required. The catalog template to create.
+   * 
+ * + * + * .google.cloud.designcenter.v1.CatalogTemplate catalog_template = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the catalogTemplate field is set. + */ + boolean hasCatalogTemplate(); + + /** + * + * + *
+   * Required. The catalog template to create.
+   * 
+ * + * + * .google.cloud.designcenter.v1.CatalogTemplate catalog_template = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The catalogTemplate. + */ + com.google.cloud.designcenter.v1.CatalogTemplate getCatalogTemplate(); + + /** + * + * + *
+   * Required. The catalog template to create.
+   * 
+ * + * + * .google.cloud.designcenter.v1.CatalogTemplate catalog_template = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.designcenter.v1.CatalogTemplateOrBuilder getCatalogTemplateOrBuilder(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreateCatalogTemplateRevisionRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreateCatalogTemplateRevisionRequest.java new file mode 100644 index 000000000000..4143e5543ded --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreateCatalogTemplateRevisionRequest.java @@ -0,0 +1,1159 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/catalog_management_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for creating a template revisions request.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.CreateCatalogTemplateRevisionRequest} + */ +@com.google.protobuf.Generated +public final class CreateCatalogTemplateRevisionRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.CreateCatalogTemplateRevisionRequest) + CreateCatalogTemplateRevisionRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "CreateCatalogTemplateRevisionRequest"); + } + + // Use CreateCatalogTemplateRevisionRequest.newBuilder() to construct. + private CreateCatalogTemplateRevisionRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateCatalogTemplateRevisionRequest() { + parent_ = ""; + catalogTemplateRevisionId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_CreateCatalogTemplateRevisionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_CreateCatalogTemplateRevisionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.CreateCatalogTemplateRevisionRequest.class, + com.google.cloud.designcenter.v1.CreateCatalogTemplateRevisionRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent in which the catalog template revisions request is
+   * created in following format:
+   * `projects/$project/locations/$location/spaces/$space/templates/$template`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The parent in which the catalog template revisions request is
+   * created in following format:
+   * `projects/$project/locations/$location/spaces/$space/templates/$template`
+   * 
+ * + * + * 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 CATALOG_TEMPLATE_REVISION_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object catalogTemplateRevisionId_ = ""; + + /** + * + * + *
+   * Required. The ID of the template revision to create.
+   * 
+ * + * string catalog_template_revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The catalogTemplateRevisionId. + */ + @java.lang.Override + public java.lang.String getCatalogTemplateRevisionId() { + java.lang.Object ref = catalogTemplateRevisionId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + catalogTemplateRevisionId_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The ID of the template revision to create.
+   * 
+ * + * string catalog_template_revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for catalogTemplateRevisionId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCatalogTemplateRevisionIdBytes() { + java.lang.Object ref = catalogTemplateRevisionId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + catalogTemplateRevisionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CATALOG_TEMPLATE_REVISION_FIELD_NUMBER = 3; + private com.google.cloud.designcenter.v1.CatalogTemplateRevision catalogTemplateRevision_; + + /** + * + * + *
+   * Required. The template revision to create.
+   * 
+ * + * + * .google.cloud.designcenter.v1.CatalogTemplateRevision catalog_template_revision = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the catalogTemplateRevision field is set. + */ + @java.lang.Override + public boolean hasCatalogTemplateRevision() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The template revision to create.
+   * 
+ * + * + * .google.cloud.designcenter.v1.CatalogTemplateRevision catalog_template_revision = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The catalogTemplateRevision. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.CatalogTemplateRevision getCatalogTemplateRevision() { + return catalogTemplateRevision_ == null + ? com.google.cloud.designcenter.v1.CatalogTemplateRevision.getDefaultInstance() + : catalogTemplateRevision_; + } + + /** + * + * + *
+   * Required. The template revision to create.
+   * 
+ * + * + * .google.cloud.designcenter.v1.CatalogTemplateRevision catalog_template_revision = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.CatalogTemplateRevisionOrBuilder + getCatalogTemplateRevisionOrBuilder() { + return catalogTemplateRevision_ == null + ? com.google.cloud.designcenter.v1.CatalogTemplateRevision.getDefaultInstance() + : catalogTemplateRevision_; + } + + 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.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(catalogTemplateRevisionId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, catalogTemplateRevisionId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getCatalogTemplateRevision()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(catalogTemplateRevisionId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, catalogTemplateRevisionId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCatalogTemplateRevision()); + } + 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.designcenter.v1.CreateCatalogTemplateRevisionRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.CreateCatalogTemplateRevisionRequest other = + (com.google.cloud.designcenter.v1.CreateCatalogTemplateRevisionRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getCatalogTemplateRevisionId().equals(other.getCatalogTemplateRevisionId())) return false; + if (hasCatalogTemplateRevision() != other.hasCatalogTemplateRevision()) return false; + if (hasCatalogTemplateRevision()) { + if (!getCatalogTemplateRevision().equals(other.getCatalogTemplateRevision())) 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) + CATALOG_TEMPLATE_REVISION_ID_FIELD_NUMBER; + hash = (53 * hash) + getCatalogTemplateRevisionId().hashCode(); + if (hasCatalogTemplateRevision()) { + hash = (37 * hash) + CATALOG_TEMPLATE_REVISION_FIELD_NUMBER; + hash = (53 * hash) + getCatalogTemplateRevision().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.CreateCatalogTemplateRevisionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.CreateCatalogTemplateRevisionRequest 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.designcenter.v1.CreateCatalogTemplateRevisionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.CreateCatalogTemplateRevisionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.CreateCatalogTemplateRevisionRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.CreateCatalogTemplateRevisionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.CreateCatalogTemplateRevisionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.CreateCatalogTemplateRevisionRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.CreateCatalogTemplateRevisionRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.CreateCatalogTemplateRevisionRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.CreateCatalogTemplateRevisionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.CreateCatalogTemplateRevisionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.CreateCatalogTemplateRevisionRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for creating a template revisions request.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.CreateCatalogTemplateRevisionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.CreateCatalogTemplateRevisionRequest) + com.google.cloud.designcenter.v1.CreateCatalogTemplateRevisionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_CreateCatalogTemplateRevisionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_CreateCatalogTemplateRevisionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.CreateCatalogTemplateRevisionRequest.class, + com.google.cloud.designcenter.v1.CreateCatalogTemplateRevisionRequest.Builder.class); + } + + // Construct using + // com.google.cloud.designcenter.v1.CreateCatalogTemplateRevisionRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCatalogTemplateRevisionFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + catalogTemplateRevisionId_ = ""; + catalogTemplateRevision_ = null; + if (catalogTemplateRevisionBuilder_ != null) { + catalogTemplateRevisionBuilder_.dispose(); + catalogTemplateRevisionBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_CreateCatalogTemplateRevisionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.CreateCatalogTemplateRevisionRequest + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.CreateCatalogTemplateRevisionRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.CreateCatalogTemplateRevisionRequest build() { + com.google.cloud.designcenter.v1.CreateCatalogTemplateRevisionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.CreateCatalogTemplateRevisionRequest buildPartial() { + com.google.cloud.designcenter.v1.CreateCatalogTemplateRevisionRequest result = + new com.google.cloud.designcenter.v1.CreateCatalogTemplateRevisionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.CreateCatalogTemplateRevisionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.catalogTemplateRevisionId_ = catalogTemplateRevisionId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.catalogTemplateRevision_ = + catalogTemplateRevisionBuilder_ == null + ? catalogTemplateRevision_ + : catalogTemplateRevisionBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.CreateCatalogTemplateRevisionRequest) { + return mergeFrom( + (com.google.cloud.designcenter.v1.CreateCatalogTemplateRevisionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.designcenter.v1.CreateCatalogTemplateRevisionRequest other) { + if (other + == com.google.cloud.designcenter.v1.CreateCatalogTemplateRevisionRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getCatalogTemplateRevisionId().isEmpty()) { + catalogTemplateRevisionId_ = other.catalogTemplateRevisionId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasCatalogTemplateRevision()) { + mergeCatalogTemplateRevision(other.getCatalogTemplateRevision()); + } + 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: + { + catalogTemplateRevisionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetCatalogTemplateRevisionFieldBuilder().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 parent in which the catalog template revisions request is
+     * created in following format:
+     * `projects/$project/locations/$location/spaces/$space/templates/$template`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The parent in which the catalog template revisions request is
+     * created in following format:
+     * `projects/$project/locations/$location/spaces/$space/templates/$template`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The parent in which the catalog template revisions request is
+     * created in following format:
+     * `projects/$project/locations/$location/spaces/$space/templates/$template`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent in which the catalog template revisions request is
+     * created in following format:
+     * `projects/$project/locations/$location/spaces/$space/templates/$template`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent in which the catalog template revisions request is
+     * created in following format:
+     * `projects/$project/locations/$location/spaces/$space/templates/$template`
+     * 
+ * + * + * 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 catalogTemplateRevisionId_ = ""; + + /** + * + * + *
+     * Required. The ID of the template revision to create.
+     * 
+ * + * string catalog_template_revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The catalogTemplateRevisionId. + */ + public java.lang.String getCatalogTemplateRevisionId() { + java.lang.Object ref = catalogTemplateRevisionId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + catalogTemplateRevisionId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The ID of the template revision to create.
+     * 
+ * + * string catalog_template_revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for catalogTemplateRevisionId. + */ + public com.google.protobuf.ByteString getCatalogTemplateRevisionIdBytes() { + java.lang.Object ref = catalogTemplateRevisionId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + catalogTemplateRevisionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The ID of the template revision to create.
+     * 
+ * + * string catalog_template_revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The catalogTemplateRevisionId to set. + * @return This builder for chaining. + */ + public Builder setCatalogTemplateRevisionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + catalogTemplateRevisionId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ID of the template revision to create.
+     * 
+ * + * string catalog_template_revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearCatalogTemplateRevisionId() { + catalogTemplateRevisionId_ = getDefaultInstance().getCatalogTemplateRevisionId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ID of the template revision to create.
+     * 
+ * + * string catalog_template_revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for catalogTemplateRevisionId to set. + * @return This builder for chaining. + */ + public Builder setCatalogTemplateRevisionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + catalogTemplateRevisionId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.designcenter.v1.CatalogTemplateRevision catalogTemplateRevision_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.CatalogTemplateRevision, + com.google.cloud.designcenter.v1.CatalogTemplateRevision.Builder, + com.google.cloud.designcenter.v1.CatalogTemplateRevisionOrBuilder> + catalogTemplateRevisionBuilder_; + + /** + * + * + *
+     * Required. The template revision to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.CatalogTemplateRevision catalog_template_revision = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the catalogTemplateRevision field is set. + */ + public boolean hasCatalogTemplateRevision() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Required. The template revision to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.CatalogTemplateRevision catalog_template_revision = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The catalogTemplateRevision. + */ + public com.google.cloud.designcenter.v1.CatalogTemplateRevision getCatalogTemplateRevision() { + if (catalogTemplateRevisionBuilder_ == null) { + return catalogTemplateRevision_ == null + ? com.google.cloud.designcenter.v1.CatalogTemplateRevision.getDefaultInstance() + : catalogTemplateRevision_; + } else { + return catalogTemplateRevisionBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The template revision to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.CatalogTemplateRevision catalog_template_revision = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCatalogTemplateRevision( + com.google.cloud.designcenter.v1.CatalogTemplateRevision value) { + if (catalogTemplateRevisionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + catalogTemplateRevision_ = value; + } else { + catalogTemplateRevisionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The template revision to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.CatalogTemplateRevision catalog_template_revision = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCatalogTemplateRevision( + com.google.cloud.designcenter.v1.CatalogTemplateRevision.Builder builderForValue) { + if (catalogTemplateRevisionBuilder_ == null) { + catalogTemplateRevision_ = builderForValue.build(); + } else { + catalogTemplateRevisionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The template revision to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.CatalogTemplateRevision catalog_template_revision = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeCatalogTemplateRevision( + com.google.cloud.designcenter.v1.CatalogTemplateRevision value) { + if (catalogTemplateRevisionBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && catalogTemplateRevision_ != null + && catalogTemplateRevision_ + != com.google.cloud.designcenter.v1.CatalogTemplateRevision.getDefaultInstance()) { + getCatalogTemplateRevisionBuilder().mergeFrom(value); + } else { + catalogTemplateRevision_ = value; + } + } else { + catalogTemplateRevisionBuilder_.mergeFrom(value); + } + if (catalogTemplateRevision_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The template revision to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.CatalogTemplateRevision catalog_template_revision = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearCatalogTemplateRevision() { + bitField0_ = (bitField0_ & ~0x00000004); + catalogTemplateRevision_ = null; + if (catalogTemplateRevisionBuilder_ != null) { + catalogTemplateRevisionBuilder_.dispose(); + catalogTemplateRevisionBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The template revision to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.CatalogTemplateRevision catalog_template_revision = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.CatalogTemplateRevision.Builder + getCatalogTemplateRevisionBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetCatalogTemplateRevisionFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The template revision to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.CatalogTemplateRevision catalog_template_revision = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.CatalogTemplateRevisionOrBuilder + getCatalogTemplateRevisionOrBuilder() { + if (catalogTemplateRevisionBuilder_ != null) { + return catalogTemplateRevisionBuilder_.getMessageOrBuilder(); + } else { + return catalogTemplateRevision_ == null + ? com.google.cloud.designcenter.v1.CatalogTemplateRevision.getDefaultInstance() + : catalogTemplateRevision_; + } + } + + /** + * + * + *
+     * Required. The template revision to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.CatalogTemplateRevision catalog_template_revision = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.CatalogTemplateRevision, + com.google.cloud.designcenter.v1.CatalogTemplateRevision.Builder, + com.google.cloud.designcenter.v1.CatalogTemplateRevisionOrBuilder> + internalGetCatalogTemplateRevisionFieldBuilder() { + if (catalogTemplateRevisionBuilder_ == null) { + catalogTemplateRevisionBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.CatalogTemplateRevision, + com.google.cloud.designcenter.v1.CatalogTemplateRevision.Builder, + com.google.cloud.designcenter.v1.CatalogTemplateRevisionOrBuilder>( + getCatalogTemplateRevision(), getParentForChildren(), isClean()); + catalogTemplateRevision_ = null; + } + return catalogTemplateRevisionBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.CreateCatalogTemplateRevisionRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.CreateCatalogTemplateRevisionRequest) + private static final com.google.cloud.designcenter.v1.CreateCatalogTemplateRevisionRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.CreateCatalogTemplateRevisionRequest(); + } + + public static com.google.cloud.designcenter.v1.CreateCatalogTemplateRevisionRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateCatalogTemplateRevisionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.CreateCatalogTemplateRevisionRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreateCatalogTemplateRevisionRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreateCatalogTemplateRevisionRequestOrBuilder.java new file mode 100644 index 000000000000..42cc51ba3ad4 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreateCatalogTemplateRevisionRequestOrBuilder.java @@ -0,0 +1,132 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/catalog_management_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface CreateCatalogTemplateRevisionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.CreateCatalogTemplateRevisionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent in which the catalog template revisions request is
+   * created in following format:
+   * `projects/$project/locations/$location/spaces/$space/templates/$template`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent in which the catalog template revisions request is
+   * created in following format:
+   * `projects/$project/locations/$location/spaces/$space/templates/$template`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The ID of the template revision to create.
+   * 
+ * + * string catalog_template_revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The catalogTemplateRevisionId. + */ + java.lang.String getCatalogTemplateRevisionId(); + + /** + * + * + *
+   * Required. The ID of the template revision to create.
+   * 
+ * + * string catalog_template_revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for catalogTemplateRevisionId. + */ + com.google.protobuf.ByteString getCatalogTemplateRevisionIdBytes(); + + /** + * + * + *
+   * Required. The template revision to create.
+   * 
+ * + * + * .google.cloud.designcenter.v1.CatalogTemplateRevision catalog_template_revision = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the catalogTemplateRevision field is set. + */ + boolean hasCatalogTemplateRevision(); + + /** + * + * + *
+   * Required. The template revision to create.
+   * 
+ * + * + * .google.cloud.designcenter.v1.CatalogTemplateRevision catalog_template_revision = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The catalogTemplateRevision. + */ + com.google.cloud.designcenter.v1.CatalogTemplateRevision getCatalogTemplateRevision(); + + /** + * + * + *
+   * Required. The template revision to create.
+   * 
+ * + * + * .google.cloud.designcenter.v1.CatalogTemplateRevision catalog_template_revision = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.designcenter.v1.CatalogTemplateRevisionOrBuilder + getCatalogTemplateRevisionOrBuilder(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreateComponentRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreateComponentRequest.java new file mode 100644 index 000000000000..415fbfa59682 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreateComponentRequest.java @@ -0,0 +1,1117 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for creating a component.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.CreateComponentRequest} + */ +@com.google.protobuf.Generated +public final class CreateComponentRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.CreateComponentRequest) + CreateComponentRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "CreateComponentRequest"); + } + + // Use CreateComponentRequest.newBuilder() to construct. + private CreateComponentRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateComponentRequest() { + parent_ = ""; + componentId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_CreateComponentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_CreateComponentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.CreateComponentRequest.class, + com.google.cloud.designcenter.v1.CreateComponentRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent resource in which to create the component.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The parent resource in which to create the component.
+   * 
+ * + * + * 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 COMPONENT_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object componentId_ = ""; + + /** + * + * + *
+   * Required. The ID of the component to create.
+   * 
+ * + * string component_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The componentId. + */ + @java.lang.Override + public java.lang.String getComponentId() { + java.lang.Object ref = componentId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + componentId_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The ID of the component to create.
+   * 
+ * + * string component_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for componentId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getComponentIdBytes() { + java.lang.Object ref = componentId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + componentId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COMPONENT_FIELD_NUMBER = 3; + private com.google.cloud.designcenter.v1.Component component_; + + /** + * + * + *
+   * Required. The component to create.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Component component = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the component field is set. + */ + @java.lang.Override + public boolean hasComponent() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The component to create.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Component component = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The component. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.Component getComponent() { + return component_ == null + ? com.google.cloud.designcenter.v1.Component.getDefaultInstance() + : component_; + } + + /** + * + * + *
+   * Required. The component to create.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Component component = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ComponentOrBuilder getComponentOrBuilder() { + return component_ == null + ? com.google.cloud.designcenter.v1.Component.getDefaultInstance() + : component_; + } + + 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.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(componentId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, componentId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getComponent()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(componentId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, componentId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getComponent()); + } + 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.designcenter.v1.CreateComponentRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.CreateComponentRequest other = + (com.google.cloud.designcenter.v1.CreateComponentRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getComponentId().equals(other.getComponentId())) return false; + if (hasComponent() != other.hasComponent()) return false; + if (hasComponent()) { + if (!getComponent().equals(other.getComponent())) 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) + COMPONENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getComponentId().hashCode(); + if (hasComponent()) { + hash = (37 * hash) + COMPONENT_FIELD_NUMBER; + hash = (53 * hash) + getComponent().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.CreateComponentRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.CreateComponentRequest 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.designcenter.v1.CreateComponentRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.CreateComponentRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.CreateComponentRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.CreateComponentRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.CreateComponentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.CreateComponentRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.CreateComponentRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.CreateComponentRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.CreateComponentRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.CreateComponentRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.CreateComponentRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for creating a component.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.CreateComponentRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.CreateComponentRequest) + com.google.cloud.designcenter.v1.CreateComponentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_CreateComponentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_CreateComponentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.CreateComponentRequest.class, + com.google.cloud.designcenter.v1.CreateComponentRequest.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.CreateComponentRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetComponentFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + componentId_ = ""; + component_ = null; + if (componentBuilder_ != null) { + componentBuilder_.dispose(); + componentBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_CreateComponentRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.CreateComponentRequest getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.CreateComponentRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.CreateComponentRequest build() { + com.google.cloud.designcenter.v1.CreateComponentRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.CreateComponentRequest buildPartial() { + com.google.cloud.designcenter.v1.CreateComponentRequest result = + new com.google.cloud.designcenter.v1.CreateComponentRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.CreateComponentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.componentId_ = componentId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.component_ = componentBuilder_ == null ? component_ : componentBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.CreateComponentRequest) { + return mergeFrom((com.google.cloud.designcenter.v1.CreateComponentRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.CreateComponentRequest other) { + if (other == com.google.cloud.designcenter.v1.CreateComponentRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getComponentId().isEmpty()) { + componentId_ = other.componentId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasComponent()) { + mergeComponent(other.getComponent()); + } + 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: + { + componentId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetComponentFieldBuilder().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 parent resource in which to create the component.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The parent resource in which to create the component.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The parent resource in which to create the component.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource in which to create the component.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource in which to create the component.
+     * 
+ * + * + * 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 componentId_ = ""; + + /** + * + * + *
+     * Required. The ID of the component to create.
+     * 
+ * + * string component_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The componentId. + */ + public java.lang.String getComponentId() { + java.lang.Object ref = componentId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + componentId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The ID of the component to create.
+     * 
+ * + * string component_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for componentId. + */ + public com.google.protobuf.ByteString getComponentIdBytes() { + java.lang.Object ref = componentId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + componentId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The ID of the component to create.
+     * 
+ * + * string component_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The componentId to set. + * @return This builder for chaining. + */ + public Builder setComponentId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + componentId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ID of the component to create.
+     * 
+ * + * string component_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearComponentId() { + componentId_ = getDefaultInstance().getComponentId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ID of the component to create.
+     * 
+ * + * string component_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for componentId to set. + * @return This builder for chaining. + */ + public Builder setComponentIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + componentId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.designcenter.v1.Component component_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.Component, + com.google.cloud.designcenter.v1.Component.Builder, + com.google.cloud.designcenter.v1.ComponentOrBuilder> + componentBuilder_; + + /** + * + * + *
+     * Required. The component to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Component component = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the component field is set. + */ + public boolean hasComponent() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Required. The component to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Component component = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The component. + */ + public com.google.cloud.designcenter.v1.Component getComponent() { + if (componentBuilder_ == null) { + return component_ == null + ? com.google.cloud.designcenter.v1.Component.getDefaultInstance() + : component_; + } else { + return componentBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The component to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Component component = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setComponent(com.google.cloud.designcenter.v1.Component value) { + if (componentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + component_ = value; + } else { + componentBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The component to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Component component = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setComponent( + com.google.cloud.designcenter.v1.Component.Builder builderForValue) { + if (componentBuilder_ == null) { + component_ = builderForValue.build(); + } else { + componentBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The component to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Component component = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeComponent(com.google.cloud.designcenter.v1.Component value) { + if (componentBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && component_ != null + && component_ != com.google.cloud.designcenter.v1.Component.getDefaultInstance()) { + getComponentBuilder().mergeFrom(value); + } else { + component_ = value; + } + } else { + componentBuilder_.mergeFrom(value); + } + if (component_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The component to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Component component = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearComponent() { + bitField0_ = (bitField0_ & ~0x00000004); + component_ = null; + if (componentBuilder_ != null) { + componentBuilder_.dispose(); + componentBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The component to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Component component = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.Component.Builder getComponentBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetComponentFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The component to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Component component = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.ComponentOrBuilder getComponentOrBuilder() { + if (componentBuilder_ != null) { + return componentBuilder_.getMessageOrBuilder(); + } else { + return component_ == null + ? com.google.cloud.designcenter.v1.Component.getDefaultInstance() + : component_; + } + } + + /** + * + * + *
+     * Required. The component to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Component component = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.Component, + com.google.cloud.designcenter.v1.Component.Builder, + com.google.cloud.designcenter.v1.ComponentOrBuilder> + internalGetComponentFieldBuilder() { + if (componentBuilder_ == null) { + componentBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.Component, + com.google.cloud.designcenter.v1.Component.Builder, + com.google.cloud.designcenter.v1.ComponentOrBuilder>( + getComponent(), getParentForChildren(), isClean()); + component_ = null; + } + return componentBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.CreateComponentRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.CreateComponentRequest) + private static final com.google.cloud.designcenter.v1.CreateComponentRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.CreateComponentRequest(); + } + + public static com.google.cloud.designcenter.v1.CreateComponentRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateComponentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.CreateComponentRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreateComponentRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreateComponentRequestOrBuilder.java new file mode 100644 index 000000000000..dc517392f8d7 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreateComponentRequestOrBuilder.java @@ -0,0 +1,127 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface CreateComponentRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.CreateComponentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource in which to create the component.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent resource in which to create the component.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The ID of the component to create.
+   * 
+ * + * string component_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The componentId. + */ + java.lang.String getComponentId(); + + /** + * + * + *
+   * Required. The ID of the component to create.
+   * 
+ * + * string component_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for componentId. + */ + com.google.protobuf.ByteString getComponentIdBytes(); + + /** + * + * + *
+   * Required. The component to create.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Component component = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the component field is set. + */ + boolean hasComponent(); + + /** + * + * + *
+   * Required. The component to create.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Component component = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The component. + */ + com.google.cloud.designcenter.v1.Component getComponent(); + + /** + * + * + *
+   * Required. The component to create.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Component component = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.designcenter.v1.ComponentOrBuilder getComponentOrBuilder(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreateConnectionRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreateConnectionRequest.java new file mode 100644 index 000000000000..103e3df0bdc8 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreateConnectionRequest.java @@ -0,0 +1,1117 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for creating a connection.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.CreateConnectionRequest} + */ +@com.google.protobuf.Generated +public final class CreateConnectionRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.CreateConnectionRequest) + CreateConnectionRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "CreateConnectionRequest"); + } + + // Use CreateConnectionRequest.newBuilder() to construct. + private CreateConnectionRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateConnectionRequest() { + parent_ = ""; + connectionId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_CreateConnectionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_CreateConnectionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.CreateConnectionRequest.class, + com.google.cloud.designcenter.v1.CreateConnectionRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent resource in which to create a connection.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The parent resource in which to create a connection.
+   * 
+ * + * + * 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 CONNECTION_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object connectionId_ = ""; + + /** + * + * + *
+   * Required. The ID of the connection to create.
+   * 
+ * + * string connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The connectionId. + */ + @java.lang.Override + public java.lang.String getConnectionId() { + java.lang.Object ref = connectionId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + connectionId_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The ID of the connection to create.
+   * 
+ * + * string connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for connectionId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getConnectionIdBytes() { + java.lang.Object ref = connectionId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + connectionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONNECTION_FIELD_NUMBER = 3; + private com.google.cloud.designcenter.v1.Connection connection_; + + /** + * + * + *
+   * Required. The connection to create.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the connection field is set. + */ + @java.lang.Override + public boolean hasConnection() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The connection to create.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The connection. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.Connection getConnection() { + return connection_ == null + ? com.google.cloud.designcenter.v1.Connection.getDefaultInstance() + : connection_; + } + + /** + * + * + *
+   * Required. The connection to create.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ConnectionOrBuilder getConnectionOrBuilder() { + return connection_ == null + ? com.google.cloud.designcenter.v1.Connection.getDefaultInstance() + : connection_; + } + + 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.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(connectionId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, connectionId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getConnection()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(connectionId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, connectionId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getConnection()); + } + 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.designcenter.v1.CreateConnectionRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.CreateConnectionRequest other = + (com.google.cloud.designcenter.v1.CreateConnectionRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getConnectionId().equals(other.getConnectionId())) return false; + if (hasConnection() != other.hasConnection()) return false; + if (hasConnection()) { + if (!getConnection().equals(other.getConnection())) 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) + CONNECTION_ID_FIELD_NUMBER; + hash = (53 * hash) + getConnectionId().hashCode(); + if (hasConnection()) { + hash = (37 * hash) + CONNECTION_FIELD_NUMBER; + hash = (53 * hash) + getConnection().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.CreateConnectionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.CreateConnectionRequest 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.designcenter.v1.CreateConnectionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.CreateConnectionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.CreateConnectionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.CreateConnectionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.CreateConnectionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.CreateConnectionRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.CreateConnectionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.CreateConnectionRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.CreateConnectionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.CreateConnectionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.CreateConnectionRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for creating a connection.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.CreateConnectionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.CreateConnectionRequest) + com.google.cloud.designcenter.v1.CreateConnectionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_CreateConnectionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_CreateConnectionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.CreateConnectionRequest.class, + com.google.cloud.designcenter.v1.CreateConnectionRequest.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.CreateConnectionRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetConnectionFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + connectionId_ = ""; + connection_ = null; + if (connectionBuilder_ != null) { + connectionBuilder_.dispose(); + connectionBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_CreateConnectionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.CreateConnectionRequest getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.CreateConnectionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.CreateConnectionRequest build() { + com.google.cloud.designcenter.v1.CreateConnectionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.CreateConnectionRequest buildPartial() { + com.google.cloud.designcenter.v1.CreateConnectionRequest result = + new com.google.cloud.designcenter.v1.CreateConnectionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.CreateConnectionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.connectionId_ = connectionId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.connection_ = connectionBuilder_ == null ? connection_ : connectionBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.CreateConnectionRequest) { + return mergeFrom((com.google.cloud.designcenter.v1.CreateConnectionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.CreateConnectionRequest other) { + if (other == com.google.cloud.designcenter.v1.CreateConnectionRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getConnectionId().isEmpty()) { + connectionId_ = other.connectionId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasConnection()) { + mergeConnection(other.getConnection()); + } + 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: + { + connectionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetConnectionFieldBuilder().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 parent resource in which to create a connection.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The parent resource in which to create a connection.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The parent resource in which to create a connection.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource in which to create a connection.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource in which to create a connection.
+     * 
+ * + * + * 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 connectionId_ = ""; + + /** + * + * + *
+     * Required. The ID of the connection to create.
+     * 
+ * + * string connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The connectionId. + */ + public java.lang.String getConnectionId() { + java.lang.Object ref = connectionId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + connectionId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The ID of the connection to create.
+     * 
+ * + * string connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for connectionId. + */ + public com.google.protobuf.ByteString getConnectionIdBytes() { + java.lang.Object ref = connectionId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + connectionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The ID of the connection to create.
+     * 
+ * + * string connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The connectionId to set. + * @return This builder for chaining. + */ + public Builder setConnectionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + connectionId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ID of the connection to create.
+     * 
+ * + * string connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearConnectionId() { + connectionId_ = getDefaultInstance().getConnectionId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ID of the connection to create.
+     * 
+ * + * string connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for connectionId to set. + * @return This builder for chaining. + */ + public Builder setConnectionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + connectionId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.designcenter.v1.Connection connection_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.Connection, + com.google.cloud.designcenter.v1.Connection.Builder, + com.google.cloud.designcenter.v1.ConnectionOrBuilder> + connectionBuilder_; + + /** + * + * + *
+     * Required. The connection to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the connection field is set. + */ + public boolean hasConnection() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Required. The connection to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The connection. + */ + public com.google.cloud.designcenter.v1.Connection getConnection() { + if (connectionBuilder_ == null) { + return connection_ == null + ? com.google.cloud.designcenter.v1.Connection.getDefaultInstance() + : connection_; + } else { + return connectionBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The connection to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setConnection(com.google.cloud.designcenter.v1.Connection value) { + if (connectionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + connection_ = value; + } else { + connectionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The connection to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setConnection( + com.google.cloud.designcenter.v1.Connection.Builder builderForValue) { + if (connectionBuilder_ == null) { + connection_ = builderForValue.build(); + } else { + connectionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The connection to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeConnection(com.google.cloud.designcenter.v1.Connection value) { + if (connectionBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && connection_ != null + && connection_ != com.google.cloud.designcenter.v1.Connection.getDefaultInstance()) { + getConnectionBuilder().mergeFrom(value); + } else { + connection_ = value; + } + } else { + connectionBuilder_.mergeFrom(value); + } + if (connection_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The connection to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearConnection() { + bitField0_ = (bitField0_ & ~0x00000004); + connection_ = null; + if (connectionBuilder_ != null) { + connectionBuilder_.dispose(); + connectionBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The connection to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.Connection.Builder getConnectionBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetConnectionFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The connection to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.ConnectionOrBuilder getConnectionOrBuilder() { + if (connectionBuilder_ != null) { + return connectionBuilder_.getMessageOrBuilder(); + } else { + return connection_ == null + ? com.google.cloud.designcenter.v1.Connection.getDefaultInstance() + : connection_; + } + } + + /** + * + * + *
+     * Required. The connection to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.Connection, + com.google.cloud.designcenter.v1.Connection.Builder, + com.google.cloud.designcenter.v1.ConnectionOrBuilder> + internalGetConnectionFieldBuilder() { + if (connectionBuilder_ == null) { + connectionBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.Connection, + com.google.cloud.designcenter.v1.Connection.Builder, + com.google.cloud.designcenter.v1.ConnectionOrBuilder>( + getConnection(), getParentForChildren(), isClean()); + connection_ = null; + } + return connectionBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.CreateConnectionRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.CreateConnectionRequest) + private static final com.google.cloud.designcenter.v1.CreateConnectionRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.CreateConnectionRequest(); + } + + public static com.google.cloud.designcenter.v1.CreateConnectionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateConnectionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.CreateConnectionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreateConnectionRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreateConnectionRequestOrBuilder.java new file mode 100644 index 000000000000..78af46390f5a --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreateConnectionRequestOrBuilder.java @@ -0,0 +1,127 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface CreateConnectionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.CreateConnectionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource in which to create a connection.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent resource in which to create a connection.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The ID of the connection to create.
+   * 
+ * + * string connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The connectionId. + */ + java.lang.String getConnectionId(); + + /** + * + * + *
+   * Required. The ID of the connection to create.
+   * 
+ * + * string connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for connectionId. + */ + com.google.protobuf.ByteString getConnectionIdBytes(); + + /** + * + * + *
+   * Required. The connection to create.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the connection field is set. + */ + boolean hasConnection(); + + /** + * + * + *
+   * Required. The connection to create.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The connection. + */ + com.google.cloud.designcenter.v1.Connection getConnection(); + + /** + * + * + *
+   * Required. The connection to create.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.designcenter.v1.ConnectionOrBuilder getConnectionOrBuilder(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreatePolicyRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreatePolicyRequest.java new file mode 100644 index 000000000000..cf15edbc450a --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreatePolicyRequest.java @@ -0,0 +1,1124 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/best_practices_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for creating a policy.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.CreatePolicyRequest} + */ +@com.google.protobuf.Generated +public final class CreatePolicyRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.CreatePolicyRequest) + CreatePolicyRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "CreatePolicyRequest"); + } + + // Use CreatePolicyRequest.newBuilder() to construct. + private CreatePolicyRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreatePolicyRequest() { + parent_ = ""; + policyId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_CreatePolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_CreatePolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.CreatePolicyRequest.class, + com.google.cloud.designcenter.v1.CreatePolicyRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent resource in which to create the policy in the
+   * following format:
+   * `projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The parent resource in which to create the policy in the
+   * following format:
+   * `projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int POLICY_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object policyId_ = ""; + + /** + * + * + *
+   * Required. The ID of the policy to create.
+   * 
+ * + * string policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The policyId. + */ + @java.lang.Override + public java.lang.String getPolicyId() { + java.lang.Object ref = policyId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + policyId_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The ID of the policy to create.
+   * 
+ * + * string policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for policyId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPolicyIdBytes() { + java.lang.Object ref = policyId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + policyId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int POLICY_FIELD_NUMBER = 3; + private com.google.cloud.designcenter.v1.Policy policy_; + + /** + * + * + *
+   * Required. The policy to create.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Policy policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the policy field is set. + */ + @java.lang.Override + public boolean hasPolicy() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The policy to create.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Policy policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The policy. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.Policy getPolicy() { + return policy_ == null ? com.google.cloud.designcenter.v1.Policy.getDefaultInstance() : policy_; + } + + /** + * + * + *
+   * Required. The policy to create.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Policy policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.PolicyOrBuilder getPolicyOrBuilder() { + return policy_ == null ? com.google.cloud.designcenter.v1.Policy.getDefaultInstance() : policy_; + } + + 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.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(policyId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, policyId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getPolicy()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(policyId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, policyId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPolicy()); + } + 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.designcenter.v1.CreatePolicyRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.CreatePolicyRequest other = + (com.google.cloud.designcenter.v1.CreatePolicyRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getPolicyId().equals(other.getPolicyId())) return false; + if (hasPolicy() != other.hasPolicy()) return false; + if (hasPolicy()) { + if (!getPolicy().equals(other.getPolicy())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + POLICY_ID_FIELD_NUMBER; + hash = (53 * hash) + getPolicyId().hashCode(); + if (hasPolicy()) { + hash = (37 * hash) + POLICY_FIELD_NUMBER; + hash = (53 * hash) + getPolicy().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.CreatePolicyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.CreatePolicyRequest 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.designcenter.v1.CreatePolicyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.CreatePolicyRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.CreatePolicyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.CreatePolicyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.CreatePolicyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.CreatePolicyRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.CreatePolicyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.CreatePolicyRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.CreatePolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.CreatePolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.CreatePolicyRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for creating a policy.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.CreatePolicyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.CreatePolicyRequest) + com.google.cloud.designcenter.v1.CreatePolicyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_CreatePolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_CreatePolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.CreatePolicyRequest.class, + com.google.cloud.designcenter.v1.CreatePolicyRequest.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.CreatePolicyRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetPolicyFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + policyId_ = ""; + policy_ = null; + if (policyBuilder_ != null) { + policyBuilder_.dispose(); + policyBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_CreatePolicyRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.CreatePolicyRequest getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.CreatePolicyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.CreatePolicyRequest build() { + com.google.cloud.designcenter.v1.CreatePolicyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.CreatePolicyRequest buildPartial() { + com.google.cloud.designcenter.v1.CreatePolicyRequest result = + new com.google.cloud.designcenter.v1.CreatePolicyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.CreatePolicyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.policyId_ = policyId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.policy_ = policyBuilder_ == null ? policy_ : policyBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.CreatePolicyRequest) { + return mergeFrom((com.google.cloud.designcenter.v1.CreatePolicyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.CreatePolicyRequest other) { + if (other == com.google.cloud.designcenter.v1.CreatePolicyRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getPolicyId().isEmpty()) { + policyId_ = other.policyId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasPolicy()) { + mergePolicy(other.getPolicy()); + } + 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: + { + policyId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(internalGetPolicyFieldBuilder().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 parent resource in which to create the policy in the
+     * following format:
+     * `projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The parent resource in which to create the policy in the
+     * following format:
+     * `projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The parent resource in which to create the policy in the
+     * following format:
+     * `projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource in which to create the policy in the
+     * following format:
+     * `projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource in which to create the policy in the
+     * following format:
+     * `projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate`
+     * 
+ * + * + * 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 policyId_ = ""; + + /** + * + * + *
+     * Required. The ID of the policy to create.
+     * 
+ * + * string policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The policyId. + */ + public java.lang.String getPolicyId() { + java.lang.Object ref = policyId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + policyId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The ID of the policy to create.
+     * 
+ * + * string policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for policyId. + */ + public com.google.protobuf.ByteString getPolicyIdBytes() { + java.lang.Object ref = policyId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + policyId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The ID of the policy to create.
+     * 
+ * + * string policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The policyId to set. + * @return This builder for chaining. + */ + public Builder setPolicyId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + policyId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ID of the policy to create.
+     * 
+ * + * string policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearPolicyId() { + policyId_ = getDefaultInstance().getPolicyId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ID of the policy to create.
+     * 
+ * + * string policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for policyId to set. + * @return This builder for chaining. + */ + public Builder setPolicyIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + policyId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.designcenter.v1.Policy policy_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.Policy, + com.google.cloud.designcenter.v1.Policy.Builder, + com.google.cloud.designcenter.v1.PolicyOrBuilder> + policyBuilder_; + + /** + * + * + *
+     * Required. The policy to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Policy policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the policy field is set. + */ + public boolean hasPolicy() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Required. The policy to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Policy policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The policy. + */ + public com.google.cloud.designcenter.v1.Policy getPolicy() { + if (policyBuilder_ == null) { + return policy_ == null + ? com.google.cloud.designcenter.v1.Policy.getDefaultInstance() + : policy_; + } else { + return policyBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The policy to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Policy policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPolicy(com.google.cloud.designcenter.v1.Policy value) { + if (policyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + policy_ = value; + } else { + policyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The policy to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Policy policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPolicy(com.google.cloud.designcenter.v1.Policy.Builder builderForValue) { + if (policyBuilder_ == null) { + policy_ = builderForValue.build(); + } else { + policyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The policy to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Policy policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergePolicy(com.google.cloud.designcenter.v1.Policy value) { + if (policyBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && policy_ != null + && policy_ != com.google.cloud.designcenter.v1.Policy.getDefaultInstance()) { + getPolicyBuilder().mergeFrom(value); + } else { + policy_ = value; + } + } else { + policyBuilder_.mergeFrom(value); + } + if (policy_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The policy to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Policy policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearPolicy() { + bitField0_ = (bitField0_ & ~0x00000004); + policy_ = null; + if (policyBuilder_ != null) { + policyBuilder_.dispose(); + policyBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The policy to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Policy policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.Policy.Builder getPolicyBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetPolicyFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The policy to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Policy policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.PolicyOrBuilder getPolicyOrBuilder() { + if (policyBuilder_ != null) { + return policyBuilder_.getMessageOrBuilder(); + } else { + return policy_ == null + ? com.google.cloud.designcenter.v1.Policy.getDefaultInstance() + : policy_; + } + } + + /** + * + * + *
+     * Required. The policy to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Policy policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.Policy, + com.google.cloud.designcenter.v1.Policy.Builder, + com.google.cloud.designcenter.v1.PolicyOrBuilder> + internalGetPolicyFieldBuilder() { + if (policyBuilder_ == null) { + policyBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.Policy, + com.google.cloud.designcenter.v1.Policy.Builder, + com.google.cloud.designcenter.v1.PolicyOrBuilder>( + getPolicy(), getParentForChildren(), isClean()); + policy_ = null; + } + return policyBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.CreatePolicyRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.CreatePolicyRequest) + private static final com.google.cloud.designcenter.v1.CreatePolicyRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.CreatePolicyRequest(); + } + + public static com.google.cloud.designcenter.v1.CreatePolicyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreatePolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.CreatePolicyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreatePolicyRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreatePolicyRequestOrBuilder.java new file mode 100644 index 000000000000..ae1802e3c370 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreatePolicyRequestOrBuilder.java @@ -0,0 +1,131 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/best_practices_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface CreatePolicyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.CreatePolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource in which to create the policy in the
+   * following format:
+   * `projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent resource in which to create the policy in the
+   * following format:
+   * `projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The ID of the policy to create.
+   * 
+ * + * string policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The policyId. + */ + java.lang.String getPolicyId(); + + /** + * + * + *
+   * Required. The ID of the policy to create.
+   * 
+ * + * string policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for policyId. + */ + com.google.protobuf.ByteString getPolicyIdBytes(); + + /** + * + * + *
+   * Required. The policy to create.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Policy policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the policy field is set. + */ + boolean hasPolicy(); + + /** + * + * + *
+   * Required. The policy to create.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Policy policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The policy. + */ + com.google.cloud.designcenter.v1.Policy getPolicy(); + + /** + * + * + *
+   * Required. The policy to create.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Policy policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.designcenter.v1.PolicyOrBuilder getPolicyOrBuilder(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreateShareRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreateShareRequest.java new file mode 100644 index 000000000000..e6f68770138c --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreateShareRequest.java @@ -0,0 +1,1107 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/sharing_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for creating a share of a catalog.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.CreateShareRequest} + */ +@com.google.protobuf.Generated +public final class CreateShareRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.CreateShareRequest) + CreateShareRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "CreateShareRequest"); + } + + // Use CreateShareRequest.newBuilder() to construct. + private CreateShareRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateShareRequest() { + parent_ = ""; + shareId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_CreateShareRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_CreateShareRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.CreateShareRequest.class, + com.google.cloud.designcenter.v1.CreateShareRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent resource in which shares are created.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The parent resource in which shares are created.
+   * 
+ * + * + * 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 SHARE_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object shareId_ = ""; + + /** + * + * + *
+   * Required. The ID of the share to create.
+   * 
+ * + * string share_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The shareId. + */ + @java.lang.Override + public java.lang.String getShareId() { + java.lang.Object ref = shareId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + shareId_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The ID of the share to create.
+   * 
+ * + * string share_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for shareId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getShareIdBytes() { + java.lang.Object ref = shareId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + shareId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SHARE_FIELD_NUMBER = 3; + private com.google.cloud.designcenter.v1.Share share_; + + /** + * + * + *
+   * Required. The share to create.
+   * 
+ * + * .google.cloud.designcenter.v1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the share field is set. + */ + @java.lang.Override + public boolean hasShare() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The share to create.
+   * 
+ * + * .google.cloud.designcenter.v1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The share. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.Share getShare() { + return share_ == null ? com.google.cloud.designcenter.v1.Share.getDefaultInstance() : share_; + } + + /** + * + * + *
+   * Required. The share to create.
+   * 
+ * + * .google.cloud.designcenter.v1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ShareOrBuilder getShareOrBuilder() { + return share_ == null ? com.google.cloud.designcenter.v1.Share.getDefaultInstance() : share_; + } + + 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.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(shareId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, shareId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getShare()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(shareId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, shareId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getShare()); + } + 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.designcenter.v1.CreateShareRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.CreateShareRequest other = + (com.google.cloud.designcenter.v1.CreateShareRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getShareId().equals(other.getShareId())) return false; + if (hasShare() != other.hasShare()) return false; + if (hasShare()) { + if (!getShare().equals(other.getShare())) 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) + SHARE_ID_FIELD_NUMBER; + hash = (53 * hash) + getShareId().hashCode(); + if (hasShare()) { + hash = (37 * hash) + SHARE_FIELD_NUMBER; + hash = (53 * hash) + getShare().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.CreateShareRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.CreateShareRequest 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.designcenter.v1.CreateShareRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.CreateShareRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.CreateShareRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.CreateShareRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.CreateShareRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.CreateShareRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.CreateShareRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.CreateShareRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.CreateShareRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.CreateShareRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.CreateShareRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for creating a share of a catalog.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.CreateShareRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.CreateShareRequest) + com.google.cloud.designcenter.v1.CreateShareRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_CreateShareRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_CreateShareRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.CreateShareRequest.class, + com.google.cloud.designcenter.v1.CreateShareRequest.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.CreateShareRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetShareFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + shareId_ = ""; + share_ = null; + if (shareBuilder_ != null) { + shareBuilder_.dispose(); + shareBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_CreateShareRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.CreateShareRequest getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.CreateShareRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.CreateShareRequest build() { + com.google.cloud.designcenter.v1.CreateShareRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.CreateShareRequest buildPartial() { + com.google.cloud.designcenter.v1.CreateShareRequest result = + new com.google.cloud.designcenter.v1.CreateShareRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.CreateShareRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.shareId_ = shareId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.share_ = shareBuilder_ == null ? share_ : shareBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.CreateShareRequest) { + return mergeFrom((com.google.cloud.designcenter.v1.CreateShareRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.CreateShareRequest other) { + if (other == com.google.cloud.designcenter.v1.CreateShareRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getShareId().isEmpty()) { + shareId_ = other.shareId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasShare()) { + mergeShare(other.getShare()); + } + 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: + { + shareId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(internalGetShareFieldBuilder().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 parent resource in which shares are created.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The parent resource in which shares are created.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The parent resource in which shares are created.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource in which shares are created.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource in which shares are created.
+     * 
+ * + * + * 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 shareId_ = ""; + + /** + * + * + *
+     * Required. The ID of the share to create.
+     * 
+ * + * string share_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The shareId. + */ + public java.lang.String getShareId() { + java.lang.Object ref = shareId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + shareId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The ID of the share to create.
+     * 
+ * + * string share_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for shareId. + */ + public com.google.protobuf.ByteString getShareIdBytes() { + java.lang.Object ref = shareId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + shareId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The ID of the share to create.
+     * 
+ * + * string share_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The shareId to set. + * @return This builder for chaining. + */ + public Builder setShareId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + shareId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ID of the share to create.
+     * 
+ * + * string share_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearShareId() { + shareId_ = getDefaultInstance().getShareId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ID of the share to create.
+     * 
+ * + * string share_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for shareId to set. + * @return This builder for chaining. + */ + public Builder setShareIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + shareId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.designcenter.v1.Share share_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.Share, + com.google.cloud.designcenter.v1.Share.Builder, + com.google.cloud.designcenter.v1.ShareOrBuilder> + shareBuilder_; + + /** + * + * + *
+     * Required. The share to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the share field is set. + */ + public boolean hasShare() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Required. The share to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The share. + */ + public com.google.cloud.designcenter.v1.Share getShare() { + if (shareBuilder_ == null) { + return share_ == null + ? com.google.cloud.designcenter.v1.Share.getDefaultInstance() + : share_; + } else { + return shareBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The share to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setShare(com.google.cloud.designcenter.v1.Share value) { + if (shareBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + share_ = value; + } else { + shareBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The share to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setShare(com.google.cloud.designcenter.v1.Share.Builder builderForValue) { + if (shareBuilder_ == null) { + share_ = builderForValue.build(); + } else { + shareBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The share to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeShare(com.google.cloud.designcenter.v1.Share value) { + if (shareBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && share_ != null + && share_ != com.google.cloud.designcenter.v1.Share.getDefaultInstance()) { + getShareBuilder().mergeFrom(value); + } else { + share_ = value; + } + } else { + shareBuilder_.mergeFrom(value); + } + if (share_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The share to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearShare() { + bitField0_ = (bitField0_ & ~0x00000004); + share_ = null; + if (shareBuilder_ != null) { + shareBuilder_.dispose(); + shareBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The share to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.Share.Builder getShareBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetShareFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The share to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.ShareOrBuilder getShareOrBuilder() { + if (shareBuilder_ != null) { + return shareBuilder_.getMessageOrBuilder(); + } else { + return share_ == null + ? com.google.cloud.designcenter.v1.Share.getDefaultInstance() + : share_; + } + } + + /** + * + * + *
+     * Required. The share to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.Share, + com.google.cloud.designcenter.v1.Share.Builder, + com.google.cloud.designcenter.v1.ShareOrBuilder> + internalGetShareFieldBuilder() { + if (shareBuilder_ == null) { + shareBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.Share, + com.google.cloud.designcenter.v1.Share.Builder, + com.google.cloud.designcenter.v1.ShareOrBuilder>( + getShare(), getParentForChildren(), isClean()); + share_ = null; + } + return shareBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.CreateShareRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.CreateShareRequest) + private static final com.google.cloud.designcenter.v1.CreateShareRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.CreateShareRequest(); + } + + public static com.google.cloud.designcenter.v1.CreateShareRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateShareRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.CreateShareRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreateShareRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreateShareRequestOrBuilder.java new file mode 100644 index 000000000000..44d64414d4c0 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreateShareRequestOrBuilder.java @@ -0,0 +1,124 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/sharing_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface CreateShareRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.CreateShareRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource in which shares are created.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent resource in which shares are created.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The ID of the share to create.
+   * 
+ * + * string share_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The shareId. + */ + java.lang.String getShareId(); + + /** + * + * + *
+   * Required. The ID of the share to create.
+   * 
+ * + * string share_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for shareId. + */ + com.google.protobuf.ByteString getShareIdBytes(); + + /** + * + * + *
+   * Required. The share to create.
+   * 
+ * + * .google.cloud.designcenter.v1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the share field is set. + */ + boolean hasShare(); + + /** + * + * + *
+   * Required. The share to create.
+   * 
+ * + * .google.cloud.designcenter.v1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The share. + */ + com.google.cloud.designcenter.v1.Share getShare(); + + /** + * + * + *
+   * Required. The share to create.
+   * 
+ * + * .google.cloud.designcenter.v1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.designcenter.v1.ShareOrBuilder getShareOrBuilder(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreateSpaceRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreateSpaceRequest.java new file mode 100644 index 000000000000..c7022d611403 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreateSpaceRequest.java @@ -0,0 +1,1107 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/catalog_management_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for creating a space.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.CreateSpaceRequest} + */ +@com.google.protobuf.Generated +public final class CreateSpaceRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.CreateSpaceRequest) + CreateSpaceRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "CreateSpaceRequest"); + } + + // Use CreateSpaceRequest.newBuilder() to construct. + private CreateSpaceRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateSpaceRequest() { + parent_ = ""; + spaceId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_CreateSpaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_CreateSpaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.CreateSpaceRequest.class, + com.google.cloud.designcenter.v1.CreateSpaceRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent in which to create a space.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The parent in which to create a space.
+   * 
+ * + * + * 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 SPACE_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object spaceId_ = ""; + + /** + * + * + *
+   * Required. The ID of the space to create.
+   * 
+ * + * string space_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The spaceId. + */ + @java.lang.Override + public java.lang.String getSpaceId() { + java.lang.Object ref = spaceId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + spaceId_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The ID of the space to create.
+   * 
+ * + * string space_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for spaceId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSpaceIdBytes() { + java.lang.Object ref = spaceId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + spaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SPACE_FIELD_NUMBER = 3; + private com.google.cloud.designcenter.v1.Space space_; + + /** + * + * + *
+   * Required. The space to create.
+   * 
+ * + * .google.cloud.designcenter.v1.Space space = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the space field is set. + */ + @java.lang.Override + public boolean hasSpace() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The space to create.
+   * 
+ * + * .google.cloud.designcenter.v1.Space space = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The space. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.Space getSpace() { + return space_ == null ? com.google.cloud.designcenter.v1.Space.getDefaultInstance() : space_; + } + + /** + * + * + *
+   * Required. The space to create.
+   * 
+ * + * .google.cloud.designcenter.v1.Space space = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.SpaceOrBuilder getSpaceOrBuilder() { + return space_ == null ? com.google.cloud.designcenter.v1.Space.getDefaultInstance() : space_; + } + + 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.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(spaceId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, spaceId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getSpace()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(spaceId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, spaceId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSpace()); + } + 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.designcenter.v1.CreateSpaceRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.CreateSpaceRequest other = + (com.google.cloud.designcenter.v1.CreateSpaceRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getSpaceId().equals(other.getSpaceId())) return false; + if (hasSpace() != other.hasSpace()) return false; + if (hasSpace()) { + if (!getSpace().equals(other.getSpace())) 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) + SPACE_ID_FIELD_NUMBER; + hash = (53 * hash) + getSpaceId().hashCode(); + if (hasSpace()) { + hash = (37 * hash) + SPACE_FIELD_NUMBER; + hash = (53 * hash) + getSpace().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.CreateSpaceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.CreateSpaceRequest 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.designcenter.v1.CreateSpaceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.CreateSpaceRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.CreateSpaceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.CreateSpaceRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.CreateSpaceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.CreateSpaceRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.CreateSpaceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.CreateSpaceRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.CreateSpaceRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.CreateSpaceRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.CreateSpaceRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for creating a space.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.CreateSpaceRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.CreateSpaceRequest) + com.google.cloud.designcenter.v1.CreateSpaceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_CreateSpaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_CreateSpaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.CreateSpaceRequest.class, + com.google.cloud.designcenter.v1.CreateSpaceRequest.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.CreateSpaceRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetSpaceFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + spaceId_ = ""; + space_ = null; + if (spaceBuilder_ != null) { + spaceBuilder_.dispose(); + spaceBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_CreateSpaceRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.CreateSpaceRequest getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.CreateSpaceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.CreateSpaceRequest build() { + com.google.cloud.designcenter.v1.CreateSpaceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.CreateSpaceRequest buildPartial() { + com.google.cloud.designcenter.v1.CreateSpaceRequest result = + new com.google.cloud.designcenter.v1.CreateSpaceRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.CreateSpaceRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.spaceId_ = spaceId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.space_ = spaceBuilder_ == null ? space_ : spaceBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.CreateSpaceRequest) { + return mergeFrom((com.google.cloud.designcenter.v1.CreateSpaceRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.CreateSpaceRequest other) { + if (other == com.google.cloud.designcenter.v1.CreateSpaceRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getSpaceId().isEmpty()) { + spaceId_ = other.spaceId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasSpace()) { + mergeSpace(other.getSpace()); + } + 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: + { + spaceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(internalGetSpaceFieldBuilder().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 parent in which to create a space.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The parent in which to create a space.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The parent in which to create a space.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent in which to create a space.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent in which to create a space.
+     * 
+ * + * + * 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 spaceId_ = ""; + + /** + * + * + *
+     * Required. The ID of the space to create.
+     * 
+ * + * string space_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The spaceId. + */ + public java.lang.String getSpaceId() { + java.lang.Object ref = spaceId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + spaceId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The ID of the space to create.
+     * 
+ * + * string space_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for spaceId. + */ + public com.google.protobuf.ByteString getSpaceIdBytes() { + java.lang.Object ref = spaceId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + spaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The ID of the space to create.
+     * 
+ * + * string space_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The spaceId to set. + * @return This builder for chaining. + */ + public Builder setSpaceId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + spaceId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ID of the space to create.
+     * 
+ * + * string space_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearSpaceId() { + spaceId_ = getDefaultInstance().getSpaceId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ID of the space to create.
+     * 
+ * + * string space_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for spaceId to set. + * @return This builder for chaining. + */ + public Builder setSpaceIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + spaceId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.designcenter.v1.Space space_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.Space, + com.google.cloud.designcenter.v1.Space.Builder, + com.google.cloud.designcenter.v1.SpaceOrBuilder> + spaceBuilder_; + + /** + * + * + *
+     * Required. The space to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Space space = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the space field is set. + */ + public boolean hasSpace() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Required. The space to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Space space = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The space. + */ + public com.google.cloud.designcenter.v1.Space getSpace() { + if (spaceBuilder_ == null) { + return space_ == null + ? com.google.cloud.designcenter.v1.Space.getDefaultInstance() + : space_; + } else { + return spaceBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The space to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Space space = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSpace(com.google.cloud.designcenter.v1.Space value) { + if (spaceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + space_ = value; + } else { + spaceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The space to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Space space = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSpace(com.google.cloud.designcenter.v1.Space.Builder builderForValue) { + if (spaceBuilder_ == null) { + space_ = builderForValue.build(); + } else { + spaceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The space to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Space space = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeSpace(com.google.cloud.designcenter.v1.Space value) { + if (spaceBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && space_ != null + && space_ != com.google.cloud.designcenter.v1.Space.getDefaultInstance()) { + getSpaceBuilder().mergeFrom(value); + } else { + space_ = value; + } + } else { + spaceBuilder_.mergeFrom(value); + } + if (space_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The space to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Space space = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearSpace() { + bitField0_ = (bitField0_ & ~0x00000004); + space_ = null; + if (spaceBuilder_ != null) { + spaceBuilder_.dispose(); + spaceBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The space to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Space space = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.Space.Builder getSpaceBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetSpaceFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The space to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Space space = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.SpaceOrBuilder getSpaceOrBuilder() { + if (spaceBuilder_ != null) { + return spaceBuilder_.getMessageOrBuilder(); + } else { + return space_ == null + ? com.google.cloud.designcenter.v1.Space.getDefaultInstance() + : space_; + } + } + + /** + * + * + *
+     * Required. The space to create.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Space space = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.Space, + com.google.cloud.designcenter.v1.Space.Builder, + com.google.cloud.designcenter.v1.SpaceOrBuilder> + internalGetSpaceFieldBuilder() { + if (spaceBuilder_ == null) { + spaceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.Space, + com.google.cloud.designcenter.v1.Space.Builder, + com.google.cloud.designcenter.v1.SpaceOrBuilder>( + getSpace(), getParentForChildren(), isClean()); + space_ = null; + } + return spaceBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.CreateSpaceRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.CreateSpaceRequest) + private static final com.google.cloud.designcenter.v1.CreateSpaceRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.CreateSpaceRequest(); + } + + public static com.google.cloud.designcenter.v1.CreateSpaceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateSpaceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.CreateSpaceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreateSpaceRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreateSpaceRequestOrBuilder.java new file mode 100644 index 000000000000..6a074039507e --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/CreateSpaceRequestOrBuilder.java @@ -0,0 +1,124 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/catalog_management_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface CreateSpaceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.CreateSpaceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent in which to create a space.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent in which to create a space.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The ID of the space to create.
+   * 
+ * + * string space_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The spaceId. + */ + java.lang.String getSpaceId(); + + /** + * + * + *
+   * Required. The ID of the space to create.
+   * 
+ * + * string space_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for spaceId. + */ + com.google.protobuf.ByteString getSpaceIdBytes(); + + /** + * + * + *
+   * Required. The space to create.
+   * 
+ * + * .google.cloud.designcenter.v1.Space space = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the space field is set. + */ + boolean hasSpace(); + + /** + * + * + *
+   * Required. The space to create.
+   * 
+ * + * .google.cloud.designcenter.v1.Space space = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The space. + */ + com.google.cloud.designcenter.v1.Space getSpace(); + + /** + * + * + *
+   * Required. The space to create.
+   * 
+ * + * .google.cloud.designcenter.v1.Space space = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.designcenter.v1.SpaceOrBuilder getSpaceOrBuilder(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteApplicationRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteApplicationRequest.java new file mode 100644 index 000000000000..5e00a3321610 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteApplicationRequest.java @@ -0,0 +1,726 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for deleting an application.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.DeleteApplicationRequest} + */ +@com.google.protobuf.Generated +public final class DeleteApplicationRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.DeleteApplicationRequest) + DeleteApplicationRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DeleteApplicationRequest"); + } + + // Use DeleteApplicationRequest.newBuilder() to construct. + private DeleteApplicationRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteApplicationRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_DeleteApplicationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_DeleteApplicationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.DeleteApplicationRequest.class, + com.google.cloud.designcenter.v1.DeleteApplicationRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The application name.
+   * Format:
+   * `projects/$project/locations/$location/spaces/$space/applications/$application`
+   * 
+ * + * + * 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 application name.
+   * Format:
+   * `projects/$project/locations/$location/spaces/$space/applications/$application`
+   * 
+ * + * + * 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 FORCE_FIELD_NUMBER = 3; + private boolean force_ = false; + + /** + * + * + *
+   * Optional. If set to true, the application's children are also deleted. If
+   * false, the application is only deleted if it has no children.
+   * 
+ * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (force_ != false) { + output.writeBool(3, force_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (force_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, force_); + } + 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.designcenter.v1.DeleteApplicationRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.DeleteApplicationRequest other = + (com.google.cloud.designcenter.v1.DeleteApplicationRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (getForce() != other.getForce()) 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) + FORCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.DeleteApplicationRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeleteApplicationRequest 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.designcenter.v1.DeleteApplicationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeleteApplicationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeleteApplicationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeleteApplicationRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeleteApplicationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeleteApplicationRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeleteApplicationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeleteApplicationRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeleteApplicationRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeleteApplicationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.DeleteApplicationRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for deleting an application.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.DeleteApplicationRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.DeleteApplicationRequest) + com.google.cloud.designcenter.v1.DeleteApplicationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_DeleteApplicationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_DeleteApplicationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.DeleteApplicationRequest.class, + com.google.cloud.designcenter.v1.DeleteApplicationRequest.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.DeleteApplicationRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + force_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_DeleteApplicationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeleteApplicationRequest getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.DeleteApplicationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeleteApplicationRequest build() { + com.google.cloud.designcenter.v1.DeleteApplicationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeleteApplicationRequest buildPartial() { + com.google.cloud.designcenter.v1.DeleteApplicationRequest result = + new com.google.cloud.designcenter.v1.DeleteApplicationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.DeleteApplicationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.force_ = force_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.DeleteApplicationRequest) { + return mergeFrom((com.google.cloud.designcenter.v1.DeleteApplicationRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.DeleteApplicationRequest other) { + if (other == com.google.cloud.designcenter.v1.DeleteApplicationRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getForce() != false) { + setForce(other.getForce()); + } + 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 24: + { + force_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 24 + default: + { + 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 application name.
+     * Format:
+     * `projects/$project/locations/$location/spaces/$space/applications/$application`
+     * 
+ * + * + * 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 application name.
+     * Format:
+     * `projects/$project/locations/$location/spaces/$space/applications/$application`
+     * 
+ * + * + * 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 application name.
+     * Format:
+     * `projects/$project/locations/$location/spaces/$space/applications/$application`
+     * 
+ * + * + * 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 application name.
+     * Format:
+     * `projects/$project/locations/$location/spaces/$space/applications/$application`
+     * 
+ * + * + * 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 application name.
+     * Format:
+     * `projects/$project/locations/$location/spaces/$space/applications/$application`
+     * 
+ * + * + * 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 boolean force_; + + /** + * + * + *
+     * Optional. If set to true, the application's children are also deleted. If
+     * false, the application is only deleted if it has no children.
+     * 
+ * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + /** + * + * + *
+     * Optional. If set to true, the application's children are also deleted. If
+     * false, the application is only deleted if it has no children.
+     * 
+ * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The force to set. + * @return This builder for chaining. + */ + public Builder setForce(boolean value) { + + force_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. If set to true, the application's children are also deleted. If
+     * false, the application is only deleted if it has no children.
+     * 
+ * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearForce() { + bitField0_ = (bitField0_ & ~0x00000002); + force_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.DeleteApplicationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.DeleteApplicationRequest) + private static final com.google.cloud.designcenter.v1.DeleteApplicationRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.DeleteApplicationRequest(); + } + + public static com.google.cloud.designcenter.v1.DeleteApplicationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteApplicationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.DeleteApplicationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteApplicationRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteApplicationRequestOrBuilder.java new file mode 100644 index 000000000000..20bc57f37de9 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteApplicationRequestOrBuilder.java @@ -0,0 +1,76 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface DeleteApplicationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.DeleteApplicationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The application name.
+   * Format:
+   * `projects/$project/locations/$location/spaces/$space/applications/$application`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The application name.
+   * Format:
+   * `projects/$project/locations/$location/spaces/$space/applications/$application`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. If set to true, the application's children are also deleted. If
+   * false, the application is only deleted if it has no children.
+   * 
+ * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + boolean getForce(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteApplicationTemplateRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteApplicationTemplateRequest.java new file mode 100644 index 000000000000..985119c361e1 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteApplicationTemplateRequest.java @@ -0,0 +1,726 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for deleting an application template.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.DeleteApplicationTemplateRequest} + */ +@com.google.protobuf.Generated +public final class DeleteApplicationTemplateRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.DeleteApplicationTemplateRequest) + DeleteApplicationTemplateRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DeleteApplicationTemplateRequest"); + } + + // Use DeleteApplicationTemplateRequest.newBuilder() to construct. + private DeleteApplicationTemplateRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteApplicationTemplateRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_DeleteApplicationTemplateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_DeleteApplicationTemplateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.DeleteApplicationTemplateRequest.class, + com.google.cloud.designcenter.v1.DeleteApplicationTemplateRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The application template name.
+   * 
+ * + * + * 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 application template name.
+   * 
+ * + * + * 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 FORCE_FIELD_NUMBER = 2; + private boolean force_ = false; + + /** + * + * + *
+   * Optional. If set to true, the application template's children are also
+   * deleted. If false, the application template is only deleted if it has no
+   * children.
+   * 
+ * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (force_ != false) { + output.writeBool(2, force_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (force_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, force_); + } + 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.designcenter.v1.DeleteApplicationTemplateRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.DeleteApplicationTemplateRequest other = + (com.google.cloud.designcenter.v1.DeleteApplicationTemplateRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (getForce() != other.getForce()) 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) + FORCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.DeleteApplicationTemplateRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeleteApplicationTemplateRequest 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.designcenter.v1.DeleteApplicationTemplateRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeleteApplicationTemplateRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeleteApplicationTemplateRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeleteApplicationTemplateRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeleteApplicationTemplateRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeleteApplicationTemplateRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeleteApplicationTemplateRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeleteApplicationTemplateRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeleteApplicationTemplateRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeleteApplicationTemplateRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.DeleteApplicationTemplateRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for deleting an application template.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.DeleteApplicationTemplateRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.DeleteApplicationTemplateRequest) + com.google.cloud.designcenter.v1.DeleteApplicationTemplateRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_DeleteApplicationTemplateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_DeleteApplicationTemplateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.DeleteApplicationTemplateRequest.class, + com.google.cloud.designcenter.v1.DeleteApplicationTemplateRequest.Builder.class); + } + + // Construct using + // com.google.cloud.designcenter.v1.DeleteApplicationTemplateRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + force_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_DeleteApplicationTemplateRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeleteApplicationTemplateRequest + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.DeleteApplicationTemplateRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeleteApplicationTemplateRequest build() { + com.google.cloud.designcenter.v1.DeleteApplicationTemplateRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeleteApplicationTemplateRequest buildPartial() { + com.google.cloud.designcenter.v1.DeleteApplicationTemplateRequest result = + new com.google.cloud.designcenter.v1.DeleteApplicationTemplateRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.DeleteApplicationTemplateRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.force_ = force_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.DeleteApplicationTemplateRequest) { + return mergeFrom((com.google.cloud.designcenter.v1.DeleteApplicationTemplateRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.designcenter.v1.DeleteApplicationTemplateRequest other) { + if (other + == com.google.cloud.designcenter.v1.DeleteApplicationTemplateRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getForce() != false) { + setForce(other.getForce()); + } + 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: + { + force_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The application template name.
+     * 
+ * + * + * 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 application template name.
+     * 
+ * + * + * 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 application template name.
+     * 
+ * + * + * 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 application template name.
+     * 
+ * + * + * 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 application template name.
+     * 
+ * + * + * 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 boolean force_; + + /** + * + * + *
+     * Optional. If set to true, the application template's children are also
+     * deleted. If false, the application template is only deleted if it has no
+     * children.
+     * 
+ * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + /** + * + * + *
+     * Optional. If set to true, the application template's children are also
+     * deleted. If false, the application template is only deleted if it has no
+     * children.
+     * 
+ * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The force to set. + * @return This builder for chaining. + */ + public Builder setForce(boolean value) { + + force_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. If set to true, the application template's children are also
+     * deleted. If false, the application template is only deleted if it has no
+     * children.
+     * 
+ * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearForce() { + bitField0_ = (bitField0_ & ~0x00000002); + force_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.DeleteApplicationTemplateRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.DeleteApplicationTemplateRequest) + private static final com.google.cloud.designcenter.v1.DeleteApplicationTemplateRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.DeleteApplicationTemplateRequest(); + } + + public static com.google.cloud.designcenter.v1.DeleteApplicationTemplateRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteApplicationTemplateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.DeleteApplicationTemplateRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteApplicationTemplateRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteApplicationTemplateRequestOrBuilder.java new file mode 100644 index 000000000000..b07f19ff9941 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteApplicationTemplateRequestOrBuilder.java @@ -0,0 +1,73 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface DeleteApplicationTemplateRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.DeleteApplicationTemplateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The application template name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The application template name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. If set to true, the application template's children are also
+   * deleted. If false, the application template is only deleted if it has no
+   * children.
+   * 
+ * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + boolean getForce(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteApplicationTemplateRevisionRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteApplicationTemplateRevisionRequest.java new file mode 100644 index 000000000000..25ff9ece31f1 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteApplicationTemplateRevisionRequest.java @@ -0,0 +1,631 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for deleting an application template revision.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.DeleteApplicationTemplateRevisionRequest} + */ +@com.google.protobuf.Generated +public final class DeleteApplicationTemplateRevisionRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.DeleteApplicationTemplateRevisionRequest) + DeleteApplicationTemplateRevisionRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DeleteApplicationTemplateRevisionRequest"); + } + + // Use DeleteApplicationTemplateRevisionRequest.newBuilder() to construct. + private DeleteApplicationTemplateRevisionRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteApplicationTemplateRevisionRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_DeleteApplicationTemplateRevisionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_DeleteApplicationTemplateRevisionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.DeleteApplicationTemplateRevisionRequest.class, + com.google.cloud.designcenter.v1.DeleteApplicationTemplateRevisionRequest.Builder + .class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The application template revision name.
+   * 
+ * + * + * 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 application template revision name.
+   * 
+ * + * + * 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.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.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.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.designcenter.v1.DeleteApplicationTemplateRevisionRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.DeleteApplicationTemplateRevisionRequest other = + (com.google.cloud.designcenter.v1.DeleteApplicationTemplateRevisionRequest) 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.designcenter.v1.DeleteApplicationTemplateRevisionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeleteApplicationTemplateRevisionRequest 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.designcenter.v1.DeleteApplicationTemplateRevisionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeleteApplicationTemplateRevisionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeleteApplicationTemplateRevisionRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeleteApplicationTemplateRevisionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeleteApplicationTemplateRevisionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeleteApplicationTemplateRevisionRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeleteApplicationTemplateRevisionRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeleteApplicationTemplateRevisionRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeleteApplicationTemplateRevisionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeleteApplicationTemplateRevisionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.DeleteApplicationTemplateRevisionRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for deleting an application template revision.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.DeleteApplicationTemplateRevisionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.DeleteApplicationTemplateRevisionRequest) + com.google.cloud.designcenter.v1.DeleteApplicationTemplateRevisionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_DeleteApplicationTemplateRevisionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_DeleteApplicationTemplateRevisionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.DeleteApplicationTemplateRevisionRequest.class, + com.google.cloud.designcenter.v1.DeleteApplicationTemplateRevisionRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.designcenter.v1.DeleteApplicationTemplateRevisionRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.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.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_DeleteApplicationTemplateRevisionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeleteApplicationTemplateRevisionRequest + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.DeleteApplicationTemplateRevisionRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeleteApplicationTemplateRevisionRequest build() { + com.google.cloud.designcenter.v1.DeleteApplicationTemplateRevisionRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeleteApplicationTemplateRevisionRequest + buildPartial() { + com.google.cloud.designcenter.v1.DeleteApplicationTemplateRevisionRequest result = + new com.google.cloud.designcenter.v1.DeleteApplicationTemplateRevisionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.DeleteApplicationTemplateRevisionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.designcenter.v1.DeleteApplicationTemplateRevisionRequest) { + return mergeFrom( + (com.google.cloud.designcenter.v1.DeleteApplicationTemplateRevisionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.designcenter.v1.DeleteApplicationTemplateRevisionRequest other) { + if (other + == com.google.cloud.designcenter.v1.DeleteApplicationTemplateRevisionRequest + .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 application template revision name.
+     * 
+ * + * + * 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 application template revision name.
+     * 
+ * + * + * 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 application template revision name.
+     * 
+ * + * + * 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 application template revision name.
+     * 
+ * + * + * 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 application template revision name.
+     * 
+ * + * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.DeleteApplicationTemplateRevisionRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.DeleteApplicationTemplateRevisionRequest) + private static final com.google.cloud.designcenter.v1.DeleteApplicationTemplateRevisionRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.designcenter.v1.DeleteApplicationTemplateRevisionRequest(); + } + + public static com.google.cloud.designcenter.v1.DeleteApplicationTemplateRevisionRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteApplicationTemplateRevisionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.DeleteApplicationTemplateRevisionRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteApplicationTemplateRevisionRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteApplicationTemplateRevisionRequestOrBuilder.java new file mode 100644 index 000000000000..ea5cfab5c3c7 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteApplicationTemplateRevisionRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface DeleteApplicationTemplateRevisionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.DeleteApplicationTemplateRevisionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The application template revision name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The application template revision name.
+   * 
+ * + * + * 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-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteCatalogRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteCatalogRequest.java new file mode 100644 index 000000000000..c74a04665de9 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteCatalogRequest.java @@ -0,0 +1,719 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/catalog_management_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for deleting a catalog.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.DeleteCatalogRequest} + */ +@com.google.protobuf.Generated +public final class DeleteCatalogRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.DeleteCatalogRequest) + DeleteCatalogRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DeleteCatalogRequest"); + } + + // Use DeleteCatalogRequest.newBuilder() to construct. + private DeleteCatalogRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteCatalogRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_DeleteCatalogRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_DeleteCatalogRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.DeleteCatalogRequest.class, + com.google.cloud.designcenter.v1.DeleteCatalogRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The catalog name in the following format:
+   * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog`
+   * 
+ * + * + * 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 catalog name in the following format:
+   * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog`
+   * 
+ * + * + * 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 FORCE_FIELD_NUMBER = 2; + private boolean force_ = false; + + /** + * + * + *
+   * Optional. If set to true, the catalog's children are also deleted. If
+   * false, the catalog is only deleted if it has no children.
+   * 
+ * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (force_ != false) { + output.writeBool(2, force_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (force_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, force_); + } + 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.designcenter.v1.DeleteCatalogRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.DeleteCatalogRequest other = + (com.google.cloud.designcenter.v1.DeleteCatalogRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (getForce() != other.getForce()) 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) + FORCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.DeleteCatalogRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeleteCatalogRequest 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.designcenter.v1.DeleteCatalogRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeleteCatalogRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeleteCatalogRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeleteCatalogRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeleteCatalogRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeleteCatalogRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeleteCatalogRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeleteCatalogRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeleteCatalogRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeleteCatalogRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.DeleteCatalogRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for deleting a catalog.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.DeleteCatalogRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.DeleteCatalogRequest) + com.google.cloud.designcenter.v1.DeleteCatalogRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_DeleteCatalogRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_DeleteCatalogRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.DeleteCatalogRequest.class, + com.google.cloud.designcenter.v1.DeleteCatalogRequest.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.DeleteCatalogRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + force_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_DeleteCatalogRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeleteCatalogRequest getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.DeleteCatalogRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeleteCatalogRequest build() { + com.google.cloud.designcenter.v1.DeleteCatalogRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeleteCatalogRequest buildPartial() { + com.google.cloud.designcenter.v1.DeleteCatalogRequest result = + new com.google.cloud.designcenter.v1.DeleteCatalogRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.DeleteCatalogRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.force_ = force_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.DeleteCatalogRequest) { + return mergeFrom((com.google.cloud.designcenter.v1.DeleteCatalogRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.DeleteCatalogRequest other) { + if (other == com.google.cloud.designcenter.v1.DeleteCatalogRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getForce() != false) { + setForce(other.getForce()); + } + 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: + { + force_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The catalog name in the following format:
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog`
+     * 
+ * + * + * 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 catalog name in the following format:
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog`
+     * 
+ * + * + * 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 catalog name in the following format:
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog`
+     * 
+ * + * + * 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 catalog name in the following format:
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog`
+     * 
+ * + * + * 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 catalog name in the following format:
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog`
+     * 
+ * + * + * 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 boolean force_; + + /** + * + * + *
+     * Optional. If set to true, the catalog's children are also deleted. If
+     * false, the catalog is only deleted if it has no children.
+     * 
+ * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + /** + * + * + *
+     * Optional. If set to true, the catalog's children are also deleted. If
+     * false, the catalog is only deleted if it has no children.
+     * 
+ * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The force to set. + * @return This builder for chaining. + */ + public Builder setForce(boolean value) { + + force_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. If set to true, the catalog's children are also deleted. If
+     * false, the catalog is only deleted if it has no children.
+     * 
+ * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearForce() { + bitField0_ = (bitField0_ & ~0x00000002); + force_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.DeleteCatalogRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.DeleteCatalogRequest) + private static final com.google.cloud.designcenter.v1.DeleteCatalogRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.DeleteCatalogRequest(); + } + + public static com.google.cloud.designcenter.v1.DeleteCatalogRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteCatalogRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.DeleteCatalogRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteCatalogRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteCatalogRequestOrBuilder.java new file mode 100644 index 000000000000..27f9f39e33c9 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteCatalogRequestOrBuilder.java @@ -0,0 +1,74 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/catalog_management_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface DeleteCatalogRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.DeleteCatalogRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The catalog name in the following format:
+   * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The catalog name in the following format:
+   * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. If set to true, the catalog's children are also deleted. If
+   * false, the catalog is only deleted if it has no children.
+   * 
+ * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + boolean getForce(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteCatalogTemplateRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteCatalogTemplateRequest.java new file mode 100644 index 000000000000..e501353b2b47 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteCatalogTemplateRequest.java @@ -0,0 +1,730 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/catalog_management_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for deleting a catalog template.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.DeleteCatalogTemplateRequest} + */ +@com.google.protobuf.Generated +public final class DeleteCatalogTemplateRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.DeleteCatalogTemplateRequest) + DeleteCatalogTemplateRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DeleteCatalogTemplateRequest"); + } + + // Use DeleteCatalogTemplateRequest.newBuilder() to construct. + private DeleteCatalogTemplateRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteCatalogTemplateRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_DeleteCatalogTemplateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_DeleteCatalogTemplateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.DeleteCatalogTemplateRequest.class, + com.google.cloud.designcenter.v1.DeleteCatalogTemplateRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The catalog template name.
+   * Format:
+   * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template`
+   * 
+ * + * + * 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 catalog template name.
+   * Format:
+   * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template`
+   * 
+ * + * + * 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 FORCE_FIELD_NUMBER = 2; + private boolean force_ = false; + + /** + * + * + *
+   * Optional. If set to true, the catalog template's children are also deleted.
+   * If false, the catalog template is only deleted if it has no children.
+   * 
+ * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (force_ != false) { + output.writeBool(2, force_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (force_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, force_); + } + 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.designcenter.v1.DeleteCatalogTemplateRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.DeleteCatalogTemplateRequest other = + (com.google.cloud.designcenter.v1.DeleteCatalogTemplateRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (getForce() != other.getForce()) 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) + FORCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.DeleteCatalogTemplateRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeleteCatalogTemplateRequest 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.designcenter.v1.DeleteCatalogTemplateRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeleteCatalogTemplateRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeleteCatalogTemplateRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeleteCatalogTemplateRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeleteCatalogTemplateRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeleteCatalogTemplateRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeleteCatalogTemplateRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeleteCatalogTemplateRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeleteCatalogTemplateRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeleteCatalogTemplateRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.DeleteCatalogTemplateRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for deleting a catalog template.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.DeleteCatalogTemplateRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.DeleteCatalogTemplateRequest) + com.google.cloud.designcenter.v1.DeleteCatalogTemplateRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_DeleteCatalogTemplateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_DeleteCatalogTemplateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.DeleteCatalogTemplateRequest.class, + com.google.cloud.designcenter.v1.DeleteCatalogTemplateRequest.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.DeleteCatalogTemplateRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + force_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_DeleteCatalogTemplateRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeleteCatalogTemplateRequest + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.DeleteCatalogTemplateRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeleteCatalogTemplateRequest build() { + com.google.cloud.designcenter.v1.DeleteCatalogTemplateRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeleteCatalogTemplateRequest buildPartial() { + com.google.cloud.designcenter.v1.DeleteCatalogTemplateRequest result = + new com.google.cloud.designcenter.v1.DeleteCatalogTemplateRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.DeleteCatalogTemplateRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.force_ = force_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.DeleteCatalogTemplateRequest) { + return mergeFrom((com.google.cloud.designcenter.v1.DeleteCatalogTemplateRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.DeleteCatalogTemplateRequest other) { + if (other + == com.google.cloud.designcenter.v1.DeleteCatalogTemplateRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getForce() != false) { + setForce(other.getForce()); + } + 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: + { + force_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The catalog template name.
+     * Format:
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template`
+     * 
+ * + * + * 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 catalog template name.
+     * Format:
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template`
+     * 
+ * + * + * 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 catalog template name.
+     * Format:
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template`
+     * 
+ * + * + * 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 catalog template name.
+     * Format:
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template`
+     * 
+ * + * + * 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 catalog template name.
+     * Format:
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template`
+     * 
+ * + * + * 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 boolean force_; + + /** + * + * + *
+     * Optional. If set to true, the catalog template's children are also deleted.
+     * If false, the catalog template is only deleted if it has no children.
+     * 
+ * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + /** + * + * + *
+     * Optional. If set to true, the catalog template's children are also deleted.
+     * If false, the catalog template is only deleted if it has no children.
+     * 
+ * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The force to set. + * @return This builder for chaining. + */ + public Builder setForce(boolean value) { + + force_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. If set to true, the catalog template's children are also deleted.
+     * If false, the catalog template is only deleted if it has no children.
+     * 
+ * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearForce() { + bitField0_ = (bitField0_ & ~0x00000002); + force_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.DeleteCatalogTemplateRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.DeleteCatalogTemplateRequest) + private static final com.google.cloud.designcenter.v1.DeleteCatalogTemplateRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.DeleteCatalogTemplateRequest(); + } + + public static com.google.cloud.designcenter.v1.DeleteCatalogTemplateRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteCatalogTemplateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.DeleteCatalogTemplateRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteCatalogTemplateRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteCatalogTemplateRequestOrBuilder.java new file mode 100644 index 000000000000..66f1d944a0b5 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteCatalogTemplateRequestOrBuilder.java @@ -0,0 +1,76 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/catalog_management_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface DeleteCatalogTemplateRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.DeleteCatalogTemplateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The catalog template name.
+   * Format:
+   * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The catalog template name.
+   * Format:
+   * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. If set to true, the catalog template's children are also deleted.
+   * If false, the catalog template is only deleted if it has no children.
+   * 
+ * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + boolean getForce(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteCatalogTemplateRevisionRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteCatalogTemplateRevisionRequest.java new file mode 100644 index 000000000000..d3fe87203175 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteCatalogTemplateRevisionRequest.java @@ -0,0 +1,623 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/catalog_management_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for deleting a template revision.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.DeleteCatalogTemplateRevisionRequest} + */ +@com.google.protobuf.Generated +public final class DeleteCatalogTemplateRevisionRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.DeleteCatalogTemplateRevisionRequest) + DeleteCatalogTemplateRevisionRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DeleteCatalogTemplateRevisionRequest"); + } + + // Use DeleteCatalogTemplateRevisionRequest.newBuilder() to construct. + private DeleteCatalogTemplateRevisionRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteCatalogTemplateRevisionRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_DeleteCatalogTemplateRevisionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_DeleteCatalogTemplateRevisionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.DeleteCatalogTemplateRevisionRequest.class, + com.google.cloud.designcenter.v1.DeleteCatalogTemplateRevisionRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The template revision name.
+   * 
+ * + * + * 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 template revision name.
+   * 
+ * + * + * 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.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.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.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.designcenter.v1.DeleteCatalogTemplateRevisionRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.DeleteCatalogTemplateRevisionRequest other = + (com.google.cloud.designcenter.v1.DeleteCatalogTemplateRevisionRequest) 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.designcenter.v1.DeleteCatalogTemplateRevisionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeleteCatalogTemplateRevisionRequest 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.designcenter.v1.DeleteCatalogTemplateRevisionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeleteCatalogTemplateRevisionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeleteCatalogTemplateRevisionRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeleteCatalogTemplateRevisionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeleteCatalogTemplateRevisionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeleteCatalogTemplateRevisionRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeleteCatalogTemplateRevisionRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeleteCatalogTemplateRevisionRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeleteCatalogTemplateRevisionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeleteCatalogTemplateRevisionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.DeleteCatalogTemplateRevisionRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for deleting a template revision.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.DeleteCatalogTemplateRevisionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.DeleteCatalogTemplateRevisionRequest) + com.google.cloud.designcenter.v1.DeleteCatalogTemplateRevisionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_DeleteCatalogTemplateRevisionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_DeleteCatalogTemplateRevisionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.DeleteCatalogTemplateRevisionRequest.class, + com.google.cloud.designcenter.v1.DeleteCatalogTemplateRevisionRequest.Builder.class); + } + + // Construct using + // com.google.cloud.designcenter.v1.DeleteCatalogTemplateRevisionRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.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.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_DeleteCatalogTemplateRevisionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeleteCatalogTemplateRevisionRequest + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.DeleteCatalogTemplateRevisionRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeleteCatalogTemplateRevisionRequest build() { + com.google.cloud.designcenter.v1.DeleteCatalogTemplateRevisionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeleteCatalogTemplateRevisionRequest buildPartial() { + com.google.cloud.designcenter.v1.DeleteCatalogTemplateRevisionRequest result = + new com.google.cloud.designcenter.v1.DeleteCatalogTemplateRevisionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.DeleteCatalogTemplateRevisionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.DeleteCatalogTemplateRevisionRequest) { + return mergeFrom( + (com.google.cloud.designcenter.v1.DeleteCatalogTemplateRevisionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.designcenter.v1.DeleteCatalogTemplateRevisionRequest other) { + if (other + == com.google.cloud.designcenter.v1.DeleteCatalogTemplateRevisionRequest + .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 template revision name.
+     * 
+ * + * + * 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 template revision name.
+     * 
+ * + * + * 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 template revision name.
+     * 
+ * + * + * 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 template revision name.
+     * 
+ * + * + * 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 template revision name.
+     * 
+ * + * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.DeleteCatalogTemplateRevisionRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.DeleteCatalogTemplateRevisionRequest) + private static final com.google.cloud.designcenter.v1.DeleteCatalogTemplateRevisionRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.DeleteCatalogTemplateRevisionRequest(); + } + + public static com.google.cloud.designcenter.v1.DeleteCatalogTemplateRevisionRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteCatalogTemplateRevisionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.DeleteCatalogTemplateRevisionRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteCatalogTemplateRevisionRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteCatalogTemplateRevisionRequestOrBuilder.java new file mode 100644 index 000000000000..5bee7cd7bbeb --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteCatalogTemplateRevisionRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/catalog_management_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface DeleteCatalogTemplateRevisionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.DeleteCatalogTemplateRevisionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The template revision name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The template revision name.
+   * 
+ * + * + * 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-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteComponentRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteComponentRequest.java new file mode 100644 index 000000000000..8b98f2a54246 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteComponentRequest.java @@ -0,0 +1,712 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for deleting a component.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.DeleteComponentRequest} + */ +@com.google.protobuf.Generated +public final class DeleteComponentRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.DeleteComponentRequest) + DeleteComponentRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DeleteComponentRequest"); + } + + // Use DeleteComponentRequest.newBuilder() to construct. + private DeleteComponentRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteComponentRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_DeleteComponentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_DeleteComponentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.DeleteComponentRequest.class, + com.google.cloud.designcenter.v1.DeleteComponentRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The component name.
+   * 
+ * + * + * 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 component name.
+   * 
+ * + * + * 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 FORCE_FIELD_NUMBER = 2; + private boolean force_ = false; + + /** + * + * + *
+   * Optional. If set to true, the component's children are also deleted. If
+   * false, the component is only deleted if it has no children.
+   * 
+ * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (force_ != false) { + output.writeBool(2, force_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (force_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, force_); + } + 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.designcenter.v1.DeleteComponentRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.DeleteComponentRequest other = + (com.google.cloud.designcenter.v1.DeleteComponentRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (getForce() != other.getForce()) 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) + FORCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.DeleteComponentRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeleteComponentRequest 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.designcenter.v1.DeleteComponentRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeleteComponentRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeleteComponentRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeleteComponentRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeleteComponentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeleteComponentRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeleteComponentRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeleteComponentRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeleteComponentRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeleteComponentRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.DeleteComponentRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for deleting a component.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.DeleteComponentRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.DeleteComponentRequest) + com.google.cloud.designcenter.v1.DeleteComponentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_DeleteComponentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_DeleteComponentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.DeleteComponentRequest.class, + com.google.cloud.designcenter.v1.DeleteComponentRequest.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.DeleteComponentRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + force_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_DeleteComponentRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeleteComponentRequest getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.DeleteComponentRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeleteComponentRequest build() { + com.google.cloud.designcenter.v1.DeleteComponentRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeleteComponentRequest buildPartial() { + com.google.cloud.designcenter.v1.DeleteComponentRequest result = + new com.google.cloud.designcenter.v1.DeleteComponentRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.DeleteComponentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.force_ = force_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.DeleteComponentRequest) { + return mergeFrom((com.google.cloud.designcenter.v1.DeleteComponentRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.DeleteComponentRequest other) { + if (other == com.google.cloud.designcenter.v1.DeleteComponentRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getForce() != false) { + setForce(other.getForce()); + } + 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: + { + force_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The component name.
+     * 
+ * + * + * 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 component name.
+     * 
+ * + * + * 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 component name.
+     * 
+ * + * + * 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 component name.
+     * 
+ * + * + * 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 component name.
+     * 
+ * + * + * 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 boolean force_; + + /** + * + * + *
+     * Optional. If set to true, the component's children are also deleted. If
+     * false, the component is only deleted if it has no children.
+     * 
+ * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + /** + * + * + *
+     * Optional. If set to true, the component's children are also deleted. If
+     * false, the component is only deleted if it has no children.
+     * 
+ * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The force to set. + * @return This builder for chaining. + */ + public Builder setForce(boolean value) { + + force_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. If set to true, the component's children are also deleted. If
+     * false, the component is only deleted if it has no children.
+     * 
+ * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearForce() { + bitField0_ = (bitField0_ & ~0x00000002); + force_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.DeleteComponentRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.DeleteComponentRequest) + private static final com.google.cloud.designcenter.v1.DeleteComponentRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.DeleteComponentRequest(); + } + + public static com.google.cloud.designcenter.v1.DeleteComponentRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteComponentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.DeleteComponentRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteComponentRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteComponentRequestOrBuilder.java new file mode 100644 index 000000000000..3dfc7d7ed9ec --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteComponentRequestOrBuilder.java @@ -0,0 +1,72 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface DeleteComponentRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.DeleteComponentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The component name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The component name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. If set to true, the component's children are also deleted. If
+   * false, the component is only deleted if it has no children.
+   * 
+ * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + boolean getForce(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteConnectionRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteConnectionRequest.java new file mode 100644 index 000000000000..9ecfd2e5f04e --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteConnectionRequest.java @@ -0,0 +1,611 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for deleting a connection.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.DeleteConnectionRequest} + */ +@com.google.protobuf.Generated +public final class DeleteConnectionRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.DeleteConnectionRequest) + DeleteConnectionRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DeleteConnectionRequest"); + } + + // Use DeleteConnectionRequest.newBuilder() to construct. + private DeleteConnectionRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteConnectionRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_DeleteConnectionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_DeleteConnectionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.DeleteConnectionRequest.class, + com.google.cloud.designcenter.v1.DeleteConnectionRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The connection name.
+   * 
+ * + * + * 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 connection name.
+   * 
+ * + * + * 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.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.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.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.designcenter.v1.DeleteConnectionRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.DeleteConnectionRequest other = + (com.google.cloud.designcenter.v1.DeleteConnectionRequest) 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.designcenter.v1.DeleteConnectionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeleteConnectionRequest 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.designcenter.v1.DeleteConnectionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeleteConnectionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeleteConnectionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeleteConnectionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeleteConnectionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeleteConnectionRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeleteConnectionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeleteConnectionRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeleteConnectionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeleteConnectionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.DeleteConnectionRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for deleting a connection.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.DeleteConnectionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.DeleteConnectionRequest) + com.google.cloud.designcenter.v1.DeleteConnectionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_DeleteConnectionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_DeleteConnectionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.DeleteConnectionRequest.class, + com.google.cloud.designcenter.v1.DeleteConnectionRequest.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.DeleteConnectionRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.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.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_DeleteConnectionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeleteConnectionRequest getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.DeleteConnectionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeleteConnectionRequest build() { + com.google.cloud.designcenter.v1.DeleteConnectionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeleteConnectionRequest buildPartial() { + com.google.cloud.designcenter.v1.DeleteConnectionRequest result = + new com.google.cloud.designcenter.v1.DeleteConnectionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.DeleteConnectionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.DeleteConnectionRequest) { + return mergeFrom((com.google.cloud.designcenter.v1.DeleteConnectionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.DeleteConnectionRequest other) { + if (other == com.google.cloud.designcenter.v1.DeleteConnectionRequest.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 connection name.
+     * 
+ * + * + * 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 connection name.
+     * 
+ * + * + * 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 connection name.
+     * 
+ * + * + * 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 connection name.
+     * 
+ * + * + * 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 connection name.
+     * 
+ * + * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.DeleteConnectionRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.DeleteConnectionRequest) + private static final com.google.cloud.designcenter.v1.DeleteConnectionRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.DeleteConnectionRequest(); + } + + public static com.google.cloud.designcenter.v1.DeleteConnectionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteConnectionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.DeleteConnectionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteConnectionRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteConnectionRequestOrBuilder.java new file mode 100644 index 000000000000..1757d9f5b1ad --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteConnectionRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface DeleteConnectionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.DeleteConnectionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The connection name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The connection name.
+   * 
+ * + * + * 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-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeletePolicyRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeletePolicyRequest.java new file mode 100644 index 000000000000..76630264c292 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeletePolicyRequest.java @@ -0,0 +1,617 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/best_practices_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for deleting a policy.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.DeletePolicyRequest} + */ +@com.google.protobuf.Generated +public final class DeletePolicyRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.DeletePolicyRequest) + DeletePolicyRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DeletePolicyRequest"); + } + + // Use DeletePolicyRequest.newBuilder() to construct. + private DeletePolicyRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeletePolicyRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_DeletePolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_DeletePolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.DeletePolicyRequest.class, + com.google.cloud.designcenter.v1.DeletePolicyRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The policy name in the following format:
+   * `projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate/policies/$policy`
+   * 
+ * + * + * 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 policy name in the following format:
+   * `projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate/policies/$policy`
+   * 
+ * + * + * 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.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.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.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.designcenter.v1.DeletePolicyRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.DeletePolicyRequest other = + (com.google.cloud.designcenter.v1.DeletePolicyRequest) 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.designcenter.v1.DeletePolicyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeletePolicyRequest 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.designcenter.v1.DeletePolicyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeletePolicyRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeletePolicyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeletePolicyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeletePolicyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeletePolicyRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeletePolicyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeletePolicyRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeletePolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeletePolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.DeletePolicyRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for deleting a policy.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.DeletePolicyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.DeletePolicyRequest) + com.google.cloud.designcenter.v1.DeletePolicyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_DeletePolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_DeletePolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.DeletePolicyRequest.class, + com.google.cloud.designcenter.v1.DeletePolicyRequest.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.DeletePolicyRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.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.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_DeletePolicyRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeletePolicyRequest getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.DeletePolicyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeletePolicyRequest build() { + com.google.cloud.designcenter.v1.DeletePolicyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeletePolicyRequest buildPartial() { + com.google.cloud.designcenter.v1.DeletePolicyRequest result = + new com.google.cloud.designcenter.v1.DeletePolicyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.DeletePolicyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.DeletePolicyRequest) { + return mergeFrom((com.google.cloud.designcenter.v1.DeletePolicyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.DeletePolicyRequest other) { + if (other == com.google.cloud.designcenter.v1.DeletePolicyRequest.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 policy name in the following format:
+     * `projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate/policies/$policy`
+     * 
+ * + * + * 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 policy name in the following format:
+     * `projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate/policies/$policy`
+     * 
+ * + * + * 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 policy name in the following format:
+     * `projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate/policies/$policy`
+     * 
+ * + * + * 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 policy name in the following format:
+     * `projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate/policies/$policy`
+     * 
+ * + * + * 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 policy name in the following format:
+     * `projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate/policies/$policy`
+     * 
+ * + * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.DeletePolicyRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.DeletePolicyRequest) + private static final com.google.cloud.designcenter.v1.DeletePolicyRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.DeletePolicyRequest(); + } + + public static com.google.cloud.designcenter.v1.DeletePolicyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeletePolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.DeletePolicyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeletePolicyRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeletePolicyRequestOrBuilder.java new file mode 100644 index 000000000000..79069b00827f --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeletePolicyRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/best_practices_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface DeletePolicyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.DeletePolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The policy name in the following format:
+   * `projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate/policies/$policy`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The policy name in the following format:
+   * `projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate/policies/$policy`
+   * 
+ * + * + * 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-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteShareRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteShareRequest.java new file mode 100644 index 000000000000..5b4716c0c325 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteShareRequest.java @@ -0,0 +1,617 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/sharing_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for deleting a share of a catalog.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.DeleteShareRequest} + */ +@com.google.protobuf.Generated +public final class DeleteShareRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.DeleteShareRequest) + DeleteShareRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DeleteShareRequest"); + } + + // Use DeleteShareRequest.newBuilder() to construct. + private DeleteShareRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteShareRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_DeleteShareRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_DeleteShareRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.DeleteShareRequest.class, + com.google.cloud.designcenter.v1.DeleteShareRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The share name in the following format:
+   * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/shares/$share`
+   * 
+ * + * + * 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 share name in the following format:
+   * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/shares/$share`
+   * 
+ * + * + * 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.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.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.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.designcenter.v1.DeleteShareRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.DeleteShareRequest other = + (com.google.cloud.designcenter.v1.DeleteShareRequest) 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.designcenter.v1.DeleteShareRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeleteShareRequest 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.designcenter.v1.DeleteShareRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeleteShareRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeleteShareRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeleteShareRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeleteShareRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeleteShareRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeleteShareRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeleteShareRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeleteShareRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeleteShareRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.DeleteShareRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for deleting a share of a catalog.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.DeleteShareRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.DeleteShareRequest) + com.google.cloud.designcenter.v1.DeleteShareRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_DeleteShareRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_DeleteShareRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.DeleteShareRequest.class, + com.google.cloud.designcenter.v1.DeleteShareRequest.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.DeleteShareRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.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.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_DeleteShareRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeleteShareRequest getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.DeleteShareRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeleteShareRequest build() { + com.google.cloud.designcenter.v1.DeleteShareRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeleteShareRequest buildPartial() { + com.google.cloud.designcenter.v1.DeleteShareRequest result = + new com.google.cloud.designcenter.v1.DeleteShareRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.DeleteShareRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.DeleteShareRequest) { + return mergeFrom((com.google.cloud.designcenter.v1.DeleteShareRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.DeleteShareRequest other) { + if (other == com.google.cloud.designcenter.v1.DeleteShareRequest.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 share name in the following format:
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/shares/$share`
+     * 
+ * + * + * 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 share name in the following format:
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/shares/$share`
+     * 
+ * + * + * 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 share name in the following format:
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/shares/$share`
+     * 
+ * + * + * 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 share name in the following format:
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/shares/$share`
+     * 
+ * + * + * 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 share name in the following format:
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/shares/$share`
+     * 
+ * + * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.DeleteShareRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.DeleteShareRequest) + private static final com.google.cloud.designcenter.v1.DeleteShareRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.DeleteShareRequest(); + } + + public static com.google.cloud.designcenter.v1.DeleteShareRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteShareRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.DeleteShareRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteShareRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteShareRequestOrBuilder.java new file mode 100644 index 000000000000..df21e58b29dc --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteShareRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/sharing_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface DeleteShareRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.DeleteShareRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The share name in the following format:
+   * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/shares/$share`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The share name in the following format:
+   * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/shares/$share`
+   * 
+ * + * + * 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-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteSpaceRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteSpaceRequest.java new file mode 100644 index 000000000000..26a4744185be --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteSpaceRequest.java @@ -0,0 +1,711 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/catalog_management_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for deleting a space.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.DeleteSpaceRequest} + */ +@com.google.protobuf.Generated +public final class DeleteSpaceRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.DeleteSpaceRequest) + DeleteSpaceRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DeleteSpaceRequest"); + } + + // Use DeleteSpaceRequest.newBuilder() to construct. + private DeleteSpaceRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteSpaceRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_DeleteSpaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_DeleteSpaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.DeleteSpaceRequest.class, + com.google.cloud.designcenter.v1.DeleteSpaceRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The space name.
+   * 
+ * + * + * 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 space name.
+   * 
+ * + * + * 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 FORCE_FIELD_NUMBER = 2; + private boolean force_ = false; + + /** + * + * + *
+   * Optional. If set to true, the space's children are also deleted. If false,
+   * the space is only deleted if it has no children.
+   * 
+ * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (force_ != false) { + output.writeBool(2, force_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (force_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, force_); + } + 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.designcenter.v1.DeleteSpaceRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.DeleteSpaceRequest other = + (com.google.cloud.designcenter.v1.DeleteSpaceRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (getForce() != other.getForce()) 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) + FORCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.DeleteSpaceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeleteSpaceRequest 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.designcenter.v1.DeleteSpaceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeleteSpaceRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeleteSpaceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeleteSpaceRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeleteSpaceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeleteSpaceRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeleteSpaceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeleteSpaceRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeleteSpaceRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeleteSpaceRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.DeleteSpaceRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for deleting a space.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.DeleteSpaceRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.DeleteSpaceRequest) + com.google.cloud.designcenter.v1.DeleteSpaceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_DeleteSpaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_DeleteSpaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.DeleteSpaceRequest.class, + com.google.cloud.designcenter.v1.DeleteSpaceRequest.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.DeleteSpaceRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + force_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_DeleteSpaceRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeleteSpaceRequest getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.DeleteSpaceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeleteSpaceRequest build() { + com.google.cloud.designcenter.v1.DeleteSpaceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeleteSpaceRequest buildPartial() { + com.google.cloud.designcenter.v1.DeleteSpaceRequest result = + new com.google.cloud.designcenter.v1.DeleteSpaceRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.DeleteSpaceRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.force_ = force_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.DeleteSpaceRequest) { + return mergeFrom((com.google.cloud.designcenter.v1.DeleteSpaceRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.DeleteSpaceRequest other) { + if (other == com.google.cloud.designcenter.v1.DeleteSpaceRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getForce() != false) { + setForce(other.getForce()); + } + 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: + { + force_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The space name.
+     * 
+ * + * + * 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 space name.
+     * 
+ * + * + * 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 space name.
+     * 
+ * + * + * 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 space name.
+     * 
+ * + * + * 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 space name.
+     * 
+ * + * + * 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 boolean force_; + + /** + * + * + *
+     * Optional. If set to true, the space's children are also deleted. If false,
+     * the space is only deleted if it has no children.
+     * 
+ * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + /** + * + * + *
+     * Optional. If set to true, the space's children are also deleted. If false,
+     * the space is only deleted if it has no children.
+     * 
+ * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The force to set. + * @return This builder for chaining. + */ + public Builder setForce(boolean value) { + + force_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. If set to true, the space's children are also deleted. If false,
+     * the space is only deleted if it has no children.
+     * 
+ * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearForce() { + bitField0_ = (bitField0_ & ~0x00000002); + force_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.DeleteSpaceRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.DeleteSpaceRequest) + private static final com.google.cloud.designcenter.v1.DeleteSpaceRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.DeleteSpaceRequest(); + } + + public static com.google.cloud.designcenter.v1.DeleteSpaceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteSpaceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.DeleteSpaceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteSpaceRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteSpaceRequestOrBuilder.java new file mode 100644 index 000000000000..7ae457a9dfa2 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeleteSpaceRequestOrBuilder.java @@ -0,0 +1,72 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/catalog_management_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface DeleteSpaceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.DeleteSpaceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The space name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The space name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. If set to true, the space's children are also deleted. If false,
+   * the space is only deleted if it has no children.
+   * 
+ * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + boolean getForce(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeployApplicationRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeployApplicationRequest.java new file mode 100644 index 000000000000..ca746ddb09c7 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeployApplicationRequest.java @@ -0,0 +1,1338 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for deploying an application.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.DeployApplicationRequest} + */ +@com.google.protobuf.Generated +public final class DeployApplicationRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.DeployApplicationRequest) + DeployApplicationRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DeployApplicationRequest"); + } + + // Use DeployApplicationRequest.newBuilder() to construct. + private DeployApplicationRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeployApplicationRequest() { + name_ = ""; + workerPool_ = ""; + serviceAccount_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_DeployApplicationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_DeployApplicationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.DeployApplicationRequest.class, + com.google.cloud.designcenter.v1.DeployApplicationRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The application name.
+   * Format:
+   * `projects/$project/locations/$location/spaces/$space/applications/$application`
+   * 
+ * + * + * 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 application name.
+   * Format:
+   * `projects/$project/locations/$location/spaces/$space/applications/$application`
+   * 
+ * + * + * 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 REPLACE_FIELD_NUMBER = 2; + private boolean replace_ = false; + + /** + * + * + *
+   * Optional. Flag to update the existing deployment. If not set or false,
+   * deploy will fail if application `state` is in the `DEPLOYED` state.
+   * 
+ * + * bool replace = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The replace. + */ + @java.lang.Override + public boolean getReplace() { + return replace_; + } + + public static final int WORKER_POOL_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object workerPool_ = ""; + + /** + * + * + *
+   * Optional. The user-specified Worker Pool resource in which the Cloud Build
+   * job will execute. Format:
+   * projects/{project}/locations/{location}/workerPools/{workerPoolId} If this
+   * flag is omitted, the worker pool already defined on the application will be
+   * used. If no worker pool is defined on the application, the default Cloud
+   * Build worker pool is used. The worker pool must exist in the same region as
+   * the application.
+   * 
+ * + * string worker_pool = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The workerPool. + */ + @java.lang.Override + public java.lang.String getWorkerPool() { + java.lang.Object ref = workerPool_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workerPool_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The user-specified Worker Pool resource in which the Cloud Build
+   * job will execute. Format:
+   * projects/{project}/locations/{location}/workerPools/{workerPoolId} If this
+   * flag is omitted, the worker pool already defined on the application will be
+   * used. If no worker pool is defined on the application, the default Cloud
+   * Build worker pool is used. The worker pool must exist in the same region as
+   * the application.
+   * 
+ * + * string worker_pool = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for workerPool. + */ + @java.lang.Override + public com.google.protobuf.ByteString getWorkerPoolBytes() { + java.lang.Object ref = workerPool_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + workerPool_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object serviceAccount_ = ""; + + /** + * + * + *
+   * Optional. The email address of the service account to use for this
+   * deployment.
+   *
+   * - If provided, this service account will be used to execute the deployment
+   * process, taking precedence over any service_account specified on the
+   * Application resource.
+   * - The caller must have the 'iam.serviceAccounts.actAs' permission on this
+   * service account.
+   * - If this field is omitted, the system will use the 'service_account'
+   * defined within the Application resource.
+   * - We recommend that you provide a service account here or on the
+   * Application resource. If you don't provide a service account, the
+   * deployment will fail.
+   * Format: projects/{PROJECT}/serviceAccounts/{EMAIL_ADDRESS}
+   * 
+ * + * string service_account = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The serviceAccount. + */ + @java.lang.Override + public java.lang.String getServiceAccount() { + java.lang.Object ref = serviceAccount_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccount_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The email address of the service account to use for this
+   * deployment.
+   *
+   * - If provided, this service account will be used to execute the deployment
+   * process, taking precedence over any service_account specified on the
+   * Application resource.
+   * - The caller must have the 'iam.serviceAccounts.actAs' permission on this
+   * service account.
+   * - If this field is omitted, the system will use the 'service_account'
+   * defined within the Application resource.
+   * - We recommend that you provide a service account here or on the
+   * Application resource. If you don't provide a service account, the
+   * deployment will fail.
+   * Format: projects/{PROJECT}/serviceAccounts/{EMAIL_ADDRESS}
+   * 
+ * + * string service_account = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for serviceAccount. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServiceAccountBytes() { + java.lang.Object ref = serviceAccount_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 6; + private boolean validateOnly_ = false; + + /** + * + * + *
+   * Optional. If set to true, the request is validated, but no actual
+   * deployment will occur. See https://google.aip.dev/163 for more details.
+   * 
+ * + * bool validate_only = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (replace_ != false) { + output.writeBool(2, replace_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workerPool_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, workerPool_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(serviceAccount_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, serviceAccount_); + } + if (validateOnly_ != false) { + output.writeBool(6, validateOnly_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (replace_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, replace_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workerPool_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, workerPool_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(serviceAccount_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, serviceAccount_); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, validateOnly_); + } + 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.designcenter.v1.DeployApplicationRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.DeployApplicationRequest other = + (com.google.cloud.designcenter.v1.DeployApplicationRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (getReplace() != other.getReplace()) return false; + if (!getWorkerPool().equals(other.getWorkerPool())) return false; + if (!getServiceAccount().equals(other.getServiceAccount())) return false; + if (getValidateOnly() != other.getValidateOnly()) 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) + REPLACE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReplace()); + hash = (37 * hash) + WORKER_POOL_FIELD_NUMBER; + hash = (53 * hash) + getWorkerPool().hashCode(); + hash = (37 * hash) + SERVICE_ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getServiceAccount().hashCode(); + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.DeployApplicationRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeployApplicationRequest 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.designcenter.v1.DeployApplicationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeployApplicationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeployApplicationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeployApplicationRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeployApplicationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeployApplicationRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeployApplicationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeployApplicationRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeployApplicationRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeployApplicationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.DeployApplicationRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for deploying an application.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.DeployApplicationRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.DeployApplicationRequest) + com.google.cloud.designcenter.v1.DeployApplicationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_DeployApplicationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_DeployApplicationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.DeployApplicationRequest.class, + com.google.cloud.designcenter.v1.DeployApplicationRequest.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.DeployApplicationRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + replace_ = false; + workerPool_ = ""; + serviceAccount_ = ""; + validateOnly_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_DeployApplicationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeployApplicationRequest getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.DeployApplicationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeployApplicationRequest build() { + com.google.cloud.designcenter.v1.DeployApplicationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeployApplicationRequest buildPartial() { + com.google.cloud.designcenter.v1.DeployApplicationRequest result = + new com.google.cloud.designcenter.v1.DeployApplicationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.DeployApplicationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.replace_ = replace_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.workerPool_ = workerPool_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.serviceAccount_ = serviceAccount_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.validateOnly_ = validateOnly_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.DeployApplicationRequest) { + return mergeFrom((com.google.cloud.designcenter.v1.DeployApplicationRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.DeployApplicationRequest other) { + if (other == com.google.cloud.designcenter.v1.DeployApplicationRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getReplace() != false) { + setReplace(other.getReplace()); + } + if (!other.getWorkerPool().isEmpty()) { + workerPool_ = other.workerPool_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getServiceAccount().isEmpty()) { + serviceAccount_ = other.serviceAccount_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } + 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: + { + replace_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 34: + { + workerPool_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 42: + { + serviceAccount_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 48: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 48 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The application name.
+     * Format:
+     * `projects/$project/locations/$location/spaces/$space/applications/$application`
+     * 
+ * + * + * 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 application name.
+     * Format:
+     * `projects/$project/locations/$location/spaces/$space/applications/$application`
+     * 
+ * + * + * 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 application name.
+     * Format:
+     * `projects/$project/locations/$location/spaces/$space/applications/$application`
+     * 
+ * + * + * 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 application name.
+     * Format:
+     * `projects/$project/locations/$location/spaces/$space/applications/$application`
+     * 
+ * + * + * 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 application name.
+     * Format:
+     * `projects/$project/locations/$location/spaces/$space/applications/$application`
+     * 
+ * + * + * 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 boolean replace_; + + /** + * + * + *
+     * Optional. Flag to update the existing deployment. If not set or false,
+     * deploy will fail if application `state` is in the `DEPLOYED` state.
+     * 
+ * + * bool replace = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The replace. + */ + @java.lang.Override + public boolean getReplace() { + return replace_; + } + + /** + * + * + *
+     * Optional. Flag to update the existing deployment. If not set or false,
+     * deploy will fail if application `state` is in the `DEPLOYED` state.
+     * 
+ * + * bool replace = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The replace to set. + * @return This builder for chaining. + */ + public Builder setReplace(boolean value) { + + replace_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Flag to update the existing deployment. If not set or false,
+     * deploy will fail if application `state` is in the `DEPLOYED` state.
+     * 
+ * + * bool replace = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearReplace() { + bitField0_ = (bitField0_ & ~0x00000002); + replace_ = false; + onChanged(); + return this; + } + + private java.lang.Object workerPool_ = ""; + + /** + * + * + *
+     * Optional. The user-specified Worker Pool resource in which the Cloud Build
+     * job will execute. Format:
+     * projects/{project}/locations/{location}/workerPools/{workerPoolId} If this
+     * flag is omitted, the worker pool already defined on the application will be
+     * used. If no worker pool is defined on the application, the default Cloud
+     * Build worker pool is used. The worker pool must exist in the same region as
+     * the application.
+     * 
+ * + * string worker_pool = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The workerPool. + */ + public java.lang.String getWorkerPool() { + java.lang.Object ref = workerPool_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workerPool_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The user-specified Worker Pool resource in which the Cloud Build
+     * job will execute. Format:
+     * projects/{project}/locations/{location}/workerPools/{workerPoolId} If this
+     * flag is omitted, the worker pool already defined on the application will be
+     * used. If no worker pool is defined on the application, the default Cloud
+     * Build worker pool is used. The worker pool must exist in the same region as
+     * the application.
+     * 
+ * + * string worker_pool = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for workerPool. + */ + public com.google.protobuf.ByteString getWorkerPoolBytes() { + java.lang.Object ref = workerPool_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + workerPool_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The user-specified Worker Pool resource in which the Cloud Build
+     * job will execute. Format:
+     * projects/{project}/locations/{location}/workerPools/{workerPoolId} If this
+     * flag is omitted, the worker pool already defined on the application will be
+     * used. If no worker pool is defined on the application, the default Cloud
+     * Build worker pool is used. The worker pool must exist in the same region as
+     * the application.
+     * 
+ * + * string worker_pool = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The workerPool to set. + * @return This builder for chaining. + */ + public Builder setWorkerPool(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + workerPool_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The user-specified Worker Pool resource in which the Cloud Build
+     * job will execute. Format:
+     * projects/{project}/locations/{location}/workerPools/{workerPoolId} If this
+     * flag is omitted, the worker pool already defined on the application will be
+     * used. If no worker pool is defined on the application, the default Cloud
+     * Build worker pool is used. The worker pool must exist in the same region as
+     * the application.
+     * 
+ * + * string worker_pool = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearWorkerPool() { + workerPool_ = getDefaultInstance().getWorkerPool(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The user-specified Worker Pool resource in which the Cloud Build
+     * job will execute. Format:
+     * projects/{project}/locations/{location}/workerPools/{workerPoolId} If this
+     * flag is omitted, the worker pool already defined on the application will be
+     * used. If no worker pool is defined on the application, the default Cloud
+     * Build worker pool is used. The worker pool must exist in the same region as
+     * the application.
+     * 
+ * + * string worker_pool = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for workerPool to set. + * @return This builder for chaining. + */ + public Builder setWorkerPoolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + workerPool_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object serviceAccount_ = ""; + + /** + * + * + *
+     * Optional. The email address of the service account to use for this
+     * deployment.
+     *
+     * - If provided, this service account will be used to execute the deployment
+     * process, taking precedence over any service_account specified on the
+     * Application resource.
+     * - The caller must have the 'iam.serviceAccounts.actAs' permission on this
+     * service account.
+     * - If this field is omitted, the system will use the 'service_account'
+     * defined within the Application resource.
+     * - We recommend that you provide a service account here or on the
+     * Application resource. If you don't provide a service account, the
+     * deployment will fail.
+     * Format: projects/{PROJECT}/serviceAccounts/{EMAIL_ADDRESS}
+     * 
+ * + * string service_account = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The serviceAccount. + */ + public java.lang.String getServiceAccount() { + java.lang.Object ref = serviceAccount_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccount_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The email address of the service account to use for this
+     * deployment.
+     *
+     * - If provided, this service account will be used to execute the deployment
+     * process, taking precedence over any service_account specified on the
+     * Application resource.
+     * - The caller must have the 'iam.serviceAccounts.actAs' permission on this
+     * service account.
+     * - If this field is omitted, the system will use the 'service_account'
+     * defined within the Application resource.
+     * - We recommend that you provide a service account here or on the
+     * Application resource. If you don't provide a service account, the
+     * deployment will fail.
+     * Format: projects/{PROJECT}/serviceAccounts/{EMAIL_ADDRESS}
+     * 
+ * + * string service_account = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for serviceAccount. + */ + public com.google.protobuf.ByteString getServiceAccountBytes() { + java.lang.Object ref = serviceAccount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The email address of the service account to use for this
+     * deployment.
+     *
+     * - If provided, this service account will be used to execute the deployment
+     * process, taking precedence over any service_account specified on the
+     * Application resource.
+     * - The caller must have the 'iam.serviceAccounts.actAs' permission on this
+     * service account.
+     * - If this field is omitted, the system will use the 'service_account'
+     * defined within the Application resource.
+     * - We recommend that you provide a service account here or on the
+     * Application resource. If you don't provide a service account, the
+     * deployment will fail.
+     * Format: projects/{PROJECT}/serviceAccounts/{EMAIL_ADDRESS}
+     * 
+ * + * string service_account = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The serviceAccount to set. + * @return This builder for chaining. + */ + public Builder setServiceAccount(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + serviceAccount_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The email address of the service account to use for this
+     * deployment.
+     *
+     * - If provided, this service account will be used to execute the deployment
+     * process, taking precedence over any service_account specified on the
+     * Application resource.
+     * - The caller must have the 'iam.serviceAccounts.actAs' permission on this
+     * service account.
+     * - If this field is omitted, the system will use the 'service_account'
+     * defined within the Application resource.
+     * - We recommend that you provide a service account here or on the
+     * Application resource. If you don't provide a service account, the
+     * deployment will fail.
+     * Format: projects/{PROJECT}/serviceAccounts/{EMAIL_ADDRESS}
+     * 
+ * + * string service_account = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearServiceAccount() { + serviceAccount_ = getDefaultInstance().getServiceAccount(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The email address of the service account to use for this
+     * deployment.
+     *
+     * - If provided, this service account will be used to execute the deployment
+     * process, taking precedence over any service_account specified on the
+     * Application resource.
+     * - The caller must have the 'iam.serviceAccounts.actAs' permission on this
+     * service account.
+     * - If this field is omitted, the system will use the 'service_account'
+     * defined within the Application resource.
+     * - We recommend that you provide a service account here or on the
+     * Application resource. If you don't provide a service account, the
+     * deployment will fail.
+     * Format: projects/{PROJECT}/serviceAccounts/{EMAIL_ADDRESS}
+     * 
+ * + * string service_account = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for serviceAccount to set. + * @return This builder for chaining. + */ + public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceAccount_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private boolean validateOnly_; + + /** + * + * + *
+     * Optional. If set to true, the request is validated, but no actual
+     * deployment will occur. See https://google.aip.dev/163 for more details.
+     * 
+ * + * bool validate_only = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + /** + * + * + *
+     * Optional. If set to true, the request is validated, but no actual
+     * deployment will occur. See https://google.aip.dev/163 for more details.
+     * 
+ * + * bool validate_only = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The validateOnly to set. + * @return This builder for chaining. + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. If set to true, the request is validated, but no actual
+     * deployment will occur. See https://google.aip.dev/163 for more details.
+     * 
+ * + * bool validate_only = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearValidateOnly() { + bitField0_ = (bitField0_ & ~0x00000010); + validateOnly_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.DeployApplicationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.DeployApplicationRequest) + private static final com.google.cloud.designcenter.v1.DeployApplicationRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.DeployApplicationRequest(); + } + + public static com.google.cloud.designcenter.v1.DeployApplicationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeployApplicationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.DeployApplicationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeployApplicationRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeployApplicationRequestOrBuilder.java new file mode 100644 index 000000000000..db4f3bd68353 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeployApplicationRequestOrBuilder.java @@ -0,0 +1,180 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface DeployApplicationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.DeployApplicationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The application name.
+   * Format:
+   * `projects/$project/locations/$location/spaces/$space/applications/$application`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The application name.
+   * Format:
+   * `projects/$project/locations/$location/spaces/$space/applications/$application`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. Flag to update the existing deployment. If not set or false,
+   * deploy will fail if application `state` is in the `DEPLOYED` state.
+   * 
+ * + * bool replace = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The replace. + */ + boolean getReplace(); + + /** + * + * + *
+   * Optional. The user-specified Worker Pool resource in which the Cloud Build
+   * job will execute. Format:
+   * projects/{project}/locations/{location}/workerPools/{workerPoolId} If this
+   * flag is omitted, the worker pool already defined on the application will be
+   * used. If no worker pool is defined on the application, the default Cloud
+   * Build worker pool is used. The worker pool must exist in the same region as
+   * the application.
+   * 
+ * + * string worker_pool = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The workerPool. + */ + java.lang.String getWorkerPool(); + + /** + * + * + *
+   * Optional. The user-specified Worker Pool resource in which the Cloud Build
+   * job will execute. Format:
+   * projects/{project}/locations/{location}/workerPools/{workerPoolId} If this
+   * flag is omitted, the worker pool already defined on the application will be
+   * used. If no worker pool is defined on the application, the default Cloud
+   * Build worker pool is used. The worker pool must exist in the same region as
+   * the application.
+   * 
+ * + * string worker_pool = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for workerPool. + */ + com.google.protobuf.ByteString getWorkerPoolBytes(); + + /** + * + * + *
+   * Optional. The email address of the service account to use for this
+   * deployment.
+   *
+   * - If provided, this service account will be used to execute the deployment
+   * process, taking precedence over any service_account specified on the
+   * Application resource.
+   * - The caller must have the 'iam.serviceAccounts.actAs' permission on this
+   * service account.
+   * - If this field is omitted, the system will use the 'service_account'
+   * defined within the Application resource.
+   * - We recommend that you provide a service account here or on the
+   * Application resource. If you don't provide a service account, the
+   * deployment will fail.
+   * Format: projects/{PROJECT}/serviceAccounts/{EMAIL_ADDRESS}
+   * 
+ * + * string service_account = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The serviceAccount. + */ + java.lang.String getServiceAccount(); + + /** + * + * + *
+   * Optional. The email address of the service account to use for this
+   * deployment.
+   *
+   * - If provided, this service account will be used to execute the deployment
+   * process, taking precedence over any service_account specified on the
+   * Application resource.
+   * - The caller must have the 'iam.serviceAccounts.actAs' permission on this
+   * service account.
+   * - If this field is omitted, the system will use the 'service_account'
+   * defined within the Application resource.
+   * - We recommend that you provide a service account here or on the
+   * Application resource. If you don't provide a service account, the
+   * deployment will fail.
+   * Format: projects/{PROJECT}/serviceAccounts/{EMAIL_ADDRESS}
+   * 
+ * + * string service_account = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for serviceAccount. + */ + com.google.protobuf.ByteString getServiceAccountBytes(); + + /** + * + * + *
+   * Optional. If set to true, the request is validated, but no actual
+   * deployment will occur. See https://google.aip.dev/163 for more details.
+   * 
+ * + * bool validate_only = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateOnly. + */ + boolean getValidateOnly(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeployApplicationResponse.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeployApplicationResponse.java new file mode 100644 index 000000000000..508d3837f23a --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeployApplicationResponse.java @@ -0,0 +1,1185 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Response for DeployApplication.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.DeployApplicationResponse} + */ +@com.google.protobuf.Generated +public final class DeployApplicationResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.DeployApplicationResponse) + DeployApplicationResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DeployApplicationResponse"); + } + + // Use DeployApplicationResponse.newBuilder() to construct. + private DeployApplicationResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeployApplicationResponse() { + buildId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_DeployApplicationResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_DeployApplicationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.DeployApplicationResponse.class, + com.google.cloud.designcenter.v1.DeployApplicationResponse.Builder.class); + } + + private int bitField0_; + public static final int DEPLOYMENT_FIELD_NUMBER = 1; + private com.google.cloud.config.v1.Deployment deployment_; + + /** + * + * + *
+   * Infrastructure Manager deployment.
+   * 
+ * + * .google.cloud.config.v1.Deployment deployment = 1; + * + * @return Whether the deployment field is set. + */ + @java.lang.Override + public boolean hasDeployment() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Infrastructure Manager deployment.
+   * 
+ * + * .google.cloud.config.v1.Deployment deployment = 1; + * + * @return The deployment. + */ + @java.lang.Override + public com.google.cloud.config.v1.Deployment getDeployment() { + return deployment_ == null + ? com.google.cloud.config.v1.Deployment.getDefaultInstance() + : deployment_; + } + + /** + * + * + *
+   * Infrastructure Manager deployment.
+   * 
+ * + * .google.cloud.config.v1.Deployment deployment = 1; + */ + @java.lang.Override + public com.google.cloud.config.v1.DeploymentOrBuilder getDeploymentOrBuilder() { + return deployment_ == null + ? com.google.cloud.config.v1.Deployment.getDefaultInstance() + : deployment_; + } + + public static final int BUILD_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object buildId_ = ""; + + /** + * + * + *
+   * Cloud Build deployment id.
+   * 
+ * + * string build_id = 2; + * + * @return The buildId. + */ + @java.lang.Override + public java.lang.String getBuildId() { + java.lang.Object ref = buildId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + buildId_ = s; + return s; + } + } + + /** + * + * + *
+   * Cloud Build deployment id.
+   * 
+ * + * string build_id = 2; + * + * @return The bytes for buildId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBuildIdBytes() { + java.lang.Object ref = buildId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + buildId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEPLOYMENT_GROUP_FIELD_NUMBER = 3; + private com.google.cloud.config.v1.DeploymentGroup deploymentGroup_; + + /** + * + * + *
+   * Infrastructure Manager deployment group.
+   * Used for composite application deployment response.
+   * 
+ * + * .google.cloud.config.v1.DeploymentGroup deployment_group = 3; + * + * @return Whether the deploymentGroup field is set. + */ + @java.lang.Override + public boolean hasDeploymentGroup() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Infrastructure Manager deployment group.
+   * Used for composite application deployment response.
+   * 
+ * + * .google.cloud.config.v1.DeploymentGroup deployment_group = 3; + * + * @return The deploymentGroup. + */ + @java.lang.Override + public com.google.cloud.config.v1.DeploymentGroup getDeploymentGroup() { + return deploymentGroup_ == null + ? com.google.cloud.config.v1.DeploymentGroup.getDefaultInstance() + : deploymentGroup_; + } + + /** + * + * + *
+   * Infrastructure Manager deployment group.
+   * Used for composite application deployment response.
+   * 
+ * + * .google.cloud.config.v1.DeploymentGroup deployment_group = 3; + */ + @java.lang.Override + public com.google.cloud.config.v1.DeploymentGroupOrBuilder getDeploymentGroupOrBuilder() { + return deploymentGroup_ == null + ? com.google.cloud.config.v1.DeploymentGroup.getDefaultInstance() + : deploymentGroup_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getDeployment()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(buildId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, buildId_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getDeploymentGroup()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDeployment()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(buildId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, buildId_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDeploymentGroup()); + } + 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.designcenter.v1.DeployApplicationResponse)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.DeployApplicationResponse other = + (com.google.cloud.designcenter.v1.DeployApplicationResponse) obj; + + if (hasDeployment() != other.hasDeployment()) return false; + if (hasDeployment()) { + if (!getDeployment().equals(other.getDeployment())) return false; + } + if (!getBuildId().equals(other.getBuildId())) return false; + if (hasDeploymentGroup() != other.hasDeploymentGroup()) return false; + if (hasDeploymentGroup()) { + if (!getDeploymentGroup().equals(other.getDeploymentGroup())) 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(); + } + hash = (37 * hash) + BUILD_ID_FIELD_NUMBER; + hash = (53 * hash) + getBuildId().hashCode(); + if (hasDeploymentGroup()) { + hash = (37 * hash) + DEPLOYMENT_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getDeploymentGroup().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.DeployApplicationResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeployApplicationResponse 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.designcenter.v1.DeployApplicationResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeployApplicationResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeployApplicationResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeployApplicationResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeployApplicationResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeployApplicationResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeployApplicationResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeployApplicationResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeployApplicationResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeployApplicationResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.DeployApplicationResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response for DeployApplication.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.DeployApplicationResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.DeployApplicationResponse) + com.google.cloud.designcenter.v1.DeployApplicationResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_DeployApplicationResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_DeployApplicationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.DeployApplicationResponse.class, + com.google.cloud.designcenter.v1.DeployApplicationResponse.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.DeployApplicationResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetDeploymentFieldBuilder(); + internalGetDeploymentGroupFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + deployment_ = null; + if (deploymentBuilder_ != null) { + deploymentBuilder_.dispose(); + deploymentBuilder_ = null; + } + buildId_ = ""; + deploymentGroup_ = null; + if (deploymentGroupBuilder_ != null) { + deploymentGroupBuilder_.dispose(); + deploymentGroupBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_DeployApplicationResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeployApplicationResponse getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.DeployApplicationResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeployApplicationResponse build() { + com.google.cloud.designcenter.v1.DeployApplicationResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeployApplicationResponse buildPartial() { + com.google.cloud.designcenter.v1.DeployApplicationResponse result = + new com.google.cloud.designcenter.v1.DeployApplicationResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.DeployApplicationResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.deployment_ = deploymentBuilder_ == null ? deployment_ : deploymentBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.buildId_ = buildId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.deploymentGroup_ = + deploymentGroupBuilder_ == null ? deploymentGroup_ : deploymentGroupBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.DeployApplicationResponse) { + return mergeFrom((com.google.cloud.designcenter.v1.DeployApplicationResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.DeployApplicationResponse other) { + if (other == com.google.cloud.designcenter.v1.DeployApplicationResponse.getDefaultInstance()) + return this; + if (other.hasDeployment()) { + mergeDeployment(other.getDeployment()); + } + if (!other.getBuildId().isEmpty()) { + buildId_ = other.buildId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasDeploymentGroup()) { + mergeDeploymentGroup(other.getDeploymentGroup()); + } + 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( + internalGetDeploymentFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + buildId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetDeploymentGroupFieldBuilder().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 com.google.cloud.config.v1.Deployment deployment_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.config.v1.Deployment, + com.google.cloud.config.v1.Deployment.Builder, + com.google.cloud.config.v1.DeploymentOrBuilder> + deploymentBuilder_; + + /** + * + * + *
+     * Infrastructure Manager deployment.
+     * 
+ * + * .google.cloud.config.v1.Deployment deployment = 1; + * + * @return Whether the deployment field is set. + */ + public boolean hasDeployment() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Infrastructure Manager deployment.
+     * 
+ * + * .google.cloud.config.v1.Deployment deployment = 1; + * + * @return The deployment. + */ + public com.google.cloud.config.v1.Deployment getDeployment() { + if (deploymentBuilder_ == null) { + return deployment_ == null + ? com.google.cloud.config.v1.Deployment.getDefaultInstance() + : deployment_; + } else { + return deploymentBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Infrastructure Manager deployment.
+     * 
+ * + * .google.cloud.config.v1.Deployment deployment = 1; + */ + public Builder setDeployment(com.google.cloud.config.v1.Deployment value) { + if (deploymentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deployment_ = value; + } else { + deploymentBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Infrastructure Manager deployment.
+     * 
+ * + * .google.cloud.config.v1.Deployment deployment = 1; + */ + public Builder setDeployment(com.google.cloud.config.v1.Deployment.Builder builderForValue) { + if (deploymentBuilder_ == null) { + deployment_ = builderForValue.build(); + } else { + deploymentBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Infrastructure Manager deployment.
+     * 
+ * + * .google.cloud.config.v1.Deployment deployment = 1; + */ + public Builder mergeDeployment(com.google.cloud.config.v1.Deployment value) { + if (deploymentBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && deployment_ != null + && deployment_ != com.google.cloud.config.v1.Deployment.getDefaultInstance()) { + getDeploymentBuilder().mergeFrom(value); + } else { + deployment_ = value; + } + } else { + deploymentBuilder_.mergeFrom(value); + } + if (deployment_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Infrastructure Manager deployment.
+     * 
+ * + * .google.cloud.config.v1.Deployment deployment = 1; + */ + public Builder clearDeployment() { + bitField0_ = (bitField0_ & ~0x00000001); + deployment_ = null; + if (deploymentBuilder_ != null) { + deploymentBuilder_.dispose(); + deploymentBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Infrastructure Manager deployment.
+     * 
+ * + * .google.cloud.config.v1.Deployment deployment = 1; + */ + public com.google.cloud.config.v1.Deployment.Builder getDeploymentBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetDeploymentFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Infrastructure Manager deployment.
+     * 
+ * + * .google.cloud.config.v1.Deployment deployment = 1; + */ + public com.google.cloud.config.v1.DeploymentOrBuilder getDeploymentOrBuilder() { + if (deploymentBuilder_ != null) { + return deploymentBuilder_.getMessageOrBuilder(); + } else { + return deployment_ == null + ? com.google.cloud.config.v1.Deployment.getDefaultInstance() + : deployment_; + } + } + + /** + * + * + *
+     * Infrastructure Manager deployment.
+     * 
+ * + * .google.cloud.config.v1.Deployment deployment = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.config.v1.Deployment, + com.google.cloud.config.v1.Deployment.Builder, + com.google.cloud.config.v1.DeploymentOrBuilder> + internalGetDeploymentFieldBuilder() { + if (deploymentBuilder_ == null) { + deploymentBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.config.v1.Deployment, + com.google.cloud.config.v1.Deployment.Builder, + com.google.cloud.config.v1.DeploymentOrBuilder>( + getDeployment(), getParentForChildren(), isClean()); + deployment_ = null; + } + return deploymentBuilder_; + } + + private java.lang.Object buildId_ = ""; + + /** + * + * + *
+     * Cloud Build deployment id.
+     * 
+ * + * string build_id = 2; + * + * @return The buildId. + */ + public java.lang.String getBuildId() { + java.lang.Object ref = buildId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + buildId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Cloud Build deployment id.
+     * 
+ * + * string build_id = 2; + * + * @return The bytes for buildId. + */ + public com.google.protobuf.ByteString getBuildIdBytes() { + java.lang.Object ref = buildId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + buildId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Cloud Build deployment id.
+     * 
+ * + * string build_id = 2; + * + * @param value The buildId to set. + * @return This builder for chaining. + */ + public Builder setBuildId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + buildId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Cloud Build deployment id.
+     * 
+ * + * string build_id = 2; + * + * @return This builder for chaining. + */ + public Builder clearBuildId() { + buildId_ = getDefaultInstance().getBuildId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Cloud Build deployment id.
+     * 
+ * + * string build_id = 2; + * + * @param value The bytes for buildId to set. + * @return This builder for chaining. + */ + public Builder setBuildIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + buildId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.config.v1.DeploymentGroup deploymentGroup_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.config.v1.DeploymentGroup, + com.google.cloud.config.v1.DeploymentGroup.Builder, + com.google.cloud.config.v1.DeploymentGroupOrBuilder> + deploymentGroupBuilder_; + + /** + * + * + *
+     * Infrastructure Manager deployment group.
+     * Used for composite application deployment response.
+     * 
+ * + * .google.cloud.config.v1.DeploymentGroup deployment_group = 3; + * + * @return Whether the deploymentGroup field is set. + */ + public boolean hasDeploymentGroup() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Infrastructure Manager deployment group.
+     * Used for composite application deployment response.
+     * 
+ * + * .google.cloud.config.v1.DeploymentGroup deployment_group = 3; + * + * @return The deploymentGroup. + */ + public com.google.cloud.config.v1.DeploymentGroup getDeploymentGroup() { + if (deploymentGroupBuilder_ == null) { + return deploymentGroup_ == null + ? com.google.cloud.config.v1.DeploymentGroup.getDefaultInstance() + : deploymentGroup_; + } else { + return deploymentGroupBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Infrastructure Manager deployment group.
+     * Used for composite application deployment response.
+     * 
+ * + * .google.cloud.config.v1.DeploymentGroup deployment_group = 3; + */ + public Builder setDeploymentGroup(com.google.cloud.config.v1.DeploymentGroup value) { + if (deploymentGroupBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deploymentGroup_ = value; + } else { + deploymentGroupBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Infrastructure Manager deployment group.
+     * Used for composite application deployment response.
+     * 
+ * + * .google.cloud.config.v1.DeploymentGroup deployment_group = 3; + */ + public Builder setDeploymentGroup( + com.google.cloud.config.v1.DeploymentGroup.Builder builderForValue) { + if (deploymentGroupBuilder_ == null) { + deploymentGroup_ = builderForValue.build(); + } else { + deploymentGroupBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Infrastructure Manager deployment group.
+     * Used for composite application deployment response.
+     * 
+ * + * .google.cloud.config.v1.DeploymentGroup deployment_group = 3; + */ + public Builder mergeDeploymentGroup(com.google.cloud.config.v1.DeploymentGroup value) { + if (deploymentGroupBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && deploymentGroup_ != null + && deploymentGroup_ + != com.google.cloud.config.v1.DeploymentGroup.getDefaultInstance()) { + getDeploymentGroupBuilder().mergeFrom(value); + } else { + deploymentGroup_ = value; + } + } else { + deploymentGroupBuilder_.mergeFrom(value); + } + if (deploymentGroup_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Infrastructure Manager deployment group.
+     * Used for composite application deployment response.
+     * 
+ * + * .google.cloud.config.v1.DeploymentGroup deployment_group = 3; + */ + public Builder clearDeploymentGroup() { + bitField0_ = (bitField0_ & ~0x00000004); + deploymentGroup_ = null; + if (deploymentGroupBuilder_ != null) { + deploymentGroupBuilder_.dispose(); + deploymentGroupBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Infrastructure Manager deployment group.
+     * Used for composite application deployment response.
+     * 
+ * + * .google.cloud.config.v1.DeploymentGroup deployment_group = 3; + */ + public com.google.cloud.config.v1.DeploymentGroup.Builder getDeploymentGroupBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetDeploymentGroupFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Infrastructure Manager deployment group.
+     * Used for composite application deployment response.
+     * 
+ * + * .google.cloud.config.v1.DeploymentGroup deployment_group = 3; + */ + public com.google.cloud.config.v1.DeploymentGroupOrBuilder getDeploymentGroupOrBuilder() { + if (deploymentGroupBuilder_ != null) { + return deploymentGroupBuilder_.getMessageOrBuilder(); + } else { + return deploymentGroup_ == null + ? com.google.cloud.config.v1.DeploymentGroup.getDefaultInstance() + : deploymentGroup_; + } + } + + /** + * + * + *
+     * Infrastructure Manager deployment group.
+     * Used for composite application deployment response.
+     * 
+ * + * .google.cloud.config.v1.DeploymentGroup deployment_group = 3; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.config.v1.DeploymentGroup, + com.google.cloud.config.v1.DeploymentGroup.Builder, + com.google.cloud.config.v1.DeploymentGroupOrBuilder> + internalGetDeploymentGroupFieldBuilder() { + if (deploymentGroupBuilder_ == null) { + deploymentGroupBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.config.v1.DeploymentGroup, + com.google.cloud.config.v1.DeploymentGroup.Builder, + com.google.cloud.config.v1.DeploymentGroupOrBuilder>( + getDeploymentGroup(), getParentForChildren(), isClean()); + deploymentGroup_ = null; + } + return deploymentGroupBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.DeployApplicationResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.DeployApplicationResponse) + private static final com.google.cloud.designcenter.v1.DeployApplicationResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.DeployApplicationResponse(); + } + + public static com.google.cloud.designcenter.v1.DeployApplicationResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeployApplicationResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.DeployApplicationResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeployApplicationResponseOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeployApplicationResponseOrBuilder.java new file mode 100644 index 000000000000..84a6ada9fefe --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeployApplicationResponseOrBuilder.java @@ -0,0 +1,131 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface DeployApplicationResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.DeployApplicationResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Infrastructure Manager deployment.
+   * 
+ * + * .google.cloud.config.v1.Deployment deployment = 1; + * + * @return Whether the deployment field is set. + */ + boolean hasDeployment(); + + /** + * + * + *
+   * Infrastructure Manager deployment.
+   * 
+ * + * .google.cloud.config.v1.Deployment deployment = 1; + * + * @return The deployment. + */ + com.google.cloud.config.v1.Deployment getDeployment(); + + /** + * + * + *
+   * Infrastructure Manager deployment.
+   * 
+ * + * .google.cloud.config.v1.Deployment deployment = 1; + */ + com.google.cloud.config.v1.DeploymentOrBuilder getDeploymentOrBuilder(); + + /** + * + * + *
+   * Cloud Build deployment id.
+   * 
+ * + * string build_id = 2; + * + * @return The buildId. + */ + java.lang.String getBuildId(); + + /** + * + * + *
+   * Cloud Build deployment id.
+   * 
+ * + * string build_id = 2; + * + * @return The bytes for buildId. + */ + com.google.protobuf.ByteString getBuildIdBytes(); + + /** + * + * + *
+   * Infrastructure Manager deployment group.
+   * Used for composite application deployment response.
+   * 
+ * + * .google.cloud.config.v1.DeploymentGroup deployment_group = 3; + * + * @return Whether the deploymentGroup field is set. + */ + boolean hasDeploymentGroup(); + + /** + * + * + *
+   * Infrastructure Manager deployment group.
+   * Used for composite application deployment response.
+   * 
+ * + * .google.cloud.config.v1.DeploymentGroup deployment_group = 3; + * + * @return The deploymentGroup. + */ + com.google.cloud.config.v1.DeploymentGroup getDeploymentGroup(); + + /** + * + * + *
+   * Infrastructure Manager deployment group.
+   * Used for composite application deployment response.
+   * 
+ * + * .google.cloud.config.v1.DeploymentGroup deployment_group = 3; + */ + com.google.cloud.config.v1.DeploymentGroupOrBuilder getDeploymentGroupOrBuilder(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeployedResource.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeployedResource.java new file mode 100644 index 000000000000..d6b73a98b6b5 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeployedResource.java @@ -0,0 +1,981 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/apphub_integration.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * DeployedResource represents a single deployed GCP resource.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.DeployedResource} + */ +@com.google.protobuf.Generated +public final class DeployedResource extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.DeployedResource) + DeployedResourceOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DeployedResource"); + } + + // Use DeployedResource.newBuilder() to construct. + private DeployedResource(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeployedResource() { + resourceId_ = ""; + project_ = ""; + location_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.ApphubIntegrationProto + .internal_static_google_cloud_designcenter_v1_DeployedResource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.ApphubIntegrationProto + .internal_static_google_cloud_designcenter_v1_DeployedResource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.DeployedResource.class, + com.google.cloud.designcenter.v1.DeployedResource.Builder.class); + } + + public static final int RESOURCE_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object resourceId_ = ""; + + /** + * + * + *
+   * Required. The full resource name of the deployed GCP resource.
+   * Example: projects/my-project/locations/us-central1-a/instances/my-instance
+   * 
+ * + * string resource_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The resourceId. + */ + @java.lang.Override + public java.lang.String getResourceId() { + java.lang.Object ref = resourceId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceId_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The full resource name of the deployed GCP resource.
+   * Example: projects/my-project/locations/us-central1-a/instances/my-instance
+   * 
+ * + * string resource_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for resourceId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResourceIdBytes() { + java.lang.Object ref = resourceId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resourceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROJECT_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; + + /** + * + * + *
+   * Optional. The project ID of the deployed resource.
+   * 
+ * + * string project = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The project. + */ + @java.lang.Override + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The project ID of the deployed resource.
+   * 
+ * + * string project = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for project. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOCATION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object location_ = ""; + + /** + * + * + *
+   * Optional. The location of the deployed resource.
+   * 
+ * + * string location = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The location. + */ + @java.lang.Override + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + location_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The location of the deployed resource.
+   * 
+ * + * string location = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for location. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(resourceId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, resourceId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, project_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(location_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, location_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(resourceId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, resourceId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, project_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(location_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, location_); + } + 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.designcenter.v1.DeployedResource)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.DeployedResource other = + (com.google.cloud.designcenter.v1.DeployedResource) obj; + + if (!getResourceId().equals(other.getResourceId())) return false; + if (!getProject().equals(other.getProject())) return false; + if (!getLocation().equals(other.getLocation())) 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) + RESOURCE_ID_FIELD_NUMBER; + hash = (53 * hash) + getResourceId().hashCode(); + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getLocation().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.DeployedResource parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeployedResource 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.designcenter.v1.DeployedResource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeployedResource parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeployedResource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeployedResource parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeployedResource parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeployedResource parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeployedResource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeployedResource parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeployedResource parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeployedResource parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.DeployedResource 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * DeployedResource represents a single deployed GCP resource.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.DeployedResource} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.DeployedResource) + com.google.cloud.designcenter.v1.DeployedResourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.ApphubIntegrationProto + .internal_static_google_cloud_designcenter_v1_DeployedResource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.ApphubIntegrationProto + .internal_static_google_cloud_designcenter_v1_DeployedResource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.DeployedResource.class, + com.google.cloud.designcenter.v1.DeployedResource.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.DeployedResource.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + resourceId_ = ""; + project_ = ""; + location_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.ApphubIntegrationProto + .internal_static_google_cloud_designcenter_v1_DeployedResource_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeployedResource getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.DeployedResource.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeployedResource build() { + com.google.cloud.designcenter.v1.DeployedResource result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeployedResource buildPartial() { + com.google.cloud.designcenter.v1.DeployedResource result = + new com.google.cloud.designcenter.v1.DeployedResource(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.DeployedResource result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.resourceId_ = resourceId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.project_ = project_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.location_ = location_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.DeployedResource) { + return mergeFrom((com.google.cloud.designcenter.v1.DeployedResource) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.DeployedResource other) { + if (other == com.google.cloud.designcenter.v1.DeployedResource.getDefaultInstance()) + return this; + if (!other.getResourceId().isEmpty()) { + resourceId_ = other.resourceId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getProject().isEmpty()) { + project_ = other.project_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getLocation().isEmpty()) { + location_ = other.location_; + 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: + { + resourceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + location_ = 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 resourceId_ = ""; + + /** + * + * + *
+     * Required. The full resource name of the deployed GCP resource.
+     * Example: projects/my-project/locations/us-central1-a/instances/my-instance
+     * 
+ * + * string resource_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The resourceId. + */ + public java.lang.String getResourceId() { + java.lang.Object ref = resourceId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The full resource name of the deployed GCP resource.
+     * Example: projects/my-project/locations/us-central1-a/instances/my-instance
+     * 
+ * + * string resource_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for resourceId. + */ + public com.google.protobuf.ByteString getResourceIdBytes() { + java.lang.Object ref = resourceId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resourceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The full resource name of the deployed GCP resource.
+     * Example: projects/my-project/locations/us-central1-a/instances/my-instance
+     * 
+ * + * string resource_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The resourceId to set. + * @return This builder for chaining. + */ + public Builder setResourceId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + resourceId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The full resource name of the deployed GCP resource.
+     * Example: projects/my-project/locations/us-central1-a/instances/my-instance
+     * 
+ * + * string resource_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearResourceId() { + resourceId_ = getDefaultInstance().getResourceId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The full resource name of the deployed GCP resource.
+     * Example: projects/my-project/locations/us-central1-a/instances/my-instance
+     * 
+ * + * string resource_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for resourceId to set. + * @return This builder for chaining. + */ + public Builder setResourceIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object project_ = ""; + + /** + * + * + *
+     * Optional. The project ID of the deployed resource.
+     * 
+ * + * string project = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The project. + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The project ID of the deployed resource.
+     * 
+ * + * string project = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for project. + */ + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The project ID of the deployed resource.
+     * 
+ * + * string project = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The project to set. + * @return This builder for chaining. + */ + public Builder setProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + project_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The project ID of the deployed resource.
+     * 
+ * + * string project = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearProject() { + project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The project ID of the deployed resource.
+     * 
+ * + * string project = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for project to set. + * @return This builder for chaining. + */ + public Builder setProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object location_ = ""; + + /** + * + * + *
+     * Optional. The location of the deployed resource.
+     * 
+ * + * string location = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The location. + */ + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + location_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The location of the deployed resource.
+     * 
+ * + * string location = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for location. + */ + public com.google.protobuf.ByteString getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The location of the deployed resource.
+     * 
+ * + * string location = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The location to set. + * @return This builder for chaining. + */ + public Builder setLocation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + location_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The location of the deployed resource.
+     * 
+ * + * string location = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearLocation() { + location_ = getDefaultInstance().getLocation(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The location of the deployed resource.
+     * 
+ * + * string location = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for location to set. + * @return This builder for chaining. + */ + public Builder setLocationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + location_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.DeployedResource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.DeployedResource) + private static final com.google.cloud.designcenter.v1.DeployedResource DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.DeployedResource(); + } + + public static com.google.cloud.designcenter.v1.DeployedResource getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeployedResource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.DeployedResource getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeployedResourceOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeployedResourceOrBuilder.java new file mode 100644 index 000000000000..531ecb56f1bd --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeployedResourceOrBuilder.java @@ -0,0 +1,108 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/apphub_integration.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface DeployedResourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.DeployedResource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The full resource name of the deployed GCP resource.
+   * Example: projects/my-project/locations/us-central1-a/instances/my-instance
+   * 
+ * + * string resource_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The resourceId. + */ + java.lang.String getResourceId(); + + /** + * + * + *
+   * Required. The full resource name of the deployed GCP resource.
+   * Example: projects/my-project/locations/us-central1-a/instances/my-instance
+   * 
+ * + * string resource_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for resourceId. + */ + com.google.protobuf.ByteString getResourceIdBytes(); + + /** + * + * + *
+   * Optional. The project ID of the deployed resource.
+   * 
+ * + * string project = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The project. + */ + java.lang.String getProject(); + + /** + * + * + *
+   * Optional. The project ID of the deployed resource.
+   * 
+ * + * string project = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for project. + */ + com.google.protobuf.ByteString getProjectBytes(); + + /** + * + * + *
+   * Optional. The location of the deployed resource.
+   * 
+ * + * string location = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The location. + */ + java.lang.String getLocation(); + + /** + * + * + *
+   * Optional. The location of the deployed resource.
+   * 
+ * + * string location = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for location. + */ + com.google.protobuf.ByteString getLocationBytes(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeployedResourceResponse.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeployedResourceResponse.java new file mode 100644 index 000000000000..bc7d8f1839d3 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeployedResourceResponse.java @@ -0,0 +1,1448 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/apphub_integration_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Common response message for the resource registration methods.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.DeployedResourceResponse} + */ +@com.google.protobuf.Generated +public final class DeployedResourceResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.DeployedResourceResponse) + DeployedResourceResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DeployedResourceResponse"); + } + + // Use DeployedResourceResponse.newBuilder() to construct. + private DeployedResourceResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeployedResourceResponse() { + apphubApplication_ = ""; + registeredResources_ = com.google.protobuf.LazyStringArrayList.emptyList(); + unregisteredResources_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.ApphubIntegrationRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_DeployedResourceResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.ApphubIntegrationRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_DeployedResourceResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.DeployedResourceResponse.class, + com.google.cloud.designcenter.v1.DeployedResourceResponse.Builder.class); + } + + public static final int APPHUB_APPLICATION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object apphubApplication_ = ""; + + /** + * + * + *
+   * The App Hub application name.
+   * 
+ * + * string apphub_application = 1; + * + * @return The apphubApplication. + */ + @java.lang.Override + public java.lang.String getApphubApplication() { + java.lang.Object ref = apphubApplication_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + apphubApplication_ = s; + return s; + } + } + + /** + * + * + *
+   * The App Hub application name.
+   * 
+ * + * string apphub_application = 1; + * + * @return The bytes for apphubApplication. + */ + @java.lang.Override + public com.google.protobuf.ByteString getApphubApplicationBytes() { + java.lang.Object ref = apphubApplication_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + apphubApplication_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REGISTERED_RESOURCES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList registeredResources_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * The list of successfully registered GCP resources.
+   * 
+ * + * repeated string registered_resources = 2; + * + * @return A list containing the registeredResources. + */ + public com.google.protobuf.ProtocolStringList getRegisteredResourcesList() { + return registeredResources_; + } + + /** + * + * + *
+   * The list of successfully registered GCP resources.
+   * 
+ * + * repeated string registered_resources = 2; + * + * @return The count of registeredResources. + */ + public int getRegisteredResourcesCount() { + return registeredResources_.size(); + } + + /** + * + * + *
+   * The list of successfully registered GCP resources.
+   * 
+ * + * repeated string registered_resources = 2; + * + * @param index The index of the element to return. + * @return The registeredResources at the given index. + */ + public java.lang.String getRegisteredResources(int index) { + return registeredResources_.get(index); + } + + /** + * + * + *
+   * The list of successfully registered GCP resources.
+   * 
+ * + * repeated string registered_resources = 2; + * + * @param index The index of the value to return. + * @return The bytes of the registeredResources at the given index. + */ + public com.google.protobuf.ByteString getRegisteredResourcesBytes(int index) { + return registeredResources_.getByteString(index); + } + + public static final int UNREGISTERED_RESOURCES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List + unregisteredResources_; + + /** + * + * + *
+   * The list of unregistered GCP resources with error details.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.UnregisteredResource unregistered_resources = 3; + * + */ + @java.lang.Override + public java.util.List + getUnregisteredResourcesList() { + return unregisteredResources_; + } + + /** + * + * + *
+   * The list of unregistered GCP resources with error details.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.UnregisteredResource unregistered_resources = 3; + * + */ + @java.lang.Override + public java.util.List + getUnregisteredResourcesOrBuilderList() { + return unregisteredResources_; + } + + /** + * + * + *
+   * The list of unregistered GCP resources with error details.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.UnregisteredResource unregistered_resources = 3; + * + */ + @java.lang.Override + public int getUnregisteredResourcesCount() { + return unregisteredResources_.size(); + } + + /** + * + * + *
+   * The list of unregistered GCP resources with error details.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.UnregisteredResource unregistered_resources = 3; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.UnregisteredResource getUnregisteredResources(int index) { + return unregisteredResources_.get(index); + } + + /** + * + * + *
+   * The list of unregistered GCP resources with error details.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.UnregisteredResource unregistered_resources = 3; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.UnregisteredResourceOrBuilder + getUnregisteredResourcesOrBuilder(int index) { + return unregisteredResources_.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.GeneratedMessage.isStringEmpty(apphubApplication_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, apphubApplication_); + } + for (int i = 0; i < registeredResources_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, registeredResources_.getRaw(i)); + } + for (int i = 0; i < unregisteredResources_.size(); i++) { + output.writeMessage(3, unregisteredResources_.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.GeneratedMessage.isStringEmpty(apphubApplication_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, apphubApplication_); + } + { + int dataSize = 0; + for (int i = 0; i < registeredResources_.size(); i++) { + dataSize += computeStringSizeNoTag(registeredResources_.getRaw(i)); + } + size += dataSize; + size += 1 * getRegisteredResourcesList().size(); + } + for (int i = 0; i < unregisteredResources_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, unregisteredResources_.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.designcenter.v1.DeployedResourceResponse)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.DeployedResourceResponse other = + (com.google.cloud.designcenter.v1.DeployedResourceResponse) obj; + + if (!getApphubApplication().equals(other.getApphubApplication())) return false; + if (!getRegisteredResourcesList().equals(other.getRegisteredResourcesList())) return false; + if (!getUnregisteredResourcesList().equals(other.getUnregisteredResourcesList())) 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) + APPHUB_APPLICATION_FIELD_NUMBER; + hash = (53 * hash) + getApphubApplication().hashCode(); + if (getRegisteredResourcesCount() > 0) { + hash = (37 * hash) + REGISTERED_RESOURCES_FIELD_NUMBER; + hash = (53 * hash) + getRegisteredResourcesList().hashCode(); + } + if (getUnregisteredResourcesCount() > 0) { + hash = (37 * hash) + UNREGISTERED_RESOURCES_FIELD_NUMBER; + hash = (53 * hash) + getUnregisteredResourcesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.DeployedResourceResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeployedResourceResponse 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.designcenter.v1.DeployedResourceResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeployedResourceResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeployedResourceResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeployedResourceResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeployedResourceResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeployedResourceResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeployedResourceResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeployedResourceResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeployedResourceResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeployedResourceResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.DeployedResourceResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Common response message for the resource registration methods.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.DeployedResourceResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.DeployedResourceResponse) + com.google.cloud.designcenter.v1.DeployedResourceResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.ApphubIntegrationRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_DeployedResourceResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.ApphubIntegrationRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_DeployedResourceResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.DeployedResourceResponse.class, + com.google.cloud.designcenter.v1.DeployedResourceResponse.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.DeployedResourceResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + apphubApplication_ = ""; + registeredResources_ = com.google.protobuf.LazyStringArrayList.emptyList(); + if (unregisteredResourcesBuilder_ == null) { + unregisteredResources_ = java.util.Collections.emptyList(); + } else { + unregisteredResources_ = null; + unregisteredResourcesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.ApphubIntegrationRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_DeployedResourceResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeployedResourceResponse getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.DeployedResourceResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeployedResourceResponse build() { + com.google.cloud.designcenter.v1.DeployedResourceResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeployedResourceResponse buildPartial() { + com.google.cloud.designcenter.v1.DeployedResourceResponse result = + new com.google.cloud.designcenter.v1.DeployedResourceResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.designcenter.v1.DeployedResourceResponse result) { + if (unregisteredResourcesBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + unregisteredResources_ = java.util.Collections.unmodifiableList(unregisteredResources_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.unregisteredResources_ = unregisteredResources_; + } else { + result.unregisteredResources_ = unregisteredResourcesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.designcenter.v1.DeployedResourceResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.apphubApplication_ = apphubApplication_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + registeredResources_.makeImmutable(); + result.registeredResources_ = registeredResources_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.DeployedResourceResponse) { + return mergeFrom((com.google.cloud.designcenter.v1.DeployedResourceResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.DeployedResourceResponse other) { + if (other == com.google.cloud.designcenter.v1.DeployedResourceResponse.getDefaultInstance()) + return this; + if (!other.getApphubApplication().isEmpty()) { + apphubApplication_ = other.apphubApplication_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.registeredResources_.isEmpty()) { + if (registeredResources_.isEmpty()) { + registeredResources_ = other.registeredResources_; + bitField0_ |= 0x00000002; + } else { + ensureRegisteredResourcesIsMutable(); + registeredResources_.addAll(other.registeredResources_); + } + onChanged(); + } + if (unregisteredResourcesBuilder_ == null) { + if (!other.unregisteredResources_.isEmpty()) { + if (unregisteredResources_.isEmpty()) { + unregisteredResources_ = other.unregisteredResources_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureUnregisteredResourcesIsMutable(); + unregisteredResources_.addAll(other.unregisteredResources_); + } + onChanged(); + } + } else { + if (!other.unregisteredResources_.isEmpty()) { + if (unregisteredResourcesBuilder_.isEmpty()) { + unregisteredResourcesBuilder_.dispose(); + unregisteredResourcesBuilder_ = null; + unregisteredResources_ = other.unregisteredResources_; + bitField0_ = (bitField0_ & ~0x00000004); + unregisteredResourcesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetUnregisteredResourcesFieldBuilder() + : null; + } else { + unregisteredResourcesBuilder_.addAllMessages(other.unregisteredResources_); + } + } + } + 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: + { + apphubApplication_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureRegisteredResourcesIsMutable(); + registeredResources_.add(s); + break; + } // case 18 + case 26: + { + com.google.cloud.designcenter.v1.UnregisteredResource m = + input.readMessage( + com.google.cloud.designcenter.v1.UnregisteredResource.parser(), + extensionRegistry); + if (unregisteredResourcesBuilder_ == null) { + ensureUnregisteredResourcesIsMutable(); + unregisteredResources_.add(m); + } else { + unregisteredResourcesBuilder_.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 apphubApplication_ = ""; + + /** + * + * + *
+     * The App Hub application name.
+     * 
+ * + * string apphub_application = 1; + * + * @return The apphubApplication. + */ + public java.lang.String getApphubApplication() { + java.lang.Object ref = apphubApplication_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + apphubApplication_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The App Hub application name.
+     * 
+ * + * string apphub_application = 1; + * + * @return The bytes for apphubApplication. + */ + public com.google.protobuf.ByteString getApphubApplicationBytes() { + java.lang.Object ref = apphubApplication_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + apphubApplication_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The App Hub application name.
+     * 
+ * + * string apphub_application = 1; + * + * @param value The apphubApplication to set. + * @return This builder for chaining. + */ + public Builder setApphubApplication(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + apphubApplication_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The App Hub application name.
+     * 
+ * + * string apphub_application = 1; + * + * @return This builder for chaining. + */ + public Builder clearApphubApplication() { + apphubApplication_ = getDefaultInstance().getApphubApplication(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * The App Hub application name.
+     * 
+ * + * string apphub_application = 1; + * + * @param value The bytes for apphubApplication to set. + * @return This builder for chaining. + */ + public Builder setApphubApplicationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apphubApplication_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList registeredResources_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureRegisteredResourcesIsMutable() { + if (!registeredResources_.isModifiable()) { + registeredResources_ = new com.google.protobuf.LazyStringArrayList(registeredResources_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
+     * The list of successfully registered GCP resources.
+     * 
+ * + * repeated string registered_resources = 2; + * + * @return A list containing the registeredResources. + */ + public com.google.protobuf.ProtocolStringList getRegisteredResourcesList() { + registeredResources_.makeImmutable(); + return registeredResources_; + } + + /** + * + * + *
+     * The list of successfully registered GCP resources.
+     * 
+ * + * repeated string registered_resources = 2; + * + * @return The count of registeredResources. + */ + public int getRegisteredResourcesCount() { + return registeredResources_.size(); + } + + /** + * + * + *
+     * The list of successfully registered GCP resources.
+     * 
+ * + * repeated string registered_resources = 2; + * + * @param index The index of the element to return. + * @return The registeredResources at the given index. + */ + public java.lang.String getRegisteredResources(int index) { + return registeredResources_.get(index); + } + + /** + * + * + *
+     * The list of successfully registered GCP resources.
+     * 
+ * + * repeated string registered_resources = 2; + * + * @param index The index of the value to return. + * @return The bytes of the registeredResources at the given index. + */ + public com.google.protobuf.ByteString getRegisteredResourcesBytes(int index) { + return registeredResources_.getByteString(index); + } + + /** + * + * + *
+     * The list of successfully registered GCP resources.
+     * 
+ * + * repeated string registered_resources = 2; + * + * @param index The index to set the value at. + * @param value The registeredResources to set. + * @return This builder for chaining. + */ + public Builder setRegisteredResources(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRegisteredResourcesIsMutable(); + registeredResources_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * The list of successfully registered GCP resources.
+     * 
+ * + * repeated string registered_resources = 2; + * + * @param value The registeredResources to add. + * @return This builder for chaining. + */ + public Builder addRegisteredResources(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRegisteredResourcesIsMutable(); + registeredResources_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * The list of successfully registered GCP resources.
+     * 
+ * + * repeated string registered_resources = 2; + * + * @param values The registeredResources to add. + * @return This builder for chaining. + */ + public Builder addAllRegisteredResources(java.lang.Iterable values) { + ensureRegisteredResourcesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, registeredResources_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * The list of successfully registered GCP resources.
+     * 
+ * + * repeated string registered_resources = 2; + * + * @return This builder for chaining. + */ + public Builder clearRegisteredResources() { + registeredResources_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * The list of successfully registered GCP resources.
+     * 
+ * + * repeated string registered_resources = 2; + * + * @param value The bytes of the registeredResources to add. + * @return This builder for chaining. + */ + public Builder addRegisteredResourcesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureRegisteredResourcesIsMutable(); + registeredResources_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.util.List + unregisteredResources_ = java.util.Collections.emptyList(); + + private void ensureUnregisteredResourcesIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + unregisteredResources_ = + new java.util.ArrayList( + unregisteredResources_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.UnregisteredResource, + com.google.cloud.designcenter.v1.UnregisteredResource.Builder, + com.google.cloud.designcenter.v1.UnregisteredResourceOrBuilder> + unregisteredResourcesBuilder_; + + /** + * + * + *
+     * The list of unregistered GCP resources with error details.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.UnregisteredResource unregistered_resources = 3; + * + */ + public java.util.List + getUnregisteredResourcesList() { + if (unregisteredResourcesBuilder_ == null) { + return java.util.Collections.unmodifiableList(unregisteredResources_); + } else { + return unregisteredResourcesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The list of unregistered GCP resources with error details.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.UnregisteredResource unregistered_resources = 3; + * + */ + public int getUnregisteredResourcesCount() { + if (unregisteredResourcesBuilder_ == null) { + return unregisteredResources_.size(); + } else { + return unregisteredResourcesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The list of unregistered GCP resources with error details.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.UnregisteredResource unregistered_resources = 3; + * + */ + public com.google.cloud.designcenter.v1.UnregisteredResource getUnregisteredResources( + int index) { + if (unregisteredResourcesBuilder_ == null) { + return unregisteredResources_.get(index); + } else { + return unregisteredResourcesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The list of unregistered GCP resources with error details.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.UnregisteredResource unregistered_resources = 3; + * + */ + public Builder setUnregisteredResources( + int index, com.google.cloud.designcenter.v1.UnregisteredResource value) { + if (unregisteredResourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnregisteredResourcesIsMutable(); + unregisteredResources_.set(index, value); + onChanged(); + } else { + unregisteredResourcesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of unregistered GCP resources with error details.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.UnregisteredResource unregistered_resources = 3; + * + */ + public Builder setUnregisteredResources( + int index, com.google.cloud.designcenter.v1.UnregisteredResource.Builder builderForValue) { + if (unregisteredResourcesBuilder_ == null) { + ensureUnregisteredResourcesIsMutable(); + unregisteredResources_.set(index, builderForValue.build()); + onChanged(); + } else { + unregisteredResourcesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of unregistered GCP resources with error details.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.UnregisteredResource unregistered_resources = 3; + * + */ + public Builder addUnregisteredResources( + com.google.cloud.designcenter.v1.UnregisteredResource value) { + if (unregisteredResourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnregisteredResourcesIsMutable(); + unregisteredResources_.add(value); + onChanged(); + } else { + unregisteredResourcesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The list of unregistered GCP resources with error details.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.UnregisteredResource unregistered_resources = 3; + * + */ + public Builder addUnregisteredResources( + int index, com.google.cloud.designcenter.v1.UnregisteredResource value) { + if (unregisteredResourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnregisteredResourcesIsMutable(); + unregisteredResources_.add(index, value); + onChanged(); + } else { + unregisteredResourcesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of unregistered GCP resources with error details.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.UnregisteredResource unregistered_resources = 3; + * + */ + public Builder addUnregisteredResources( + com.google.cloud.designcenter.v1.UnregisteredResource.Builder builderForValue) { + if (unregisteredResourcesBuilder_ == null) { + ensureUnregisteredResourcesIsMutable(); + unregisteredResources_.add(builderForValue.build()); + onChanged(); + } else { + unregisteredResourcesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of unregistered GCP resources with error details.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.UnregisteredResource unregistered_resources = 3; + * + */ + public Builder addUnregisteredResources( + int index, com.google.cloud.designcenter.v1.UnregisteredResource.Builder builderForValue) { + if (unregisteredResourcesBuilder_ == null) { + ensureUnregisteredResourcesIsMutable(); + unregisteredResources_.add(index, builderForValue.build()); + onChanged(); + } else { + unregisteredResourcesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of unregistered GCP resources with error details.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.UnregisteredResource unregistered_resources = 3; + * + */ + public Builder addAllUnregisteredResources( + java.lang.Iterable + values) { + if (unregisteredResourcesBuilder_ == null) { + ensureUnregisteredResourcesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unregisteredResources_); + onChanged(); + } else { + unregisteredResourcesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The list of unregistered GCP resources with error details.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.UnregisteredResource unregistered_resources = 3; + * + */ + public Builder clearUnregisteredResources() { + if (unregisteredResourcesBuilder_ == null) { + unregisteredResources_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + unregisteredResourcesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The list of unregistered GCP resources with error details.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.UnregisteredResource unregistered_resources = 3; + * + */ + public Builder removeUnregisteredResources(int index) { + if (unregisteredResourcesBuilder_ == null) { + ensureUnregisteredResourcesIsMutable(); + unregisteredResources_.remove(index); + onChanged(); + } else { + unregisteredResourcesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The list of unregistered GCP resources with error details.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.UnregisteredResource unregistered_resources = 3; + * + */ + public com.google.cloud.designcenter.v1.UnregisteredResource.Builder + getUnregisteredResourcesBuilder(int index) { + return internalGetUnregisteredResourcesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The list of unregistered GCP resources with error details.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.UnregisteredResource unregistered_resources = 3; + * + */ + public com.google.cloud.designcenter.v1.UnregisteredResourceOrBuilder + getUnregisteredResourcesOrBuilder(int index) { + if (unregisteredResourcesBuilder_ == null) { + return unregisteredResources_.get(index); + } else { + return unregisteredResourcesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The list of unregistered GCP resources with error details.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.UnregisteredResource unregistered_resources = 3; + * + */ + public java.util.List + getUnregisteredResourcesOrBuilderList() { + if (unregisteredResourcesBuilder_ != null) { + return unregisteredResourcesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(unregisteredResources_); + } + } + + /** + * + * + *
+     * The list of unregistered GCP resources with error details.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.UnregisteredResource unregistered_resources = 3; + * + */ + public com.google.cloud.designcenter.v1.UnregisteredResource.Builder + addUnregisteredResourcesBuilder() { + return internalGetUnregisteredResourcesFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.UnregisteredResource.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of unregistered GCP resources with error details.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.UnregisteredResource unregistered_resources = 3; + * + */ + public com.google.cloud.designcenter.v1.UnregisteredResource.Builder + addUnregisteredResourcesBuilder(int index) { + return internalGetUnregisteredResourcesFieldBuilder() + .addBuilder( + index, com.google.cloud.designcenter.v1.UnregisteredResource.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of unregistered GCP resources with error details.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.UnregisteredResource unregistered_resources = 3; + * + */ + public java.util.List + getUnregisteredResourcesBuilderList() { + return internalGetUnregisteredResourcesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.UnregisteredResource, + com.google.cloud.designcenter.v1.UnregisteredResource.Builder, + com.google.cloud.designcenter.v1.UnregisteredResourceOrBuilder> + internalGetUnregisteredResourcesFieldBuilder() { + if (unregisteredResourcesBuilder_ == null) { + unregisteredResourcesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.UnregisteredResource, + com.google.cloud.designcenter.v1.UnregisteredResource.Builder, + com.google.cloud.designcenter.v1.UnregisteredResourceOrBuilder>( + unregisteredResources_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + unregisteredResources_ = null; + } + return unregisteredResourcesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.DeployedResourceResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.DeployedResourceResponse) + private static final com.google.cloud.designcenter.v1.DeployedResourceResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.DeployedResourceResponse(); + } + + public static com.google.cloud.designcenter.v1.DeployedResourceResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeployedResourceResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.DeployedResourceResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeployedResourceResponseOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeployedResourceResponseOrBuilder.java new file mode 100644 index 000000000000..0f551c54de7f --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeployedResourceResponseOrBuilder.java @@ -0,0 +1,171 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/apphub_integration_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface DeployedResourceResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.DeployedResourceResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The App Hub application name.
+   * 
+ * + * string apphub_application = 1; + * + * @return The apphubApplication. + */ + java.lang.String getApphubApplication(); + + /** + * + * + *
+   * The App Hub application name.
+   * 
+ * + * string apphub_application = 1; + * + * @return The bytes for apphubApplication. + */ + com.google.protobuf.ByteString getApphubApplicationBytes(); + + /** + * + * + *
+   * The list of successfully registered GCP resources.
+   * 
+ * + * repeated string registered_resources = 2; + * + * @return A list containing the registeredResources. + */ + java.util.List getRegisteredResourcesList(); + + /** + * + * + *
+   * The list of successfully registered GCP resources.
+   * 
+ * + * repeated string registered_resources = 2; + * + * @return The count of registeredResources. + */ + int getRegisteredResourcesCount(); + + /** + * + * + *
+   * The list of successfully registered GCP resources.
+   * 
+ * + * repeated string registered_resources = 2; + * + * @param index The index of the element to return. + * @return The registeredResources at the given index. + */ + java.lang.String getRegisteredResources(int index); + + /** + * + * + *
+   * The list of successfully registered GCP resources.
+   * 
+ * + * repeated string registered_resources = 2; + * + * @param index The index of the value to return. + * @return The bytes of the registeredResources at the given index. + */ + com.google.protobuf.ByteString getRegisteredResourcesBytes(int index); + + /** + * + * + *
+   * The list of unregistered GCP resources with error details.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.UnregisteredResource unregistered_resources = 3; + * + */ + java.util.List + getUnregisteredResourcesList(); + + /** + * + * + *
+   * The list of unregistered GCP resources with error details.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.UnregisteredResource unregistered_resources = 3; + * + */ + com.google.cloud.designcenter.v1.UnregisteredResource getUnregisteredResources(int index); + + /** + * + * + *
+   * The list of unregistered GCP resources with error details.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.UnregisteredResource unregistered_resources = 3; + * + */ + int getUnregisteredResourcesCount(); + + /** + * + * + *
+   * The list of unregistered GCP resources with error details.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.UnregisteredResource unregistered_resources = 3; + * + */ + java.util.List + getUnregisteredResourcesOrBuilderList(); + + /** + * + * + *
+   * The list of unregistered GCP resources with error details.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.UnregisteredResource unregistered_resources = 3; + * + */ + com.google.cloud.designcenter.v1.UnregisteredResourceOrBuilder getUnregisteredResourcesOrBuilder( + int index); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentAttemptMetadata.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentAttemptMetadata.java new file mode 100644 index 000000000000..161f0ed37af9 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentAttemptMetadata.java @@ -0,0 +1,892 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/designcenter.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * DeploymentAttemptMetadata represents a previous deployment attempt for an
+ * operation that failed due to a retryable error.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.DeploymentAttemptMetadata} + */ +@com.google.protobuf.Generated +public final class DeploymentAttemptMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.DeploymentAttemptMetadata) + DeploymentAttemptMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DeploymentAttemptMetadata"); + } + + // Use DeploymentAttemptMetadata.newBuilder() to construct. + private DeploymentAttemptMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeploymentAttemptMetadata() { + errorDetail_ = ""; + build_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DesigncenterProto + .internal_static_google_cloud_designcenter_v1_DeploymentAttemptMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DesigncenterProto + .internal_static_google_cloud_designcenter_v1_DeploymentAttemptMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.DeploymentAttemptMetadata.class, + com.google.cloud.designcenter.v1.DeploymentAttemptMetadata.Builder.class); + } + + public static final int ATTEMPT_FIELD_NUMBER = 1; + private int attempt_ = 0; + + /** + * + * + *
+   * The sequential number of the attempt (starting from 1).
+   * 
+ * + * int32 attempt = 1; + * + * @return The attempt. + */ + @java.lang.Override + public int getAttempt() { + return attempt_; + } + + public static final int ERROR_DETAIL_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object errorDetail_ = ""; + + /** + * + * + *
+   * Human readable string that summarizes the deployment error issue.
+   * 
+ * + * string error_detail = 2; + * + * @return The errorDetail. + */ + @java.lang.Override + public java.lang.String getErrorDetail() { + java.lang.Object ref = errorDetail_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + errorDetail_ = s; + return s; + } + } + + /** + * + * + *
+   * Human readable string that summarizes the deployment error issue.
+   * 
+ * + * string error_detail = 2; + * + * @return The bytes for errorDetail. + */ + @java.lang.Override + public com.google.protobuf.ByteString getErrorDetailBytes() { + java.lang.Object ref = errorDetail_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + errorDetail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BUILD_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object build_ = ""; + + /** + * + * + *
+   * The build or execution ID associated with this specific attempt.
+   * This can be used to link back to logs or trace information.
+   * 
+ * + * string build = 3; + * + * @return The build. + */ + @java.lang.Override + public java.lang.String getBuild() { + java.lang.Object ref = build_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + build_ = s; + return s; + } + } + + /** + * + * + *
+   * The build or execution ID associated with this specific attempt.
+   * This can be used to link back to logs or trace information.
+   * 
+ * + * string build = 3; + * + * @return The bytes for build. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBuildBytes() { + java.lang.Object ref = build_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + build_ = 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 (attempt_ != 0) { + output.writeInt32(1, attempt_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(errorDetail_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, errorDetail_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(build_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, build_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (attempt_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, attempt_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(errorDetail_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, errorDetail_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(build_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, build_); + } + 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.designcenter.v1.DeploymentAttemptMetadata)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.DeploymentAttemptMetadata other = + (com.google.cloud.designcenter.v1.DeploymentAttemptMetadata) obj; + + if (getAttempt() != other.getAttempt()) return false; + if (!getErrorDetail().equals(other.getErrorDetail())) return false; + if (!getBuild().equals(other.getBuild())) 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) + ATTEMPT_FIELD_NUMBER; + hash = (53 * hash) + getAttempt(); + hash = (37 * hash) + ERROR_DETAIL_FIELD_NUMBER; + hash = (53 * hash) + getErrorDetail().hashCode(); + hash = (37 * hash) + BUILD_FIELD_NUMBER; + hash = (53 * hash) + getBuild().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.DeploymentAttemptMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeploymentAttemptMetadata 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.designcenter.v1.DeploymentAttemptMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeploymentAttemptMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeploymentAttemptMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeploymentAttemptMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeploymentAttemptMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeploymentAttemptMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeploymentAttemptMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeploymentAttemptMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeploymentAttemptMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeploymentAttemptMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.DeploymentAttemptMetadata 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * DeploymentAttemptMetadata represents a previous deployment attempt for an
+   * operation that failed due to a retryable error.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.DeploymentAttemptMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.DeploymentAttemptMetadata) + com.google.cloud.designcenter.v1.DeploymentAttemptMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DesigncenterProto + .internal_static_google_cloud_designcenter_v1_DeploymentAttemptMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DesigncenterProto + .internal_static_google_cloud_designcenter_v1_DeploymentAttemptMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.DeploymentAttemptMetadata.class, + com.google.cloud.designcenter.v1.DeploymentAttemptMetadata.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.DeploymentAttemptMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + attempt_ = 0; + errorDetail_ = ""; + build_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.DesigncenterProto + .internal_static_google_cloud_designcenter_v1_DeploymentAttemptMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeploymentAttemptMetadata getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.DeploymentAttemptMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeploymentAttemptMetadata build() { + com.google.cloud.designcenter.v1.DeploymentAttemptMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeploymentAttemptMetadata buildPartial() { + com.google.cloud.designcenter.v1.DeploymentAttemptMetadata result = + new com.google.cloud.designcenter.v1.DeploymentAttemptMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.DeploymentAttemptMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.attempt_ = attempt_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.errorDetail_ = errorDetail_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.build_ = build_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.DeploymentAttemptMetadata) { + return mergeFrom((com.google.cloud.designcenter.v1.DeploymentAttemptMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.DeploymentAttemptMetadata other) { + if (other == com.google.cloud.designcenter.v1.DeploymentAttemptMetadata.getDefaultInstance()) + return this; + if (other.getAttempt() != 0) { + setAttempt(other.getAttempt()); + } + if (!other.getErrorDetail().isEmpty()) { + errorDetail_ = other.errorDetail_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getBuild().isEmpty()) { + build_ = other.build_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + attempt_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + errorDetail_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + build_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int attempt_; + + /** + * + * + *
+     * The sequential number of the attempt (starting from 1).
+     * 
+ * + * int32 attempt = 1; + * + * @return The attempt. + */ + @java.lang.Override + public int getAttempt() { + return attempt_; + } + + /** + * + * + *
+     * The sequential number of the attempt (starting from 1).
+     * 
+ * + * int32 attempt = 1; + * + * @param value The attempt to set. + * @return This builder for chaining. + */ + public Builder setAttempt(int value) { + + attempt_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The sequential number of the attempt (starting from 1).
+     * 
+ * + * int32 attempt = 1; + * + * @return This builder for chaining. + */ + public Builder clearAttempt() { + bitField0_ = (bitField0_ & ~0x00000001); + attempt_ = 0; + onChanged(); + return this; + } + + private java.lang.Object errorDetail_ = ""; + + /** + * + * + *
+     * Human readable string that summarizes the deployment error issue.
+     * 
+ * + * string error_detail = 2; + * + * @return The errorDetail. + */ + public java.lang.String getErrorDetail() { + java.lang.Object ref = errorDetail_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + errorDetail_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Human readable string that summarizes the deployment error issue.
+     * 
+ * + * string error_detail = 2; + * + * @return The bytes for errorDetail. + */ + public com.google.protobuf.ByteString getErrorDetailBytes() { + java.lang.Object ref = errorDetail_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + errorDetail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Human readable string that summarizes the deployment error issue.
+     * 
+ * + * string error_detail = 2; + * + * @param value The errorDetail to set. + * @return This builder for chaining. + */ + public Builder setErrorDetail(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + errorDetail_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Human readable string that summarizes the deployment error issue.
+     * 
+ * + * string error_detail = 2; + * + * @return This builder for chaining. + */ + public Builder clearErrorDetail() { + errorDetail_ = getDefaultInstance().getErrorDetail(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Human readable string that summarizes the deployment error issue.
+     * 
+ * + * string error_detail = 2; + * + * @param value The bytes for errorDetail to set. + * @return This builder for chaining. + */ + public Builder setErrorDetailBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + errorDetail_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object build_ = ""; + + /** + * + * + *
+     * The build or execution ID associated with this specific attempt.
+     * This can be used to link back to logs or trace information.
+     * 
+ * + * string build = 3; + * + * @return The build. + */ + public java.lang.String getBuild() { + java.lang.Object ref = build_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + build_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The build or execution ID associated with this specific attempt.
+     * This can be used to link back to logs or trace information.
+     * 
+ * + * string build = 3; + * + * @return The bytes for build. + */ + public com.google.protobuf.ByteString getBuildBytes() { + java.lang.Object ref = build_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + build_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The build or execution ID associated with this specific attempt.
+     * This can be used to link back to logs or trace information.
+     * 
+ * + * string build = 3; + * + * @param value The build to set. + * @return This builder for chaining. + */ + public Builder setBuild(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + build_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * The build or execution ID associated with this specific attempt.
+     * This can be used to link back to logs or trace information.
+     * 
+ * + * string build = 3; + * + * @return This builder for chaining. + */ + public Builder clearBuild() { + build_ = getDefaultInstance().getBuild(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * The build or execution ID associated with this specific attempt.
+     * This can be used to link back to logs or trace information.
+     * 
+ * + * string build = 3; + * + * @param value The bytes for build to set. + * @return This builder for chaining. + */ + public Builder setBuildBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + build_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.DeploymentAttemptMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.DeploymentAttemptMetadata) + private static final com.google.cloud.designcenter.v1.DeploymentAttemptMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.DeploymentAttemptMetadata(); + } + + public static com.google.cloud.designcenter.v1.DeploymentAttemptMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeploymentAttemptMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.DeploymentAttemptMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentAttemptMetadataOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentAttemptMetadataOrBuilder.java new file mode 100644 index 000000000000..67de6ed861d0 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentAttemptMetadataOrBuilder.java @@ -0,0 +1,95 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/designcenter.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface DeploymentAttemptMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.DeploymentAttemptMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The sequential number of the attempt (starting from 1).
+   * 
+ * + * int32 attempt = 1; + * + * @return The attempt. + */ + int getAttempt(); + + /** + * + * + *
+   * Human readable string that summarizes the deployment error issue.
+   * 
+ * + * string error_detail = 2; + * + * @return The errorDetail. + */ + java.lang.String getErrorDetail(); + + /** + * + * + *
+   * Human readable string that summarizes the deployment error issue.
+   * 
+ * + * string error_detail = 2; + * + * @return The bytes for errorDetail. + */ + com.google.protobuf.ByteString getErrorDetailBytes(); + + /** + * + * + *
+   * The build or execution ID associated with this specific attempt.
+   * This can be used to link back to logs or trace information.
+   * 
+ * + * string build = 3; + * + * @return The build. + */ + java.lang.String getBuild(); + + /** + * + * + *
+   * The build or execution ID associated with this specific attempt.
+   * This can be used to link back to logs or trace information.
+   * 
+ * + * string build = 3; + * + * @return The bytes for build. + */ + com.google.protobuf.ByteString getBuildBytes(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentError.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentError.java new file mode 100644 index 000000000000..c11aa3a18dca --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentError.java @@ -0,0 +1,2694 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * The error associated with the deployment.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.DeploymentError} + */ +@com.google.protobuf.Generated +public final class DeploymentError extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.DeploymentError) + DeploymentErrorOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DeploymentError"); + } + + // Use DeploymentError.newBuilder() to construct. + private DeploymentError(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeploymentError() { + type_ = 0; + code_ = 0; + tfErrors_ = java.util.Collections.emptyList(); + detail_ = ""; + deploymentFailureResolutionInfo_ = java.util.Collections.emptyList(); + errorMessage_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_DeploymentError_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_DeploymentError_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.DeploymentError.class, + com.google.cloud.designcenter.v1.DeploymentError.Builder.class); + } + + /** + * + * + *
+   * Possible values for the deployment error types.
+   * This categorization is based on the error code returned by Infrastructure
+   * Manager.
+   * 
+ * + * Protobuf enum {@code google.cloud.designcenter.v1.DeploymentError.ErrorType} + */ + public enum ErrorType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified error type.
+     * 
+ * + * ERROR_TYPE_UNSPECIFIED = 0; + */ + ERROR_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Permission related error.
+     * 
+ * + * PERMISSION = 1; + */ + PERMISSION(1), + /** + * + * + *
+     * Quota related error.
+     * 
+ * + * QUOTA = 2; + */ + QUOTA(2), + /** + * + * + *
+     * Resource already exists.
+     * 
+ * + * ALREADY_EXISTS = 3; + */ + ALREADY_EXISTS(3), + /** + * + * + *
+     * Resource is unavailable.
+     * 
+ * + * RESOURCE_UNAVAILABLE = 4; + */ + RESOURCE_UNAVAILABLE(4), + /** + * + * + *
+     * Billing related error.
+     * 
+ * + * BILLING = 5; + */ + BILLING(5), + /** + * + * + *
+     * Generic error if error does not fall under any of the above.
+     * 
+ * + * GENERIC = 6; + */ + GENERIC(6), + /** + * + * + *
+     * Terraform related error.
+     * 
+ * + * TERRAFORM = 7; + */ + TERRAFORM(7), + /** + * + * + *
+     * Bad input error.
+     * 
+ * + * BAD_INPUT = 8; + */ + BAD_INPUT(8), + /** + * + * + *
+     * Platform related error.
+     * 
+ * + * PLATFORM = 9; + */ + PLATFORM(9), + /** + * + * + *
+     * API enablement error.
+     * 
+ * + * API_ENABLEMENT = 10; + */ + API_ENABLEMENT(10), + /** + * + * + *
+     * Bad request error.
+     * 
+ * + * BAD_REQUEST = 11; + */ + BAD_REQUEST(11), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ErrorType"); + } + + /** + * + * + *
+     * Unspecified error type.
+     * 
+ * + * ERROR_TYPE_UNSPECIFIED = 0; + */ + public static final int ERROR_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Permission related error.
+     * 
+ * + * PERMISSION = 1; + */ + public static final int PERMISSION_VALUE = 1; + + /** + * + * + *
+     * Quota related error.
+     * 
+ * + * QUOTA = 2; + */ + public static final int QUOTA_VALUE = 2; + + /** + * + * + *
+     * Resource already exists.
+     * 
+ * + * ALREADY_EXISTS = 3; + */ + public static final int ALREADY_EXISTS_VALUE = 3; + + /** + * + * + *
+     * Resource is unavailable.
+     * 
+ * + * RESOURCE_UNAVAILABLE = 4; + */ + public static final int RESOURCE_UNAVAILABLE_VALUE = 4; + + /** + * + * + *
+     * Billing related error.
+     * 
+ * + * BILLING = 5; + */ + public static final int BILLING_VALUE = 5; + + /** + * + * + *
+     * Generic error if error does not fall under any of the above.
+     * 
+ * + * GENERIC = 6; + */ + public static final int GENERIC_VALUE = 6; + + /** + * + * + *
+     * Terraform related error.
+     * 
+ * + * TERRAFORM = 7; + */ + public static final int TERRAFORM_VALUE = 7; + + /** + * + * + *
+     * Bad input error.
+     * 
+ * + * BAD_INPUT = 8; + */ + public static final int BAD_INPUT_VALUE = 8; + + /** + * + * + *
+     * Platform related error.
+     * 
+ * + * PLATFORM = 9; + */ + public static final int PLATFORM_VALUE = 9; + + /** + * + * + *
+     * API enablement error.
+     * 
+ * + * API_ENABLEMENT = 10; + */ + public static final int API_ENABLEMENT_VALUE = 10; + + /** + * + * + *
+     * Bad request error.
+     * 
+ * + * BAD_REQUEST = 11; + */ + public static final int BAD_REQUEST_VALUE = 11; + + 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 ErrorType 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 ErrorType forNumber(int value) { + switch (value) { + case 0: + return ERROR_TYPE_UNSPECIFIED; + case 1: + return PERMISSION; + case 2: + return QUOTA; + case 3: + return ALREADY_EXISTS; + case 4: + return RESOURCE_UNAVAILABLE; + case 5: + return BILLING; + case 6: + return GENERIC; + case 7: + return TERRAFORM; + case 8: + return BAD_INPUT; + case 9: + return PLATFORM; + case 10: + return API_ENABLEMENT; + case 11: + return BAD_REQUEST; + 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 ErrorType findValueByNumber(int number) { + return ErrorType.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentError.getDescriptor().getEnumTypes().get(0); + } + + private static final ErrorType[] VALUES = values(); + + public static ErrorType 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 ErrorType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.designcenter.v1.DeploymentError.ErrorType) + } + + public static final int TYPE_FIELD_NUMBER = 1; + private int type_ = 0; + + /** + * + * + *
+   * Output only. The error type based on the deployment error code.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentError.ErrorType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
+   * Output only. The error type based on the deployment error code.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentError.ErrorType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.DeploymentError.ErrorType getType() { + com.google.cloud.designcenter.v1.DeploymentError.ErrorType result = + com.google.cloud.designcenter.v1.DeploymentError.ErrorType.forNumber(type_); + return result == null + ? com.google.cloud.designcenter.v1.DeploymentError.ErrorType.UNRECOGNIZED + : result; + } + + public static final int CODE_FIELD_NUMBER = 2; + private int code_ = 0; + + /** + * + * + *
+   * Output only. The deployment error code. Based on Infrastructure Manager
+   * error codes.
+   * 
+ * + * + * .google.cloud.config.v1.Deployment.ErrorCode code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for code. + */ + @java.lang.Override + public int getCodeValue() { + return code_; + } + + /** + * + * + *
+   * Output only. The deployment error code. Based on Infrastructure Manager
+   * error codes.
+   * 
+ * + * + * .google.cloud.config.v1.Deployment.ErrorCode code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The code. + */ + @java.lang.Override + public com.google.cloud.config.v1.Deployment.ErrorCode getCode() { + com.google.cloud.config.v1.Deployment.ErrorCode result = + com.google.cloud.config.v1.Deployment.ErrorCode.forNumber(code_); + return result == null ? com.google.cloud.config.v1.Deployment.ErrorCode.UNRECOGNIZED : result; + } + + public static final int TF_ERRORS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List tfErrors_; + + /** + * + * + *
+   * Output only. The error message associated with the deployment.
+   * 
+ * + * + * repeated .google.cloud.config.v1.TerraformError tf_errors = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getTfErrorsList() { + return tfErrors_; + } + + /** + * + * + *
+   * Output only. The error message associated with the deployment.
+   * 
+ * + * + * repeated .google.cloud.config.v1.TerraformError tf_errors = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getTfErrorsOrBuilderList() { + return tfErrors_; + } + + /** + * + * + *
+   * Output only. The error message associated with the deployment.
+   * 
+ * + * + * repeated .google.cloud.config.v1.TerraformError tf_errors = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getTfErrorsCount() { + return tfErrors_.size(); + } + + /** + * + * + *
+   * Output only. The error message associated with the deployment.
+   * 
+ * + * + * repeated .google.cloud.config.v1.TerraformError tf_errors = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.config.v1.TerraformError getTfErrors(int index) { + return tfErrors_.get(index); + } + + /** + * + * + *
+   * Output only. The error message associated with the deployment.
+   * 
+ * + * + * repeated .google.cloud.config.v1.TerraformError tf_errors = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.config.v1.TerraformErrorOrBuilder getTfErrorsOrBuilder(int index) { + return tfErrors_.get(index); + } + + public static final int DETAIL_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object detail_ = ""; + + /** + * + * + *
+   * Output only. Human readable string that summarizes the deployment error
+   * issue.
+   * 
+ * + * string detail = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The detail. + */ + @java.lang.Override + public java.lang.String getDetail() { + java.lang.Object ref = detail_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + detail_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. Human readable string that summarizes the deployment error
+   * issue.
+   * 
+ * + * string detail = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for detail. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDetailBytes() { + java.lang.Object ref = detail_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + detail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEPLOYMENT_FAILURE_RESOLUTION_INFO_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private java.util.List + deploymentFailureResolutionInfo_; + + /** + * + * + *
+   * Output only. The call to actions associated with the deployment issue.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.DeploymentFailureResolutionInfo deployment_failure_resolution_info = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getDeploymentFailureResolutionInfoList() { + return deploymentFailureResolutionInfo_; + } + + /** + * + * + *
+   * Output only. The call to actions associated with the deployment issue.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.DeploymentFailureResolutionInfo deployment_failure_resolution_info = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.designcenter.v1.DeploymentFailureResolutionInfoOrBuilder> + getDeploymentFailureResolutionInfoOrBuilderList() { + return deploymentFailureResolutionInfo_; + } + + /** + * + * + *
+   * Output only. The call to actions associated with the deployment issue.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.DeploymentFailureResolutionInfo deployment_failure_resolution_info = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getDeploymentFailureResolutionInfoCount() { + return deploymentFailureResolutionInfo_.size(); + } + + /** + * + * + *
+   * Output only. The call to actions associated with the deployment issue.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.DeploymentFailureResolutionInfo deployment_failure_resolution_info = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.DeploymentFailureResolutionInfo + getDeploymentFailureResolutionInfo(int index) { + return deploymentFailureResolutionInfo_.get(index); + } + + /** + * + * + *
+   * Output only. The call to actions associated with the deployment issue.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.DeploymentFailureResolutionInfo deployment_failure_resolution_info = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.DeploymentFailureResolutionInfoOrBuilder + getDeploymentFailureResolutionInfoOrBuilder(int index) { + return deploymentFailureResolutionInfo_.get(index); + } + + public static final int ERROR_MESSAGE_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object errorMessage_ = ""; + + /** + * + * + *
+   * Output only. Stores errors generated by Infra Manager, as well as all
+   * non-internal errors (such as INVALID_ARGUMENT) that occur before
+   * initiating the deployment.
+   * 
+ * + * string error_message = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The errorMessage. + */ + @java.lang.Override + public java.lang.String getErrorMessage() { + java.lang.Object ref = errorMessage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + errorMessage_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. Stores errors generated by Infra Manager, as well as all
+   * non-internal errors (such as INVALID_ARGUMENT) that occur before
+   * initiating the deployment.
+   * 
+ * + * string error_message = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for errorMessage. + */ + @java.lang.Override + public com.google.protobuf.ByteString getErrorMessageBytes() { + java.lang.Object ref = errorMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + errorMessage_ = 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 (type_ + != com.google.cloud.designcenter.v1.DeploymentError.ErrorType.ERROR_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, type_); + } + if (code_ + != com.google.cloud.config.v1.Deployment.ErrorCode.ERROR_CODE_UNSPECIFIED.getNumber()) { + output.writeEnum(2, code_); + } + for (int i = 0; i < tfErrors_.size(); i++) { + output.writeMessage(3, tfErrors_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(detail_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, detail_); + } + for (int i = 0; i < deploymentFailureResolutionInfo_.size(); i++) { + output.writeMessage(6, deploymentFailureResolutionInfo_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(errorMessage_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, errorMessage_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (type_ + != com.google.cloud.designcenter.v1.DeploymentError.ErrorType.ERROR_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); + } + if (code_ + != com.google.cloud.config.v1.Deployment.ErrorCode.ERROR_CODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, code_); + } + for (int i = 0; i < tfErrors_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, tfErrors_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(detail_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, detail_); + } + for (int i = 0; i < deploymentFailureResolutionInfo_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, deploymentFailureResolutionInfo_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(errorMessage_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, errorMessage_); + } + 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.designcenter.v1.DeploymentError)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.DeploymentError other = + (com.google.cloud.designcenter.v1.DeploymentError) obj; + + if (type_ != other.type_) return false; + if (code_ != other.code_) return false; + if (!getTfErrorsList().equals(other.getTfErrorsList())) return false; + if (!getDetail().equals(other.getDetail())) return false; + if (!getDeploymentFailureResolutionInfoList() + .equals(other.getDeploymentFailureResolutionInfoList())) return false; + if (!getErrorMessage().equals(other.getErrorMessage())) 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) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (37 * hash) + CODE_FIELD_NUMBER; + hash = (53 * hash) + code_; + if (getTfErrorsCount() > 0) { + hash = (37 * hash) + TF_ERRORS_FIELD_NUMBER; + hash = (53 * hash) + getTfErrorsList().hashCode(); + } + hash = (37 * hash) + DETAIL_FIELD_NUMBER; + hash = (53 * hash) + getDetail().hashCode(); + if (getDeploymentFailureResolutionInfoCount() > 0) { + hash = (37 * hash) + DEPLOYMENT_FAILURE_RESOLUTION_INFO_FIELD_NUMBER; + hash = (53 * hash) + getDeploymentFailureResolutionInfoList().hashCode(); + } + hash = (37 * hash) + ERROR_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getErrorMessage().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.DeploymentError parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeploymentError 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.designcenter.v1.DeploymentError parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeploymentError parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeploymentError parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeploymentError parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeploymentError parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeploymentError parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeploymentError parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeploymentError parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeploymentError parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeploymentError parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.DeploymentError 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * The error associated with the deployment.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.DeploymentError} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.DeploymentError) + com.google.cloud.designcenter.v1.DeploymentErrorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_DeploymentError_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_DeploymentError_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.DeploymentError.class, + com.google.cloud.designcenter.v1.DeploymentError.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.DeploymentError.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + type_ = 0; + code_ = 0; + if (tfErrorsBuilder_ == null) { + tfErrors_ = java.util.Collections.emptyList(); + } else { + tfErrors_ = null; + tfErrorsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + detail_ = ""; + if (deploymentFailureResolutionInfoBuilder_ == null) { + deploymentFailureResolutionInfo_ = java.util.Collections.emptyList(); + } else { + deploymentFailureResolutionInfo_ = null; + deploymentFailureResolutionInfoBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + errorMessage_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_DeploymentError_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeploymentError getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.DeploymentError.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeploymentError build() { + com.google.cloud.designcenter.v1.DeploymentError result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeploymentError buildPartial() { + com.google.cloud.designcenter.v1.DeploymentError result = + new com.google.cloud.designcenter.v1.DeploymentError(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.designcenter.v1.DeploymentError result) { + if (tfErrorsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + tfErrors_ = java.util.Collections.unmodifiableList(tfErrors_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.tfErrors_ = tfErrors_; + } else { + result.tfErrors_ = tfErrorsBuilder_.build(); + } + if (deploymentFailureResolutionInfoBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + deploymentFailureResolutionInfo_ = + java.util.Collections.unmodifiableList(deploymentFailureResolutionInfo_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.deploymentFailureResolutionInfo_ = deploymentFailureResolutionInfo_; + } else { + result.deploymentFailureResolutionInfo_ = deploymentFailureResolutionInfoBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.designcenter.v1.DeploymentError result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.code_ = code_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.detail_ = detail_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.errorMessage_ = errorMessage_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.DeploymentError) { + return mergeFrom((com.google.cloud.designcenter.v1.DeploymentError) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.DeploymentError other) { + if (other == com.google.cloud.designcenter.v1.DeploymentError.getDefaultInstance()) + return this; + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (other.code_ != 0) { + setCodeValue(other.getCodeValue()); + } + if (tfErrorsBuilder_ == null) { + if (!other.tfErrors_.isEmpty()) { + if (tfErrors_.isEmpty()) { + tfErrors_ = other.tfErrors_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureTfErrorsIsMutable(); + tfErrors_.addAll(other.tfErrors_); + } + onChanged(); + } + } else { + if (!other.tfErrors_.isEmpty()) { + if (tfErrorsBuilder_.isEmpty()) { + tfErrorsBuilder_.dispose(); + tfErrorsBuilder_ = null; + tfErrors_ = other.tfErrors_; + bitField0_ = (bitField0_ & ~0x00000004); + tfErrorsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetTfErrorsFieldBuilder() + : null; + } else { + tfErrorsBuilder_.addAllMessages(other.tfErrors_); + } + } + } + if (!other.getDetail().isEmpty()) { + detail_ = other.detail_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (deploymentFailureResolutionInfoBuilder_ == null) { + if (!other.deploymentFailureResolutionInfo_.isEmpty()) { + if (deploymentFailureResolutionInfo_.isEmpty()) { + deploymentFailureResolutionInfo_ = other.deploymentFailureResolutionInfo_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureDeploymentFailureResolutionInfoIsMutable(); + deploymentFailureResolutionInfo_.addAll(other.deploymentFailureResolutionInfo_); + } + onChanged(); + } + } else { + if (!other.deploymentFailureResolutionInfo_.isEmpty()) { + if (deploymentFailureResolutionInfoBuilder_.isEmpty()) { + deploymentFailureResolutionInfoBuilder_.dispose(); + deploymentFailureResolutionInfoBuilder_ = null; + deploymentFailureResolutionInfo_ = other.deploymentFailureResolutionInfo_; + bitField0_ = (bitField0_ & ~0x00000010); + deploymentFailureResolutionInfoBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetDeploymentFailureResolutionInfoFieldBuilder() + : null; + } else { + deploymentFailureResolutionInfoBuilder_.addAllMessages( + other.deploymentFailureResolutionInfo_); + } + } + } + if (!other.getErrorMessage().isEmpty()) { + errorMessage_ = other.errorMessage_; + bitField0_ |= 0x00000020; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + type_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + code_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + com.google.cloud.config.v1.TerraformError m = + input.readMessage( + com.google.cloud.config.v1.TerraformError.parser(), extensionRegistry); + if (tfErrorsBuilder_ == null) { + ensureTfErrorsIsMutable(); + tfErrors_.add(m); + } else { + tfErrorsBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: + { + detail_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 50: + { + com.google.cloud.designcenter.v1.DeploymentFailureResolutionInfo m = + input.readMessage( + com.google.cloud.designcenter.v1.DeploymentFailureResolutionInfo.parser(), + extensionRegistry); + if (deploymentFailureResolutionInfoBuilder_ == null) { + ensureDeploymentFailureResolutionInfoIsMutable(); + deploymentFailureResolutionInfo_.add(m); + } else { + deploymentFailureResolutionInfoBuilder_.addMessage(m); + } + break; + } // case 50 + case 58: + { + errorMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + 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 int type_ = 0; + + /** + * + * + *
+     * Output only. The error type based on the deployment error code.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentError.ErrorType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
+     * Output only. The error type based on the deployment error code.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentError.ErrorType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + type_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The error type based on the deployment error code.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentError.ErrorType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.DeploymentError.ErrorType getType() { + com.google.cloud.designcenter.v1.DeploymentError.ErrorType result = + com.google.cloud.designcenter.v1.DeploymentError.ErrorType.forNumber(type_); + return result == null + ? com.google.cloud.designcenter.v1.DeploymentError.ErrorType.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Output only. The error type based on the deployment error code.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentError.ErrorType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(com.google.cloud.designcenter.v1.DeploymentError.ErrorType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + type_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The error type based on the deployment error code.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentError.ErrorType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000001); + type_ = 0; + onChanged(); + return this; + } + + private int code_ = 0; + + /** + * + * + *
+     * Output only. The deployment error code. Based on Infrastructure Manager
+     * error codes.
+     * 
+ * + * + * .google.cloud.config.v1.Deployment.ErrorCode code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for code. + */ + @java.lang.Override + public int getCodeValue() { + return code_; + } + + /** + * + * + *
+     * Output only. The deployment error code. Based on Infrastructure Manager
+     * error codes.
+     * 
+ * + * + * .google.cloud.config.v1.Deployment.ErrorCode code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for code to set. + * @return This builder for chaining. + */ + public Builder setCodeValue(int value) { + code_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The deployment error code. Based on Infrastructure Manager
+     * error codes.
+     * 
+ * + * + * .google.cloud.config.v1.Deployment.ErrorCode code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The code. + */ + @java.lang.Override + public com.google.cloud.config.v1.Deployment.ErrorCode getCode() { + com.google.cloud.config.v1.Deployment.ErrorCode result = + com.google.cloud.config.v1.Deployment.ErrorCode.forNumber(code_); + return result == null ? com.google.cloud.config.v1.Deployment.ErrorCode.UNRECOGNIZED : result; + } + + /** + * + * + *
+     * Output only. The deployment error code. Based on Infrastructure Manager
+     * error codes.
+     * 
+ * + * + * .google.cloud.config.v1.Deployment.ErrorCode code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The code to set. + * @return This builder for chaining. + */ + public Builder setCode(com.google.cloud.config.v1.Deployment.ErrorCode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + code_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The deployment error code. Based on Infrastructure Manager
+     * error codes.
+     * 
+ * + * + * .google.cloud.config.v1.Deployment.ErrorCode code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearCode() { + bitField0_ = (bitField0_ & ~0x00000002); + code_ = 0; + onChanged(); + return this; + } + + private java.util.List tfErrors_ = + java.util.Collections.emptyList(); + + private void ensureTfErrorsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + tfErrors_ = new java.util.ArrayList(tfErrors_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.config.v1.TerraformError, + com.google.cloud.config.v1.TerraformError.Builder, + com.google.cloud.config.v1.TerraformErrorOrBuilder> + tfErrorsBuilder_; + + /** + * + * + *
+     * Output only. The error message associated with the deployment.
+     * 
+ * + * + * repeated .google.cloud.config.v1.TerraformError tf_errors = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getTfErrorsList() { + if (tfErrorsBuilder_ == null) { + return java.util.Collections.unmodifiableList(tfErrors_); + } else { + return tfErrorsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Output only. The error message associated with the deployment.
+     * 
+ * + * + * repeated .google.cloud.config.v1.TerraformError tf_errors = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getTfErrorsCount() { + if (tfErrorsBuilder_ == null) { + return tfErrors_.size(); + } else { + return tfErrorsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Output only. The error message associated with the deployment.
+     * 
+ * + * + * repeated .google.cloud.config.v1.TerraformError tf_errors = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.config.v1.TerraformError getTfErrors(int index) { + if (tfErrorsBuilder_ == null) { + return tfErrors_.get(index); + } else { + return tfErrorsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Output only. The error message associated with the deployment.
+     * 
+ * + * + * repeated .google.cloud.config.v1.TerraformError tf_errors = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTfErrors(int index, com.google.cloud.config.v1.TerraformError value) { + if (tfErrorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTfErrorsIsMutable(); + tfErrors_.set(index, value); + onChanged(); + } else { + tfErrorsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. The error message associated with the deployment.
+     * 
+ * + * + * repeated .google.cloud.config.v1.TerraformError tf_errors = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTfErrors( + int index, com.google.cloud.config.v1.TerraformError.Builder builderForValue) { + if (tfErrorsBuilder_ == null) { + ensureTfErrorsIsMutable(); + tfErrors_.set(index, builderForValue.build()); + onChanged(); + } else { + tfErrorsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The error message associated with the deployment.
+     * 
+ * + * + * repeated .google.cloud.config.v1.TerraformError tf_errors = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addTfErrors(com.google.cloud.config.v1.TerraformError value) { + if (tfErrorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTfErrorsIsMutable(); + tfErrors_.add(value); + onChanged(); + } else { + tfErrorsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Output only. The error message associated with the deployment.
+     * 
+ * + * + * repeated .google.cloud.config.v1.TerraformError tf_errors = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addTfErrors(int index, com.google.cloud.config.v1.TerraformError value) { + if (tfErrorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTfErrorsIsMutable(); + tfErrors_.add(index, value); + onChanged(); + } else { + tfErrorsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. The error message associated with the deployment.
+     * 
+ * + * + * repeated .google.cloud.config.v1.TerraformError tf_errors = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addTfErrors(com.google.cloud.config.v1.TerraformError.Builder builderForValue) { + if (tfErrorsBuilder_ == null) { + ensureTfErrorsIsMutable(); + tfErrors_.add(builderForValue.build()); + onChanged(); + } else { + tfErrorsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The error message associated with the deployment.
+     * 
+ * + * + * repeated .google.cloud.config.v1.TerraformError tf_errors = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addTfErrors( + int index, com.google.cloud.config.v1.TerraformError.Builder builderForValue) { + if (tfErrorsBuilder_ == null) { + ensureTfErrorsIsMutable(); + tfErrors_.add(index, builderForValue.build()); + onChanged(); + } else { + tfErrorsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The error message associated with the deployment.
+     * 
+ * + * + * repeated .google.cloud.config.v1.TerraformError tf_errors = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllTfErrors( + java.lang.Iterable values) { + if (tfErrorsBuilder_ == null) { + ensureTfErrorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tfErrors_); + onChanged(); + } else { + tfErrorsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Output only. The error message associated with the deployment.
+     * 
+ * + * + * repeated .google.cloud.config.v1.TerraformError tf_errors = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearTfErrors() { + if (tfErrorsBuilder_ == null) { + tfErrors_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + tfErrorsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Output only. The error message associated with the deployment.
+     * 
+ * + * + * repeated .google.cloud.config.v1.TerraformError tf_errors = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeTfErrors(int index) { + if (tfErrorsBuilder_ == null) { + ensureTfErrorsIsMutable(); + tfErrors_.remove(index); + onChanged(); + } else { + tfErrorsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Output only. The error message associated with the deployment.
+     * 
+ * + * + * repeated .google.cloud.config.v1.TerraformError tf_errors = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.config.v1.TerraformError.Builder getTfErrorsBuilder(int index) { + return internalGetTfErrorsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Output only. The error message associated with the deployment.
+     * 
+ * + * + * repeated .google.cloud.config.v1.TerraformError tf_errors = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.config.v1.TerraformErrorOrBuilder getTfErrorsOrBuilder(int index) { + if (tfErrorsBuilder_ == null) { + return tfErrors_.get(index); + } else { + return tfErrorsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Output only. The error message associated with the deployment.
+     * 
+ * + * + * repeated .google.cloud.config.v1.TerraformError tf_errors = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getTfErrorsOrBuilderList() { + if (tfErrorsBuilder_ != null) { + return tfErrorsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tfErrors_); + } + } + + /** + * + * + *
+     * Output only. The error message associated with the deployment.
+     * 
+ * + * + * repeated .google.cloud.config.v1.TerraformError tf_errors = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.config.v1.TerraformError.Builder addTfErrorsBuilder() { + return internalGetTfErrorsFieldBuilder() + .addBuilder(com.google.cloud.config.v1.TerraformError.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. The error message associated with the deployment.
+     * 
+ * + * + * repeated .google.cloud.config.v1.TerraformError tf_errors = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.config.v1.TerraformError.Builder addTfErrorsBuilder(int index) { + return internalGetTfErrorsFieldBuilder() + .addBuilder(index, com.google.cloud.config.v1.TerraformError.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. The error message associated with the deployment.
+     * 
+ * + * + * repeated .google.cloud.config.v1.TerraformError tf_errors = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getTfErrorsBuilderList() { + return internalGetTfErrorsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.config.v1.TerraformError, + com.google.cloud.config.v1.TerraformError.Builder, + com.google.cloud.config.v1.TerraformErrorOrBuilder> + internalGetTfErrorsFieldBuilder() { + if (tfErrorsBuilder_ == null) { + tfErrorsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.config.v1.TerraformError, + com.google.cloud.config.v1.TerraformError.Builder, + com.google.cloud.config.v1.TerraformErrorOrBuilder>( + tfErrors_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + tfErrors_ = null; + } + return tfErrorsBuilder_; + } + + private java.lang.Object detail_ = ""; + + /** + * + * + *
+     * Output only. Human readable string that summarizes the deployment error
+     * issue.
+     * 
+ * + * string detail = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The detail. + */ + public java.lang.String getDetail() { + java.lang.Object ref = detail_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + detail_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Human readable string that summarizes the deployment error
+     * issue.
+     * 
+ * + * string detail = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for detail. + */ + public com.google.protobuf.ByteString getDetailBytes() { + java.lang.Object ref = detail_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + detail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Human readable string that summarizes the deployment error
+     * issue.
+     * 
+ * + * string detail = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The detail to set. + * @return This builder for chaining. + */ + public Builder setDetail(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + detail_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Human readable string that summarizes the deployment error
+     * issue.
+     * 
+ * + * string detail = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDetail() { + detail_ = getDefaultInstance().getDetail(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Human readable string that summarizes the deployment error
+     * issue.
+     * 
+ * + * string detail = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for detail to set. + * @return This builder for chaining. + */ + public Builder setDetailBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + detail_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.util.List + deploymentFailureResolutionInfo_ = java.util.Collections.emptyList(); + + private void ensureDeploymentFailureResolutionInfoIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + deploymentFailureResolutionInfo_ = + new java.util.ArrayList< + com.google.cloud.designcenter.v1.DeploymentFailureResolutionInfo>( + deploymentFailureResolutionInfo_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.DeploymentFailureResolutionInfo, + com.google.cloud.designcenter.v1.DeploymentFailureResolutionInfo.Builder, + com.google.cloud.designcenter.v1.DeploymentFailureResolutionInfoOrBuilder> + deploymentFailureResolutionInfoBuilder_; + + /** + * + * + *
+     * Output only. The call to actions associated with the deployment issue.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.DeploymentFailureResolutionInfo deployment_failure_resolution_info = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getDeploymentFailureResolutionInfoList() { + if (deploymentFailureResolutionInfoBuilder_ == null) { + return java.util.Collections.unmodifiableList(deploymentFailureResolutionInfo_); + } else { + return deploymentFailureResolutionInfoBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Output only. The call to actions associated with the deployment issue.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.DeploymentFailureResolutionInfo deployment_failure_resolution_info = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getDeploymentFailureResolutionInfoCount() { + if (deploymentFailureResolutionInfoBuilder_ == null) { + return deploymentFailureResolutionInfo_.size(); + } else { + return deploymentFailureResolutionInfoBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Output only. The call to actions associated with the deployment issue.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.DeploymentFailureResolutionInfo deployment_failure_resolution_info = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.DeploymentFailureResolutionInfo + getDeploymentFailureResolutionInfo(int index) { + if (deploymentFailureResolutionInfoBuilder_ == null) { + return deploymentFailureResolutionInfo_.get(index); + } else { + return deploymentFailureResolutionInfoBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Output only. The call to actions associated with the deployment issue.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.DeploymentFailureResolutionInfo deployment_failure_resolution_info = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDeploymentFailureResolutionInfo( + int index, com.google.cloud.designcenter.v1.DeploymentFailureResolutionInfo value) { + if (deploymentFailureResolutionInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeploymentFailureResolutionInfoIsMutable(); + deploymentFailureResolutionInfo_.set(index, value); + onChanged(); + } else { + deploymentFailureResolutionInfoBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. The call to actions associated with the deployment issue.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.DeploymentFailureResolutionInfo deployment_failure_resolution_info = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDeploymentFailureResolutionInfo( + int index, + com.google.cloud.designcenter.v1.DeploymentFailureResolutionInfo.Builder builderForValue) { + if (deploymentFailureResolutionInfoBuilder_ == null) { + ensureDeploymentFailureResolutionInfoIsMutable(); + deploymentFailureResolutionInfo_.set(index, builderForValue.build()); + onChanged(); + } else { + deploymentFailureResolutionInfoBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The call to actions associated with the deployment issue.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.DeploymentFailureResolutionInfo deployment_failure_resolution_info = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDeploymentFailureResolutionInfo( + com.google.cloud.designcenter.v1.DeploymentFailureResolutionInfo value) { + if (deploymentFailureResolutionInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeploymentFailureResolutionInfoIsMutable(); + deploymentFailureResolutionInfo_.add(value); + onChanged(); + } else { + deploymentFailureResolutionInfoBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Output only. The call to actions associated with the deployment issue.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.DeploymentFailureResolutionInfo deployment_failure_resolution_info = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDeploymentFailureResolutionInfo( + int index, com.google.cloud.designcenter.v1.DeploymentFailureResolutionInfo value) { + if (deploymentFailureResolutionInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeploymentFailureResolutionInfoIsMutable(); + deploymentFailureResolutionInfo_.add(index, value); + onChanged(); + } else { + deploymentFailureResolutionInfoBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. The call to actions associated with the deployment issue.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.DeploymentFailureResolutionInfo deployment_failure_resolution_info = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDeploymentFailureResolutionInfo( + com.google.cloud.designcenter.v1.DeploymentFailureResolutionInfo.Builder builderForValue) { + if (deploymentFailureResolutionInfoBuilder_ == null) { + ensureDeploymentFailureResolutionInfoIsMutable(); + deploymentFailureResolutionInfo_.add(builderForValue.build()); + onChanged(); + } else { + deploymentFailureResolutionInfoBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The call to actions associated with the deployment issue.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.DeploymentFailureResolutionInfo deployment_failure_resolution_info = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDeploymentFailureResolutionInfo( + int index, + com.google.cloud.designcenter.v1.DeploymentFailureResolutionInfo.Builder builderForValue) { + if (deploymentFailureResolutionInfoBuilder_ == null) { + ensureDeploymentFailureResolutionInfoIsMutable(); + deploymentFailureResolutionInfo_.add(index, builderForValue.build()); + onChanged(); + } else { + deploymentFailureResolutionInfoBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The call to actions associated with the deployment issue.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.DeploymentFailureResolutionInfo deployment_failure_resolution_info = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllDeploymentFailureResolutionInfo( + java.lang.Iterable< + ? extends com.google.cloud.designcenter.v1.DeploymentFailureResolutionInfo> + values) { + if (deploymentFailureResolutionInfoBuilder_ == null) { + ensureDeploymentFailureResolutionInfoIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, deploymentFailureResolutionInfo_); + onChanged(); + } else { + deploymentFailureResolutionInfoBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Output only. The call to actions associated with the deployment issue.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.DeploymentFailureResolutionInfo deployment_failure_resolution_info = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDeploymentFailureResolutionInfo() { + if (deploymentFailureResolutionInfoBuilder_ == null) { + deploymentFailureResolutionInfo_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + deploymentFailureResolutionInfoBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Output only. The call to actions associated with the deployment issue.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.DeploymentFailureResolutionInfo deployment_failure_resolution_info = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeDeploymentFailureResolutionInfo(int index) { + if (deploymentFailureResolutionInfoBuilder_ == null) { + ensureDeploymentFailureResolutionInfoIsMutable(); + deploymentFailureResolutionInfo_.remove(index); + onChanged(); + } else { + deploymentFailureResolutionInfoBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Output only. The call to actions associated with the deployment issue.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.DeploymentFailureResolutionInfo deployment_failure_resolution_info = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.DeploymentFailureResolutionInfo.Builder + getDeploymentFailureResolutionInfoBuilder(int index) { + return internalGetDeploymentFailureResolutionInfoFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Output only. The call to actions associated with the deployment issue.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.DeploymentFailureResolutionInfo deployment_failure_resolution_info = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.DeploymentFailureResolutionInfoOrBuilder + getDeploymentFailureResolutionInfoOrBuilder(int index) { + if (deploymentFailureResolutionInfoBuilder_ == null) { + return deploymentFailureResolutionInfo_.get(index); + } else { + return deploymentFailureResolutionInfoBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Output only. The call to actions associated with the deployment issue.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.DeploymentFailureResolutionInfo deployment_failure_resolution_info = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends com.google.cloud.designcenter.v1.DeploymentFailureResolutionInfoOrBuilder> + getDeploymentFailureResolutionInfoOrBuilderList() { + if (deploymentFailureResolutionInfoBuilder_ != null) { + return deploymentFailureResolutionInfoBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(deploymentFailureResolutionInfo_); + } + } + + /** + * + * + *
+     * Output only. The call to actions associated with the deployment issue.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.DeploymentFailureResolutionInfo deployment_failure_resolution_info = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.DeploymentFailureResolutionInfo.Builder + addDeploymentFailureResolutionInfoBuilder() { + return internalGetDeploymentFailureResolutionInfoFieldBuilder() + .addBuilder( + com.google.cloud.designcenter.v1.DeploymentFailureResolutionInfo + .getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. The call to actions associated with the deployment issue.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.DeploymentFailureResolutionInfo deployment_failure_resolution_info = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.DeploymentFailureResolutionInfo.Builder + addDeploymentFailureResolutionInfoBuilder(int index) { + return internalGetDeploymentFailureResolutionInfoFieldBuilder() + .addBuilder( + index, + com.google.cloud.designcenter.v1.DeploymentFailureResolutionInfo + .getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. The call to actions associated with the deployment issue.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.DeploymentFailureResolutionInfo deployment_failure_resolution_info = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getDeploymentFailureResolutionInfoBuilderList() { + return internalGetDeploymentFailureResolutionInfoFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.DeploymentFailureResolutionInfo, + com.google.cloud.designcenter.v1.DeploymentFailureResolutionInfo.Builder, + com.google.cloud.designcenter.v1.DeploymentFailureResolutionInfoOrBuilder> + internalGetDeploymentFailureResolutionInfoFieldBuilder() { + if (deploymentFailureResolutionInfoBuilder_ == null) { + deploymentFailureResolutionInfoBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.DeploymentFailureResolutionInfo, + com.google.cloud.designcenter.v1.DeploymentFailureResolutionInfo.Builder, + com.google.cloud.designcenter.v1.DeploymentFailureResolutionInfoOrBuilder>( + deploymentFailureResolutionInfo_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + deploymentFailureResolutionInfo_ = null; + } + return deploymentFailureResolutionInfoBuilder_; + } + + private java.lang.Object errorMessage_ = ""; + + /** + * + * + *
+     * Output only. Stores errors generated by Infra Manager, as well as all
+     * non-internal errors (such as INVALID_ARGUMENT) that occur before
+     * initiating the deployment.
+     * 
+ * + * string error_message = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The errorMessage. + */ + public java.lang.String getErrorMessage() { + java.lang.Object ref = errorMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + errorMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Stores errors generated by Infra Manager, as well as all
+     * non-internal errors (such as INVALID_ARGUMENT) that occur before
+     * initiating the deployment.
+     * 
+ * + * string error_message = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for errorMessage. + */ + public com.google.protobuf.ByteString getErrorMessageBytes() { + java.lang.Object ref = errorMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + errorMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Stores errors generated by Infra Manager, as well as all
+     * non-internal errors (such as INVALID_ARGUMENT) that occur before
+     * initiating the deployment.
+     * 
+ * + * string error_message = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The errorMessage to set. + * @return This builder for chaining. + */ + public Builder setErrorMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + errorMessage_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Stores errors generated by Infra Manager, as well as all
+     * non-internal errors (such as INVALID_ARGUMENT) that occur before
+     * initiating the deployment.
+     * 
+ * + * string error_message = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearErrorMessage() { + errorMessage_ = getDefaultInstance().getErrorMessage(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Stores errors generated by Infra Manager, as well as all
+     * non-internal errors (such as INVALID_ARGUMENT) that occur before
+     * initiating the deployment.
+     * 
+ * + * string error_message = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for errorMessage to set. + * @return This builder for chaining. + */ + public Builder setErrorMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + errorMessage_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.DeploymentError) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.DeploymentError) + private static final com.google.cloud.designcenter.v1.DeploymentError DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.DeploymentError(); + } + + public static com.google.cloud.designcenter.v1.DeploymentError getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeploymentError parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.DeploymentError getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentErrorOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentErrorOrBuilder.java new file mode 100644 index 000000000000..0ed99b7053b9 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentErrorOrBuilder.java @@ -0,0 +1,284 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface DeploymentErrorOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.DeploymentError) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The error type based on the deployment error code.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentError.ErrorType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + + /** + * + * + *
+   * Output only. The error type based on the deployment error code.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentError.ErrorType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The type. + */ + com.google.cloud.designcenter.v1.DeploymentError.ErrorType getType(); + + /** + * + * + *
+   * Output only. The deployment error code. Based on Infrastructure Manager
+   * error codes.
+   * 
+ * + * + * .google.cloud.config.v1.Deployment.ErrorCode code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for code. + */ + int getCodeValue(); + + /** + * + * + *
+   * Output only. The deployment error code. Based on Infrastructure Manager
+   * error codes.
+   * 
+ * + * + * .google.cloud.config.v1.Deployment.ErrorCode code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The code. + */ + com.google.cloud.config.v1.Deployment.ErrorCode getCode(); + + /** + * + * + *
+   * Output only. The error message associated with the deployment.
+   * 
+ * + * + * repeated .google.cloud.config.v1.TerraformError tf_errors = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getTfErrorsList(); + + /** + * + * + *
+   * Output only. The error message associated with the deployment.
+   * 
+ * + * + * repeated .google.cloud.config.v1.TerraformError tf_errors = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.config.v1.TerraformError getTfErrors(int index); + + /** + * + * + *
+   * Output only. The error message associated with the deployment.
+   * 
+ * + * + * repeated .google.cloud.config.v1.TerraformError tf_errors = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getTfErrorsCount(); + + /** + * + * + *
+   * Output only. The error message associated with the deployment.
+   * 
+ * + * + * repeated .google.cloud.config.v1.TerraformError tf_errors = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getTfErrorsOrBuilderList(); + + /** + * + * + *
+   * Output only. The error message associated with the deployment.
+   * 
+ * + * + * repeated .google.cloud.config.v1.TerraformError tf_errors = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.config.v1.TerraformErrorOrBuilder getTfErrorsOrBuilder(int index); + + /** + * + * + *
+   * Output only. Human readable string that summarizes the deployment error
+   * issue.
+   * 
+ * + * string detail = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The detail. + */ + java.lang.String getDetail(); + + /** + * + * + *
+   * Output only. Human readable string that summarizes the deployment error
+   * issue.
+   * 
+ * + * string detail = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for detail. + */ + com.google.protobuf.ByteString getDetailBytes(); + + /** + * + * + *
+   * Output only. The call to actions associated with the deployment issue.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.DeploymentFailureResolutionInfo deployment_failure_resolution_info = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getDeploymentFailureResolutionInfoList(); + + /** + * + * + *
+   * Output only. The call to actions associated with the deployment issue.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.DeploymentFailureResolutionInfo deployment_failure_resolution_info = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.DeploymentFailureResolutionInfo + getDeploymentFailureResolutionInfo(int index); + + /** + * + * + *
+   * Output only. The call to actions associated with the deployment issue.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.DeploymentFailureResolutionInfo deployment_failure_resolution_info = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getDeploymentFailureResolutionInfoCount(); + + /** + * + * + *
+   * Output only. The call to actions associated with the deployment issue.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.DeploymentFailureResolutionInfo deployment_failure_resolution_info = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + ? extends com.google.cloud.designcenter.v1.DeploymentFailureResolutionInfoOrBuilder> + getDeploymentFailureResolutionInfoOrBuilderList(); + + /** + * + * + *
+   * Output only. The call to actions associated with the deployment issue.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.DeploymentFailureResolutionInfo deployment_failure_resolution_info = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.DeploymentFailureResolutionInfoOrBuilder + getDeploymentFailureResolutionInfoOrBuilder(int index); + + /** + * + * + *
+   * Output only. Stores errors generated by Infra Manager, as well as all
+   * non-internal errors (such as INVALID_ARGUMENT) that occur before
+   * initiating the deployment.
+   * 
+ * + * string error_message = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The errorMessage. + */ + java.lang.String getErrorMessage(); + + /** + * + * + *
+   * Output only. Stores errors generated by Infra Manager, as well as all
+   * non-internal errors (such as INVALID_ARGUMENT) that occur before
+   * initiating the deployment.
+   * 
+ * + * string error_message = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for errorMessage. + */ + com.google.protobuf.ByteString getErrorMessageBytes(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentFailureResolutionInfo.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentFailureResolutionInfo.java new file mode 100644 index 000000000000..20be7f07c86f --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentFailureResolutionInfo.java @@ -0,0 +1,982 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * The call to action associated with the deployment issue.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.DeploymentFailureResolutionInfo} + */ +@com.google.protobuf.Generated +public final class DeploymentFailureResolutionInfo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.DeploymentFailureResolutionInfo) + DeploymentFailureResolutionInfoOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DeploymentFailureResolutionInfo"); + } + + // Use DeploymentFailureResolutionInfo.newBuilder() to construct. + private DeploymentFailureResolutionInfo(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeploymentFailureResolutionInfo() { + resolutionLink_ = ""; + resolutionMessage_ = ""; + resolutionLinkText_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_DeploymentFailureResolutionInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_DeploymentFailureResolutionInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.DeploymentFailureResolutionInfo.class, + com.google.cloud.designcenter.v1.DeploymentFailureResolutionInfo.Builder.class); + } + + public static final int RESOLUTION_LINK_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object resolutionLink_ = ""; + + /** + * + * + *
+   * Output only. Link for the call to action.
+   * 
+ * + * string resolution_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The resolutionLink. + */ + @java.lang.Override + public java.lang.String getResolutionLink() { + java.lang.Object ref = resolutionLink_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resolutionLink_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. Link for the call to action.
+   * 
+ * + * string resolution_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for resolutionLink. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResolutionLinkBytes() { + java.lang.Object ref = resolutionLink_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resolutionLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOLUTION_MESSAGE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object resolutionMessage_ = ""; + + /** + * + * + *
+   * Output only. Elaborative error resolution message.
+   * 
+ * + * string resolution_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The resolutionMessage. + */ + @java.lang.Override + public java.lang.String getResolutionMessage() { + java.lang.Object ref = resolutionMessage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resolutionMessage_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. Elaborative error resolution message.
+   * 
+ * + * string resolution_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for resolutionMessage. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResolutionMessageBytes() { + java.lang.Object ref = resolutionMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resolutionMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOLUTION_LINK_TEXT_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object resolutionLinkText_ = ""; + + /** + * + * + *
+   * Output only. Call to action link text.
+   * 
+ * + * string resolution_link_text = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The resolutionLinkText. + */ + @java.lang.Override + public java.lang.String getResolutionLinkText() { + java.lang.Object ref = resolutionLinkText_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resolutionLinkText_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. Call to action link text.
+   * 
+ * + * string resolution_link_text = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for resolutionLinkText. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResolutionLinkTextBytes() { + java.lang.Object ref = resolutionLinkText_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resolutionLinkText_ = 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.GeneratedMessage.isStringEmpty(resolutionLink_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, resolutionLink_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(resolutionMessage_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, resolutionMessage_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(resolutionLinkText_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, resolutionLinkText_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(resolutionLink_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, resolutionLink_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(resolutionMessage_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, resolutionMessage_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(resolutionLinkText_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, resolutionLinkText_); + } + 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.designcenter.v1.DeploymentFailureResolutionInfo)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.DeploymentFailureResolutionInfo other = + (com.google.cloud.designcenter.v1.DeploymentFailureResolutionInfo) obj; + + if (!getResolutionLink().equals(other.getResolutionLink())) return false; + if (!getResolutionMessage().equals(other.getResolutionMessage())) return false; + if (!getResolutionLinkText().equals(other.getResolutionLinkText())) 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) + RESOLUTION_LINK_FIELD_NUMBER; + hash = (53 * hash) + getResolutionLink().hashCode(); + hash = (37 * hash) + RESOLUTION_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getResolutionMessage().hashCode(); + hash = (37 * hash) + RESOLUTION_LINK_TEXT_FIELD_NUMBER; + hash = (53 * hash) + getResolutionLinkText().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.DeploymentFailureResolutionInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeploymentFailureResolutionInfo 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.designcenter.v1.DeploymentFailureResolutionInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeploymentFailureResolutionInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeploymentFailureResolutionInfo parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeploymentFailureResolutionInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeploymentFailureResolutionInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeploymentFailureResolutionInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeploymentFailureResolutionInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeploymentFailureResolutionInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeploymentFailureResolutionInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeploymentFailureResolutionInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.DeploymentFailureResolutionInfo 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * The call to action associated with the deployment issue.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.DeploymentFailureResolutionInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.DeploymentFailureResolutionInfo) + com.google.cloud.designcenter.v1.DeploymentFailureResolutionInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_DeploymentFailureResolutionInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_DeploymentFailureResolutionInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.DeploymentFailureResolutionInfo.class, + com.google.cloud.designcenter.v1.DeploymentFailureResolutionInfo.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.DeploymentFailureResolutionInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + resolutionLink_ = ""; + resolutionMessage_ = ""; + resolutionLinkText_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_DeploymentFailureResolutionInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeploymentFailureResolutionInfo + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.DeploymentFailureResolutionInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeploymentFailureResolutionInfo build() { + com.google.cloud.designcenter.v1.DeploymentFailureResolutionInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeploymentFailureResolutionInfo buildPartial() { + com.google.cloud.designcenter.v1.DeploymentFailureResolutionInfo result = + new com.google.cloud.designcenter.v1.DeploymentFailureResolutionInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.DeploymentFailureResolutionInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.resolutionLink_ = resolutionLink_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.resolutionMessage_ = resolutionMessage_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.resolutionLinkText_ = resolutionLinkText_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.DeploymentFailureResolutionInfo) { + return mergeFrom((com.google.cloud.designcenter.v1.DeploymentFailureResolutionInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.designcenter.v1.DeploymentFailureResolutionInfo other) { + if (other + == com.google.cloud.designcenter.v1.DeploymentFailureResolutionInfo.getDefaultInstance()) + return this; + if (!other.getResolutionLink().isEmpty()) { + resolutionLink_ = other.resolutionLink_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getResolutionMessage().isEmpty()) { + resolutionMessage_ = other.resolutionMessage_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getResolutionLinkText().isEmpty()) { + resolutionLinkText_ = other.resolutionLinkText_; + 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: + { + resolutionLink_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + resolutionMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + resolutionLinkText_ = 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 resolutionLink_ = ""; + + /** + * + * + *
+     * Output only. Link for the call to action.
+     * 
+ * + * string resolution_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The resolutionLink. + */ + public java.lang.String getResolutionLink() { + java.lang.Object ref = resolutionLink_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resolutionLink_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Link for the call to action.
+     * 
+ * + * string resolution_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for resolutionLink. + */ + public com.google.protobuf.ByteString getResolutionLinkBytes() { + java.lang.Object ref = resolutionLink_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resolutionLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Link for the call to action.
+     * 
+ * + * string resolution_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The resolutionLink to set. + * @return This builder for chaining. + */ + public Builder setResolutionLink(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + resolutionLink_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Link for the call to action.
+     * 
+ * + * string resolution_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearResolutionLink() { + resolutionLink_ = getDefaultInstance().getResolutionLink(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Link for the call to action.
+     * 
+ * + * string resolution_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for resolutionLink to set. + * @return This builder for chaining. + */ + public Builder setResolutionLinkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resolutionLink_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object resolutionMessage_ = ""; + + /** + * + * + *
+     * Output only. Elaborative error resolution message.
+     * 
+ * + * string resolution_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The resolutionMessage. + */ + public java.lang.String getResolutionMessage() { + java.lang.Object ref = resolutionMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resolutionMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Elaborative error resolution message.
+     * 
+ * + * string resolution_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for resolutionMessage. + */ + public com.google.protobuf.ByteString getResolutionMessageBytes() { + java.lang.Object ref = resolutionMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resolutionMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Elaborative error resolution message.
+     * 
+ * + * string resolution_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The resolutionMessage to set. + * @return This builder for chaining. + */ + public Builder setResolutionMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + resolutionMessage_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Elaborative error resolution message.
+     * 
+ * + * string resolution_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearResolutionMessage() { + resolutionMessage_ = getDefaultInstance().getResolutionMessage(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Elaborative error resolution message.
+     * 
+ * + * string resolution_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for resolutionMessage to set. + * @return This builder for chaining. + */ + public Builder setResolutionMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resolutionMessage_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object resolutionLinkText_ = ""; + + /** + * + * + *
+     * Output only. Call to action link text.
+     * 
+ * + * string resolution_link_text = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The resolutionLinkText. + */ + public java.lang.String getResolutionLinkText() { + java.lang.Object ref = resolutionLinkText_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resolutionLinkText_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Call to action link text.
+     * 
+ * + * string resolution_link_text = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for resolutionLinkText. + */ + public com.google.protobuf.ByteString getResolutionLinkTextBytes() { + java.lang.Object ref = resolutionLinkText_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resolutionLinkText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Call to action link text.
+     * 
+ * + * string resolution_link_text = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The resolutionLinkText to set. + * @return This builder for chaining. + */ + public Builder setResolutionLinkText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + resolutionLinkText_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Call to action link text.
+     * 
+ * + * string resolution_link_text = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearResolutionLinkText() { + resolutionLinkText_ = getDefaultInstance().getResolutionLinkText(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Call to action link text.
+     * 
+ * + * string resolution_link_text = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for resolutionLinkText to set. + * @return This builder for chaining. + */ + public Builder setResolutionLinkTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resolutionLinkText_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.DeploymentFailureResolutionInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.DeploymentFailureResolutionInfo) + private static final com.google.cloud.designcenter.v1.DeploymentFailureResolutionInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.DeploymentFailureResolutionInfo(); + } + + public static com.google.cloud.designcenter.v1.DeploymentFailureResolutionInfo + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeploymentFailureResolutionInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.DeploymentFailureResolutionInfo + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentFailureResolutionInfoOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentFailureResolutionInfoOrBuilder.java new file mode 100644 index 000000000000..8cbfe36c8b84 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentFailureResolutionInfoOrBuilder.java @@ -0,0 +1,106 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface DeploymentFailureResolutionInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.DeploymentFailureResolutionInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Link for the call to action.
+   * 
+ * + * string resolution_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The resolutionLink. + */ + java.lang.String getResolutionLink(); + + /** + * + * + *
+   * Output only. Link for the call to action.
+   * 
+ * + * string resolution_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for resolutionLink. + */ + com.google.protobuf.ByteString getResolutionLinkBytes(); + + /** + * + * + *
+   * Output only. Elaborative error resolution message.
+   * 
+ * + * string resolution_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The resolutionMessage. + */ + java.lang.String getResolutionMessage(); + + /** + * + * + *
+   * Output only. Elaborative error resolution message.
+   * 
+ * + * string resolution_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for resolutionMessage. + */ + com.google.protobuf.ByteString getResolutionMessageBytes(); + + /** + * + * + *
+   * Output only. Call to action link text.
+   * 
+ * + * string resolution_link_text = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The resolutionLinkText. + */ + java.lang.String getResolutionLinkText(); + + /** + * + * + *
+   * Output only. Call to action link text.
+   * 
+ * + * string resolution_link_text = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for resolutionLinkText. + */ + com.google.protobuf.ByteString getResolutionLinkTextBytes(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentGroupMetadata.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentGroupMetadata.java new file mode 100644 index 000000000000..a24ec27f42d9 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentGroupMetadata.java @@ -0,0 +1,1116 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Metadata for the infra manager deployment group. A deployment group in
+ * Infrastructure Manager is a logical grouping of one or more deployments.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.DeploymentGroupMetadata} + */ +@com.google.protobuf.Generated +public final class DeploymentGroupMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.DeploymentGroupMetadata) + DeploymentGroupMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DeploymentGroupMetadata"); + } + + // Use DeploymentGroupMetadata.newBuilder() to construct. + private DeploymentGroupMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeploymentGroupMetadata() { + deploymentGroup_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_DeploymentGroupMetadata_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 2: + return internalGetDeploymentMetadataMap(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_DeploymentGroupMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.DeploymentGroupMetadata.class, + com.google.cloud.designcenter.v1.DeploymentGroupMetadata.Builder.class); + } + + public static final int DEPLOYMENT_GROUP_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object deploymentGroup_ = ""; + + /** + * + * + *
+   * Output only. The deployment group name.
+   * Format:
+   * projects/{project}/locations/{location}/deploymentGroup/{deployment_group}
+   * 
+ * + * string deployment_group = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The deploymentGroup. + */ + @java.lang.Override + public java.lang.String getDeploymentGroup() { + java.lang.Object ref = deploymentGroup_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deploymentGroup_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The deployment group name.
+   * Format:
+   * projects/{project}/locations/{location}/deploymentGroup/{deployment_group}
+   * 
+ * + * string deployment_group = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for deploymentGroup. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDeploymentGroupBytes() { + java.lang.Object ref = deploymentGroup_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deploymentGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEPLOYMENT_METADATA_MAP_FIELD_NUMBER = 2; + + private static final class DeploymentMetadataMapDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.designcenter.v1.DeploymentMetadata> + defaultEntry = + com.google.protobuf.MapEntry + . + newDefaultInstance( + com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_DeploymentGroupMetadata_DeploymentMetadataMapEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.designcenter.v1.DeploymentMetadata.getDefaultInstance()); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.designcenter.v1.DeploymentMetadata> + deploymentMetadataMap_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.designcenter.v1.DeploymentMetadata> + internalGetDeploymentMetadataMap() { + if (deploymentMetadataMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + DeploymentMetadataMapDefaultEntryHolder.defaultEntry); + } + return deploymentMetadataMap_; + } + + public int getDeploymentMetadataMapCount() { + return internalGetDeploymentMetadataMap().getMap().size(); + } + + /** + * + * + *
+   * Output only. Map of component name to deployment metadata for the
+   * component. Key format:
+   * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/components/{component}
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.DeploymentMetadata> deployment_metadata_map = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public boolean containsDeploymentMetadataMap(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetDeploymentMetadataMap().getMap().containsKey(key); + } + + /** Use {@link #getDeploymentMetadataMapMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getDeploymentMetadataMap() { + return getDeploymentMetadataMapMap(); + } + + /** + * + * + *
+   * Output only. Map of component name to deployment metadata for the
+   * component. Key format:
+   * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/components/{component}
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.DeploymentMetadata> deployment_metadata_map = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.Map + getDeploymentMetadataMapMap() { + return internalGetDeploymentMetadataMap().getMap(); + } + + /** + * + * + *
+   * Output only. Map of component name to deployment metadata for the
+   * component. Key format:
+   * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/components/{component}
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.DeploymentMetadata> deployment_metadata_map = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.designcenter.v1.DeploymentMetadata + getDeploymentMetadataMapOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.designcenter.v1.DeploymentMetadata defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetDeploymentMetadataMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+   * Output only. Map of component name to deployment metadata for the
+   * component. Key format:
+   * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/components/{component}
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.DeploymentMetadata> deployment_metadata_map = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.DeploymentMetadata getDeploymentMetadataMapOrThrow( + java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetDeploymentMetadataMap().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(deploymentGroup_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, deploymentGroup_); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, + internalGetDeploymentMetadataMap(), + DeploymentMetadataMapDefaultEntryHolder.defaultEntry, + 2); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(deploymentGroup_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, deploymentGroup_); + } + for (java.util.Map.Entry + entry : internalGetDeploymentMetadataMap().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.designcenter.v1.DeploymentMetadata> + deploymentMetadataMap__ = + DeploymentMetadataMapDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, deploymentMetadataMap__); + } + 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.designcenter.v1.DeploymentGroupMetadata)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.DeploymentGroupMetadata other = + (com.google.cloud.designcenter.v1.DeploymentGroupMetadata) obj; + + if (!getDeploymentGroup().equals(other.getDeploymentGroup())) return false; + if (!internalGetDeploymentMetadataMap().equals(other.internalGetDeploymentMetadataMap())) + 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) + DEPLOYMENT_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getDeploymentGroup().hashCode(); + if (!internalGetDeploymentMetadataMap().getMap().isEmpty()) { + hash = (37 * hash) + DEPLOYMENT_METADATA_MAP_FIELD_NUMBER; + hash = (53 * hash) + internalGetDeploymentMetadataMap().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.DeploymentGroupMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeploymentGroupMetadata 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.designcenter.v1.DeploymentGroupMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeploymentGroupMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeploymentGroupMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeploymentGroupMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeploymentGroupMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeploymentGroupMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeploymentGroupMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeploymentGroupMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeploymentGroupMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeploymentGroupMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.DeploymentGroupMetadata 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Metadata for the infra manager deployment group. A deployment group in
+   * Infrastructure Manager is a logical grouping of one or more deployments.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.DeploymentGroupMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.DeploymentGroupMetadata) + com.google.cloud.designcenter.v1.DeploymentGroupMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_DeploymentGroupMetadata_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 2: + return internalGetDeploymentMetadataMap(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 2: + return internalGetMutableDeploymentMetadataMap(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_DeploymentGroupMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.DeploymentGroupMetadata.class, + com.google.cloud.designcenter.v1.DeploymentGroupMetadata.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.DeploymentGroupMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + deploymentGroup_ = ""; + internalGetMutableDeploymentMetadataMap().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_DeploymentGroupMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeploymentGroupMetadata getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.DeploymentGroupMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeploymentGroupMetadata build() { + com.google.cloud.designcenter.v1.DeploymentGroupMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeploymentGroupMetadata buildPartial() { + com.google.cloud.designcenter.v1.DeploymentGroupMetadata result = + new com.google.cloud.designcenter.v1.DeploymentGroupMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.DeploymentGroupMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.deploymentGroup_ = deploymentGroup_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.deploymentMetadataMap_ = + internalGetDeploymentMetadataMap() + .build(DeploymentMetadataMapDefaultEntryHolder.defaultEntry); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.DeploymentGroupMetadata) { + return mergeFrom((com.google.cloud.designcenter.v1.DeploymentGroupMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.DeploymentGroupMetadata other) { + if (other == com.google.cloud.designcenter.v1.DeploymentGroupMetadata.getDefaultInstance()) + return this; + if (!other.getDeploymentGroup().isEmpty()) { + deploymentGroup_ = other.deploymentGroup_; + bitField0_ |= 0x00000001; + onChanged(); + } + internalGetMutableDeploymentMetadataMap().mergeFrom(other.internalGetDeploymentMetadataMap()); + bitField0_ |= 0x00000002; + 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: + { + deploymentGroup_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.designcenter.v1.DeploymentMetadata> + deploymentMetadataMap__ = + input.readMessage( + DeploymentMetadataMapDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableDeploymentMetadataMap() + .ensureBuilderMap() + .put(deploymentMetadataMap__.getKey(), deploymentMetadataMap__.getValue()); + 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 deploymentGroup_ = ""; + + /** + * + * + *
+     * Output only. The deployment group name.
+     * Format:
+     * projects/{project}/locations/{location}/deploymentGroup/{deployment_group}
+     * 
+ * + * string deployment_group = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The deploymentGroup. + */ + public java.lang.String getDeploymentGroup() { + java.lang.Object ref = deploymentGroup_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deploymentGroup_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The deployment group name.
+     * Format:
+     * projects/{project}/locations/{location}/deploymentGroup/{deployment_group}
+     * 
+ * + * string deployment_group = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for deploymentGroup. + */ + public com.google.protobuf.ByteString getDeploymentGroupBytes() { + java.lang.Object ref = deploymentGroup_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deploymentGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The deployment group name.
+     * Format:
+     * projects/{project}/locations/{location}/deploymentGroup/{deployment_group}
+     * 
+ * + * string deployment_group = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The deploymentGroup to set. + * @return This builder for chaining. + */ + public Builder setDeploymentGroup(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + deploymentGroup_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The deployment group name.
+     * Format:
+     * projects/{project}/locations/{location}/deploymentGroup/{deployment_group}
+     * 
+ * + * string deployment_group = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDeploymentGroup() { + deploymentGroup_ = getDefaultInstance().getDeploymentGroup(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The deployment group name.
+     * Format:
+     * projects/{project}/locations/{location}/deploymentGroup/{deployment_group}
+     * 
+ * + * string deployment_group = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for deploymentGroup to set. + * @return This builder for chaining. + */ + public Builder setDeploymentGroupBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + deploymentGroup_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private static final class DeploymentMetadataMapConverter + implements com.google.protobuf.MapFieldBuilder.Converter< + java.lang.String, + com.google.cloud.designcenter.v1.DeploymentMetadataOrBuilder, + com.google.cloud.designcenter.v1.DeploymentMetadata> { + @java.lang.Override + public com.google.cloud.designcenter.v1.DeploymentMetadata build( + com.google.cloud.designcenter.v1.DeploymentMetadataOrBuilder val) { + if (val instanceof com.google.cloud.designcenter.v1.DeploymentMetadata) { + return (com.google.cloud.designcenter.v1.DeploymentMetadata) val; + } + return ((com.google.cloud.designcenter.v1.DeploymentMetadata.Builder) val).build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.designcenter.v1.DeploymentMetadata> + defaultEntry() { + return DeploymentMetadataMapDefaultEntryHolder.defaultEntry; + } + } + ; + + private static final DeploymentMetadataMapConverter deploymentMetadataMapConverter = + new DeploymentMetadataMapConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.designcenter.v1.DeploymentMetadataOrBuilder, + com.google.cloud.designcenter.v1.DeploymentMetadata, + com.google.cloud.designcenter.v1.DeploymentMetadata.Builder> + deploymentMetadataMap_; + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.designcenter.v1.DeploymentMetadataOrBuilder, + com.google.cloud.designcenter.v1.DeploymentMetadata, + com.google.cloud.designcenter.v1.DeploymentMetadata.Builder> + internalGetDeploymentMetadataMap() { + if (deploymentMetadataMap_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(deploymentMetadataMapConverter); + } + return deploymentMetadataMap_; + } + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.designcenter.v1.DeploymentMetadataOrBuilder, + com.google.cloud.designcenter.v1.DeploymentMetadata, + com.google.cloud.designcenter.v1.DeploymentMetadata.Builder> + internalGetMutableDeploymentMetadataMap() { + if (deploymentMetadataMap_ == null) { + deploymentMetadataMap_ = + new com.google.protobuf.MapFieldBuilder<>(deploymentMetadataMapConverter); + } + bitField0_ |= 0x00000002; + onChanged(); + return deploymentMetadataMap_; + } + + public int getDeploymentMetadataMapCount() { + return internalGetDeploymentMetadataMap().ensureBuilderMap().size(); + } + + /** + * + * + *
+     * Output only. Map of component name to deployment metadata for the
+     * component. Key format:
+     * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/components/{component}
+     * 
+ * + * + * map<string, .google.cloud.designcenter.v1.DeploymentMetadata> deployment_metadata_map = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public boolean containsDeploymentMetadataMap(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetDeploymentMetadataMap().ensureBuilderMap().containsKey(key); + } + + /** Use {@link #getDeploymentMetadataMapMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getDeploymentMetadataMap() { + return getDeploymentMetadataMapMap(); + } + + /** + * + * + *
+     * Output only. Map of component name to deployment metadata for the
+     * component. Key format:
+     * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/components/{component}
+     * 
+ * + * + * map<string, .google.cloud.designcenter.v1.DeploymentMetadata> deployment_metadata_map = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.Map + getDeploymentMetadataMapMap() { + return internalGetDeploymentMetadataMap().getImmutableMap(); + } + + /** + * + * + *
+     * Output only. Map of component name to deployment metadata for the
+     * component. Key format:
+     * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/components/{component}
+     * 
+ * + * + * map<string, .google.cloud.designcenter.v1.DeploymentMetadata> deployment_metadata_map = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.designcenter.v1.DeploymentMetadata + getDeploymentMetadataMapOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.designcenter.v1.DeploymentMetadata defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetMutableDeploymentMetadataMap().ensureBuilderMap(); + return map.containsKey(key) + ? deploymentMetadataMapConverter.build(map.get(key)) + : defaultValue; + } + + /** + * + * + *
+     * Output only. Map of component name to deployment metadata for the
+     * component. Key format:
+     * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/components/{component}
+     * 
+ * + * + * map<string, .google.cloud.designcenter.v1.DeploymentMetadata> deployment_metadata_map = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.DeploymentMetadata getDeploymentMetadataMapOrThrow( + java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetMutableDeploymentMetadataMap().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return deploymentMetadataMapConverter.build(map.get(key)); + } + + public Builder clearDeploymentMetadataMap() { + bitField0_ = (bitField0_ & ~0x00000002); + internalGetMutableDeploymentMetadataMap().clear(); + return this; + } + + /** + * + * + *
+     * Output only. Map of component name to deployment metadata for the
+     * component. Key format:
+     * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/components/{component}
+     * 
+ * + * + * map<string, .google.cloud.designcenter.v1.DeploymentMetadata> deployment_metadata_map = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeDeploymentMetadataMap(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableDeploymentMetadataMap().ensureBuilderMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map + getMutableDeploymentMetadataMap() { + bitField0_ |= 0x00000002; + return internalGetMutableDeploymentMetadataMap().ensureMessageMap(); + } + + /** + * + * + *
+     * Output only. Map of component name to deployment metadata for the
+     * component. Key format:
+     * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/components/{component}
+     * 
+ * + * + * map<string, .google.cloud.designcenter.v1.DeploymentMetadata> deployment_metadata_map = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder putDeploymentMetadataMap( + java.lang.String key, com.google.cloud.designcenter.v1.DeploymentMetadata value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableDeploymentMetadataMap().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00000002; + return this; + } + + /** + * + * + *
+     * Output only. Map of component name to deployment metadata for the
+     * component. Key format:
+     * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/components/{component}
+     * 
+ * + * + * map<string, .google.cloud.designcenter.v1.DeploymentMetadata> deployment_metadata_map = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder putAllDeploymentMetadataMap( + java.util.Map + values) { + for (java.util.Map.Entry< + java.lang.String, com.google.cloud.designcenter.v1.DeploymentMetadata> + e : values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableDeploymentMetadataMap().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00000002; + return this; + } + + /** + * + * + *
+     * Output only. Map of component name to deployment metadata for the
+     * component. Key format:
+     * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/components/{component}
+     * 
+ * + * + * map<string, .google.cloud.designcenter.v1.DeploymentMetadata> deployment_metadata_map = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.DeploymentMetadata.Builder + putDeploymentMetadataMapBuilderIfAbsent(java.lang.String key) { + java.util.Map + builderMap = internalGetMutableDeploymentMetadataMap().ensureBuilderMap(); + com.google.cloud.designcenter.v1.DeploymentMetadataOrBuilder entry = builderMap.get(key); + if (entry == null) { + entry = com.google.cloud.designcenter.v1.DeploymentMetadata.newBuilder(); + builderMap.put(key, entry); + } + if (entry instanceof com.google.cloud.designcenter.v1.DeploymentMetadata) { + entry = ((com.google.cloud.designcenter.v1.DeploymentMetadata) entry).toBuilder(); + builderMap.put(key, entry); + } + return (com.google.cloud.designcenter.v1.DeploymentMetadata.Builder) entry; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.DeploymentGroupMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.DeploymentGroupMetadata) + private static final com.google.cloud.designcenter.v1.DeploymentGroupMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.DeploymentGroupMetadata(); + } + + public static com.google.cloud.designcenter.v1.DeploymentGroupMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeploymentGroupMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.DeploymentGroupMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentGroupMetadataOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentGroupMetadataOrBuilder.java new file mode 100644 index 000000000000..ec9d19a96e5d --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentGroupMetadataOrBuilder.java @@ -0,0 +1,144 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface DeploymentGroupMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.DeploymentGroupMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The deployment group name.
+   * Format:
+   * projects/{project}/locations/{location}/deploymentGroup/{deployment_group}
+   * 
+ * + * string deployment_group = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The deploymentGroup. + */ + java.lang.String getDeploymentGroup(); + + /** + * + * + *
+   * Output only. The deployment group name.
+   * Format:
+   * projects/{project}/locations/{location}/deploymentGroup/{deployment_group}
+   * 
+ * + * string deployment_group = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for deploymentGroup. + */ + com.google.protobuf.ByteString getDeploymentGroupBytes(); + + /** + * + * + *
+   * Output only. Map of component name to deployment metadata for the
+   * component. Key format:
+   * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/components/{component}
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.DeploymentMetadata> deployment_metadata_map = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getDeploymentMetadataMapCount(); + + /** + * + * + *
+   * Output only. Map of component name to deployment metadata for the
+   * component. Key format:
+   * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/components/{component}
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.DeploymentMetadata> deployment_metadata_map = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + boolean containsDeploymentMetadataMap(java.lang.String key); + + /** Use {@link #getDeploymentMetadataMapMap()} instead. */ + @java.lang.Deprecated + java.util.Map + getDeploymentMetadataMap(); + + /** + * + * + *
+   * Output only. Map of component name to deployment metadata for the
+   * component. Key format:
+   * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/components/{component}
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.DeploymentMetadata> deployment_metadata_map = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.Map + getDeploymentMetadataMapMap(); + + /** + * + * + *
+   * Output only. Map of component name to deployment metadata for the
+   * component. Key format:
+   * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/components/{component}
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.DeploymentMetadata> deployment_metadata_map = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + /* nullable */ + com.google.cloud.designcenter.v1.DeploymentMetadata getDeploymentMetadataMapOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.designcenter.v1.DeploymentMetadata defaultValue); + + /** + * + * + *
+   * Output only. Map of component name to deployment metadata for the
+   * component. Key format:
+   * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/components/{component}
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.DeploymentMetadata> deployment_metadata_map = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.DeploymentMetadata getDeploymentMetadataMapOrThrow( + java.lang.String key); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentMetadata.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentMetadata.java new file mode 100644 index 000000000000..289265e2ecc3 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentMetadata.java @@ -0,0 +1,2325 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Deployment information for the application.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.DeploymentMetadata} + */ +@com.google.protobuf.Generated +public final class DeploymentMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.DeploymentMetadata) + DeploymentMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DeploymentMetadata"); + } + + // Use DeploymentMetadata.newBuilder() to construct. + private DeploymentMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeploymentMetadata() { + revision_ = ""; + componentOutputParameters_ = java.util.Collections.emptyList(); + build_ = ""; + workerPool_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_DeploymentMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_DeploymentMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.DeploymentMetadata.class, + com.google.cloud.designcenter.v1.DeploymentMetadata.Builder.class); + } + + private int bitField0_; + public static final int REVISION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object revision_ = ""; + + /** + * + * + *
+   * Output only. The revision of the deployment associated with the
+   * Application.
+   * 
+ * + * string revision = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The revision. + */ + @java.lang.Override + public java.lang.String getRevision() { + java.lang.Object ref = revision_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + revision_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The revision of the deployment associated with the
+   * Application.
+   * 
+ * + * string revision = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for revision. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRevisionBytes() { + java.lang.Object ref = revision_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + revision_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COMPONENT_OUTPUT_PARAMETERS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List + componentOutputParameters_; + + /** + * + * + *
+   * Output only. The component output parameters of the deployment.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentOutputParameters component_output_parameters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getComponentOutputParametersList() { + return componentOutputParameters_; + } + + /** + * + * + *
+   * Output only. The component output parameters of the deployment.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentOutputParameters component_output_parameters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.designcenter.v1.ComponentOutputParametersOrBuilder> + getComponentOutputParametersOrBuilderList() { + return componentOutputParameters_; + } + + /** + * + * + *
+   * Output only. The component output parameters of the deployment.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentOutputParameters component_output_parameters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getComponentOutputParametersCount() { + return componentOutputParameters_.size(); + } + + /** + * + * + *
+   * Output only. The component output parameters of the deployment.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentOutputParameters component_output_parameters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ComponentOutputParameters getComponentOutputParameters( + int index) { + return componentOutputParameters_.get(index); + } + + /** + * + * + *
+   * Output only. The component output parameters of the deployment.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentOutputParameters component_output_parameters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ComponentOutputParametersOrBuilder + getComponentOutputParametersOrBuilder(int index) { + return componentOutputParameters_.get(index); + } + + public static final int ERROR_FIELD_NUMBER = 3; + private com.google.cloud.designcenter.v1.DeploymentError error_; + + /** + * + * + *
+   * Output only. The error associated with the deployment.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentError error = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the error field is set. + */ + @java.lang.Override + public boolean hasError() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. The error associated with the deployment.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentError error = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The error. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.DeploymentError getError() { + return error_ == null + ? com.google.cloud.designcenter.v1.DeploymentError.getDefaultInstance() + : error_; + } + + /** + * + * + *
+   * Output only. The error associated with the deployment.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentError error = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.DeploymentErrorOrBuilder getErrorOrBuilder() { + return error_ == null + ? com.google.cloud.designcenter.v1.DeploymentError.getDefaultInstance() + : error_; + } + + public static final int BUILD_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object build_ = ""; + + /** + * + * + *
+   * Output only. Cloud Build instance UUID associated with this deployment.
+   * 
+ * + * string build = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The build. + */ + @java.lang.Override + public java.lang.String getBuild() { + java.lang.Object ref = build_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + build_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. Cloud Build instance UUID associated with this deployment.
+   * 
+ * + * string build = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for build. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBuildBytes() { + java.lang.Object ref = build_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + build_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WORKER_POOL_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object workerPool_ = ""; + + /** + * + * + *
+   * Output only. The user-specified Cloud Build worker pool resource used,
+   * which the system uses to deploy the application. Format:
+   * `projects/{project}/locations/{location}/workerPools/{workerPoolId}`.
+   * 
+ * + * string worker_pool = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The workerPool. + */ + @java.lang.Override + public java.lang.String getWorkerPool() { + java.lang.Object ref = workerPool_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workerPool_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The user-specified Cloud Build worker pool resource used,
+   * which the system uses to deploy the application. Format:
+   * `projects/{project}/locations/{location}/workerPools/{workerPoolId}`.
+   * 
+ * + * string worker_pool = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for workerPool. + */ + @java.lang.Override + public com.google.protobuf.ByteString getWorkerPoolBytes() { + java.lang.Object ref = workerPool_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + workerPool_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RETRY_ATTEMPTS_FIELD_NUMBER = 6; + private int retryAttempts_ = 0; + + /** + * + * + *
+   * Output only. The attempted number of deployment retries.
+   * 
+ * + * int32 retry_attempts = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The retryAttempts. + */ + @java.lang.Override + public int getRetryAttempts() { + return retryAttempts_; + } + + public static final int APPLICATION_OUTPUT_PARAMETERS_FIELD_NUMBER = 7; + private com.google.cloud.designcenter.v1.ApplicationOutputParameters applicationOutputParameters_; + + /** + * + * + *
+   * Output only. The application output parameters of the deployment.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationOutputParameters application_output_parameters = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the applicationOutputParameters field is set. + */ + @java.lang.Override + public boolean hasApplicationOutputParameters() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. The application output parameters of the deployment.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationOutputParameters application_output_parameters = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The applicationOutputParameters. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ApplicationOutputParameters + getApplicationOutputParameters() { + return applicationOutputParameters_ == null + ? com.google.cloud.designcenter.v1.ApplicationOutputParameters.getDefaultInstance() + : applicationOutputParameters_; + } + + /** + * + * + *
+   * Output only. The application output parameters of the deployment.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationOutputParameters application_output_parameters = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ApplicationOutputParametersOrBuilder + getApplicationOutputParametersOrBuilder() { + return applicationOutputParameters_ == null + ? com.google.cloud.designcenter.v1.ApplicationOutputParameters.getDefaultInstance() + : applicationOutputParameters_; + } + + 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.GeneratedMessage.isStringEmpty(revision_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, revision_); + } + for (int i = 0; i < componentOutputParameters_.size(); i++) { + output.writeMessage(2, componentOutputParameters_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getError()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(build_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, build_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workerPool_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, workerPool_); + } + if (retryAttempts_ != 0) { + output.writeInt32(6, retryAttempts_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(7, getApplicationOutputParameters()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(revision_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, revision_); + } + for (int i = 0; i < componentOutputParameters_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, componentOutputParameters_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getError()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(build_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, build_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workerPool_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, workerPool_); + } + if (retryAttempts_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, retryAttempts_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, getApplicationOutputParameters()); + } + 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.designcenter.v1.DeploymentMetadata)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.DeploymentMetadata other = + (com.google.cloud.designcenter.v1.DeploymentMetadata) obj; + + if (!getRevision().equals(other.getRevision())) return false; + if (!getComponentOutputParametersList().equals(other.getComponentOutputParametersList())) + return false; + if (hasError() != other.hasError()) return false; + if (hasError()) { + if (!getError().equals(other.getError())) return false; + } + if (!getBuild().equals(other.getBuild())) return false; + if (!getWorkerPool().equals(other.getWorkerPool())) return false; + if (getRetryAttempts() != other.getRetryAttempts()) return false; + if (hasApplicationOutputParameters() != other.hasApplicationOutputParameters()) return false; + if (hasApplicationOutputParameters()) { + if (!getApplicationOutputParameters().equals(other.getApplicationOutputParameters())) + 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) + REVISION_FIELD_NUMBER; + hash = (53 * hash) + getRevision().hashCode(); + if (getComponentOutputParametersCount() > 0) { + hash = (37 * hash) + COMPONENT_OUTPUT_PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getComponentOutputParametersList().hashCode(); + } + if (hasError()) { + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + } + hash = (37 * hash) + BUILD_FIELD_NUMBER; + hash = (53 * hash) + getBuild().hashCode(); + hash = (37 * hash) + WORKER_POOL_FIELD_NUMBER; + hash = (53 * hash) + getWorkerPool().hashCode(); + hash = (37 * hash) + RETRY_ATTEMPTS_FIELD_NUMBER; + hash = (53 * hash) + getRetryAttempts(); + if (hasApplicationOutputParameters()) { + hash = (37 * hash) + APPLICATION_OUTPUT_PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getApplicationOutputParameters().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.DeploymentMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeploymentMetadata 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.designcenter.v1.DeploymentMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeploymentMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeploymentMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeploymentMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeploymentMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeploymentMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeploymentMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeploymentMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeploymentMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeploymentMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.DeploymentMetadata 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Deployment information for the application.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.DeploymentMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.DeploymentMetadata) + com.google.cloud.designcenter.v1.DeploymentMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_DeploymentMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_DeploymentMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.DeploymentMetadata.class, + com.google.cloud.designcenter.v1.DeploymentMetadata.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.DeploymentMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetComponentOutputParametersFieldBuilder(); + internalGetErrorFieldBuilder(); + internalGetApplicationOutputParametersFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + revision_ = ""; + if (componentOutputParametersBuilder_ == null) { + componentOutputParameters_ = java.util.Collections.emptyList(); + } else { + componentOutputParameters_ = null; + componentOutputParametersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); + errorBuilder_ = null; + } + build_ = ""; + workerPool_ = ""; + retryAttempts_ = 0; + applicationOutputParameters_ = null; + if (applicationOutputParametersBuilder_ != null) { + applicationOutputParametersBuilder_.dispose(); + applicationOutputParametersBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_DeploymentMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeploymentMetadata getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.DeploymentMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeploymentMetadata build() { + com.google.cloud.designcenter.v1.DeploymentMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeploymentMetadata buildPartial() { + com.google.cloud.designcenter.v1.DeploymentMetadata result = + new com.google.cloud.designcenter.v1.DeploymentMetadata(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.designcenter.v1.DeploymentMetadata result) { + if (componentOutputParametersBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + componentOutputParameters_ = + java.util.Collections.unmodifiableList(componentOutputParameters_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.componentOutputParameters_ = componentOutputParameters_; + } else { + result.componentOutputParameters_ = componentOutputParametersBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.designcenter.v1.DeploymentMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.revision_ = revision_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.build_ = build_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.workerPool_ = workerPool_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.retryAttempts_ = retryAttempts_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.applicationOutputParameters_ = + applicationOutputParametersBuilder_ == null + ? applicationOutputParameters_ + : applicationOutputParametersBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.DeploymentMetadata) { + return mergeFrom((com.google.cloud.designcenter.v1.DeploymentMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.DeploymentMetadata other) { + if (other == com.google.cloud.designcenter.v1.DeploymentMetadata.getDefaultInstance()) + return this; + if (!other.getRevision().isEmpty()) { + revision_ = other.revision_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (componentOutputParametersBuilder_ == null) { + if (!other.componentOutputParameters_.isEmpty()) { + if (componentOutputParameters_.isEmpty()) { + componentOutputParameters_ = other.componentOutputParameters_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureComponentOutputParametersIsMutable(); + componentOutputParameters_.addAll(other.componentOutputParameters_); + } + onChanged(); + } + } else { + if (!other.componentOutputParameters_.isEmpty()) { + if (componentOutputParametersBuilder_.isEmpty()) { + componentOutputParametersBuilder_.dispose(); + componentOutputParametersBuilder_ = null; + componentOutputParameters_ = other.componentOutputParameters_; + bitField0_ = (bitField0_ & ~0x00000002); + componentOutputParametersBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetComponentOutputParametersFieldBuilder() + : null; + } else { + componentOutputParametersBuilder_.addAllMessages(other.componentOutputParameters_); + } + } + } + if (other.hasError()) { + mergeError(other.getError()); + } + if (!other.getBuild().isEmpty()) { + build_ = other.build_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getWorkerPool().isEmpty()) { + workerPool_ = other.workerPool_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.getRetryAttempts() != 0) { + setRetryAttempts(other.getRetryAttempts()); + } + if (other.hasApplicationOutputParameters()) { + mergeApplicationOutputParameters(other.getApplicationOutputParameters()); + } + 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: + { + revision_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.designcenter.v1.ComponentOutputParameters m = + input.readMessage( + com.google.cloud.designcenter.v1.ComponentOutputParameters.parser(), + extensionRegistry); + if (componentOutputParametersBuilder_ == null) { + ensureComponentOutputParametersIsMutable(); + componentOutputParameters_.add(m); + } else { + componentOutputParametersBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: + { + input.readMessage(internalGetErrorFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + build_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + workerPool_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + retryAttempts_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: + { + input.readMessage( + internalGetApplicationOutputParametersFieldBuilder().getBuilder(), + extensionRegistry); + 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 java.lang.Object revision_ = ""; + + /** + * + * + *
+     * Output only. The revision of the deployment associated with the
+     * Application.
+     * 
+ * + * string revision = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The revision. + */ + public java.lang.String getRevision() { + java.lang.Object ref = revision_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + revision_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The revision of the deployment associated with the
+     * Application.
+     * 
+ * + * string revision = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for revision. + */ + public com.google.protobuf.ByteString getRevisionBytes() { + java.lang.Object ref = revision_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + revision_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The revision of the deployment associated with the
+     * Application.
+     * 
+ * + * string revision = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The revision to set. + * @return This builder for chaining. + */ + public Builder setRevision(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + revision_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The revision of the deployment associated with the
+     * Application.
+     * 
+ * + * string revision = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearRevision() { + revision_ = getDefaultInstance().getRevision(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The revision of the deployment associated with the
+     * Application.
+     * 
+ * + * string revision = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for revision to set. + * @return This builder for chaining. + */ + public Builder setRevisionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + revision_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List + componentOutputParameters_ = java.util.Collections.emptyList(); + + private void ensureComponentOutputParametersIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + componentOutputParameters_ = + new java.util.ArrayList( + componentOutputParameters_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ComponentOutputParameters, + com.google.cloud.designcenter.v1.ComponentOutputParameters.Builder, + com.google.cloud.designcenter.v1.ComponentOutputParametersOrBuilder> + componentOutputParametersBuilder_; + + /** + * + * + *
+     * Output only. The component output parameters of the deployment.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentOutputParameters component_output_parameters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getComponentOutputParametersList() { + if (componentOutputParametersBuilder_ == null) { + return java.util.Collections.unmodifiableList(componentOutputParameters_); + } else { + return componentOutputParametersBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Output only. The component output parameters of the deployment.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentOutputParameters component_output_parameters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getComponentOutputParametersCount() { + if (componentOutputParametersBuilder_ == null) { + return componentOutputParameters_.size(); + } else { + return componentOutputParametersBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Output only. The component output parameters of the deployment.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentOutputParameters component_output_parameters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ComponentOutputParameters getComponentOutputParameters( + int index) { + if (componentOutputParametersBuilder_ == null) { + return componentOutputParameters_.get(index); + } else { + return componentOutputParametersBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Output only. The component output parameters of the deployment.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentOutputParameters component_output_parameters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setComponentOutputParameters( + int index, com.google.cloud.designcenter.v1.ComponentOutputParameters value) { + if (componentOutputParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureComponentOutputParametersIsMutable(); + componentOutputParameters_.set(index, value); + onChanged(); + } else { + componentOutputParametersBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. The component output parameters of the deployment.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentOutputParameters component_output_parameters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setComponentOutputParameters( + int index, + com.google.cloud.designcenter.v1.ComponentOutputParameters.Builder builderForValue) { + if (componentOutputParametersBuilder_ == null) { + ensureComponentOutputParametersIsMutable(); + componentOutputParameters_.set(index, builderForValue.build()); + onChanged(); + } else { + componentOutputParametersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The component output parameters of the deployment.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentOutputParameters component_output_parameters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addComponentOutputParameters( + com.google.cloud.designcenter.v1.ComponentOutputParameters value) { + if (componentOutputParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureComponentOutputParametersIsMutable(); + componentOutputParameters_.add(value); + onChanged(); + } else { + componentOutputParametersBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Output only. The component output parameters of the deployment.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentOutputParameters component_output_parameters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addComponentOutputParameters( + int index, com.google.cloud.designcenter.v1.ComponentOutputParameters value) { + if (componentOutputParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureComponentOutputParametersIsMutable(); + componentOutputParameters_.add(index, value); + onChanged(); + } else { + componentOutputParametersBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. The component output parameters of the deployment.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentOutputParameters component_output_parameters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addComponentOutputParameters( + com.google.cloud.designcenter.v1.ComponentOutputParameters.Builder builderForValue) { + if (componentOutputParametersBuilder_ == null) { + ensureComponentOutputParametersIsMutable(); + componentOutputParameters_.add(builderForValue.build()); + onChanged(); + } else { + componentOutputParametersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The component output parameters of the deployment.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentOutputParameters component_output_parameters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addComponentOutputParameters( + int index, + com.google.cloud.designcenter.v1.ComponentOutputParameters.Builder builderForValue) { + if (componentOutputParametersBuilder_ == null) { + ensureComponentOutputParametersIsMutable(); + componentOutputParameters_.add(index, builderForValue.build()); + onChanged(); + } else { + componentOutputParametersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The component output parameters of the deployment.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentOutputParameters component_output_parameters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllComponentOutputParameters( + java.lang.Iterable + values) { + if (componentOutputParametersBuilder_ == null) { + ensureComponentOutputParametersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, componentOutputParameters_); + onChanged(); + } else { + componentOutputParametersBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Output only. The component output parameters of the deployment.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentOutputParameters component_output_parameters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearComponentOutputParameters() { + if (componentOutputParametersBuilder_ == null) { + componentOutputParameters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + componentOutputParametersBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Output only. The component output parameters of the deployment.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentOutputParameters component_output_parameters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeComponentOutputParameters(int index) { + if (componentOutputParametersBuilder_ == null) { + ensureComponentOutputParametersIsMutable(); + componentOutputParameters_.remove(index); + onChanged(); + } else { + componentOutputParametersBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Output only. The component output parameters of the deployment.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentOutputParameters component_output_parameters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ComponentOutputParameters.Builder + getComponentOutputParametersBuilder(int index) { + return internalGetComponentOutputParametersFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Output only. The component output parameters of the deployment.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentOutputParameters component_output_parameters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ComponentOutputParametersOrBuilder + getComponentOutputParametersOrBuilder(int index) { + if (componentOutputParametersBuilder_ == null) { + return componentOutputParameters_.get(index); + } else { + return componentOutputParametersBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Output only. The component output parameters of the deployment.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentOutputParameters component_output_parameters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends com.google.cloud.designcenter.v1.ComponentOutputParametersOrBuilder> + getComponentOutputParametersOrBuilderList() { + if (componentOutputParametersBuilder_ != null) { + return componentOutputParametersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(componentOutputParameters_); + } + } + + /** + * + * + *
+     * Output only. The component output parameters of the deployment.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentOutputParameters component_output_parameters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ComponentOutputParameters.Builder + addComponentOutputParametersBuilder() { + return internalGetComponentOutputParametersFieldBuilder() + .addBuilder( + com.google.cloud.designcenter.v1.ComponentOutputParameters.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. The component output parameters of the deployment.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentOutputParameters component_output_parameters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ComponentOutputParameters.Builder + addComponentOutputParametersBuilder(int index) { + return internalGetComponentOutputParametersFieldBuilder() + .addBuilder( + index, + com.google.cloud.designcenter.v1.ComponentOutputParameters.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. The component output parameters of the deployment.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentOutputParameters component_output_parameters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getComponentOutputParametersBuilderList() { + return internalGetComponentOutputParametersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ComponentOutputParameters, + com.google.cloud.designcenter.v1.ComponentOutputParameters.Builder, + com.google.cloud.designcenter.v1.ComponentOutputParametersOrBuilder> + internalGetComponentOutputParametersFieldBuilder() { + if (componentOutputParametersBuilder_ == null) { + componentOutputParametersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ComponentOutputParameters, + com.google.cloud.designcenter.v1.ComponentOutputParameters.Builder, + com.google.cloud.designcenter.v1.ComponentOutputParametersOrBuilder>( + componentOutputParameters_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + componentOutputParameters_ = null; + } + return componentOutputParametersBuilder_; + } + + private com.google.cloud.designcenter.v1.DeploymentError error_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.DeploymentError, + com.google.cloud.designcenter.v1.DeploymentError.Builder, + com.google.cloud.designcenter.v1.DeploymentErrorOrBuilder> + errorBuilder_; + + /** + * + * + *
+     * Output only. The error associated with the deployment.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentError error = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the error field is set. + */ + public boolean hasError() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Output only. The error associated with the deployment.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentError error = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The error. + */ + public com.google.cloud.designcenter.v1.DeploymentError getError() { + if (errorBuilder_ == null) { + return error_ == null + ? com.google.cloud.designcenter.v1.DeploymentError.getDefaultInstance() + : error_; + } else { + return errorBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. The error associated with the deployment.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentError error = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setError(com.google.cloud.designcenter.v1.DeploymentError value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + error_ = value; + } else { + errorBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The error associated with the deployment.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentError error = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setError( + com.google.cloud.designcenter.v1.DeploymentError.Builder builderForValue) { + if (errorBuilder_ == null) { + error_ = builderForValue.build(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The error associated with the deployment.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentError error = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeError(com.google.cloud.designcenter.v1.DeploymentError value) { + if (errorBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && error_ != null + && error_ != com.google.cloud.designcenter.v1.DeploymentError.getDefaultInstance()) { + getErrorBuilder().mergeFrom(value); + } else { + error_ = value; + } + } else { + errorBuilder_.mergeFrom(value); + } + if (error_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The error associated with the deployment.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentError error = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearError() { + bitField0_ = (bitField0_ & ~0x00000004); + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); + errorBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The error associated with the deployment.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentError error = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.DeploymentError.Builder getErrorBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetErrorFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The error associated with the deployment.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentError error = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.DeploymentErrorOrBuilder getErrorOrBuilder() { + if (errorBuilder_ != null) { + return errorBuilder_.getMessageOrBuilder(); + } else { + return error_ == null + ? com.google.cloud.designcenter.v1.DeploymentError.getDefaultInstance() + : error_; + } + } + + /** + * + * + *
+     * Output only. The error associated with the deployment.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentError error = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.DeploymentError, + com.google.cloud.designcenter.v1.DeploymentError.Builder, + com.google.cloud.designcenter.v1.DeploymentErrorOrBuilder> + internalGetErrorFieldBuilder() { + if (errorBuilder_ == null) { + errorBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.DeploymentError, + com.google.cloud.designcenter.v1.DeploymentError.Builder, + com.google.cloud.designcenter.v1.DeploymentErrorOrBuilder>( + getError(), getParentForChildren(), isClean()); + error_ = null; + } + return errorBuilder_; + } + + private java.lang.Object build_ = ""; + + /** + * + * + *
+     * Output only. Cloud Build instance UUID associated with this deployment.
+     * 
+ * + * string build = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The build. + */ + public java.lang.String getBuild() { + java.lang.Object ref = build_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + build_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Cloud Build instance UUID associated with this deployment.
+     * 
+ * + * string build = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for build. + */ + public com.google.protobuf.ByteString getBuildBytes() { + java.lang.Object ref = build_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + build_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Cloud Build instance UUID associated with this deployment.
+     * 
+ * + * string build = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The build to set. + * @return This builder for chaining. + */ + public Builder setBuild(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + build_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Cloud Build instance UUID associated with this deployment.
+     * 
+ * + * string build = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearBuild() { + build_ = getDefaultInstance().getBuild(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Cloud Build instance UUID associated with this deployment.
+     * 
+ * + * string build = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for build to set. + * @return This builder for chaining. + */ + public Builder setBuildBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + build_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object workerPool_ = ""; + + /** + * + * + *
+     * Output only. The user-specified Cloud Build worker pool resource used,
+     * which the system uses to deploy the application. Format:
+     * `projects/{project}/locations/{location}/workerPools/{workerPoolId}`.
+     * 
+ * + * string worker_pool = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The workerPool. + */ + public java.lang.String getWorkerPool() { + java.lang.Object ref = workerPool_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workerPool_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The user-specified Cloud Build worker pool resource used,
+     * which the system uses to deploy the application. Format:
+     * `projects/{project}/locations/{location}/workerPools/{workerPoolId}`.
+     * 
+ * + * string worker_pool = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for workerPool. + */ + public com.google.protobuf.ByteString getWorkerPoolBytes() { + java.lang.Object ref = workerPool_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + workerPool_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The user-specified Cloud Build worker pool resource used,
+     * which the system uses to deploy the application. Format:
+     * `projects/{project}/locations/{location}/workerPools/{workerPoolId}`.
+     * 
+ * + * string worker_pool = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The workerPool to set. + * @return This builder for chaining. + */ + public Builder setWorkerPool(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + workerPool_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The user-specified Cloud Build worker pool resource used,
+     * which the system uses to deploy the application. Format:
+     * `projects/{project}/locations/{location}/workerPools/{workerPoolId}`.
+     * 
+ * + * string worker_pool = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearWorkerPool() { + workerPool_ = getDefaultInstance().getWorkerPool(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The user-specified Cloud Build worker pool resource used,
+     * which the system uses to deploy the application. Format:
+     * `projects/{project}/locations/{location}/workerPools/{workerPoolId}`.
+     * 
+ * + * string worker_pool = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for workerPool to set. + * @return This builder for chaining. + */ + public Builder setWorkerPoolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + workerPool_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private int retryAttempts_; + + /** + * + * + *
+     * Output only. The attempted number of deployment retries.
+     * 
+ * + * int32 retry_attempts = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The retryAttempts. + */ + @java.lang.Override + public int getRetryAttempts() { + return retryAttempts_; + } + + /** + * + * + *
+     * Output only. The attempted number of deployment retries.
+     * 
+ * + * int32 retry_attempts = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The retryAttempts to set. + * @return This builder for chaining. + */ + public Builder setRetryAttempts(int value) { + + retryAttempts_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The attempted number of deployment retries.
+     * 
+ * + * int32 retry_attempts = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearRetryAttempts() { + bitField0_ = (bitField0_ & ~0x00000020); + retryAttempts_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.designcenter.v1.ApplicationOutputParameters + applicationOutputParameters_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ApplicationOutputParameters, + com.google.cloud.designcenter.v1.ApplicationOutputParameters.Builder, + com.google.cloud.designcenter.v1.ApplicationOutputParametersOrBuilder> + applicationOutputParametersBuilder_; + + /** + * + * + *
+     * Output only. The application output parameters of the deployment.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationOutputParameters application_output_parameters = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the applicationOutputParameters field is set. + */ + public boolean hasApplicationOutputParameters() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+     * Output only. The application output parameters of the deployment.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationOutputParameters application_output_parameters = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The applicationOutputParameters. + */ + public com.google.cloud.designcenter.v1.ApplicationOutputParameters + getApplicationOutputParameters() { + if (applicationOutputParametersBuilder_ == null) { + return applicationOutputParameters_ == null + ? com.google.cloud.designcenter.v1.ApplicationOutputParameters.getDefaultInstance() + : applicationOutputParameters_; + } else { + return applicationOutputParametersBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. The application output parameters of the deployment.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationOutputParameters application_output_parameters = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setApplicationOutputParameters( + com.google.cloud.designcenter.v1.ApplicationOutputParameters value) { + if (applicationOutputParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + applicationOutputParameters_ = value; + } else { + applicationOutputParametersBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The application output parameters of the deployment.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationOutputParameters application_output_parameters = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setApplicationOutputParameters( + com.google.cloud.designcenter.v1.ApplicationOutputParameters.Builder builderForValue) { + if (applicationOutputParametersBuilder_ == null) { + applicationOutputParameters_ = builderForValue.build(); + } else { + applicationOutputParametersBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The application output parameters of the deployment.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationOutputParameters application_output_parameters = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeApplicationOutputParameters( + com.google.cloud.designcenter.v1.ApplicationOutputParameters value) { + if (applicationOutputParametersBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && applicationOutputParameters_ != null + && applicationOutputParameters_ + != com.google.cloud.designcenter.v1.ApplicationOutputParameters + .getDefaultInstance()) { + getApplicationOutputParametersBuilder().mergeFrom(value); + } else { + applicationOutputParameters_ = value; + } + } else { + applicationOutputParametersBuilder_.mergeFrom(value); + } + if (applicationOutputParameters_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The application output parameters of the deployment.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationOutputParameters application_output_parameters = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearApplicationOutputParameters() { + bitField0_ = (bitField0_ & ~0x00000040); + applicationOutputParameters_ = null; + if (applicationOutputParametersBuilder_ != null) { + applicationOutputParametersBuilder_.dispose(); + applicationOutputParametersBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The application output parameters of the deployment.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationOutputParameters application_output_parameters = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ApplicationOutputParameters.Builder + getApplicationOutputParametersBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetApplicationOutputParametersFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The application output parameters of the deployment.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationOutputParameters application_output_parameters = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ApplicationOutputParametersOrBuilder + getApplicationOutputParametersOrBuilder() { + if (applicationOutputParametersBuilder_ != null) { + return applicationOutputParametersBuilder_.getMessageOrBuilder(); + } else { + return applicationOutputParameters_ == null + ? com.google.cloud.designcenter.v1.ApplicationOutputParameters.getDefaultInstance() + : applicationOutputParameters_; + } + } + + /** + * + * + *
+     * Output only. The application output parameters of the deployment.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationOutputParameters application_output_parameters = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ApplicationOutputParameters, + com.google.cloud.designcenter.v1.ApplicationOutputParameters.Builder, + com.google.cloud.designcenter.v1.ApplicationOutputParametersOrBuilder> + internalGetApplicationOutputParametersFieldBuilder() { + if (applicationOutputParametersBuilder_ == null) { + applicationOutputParametersBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ApplicationOutputParameters, + com.google.cloud.designcenter.v1.ApplicationOutputParameters.Builder, + com.google.cloud.designcenter.v1.ApplicationOutputParametersOrBuilder>( + getApplicationOutputParameters(), getParentForChildren(), isClean()); + applicationOutputParameters_ = null; + } + return applicationOutputParametersBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.DeploymentMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.DeploymentMetadata) + private static final com.google.cloud.designcenter.v1.DeploymentMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.DeploymentMetadata(); + } + + public static com.google.cloud.designcenter.v1.DeploymentMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeploymentMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.DeploymentMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentMetadataOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentMetadataOrBuilder.java new file mode 100644 index 000000000000..a64fc8375eff --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentMetadataOrBuilder.java @@ -0,0 +1,281 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface DeploymentMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.DeploymentMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The revision of the deployment associated with the
+   * Application.
+   * 
+ * + * string revision = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The revision. + */ + java.lang.String getRevision(); + + /** + * + * + *
+   * Output only. The revision of the deployment associated with the
+   * Application.
+   * 
+ * + * string revision = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for revision. + */ + com.google.protobuf.ByteString getRevisionBytes(); + + /** + * + * + *
+   * Output only. The component output parameters of the deployment.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentOutputParameters component_output_parameters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getComponentOutputParametersList(); + + /** + * + * + *
+   * Output only. The component output parameters of the deployment.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentOutputParameters component_output_parameters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.ComponentOutputParameters getComponentOutputParameters( + int index); + + /** + * + * + *
+   * Output only. The component output parameters of the deployment.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentOutputParameters component_output_parameters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getComponentOutputParametersCount(); + + /** + * + * + *
+   * Output only. The component output parameters of the deployment.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentOutputParameters component_output_parameters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getComponentOutputParametersOrBuilderList(); + + /** + * + * + *
+   * Output only. The component output parameters of the deployment.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentOutputParameters component_output_parameters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.ComponentOutputParametersOrBuilder + getComponentOutputParametersOrBuilder(int index); + + /** + * + * + *
+   * Output only. The error associated with the deployment.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentError error = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the error field is set. + */ + boolean hasError(); + + /** + * + * + *
+   * Output only. The error associated with the deployment.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentError error = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The error. + */ + com.google.cloud.designcenter.v1.DeploymentError getError(); + + /** + * + * + *
+   * Output only. The error associated with the deployment.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentError error = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.DeploymentErrorOrBuilder getErrorOrBuilder(); + + /** + * + * + *
+   * Output only. Cloud Build instance UUID associated with this deployment.
+   * 
+ * + * string build = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The build. + */ + java.lang.String getBuild(); + + /** + * + * + *
+   * Output only. Cloud Build instance UUID associated with this deployment.
+   * 
+ * + * string build = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for build. + */ + com.google.protobuf.ByteString getBuildBytes(); + + /** + * + * + *
+   * Output only. The user-specified Cloud Build worker pool resource used,
+   * which the system uses to deploy the application. Format:
+   * `projects/{project}/locations/{location}/workerPools/{workerPoolId}`.
+   * 
+ * + * string worker_pool = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The workerPool. + */ + java.lang.String getWorkerPool(); + + /** + * + * + *
+   * Output only. The user-specified Cloud Build worker pool resource used,
+   * which the system uses to deploy the application. Format:
+   * `projects/{project}/locations/{location}/workerPools/{workerPoolId}`.
+   * 
+ * + * string worker_pool = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for workerPool. + */ + com.google.protobuf.ByteString getWorkerPoolBytes(); + + /** + * + * + *
+   * Output only. The attempted number of deployment retries.
+   * 
+ * + * int32 retry_attempts = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The retryAttempts. + */ + int getRetryAttempts(); + + /** + * + * + *
+   * Output only. The application output parameters of the deployment.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationOutputParameters application_output_parameters = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the applicationOutputParameters field is set. + */ + boolean hasApplicationOutputParameters(); + + /** + * + * + *
+   * Output only. The application output parameters of the deployment.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationOutputParameters application_output_parameters = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The applicationOutputParameters. + */ + com.google.cloud.designcenter.v1.ApplicationOutputParameters getApplicationOutputParameters(); + + /** + * + * + *
+   * Output only. The application output parameters of the deployment.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationOutputParameters application_output_parameters = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.ApplicationOutputParametersOrBuilder + getApplicationOutputParametersOrBuilder(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentOperationMetadata.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentOperationMetadata.java new file mode 100644 index 000000000000..1ccd8d0b7dbf --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentOperationMetadata.java @@ -0,0 +1,1999 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/designcenter.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Ephemeral metadata depicting the state of the deployment operation.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.DeploymentOperationMetadata} + */ +@com.google.protobuf.Generated +public final class DeploymentOperationMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.DeploymentOperationMetadata) + DeploymentOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DeploymentOperationMetadata"); + } + + // Use DeploymentOperationMetadata.newBuilder() to construct. + private DeploymentOperationMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeploymentOperationMetadata() { + deployment_ = ""; + deploymentStep_ = ""; + deploymentBuild_ = ""; + deploymentLogs_ = ""; + resources_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DesigncenterProto + .internal_static_google_cloud_designcenter_v1_DeploymentOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DesigncenterProto + .internal_static_google_cloud_designcenter_v1_DeploymentOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.DeploymentOperationMetadata.class, + com.google.cloud.designcenter.v1.DeploymentOperationMetadata.Builder.class); + } + + private int bitField0_; + public static final int DEPLOYMENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object deployment_ = ""; + + /** + * + * + *
+   * Output only. The name of the deployment associated with the application.
+   * 
+ * + * string deployment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The deployment. + */ + @java.lang.Override + public java.lang.String getDeployment() { + java.lang.Object ref = deployment_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deployment_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The name of the deployment associated with the application.
+   * 
+ * + * string deployment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for deployment. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDeploymentBytes() { + java.lang.Object ref = deployment_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deployment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEPLOYMENT_STEP_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object deploymentStep_ = ""; + + /** + * + * + *
+   * Output only. The current step of the deployment.
+   * This will mimic the DeploymentStep enum in the deployment proto.
+   * 
+ * + * string deployment_step = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The deploymentStep. + */ + @java.lang.Override + public java.lang.String getDeploymentStep() { + java.lang.Object ref = deploymentStep_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deploymentStep_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The current step of the deployment.
+   * This will mimic the DeploymentStep enum in the deployment proto.
+   * 
+ * + * string deployment_step = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for deploymentStep. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDeploymentStepBytes() { + java.lang.Object ref = deploymentStep_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deploymentStep_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEPLOYMENT_BUILD_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object deploymentBuild_ = ""; + + /** + * + * + *
+   * Output only. Cloud Build instance UUID associated with this deployment.
+   * 
+ * + * string deployment_build = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The deploymentBuild. + */ + @java.lang.Override + public java.lang.String getDeploymentBuild() { + java.lang.Object ref = deploymentBuild_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deploymentBuild_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. Cloud Build instance UUID associated with this deployment.
+   * 
+ * + * string deployment_build = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for deploymentBuild. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDeploymentBuildBytes() { + java.lang.Object ref = deploymentBuild_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deploymentBuild_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEPLOYMENT_LOGS_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object deploymentLogs_ = ""; + + /** + * + * + *
+   * Output only. Location of the deployment operation logs in
+   * `gs://{bucket}/{object}` format.
+   * 
+ * + * string deployment_logs = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The deploymentLogs. + */ + @java.lang.Override + public java.lang.String getDeploymentLogs() { + java.lang.Object ref = deploymentLogs_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deploymentLogs_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. Location of the deployment operation logs in
+   * `gs://{bucket}/{object}` format.
+   * 
+ * + * string deployment_logs = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for deploymentLogs. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDeploymentLogsBytes() { + java.lang.Object ref = deploymentLogs_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deploymentLogs_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCES_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private java.util.List resources_; + + /** + * + * + *
+   * Details of the [Resources][]s in the deployment.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Resource resources = 8; + */ + @java.lang.Override + public java.util.List getResourcesList() { + return resources_; + } + + /** + * + * + *
+   * Details of the [Resources][]s in the deployment.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Resource resources = 8; + */ + @java.lang.Override + public java.util.List + getResourcesOrBuilderList() { + return resources_; + } + + /** + * + * + *
+   * Details of the [Resources][]s in the deployment.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Resource resources = 8; + */ + @java.lang.Override + public int getResourcesCount() { + return resources_.size(); + } + + /** + * + * + *
+   * Details of the [Resources][]s in the deployment.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Resource resources = 8; + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.Resource getResources(int index) { + return resources_.get(index); + } + + /** + * + * + *
+   * Details of the [Resources][]s in the deployment.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Resource resources = 8; + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ResourceOrBuilder getResourcesOrBuilder(int index) { + return resources_.get(index); + } + + public static final int PREVIOUS_ATTEMPT_FIELD_NUMBER = 9; + private com.google.cloud.designcenter.v1.DeploymentAttemptMetadata previousAttempt_; + + /** + * + * + *
+   * Previous deployment attempt metadata.
+   * 
+ * + * .google.cloud.designcenter.v1.DeploymentAttemptMetadata previous_attempt = 9; + * + * @return Whether the previousAttempt field is set. + */ + @java.lang.Override + public boolean hasPreviousAttempt() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Previous deployment attempt metadata.
+   * 
+ * + * .google.cloud.designcenter.v1.DeploymentAttemptMetadata previous_attempt = 9; + * + * @return The previousAttempt. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.DeploymentAttemptMetadata getPreviousAttempt() { + return previousAttempt_ == null + ? com.google.cloud.designcenter.v1.DeploymentAttemptMetadata.getDefaultInstance() + : previousAttempt_; + } + + /** + * + * + *
+   * Previous deployment attempt metadata.
+   * 
+ * + * .google.cloud.designcenter.v1.DeploymentAttemptMetadata previous_attempt = 9; + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.DeploymentAttemptMetadataOrBuilder + getPreviousAttemptOrBuilder() { + return previousAttempt_ == null + ? com.google.cloud.designcenter.v1.DeploymentAttemptMetadata.getDefaultInstance() + : previousAttempt_; + } + + 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.GeneratedMessage.isStringEmpty(deployment_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, deployment_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(deploymentStep_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, deploymentStep_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(deploymentBuild_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, deploymentBuild_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(deploymentLogs_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, deploymentLogs_); + } + for (int i = 0; i < resources_.size(); i++) { + output.writeMessage(8, resources_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(9, getPreviousAttempt()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(deployment_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, deployment_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(deploymentStep_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, deploymentStep_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(deploymentBuild_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, deploymentBuild_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(deploymentLogs_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, deploymentLogs_); + } + for (int i = 0; i < resources_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, resources_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getPreviousAttempt()); + } + 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.designcenter.v1.DeploymentOperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.DeploymentOperationMetadata other = + (com.google.cloud.designcenter.v1.DeploymentOperationMetadata) obj; + + if (!getDeployment().equals(other.getDeployment())) return false; + if (!getDeploymentStep().equals(other.getDeploymentStep())) return false; + if (!getDeploymentBuild().equals(other.getDeploymentBuild())) return false; + if (!getDeploymentLogs().equals(other.getDeploymentLogs())) return false; + if (!getResourcesList().equals(other.getResourcesList())) return false; + if (hasPreviousAttempt() != other.hasPreviousAttempt()) return false; + if (hasPreviousAttempt()) { + if (!getPreviousAttempt().equals(other.getPreviousAttempt())) 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) + DEPLOYMENT_FIELD_NUMBER; + hash = (53 * hash) + getDeployment().hashCode(); + hash = (37 * hash) + DEPLOYMENT_STEP_FIELD_NUMBER; + hash = (53 * hash) + getDeploymentStep().hashCode(); + hash = (37 * hash) + DEPLOYMENT_BUILD_FIELD_NUMBER; + hash = (53 * hash) + getDeploymentBuild().hashCode(); + hash = (37 * hash) + DEPLOYMENT_LOGS_FIELD_NUMBER; + hash = (53 * hash) + getDeploymentLogs().hashCode(); + if (getResourcesCount() > 0) { + hash = (37 * hash) + RESOURCES_FIELD_NUMBER; + hash = (53 * hash) + getResourcesList().hashCode(); + } + if (hasPreviousAttempt()) { + hash = (37 * hash) + PREVIOUS_ATTEMPT_FIELD_NUMBER; + hash = (53 * hash) + getPreviousAttempt().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.DeploymentOperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeploymentOperationMetadata 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.designcenter.v1.DeploymentOperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeploymentOperationMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeploymentOperationMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeploymentOperationMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeploymentOperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeploymentOperationMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeploymentOperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeploymentOperationMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeploymentOperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeploymentOperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.DeploymentOperationMetadata 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Ephemeral metadata depicting the state of the deployment operation.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.DeploymentOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.DeploymentOperationMetadata) + com.google.cloud.designcenter.v1.DeploymentOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DesigncenterProto + .internal_static_google_cloud_designcenter_v1_DeploymentOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DesigncenterProto + .internal_static_google_cloud_designcenter_v1_DeploymentOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.DeploymentOperationMetadata.class, + com.google.cloud.designcenter.v1.DeploymentOperationMetadata.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.DeploymentOperationMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetResourcesFieldBuilder(); + internalGetPreviousAttemptFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + deployment_ = ""; + deploymentStep_ = ""; + deploymentBuild_ = ""; + deploymentLogs_ = ""; + if (resourcesBuilder_ == null) { + resources_ = java.util.Collections.emptyList(); + } else { + resources_ = null; + resourcesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + previousAttempt_ = null; + if (previousAttemptBuilder_ != null) { + previousAttemptBuilder_.dispose(); + previousAttemptBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.DesigncenterProto + .internal_static_google_cloud_designcenter_v1_DeploymentOperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeploymentOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.DeploymentOperationMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeploymentOperationMetadata build() { + com.google.cloud.designcenter.v1.DeploymentOperationMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeploymentOperationMetadata buildPartial() { + com.google.cloud.designcenter.v1.DeploymentOperationMetadata result = + new com.google.cloud.designcenter.v1.DeploymentOperationMetadata(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.designcenter.v1.DeploymentOperationMetadata result) { + if (resourcesBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + resources_ = java.util.Collections.unmodifiableList(resources_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.resources_ = resources_; + } else { + result.resources_ = resourcesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.DeploymentOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.deployment_ = deployment_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.deploymentStep_ = deploymentStep_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.deploymentBuild_ = deploymentBuild_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.deploymentLogs_ = deploymentLogs_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.previousAttempt_ = + previousAttemptBuilder_ == null ? previousAttempt_ : previousAttemptBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.DeploymentOperationMetadata) { + return mergeFrom((com.google.cloud.designcenter.v1.DeploymentOperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.DeploymentOperationMetadata other) { + if (other + == com.google.cloud.designcenter.v1.DeploymentOperationMetadata.getDefaultInstance()) + return this; + if (!other.getDeployment().isEmpty()) { + deployment_ = other.deployment_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDeploymentStep().isEmpty()) { + deploymentStep_ = other.deploymentStep_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDeploymentBuild().isEmpty()) { + deploymentBuild_ = other.deploymentBuild_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getDeploymentLogs().isEmpty()) { + deploymentLogs_ = other.deploymentLogs_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (resourcesBuilder_ == null) { + if (!other.resources_.isEmpty()) { + if (resources_.isEmpty()) { + resources_ = other.resources_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureResourcesIsMutable(); + resources_.addAll(other.resources_); + } + onChanged(); + } + } else { + if (!other.resources_.isEmpty()) { + if (resourcesBuilder_.isEmpty()) { + resourcesBuilder_.dispose(); + resourcesBuilder_ = null; + resources_ = other.resources_; + bitField0_ = (bitField0_ & ~0x00000010); + resourcesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetResourcesFieldBuilder() + : null; + } else { + resourcesBuilder_.addAllMessages(other.resources_); + } + } + } + if (other.hasPreviousAttempt()) { + mergePreviousAttempt(other.getPreviousAttempt()); + } + 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: + { + deployment_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 42: + { + deploymentStep_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 42 + case 50: + { + deploymentBuild_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 50 + case 58: + { + deploymentLogs_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 58 + case 66: + { + com.google.cloud.designcenter.v1.Resource m = + input.readMessage( + com.google.cloud.designcenter.v1.Resource.parser(), extensionRegistry); + if (resourcesBuilder_ == null) { + ensureResourcesIsMutable(); + resources_.add(m); + } else { + resourcesBuilder_.addMessage(m); + } + break; + } // case 66 + case 74: + { + input.readMessage( + internalGetPreviousAttemptFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 74 + default: + { + 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 deployment_ = ""; + + /** + * + * + *
+     * Output only. The name of the deployment associated with the application.
+     * 
+ * + * string deployment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The deployment. + */ + public java.lang.String getDeployment() { + java.lang.Object ref = deployment_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deployment_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The name of the deployment associated with the application.
+     * 
+ * + * string deployment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for deployment. + */ + public com.google.protobuf.ByteString getDeploymentBytes() { + java.lang.Object ref = deployment_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deployment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The name of the deployment associated with the application.
+     * 
+ * + * string deployment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The deployment to set. + * @return This builder for chaining. + */ + public Builder setDeployment(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + deployment_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The name of the deployment associated with the application.
+     * 
+ * + * string deployment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDeployment() { + deployment_ = getDefaultInstance().getDeployment(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The name of the deployment associated with the application.
+     * 
+ * + * string deployment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for deployment to set. + * @return This builder for chaining. + */ + public Builder setDeploymentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + deployment_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object deploymentStep_ = ""; + + /** + * + * + *
+     * Output only. The current step of the deployment.
+     * This will mimic the DeploymentStep enum in the deployment proto.
+     * 
+ * + * string deployment_step = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The deploymentStep. + */ + public java.lang.String getDeploymentStep() { + java.lang.Object ref = deploymentStep_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deploymentStep_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The current step of the deployment.
+     * This will mimic the DeploymentStep enum in the deployment proto.
+     * 
+ * + * string deployment_step = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for deploymentStep. + */ + public com.google.protobuf.ByteString getDeploymentStepBytes() { + java.lang.Object ref = deploymentStep_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deploymentStep_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The current step of the deployment.
+     * This will mimic the DeploymentStep enum in the deployment proto.
+     * 
+ * + * string deployment_step = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The deploymentStep to set. + * @return This builder for chaining. + */ + public Builder setDeploymentStep(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + deploymentStep_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The current step of the deployment.
+     * This will mimic the DeploymentStep enum in the deployment proto.
+     * 
+ * + * string deployment_step = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDeploymentStep() { + deploymentStep_ = getDefaultInstance().getDeploymentStep(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The current step of the deployment.
+     * This will mimic the DeploymentStep enum in the deployment proto.
+     * 
+ * + * string deployment_step = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for deploymentStep to set. + * @return This builder for chaining. + */ + public Builder setDeploymentStepBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + deploymentStep_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object deploymentBuild_ = ""; + + /** + * + * + *
+     * Output only. Cloud Build instance UUID associated with this deployment.
+     * 
+ * + * string deployment_build = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The deploymentBuild. + */ + public java.lang.String getDeploymentBuild() { + java.lang.Object ref = deploymentBuild_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deploymentBuild_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Cloud Build instance UUID associated with this deployment.
+     * 
+ * + * string deployment_build = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for deploymentBuild. + */ + public com.google.protobuf.ByteString getDeploymentBuildBytes() { + java.lang.Object ref = deploymentBuild_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deploymentBuild_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Cloud Build instance UUID associated with this deployment.
+     * 
+ * + * string deployment_build = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The deploymentBuild to set. + * @return This builder for chaining. + */ + public Builder setDeploymentBuild(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + deploymentBuild_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Cloud Build instance UUID associated with this deployment.
+     * 
+ * + * string deployment_build = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDeploymentBuild() { + deploymentBuild_ = getDefaultInstance().getDeploymentBuild(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Cloud Build instance UUID associated with this deployment.
+     * 
+ * + * string deployment_build = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for deploymentBuild to set. + * @return This builder for chaining. + */ + public Builder setDeploymentBuildBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + deploymentBuild_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object deploymentLogs_ = ""; + + /** + * + * + *
+     * Output only. Location of the deployment operation logs in
+     * `gs://{bucket}/{object}` format.
+     * 
+ * + * string deployment_logs = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The deploymentLogs. + */ + public java.lang.String getDeploymentLogs() { + java.lang.Object ref = deploymentLogs_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deploymentLogs_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Location of the deployment operation logs in
+     * `gs://{bucket}/{object}` format.
+     * 
+ * + * string deployment_logs = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for deploymentLogs. + */ + public com.google.protobuf.ByteString getDeploymentLogsBytes() { + java.lang.Object ref = deploymentLogs_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deploymentLogs_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Location of the deployment operation logs in
+     * `gs://{bucket}/{object}` format.
+     * 
+ * + * string deployment_logs = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The deploymentLogs to set. + * @return This builder for chaining. + */ + public Builder setDeploymentLogs(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + deploymentLogs_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Location of the deployment operation logs in
+     * `gs://{bucket}/{object}` format.
+     * 
+ * + * string deployment_logs = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDeploymentLogs() { + deploymentLogs_ = getDefaultInstance().getDeploymentLogs(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Location of the deployment operation logs in
+     * `gs://{bucket}/{object}` format.
+     * 
+ * + * string deployment_logs = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for deploymentLogs to set. + * @return This builder for chaining. + */ + public Builder setDeploymentLogsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + deploymentLogs_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.util.List resources_ = + java.util.Collections.emptyList(); + + private void ensureResourcesIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + resources_ = new java.util.ArrayList(resources_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Resource, + com.google.cloud.designcenter.v1.Resource.Builder, + com.google.cloud.designcenter.v1.ResourceOrBuilder> + resourcesBuilder_; + + /** + * + * + *
+     * Details of the [Resources][]s in the deployment.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Resource resources = 8; + */ + public java.util.List getResourcesList() { + if (resourcesBuilder_ == null) { + return java.util.Collections.unmodifiableList(resources_); + } else { + return resourcesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Details of the [Resources][]s in the deployment.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Resource resources = 8; + */ + public int getResourcesCount() { + if (resourcesBuilder_ == null) { + return resources_.size(); + } else { + return resourcesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Details of the [Resources][]s in the deployment.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Resource resources = 8; + */ + public com.google.cloud.designcenter.v1.Resource getResources(int index) { + if (resourcesBuilder_ == null) { + return resources_.get(index); + } else { + return resourcesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Details of the [Resources][]s in the deployment.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Resource resources = 8; + */ + public Builder setResources(int index, com.google.cloud.designcenter.v1.Resource value) { + if (resourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourcesIsMutable(); + resources_.set(index, value); + onChanged(); + } else { + resourcesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Details of the [Resources][]s in the deployment.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Resource resources = 8; + */ + public Builder setResources( + int index, com.google.cloud.designcenter.v1.Resource.Builder builderForValue) { + if (resourcesBuilder_ == null) { + ensureResourcesIsMutable(); + resources_.set(index, builderForValue.build()); + onChanged(); + } else { + resourcesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Details of the [Resources][]s in the deployment.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Resource resources = 8; + */ + public Builder addResources(com.google.cloud.designcenter.v1.Resource value) { + if (resourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourcesIsMutable(); + resources_.add(value); + onChanged(); + } else { + resourcesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Details of the [Resources][]s in the deployment.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Resource resources = 8; + */ + public Builder addResources(int index, com.google.cloud.designcenter.v1.Resource value) { + if (resourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourcesIsMutable(); + resources_.add(index, value); + onChanged(); + } else { + resourcesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Details of the [Resources][]s in the deployment.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Resource resources = 8; + */ + public Builder addResources(com.google.cloud.designcenter.v1.Resource.Builder builderForValue) { + if (resourcesBuilder_ == null) { + ensureResourcesIsMutable(); + resources_.add(builderForValue.build()); + onChanged(); + } else { + resourcesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Details of the [Resources][]s in the deployment.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Resource resources = 8; + */ + public Builder addResources( + int index, com.google.cloud.designcenter.v1.Resource.Builder builderForValue) { + if (resourcesBuilder_ == null) { + ensureResourcesIsMutable(); + resources_.add(index, builderForValue.build()); + onChanged(); + } else { + resourcesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Details of the [Resources][]s in the deployment.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Resource resources = 8; + */ + public Builder addAllResources( + java.lang.Iterable values) { + if (resourcesBuilder_ == null) { + ensureResourcesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resources_); + onChanged(); + } else { + resourcesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Details of the [Resources][]s in the deployment.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Resource resources = 8; + */ + public Builder clearResources() { + if (resourcesBuilder_ == null) { + resources_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + resourcesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Details of the [Resources][]s in the deployment.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Resource resources = 8; + */ + public Builder removeResources(int index) { + if (resourcesBuilder_ == null) { + ensureResourcesIsMutable(); + resources_.remove(index); + onChanged(); + } else { + resourcesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Details of the [Resources][]s in the deployment.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Resource resources = 8; + */ + public com.google.cloud.designcenter.v1.Resource.Builder getResourcesBuilder(int index) { + return internalGetResourcesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Details of the [Resources][]s in the deployment.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Resource resources = 8; + */ + public com.google.cloud.designcenter.v1.ResourceOrBuilder getResourcesOrBuilder(int index) { + if (resourcesBuilder_ == null) { + return resources_.get(index); + } else { + return resourcesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Details of the [Resources][]s in the deployment.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Resource resources = 8; + */ + public java.util.List + getResourcesOrBuilderList() { + if (resourcesBuilder_ != null) { + return resourcesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(resources_); + } + } + + /** + * + * + *
+     * Details of the [Resources][]s in the deployment.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Resource resources = 8; + */ + public com.google.cloud.designcenter.v1.Resource.Builder addResourcesBuilder() { + return internalGetResourcesFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.Resource.getDefaultInstance()); + } + + /** + * + * + *
+     * Details of the [Resources][]s in the deployment.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Resource resources = 8; + */ + public com.google.cloud.designcenter.v1.Resource.Builder addResourcesBuilder(int index) { + return internalGetResourcesFieldBuilder() + .addBuilder(index, com.google.cloud.designcenter.v1.Resource.getDefaultInstance()); + } + + /** + * + * + *
+     * Details of the [Resources][]s in the deployment.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Resource resources = 8; + */ + public java.util.List + getResourcesBuilderList() { + return internalGetResourcesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Resource, + com.google.cloud.designcenter.v1.Resource.Builder, + com.google.cloud.designcenter.v1.ResourceOrBuilder> + internalGetResourcesFieldBuilder() { + if (resourcesBuilder_ == null) { + resourcesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Resource, + com.google.cloud.designcenter.v1.Resource.Builder, + com.google.cloud.designcenter.v1.ResourceOrBuilder>( + resources_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); + resources_ = null; + } + return resourcesBuilder_; + } + + private com.google.cloud.designcenter.v1.DeploymentAttemptMetadata previousAttempt_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.DeploymentAttemptMetadata, + com.google.cloud.designcenter.v1.DeploymentAttemptMetadata.Builder, + com.google.cloud.designcenter.v1.DeploymentAttemptMetadataOrBuilder> + previousAttemptBuilder_; + + /** + * + * + *
+     * Previous deployment attempt metadata.
+     * 
+ * + * .google.cloud.designcenter.v1.DeploymentAttemptMetadata previous_attempt = 9; + * + * @return Whether the previousAttempt field is set. + */ + public boolean hasPreviousAttempt() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+     * Previous deployment attempt metadata.
+     * 
+ * + * .google.cloud.designcenter.v1.DeploymentAttemptMetadata previous_attempt = 9; + * + * @return The previousAttempt. + */ + public com.google.cloud.designcenter.v1.DeploymentAttemptMetadata getPreviousAttempt() { + if (previousAttemptBuilder_ == null) { + return previousAttempt_ == null + ? com.google.cloud.designcenter.v1.DeploymentAttemptMetadata.getDefaultInstance() + : previousAttempt_; + } else { + return previousAttemptBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Previous deployment attempt metadata.
+     * 
+ * + * .google.cloud.designcenter.v1.DeploymentAttemptMetadata previous_attempt = 9; + */ + public Builder setPreviousAttempt( + com.google.cloud.designcenter.v1.DeploymentAttemptMetadata value) { + if (previousAttemptBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + previousAttempt_ = value; + } else { + previousAttemptBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Previous deployment attempt metadata.
+     * 
+ * + * .google.cloud.designcenter.v1.DeploymentAttemptMetadata previous_attempt = 9; + */ + public Builder setPreviousAttempt( + com.google.cloud.designcenter.v1.DeploymentAttemptMetadata.Builder builderForValue) { + if (previousAttemptBuilder_ == null) { + previousAttempt_ = builderForValue.build(); + } else { + previousAttemptBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Previous deployment attempt metadata.
+     * 
+ * + * .google.cloud.designcenter.v1.DeploymentAttemptMetadata previous_attempt = 9; + */ + public Builder mergePreviousAttempt( + com.google.cloud.designcenter.v1.DeploymentAttemptMetadata value) { + if (previousAttemptBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && previousAttempt_ != null + && previousAttempt_ + != com.google.cloud.designcenter.v1.DeploymentAttemptMetadata + .getDefaultInstance()) { + getPreviousAttemptBuilder().mergeFrom(value); + } else { + previousAttempt_ = value; + } + } else { + previousAttemptBuilder_.mergeFrom(value); + } + if (previousAttempt_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Previous deployment attempt metadata.
+     * 
+ * + * .google.cloud.designcenter.v1.DeploymentAttemptMetadata previous_attempt = 9; + */ + public Builder clearPreviousAttempt() { + bitField0_ = (bitField0_ & ~0x00000020); + previousAttempt_ = null; + if (previousAttemptBuilder_ != null) { + previousAttemptBuilder_.dispose(); + previousAttemptBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Previous deployment attempt metadata.
+     * 
+ * + * .google.cloud.designcenter.v1.DeploymentAttemptMetadata previous_attempt = 9; + */ + public com.google.cloud.designcenter.v1.DeploymentAttemptMetadata.Builder + getPreviousAttemptBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetPreviousAttemptFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Previous deployment attempt metadata.
+     * 
+ * + * .google.cloud.designcenter.v1.DeploymentAttemptMetadata previous_attempt = 9; + */ + public com.google.cloud.designcenter.v1.DeploymentAttemptMetadataOrBuilder + getPreviousAttemptOrBuilder() { + if (previousAttemptBuilder_ != null) { + return previousAttemptBuilder_.getMessageOrBuilder(); + } else { + return previousAttempt_ == null + ? com.google.cloud.designcenter.v1.DeploymentAttemptMetadata.getDefaultInstance() + : previousAttempt_; + } + } + + /** + * + * + *
+     * Previous deployment attempt metadata.
+     * 
+ * + * .google.cloud.designcenter.v1.DeploymentAttemptMetadata previous_attempt = 9; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.DeploymentAttemptMetadata, + com.google.cloud.designcenter.v1.DeploymentAttemptMetadata.Builder, + com.google.cloud.designcenter.v1.DeploymentAttemptMetadataOrBuilder> + internalGetPreviousAttemptFieldBuilder() { + if (previousAttemptBuilder_ == null) { + previousAttemptBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.DeploymentAttemptMetadata, + com.google.cloud.designcenter.v1.DeploymentAttemptMetadata.Builder, + com.google.cloud.designcenter.v1.DeploymentAttemptMetadataOrBuilder>( + getPreviousAttempt(), getParentForChildren(), isClean()); + previousAttempt_ = null; + } + return previousAttemptBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.DeploymentOperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.DeploymentOperationMetadata) + private static final com.google.cloud.designcenter.v1.DeploymentOperationMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.DeploymentOperationMetadata(); + } + + public static com.google.cloud.designcenter.v1.DeploymentOperationMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeploymentOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.DeploymentOperationMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentOperationMetadataOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentOperationMetadataOrBuilder.java new file mode 100644 index 000000000000..2d9245c2bce0 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentOperationMetadataOrBuilder.java @@ -0,0 +1,229 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/designcenter.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface DeploymentOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.DeploymentOperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The name of the deployment associated with the application.
+   * 
+ * + * string deployment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The deployment. + */ + java.lang.String getDeployment(); + + /** + * + * + *
+   * Output only. The name of the deployment associated with the application.
+   * 
+ * + * string deployment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for deployment. + */ + com.google.protobuf.ByteString getDeploymentBytes(); + + /** + * + * + *
+   * Output only. The current step of the deployment.
+   * This will mimic the DeploymentStep enum in the deployment proto.
+   * 
+ * + * string deployment_step = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The deploymentStep. + */ + java.lang.String getDeploymentStep(); + + /** + * + * + *
+   * Output only. The current step of the deployment.
+   * This will mimic the DeploymentStep enum in the deployment proto.
+   * 
+ * + * string deployment_step = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for deploymentStep. + */ + com.google.protobuf.ByteString getDeploymentStepBytes(); + + /** + * + * + *
+   * Output only. Cloud Build instance UUID associated with this deployment.
+   * 
+ * + * string deployment_build = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The deploymentBuild. + */ + java.lang.String getDeploymentBuild(); + + /** + * + * + *
+   * Output only. Cloud Build instance UUID associated with this deployment.
+   * 
+ * + * string deployment_build = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for deploymentBuild. + */ + com.google.protobuf.ByteString getDeploymentBuildBytes(); + + /** + * + * + *
+   * Output only. Location of the deployment operation logs in
+   * `gs://{bucket}/{object}` format.
+   * 
+ * + * string deployment_logs = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The deploymentLogs. + */ + java.lang.String getDeploymentLogs(); + + /** + * + * + *
+   * Output only. Location of the deployment operation logs in
+   * `gs://{bucket}/{object}` format.
+   * 
+ * + * string deployment_logs = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for deploymentLogs. + */ + com.google.protobuf.ByteString getDeploymentLogsBytes(); + + /** + * + * + *
+   * Details of the [Resources][]s in the deployment.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Resource resources = 8; + */ + java.util.List getResourcesList(); + + /** + * + * + *
+   * Details of the [Resources][]s in the deployment.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Resource resources = 8; + */ + com.google.cloud.designcenter.v1.Resource getResources(int index); + + /** + * + * + *
+   * Details of the [Resources][]s in the deployment.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Resource resources = 8; + */ + int getResourcesCount(); + + /** + * + * + *
+   * Details of the [Resources][]s in the deployment.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Resource resources = 8; + */ + java.util.List + getResourcesOrBuilderList(); + + /** + * + * + *
+   * Details of the [Resources][]s in the deployment.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Resource resources = 8; + */ + com.google.cloud.designcenter.v1.ResourceOrBuilder getResourcesOrBuilder(int index); + + /** + * + * + *
+   * Previous deployment attempt metadata.
+   * 
+ * + * .google.cloud.designcenter.v1.DeploymentAttemptMetadata previous_attempt = 9; + * + * @return Whether the previousAttempt field is set. + */ + boolean hasPreviousAttempt(); + + /** + * + * + *
+   * Previous deployment attempt metadata.
+   * 
+ * + * .google.cloud.designcenter.v1.DeploymentAttemptMetadata previous_attempt = 9; + * + * @return The previousAttempt. + */ + com.google.cloud.designcenter.v1.DeploymentAttemptMetadata getPreviousAttempt(); + + /** + * + * + *
+   * Previous deployment attempt metadata.
+   * 
+ * + * .google.cloud.designcenter.v1.DeploymentAttemptMetadata previous_attempt = 9; + */ + com.google.cloud.designcenter.v1.DeploymentAttemptMetadataOrBuilder getPreviousAttemptOrBuilder(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentProto.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentProto.java new file mode 100644 index 000000000000..c84cd86a032a --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentProto.java @@ -0,0 +1,541 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public final class DeploymentProto extends com.google.protobuf.GeneratedFile { + private DeploymentProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DeploymentProto"); + } + + 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_designcenter_v1_DeploymentSource_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_DeploymentSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_DeploymentError_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_DeploymentError_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_DeploymentFailureResolutionInfo_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_DeploymentFailureResolutionInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_ApplicationOutputParameters_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ApplicationOutputParameters_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_HelmApplicationOutputParameters_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_HelmApplicationOutputParameters_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_UpdatedTemplateRevision_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_UpdatedTemplateRevision_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_ConnectionConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ConnectionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_DeploymentTarget_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_DeploymentTarget_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_GKEDeploymentTarget_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_GKEDeploymentTarget_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_CompositeApplicationParameters_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_CompositeApplicationParameters_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_CompositeApplicationParameters_ServiceAccountMapEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_CompositeApplicationParameters_ServiceAccountMapEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_CompositeApplicationParameters_ProjectParametersMapEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_CompositeApplicationParameters_ProjectParametersMapEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_ProjectParametersList_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ProjectParametersList_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_DeploymentGroupMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_DeploymentGroupMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_DeploymentGroupMetadata_DeploymentMetadataMapEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_DeploymentGroupMetadata_DeploymentMetadataMapEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_DeploymentMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_DeploymentMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_ComponentOutputParameters_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ComponentOutputParameters_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_ProjectParameters_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ProjectParameters_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_ComponentParameters_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ComponentParameters_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_ComponentApplicationInfo_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ComponentApplicationInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_RoleInfo_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_RoleInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_ApiInfo_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ApiInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_RolesAndApisConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_RolesAndApisConfig_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/designcenter/v1/deploymen" + + "t.proto\022\034google.cloud.designcenter.v1\032\037g" + + "oogle/api/field_behavior.proto\032\031google/a" + + "pi/resource.proto\032(google/cloud/apphub/v" + + "1/application.proto\032\'google/cloud/apphub" + + "/v1/attributes.proto\032#google/cloud/config/v1/config.proto\032-google/cloud/designce" + + "nter/v1/parameters.proto\032\037google/protobuf/timestamp.proto\"m\n" + + "\020DeploymentSource\022\'\n" + + "\035application_template_revision\030\004 \001(\tH\000\022&\n" + + "\034shared_template_revision_uri\030\006 \001(\tH\000B\010\n" + + "\006source\"\343\004\n" + + "\017DeploymentError\022K\n" + + "\004type\030\001 \001" + + "(\01627.google.cloud.designcenter.v1.DeploymentError.ErrorTypeB\004\342A\001\003\022@\n" + + "\004code\030\002 \001(\0162" + + ",.google.cloud.config.v1.Deployment.ErrorCodeB\004\342A\001\003\022?\n" + + "\ttf_errors\030\003" + + " \003(\0132&.google.cloud.config.v1.TerraformErrorB\004\342A\001\003\022\024\n" + + "\006detail\030\004 \001(\tB\004\342A\001\003\022o\n" + + "\"deployment_failure_resolution_info\030\006 \003(\0132=.google.cloud.de" + + "signcenter.v1.DeploymentFailureResolutionInfoB\004\342A\001\003\022\033\n\r" + + "error_message\030\007 \001(\tB\004\342A\001\003\"\333\001\n" + + "\tErrorType\022\032\n" + + "\026ERROR_TYPE_UNSPECIFIED\020\000\022\016\n\n" + + "PERMISSION\020\001\022\t\n" + + "\005QUOTA\020\002\022\022\n" + + "\016ALREADY_EXISTS\020\003\022\030\n" + + "\024RESOURCE_UNAVAILABLE\020\004\022\013\n" + + "\007BILLING\020\005\022\013\n" + + "\007GENERIC\020\006\022\r\n" + + "\tTERRAFORM\020\007\022\r\n" + + "\tBAD_INPUT\020\010\022\014\n" + + "\010PLATFORM\020\t\022\022\n" + + "\016API_ENABLEMENT\020\n" + + "\022\017\n" + + "\013BAD_REQUEST\020\013\"\206\001\n" + + "\037DeploymentFailureResolutionInfo\022\035\n" + + "\017resolution_link\030\001 \001(\tB\004\342A\001\003\022 \n" + + "\022resolution_message\030\002 \001(\tB\004\342A\001\003\022\"\n" + + "\024resolution_link_text\030\003 \001(\tB\004\342A\001\003\"\236\001\n" + + "\033ApplicationOutputParameters\022q\n" + + "\"helm_application_output_parameters\030\001 \001(\0132=.go" + + "ogle.cloud.designcenter.v1.HelmApplicationOutputParametersB\004\342A\001\003H\000B\014\n\n" + + "parameters\"d\n" + + "\037HelmApplicationOutputParameters\022A\n\n" + + "parameters\030\001" + + " \003(\0132\'.google.cloud.designcenter.v1.ParameterB\004\342A\001\003\"\226\001\n" + + "\027UpdatedTemplateRevision\022\037\n" + + "\021template_revision\030\001 \001(\tB\004\342A\001\003\0225\n" + + "\013create_time\030\002" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022#\n" + + "\025template_display_name\030\003 \001(\tB\004\342A\001\003\"\335\001\n" + + "\020ConnectionConfig\022\034\n" + + "\016connection_uri\030\001 \001(\tB\004\342A\001\002\022R\n" + + "\033source_component_parameters\030\002" + + " \003(\0132\'.google.cloud.designcenter.v1.ParameterB\004\342A\001\001\022W\n" + + " destination_component_parameters\030\003 \003(\0132\'.googl" + + "e.cloud.designcenter.v1.ParameterB\004\342A\001\001\"v\n" + + "\020DeploymentTarget\022X\n" + + "\025gke_deployment_target\030\001" + + " \001(\01321.google.cloud.designcenter.v1.GKEDeploymentTargetB\004\342A\001\001H\000B\010\n" + + "\006target\"\254\001\n" + + "\023GKEDeploymentTarget\022\037\n" + + "\021cluster_self_link\030\001 \001(\tB\004\342A\001\002\022\027\n" + + "\tnamespace\030\002 \001(\tB\004\342A\001\002\022(\n" + + "\032kubernetes_service_account\030\003 \001(\tB\004\342A\001\002\0221\n" + + "#kubernetes_service_account_creation\030\004 \001(\010B\004\342A\001\001\"\302\003\n" + + "\036CompositeApplicationParameters\022v\n" + + "\023service_account_map\030\001 \003(\0132S.google.cloud.designcenter.v1.CompositeA" + + "pplicationParameters.ServiceAccountMapEntryB\004\342A\001\001\022|\n" + + "\026project_parameters_map\030\002 \003(\0132V.google.cloud.designcenter.v1.Composi" + + "teApplicationParameters.ProjectParametersMapEntryB\004\342A\001\003\0328\n" + + "\026ServiceAccountMapEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\032p\n" + + "\031ProjectParametersMapEntry\022\013\n" + + "\003key\030\001 \001(\t\022B\n" + + "\005value\030\002" + + " \001(\01323.google.cloud.designcenter.v1.ProjectParametersList:\0028\001\"j\n" + + "\025ProjectParametersList\022Q\n" + + "\022project_parameters\030\001 \003(\013" + + "2/.google.cloud.designcenter.v1.ProjectParametersB\004\342A\001\003\"\242\002\n" + + "\027DeploymentGroupMetadata\022\036\n" + + "\020deployment_group\030\001 \001(\tB\004\342A\001\003\022w\n" + + "\027deployment_metadata_map\030\002 \003(\0132P.google.cl" + + "oud.designcenter.v1.DeploymentGroupMetadata.DeploymentMetadataMapEntryB\004\342A\001\003\032n\n" + + "\032DeploymentMetadataMapEntry\022\013\n" + + "\003key\030\001 \001(\t\022?\n" + + "\005value\030\002" + + " \001(\01320.google.cloud.designcenter.v1.DeploymentMetadata:\0028\001\"\212\003\n" + + "\022DeploymentMetadata\022\026\n" + + "\010revision\030\001 \001(\tB\004\342A\001\003\022b\n" + + "\033component_output_parameters\030\002 \003(\01327.googl" + + "e.cloud.designcenter.v1.ComponentOutputParametersB\004\342A\001\003\022B\n" + + "\005error\030\003 \001(\0132-.google." + + "cloud.designcenter.v1.DeploymentErrorB\004\342A\001\003\022\023\n" + + "\005build\030\004 \001(\tB\004\342A\001\003\022\031\n" + + "\013worker_pool\030\005 \001(\tB\004\342A\001\003\022\034\n" + + "\016retry_attempts\030\006 \001(\005B\004\342A\001\003\022f\n" + + "\035application_output_parameters\030\007 \001(\013" + + "29.google.cloud.designcenter.v1.ApplicationOutputParametersB\004\342A\001\003\"w\n" + + "\031ComponentOutputParameters\022\027\n" + + "\tcomponent\030\001 \001(\tB\004\342A\001\003\022A\n\n" + + "parameters\030\002" + + " \003(\0132\'.google.cloud.designcenter.v1.ParameterB\004\342A\001\003\"V\n" + + "\021ProjectParameters\022\030\n\n" + + "project_id\030\001 \001(\tB\004\342A\001\003\022\023\n" + + "\005roles\030\002 \003(\tB\004\342A\001\003\022\022\n" + + "\004apis\030\003 \003(\tB\004\342A\001\003\"\310\005\n" + + "\023ComponentParameters\022\027\n" + + "\tcomponent\030\001 \001(\tB\004\342A\001\002\022A\n\n" + + "parameters\030\002" + + " \003(\0132\'.google.cloud.designcenter.v1.ParameterB\004\342A\001\001\022X\n" + + "\026connections_parameters\030\003 \003(\01322.google.cloud.de" + + "signcenter.v1.ConnectionParametersB\004\342A\001\003\022L\n" + + "\005state\030\004 \001(\01627.google.cloud.designcen" + + "ter.v1.ComponentParameters.StateB\004\342A\001\003\022`\n" + + "\032component_parameter_schema\030\005 \003(\01326.goo" + + "gle.cloud.designcenter.v1.ComponentParameterSchemaB\004\342A\001\003\022V\n" + + "\020application_info\030\006 \001" + + "(\01326.google.cloud.designcenter.v1.ComponentApplicationInfoB\004\342A\001\001\022`\n" + + "\032effective_application_info\030\007 \001(\01326.google.cloud.desi" + + "gncenter.v1.ComponentApplicationInfoB\004\342A\001\003\"\220\001\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\t\n" + + "\005DRAFT\020\001\022\027\n" + + "\023CREATING_DEPLOYMENT\020\002\022\027\n" + + "\023UPDATING_DEPLOYMENT\020\003\022\014\n" + + "\010DELETING\020\004\022\014\n" + + "\010DEPLOYED\020\005\022\013\n" + + "\007DELETED\020\006\022\n\n" + + "\006FAILED\020\007\"\356\001\n" + + "\030ComponentApplicationInfo\022#\n" + + "\025apphub_application_id\030\001 \001(\tB\004\342A\001\002\022\032\n" + + "\014display_name\030\002 \001(\tB\004\342A\001\001\0222\n" + + "\005scope\030\003" + + " \001(\0132\035.google.cloud.apphub.v1.ScopeB\004\342A\001\001\022<\n\n" + + "attributes\030\004" + + " \001(\0132\".google.cloud.apphub.v1.AttributesB\004\342A\001\001\022\037\n" + + "\021deployment_region\030\005 \001(\tB\004\342A\001\001\"t\n" + + "\010RoleInfo\022.\n" + + "\004role\030\001 \001(\tB \342A\001\002\372A\031\n" + + "\027iam.googleapis.com/Role\022\035\n" + + "\017system_provided\030\002 \001(\010B\004\342A\001\003\022\031\n" + + "\013permissions\030\003 \003(\tB\004\342A\001\003\";\n" + + "\007ApiInfo\022\021\n" + + "\003api\030\001 \001(\tB\004\342A\001\002\022\035\n" + + "\017system_provided\030\002 \001(\010B\004\342A\001\003\"\246\001\n" + + "\022RolesAndApisConfig\022\030\n\n" + + "project_id\030\001 \001(\tB\004\342A\001\002\022;\n" + + "\005roles\030\002 \003(\0132&.goog" + + "le.cloud.designcenter.v1.RoleInfoB\004\342A\001\001\0229\n" + + "\004apis\030\003" + + " \003(\0132%.google.cloud.designcenter.v1.ApiInfoB\004\342A\001\001B\333\001\n" + + " com.google.cloud.designcenter.v1B\017DeploymentProtoP\001ZDclou" + + "d.google.com/go/designcenter/apiv1/desig" + + "ncenterpb;designcenterpb\252\002\034Google.Cloud." + + "DesignCenter.V1\312\002\034Google\\Cloud\\DesignCen" + + "ter\\V1\352\002\037Google::Cloud::DesignCenter::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.apphub.v1.ApplicationProto.getDescriptor(), + com.google.cloud.apphub.v1.AttributesProto.getDescriptor(), + com.google.cloud.config.v1.ConfigProto.getDescriptor(), + com.google.cloud.designcenter.v1.ParametersProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_designcenter_v1_DeploymentSource_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_designcenter_v1_DeploymentSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_DeploymentSource_descriptor, + new java.lang.String[] { + "ApplicationTemplateRevision", "SharedTemplateRevisionUri", "Source", + }); + internal_static_google_cloud_designcenter_v1_DeploymentError_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_designcenter_v1_DeploymentError_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_DeploymentError_descriptor, + new java.lang.String[] { + "Type", + "Code", + "TfErrors", + "Detail", + "DeploymentFailureResolutionInfo", + "ErrorMessage", + }); + internal_static_google_cloud_designcenter_v1_DeploymentFailureResolutionInfo_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_designcenter_v1_DeploymentFailureResolutionInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_DeploymentFailureResolutionInfo_descriptor, + new java.lang.String[] { + "ResolutionLink", "ResolutionMessage", "ResolutionLinkText", + }); + internal_static_google_cloud_designcenter_v1_ApplicationOutputParameters_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_cloud_designcenter_v1_ApplicationOutputParameters_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ApplicationOutputParameters_descriptor, + new java.lang.String[] { + "HelmApplicationOutputParameters", "Parameters", + }); + internal_static_google_cloud_designcenter_v1_HelmApplicationOutputParameters_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_cloud_designcenter_v1_HelmApplicationOutputParameters_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_HelmApplicationOutputParameters_descriptor, + new java.lang.String[] { + "Parameters", + }); + internal_static_google_cloud_designcenter_v1_UpdatedTemplateRevision_descriptor = + getDescriptor().getMessageType(5); + internal_static_google_cloud_designcenter_v1_UpdatedTemplateRevision_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_UpdatedTemplateRevision_descriptor, + new java.lang.String[] { + "TemplateRevision", "CreateTime", "TemplateDisplayName", + }); + internal_static_google_cloud_designcenter_v1_ConnectionConfig_descriptor = + getDescriptor().getMessageType(6); + internal_static_google_cloud_designcenter_v1_ConnectionConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ConnectionConfig_descriptor, + new java.lang.String[] { + "ConnectionUri", "SourceComponentParameters", "DestinationComponentParameters", + }); + internal_static_google_cloud_designcenter_v1_DeploymentTarget_descriptor = + getDescriptor().getMessageType(7); + internal_static_google_cloud_designcenter_v1_DeploymentTarget_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_DeploymentTarget_descriptor, + new java.lang.String[] { + "GkeDeploymentTarget", "Target", + }); + internal_static_google_cloud_designcenter_v1_GKEDeploymentTarget_descriptor = + getDescriptor().getMessageType(8); + internal_static_google_cloud_designcenter_v1_GKEDeploymentTarget_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_GKEDeploymentTarget_descriptor, + new java.lang.String[] { + "ClusterSelfLink", + "Namespace", + "KubernetesServiceAccount", + "KubernetesServiceAccountCreation", + }); + internal_static_google_cloud_designcenter_v1_CompositeApplicationParameters_descriptor = + getDescriptor().getMessageType(9); + internal_static_google_cloud_designcenter_v1_CompositeApplicationParameters_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_CompositeApplicationParameters_descriptor, + new java.lang.String[] { + "ServiceAccountMap", "ProjectParametersMap", + }); + internal_static_google_cloud_designcenter_v1_CompositeApplicationParameters_ServiceAccountMapEntry_descriptor = + internal_static_google_cloud_designcenter_v1_CompositeApplicationParameters_descriptor + .getNestedType(0); + internal_static_google_cloud_designcenter_v1_CompositeApplicationParameters_ServiceAccountMapEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_CompositeApplicationParameters_ServiceAccountMapEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_designcenter_v1_CompositeApplicationParameters_ProjectParametersMapEntry_descriptor = + internal_static_google_cloud_designcenter_v1_CompositeApplicationParameters_descriptor + .getNestedType(1); + internal_static_google_cloud_designcenter_v1_CompositeApplicationParameters_ProjectParametersMapEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_CompositeApplicationParameters_ProjectParametersMapEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_designcenter_v1_ProjectParametersList_descriptor = + getDescriptor().getMessageType(10); + internal_static_google_cloud_designcenter_v1_ProjectParametersList_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ProjectParametersList_descriptor, + new java.lang.String[] { + "ProjectParameters", + }); + internal_static_google_cloud_designcenter_v1_DeploymentGroupMetadata_descriptor = + getDescriptor().getMessageType(11); + internal_static_google_cloud_designcenter_v1_DeploymentGroupMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_DeploymentGroupMetadata_descriptor, + new java.lang.String[] { + "DeploymentGroup", "DeploymentMetadataMap", + }); + internal_static_google_cloud_designcenter_v1_DeploymentGroupMetadata_DeploymentMetadataMapEntry_descriptor = + internal_static_google_cloud_designcenter_v1_DeploymentGroupMetadata_descriptor + .getNestedType(0); + internal_static_google_cloud_designcenter_v1_DeploymentGroupMetadata_DeploymentMetadataMapEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_DeploymentGroupMetadata_DeploymentMetadataMapEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_designcenter_v1_DeploymentMetadata_descriptor = + getDescriptor().getMessageType(12); + internal_static_google_cloud_designcenter_v1_DeploymentMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_DeploymentMetadata_descriptor, + new java.lang.String[] { + "Revision", + "ComponentOutputParameters", + "Error", + "Build", + "WorkerPool", + "RetryAttempts", + "ApplicationOutputParameters", + }); + internal_static_google_cloud_designcenter_v1_ComponentOutputParameters_descriptor = + getDescriptor().getMessageType(13); + internal_static_google_cloud_designcenter_v1_ComponentOutputParameters_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ComponentOutputParameters_descriptor, + new java.lang.String[] { + "Component", "Parameters", + }); + internal_static_google_cloud_designcenter_v1_ProjectParameters_descriptor = + getDescriptor().getMessageType(14); + internal_static_google_cloud_designcenter_v1_ProjectParameters_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ProjectParameters_descriptor, + new java.lang.String[] { + "ProjectId", "Roles", "Apis", + }); + internal_static_google_cloud_designcenter_v1_ComponentParameters_descriptor = + getDescriptor().getMessageType(15); + internal_static_google_cloud_designcenter_v1_ComponentParameters_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ComponentParameters_descriptor, + new java.lang.String[] { + "Component", + "Parameters", + "ConnectionsParameters", + "State", + "ComponentParameterSchema", + "ApplicationInfo", + "EffectiveApplicationInfo", + }); + internal_static_google_cloud_designcenter_v1_ComponentApplicationInfo_descriptor = + getDescriptor().getMessageType(16); + internal_static_google_cloud_designcenter_v1_ComponentApplicationInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ComponentApplicationInfo_descriptor, + new java.lang.String[] { + "ApphubApplicationId", "DisplayName", "Scope", "Attributes", "DeploymentRegion", + }); + internal_static_google_cloud_designcenter_v1_RoleInfo_descriptor = + getDescriptor().getMessageType(17); + internal_static_google_cloud_designcenter_v1_RoleInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_RoleInfo_descriptor, + new java.lang.String[] { + "Role", "SystemProvided", "Permissions", + }); + internal_static_google_cloud_designcenter_v1_ApiInfo_descriptor = + getDescriptor().getMessageType(18); + internal_static_google_cloud_designcenter_v1_ApiInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ApiInfo_descriptor, + new java.lang.String[] { + "Api", "SystemProvided", + }); + internal_static_google_cloud_designcenter_v1_RolesAndApisConfig_descriptor = + getDescriptor().getMessageType(19); + internal_static_google_cloud_designcenter_v1_RolesAndApisConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_RolesAndApisConfig_descriptor, + new java.lang.String[] { + "ProjectId", "Roles", "Apis", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.apphub.v1.ApplicationProto.getDescriptor(); + com.google.cloud.apphub.v1.AttributesProto.getDescriptor(); + com.google.cloud.config.v1.ConfigProto.getDescriptor(); + com.google.cloud.designcenter.v1.ParametersProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentResourcesProto.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentResourcesProto.java new file mode 100644 index 000000000000..93c683509169 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentResourcesProto.java @@ -0,0 +1,223 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment_resources.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public final class DeploymentResourcesProto extends com.google.protobuf.GeneratedFile { + private DeploymentResourcesProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DeploymentResourcesProto"); + } + + 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_designcenter_v1_Application_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_Application_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" + + "7google/cloud/designcenter/v1/deployment_resources.proto\022\034google.cloud.designce" + + "nter.v1\032\037google/api/field_behavior.proto" + + "\032\031google/api/resource.proto\032(google/clou" + + "d/apphub/v1/application.proto\032\'google/cl" + + "oud/apphub/v1/attributes.proto\032,google/cloud/designcenter/v1/authoring.proto\032-go" + + "ogle/cloud/designcenter/v1/deployment.proto\032(google/cloud/designcenter/v1/enums." + + "proto\032)google/cloud/designcenter/v1/export.proto\032+google/cloud/designcenter/v1/m" + + "etadata.proto\032-google/cloud/designcenter" + + "/v1/parameters.proto\032\037google/protobuf/timestamp.proto\"\360\023\n" + + "\013Application\022\022\n" + + "\004name\030\001 \001(\tB\004\342A\001\010\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.TimestampB\004\342A\001\003\022D\n" + + "\006source\030\004" + + " \001(\0132..google.cloud.designcenter.v1.DeploymentSourceB\004\342A\001\002\022E\n" + + "\016app_parameters\030\005" + + " \003(\0132\'.google.cloud.designcenter.v1.ParameterB\004\342A\001\001\022U\n" + + "\024component_parameters\030\n" + + " \003(\01321.google.cloud.designcenter.v1.ComponentParametersB\004\342A\001\001\022\035\n" + + "\017service_account\030\013 \001(\tB\004\342A\001\001\022\032\n" + + "\014display_name\030\014 \001(\tB\004\342A\001\001\022\031\n" + + "\013description\030\r" + + " \001(\tB\004\342A\001\001\022<\n\n" + + "attributes\030\016" + + " \001(\0132\".google.cloud.apphub.v1.AttributesB\004\342A\001\001\0222\n" + + "\005scope\030\017" + + " \001(\0132\035.google.cloud.apphub.v1.ScopeB\004\342A\001\002\022\'\n" + + "\031import_existing_resources\030\020 \001(\010B\004\342A\001\001\022\037\n" + + "\021preview_reference\030\021 \001(\tB\004\342A\001\003\022!\n" + + "\023deployment_revision\030\022 \001(\tB\004\342A\001\003\022 \n" + + "\022apphub_application\030\023 \001(\tB\004\342A\001\003\022j\n" + + "\037serialized_application_template\030\024 \001(\0132;.google.cloud.designcenter." + + "v1.SerializedApplicationTemplateB\004\342A\001\003\022D\n" + + "\005state\030\025" + + " \001(\0162/.google.cloud.designcenter.v1.Application.StateB\004\342A\001\003\022S\n" + + "\023deployment_metadata\030\026" + + " \001(\01320.google.cloud.designcenter.v1.DeploymentMetadataB\004\342A\001\003\022Q\n" + + "\022project_parameters\030\027" + + " \003(\0132/.google.cloud.designcenter.v1.ProjectParametersB\004\342A\001\003\022\037\n" + + "\021deployment_region\030\030 \001(\tB\004\342A\001\001\022^\n" + + "\031updated_template_revision\030\032 \001(\01325.google.cloud." + + "designcenter.v1.UpdatedTemplateRevisionB\004\342A\001\003\022 \n" + + "\022deployment_project\030\033 \001(\tB\004\342A\001\001\022P\n" + + "\022connection_configs\030\034 \003(\0132..google.clo" + + "ud.designcenter.v1.ConnectionConfigB\004\342A\001\001\022O\n" + + "\021artifact_location\030\035 \001(\0132..google.cl" + + "oud.designcenter.v1.ArtifactLocationB\004\342A\001\003\022A\n" + + "\004type\030\036" + + " \001(\0162-.google.cloud.designcenter.v1.ApplicationTypeB\004\342A\001\001\022O\n" + + "\021deployment_target\030\037" + + " \001(\0132..google.cloud.designcenter.v1.DeploymentTargetB\004\342A\001\001\022X\n" + + "\020composition_type\030 \001(\01628.google.cloud.designce" + + "nter.v1.ApplicationCompositionTypeB\004\342A\001\003\022l\n" + + " composite_application_parameters\030! \001" + + "(\0132<.google.cloud.designcenter.v1.CompositeApplicationParametersB\004\342A\001\001\022^\n" + + "\031deployment_group_metadata\030\" \001(\01325.google.cloud" + + ".designcenter.v1.DeploymentGroupMetadataB\004\342A\001\003\022^\n" + + "\026params_update_strategy\030# \001(\01628" + + ".google.cloud.designcenter.v1.Application.UpdateStrategyB\004\342A\001\001\022Q\n" + + "\021roles_apis_config\030$" + + " \003(\01320.google.cloud.designcenter.v1.RolesAndApisConfigB\004\342A\001\001\022R\n" + + "\021template_metadata\030%" + + " \001(\01321.google.cloud.designcenter.v1.TFBlueprintMetadataB\004\342A\001\003\022A\n\n" + + "iac_source\030&" + + " \001(\0162\'.google.cloud.designcenter.v1.IACSourceB\004\342A\001\003\"\237\001\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\t\n" + + "\005DRAFT\020\001\022\027\n" + + "\023CREATING_DEPLOYMENT\020\002\022\027\n" + + "\023UPDATING_DEPLOYMENT\020\003\022\014\n" + + "\010DELETING\020\004\022\014\n" + + "\010DEPLOYED\020\005\022\013\n" + + "\007DELETED\020\006\022\n\n" + + "\006FAILED\020\007\022\r\n" + + "\tDEPLOYING\020\010\">\n" + + "\016UpdateStrategy\022\037\n" + + "\033UPDATE_STRATEGY_UNSPECIFIED\020\000\022\013\n" + + "\007REPLACE\020\002:\233\001\352A\227\001\n" + + "\'designcenter.googleapis.com/Application\022Qprojects/{project}/locations" + + "/{location}/spaces/{space}/applications/" + + "{application}*\014applications2\013applicationB\344\001\n" + + " com.google.cloud.designcenter.v1B\030DeploymentResourcesProtoP\001ZDcloud.google." + + "com/go/designcenter/apiv1/designcenterpb" + + ";designcenterpb\252\002\034Google.Cloud.DesignCen" + + "ter.V1\312\002\034Google\\Cloud\\DesignCenter\\V1\352\002\037" + + "Google::Cloud::DesignCenter::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.apphub.v1.ApplicationProto.getDescriptor(), + com.google.cloud.apphub.v1.AttributesProto.getDescriptor(), + com.google.cloud.designcenter.v1.AuthoringResourcesProto.getDescriptor(), + com.google.cloud.designcenter.v1.DeploymentProto.getDescriptor(), + com.google.cloud.designcenter.v1.EnumsProto.getDescriptor(), + com.google.cloud.designcenter.v1.ExportProto.getDescriptor(), + com.google.cloud.designcenter.v1.MetadataProto.getDescriptor(), + com.google.cloud.designcenter.v1.ParametersProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_designcenter_v1_Application_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_designcenter_v1_Application_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_Application_descriptor, + new java.lang.String[] { + "Name", + "CreateTime", + "UpdateTime", + "Source", + "AppParameters", + "ComponentParameters", + "ServiceAccount", + "DisplayName", + "Description", + "Attributes", + "Scope", + "ImportExistingResources", + "PreviewReference", + "DeploymentRevision", + "ApphubApplication", + "SerializedApplicationTemplate", + "State", + "DeploymentMetadata", + "ProjectParameters", + "DeploymentRegion", + "UpdatedTemplateRevision", + "DeploymentProject", + "ConnectionConfigs", + "ArtifactLocation", + "Type", + "DeploymentTarget", + "CompositionType", + "CompositeApplicationParameters", + "DeploymentGroupMetadata", + "ParamsUpdateStrategy", + "RolesApisConfig", + "TemplateMetadata", + "IacSource", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.apphub.v1.ApplicationProto.getDescriptor(); + com.google.cloud.apphub.v1.AttributesProto.getDescriptor(); + com.google.cloud.designcenter.v1.AuthoringResourcesProto.getDescriptor(); + com.google.cloud.designcenter.v1.DeploymentProto.getDescriptor(); + com.google.cloud.designcenter.v1.EnumsProto.getDescriptor(); + com.google.cloud.designcenter.v1.ExportProto.getDescriptor(); + com.google.cloud.designcenter.v1.MetadataProto.getDescriptor(); + com.google.cloud.designcenter.v1.ParametersProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentRpcMessagesProto.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentRpcMessagesProto.java new file mode 100644 index 000000000000..e692ea8e2cd5 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentRpcMessagesProto.java @@ -0,0 +1,496 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public final class DeploymentRpcMessagesProto extends com.google.protobuf.GeneratedFile { + private DeploymentRpcMessagesProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DeploymentRpcMessagesProto"); + } + + 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_designcenter_v1_CreateApplicationRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_CreateApplicationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_GetApplicationRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_GetApplicationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_ListApplicationsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ListApplicationsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_ListApplicationsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ListApplicationsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_UpdateApplicationRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_UpdateApplicationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_DeleteApplicationRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_DeleteApplicationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_DeployApplicationRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_DeployApplicationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_DeployApplicationResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_DeployApplicationResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_Resource_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_Resource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_GenerateApplicationIaCRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_GenerateApplicationIaCRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_GenerateApplicationIaCResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_GenerateApplicationIaCResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_ExportApplicationIaCRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ExportApplicationIaCRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_ExportApplicationIaCResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ExportApplicationIaCResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_ImportApplicationIaCRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ImportApplicationIaCRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_ImportApplicationIaCResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ImportApplicationIaCResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_PreviewApplicationRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_PreviewApplicationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_PreviewApplicationResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_PreviewApplicationResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_RecommendIAMRolesRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_RecommendIAMRolesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_RecommendIAMRolesResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_RecommendIAMRolesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_ConfigureAndDeployTemplateRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ConfigureAndDeployTemplateRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_ConfigureAndDeployTemplateResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ConfigureAndDeployTemplateResponse_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" + + "6google/cloud/designcenter/v1/deployment_messages.proto\022\034google.cloud.designcen" + + "ter.v1\032\037google/api/field_behavior.proto\032" + + "\031google/api/resource.proto\032#google/cloud" + + "/config/v1/config.proto\0321google/cloud/designcenter/v1/best_practices.proto\032-goog" + + "le/cloud/designcenter/v1/deployment.proto\0327google/cloud/designcenter/v1/deployme" + + "nt_resources.proto\032(google/cloud/designcenter/v1/enums.proto\032)google/cloud/desig" + + "ncenter/v1/export.proto\032&google/cloud/designcenter/v1/iac.proto\032,google/cloud/de" + + "signcenter/v1/ingestion.proto\032-google/cloud/designcenter/v1/parameters.proto\032" + + " google/protobuf/field_mask.proto\"\300\001\n" + + "\030CreateApplicationRequest\022@\n" + + "\006parent\030\001 \001(\tB0\342A\001" + + "\002\372A)\022\'designcenter.googleapis.com/Application\022\034\n" + + "\016application_id\030\002 \001(\tB\004\342A\001\002\022D\n" + + "\013application\030\003" + + " \001(\0132).google.cloud.designcenter.v1.ApplicationB\004\342A\001\002\"W\n" + + "\025GetApplicationRequest\022>\n" + + "\004name\030\001 \001(\tB0\342A\001\002\372A)\n" + + "\'designcenter.googleapis.com/Application\"\274\001\n" + + "\027ListApplicationsRequest\022@\n" + + "\006parent\030\001 \001(\tB0" + + "\342A\001\002\372A)\022\'designcenter.googleapis.com/Application\022\027\n" + + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n" + + "page_token\030\003 \001(\tB\004\342A\001\001\022\024\n" + + "\006filter\030\004 \001(\tB\004\342A\001\001\022\026\n" + + "\010order_by\030\005 \001(\tB\004\342A\001\001\"\217\001\n" + + "\030ListApplicationsResponse\022?\n" + + "\014applications\030\001 \003(\0132).g" + + "oogle.cloud.designcenter.v1.Application\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\031\n" + + "\013unreachable\030\003 \003(\tB\004\342A\001\006\"\227\001\n" + + "\030UpdateApplicationRequest\0225\n" + + "\013update_mask\030\001" + + " \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\001\022D\n" + + "\013application\030\002 \001(\0132).g" + + "oogle.cloud.designcenter.v1.ApplicationB\004\342A\001\002\"o\n" + + "\030DeleteApplicationRequest\022>\n" + + "\004name\030\001 \001(\tB0\342A\001\002\372A)\n" + + "\'designcenter.googleapis.com/Application\022\023\n" + + "\005force\030\003 \001(\010B\004\342A\001\001\"\310\001\n" + + "\030DeployApplicationRequest\022>\n" + + "\004name\030\001 \001(\tB0\342A\001\002\372A)\n" + + "\'designcenter.googleapis.com/Application\022\025\n" + + "\007replace\030\002 \001(\010B\004\342A\001\001\022\031\n" + + "\013worker_pool\030\004 \001(\tB\004\342A\001\001\022\035\n" + + "\017service_account\030\005 \001(\tB\004\342A\001\001\022\033\n\r" + + "validate_only\030\006 \001(\010B\004\342A\001\001\"\250\001\n" + + "\031DeployApplicationResponse\0226\n\n" + + "deployment\030\001 \001(\0132\".google.cloud.config.v1.Deployment\022\020\n" + + "\010build_id\030\002 \001(\t\022A\n" + + "\020deployment_group\030\003" + + " \001(\0132\'.google.cloud.config.v1.DeploymentGroup\"\225\003\n" + + "\010Resource\022\023\n" + + "\004name\030\001 \001(\tB\005\342A\002\003\010\022\022\n" + + "\004type\030\002 \001(\tB\004\342A\001\003\022A\n" + + "\005state\030\003 \001(" + + "\0162,.google.cloud.designcenter.v1.Resource.StateB\004\342A\001\003\"s\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\013\n" + + "\007PLANNED\020\001\022\017\n" + + "\013IN_PROGRESS\020\002\022\016\n\n" + + "RECONCILED\020\003\022\n\n" + + "\006FAILED\020\004\022\013\n" + + "\007DRIFTED\020\005\022\014\n" + + "\010INTENDED\020\006:\247\001\352A\243\001\n" + + "$designcenter.googleapis.com/Resource\022fprojects/{project}/loca" + + "tions/{location}/spaces/{space}/applications/{application}/resources/{resource}*" + + "\tresources2\010resource\"\214\002\n" + + "\035GenerateApplicationIaCRequest\022>\n" + + "\004name\030\001 \001(\tB0\342A\001\002\372A)\n" + + "\'designcenter.googleapis.com/Application\022A\n\n" + + "iac_format\030\002" + + " \001(\0162\'.google.cloud.designcenter.v1.IACFormatB\004\342A\001\001\022\027\n" + + "\007gcs_uri\030\003 \001(\tB\006\030\001\342A\001\001\022O\n" + + "\021artifact_location\030\004 \001(\0132.." + + "google.cloud.designcenter.v1.ArtifactLocationB\004\342A\001\001\"\322\001\n" + + "\036GenerateApplicationIaCResponse\022\023\n" + + "\007gcs_uri\030\001 \001(\tB\002\030\001\022I\n" + + "\021artifact_location\030\002" + + " \001(\0132..google.cloud.designcenter.v1.ArtifactLocation\022P\n" + + "\025root_modules_metadata\030\003" + + " \001(\01321.google.cloud.designcenter.v1.RootModulesMetadata\"\301\002\n" + + "\033ExportApplicationIaCRequest\022>\n" + + "\004name\030\001 \001(\tB0\342A\001\002\372A)\n" + + "\'designcenter.googleapis.com/Application\022A\n\n" + + "iac_format\030\002" + + " \001(\0162\'.google.cloud.designcenter.v1.IACFormatB\004\342A\001\001\022O\n" + + "\021artifact_location\030\003" + + " \001(\0132..google.cloud.designcenter.v1.ArtifactLocationB\004\342A\001\001\022N\n" + + "\021export_iac_config\030\004" + + " \001(\0132-.google.cloud.designcenter.v1.ExportIaCConfigB\004\342A\001\001\"\273\001\n" + + "\034ExportApplicationIaCResponse\022I\n" + + "\021artifact_location\030\001" + + " \001(\0132..google.cloud.designcenter.v1.ArtifactLocation\022P\n" + + "\025root_modules_metadata\030\002" + + " \001(\01321.google.cloud.designcenter.v1.RootModulesMetadata\"\205\002\n" + + "\033ImportApplicationIaCRequest\022\027\n" + + "\007gcs_uri\030\002 \001(\tB\004\342A\001\001H\000\022C\n\n" + + "iac_module\030\005" + + " \001(\0132\'.google.cloud.designcenter.v1.IaCModuleB\004\342A\001\001H\000\022>\n" + + "\004name\030\001 \001(\tB0\342A\001\002\372A)\n" + + "\'designcenter.googleapis.com/Application\022\"\n" + + "\024allow_partial_import\030\004 \001(\010B\004\342A\001\001\022\032\n" + + "\014validate_iac\030\006 \001(\010B\004\342A\001\001B\010\n" + + "\006source\"\250\002\n" + + "\034ImportApplicationIaCResponse\022>\n" + + "\013application\030\001 \001(\0132).google.cloud.designcenter.v1.Application\022<\n" + + "\006errors\030\002 \003(\0132,.google.cloud.designcenter.v1.ImportIaCError\022O\n" + + "\005state\030\003 \001(\0162@.google.cloud.designce" + + "nter.v1.ImportApplicationIaCResponse.State\"9\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\r\n" + + "\tSUCCEEDED\020\001\022\n\n" + + "\006FAILED\020\002\"\225\001\n" + + "\031PreviewApplicationRequest\022>\n" + + "\004name\030\001 \001(\tB0\342A\001\002\372A)\n" + + "\'designcenter.googleapis.com/Application\022\031\n" + + "\013worker_pool\030\002 \001(\tB\004\342A\001\001\022\035\n" + + "\017service_account\030\003 \001(\tB\004\342A\001\001\"\231\001\n" + + "\032PreviewApplicationResponse\0220\n" + + "\007preview\030\001 \001(\0132\037.google.cloud.config.v1.Preview\022I\n" + + "\021assessment_report\030\002 \001(" + + "\0132..google.cloud.designcenter.v1.AssessmentReport\"Z\n" + + "\030RecommendIAMRolesRequest\022>\n" + + "\004name\030\001 \001(\tB0\342A\001\002\372A)\n" + + "\'designcenter.googleapis.com/Application\"m\n" + + "\031RecommendIAMRolesResponse\022P\n" + + "\026project_configurations\030\001 \003" + + "(\01320.google.cloud.designcenter.v1.RolesAndApisConfig\"\376\001\n" + + "!ConfigureAndDeployTemplateRequest\022:\n" + + "\006parent\030\001 \001(\tB*\342A\001\002\372A#\n" + + "!locations.googleapis.com/Location\022\032\n" + + "\014template_uri\030\002 \001(\tB\004\342A\001\002\022\026\n" + + "\010space_id\030\003 \001(\tB\004\342A\001\002\022J\n" + + "\023template_parameters\030\004 \003(\0132\'.google" + + ".cloud.designcenter.v1.ParameterB\004\342A\001\001\022\035\n" + + "\017service_account\030\005 \001(\tB\004\342A\001\001\"\335\002\n" + + "\"ConfigureAndDeployTemplateResponse\022E\n" + + "\017application_uri\030\001 \001(\tB,\372A)\n" + + "\'designcenter.googleapis.com/Application\022V\n" + + "\030application_template_uri\030\002 \001(\tB4\372A1\n" + + "/designcenter.googleapis.com/ApplicationTemplate\022M\n" + + "\023deployment_metadata\030\003" + + " \001(\01320.google.cloud.designcenter.v1.DeploymentMetadata\022I\n" + + "\020deployment_state\030\004" + + " \001(\0162/.google.cloud.designcenter.v1.Application.StateB\346\001\n" + + " com.google.cloud.designcenter.v1B\032DeploymentRpcMessage" + + "sProtoP\001ZDcloud.google.com/go/designcent" + + "er/apiv1/designcenterpb;designcenterpb\252\002" + + "\034Google.Cloud.DesignCenter.V1\312\002\034Google\\C" + + "loud\\DesignCenter\\V1\352\002\037Google::Cloud::DesignCenter::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.config.v1.ConfigProto.getDescriptor(), + com.google.cloud.designcenter.v1.BestPracticesResourcesProto.getDescriptor(), + com.google.cloud.designcenter.v1.DeploymentProto.getDescriptor(), + com.google.cloud.designcenter.v1.DeploymentResourcesProto.getDescriptor(), + com.google.cloud.designcenter.v1.EnumsProto.getDescriptor(), + com.google.cloud.designcenter.v1.ExportProto.getDescriptor(), + com.google.cloud.designcenter.v1.IacProto.getDescriptor(), + com.google.cloud.designcenter.v1.IngestionProto.getDescriptor(), + com.google.cloud.designcenter.v1.ParametersProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_designcenter_v1_CreateApplicationRequest_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_designcenter_v1_CreateApplicationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_CreateApplicationRequest_descriptor, + new java.lang.String[] { + "Parent", "ApplicationId", "Application", + }); + internal_static_google_cloud_designcenter_v1_GetApplicationRequest_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_designcenter_v1_GetApplicationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_GetApplicationRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_designcenter_v1_ListApplicationsRequest_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_designcenter_v1_ListApplicationsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ListApplicationsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_designcenter_v1_ListApplicationsResponse_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_cloud_designcenter_v1_ListApplicationsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ListApplicationsResponse_descriptor, + new java.lang.String[] { + "Applications", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_designcenter_v1_UpdateApplicationRequest_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_cloud_designcenter_v1_UpdateApplicationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_UpdateApplicationRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "Application", + }); + internal_static_google_cloud_designcenter_v1_DeleteApplicationRequest_descriptor = + getDescriptor().getMessageType(5); + internal_static_google_cloud_designcenter_v1_DeleteApplicationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_DeleteApplicationRequest_descriptor, + new java.lang.String[] { + "Name", "Force", + }); + internal_static_google_cloud_designcenter_v1_DeployApplicationRequest_descriptor = + getDescriptor().getMessageType(6); + internal_static_google_cloud_designcenter_v1_DeployApplicationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_DeployApplicationRequest_descriptor, + new java.lang.String[] { + "Name", "Replace", "WorkerPool", "ServiceAccount", "ValidateOnly", + }); + internal_static_google_cloud_designcenter_v1_DeployApplicationResponse_descriptor = + getDescriptor().getMessageType(7); + internal_static_google_cloud_designcenter_v1_DeployApplicationResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_DeployApplicationResponse_descriptor, + new java.lang.String[] { + "Deployment", "BuildId", "DeploymentGroup", + }); + internal_static_google_cloud_designcenter_v1_Resource_descriptor = + getDescriptor().getMessageType(8); + internal_static_google_cloud_designcenter_v1_Resource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_Resource_descriptor, + new java.lang.String[] { + "Name", "Type", "State", + }); + internal_static_google_cloud_designcenter_v1_GenerateApplicationIaCRequest_descriptor = + getDescriptor().getMessageType(9); + internal_static_google_cloud_designcenter_v1_GenerateApplicationIaCRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_GenerateApplicationIaCRequest_descriptor, + new java.lang.String[] { + "Name", "IacFormat", "GcsUri", "ArtifactLocation", + }); + internal_static_google_cloud_designcenter_v1_GenerateApplicationIaCResponse_descriptor = + getDescriptor().getMessageType(10); + internal_static_google_cloud_designcenter_v1_GenerateApplicationIaCResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_GenerateApplicationIaCResponse_descriptor, + new java.lang.String[] { + "GcsUri", "ArtifactLocation", "RootModulesMetadata", + }); + internal_static_google_cloud_designcenter_v1_ExportApplicationIaCRequest_descriptor = + getDescriptor().getMessageType(11); + internal_static_google_cloud_designcenter_v1_ExportApplicationIaCRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ExportApplicationIaCRequest_descriptor, + new java.lang.String[] { + "Name", "IacFormat", "ArtifactLocation", "ExportIacConfig", + }); + internal_static_google_cloud_designcenter_v1_ExportApplicationIaCResponse_descriptor = + getDescriptor().getMessageType(12); + internal_static_google_cloud_designcenter_v1_ExportApplicationIaCResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ExportApplicationIaCResponse_descriptor, + new java.lang.String[] { + "ArtifactLocation", "RootModulesMetadata", + }); + internal_static_google_cloud_designcenter_v1_ImportApplicationIaCRequest_descriptor = + getDescriptor().getMessageType(13); + internal_static_google_cloud_designcenter_v1_ImportApplicationIaCRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ImportApplicationIaCRequest_descriptor, + new java.lang.String[] { + "GcsUri", "IacModule", "Name", "AllowPartialImport", "ValidateIac", "Source", + }); + internal_static_google_cloud_designcenter_v1_ImportApplicationIaCResponse_descriptor = + getDescriptor().getMessageType(14); + internal_static_google_cloud_designcenter_v1_ImportApplicationIaCResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ImportApplicationIaCResponse_descriptor, + new java.lang.String[] { + "Application", "Errors", "State", + }); + internal_static_google_cloud_designcenter_v1_PreviewApplicationRequest_descriptor = + getDescriptor().getMessageType(15); + internal_static_google_cloud_designcenter_v1_PreviewApplicationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_PreviewApplicationRequest_descriptor, + new java.lang.String[] { + "Name", "WorkerPool", "ServiceAccount", + }); + internal_static_google_cloud_designcenter_v1_PreviewApplicationResponse_descriptor = + getDescriptor().getMessageType(16); + internal_static_google_cloud_designcenter_v1_PreviewApplicationResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_PreviewApplicationResponse_descriptor, + new java.lang.String[] { + "Preview", "AssessmentReport", + }); + internal_static_google_cloud_designcenter_v1_RecommendIAMRolesRequest_descriptor = + getDescriptor().getMessageType(17); + internal_static_google_cloud_designcenter_v1_RecommendIAMRolesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_RecommendIAMRolesRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_designcenter_v1_RecommendIAMRolesResponse_descriptor = + getDescriptor().getMessageType(18); + internal_static_google_cloud_designcenter_v1_RecommendIAMRolesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_RecommendIAMRolesResponse_descriptor, + new java.lang.String[] { + "ProjectConfigurations", + }); + internal_static_google_cloud_designcenter_v1_ConfigureAndDeployTemplateRequest_descriptor = + getDescriptor().getMessageType(19); + internal_static_google_cloud_designcenter_v1_ConfigureAndDeployTemplateRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ConfigureAndDeployTemplateRequest_descriptor, + new java.lang.String[] { + "Parent", "TemplateUri", "SpaceId", "TemplateParameters", "ServiceAccount", + }); + internal_static_google_cloud_designcenter_v1_ConfigureAndDeployTemplateResponse_descriptor = + getDescriptor().getMessageType(20); + internal_static_google_cloud_designcenter_v1_ConfigureAndDeployTemplateResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ConfigureAndDeployTemplateResponse_descriptor, + new java.lang.String[] { + "ApplicationUri", "ApplicationTemplateUri", "DeploymentMetadata", "DeploymentState", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.config.v1.ConfigProto.getDescriptor(); + com.google.cloud.designcenter.v1.BestPracticesResourcesProto.getDescriptor(); + com.google.cloud.designcenter.v1.DeploymentProto.getDescriptor(); + com.google.cloud.designcenter.v1.DeploymentResourcesProto.getDescriptor(); + com.google.cloud.designcenter.v1.EnumsProto.getDescriptor(); + com.google.cloud.designcenter.v1.ExportProto.getDescriptor(); + com.google.cloud.designcenter.v1.IacProto.getDescriptor(); + com.google.cloud.designcenter.v1.IngestionProto.getDescriptor(); + com.google.cloud.designcenter.v1.ParametersProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentSource.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentSource.java new file mode 100644 index 000000000000..c7a21d5fbeea --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentSource.java @@ -0,0 +1,973 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Source template information for the deployment.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.DeploymentSource} + */ +@com.google.protobuf.Generated +public final class DeploymentSource extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.DeploymentSource) + DeploymentSourceOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DeploymentSource"); + } + + // Use DeploymentSource.newBuilder() to construct. + private DeploymentSource(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeploymentSource() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_DeploymentSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_DeploymentSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.DeploymentSource.class, + com.google.cloud.designcenter.v1.DeploymentSource.Builder.class); + } + + private int sourceCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object source_; + + public enum SourceCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + APPLICATION_TEMPLATE_REVISION(4), + SHARED_TEMPLATE_REVISION_URI(6), + SOURCE_NOT_SET(0); + private final int value; + + private SourceCase(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 SourceCase valueOf(int value) { + return forNumber(value); + } + + public static SourceCase forNumber(int value) { + switch (value) { + case 4: + return APPLICATION_TEMPLATE_REVISION; + case 6: + return SHARED_TEMPLATE_REVISION_URI; + case 0: + return SOURCE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); + } + + public static final int APPLICATION_TEMPLATE_REVISION_FIELD_NUMBER = 4; + + /** + * + * + *
+   * Application template revision URI.
+   * 
+ * + * string application_template_revision = 4; + * + * @return Whether the applicationTemplateRevision field is set. + */ + public boolean hasApplicationTemplateRevision() { + return sourceCase_ == 4; + } + + /** + * + * + *
+   * Application template revision URI.
+   * 
+ * + * string application_template_revision = 4; + * + * @return The applicationTemplateRevision. + */ + public java.lang.String getApplicationTemplateRevision() { + java.lang.Object ref = ""; + if (sourceCase_ == 4) { + ref = source_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 4) { + source_ = s; + } + return s; + } + } + + /** + * + * + *
+   * Application template revision URI.
+   * 
+ * + * string application_template_revision = 4; + * + * @return The bytes for applicationTemplateRevision. + */ + public com.google.protobuf.ByteString getApplicationTemplateRevisionBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 4) { + ref = source_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 4) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SHARED_TEMPLATE_REVISION_URI_FIELD_NUMBER = 6; + + /** + * + * + *
+   * Shared template revision URI.
+   * 
+ * + * string shared_template_revision_uri = 6; + * + * @return Whether the sharedTemplateRevisionUri field is set. + */ + public boolean hasSharedTemplateRevisionUri() { + return sourceCase_ == 6; + } + + /** + * + * + *
+   * Shared template revision URI.
+   * 
+ * + * string shared_template_revision_uri = 6; + * + * @return The sharedTemplateRevisionUri. + */ + public java.lang.String getSharedTemplateRevisionUri() { + java.lang.Object ref = ""; + if (sourceCase_ == 6) { + ref = source_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 6) { + source_ = s; + } + return s; + } + } + + /** + * + * + *
+   * Shared template revision URI.
+   * 
+ * + * string shared_template_revision_uri = 6; + * + * @return The bytes for sharedTemplateRevisionUri. + */ + public com.google.protobuf.ByteString getSharedTemplateRevisionUriBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 6) { + ref = source_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 6) { + source_ = 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 (sourceCase_ == 4) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, source_); + } + if (sourceCase_ == 6) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, source_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (sourceCase_ == 4) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, source_); + } + if (sourceCase_ == 6) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, source_); + } + 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.designcenter.v1.DeploymentSource)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.DeploymentSource other = + (com.google.cloud.designcenter.v1.DeploymentSource) obj; + + if (!getSourceCase().equals(other.getSourceCase())) return false; + switch (sourceCase_) { + case 4: + if (!getApplicationTemplateRevision().equals(other.getApplicationTemplateRevision())) + return false; + break; + case 6: + if (!getSharedTemplateRevisionUri().equals(other.getSharedTemplateRevisionUri())) + 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 (sourceCase_) { + case 4: + hash = (37 * hash) + APPLICATION_TEMPLATE_REVISION_FIELD_NUMBER; + hash = (53 * hash) + getApplicationTemplateRevision().hashCode(); + break; + case 6: + hash = (37 * hash) + SHARED_TEMPLATE_REVISION_URI_FIELD_NUMBER; + hash = (53 * hash) + getSharedTemplateRevisionUri().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.DeploymentSource parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeploymentSource 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.designcenter.v1.DeploymentSource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeploymentSource parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeploymentSource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeploymentSource parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeploymentSource parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeploymentSource parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeploymentSource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeploymentSource parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeploymentSource parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeploymentSource parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.DeploymentSource 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Source template information for the deployment.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.DeploymentSource} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.DeploymentSource) + com.google.cloud.designcenter.v1.DeploymentSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_DeploymentSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_DeploymentSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.DeploymentSource.class, + com.google.cloud.designcenter.v1.DeploymentSource.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.DeploymentSource.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + sourceCase_ = 0; + source_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_DeploymentSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeploymentSource getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.DeploymentSource.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeploymentSource build() { + com.google.cloud.designcenter.v1.DeploymentSource result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeploymentSource buildPartial() { + com.google.cloud.designcenter.v1.DeploymentSource result = + new com.google.cloud.designcenter.v1.DeploymentSource(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.DeploymentSource result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.designcenter.v1.DeploymentSource result) { + result.sourceCase_ = sourceCase_; + result.source_ = this.source_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.DeploymentSource) { + return mergeFrom((com.google.cloud.designcenter.v1.DeploymentSource) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.DeploymentSource other) { + if (other == com.google.cloud.designcenter.v1.DeploymentSource.getDefaultInstance()) + return this; + switch (other.getSourceCase()) { + case APPLICATION_TEMPLATE_REVISION: + { + sourceCase_ = 4; + source_ = other.source_; + onChanged(); + break; + } + case SHARED_TEMPLATE_REVISION_URI: + { + sourceCase_ = 6; + source_ = other.source_; + onChanged(); + break; + } + case SOURCE_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 34: + { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 4; + source_ = s; + break; + } // case 34 + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 6; + source_ = s; + break; + } // case 50 + default: + { + 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 sourceCase_ = 0; + private java.lang.Object source_; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); + } + + public Builder clearSource() { + sourceCase_ = 0; + source_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
+     * Application template revision URI.
+     * 
+ * + * string application_template_revision = 4; + * + * @return Whether the applicationTemplateRevision field is set. + */ + @java.lang.Override + public boolean hasApplicationTemplateRevision() { + return sourceCase_ == 4; + } + + /** + * + * + *
+     * Application template revision URI.
+     * 
+ * + * string application_template_revision = 4; + * + * @return The applicationTemplateRevision. + */ + @java.lang.Override + public java.lang.String getApplicationTemplateRevision() { + java.lang.Object ref = ""; + if (sourceCase_ == 4) { + ref = source_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 4) { + source_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Application template revision URI.
+     * 
+ * + * string application_template_revision = 4; + * + * @return The bytes for applicationTemplateRevision. + */ + @java.lang.Override + public com.google.protobuf.ByteString getApplicationTemplateRevisionBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 4) { + ref = source_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 4) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Application template revision URI.
+     * 
+ * + * string application_template_revision = 4; + * + * @param value The applicationTemplateRevision to set. + * @return This builder for chaining. + */ + public Builder setApplicationTemplateRevision(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceCase_ = 4; + source_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Application template revision URI.
+     * 
+ * + * string application_template_revision = 4; + * + * @return This builder for chaining. + */ + public Builder clearApplicationTemplateRevision() { + if (sourceCase_ == 4) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Application template revision URI.
+     * 
+ * + * string application_template_revision = 4; + * + * @param value The bytes for applicationTemplateRevision to set. + * @return This builder for chaining. + */ + public Builder setApplicationTemplateRevisionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceCase_ = 4; + source_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Shared template revision URI.
+     * 
+ * + * string shared_template_revision_uri = 6; + * + * @return Whether the sharedTemplateRevisionUri field is set. + */ + @java.lang.Override + public boolean hasSharedTemplateRevisionUri() { + return sourceCase_ == 6; + } + + /** + * + * + *
+     * Shared template revision URI.
+     * 
+ * + * string shared_template_revision_uri = 6; + * + * @return The sharedTemplateRevisionUri. + */ + @java.lang.Override + public java.lang.String getSharedTemplateRevisionUri() { + java.lang.Object ref = ""; + if (sourceCase_ == 6) { + ref = source_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 6) { + source_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Shared template revision URI.
+     * 
+ * + * string shared_template_revision_uri = 6; + * + * @return The bytes for sharedTemplateRevisionUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSharedTemplateRevisionUriBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 6) { + ref = source_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 6) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Shared template revision URI.
+     * 
+ * + * string shared_template_revision_uri = 6; + * + * @param value The sharedTemplateRevisionUri to set. + * @return This builder for chaining. + */ + public Builder setSharedTemplateRevisionUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceCase_ = 6; + source_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Shared template revision URI.
+     * 
+ * + * string shared_template_revision_uri = 6; + * + * @return This builder for chaining. + */ + public Builder clearSharedTemplateRevisionUri() { + if (sourceCase_ == 6) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Shared template revision URI.
+     * 
+ * + * string shared_template_revision_uri = 6; + * + * @param value The bytes for sharedTemplateRevisionUri to set. + * @return This builder for chaining. + */ + public Builder setSharedTemplateRevisionUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceCase_ = 6; + source_ = value; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.DeploymentSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.DeploymentSource) + private static final com.google.cloud.designcenter.v1.DeploymentSource DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.DeploymentSource(); + } + + public static com.google.cloud.designcenter.v1.DeploymentSource getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeploymentSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.DeploymentSource getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentSourceOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentSourceOrBuilder.java new file mode 100644 index 000000000000..f55dda1f7f2d --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentSourceOrBuilder.java @@ -0,0 +1,108 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface DeploymentSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.DeploymentSource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Application template revision URI.
+   * 
+ * + * string application_template_revision = 4; + * + * @return Whether the applicationTemplateRevision field is set. + */ + boolean hasApplicationTemplateRevision(); + + /** + * + * + *
+   * Application template revision URI.
+   * 
+ * + * string application_template_revision = 4; + * + * @return The applicationTemplateRevision. + */ + java.lang.String getApplicationTemplateRevision(); + + /** + * + * + *
+   * Application template revision URI.
+   * 
+ * + * string application_template_revision = 4; + * + * @return The bytes for applicationTemplateRevision. + */ + com.google.protobuf.ByteString getApplicationTemplateRevisionBytes(); + + /** + * + * + *
+   * Shared template revision URI.
+   * 
+ * + * string shared_template_revision_uri = 6; + * + * @return Whether the sharedTemplateRevisionUri field is set. + */ + boolean hasSharedTemplateRevisionUri(); + + /** + * + * + *
+   * Shared template revision URI.
+   * 
+ * + * string shared_template_revision_uri = 6; + * + * @return The sharedTemplateRevisionUri. + */ + java.lang.String getSharedTemplateRevisionUri(); + + /** + * + * + *
+   * Shared template revision URI.
+   * 
+ * + * string shared_template_revision_uri = 6; + * + * @return The bytes for sharedTemplateRevisionUri. + */ + com.google.protobuf.ByteString getSharedTemplateRevisionUriBytes(); + + com.google.cloud.designcenter.v1.DeploymentSource.SourceCase getSourceCase(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentTarget.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentTarget.java new file mode 100644 index 000000000000..77f1c9a1653a --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentTarget.java @@ -0,0 +1,825 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * The deployment target of the application.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.DeploymentTarget} + */ +@com.google.protobuf.Generated +public final class DeploymentTarget extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.DeploymentTarget) + DeploymentTargetOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DeploymentTarget"); + } + + // Use DeploymentTarget.newBuilder() to construct. + private DeploymentTarget(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeploymentTarget() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_DeploymentTarget_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_DeploymentTarget_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.DeploymentTarget.class, + com.google.cloud.designcenter.v1.DeploymentTarget.Builder.class); + } + + private int targetCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object target_; + + public enum TargetCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + GKE_DEPLOYMENT_TARGET(1), + TARGET_NOT_SET(0); + private final int value; + + private TargetCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TargetCase valueOf(int value) { + return forNumber(value); + } + + public static TargetCase forNumber(int value) { + switch (value) { + case 1: + return GKE_DEPLOYMENT_TARGET; + case 0: + return TARGET_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public TargetCase getTargetCase() { + return TargetCase.forNumber(targetCase_); + } + + public static final int GKE_DEPLOYMENT_TARGET_FIELD_NUMBER = 1; + + /** + * + * + *
+   * Optional. The GKE deployment target.
+   * 
+ * + * + * .google.cloud.designcenter.v1.GKEDeploymentTarget gke_deployment_target = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the gkeDeploymentTarget field is set. + */ + @java.lang.Override + public boolean hasGkeDeploymentTarget() { + return targetCase_ == 1; + } + + /** + * + * + *
+   * Optional. The GKE deployment target.
+   * 
+ * + * + * .google.cloud.designcenter.v1.GKEDeploymentTarget gke_deployment_target = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The gkeDeploymentTarget. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.GKEDeploymentTarget getGkeDeploymentTarget() { + if (targetCase_ == 1) { + return (com.google.cloud.designcenter.v1.GKEDeploymentTarget) target_; + } + return com.google.cloud.designcenter.v1.GKEDeploymentTarget.getDefaultInstance(); + } + + /** + * + * + *
+   * Optional. The GKE deployment target.
+   * 
+ * + * + * .google.cloud.designcenter.v1.GKEDeploymentTarget gke_deployment_target = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.GKEDeploymentTargetOrBuilder + getGkeDeploymentTargetOrBuilder() { + if (targetCase_ == 1) { + return (com.google.cloud.designcenter.v1.GKEDeploymentTarget) target_; + } + return com.google.cloud.designcenter.v1.GKEDeploymentTarget.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 (targetCase_ == 1) { + output.writeMessage(1, (com.google.cloud.designcenter.v1.GKEDeploymentTarget) target_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (targetCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.designcenter.v1.GKEDeploymentTarget) target_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.designcenter.v1.DeploymentTarget)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.DeploymentTarget other = + (com.google.cloud.designcenter.v1.DeploymentTarget) obj; + + if (!getTargetCase().equals(other.getTargetCase())) return false; + switch (targetCase_) { + case 1: + if (!getGkeDeploymentTarget().equals(other.getGkeDeploymentTarget())) 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 (targetCase_) { + case 1: + hash = (37 * hash) + GKE_DEPLOYMENT_TARGET_FIELD_NUMBER; + hash = (53 * hash) + getGkeDeploymentTarget().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.DeploymentTarget parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeploymentTarget 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.designcenter.v1.DeploymentTarget parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeploymentTarget parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeploymentTarget parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeploymentTarget parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeploymentTarget parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeploymentTarget parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeploymentTarget parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeploymentTarget parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeploymentTarget parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeploymentTarget parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.DeploymentTarget 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * The deployment target of the application.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.DeploymentTarget} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.DeploymentTarget) + com.google.cloud.designcenter.v1.DeploymentTargetOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_DeploymentTarget_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_DeploymentTarget_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.DeploymentTarget.class, + com.google.cloud.designcenter.v1.DeploymentTarget.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.DeploymentTarget.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (gkeDeploymentTargetBuilder_ != null) { + gkeDeploymentTargetBuilder_.clear(); + } + targetCase_ = 0; + target_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_DeploymentTarget_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeploymentTarget getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.DeploymentTarget.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeploymentTarget build() { + com.google.cloud.designcenter.v1.DeploymentTarget result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeploymentTarget buildPartial() { + com.google.cloud.designcenter.v1.DeploymentTarget result = + new com.google.cloud.designcenter.v1.DeploymentTarget(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.DeploymentTarget result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.designcenter.v1.DeploymentTarget result) { + result.targetCase_ = targetCase_; + result.target_ = this.target_; + if (targetCase_ == 1 && gkeDeploymentTargetBuilder_ != null) { + result.target_ = gkeDeploymentTargetBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.DeploymentTarget) { + return mergeFrom((com.google.cloud.designcenter.v1.DeploymentTarget) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.DeploymentTarget other) { + if (other == com.google.cloud.designcenter.v1.DeploymentTarget.getDefaultInstance()) + return this; + switch (other.getTargetCase()) { + case GKE_DEPLOYMENT_TARGET: + { + mergeGkeDeploymentTarget(other.getGkeDeploymentTarget()); + break; + } + case TARGET_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( + internalGetGkeDeploymentTargetFieldBuilder().getBuilder(), extensionRegistry); + targetCase_ = 1; + 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 targetCase_ = 0; + private java.lang.Object target_; + + public TargetCase getTargetCase() { + return TargetCase.forNumber(targetCase_); + } + + public Builder clearTarget() { + targetCase_ = 0; + target_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.GKEDeploymentTarget, + com.google.cloud.designcenter.v1.GKEDeploymentTarget.Builder, + com.google.cloud.designcenter.v1.GKEDeploymentTargetOrBuilder> + gkeDeploymentTargetBuilder_; + + /** + * + * + *
+     * Optional. The GKE deployment target.
+     * 
+ * + * + * .google.cloud.designcenter.v1.GKEDeploymentTarget gke_deployment_target = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the gkeDeploymentTarget field is set. + */ + @java.lang.Override + public boolean hasGkeDeploymentTarget() { + return targetCase_ == 1; + } + + /** + * + * + *
+     * Optional. The GKE deployment target.
+     * 
+ * + * + * .google.cloud.designcenter.v1.GKEDeploymentTarget gke_deployment_target = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The gkeDeploymentTarget. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.GKEDeploymentTarget getGkeDeploymentTarget() { + if (gkeDeploymentTargetBuilder_ == null) { + if (targetCase_ == 1) { + return (com.google.cloud.designcenter.v1.GKEDeploymentTarget) target_; + } + return com.google.cloud.designcenter.v1.GKEDeploymentTarget.getDefaultInstance(); + } else { + if (targetCase_ == 1) { + return gkeDeploymentTargetBuilder_.getMessage(); + } + return com.google.cloud.designcenter.v1.GKEDeploymentTarget.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. The GKE deployment target.
+     * 
+ * + * + * .google.cloud.designcenter.v1.GKEDeploymentTarget gke_deployment_target = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGkeDeploymentTarget( + com.google.cloud.designcenter.v1.GKEDeploymentTarget value) { + if (gkeDeploymentTargetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + target_ = value; + onChanged(); + } else { + gkeDeploymentTargetBuilder_.setMessage(value); + } + targetCase_ = 1; + return this; + } + + /** + * + * + *
+     * Optional. The GKE deployment target.
+     * 
+ * + * + * .google.cloud.designcenter.v1.GKEDeploymentTarget gke_deployment_target = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGkeDeploymentTarget( + com.google.cloud.designcenter.v1.GKEDeploymentTarget.Builder builderForValue) { + if (gkeDeploymentTargetBuilder_ == null) { + target_ = builderForValue.build(); + onChanged(); + } else { + gkeDeploymentTargetBuilder_.setMessage(builderForValue.build()); + } + targetCase_ = 1; + return this; + } + + /** + * + * + *
+     * Optional. The GKE deployment target.
+     * 
+ * + * + * .google.cloud.designcenter.v1.GKEDeploymentTarget gke_deployment_target = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeGkeDeploymentTarget( + com.google.cloud.designcenter.v1.GKEDeploymentTarget value) { + if (gkeDeploymentTargetBuilder_ == null) { + if (targetCase_ == 1 + && target_ + != com.google.cloud.designcenter.v1.GKEDeploymentTarget.getDefaultInstance()) { + target_ = + com.google.cloud.designcenter.v1.GKEDeploymentTarget.newBuilder( + (com.google.cloud.designcenter.v1.GKEDeploymentTarget) target_) + .mergeFrom(value) + .buildPartial(); + } else { + target_ = value; + } + onChanged(); + } else { + if (targetCase_ == 1) { + gkeDeploymentTargetBuilder_.mergeFrom(value); + } else { + gkeDeploymentTargetBuilder_.setMessage(value); + } + } + targetCase_ = 1; + return this; + } + + /** + * + * + *
+     * Optional. The GKE deployment target.
+     * 
+ * + * + * .google.cloud.designcenter.v1.GKEDeploymentTarget gke_deployment_target = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearGkeDeploymentTarget() { + if (gkeDeploymentTargetBuilder_ == null) { + if (targetCase_ == 1) { + targetCase_ = 0; + target_ = null; + onChanged(); + } + } else { + if (targetCase_ == 1) { + targetCase_ = 0; + target_ = null; + } + gkeDeploymentTargetBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. The GKE deployment target.
+     * 
+ * + * + * .google.cloud.designcenter.v1.GKEDeploymentTarget gke_deployment_target = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.GKEDeploymentTarget.Builder + getGkeDeploymentTargetBuilder() { + return internalGetGkeDeploymentTargetFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The GKE deployment target.
+     * 
+ * + * + * .google.cloud.designcenter.v1.GKEDeploymentTarget gke_deployment_target = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.GKEDeploymentTargetOrBuilder + getGkeDeploymentTargetOrBuilder() { + if ((targetCase_ == 1) && (gkeDeploymentTargetBuilder_ != null)) { + return gkeDeploymentTargetBuilder_.getMessageOrBuilder(); + } else { + if (targetCase_ == 1) { + return (com.google.cloud.designcenter.v1.GKEDeploymentTarget) target_; + } + return com.google.cloud.designcenter.v1.GKEDeploymentTarget.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. The GKE deployment target.
+     * 
+ * + * + * .google.cloud.designcenter.v1.GKEDeploymentTarget gke_deployment_target = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.GKEDeploymentTarget, + com.google.cloud.designcenter.v1.GKEDeploymentTarget.Builder, + com.google.cloud.designcenter.v1.GKEDeploymentTargetOrBuilder> + internalGetGkeDeploymentTargetFieldBuilder() { + if (gkeDeploymentTargetBuilder_ == null) { + if (!(targetCase_ == 1)) { + target_ = com.google.cloud.designcenter.v1.GKEDeploymentTarget.getDefaultInstance(); + } + gkeDeploymentTargetBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.GKEDeploymentTarget, + com.google.cloud.designcenter.v1.GKEDeploymentTarget.Builder, + com.google.cloud.designcenter.v1.GKEDeploymentTargetOrBuilder>( + (com.google.cloud.designcenter.v1.GKEDeploymentTarget) target_, + getParentForChildren(), + isClean()); + target_ = null; + } + targetCase_ = 1; + onChanged(); + return gkeDeploymentTargetBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.DeploymentTarget) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.DeploymentTarget) + private static final com.google.cloud.designcenter.v1.DeploymentTarget DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.DeploymentTarget(); + } + + public static com.google.cloud.designcenter.v1.DeploymentTarget getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeploymentTarget parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.DeploymentTarget getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentTargetOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentTargetOrBuilder.java new file mode 100644 index 000000000000..a3b849b1ebea --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentTargetOrBuilder.java @@ -0,0 +1,73 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface DeploymentTargetOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.DeploymentTarget) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The GKE deployment target.
+   * 
+ * + * + * .google.cloud.designcenter.v1.GKEDeploymentTarget gke_deployment_target = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the gkeDeploymentTarget field is set. + */ + boolean hasGkeDeploymentTarget(); + + /** + * + * + *
+   * Optional. The GKE deployment target.
+   * 
+ * + * + * .google.cloud.designcenter.v1.GKEDeploymentTarget gke_deployment_target = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The gkeDeploymentTarget. + */ + com.google.cloud.designcenter.v1.GKEDeploymentTarget getGkeDeploymentTarget(); + + /** + * + * + *
+   * Optional. The GKE deployment target.
+   * 
+ * + * + * .google.cloud.designcenter.v1.GKEDeploymentTarget gke_deployment_target = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.GKEDeploymentTargetOrBuilder getGkeDeploymentTargetOrBuilder(); + + com.google.cloud.designcenter.v1.DeploymentTarget.TargetCase getTargetCase(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentUnitProgress.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentUnitProgress.java new file mode 100644 index 000000000000..8e2da16e8129 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentUnitProgress.java @@ -0,0 +1,1367 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/designcenter.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Single deployment unit progress info
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.DeploymentUnitProgress} + */ +@com.google.protobuf.Generated +public final class DeploymentUnitProgress extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.DeploymentUnitProgress) + DeploymentUnitProgressOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DeploymentUnitProgress"); + } + + // Use DeploymentUnitProgress.newBuilder() to construct. + private DeploymentUnitProgress(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeploymentUnitProgress() { + unitId_ = ""; + deployment_ = ""; + deploymentUnitStep_ = ""; + deploymentBuild_ = ""; + deploymentStep_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DesigncenterProto + .internal_static_google_cloud_designcenter_v1_DeploymentUnitProgress_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DesigncenterProto + .internal_static_google_cloud_designcenter_v1_DeploymentUnitProgress_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.DeploymentUnitProgress.class, + com.google.cloud.designcenter.v1.DeploymentUnitProgress.Builder.class); + } + + public static final int UNIT_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object unitId_ = ""; + + /** + * + * + *
+   * Output only. Deployment unit ID
+   * 
+ * + * string unit_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The unitId. + */ + @java.lang.Override + public java.lang.String getUnitId() { + java.lang.Object ref = unitId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + unitId_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. Deployment unit ID
+   * 
+ * + * string unit_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for unitId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUnitIdBytes() { + java.lang.Object ref = unitId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + unitId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEPLOYMENT_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object deployment_ = ""; + + /** + * + * + *
+   * Output only. Deployment resource of deploying unit ID
+   * 
+ * + * string deployment = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The deployment. + */ + @java.lang.Override + public java.lang.String getDeployment() { + java.lang.Object ref = deployment_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deployment_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. Deployment resource of deploying unit ID
+   * 
+ * + * string deployment = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for deployment. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDeploymentBytes() { + java.lang.Object ref = deployment_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deployment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEPLOYMENT_UNIT_STEP_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object deploymentUnitStep_ = ""; + + /** + * + * + *
+   * Output only. Current deployment unit step
+   * 
+ * + * string deployment_unit_step = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The deploymentUnitStep. + */ + @java.lang.Override + public java.lang.String getDeploymentUnitStep() { + java.lang.Object ref = deploymentUnitStep_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deploymentUnitStep_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. Current deployment unit step
+   * 
+ * + * string deployment_unit_step = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for deploymentUnitStep. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDeploymentUnitStepBytes() { + java.lang.Object ref = deploymentUnitStep_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deploymentUnitStep_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEPLOYMENT_BUILD_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object deploymentBuild_ = ""; + + /** + * + * + *
+   * Output only. Deployment build uuid
+   * 
+ * + * + * string deployment_build = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The deploymentBuild. + */ + @java.lang.Override + public java.lang.String getDeploymentBuild() { + java.lang.Object ref = deploymentBuild_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deploymentBuild_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. Deployment build uuid
+   * 
+ * + * + * string deployment_build = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for deploymentBuild. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDeploymentBuildBytes() { + java.lang.Object ref = deploymentBuild_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deploymentBuild_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEPLOYMENT_STEP_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object deploymentStep_ = ""; + + /** + * + * + *
+   * Output only. Current deployment step
+   * 
+ * + * string deployment_step = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The deploymentStep. + */ + @java.lang.Override + public java.lang.String getDeploymentStep() { + java.lang.Object ref = deploymentStep_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deploymentStep_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. Current deployment step
+   * 
+ * + * string deployment_step = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for deploymentStep. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDeploymentStepBytes() { + java.lang.Object ref = deploymentStep_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deploymentStep_ = 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.GeneratedMessage.isStringEmpty(unitId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, unitId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(deployment_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, deployment_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(deploymentUnitStep_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, deploymentUnitStep_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(deploymentBuild_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, deploymentBuild_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(deploymentStep_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, deploymentStep_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(unitId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, unitId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(deployment_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, deployment_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(deploymentUnitStep_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, deploymentUnitStep_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(deploymentBuild_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, deploymentBuild_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(deploymentStep_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, deploymentStep_); + } + 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.designcenter.v1.DeploymentUnitProgress)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.DeploymentUnitProgress other = + (com.google.cloud.designcenter.v1.DeploymentUnitProgress) obj; + + if (!getUnitId().equals(other.getUnitId())) return false; + if (!getDeployment().equals(other.getDeployment())) return false; + if (!getDeploymentUnitStep().equals(other.getDeploymentUnitStep())) return false; + if (!getDeploymentBuild().equals(other.getDeploymentBuild())) return false; + if (!getDeploymentStep().equals(other.getDeploymentStep())) 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) + UNIT_ID_FIELD_NUMBER; + hash = (53 * hash) + getUnitId().hashCode(); + hash = (37 * hash) + DEPLOYMENT_FIELD_NUMBER; + hash = (53 * hash) + getDeployment().hashCode(); + hash = (37 * hash) + DEPLOYMENT_UNIT_STEP_FIELD_NUMBER; + hash = (53 * hash) + getDeploymentUnitStep().hashCode(); + hash = (37 * hash) + DEPLOYMENT_BUILD_FIELD_NUMBER; + hash = (53 * hash) + getDeploymentBuild().hashCode(); + hash = (37 * hash) + DEPLOYMENT_STEP_FIELD_NUMBER; + hash = (53 * hash) + getDeploymentStep().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.DeploymentUnitProgress parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeploymentUnitProgress 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.designcenter.v1.DeploymentUnitProgress parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeploymentUnitProgress parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeploymentUnitProgress parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeploymentUnitProgress parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeploymentUnitProgress parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeploymentUnitProgress parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeploymentUnitProgress parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeploymentUnitProgress parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeploymentUnitProgress parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeploymentUnitProgress parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.DeploymentUnitProgress 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Single deployment unit progress info
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.DeploymentUnitProgress} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.DeploymentUnitProgress) + com.google.cloud.designcenter.v1.DeploymentUnitProgressOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DesigncenterProto + .internal_static_google_cloud_designcenter_v1_DeploymentUnitProgress_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DesigncenterProto + .internal_static_google_cloud_designcenter_v1_DeploymentUnitProgress_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.DeploymentUnitProgress.class, + com.google.cloud.designcenter.v1.DeploymentUnitProgress.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.DeploymentUnitProgress.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + unitId_ = ""; + deployment_ = ""; + deploymentUnitStep_ = ""; + deploymentBuild_ = ""; + deploymentStep_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.DesigncenterProto + .internal_static_google_cloud_designcenter_v1_DeploymentUnitProgress_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeploymentUnitProgress getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.DeploymentUnitProgress.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeploymentUnitProgress build() { + com.google.cloud.designcenter.v1.DeploymentUnitProgress result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeploymentUnitProgress buildPartial() { + com.google.cloud.designcenter.v1.DeploymentUnitProgress result = + new com.google.cloud.designcenter.v1.DeploymentUnitProgress(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.DeploymentUnitProgress result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.unitId_ = unitId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.deployment_ = deployment_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.deploymentUnitStep_ = deploymentUnitStep_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.deploymentBuild_ = deploymentBuild_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.deploymentStep_ = deploymentStep_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.DeploymentUnitProgress) { + return mergeFrom((com.google.cloud.designcenter.v1.DeploymentUnitProgress) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.DeploymentUnitProgress other) { + if (other == com.google.cloud.designcenter.v1.DeploymentUnitProgress.getDefaultInstance()) + return this; + if (!other.getUnitId().isEmpty()) { + unitId_ = other.unitId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDeployment().isEmpty()) { + deployment_ = other.deployment_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDeploymentUnitStep().isEmpty()) { + deploymentUnitStep_ = other.deploymentUnitStep_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getDeploymentBuild().isEmpty()) { + deploymentBuild_ = other.deploymentBuild_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getDeploymentStep().isEmpty()) { + deploymentStep_ = other.deploymentStep_; + 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: + { + unitId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + deployment_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + deploymentUnitStep_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + deploymentBuild_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + deploymentStep_ = 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 unitId_ = ""; + + /** + * + * + *
+     * Output only. Deployment unit ID
+     * 
+ * + * string unit_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The unitId. + */ + public java.lang.String getUnitId() { + java.lang.Object ref = unitId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + unitId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Deployment unit ID
+     * 
+ * + * string unit_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for unitId. + */ + public com.google.protobuf.ByteString getUnitIdBytes() { + java.lang.Object ref = unitId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + unitId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Deployment unit ID
+     * 
+ * + * string unit_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The unitId to set. + * @return This builder for chaining. + */ + public Builder setUnitId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + unitId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Deployment unit ID
+     * 
+ * + * string unit_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearUnitId() { + unitId_ = getDefaultInstance().getUnitId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Deployment unit ID
+     * 
+ * + * string unit_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for unitId to set. + * @return This builder for chaining. + */ + public Builder setUnitIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + unitId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object deployment_ = ""; + + /** + * + * + *
+     * Output only. Deployment resource of deploying unit ID
+     * 
+ * + * string deployment = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The deployment. + */ + public java.lang.String getDeployment() { + java.lang.Object ref = deployment_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deployment_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Deployment resource of deploying unit ID
+     * 
+ * + * string deployment = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for deployment. + */ + public com.google.protobuf.ByteString getDeploymentBytes() { + java.lang.Object ref = deployment_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deployment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Deployment resource of deploying unit ID
+     * 
+ * + * string deployment = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The deployment to set. + * @return This builder for chaining. + */ + public Builder setDeployment(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + deployment_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Deployment resource of deploying unit ID
+     * 
+ * + * string deployment = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDeployment() { + deployment_ = getDefaultInstance().getDeployment(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Deployment resource of deploying unit ID
+     * 
+ * + * string deployment = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for deployment to set. + * @return This builder for chaining. + */ + public Builder setDeploymentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + deployment_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object deploymentUnitStep_ = ""; + + /** + * + * + *
+     * Output only. Current deployment unit step
+     * 
+ * + * string deployment_unit_step = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The deploymentUnitStep. + */ + public java.lang.String getDeploymentUnitStep() { + java.lang.Object ref = deploymentUnitStep_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deploymentUnitStep_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Current deployment unit step
+     * 
+ * + * string deployment_unit_step = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for deploymentUnitStep. + */ + public com.google.protobuf.ByteString getDeploymentUnitStepBytes() { + java.lang.Object ref = deploymentUnitStep_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deploymentUnitStep_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Current deployment unit step
+     * 
+ * + * string deployment_unit_step = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The deploymentUnitStep to set. + * @return This builder for chaining. + */ + public Builder setDeploymentUnitStep(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + deploymentUnitStep_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Current deployment unit step
+     * 
+ * + * string deployment_unit_step = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDeploymentUnitStep() { + deploymentUnitStep_ = getDefaultInstance().getDeploymentUnitStep(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Current deployment unit step
+     * 
+ * + * string deployment_unit_step = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for deploymentUnitStep to set. + * @return This builder for chaining. + */ + public Builder setDeploymentUnitStepBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + deploymentUnitStep_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object deploymentBuild_ = ""; + + /** + * + * + *
+     * Output only. Deployment build uuid
+     * 
+ * + * + * string deployment_build = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The deploymentBuild. + */ + public java.lang.String getDeploymentBuild() { + java.lang.Object ref = deploymentBuild_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deploymentBuild_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Deployment build uuid
+     * 
+ * + * + * string deployment_build = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for deploymentBuild. + */ + public com.google.protobuf.ByteString getDeploymentBuildBytes() { + java.lang.Object ref = deploymentBuild_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deploymentBuild_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Deployment build uuid
+     * 
+ * + * + * string deployment_build = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @param value The deploymentBuild to set. + * @return This builder for chaining. + */ + public Builder setDeploymentBuild(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + deploymentBuild_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Deployment build uuid
+     * 
+ * + * + * string deployment_build = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearDeploymentBuild() { + deploymentBuild_ = getDefaultInstance().getDeploymentBuild(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Deployment build uuid
+     * 
+ * + * + * string deployment_build = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for deploymentBuild to set. + * @return This builder for chaining. + */ + public Builder setDeploymentBuildBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + deploymentBuild_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object deploymentStep_ = ""; + + /** + * + * + *
+     * Output only. Current deployment step
+     * 
+ * + * string deployment_step = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The deploymentStep. + */ + public java.lang.String getDeploymentStep() { + java.lang.Object ref = deploymentStep_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deploymentStep_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Current deployment step
+     * 
+ * + * string deployment_step = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for deploymentStep. + */ + public com.google.protobuf.ByteString getDeploymentStepBytes() { + java.lang.Object ref = deploymentStep_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deploymentStep_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Current deployment step
+     * 
+ * + * string deployment_step = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The deploymentStep to set. + * @return This builder for chaining. + */ + public Builder setDeploymentStep(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + deploymentStep_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Current deployment step
+     * 
+ * + * string deployment_step = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDeploymentStep() { + deploymentStep_ = getDefaultInstance().getDeploymentStep(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Current deployment step
+     * 
+ * + * string deployment_step = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for deploymentStep to set. + * @return This builder for chaining. + */ + public Builder setDeploymentStepBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + deploymentStep_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.DeploymentUnitProgress) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.DeploymentUnitProgress) + private static final com.google.cloud.designcenter.v1.DeploymentUnitProgress DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.DeploymentUnitProgress(); + } + + public static com.google.cloud.designcenter.v1.DeploymentUnitProgress getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeploymentUnitProgress parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.DeploymentUnitProgress getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentUnitProgressOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentUnitProgressOrBuilder.java new file mode 100644 index 000000000000..443b34b9bfce --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeploymentUnitProgressOrBuilder.java @@ -0,0 +1,162 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/designcenter.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface DeploymentUnitProgressOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.DeploymentUnitProgress) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Deployment unit ID
+   * 
+ * + * string unit_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The unitId. + */ + java.lang.String getUnitId(); + + /** + * + * + *
+   * Output only. Deployment unit ID
+   * 
+ * + * string unit_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for unitId. + */ + com.google.protobuf.ByteString getUnitIdBytes(); + + /** + * + * + *
+   * Output only. Deployment resource of deploying unit ID
+   * 
+ * + * string deployment = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The deployment. + */ + java.lang.String getDeployment(); + + /** + * + * + *
+   * Output only. Deployment resource of deploying unit ID
+   * 
+ * + * string deployment = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for deployment. + */ + com.google.protobuf.ByteString getDeploymentBytes(); + + /** + * + * + *
+   * Output only. Current deployment unit step
+   * 
+ * + * string deployment_unit_step = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The deploymentUnitStep. + */ + java.lang.String getDeploymentUnitStep(); + + /** + * + * + *
+   * Output only. Current deployment unit step
+   * 
+ * + * string deployment_unit_step = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for deploymentUnitStep. + */ + com.google.protobuf.ByteString getDeploymentUnitStepBytes(); + + /** + * + * + *
+   * Output only. Deployment build uuid
+   * 
+ * + * + * string deployment_build = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The deploymentBuild. + */ + java.lang.String getDeploymentBuild(); + + /** + * + * + *
+   * Output only. Deployment build uuid
+   * 
+ * + * + * string deployment_build = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for deploymentBuild. + */ + com.google.protobuf.ByteString getDeploymentBuildBytes(); + + /** + * + * + *
+   * Output only. Current deployment step
+   * 
+ * + * string deployment_step = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The deploymentStep. + */ + java.lang.String getDeploymentStep(); + + /** + * + * + *
+   * Output only. Current deployment step
+   * 
+ * + * string deployment_step = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for deploymentStep. + */ + com.google.protobuf.ByteString getDeploymentStepBytes(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DesigncenterProto.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DesigncenterProto.java new file mode 100644 index 000000000000..8746533c9cdc --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DesigncenterProto.java @@ -0,0 +1,743 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/designcenter.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public final class DesigncenterProto extends com.google.protobuf.GeneratedFile { + private DesigncenterProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DesigncenterProto"); + } + + 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_designcenter_v1_OperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_OperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_PreviewOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_PreviewOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_GenerateAssessmentReportOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_GenerateAssessmentReportOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_ApplicationOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ApplicationOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_ProvisionDeploymentGroupOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ProvisionDeploymentGroupOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_DeploymentUnitProgress_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_DeploymentUnitProgress_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_DeploymentOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_DeploymentOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_DeploymentAttemptMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_DeploymentAttemptMetadata_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/designcenter/v1/designcen" + + "ter.proto\022\034google.cloud.designcenter.v1\032" + + "\034google/api/annotations.proto\032\027google/ap" + + "i/client.proto\032\037google/api/field_behavio" + + "r.proto\032\033google/api/field_info.proto\032\031go" + + "ogle/api/resource.proto\032>google/cloud/designcenter/v1/apphub_integration_message" + + "s.proto\032,google/cloud/designcenter/v1/authoring.proto\0325google/cloud/designcenter" + + "/v1/authoring_messages.proto\0321google/cloud/designcenter/v1/best_practices.proto\032" + + ":google/cloud/designcenter/v1/best_practices_messages.proto\0325google/cloud/design" + + "center/v1/catalog_management.proto\032>google/cloud/designcenter/v1/catalog_managem" + + "ent_messages.proto\0326google/cloud/designcenter/v1/deployment_messages.proto\0327goog" + + "le/cloud/designcenter/v1/deployment_resources.proto\032*google/cloud/designcenter/v" + + "1/sharing.proto\0323google/cloud/designcenter/v1/sharing_messages.proto\032#google/lon" + + "grunning/operations.proto\032\033google/protob" + + "uf/empty.proto\032\037google/protobuf/timestamp.proto\"\252\006\n" + + "\021OperationMetadata\022^\n" + + "\023deployment_metadata\030\010 \001(\01329.google.cloud.design" + + "center.v1.DeploymentOperationMetadataB\004\342A\001\003H\000\022X\n" + + "\020preview_metadata\030\t \001(\01326.google" + + ".cloud.designcenter.v1.PreviewOperationMetadataB\004\342A\001\003H\000\022`\n" + + "\024application_metadata\030\n" + + " \001(\0132:.google.cloud.designcenter.v1.ApplicationOperationMetadataB\004\342A\001\003H\000\022r\n" + + "\031deployment_group_metadata\030\013 \001(\0132G.google.cl" + + "oud.designcenter.v1.ProvisionDeploymentGroupOperationMetadataB\004\342A\001\003H\000\022|\n" + + "#generate_assessment_report_metadata\030\014 \001(\0132G.goo" + + "gle.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadataB\004\342A\001\003H\000\0225\n" + + "\013create_time\030\001" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0222\n" + + "\010end_time\030\002" + + " \001(\0132\032.google.protobuf.TimestampB\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\003B\023\n" + + "\021resource_metadata\"\252\001\n" + + "\030PreviewOperationMetadata\022\032\n" + + "\014preview_step\030\002 \001(\tB\004\342A\001\003\022\033\n" + + "\r" + + "preview_build\030\003 \001(\tB\004\342A\001\003\022\032\n" + + "\014preview_logs\030\004 \001(\tB\004\342A\001\003\0229\n" + + "\tresources\030\010 \003(\0132&.google.cloud.designcenter.v1.Resource\"\213\002\n" + + ")GenerateAssessmentReportOperationMetadata\022j\n" + + "\004step\030\001 \001(\0162V.google.cloud.designcente" + + "r.v1.GenerateAssessmentReportOperationMetadata.AssessmentStepB\004\342A\001\003\"r\n" + + "\016AssessmentStep\022\037\n" + + "\033ASSESSMENT_STEP_UNSPECIFIED\020\000\022\r" + + "\n" + + "\tFAST_PLAN\020\001\022\025\n" + + "\021ASSESSMENT_REPORT\020\002\022\r\n" + + "\tSUCCEEDED\020\003\022\n\n" + + "\006FAILED\020\004\"G\n" + + "\034ApplicationOperationMetadata\022\022\n" + + "\004step\030\001 \001(\tB\004\342A\001\003\022\023\n" + + "\005build\030\002 \001(\tB\004\342A\001\003\"\377\002\n" + + ")ProvisionDeploymentGroupOperationMetadata\022u\n" + + "\017deployment_step\030\001 \001(\0162V.google.cloud.designcenter.v1.P" + + "rovisionDeploymentGroupOperationMetadata.DeploymentStepB\004\342A\001\003\022\\\n" + + "\030deployment_unit_progress\030\002" + + " \003(\01324.google.cloud.designcenter.v1.DeploymentUnitProgressB\004\342A\001\003\"}\n" + + "\016DeploymentStep\022\037\n" + + "\033DEPLOYMENT_STEP_UNSPECIFIED\020\000\022 \n" + + "\034GENERATING_TERRAFORM_CONTENT\020\001\022\r\n" + + "\tDEPLOYING\020\002\022\r\n" + + "\tSUCCEEDED\020\003\022\n\n" + + "\006FAILED\020\004\"\264\001\n" + + "\026DeploymentUnitProgress\022\025\n" + + "\007unit_id\030\001 \001(\tB\004\342A\001\003\022\030\n\n" + + "deployment\030\002 \001(\tB\004\342A\001\003\022\"\n" + + "\024deployment_unit_step\030\003 \001(\tB\004\342A\001\003\022&\n" + + "\020deployment_build\030\004 \001(" + + "\tB\014\342A\001\003\342\214\317\327\010\002\010\001\022\035\n" + + "\017deployment_step\030\005 \001(\tB\004\342A\001\003\"\243\002\n" + + "\033DeploymentOperationMetadata\022\030\n\n" + + "deployment\030\001 \001(\tB\004\342A\001\003\022\035\n" + + "\017deployment_step\030\005 \001(\tB\004\342A\001\003\022\036\n" + + "\020deployment_build\030\006 \001(\tB\004\342A\001\003\022\035\n" + + "\017deployment_logs\030\007 \001(\tB\004\342A\001\003\0229\n" + + "\tresources\030\010 \003(\0132&.google.cloud.designcenter.v1.Resource\022Q\n" + + "\020previous_attempt\030\t \001(\01327.google.cloud.de" + + "signcenter.v1.DeploymentAttemptMetadata\"Q\n" + + "\031DeploymentAttemptMetadata\022\017\n" + + "\007attempt\030\001 \001(\005\022\024\n" + + "\014error_detail\030\002 \001(\t\022\r\n" + + "\005build\030\003 \001(\t2\333\227\001\n" + + "\014DesignCenter\022\231\001\n" + + "\010GetSpace\022-.google.cloud.designcenter.v1.GetSpaceRequest" + + "\032#.google.cloud.designcenter.v1.Space\"9\332" + + "A\004name\202\323\344\223\002,\022*/v1/{name=projects/*/locations/*/spaces/*}\022\254\001\n\n" + + "ListSpaces\022/.google.cloud.designcenter.v1.ListSpacesRequest" + + "\0320.google.cloud.designcenter.v1.ListSpac" + + "esResponse\";\332A\006parent\202\323\344\223\002,\022*/v1/{parent=projects/*/locations/*}/spaces\022\267\001\n" + + "\013CreateSpace\0220.google.cloud.designcenter.v1.C" + + "reateSpaceRequest\032#.google.cloud.designc" + + "enter.v1.Space\"Q\332A\025parent,space,space_id" + + "\202\323\344\223\0023\"*/v1/{parent=projects/*/locations/*}/spaces:\005space\022\271\001\n" + + "\013UpdateSpace\0220.google.cloud.designcenter.v1.UpdateSpaceRequ" + + "est\032#.google.cloud.designcenter.v1.Space" + + "\"S\332A\021space,update_mask\202\323\344\223\002920/v1/{space" + + ".name=projects/*/locations/*/spaces/*}:\005space\022\222\001\n" + + "\013DeleteSpace\0220.google.cloud.designcenter.v1.DeleteSpaceRequest\032\026.google" + + ".protobuf.Empty\"9\332A\004name\202\323\344\223\002,**/v1/{name=projects/*/locations/*/spaces/*}\022\332\001\n" + + "\026GetApplicationTemplate\022;.google.cloud.des" + + "igncenter.v1.GetApplicationTemplateRequest\0321.google.cloud.designcenter.v1.Applic" + + "ationTemplate\"P\332A\004name\202\323\344\223\002C\022A/v1/{name=" + + "projects/*/locations/*/spaces/*/applicationTemplates/*}\022\355\001\n" + + "\030ListApplicationTemplates\022=.google.cloud.designcenter.v1.List" + + "ApplicationTemplatesRequest\032>.google.cloud.designcenter.v1.ListApplicationTempla" + + "tesResponse\"R\332A\006parent\202\323\344\223\002C\022A/v1/{paren" + + "t=projects/*/locations/*/spaces/*}/applicationTemplates\022\246\002\n" + + "\031CreateApplicationTemplate\022>.google.cloud.designcenter.v1.Cre" + + "ateApplicationTemplateRequest\0321.google.cloud.designcenter.v1.ApplicationTemplate" + + "\"\225\001\332A3parent,application_template,applic" + + "ation_template_id\202\323\344\223\002Y\"A/v1/{parent=pro" + + "jects/*/locations/*/spaces/*}/applicationTemplates:\024application_template\022\250\002\n" + + "\031UpdateApplicationTemplate\022>.google.cloud.de" + + "signcenter.v1.UpdateApplicationTemplateR" + + "equest\0321.google.cloud.designcenter.v1.ApplicationTemplate\"\227\001\332A" + + " application_template,update_mask\202\323\344\223\002n2V/v1/{application_" + + "template.name=projects/*/locations/*/spa" + + "ces/*/applicationTemplates/*}:\024application_template\022\214\002\n" + + "\031ImportApplicationTemplate\022>.google.cloud.designcenter.v1.ImportA" + + "pplicationTemplateRequest\0321.google.cloud" + + ".designcenter.v1.ApplicationTemplate\"|\332A" + + "&name,application_template_revision_uri\202" + + "\323\344\223\002M\"H/v1/{name=projects/*/locations/*/" + + "spaces/*/applicationTemplates/*}:import:\001*\022\305\001\n" + + "\031DeleteApplicationTemplate\022>.google.cloud.designcenter.v1.DeleteApplicatio" + + "nTemplateRequest\032\026.google.protobuf.Empty" + + "\"P\332A\004name\202\323\344\223\002C*A/v1/{name=projects/*/lo" + + "cations/*/spaces/*/applicationTemplates/*}\022\362\001\n" + + "\031CommitApplicationTemplate\022>.google.cloud.designcenter.v1.CommitApplicatio" + + "nTemplateRequest\0329.google.cloud.designce" + + "nter.v1.ApplicationTemplateRevision\"Z\332A\004" + + "name\202\323\344\223\002M\"H/v1/{name=projects/*/locatio" + + "ns/*/spaces/*/applicationTemplates/*}:commit:\001*\022\230\002\n" + + "\033SnapshotApplicationTemplate\022@.google.cloud.designcenter.v1.SnapshotA" + + "pplicationTemplateRequest\032\035.google.longrunning.Operation\"\227\001\312A8\n" + + "#SnapshotApplicationTemplateResponse\022\021OperationMetadata\332A" + + "\004name\202\323\344\223\002O\"J/v1/{name=projects/*/locati" + + "ons/*/spaces/*/applicationTemplates/*}:snapshot:\001*\022\211\002\n" + + "\036GenerateApplicationTemplateIaC\022C.google.cloud.designcenter.v1.Gen" + + "erateApplicationTemplateIaCRequest\032D.google.cloud.designcenter.v1.GenerateApplic" + + "ationTemplateIaCResponse\"\\\332A\004name\202\323\344\223\002O\"" + + "J/v1/{name=projects/*/locations/*/spaces" + + "/*/applicationTemplates/*}:generate:\001*\022\231\002\n" + + "\034ExportApplicationTemplateIaC\022A.google.cloud.designcenter.v1.ExportApplication" + + "TemplateIaCRequest\032\035.google.longrunning.Operation\"\226\001\312A9\n" + + "$ExportApplicationTemplateIaCResponse\022\021OperationMetadata\332A\004name\202" + + "\323\344\223\002M\"H/v1/{name=projects/*/locations/*/" + + "spaces/*/applicationTemplates/*}:export:\001*\022\255\002\n" + + "&GenerateApplicationTemplateRevisionIaC\022K.google.cloud.designcenter.v1.Gen" + + "erateApplicationTemplateRevisionIaCRequest\032L.google.cloud.designcenter.v1.Genera" + + "teApplicationTemplateRevisionIaCResponse" + + "\"h\332A\004name\202\323\344\223\002[\"V/v1/{name=projects/*/lo" + + "cations/*/spaces/*/applicationTemplates/*/revisions/*}:generate:\001*\022\275\002\n" + + "$ExportApplicationTemplateRevisionIaC\022I.google.clo" + + "ud.designcenter.v1.ExportApplicationTemp" + + "lateRevisionIaCRequest\032\035.google.longrunning.Operation\"\252\001\312AA\n" + + ",ExportApplicationTemplateRevisionIaCResponse\022\021OperationMeta" + + "data\332A\004name\202\323\344\223\002Y\"T/v1/{name=projects/*/" + + "locations/*/spaces/*/applicationTemplates/*/revisions/*}:export:\001*\022\311\001\n" + + "\014GetComponent\0221.google.cloud.designcenter.v1.GetCo" + + "mponentRequest\032\'.google.cloud.designcent" + + "er.v1.Component\"]\332A\004name\202\323\344\223\002P\022N/v1/{nam" + + "e=projects/*/locations/*/spaces/*/applicationTemplates/*/components/*}\022\334\001\n" + + "\016ListComponents\0223.google.cloud.designcenter.v1" + + ".ListComponentsRequest\0324.google.cloud.de" + + "signcenter.v1.ListComponentsResponse\"_\332A" + + "\006parent\202\323\344\223\002P\022N/v1/{parent=projects/*/lo" + + "cations/*/spaces/*/applicationTemplates/*}/components\022\364\001\n" + + "\017CreateComponent\0224.google.cloud.designcenter.v1.CreateComponent" + + "Request\032\'.google.cloud.designcenter.v1.C" + + "omponent\"\201\001\332A\035parent,component,component" + + "_id\202\323\344\223\002[\"N/v1/{parent=projects/*/locati" + + "ons/*/spaces/*/applicationTemplates/*}/components:\tcomponent\022\366\001\n" + + "\017UpdateComponent\0224.google.cloud.designcenter.v1.UpdateCo" + + "mponentRequest\032\'.google.cloud.designcent" + + "er.v1.Component\"\203\001\332A\025component,update_ma" + + "sk\202\323\344\223\002e2X/v1/{component.name=projects/*" + + "/locations/*/spaces/*/applicationTemplates/*/components/*}:\tcomponent\022\276\001\n" + + "\017DeleteComponent\0224.google.cloud.designcenter.v1" + + ".DeleteComponentRequest\032\026.google.protobu" + + "f.Empty\"]\332A\004name\202\323\344\223\002P*N/v1/{name=projec" + + "ts/*/locations/*/spaces/*/applicationTemplates/*/components/*}\022\332\001\n\r" + + "GetConnection\0222.google.cloud.designcenter.v1.GetConne" + + "ctionRequest\032(.google.cloud.designcenter" + + ".v1.Connection\"k\332A\004name\202\323\344\223\002^\022\\/v1/{name" + + "=projects/*/locations/*/spaces/*/applica" + + "tionTemplates/*/components/*/connections/*}\022\355\001\n" + + "\017ListConnections\0224.google.cloud.designcenter.v1.ListConnectionsRequest\0325." + + "google.cloud.designcenter.v1.ListConnect" + + "ionsResponse\"m\332A\006parent\202\323\344\223\002^\022\\/v1/{pare" + + "nt=projects/*/locations/*/spaces/*/appli" + + "cationTemplates/*/components/*}/connections\022\210\002\n" + + "\020CreateConnection\0225.google.cloud.designcenter.v1.CreateConnectionRequest\032" + + "(.google.cloud.designcenter.v1.Connectio" + + "n\"\222\001\332A\037parent,connection,connection_id\202\323" + + "\344\223\002j\"\\/v1/{parent=projects/*/locations/*" + + "/spaces/*/applicationTemplates/*/components/*}/connections:\n" + + "connection\022\212\002\n" + + "\020UpdateConnection\0225.google.cloud.designcenter." + + "v1.UpdateConnectionRequest\032(.google.clou" + + "d.designcenter.v1.Connection\"\224\001\332A\026connec" + + "tion,update_mask\202\323\344\223\002u2g/v1/{connection." + + "name=projects/*/locations/*/spaces/*/app" + + "licationTemplates/*/components/*/connections/*}:\n" + + "connection\022\316\001\n" + + "\020DeleteConnection\0225.google.cloud.designcenter.v1.DeleteCo" + + "nnectionRequest\032\026.google.protobuf.Empty\"" + + "k\332A\004name\202\323\344\223\002^*\\/v1/{name=projects/*/loc" + + "ations/*/spaces/*/applicationTemplates/*/components/*/connections/*}\022\376\001\n" + + "\036GetApplicationTemplateRevision\022C.google.cloud.d" + + "esigncenter.v1.GetApplicationTemplateRevisionRequest\0329.google.cloud.designcenter" + + ".v1.ApplicationTemplateRevision\"\\\332A\004name" + + "\202\323\344\223\002O\022M/v1/{name=projects/*/locations/*" + + "/spaces/*/applicationTemplates/*/revisions/*}\022\221\002\n" + + " ListApplicationTemplateRevisions\022E.google.cloud.designcenter.v1.ListAp" + + "plicationTemplateRevisionsRequest\032F.google.cloud.designcenter.v1.ListApplication" + + "TemplateRevisionsResponse\"^\332A\006parent\202\323\344\223" + + "\002O\022M/v1/{parent=projects/*/locations/*/s" + + "paces/*/applicationTemplates/*}/revisions\022\341\001\n" + + "!DeleteApplicationTemplateRevision\022F.google.cloud.designcenter.v1.DeleteApp" + + "licationTemplateRevisionRequest\032\026.google" + + ".protobuf.Empty\"\\\332A\004name\202\323\344\223\002O*M/v1/{nam" + + "e=projects/*/locations/*/spaces/*/applicationTemplates/*/revisions/*}\022\252\001\n\n" + + "GetCatalog\022/.google.cloud.designcenter.v1.GetC" + + "atalogRequest\032%.google.cloud.designcente" + + "r.v1.Catalog\"D\332A\004name\202\323\344\223\0027\0225/v1/{name=p" + + "rojects/*/locations/*/spaces/*/catalogs/*}\022\275\001\n" + + "\014ListCatalogs\0221.google.cloud.designcenter.v1.ListCatalogsRequest\0322.google." + + "cloud.designcenter.v1.ListCatalogsRespon" + + "se\"F\332A\006parent\202\323\344\223\0027\0225/v1/{parent=projects/*/locations/*/spaces/*}/catalogs\022\316\001\n\r" + + "CreateCatalog\0222.google.cloud.designcenter" + + ".v1.CreateCatalogRequest\032%.google.cloud." + + "designcenter.v1.Catalog\"b\332A\031parent,catal" + + "og,catalog_id\202\323\344\223\002@\"5/v1/{parent=project" + + "s/*/locations/*/spaces/*}/catalogs:\007catalog\022\320\001\n\r" + + "UpdateCatalog\0222.google.cloud.designcenter.v1.UpdateCatalogRequest\032%.goog" + + "le.cloud.designcenter.v1.Catalog\"d\332A\023cat" + + "alog,update_mask\202\323\344\223\002H2=/v1/{catalog.nam" + + "e=projects/*/locations/*/spaces/*/catalogs/*}:\007catalog\022\325\001\n\r" + + "DeleteCatalog\0222.google.cloud.designcenter.v1.DeleteCatalogReq" + + "uest\032\035.google.longrunning.Operation\"q\312A*\n" + + "\025google.protobuf.Empty\022\021OperationMetada" + + "ta\332A\004name\202\323\344\223\0027*5/v1/{name=projects/*/locations/*/spaces/*/catalogs/*}\022\216\002\n" + + "\025CreateCatalogTemplate\022:.google.cloud.designce" + + "nter.v1.CreateCatalogTemplateRequest\032-.google.cloud.designcenter.v1.CatalogTempl" + + "ate\"\211\001\332A+parent,catalog_template,catalog" + + "_template_id\202\323\344\223\002U\"A/v1/{parent=projects" + + "/*/locations/*/spaces/*/catalogs/*}/templates:\020catalog_template\022\316\001\n" + + "\022GetCatalogTemplate\0227.google.cloud.designcenter.v1.Ge" + + "tCatalogTemplateRequest\032-.google.cloud.d" + + "esigncenter.v1.CatalogTemplate\"P\332A\004name\202" + + "\323\344\223\002C\022A/v1/{name=projects/*/locations/*/spaces/*/catalogs/*/templates/*}\022\341\001\n" + + "\024ListCatalogTemplates\0229.google.cloud.designc" + + "enter.v1.ListCatalogTemplatesRequest\032:.google.cloud.designcenter.v1.ListCatalogT" + + "emplatesResponse\"R\332A\006parent\202\323\344\223\002C\022A/v1/{" + + "parent=projects/*/locations/*/spaces/*/catalogs/*}/templates\022\220\002\n" + + "\025UpdateCatalogTemplate\022:.google.cloud.designcenter.v1.Up" + + "dateCatalogTemplateRequest\032-.google.clou" + + "d.designcenter.v1.CatalogTemplate\"\213\001\332A\034c" + + "atalog_template,update_mask\202\323\344\223\002f2R/v1/{" + + "catalog_template.name=projects/*/locatio" + + "ns/*/spaces/*/catalogs/*/templates/*}:\020catalog_template\022\361\001\n" + + "\025DeleteCatalogTemplate\022:.google.cloud.designcenter.v1.DeleteC" + + "atalogTemplateRequest\032\035.google.longrunning.Operation\"}\312A*\n" + + "\025google.protobuf.Empty" + + "\022\021OperationMetadata\332A\004name\202\323\344\223\002C*A/v1/{n" + + "ame=projects/*/locations/*/spaces/*/catalogs/*/templates/*}\022\343\001\n" + + "\013CreateShare\0220.google.cloud.designcenter.v1.CreateShareRe" + + "quest\032\035.google.longrunning.Operation\"\202\001\312A\032\n" + + "\005Share\022\021OperationMetadata\332A\025parent,sh" + + "are,share_id\202\323\344\223\002G\">/v1/{parent=projects" + + "/*/locations/*/spaces/*/catalogs/*}/shares:\005share\022\300\001\n\n" + + "ListShares\022/.google.cloud.designcenter.v1.ListSharesRequest\0320.goog" + + "le.cloud.designcenter.v1.ListSharesRespo" + + "nse\"O\332A\006parent\202\323\344\223\002@\022>/v1/{parent=projec" + + "ts/*/locations/*/spaces/*/catalogs/*}/shares\022\255\001\n" + + "\010GetShare\022-.google.cloud.designcenter.v1.GetShareRequest\032#.google.cloud." + + "designcenter.v1.Share\"M\332A\004name\202\323\344\223\002@\022>/v" + + "1/{name=projects/*/locations/*/spaces/*/catalogs/*/shares/*}\022\332\001\n" + + "\013DeleteShare\0220.google.cloud.designcenter.v1.DeleteShareR" + + "equest\032\035.google.longrunning.Operation\"z\312A*\n" + + "\025google.protobuf.Empty\022\021OperationMeta" + + "data\332A\004name\202\323\344\223\002@*>/v1/{name=projects/*/" + + "locations/*/spaces/*/catalogs/*/shares/*}\022\316\001\n" + + "\tSyncShare\022..google.cloud.designcen" + + "ter.v1.SyncShareRequest\032\035.google.longrunning.Operation\"r\312A\032\n" + + "\005Share\022\021OperationMet" + + "adata\332A\004name\202\323\344\223\002H\"C/v1/{name=projects/*" + + "/locations/*/spaces/*/catalogs/*/shares/*}:sync:\001*\022\306\001\n" + + "\021GetSharedTemplate\0226.google.cloud.designcenter.v1.GetSharedTemplat" + + "eRequest\032,.google.cloud.designcenter.v1." + + "SharedTemplate\"K\332A\004name\202\323\344\223\002>\022\022.google.cloud.des" + + "igncenter.v1.GetSharedTemplateRevisionRequest\0324.google.cloud.designcenter.v1.Sha" + + "redTemplateRevision\"W\332A\004name\202\323\344\223\002J\022H/v1/" + + "{name=projects/*/locations/*/spaces/*/sharedTemplates/*/revisions/*}\022\375\001\n" + + "\033ListSharedTemplateRevisions\022@.google.cloud.desi" + + "gncenter.v1.ListSharedTemplateRevisionsRequest\032A.google.cloud.designcenter.v1.Li" + + "stSharedTemplateRevisionsResponse\"Y\332A\006pa" + + "rent\202\323\344\223\002J\022H/v1/{parent=projects/*/locat" + + "ions/*/spaces/*/sharedTemplates/*}/revisions\022\344\002\n" + + "\035CreateCatalogTemplateRevision\022B.google.cloud.designcenter.v1.CreateCata" + + "logTemplateRevisionRequest\032\035.google.longrunning.Operation\"\337\001\312A,\n" + + "\027CatalogTemplateRevision\022\021OperationMetadata\332A=parent,cat" + + "alog_template_revision,catalog_template_" + + "revision_id\202\323\344\223\002j\"M/v1/{parent=projects/" + + "*/locations/*/spaces/*/catalogs/*/templa" + + "tes/*}/revisions:\031catalog_template_revision\022\362\001\n" + + "\032GetCatalogTemplateRevision\022?.google.cloud.designcenter.v1.GetCatalogTemp" + + "lateRevisionRequest\0325.google.cloud.desig" + + "ncenter.v1.CatalogTemplateRevision\"\\\332A\004n" + + "ame\202\323\344\223\002O\022M/v1/{name=projects/*/location" + + "s/*/spaces/*/catalogs/*/templates/*/revisions/*}\022\205\002\n" + + "\034ListCatalogTemplateRevisions\022A.google.cloud.designcenter.v1.ListCat" + + "alogTemplateRevisionsRequest\032B.google.cloud.designcenter.v1.ListCatalogTemplateR" + + "evisionsResponse\"^\332A\006parent\202\323\344\223\002O\022M/v1/{" + + "parent=projects/*/locations/*/spaces/*/catalogs/*/templates/*}/revisions\022\216\002\n" + + "\035DeleteCatalogTemplateRevision\022B.google.clou" + + "d.designcenter.v1.DeleteCatalogTemplateR" + + "evisionRequest\032\035.google.longrunning.Operation\"\211\001\312A*\n" + + "\025google.protobuf.Empty\022\021Oper" + + "ationMetadata\332A\004name\202\323\344\223\002O*M/v1/{name=pr" + + "ojects/*/locations/*/spaces/*/catalogs/*/templates/*/revisions/*}\022\352\001\n" + + "\021CreateApplication\0226.google.cloud.designcenter.v1.C" + + "reateApplicationRequest\032).google.cloud.d" + + "esigncenter.v1.Application\"r\332A!parent,ap" + + "plication,application_id\202\323\344\223\002H\"9/v1/{par" + + "ent=projects/*/locations/*/spaces/*}/applications:\013application\022\272\001\n" + + "\016GetApplication\0223.google.cloud.designcenter.v1.GetAppl", + "icationRequest\032).google.cloud.designcent" + + "er.v1.Application\"H\332A\004name\202\323\344\223\002;\0229/v1/{n" + + "ame=projects/*/locations/*/spaces/*/appl" + + "ications/*}\022\315\001\n\020ListApplications\0225.googl" + + "e.cloud.designcenter.v1.ListApplications" + + "Request\0326.google.cloud.designcenter.v1.L" + + "istApplicationsResponse\"J\332A\006parent\202\323\344\223\002;" + + "\0229/v1/{parent=projects/*/locations/*/spa" + + "ces/*}/applications\022\354\001\n\021UpdateApplicatio" + + "n\0226.google.cloud.designcenter.v1.UpdateA" + + "pplicationRequest\032).google.cloud.designc" + + "enter.v1.Application\"t\332A\027application,upd" + + "ate_mask\202\323\344\223\002T2E/v1/{application.name=pr" + + "ojects/*/locations/*/spaces/*/applicatio" + + "ns/*}:\013application\022\341\001\n\021DeleteApplication" + + "\0226.google.cloud.designcenter.v1.DeleteAp" + + "plicationRequest\032\035.google.longrunning.Op" + + "eration\"u\312A*\n\025google.protobuf.Empty\022\021Ope" + + "rationMetadata\332A\004name\202\323\344\223\002;*9/v1/{name=p" + + "rojects/*/locations/*/spaces/*/applicati" + + "ons/*}\022\360\001\n\021DeployApplication\0226.google.cl" + + "oud.designcenter.v1.DeployApplicationReq" + + "uest\032\035.google.longrunning.Operation\"\203\001\312A" + + ".\n\031DeployApplicationResponse\022\021OperationM" + + "etadata\332A\004name\202\323\344\223\002E\"@/v1/{name=projects" + + "/*/locations/*/spaces/*/applications/*}:" + + "deploy:\001*\022\364\001\n\022PreviewApplication\0227.googl" + + "e.cloud.designcenter.v1.PreviewApplicati" + + "onRequest\032\035.google.longrunning.Operation" + + "\"\205\001\312A/\n\032PreviewApplicationResponse\022\021Oper" + + "ationMetadata\332A\004name\202\323\344\223\002F\"A/v1/{name=pr" + + "ojects/*/locations/*/spaces/*/applicatio" + + "ns/*}:preview:\001*\022\221\002\n FetchApplicationAss" + + "essmentReport\022E.google.cloud.designcente" + + "r.v1.FetchApplicationAssessmentReportReq" + + "uest\032F.google.cloud.designcenter.v1.Fetc" + + "hApplicationAssessmentReportResponse\"^\332A" + + "\004name\202\323\344\223\002Q\022O/v1/{name=projects/*/locati" + + "ons/*/spaces/*/applications/*}:fetchAsse" + + "ssmentReport\022\270\002\n#GenerateApplicationAsse" + + "ssmentReport\022H.google.cloud.designcenter" + + ".v1.GenerateApplicationAssessmentReportR" + + "equest\032\035.google.longrunning.Operation\"\247\001" + + "\312A@\n+GenerateApplicationAssessmentReport" + + "Response\022\021OperationMetadata\332A\004name\202\323\344\223\002W" + + "\"R/v1/{name=projects/*/locations/*/space" + + "s/*/applications/*}:generateAssessmentRe" + + "port:\001*\022\330\002\n+GenerateApplicationTemplateA" + + "ssessmentReport\022P.google.cloud.designcen" + + "ter.v1.GenerateApplicationTemplateAssess" + + "mentReportRequest\032\035.google.longrunning.O" + + "peration\"\267\001\312AH\n3GenerateApplicationTempl" + + "ateAssessmentReportResponse\022\021OperationMe" + + "tadata\332A\004name\202\323\344\223\002_\"Z/v1/{name=projects/" + + "*/locations/*/spaces/*/applicationTempla" + + "tes/*}:generateAssessmentReport:\001*\022\227\002\n\030G" + + "enerateAssessmentReport\022=.google.cloud.d" + + "esigncenter.v1.GenerateAssessmentReportR" + + "equest\032\035.google.longrunning.Operation\"\234\001" + + "\210\002\001\312A5\n GenerateAssessmentReportResponse" + + "\022\021OperationMetadata\332A\nspace_name\202\323\344\223\002N\"I" + + "/v1/{space_name=projects/*/locations/*/s" + + "paces/*}:generateAssessmentReport:\001*\022\313\002\n" + + "%GenerateTerraformPlanAssessmentReport\022J" + + ".google.cloud.designcenter.v1.GenerateTe" + + "rraformPlanAssessmentReportRequest\032\035.goo" + + "gle.longrunning.Operation\"\266\001\312AB\n-Generat" + + "eTerraformPlanAssessmentReportResponse\022\021" + + "OperationMetadata\332A\023name,terraform_plan\202" + + "\323\344\223\002U\"P/v1/{name=projects/*/locations/*/" + + "spaces/*}:generateTerraformPlanAssessmen" + + "tReport:\001*\022\276\001\n\tGetPolicy\022..google.cloud." + + "designcenter.v1.GetPolicyRequest\032$.googl" + + "e.cloud.designcenter.v1.Policy\"[\332A\004name\202" + + "\323\344\223\002N\022L/v1/{name=projects/*/locations/*/" + + "spaces/*/applicationTemplates/*/policies" + + "/*}\022\324\001\n\014ListPolicies\0221.google.cloud.desi" + + "gncenter.v1.ListPoliciesRequest\0322.google" + + ".cloud.designcenter.v1.ListPoliciesRespo" + + "nse\"]\332A\006parent\202\323\344\223\002N\022L/v1/{parent=projec" + + "ts/*/locations/*/spaces/*/applicationTem" + + "plates/*}/policies\022\337\001\n\014CreatePolicy\0221.go" + + "ogle.cloud.designcenter.v1.CreatePolicyR" + + "equest\032$.google.cloud.designcenter.v1.Po" + + "licy\"v\332A\027parent,policy,policy_id\202\323\344\223\002V\"L" + + "/v1/{parent=projects/*/locations/*/space" + + "s/*/applicationTemplates/*}/policies:\006po" + + "licy\022\341\001\n\014UpdatePolicy\0221.google.cloud.des" + + "igncenter.v1.UpdatePolicyRequest\032$.googl" + + "e.cloud.designcenter.v1.Policy\"x\332A\022polic" + + "y,update_mask\202\323\344\223\002]2S/v1/{policy.name=pr" + + "ojects/*/locations/*/spaces/*/applicatio" + + "nTemplates/*/policies/*}:\006policy\022\266\001\n\014Del" + + "etePolicy\0221.google.cloud.designcenter.v1" + + ".DeletePolicyRequest\032\026.google.protobuf.E" + + "mpty\"[\332A\004name\202\323\344\223\002N*L/v1/{name=projects/" + + "*/locations/*/spaces/*/applicationTempla" + + "tes/*/policies/*}\022\304\001\n\017FetchFrameworks\0224." + + "google.cloud.designcenter.v1.FetchFramew" + + "orksRequest\0325.google.cloud.designcenter." + + "v1.FetchFrameworksResponse\"D\332A\006parent\202\323\344" + + "\223\0025\0223/v1/{parent=projects/*/locations/*}" + + ":fetchFrameworks\022\351\001\n\026GenerateApplication" + + "IaC\022;.google.cloud.designcenter.v1.Gener" + + "ateApplicationIaCRequest\032<.google.cloud." + + "designcenter.v1.GenerateApplicationIaCRe" + + "sponse\"T\332A\004name\202\323\344\223\002G\"B/v1/{name=project" + + "s/*/locations/*/spaces/*/applications/*}" + + ":generate:\001*\022\371\001\n\024ExportApplicationIaC\0229." + + "google.cloud.designcenter.v1.ExportAppli" + + "cationIaCRequest\032\035.google.longrunning.Op" + + "eration\"\206\001\312A1\n\034ExportApplicationIaCRespo" + + "nse\022\021OperationMetadata\332A\004name\202\323\344\223\002E\"@/v1" + + "/{name=projects/*/locations/*/spaces/*/a" + + "pplications/*}:export:\001*\022\204\002\n\034ImportAppli" + + "cationTemplateIaC\022A.google.cloud.designc" + + "enter.v1.ImportApplicationTemplateIaCReq" + + "uest\032B.google.cloud.designcenter.v1.Impo" + + "rtApplicationTemplateIaCResponse\"]\332A\004nam" + + "e\202\323\344\223\002P\"K/v1/{name=projects/*/locations/" + + "*/spaces/*/applicationTemplates/*}:impor" + + "tIaC:\001*\022\234\002\n\034IngestApplicationTemplateIaC" + + "\022A.google.cloud.designcenter.v1.IngestAp" + + "plicationTemplateIaCRequest\032\035.google.lon" + + "grunning.Operation\"\231\001\312A9\n$IngestApplicat" + + "ionTemplateIaCResponse\022\021OperationMetadat" + + "a\332A\004name\202\323\344\223\002P\"K/v1/{name=projects/*/loc" + + "ations/*/spaces/*/applicationTemplates/*" + + "}:ingestIaC:\001*\022\344\001\n\024ImportApplicationIaC\022" + + "9.google.cloud.designcenter.v1.ImportApp" + + "licationIaCRequest\032:.google.cloud.design" + + "center.v1.ImportApplicationIaCResponse\"U" + + "\332A\004name\202\323\344\223\002H\"C/v1/{name=projects/*/loca" + + "tions/*/spaces/*/applications/*}:importI" + + "aC:\001*\022\325\002\n\"RegisterAppHubApplicationResou" + + "rces\022G.google.cloud.designcenter.v1.Regi" + + "sterAppHubApplicationResourcesRequest\032\035." + + "google.longrunning.Operation\"\306\001\312A?\n*Regi" + + "sterAppHubApplicationResourcesResponse\022\021" + + "OperationMetadata\332A)parent,apphub_applic" + + "ation,tfstate_content\202\323\344\223\002R\"M/v1/{parent" + + "=projects/*/locations/*}/spaces:register" + + "AppHubApplicationResources:\001*\022\251\002\n&ListAp" + + "plicationTemplateSystemRevisions\022K.googl" + + "e.cloud.designcenter.v1.ListApplicationT" + + "emplateSystemRevisionsRequest\032L.google.c" + + "loud.designcenter.v1.ListApplicationTemp" + + "lateSystemRevisionsResponse\"d\332A\006parent\202\323" + + "\344\223\002U\022S/v1/{parent=projects/*/locations/*" + + "/spaces/*/applicationTemplates/*}/system" + + "Revisions\022\226\002\n$GetApplicationTemplateSyst" + + "emRevision\022I.google.cloud.designcenter.v" + + "1.GetApplicationTemplateSystemRevisionRe" + + "quest\032?.google.cloud.designcenter.v1.App" + + "licationTemplateSystemRevision\"b\332A\004name\202" + + "\323\344\223\002U\022S/v1/{name=projects/*/locations/*/" + + "spaces/*/applicationTemplates/*/systemRe" + + "visions/*}\022\373\001\n\021RecommendIAMRoles\0226.googl" + + "e.cloud.designcenter.v1.RecommendIAMRole" + + "sRequest\032\035.google.longrunning.Operation\"" + + "\216\001\312A.\n\031RecommendIAMRolesResponse\022\021Operat" + + "ionMetadata\332A\004name\202\323\344\223\002P\"K/v1/{name=proj" + + "ects/*/locations/*/spaces/*/applications" + + "/*}:recommendIAMRoles:\001*\032O\312A\033designcente" + + "r.googleapis.com\322A.https://www.googleapi" + + "s.com/auth/cloud-platformB\244\004\n com.google" + + ".cloud.designcenter.v1B\021DesigncenterProt" + + "oP\001ZDcloud.google.com/go/designcenter/ap" + + "iv1/designcenterpb;designcenterpb\252\002\034Goog" + + "le.Cloud.DesignCenter.V1\312\002\034Google\\Cloud\\" + + "DesignCenter\\V1\352\002\037Google::Cloud::DesignC" + + "enter::V1\352As\n\027iam.googleapis.com/Role\022)o" + + "rganizations/{organization}/roles/{role}" + + "\022\037projects/{project}/roles/{role}\022\014roles" + + "/{role}\352A\315\001\n3cloudsecuritycompliance.goo" + + "gleapis.com/CloudControl\022Oorganizations/" + + "{organization}/locations/{location}/clou" + + "dControls/{cloud_control}\022Eprojects/{pro" + + "ject}/locations/{location}/cloudControls" + + "/{cloud_control}b\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.FieldInfoProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.designcenter.v1.ApphubIntegrationRpcMessagesProto.getDescriptor(), + com.google.cloud.designcenter.v1.AuthoringResourcesProto.getDescriptor(), + com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto.getDescriptor(), + com.google.cloud.designcenter.v1.BestPracticesResourcesProto.getDescriptor(), + com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto.getDescriptor(), + com.google.cloud.designcenter.v1.CatalogManagementResourcesProto.getDescriptor(), + com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto.getDescriptor(), + com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto.getDescriptor(), + com.google.cloud.designcenter.v1.DeploymentResourcesProto.getDescriptor(), + com.google.cloud.designcenter.v1.SharingResourcesProto.getDescriptor(), + com.google.cloud.designcenter.v1.SharingProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_designcenter_v1_OperationMetadata_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_designcenter_v1_OperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_OperationMetadata_descriptor, + new java.lang.String[] { + "DeploymentMetadata", + "PreviewMetadata", + "ApplicationMetadata", + "DeploymentGroupMetadata", + "GenerateAssessmentReportMetadata", + "CreateTime", + "EndTime", + "Target", + "Verb", + "StatusMessage", + "RequestedCancellation", + "ApiVersion", + "ResourceMetadata", + }); + internal_static_google_cloud_designcenter_v1_PreviewOperationMetadata_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_designcenter_v1_PreviewOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_PreviewOperationMetadata_descriptor, + new java.lang.String[] { + "PreviewStep", "PreviewBuild", "PreviewLogs", "Resources", + }); + internal_static_google_cloud_designcenter_v1_GenerateAssessmentReportOperationMetadata_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_designcenter_v1_GenerateAssessmentReportOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_GenerateAssessmentReportOperationMetadata_descriptor, + new java.lang.String[] { + "Step", + }); + internal_static_google_cloud_designcenter_v1_ApplicationOperationMetadata_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_cloud_designcenter_v1_ApplicationOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ApplicationOperationMetadata_descriptor, + new java.lang.String[] { + "Step", "Build", + }); + internal_static_google_cloud_designcenter_v1_ProvisionDeploymentGroupOperationMetadata_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_cloud_designcenter_v1_ProvisionDeploymentGroupOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ProvisionDeploymentGroupOperationMetadata_descriptor, + new java.lang.String[] { + "DeploymentStep", "DeploymentUnitProgress", + }); + internal_static_google_cloud_designcenter_v1_DeploymentUnitProgress_descriptor = + getDescriptor().getMessageType(5); + internal_static_google_cloud_designcenter_v1_DeploymentUnitProgress_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_DeploymentUnitProgress_descriptor, + new java.lang.String[] { + "UnitId", "Deployment", "DeploymentUnitStep", "DeploymentBuild", "DeploymentStep", + }); + internal_static_google_cloud_designcenter_v1_DeploymentOperationMetadata_descriptor = + getDescriptor().getMessageType(6); + internal_static_google_cloud_designcenter_v1_DeploymentOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_DeploymentOperationMetadata_descriptor, + new java.lang.String[] { + "Deployment", + "DeploymentStep", + "DeploymentBuild", + "DeploymentLogs", + "Resources", + "PreviousAttempt", + }); + internal_static_google_cloud_designcenter_v1_DeploymentAttemptMetadata_descriptor = + getDescriptor().getMessageType(7); + internal_static_google_cloud_designcenter_v1_DeploymentAttemptMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_DeploymentAttemptMetadata_descriptor, + new java.lang.String[] { + "Attempt", "ErrorDetail", "Build", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.FieldInfoProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.designcenter.v1.ApphubIntegrationRpcMessagesProto.getDescriptor(); + com.google.cloud.designcenter.v1.AuthoringResourcesProto.getDescriptor(); + com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto.getDescriptor(); + com.google.cloud.designcenter.v1.BestPracticesResourcesProto.getDescriptor(); + com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto.getDescriptor(); + com.google.cloud.designcenter.v1.CatalogManagementResourcesProto.getDescriptor(); + com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto.getDescriptor(); + com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto.getDescriptor(); + com.google.cloud.designcenter.v1.DeploymentResourcesProto.getDescriptor(); + com.google.cloud.designcenter.v1.SharingResourcesProto.getDescriptor(); + com.google.cloud.designcenter.v1.SharingProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + 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.FieldInfoProto.fieldInfo); + 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.resourceDefinition); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeveloperConnectConfig.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeveloperConnectConfig.java new file mode 100644 index 000000000000..ffc09e963e9b --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeveloperConnectConfig.java @@ -0,0 +1,604 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/ingestion.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * This config defines the location of a source through Developer Connect.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.DeveloperConnectConfig} + */ +@com.google.protobuf.Generated +public final class DeveloperConnectConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.DeveloperConnectConfig) + DeveloperConnectConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DeveloperConnectConfig"); + } + + // Use DeveloperConnectConfig.newBuilder() to construct. + private DeveloperConnectConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeveloperConnectConfig() { + gitRepositoryLink_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.IngestionProto + .internal_static_google_cloud_designcenter_v1_DeveloperConnectConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.IngestionProto + .internal_static_google_cloud_designcenter_v1_DeveloperConnectConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.DeveloperConnectConfig.class, + com.google.cloud.designcenter.v1.DeveloperConnectConfig.Builder.class); + } + + public static final int GIT_REPOSITORY_LINK_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object gitRepositoryLink_ = ""; + + /** + * + * + *
+   * Required. The Developer Connect Git repository link, formatted as
+   * `projects/*/locations/*/connections/*/gitRepositoryLink/*`.
+   * 
+ * + * string git_repository_link = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The gitRepositoryLink. + */ + @java.lang.Override + public java.lang.String getGitRepositoryLink() { + java.lang.Object ref = gitRepositoryLink_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gitRepositoryLink_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The Developer Connect Git repository link, formatted as
+   * `projects/*/locations/*/connections/*/gitRepositoryLink/*`.
+   * 
+ * + * string git_repository_link = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for gitRepositoryLink. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGitRepositoryLinkBytes() { + java.lang.Object ref = gitRepositoryLink_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gitRepositoryLink_ = 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.GeneratedMessage.isStringEmpty(gitRepositoryLink_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, gitRepositoryLink_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gitRepositoryLink_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, gitRepositoryLink_); + } + 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.designcenter.v1.DeveloperConnectConfig)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.DeveloperConnectConfig other = + (com.google.cloud.designcenter.v1.DeveloperConnectConfig) obj; + + if (!getGitRepositoryLink().equals(other.getGitRepositoryLink())) 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) + GIT_REPOSITORY_LINK_FIELD_NUMBER; + hash = (53 * hash) + getGitRepositoryLink().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.DeveloperConnectConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeveloperConnectConfig 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.designcenter.v1.DeveloperConnectConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeveloperConnectConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeveloperConnectConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeveloperConnectConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeveloperConnectConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeveloperConnectConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeveloperConnectConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeveloperConnectConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeveloperConnectConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeveloperConnectConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.DeveloperConnectConfig 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * This config defines the location of a source through Developer Connect.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.DeveloperConnectConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.DeveloperConnectConfig) + com.google.cloud.designcenter.v1.DeveloperConnectConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.IngestionProto + .internal_static_google_cloud_designcenter_v1_DeveloperConnectConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.IngestionProto + .internal_static_google_cloud_designcenter_v1_DeveloperConnectConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.DeveloperConnectConfig.class, + com.google.cloud.designcenter.v1.DeveloperConnectConfig.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.DeveloperConnectConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + gitRepositoryLink_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.IngestionProto + .internal_static_google_cloud_designcenter_v1_DeveloperConnectConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeveloperConnectConfig getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.DeveloperConnectConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeveloperConnectConfig build() { + com.google.cloud.designcenter.v1.DeveloperConnectConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeveloperConnectConfig buildPartial() { + com.google.cloud.designcenter.v1.DeveloperConnectConfig result = + new com.google.cloud.designcenter.v1.DeveloperConnectConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.DeveloperConnectConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.gitRepositoryLink_ = gitRepositoryLink_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.DeveloperConnectConfig) { + return mergeFrom((com.google.cloud.designcenter.v1.DeveloperConnectConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.DeveloperConnectConfig other) { + if (other == com.google.cloud.designcenter.v1.DeveloperConnectConfig.getDefaultInstance()) + return this; + if (!other.getGitRepositoryLink().isEmpty()) { + gitRepositoryLink_ = other.gitRepositoryLink_; + 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: + { + gitRepositoryLink_ = 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 gitRepositoryLink_ = ""; + + /** + * + * + *
+     * Required. The Developer Connect Git repository link, formatted as
+     * `projects/*/locations/*/connections/*/gitRepositoryLink/*`.
+     * 
+ * + * string git_repository_link = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The gitRepositoryLink. + */ + public java.lang.String getGitRepositoryLink() { + java.lang.Object ref = gitRepositoryLink_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gitRepositoryLink_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The Developer Connect Git repository link, formatted as
+     * `projects/*/locations/*/connections/*/gitRepositoryLink/*`.
+     * 
+ * + * string git_repository_link = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for gitRepositoryLink. + */ + public com.google.protobuf.ByteString getGitRepositoryLinkBytes() { + java.lang.Object ref = gitRepositoryLink_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gitRepositoryLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The Developer Connect Git repository link, formatted as
+     * `projects/*/locations/*/connections/*/gitRepositoryLink/*`.
+     * 
+ * + * string git_repository_link = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The gitRepositoryLink to set. + * @return This builder for chaining. + */ + public Builder setGitRepositoryLink(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + gitRepositoryLink_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The Developer Connect Git repository link, formatted as
+     * `projects/*/locations/*/connections/*/gitRepositoryLink/*`.
+     * 
+ * + * string git_repository_link = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearGitRepositoryLink() { + gitRepositoryLink_ = getDefaultInstance().getGitRepositoryLink(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The Developer Connect Git repository link, formatted as
+     * `projects/*/locations/*/connections/*/gitRepositoryLink/*`.
+     * 
+ * + * string git_repository_link = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for gitRepositoryLink to set. + * @return This builder for chaining. + */ + public Builder setGitRepositoryLinkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gitRepositoryLink_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.DeveloperConnectConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.DeveloperConnectConfig) + private static final com.google.cloud.designcenter.v1.DeveloperConnectConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.DeveloperConnectConfig(); + } + + public static com.google.cloud.designcenter.v1.DeveloperConnectConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeveloperConnectConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.DeveloperConnectConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeveloperConnectConfigOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeveloperConnectConfigOrBuilder.java new file mode 100644 index 000000000000..8bbcf1d824d8 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeveloperConnectConfigOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/ingestion.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface DeveloperConnectConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.DeveloperConnectConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The Developer Connect Git repository link, formatted as
+   * `projects/*/locations/*/connections/*/gitRepositoryLink/*`.
+   * 
+ * + * string git_repository_link = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The gitRepositoryLink. + */ + java.lang.String getGitRepositoryLink(); + + /** + * + * + *
+   * Required. The Developer Connect Git repository link, formatted as
+   * `projects/*/locations/*/connections/*/gitRepositoryLink/*`.
+   * 
+ * + * string git_repository_link = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for gitRepositoryLink. + */ + com.google.protobuf.ByteString getGitRepositoryLinkBytes(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeveloperConnectExportConfig.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeveloperConnectExportConfig.java new file mode 100644 index 000000000000..4ac6be627322 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeveloperConnectExportConfig.java @@ -0,0 +1,1233 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/export.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Through Developer Connect, defines a location where content such as
+ * Infrastructure as Code (IaC) is stored.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.DeveloperConnectExportConfig} + */ +@com.google.protobuf.Generated +public final class DeveloperConnectExportConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.DeveloperConnectExportConfig) + DeveloperConnectExportConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DeveloperConnectExportConfig"); + } + + // Use DeveloperConnectExportConfig.newBuilder() to construct. + private DeveloperConnectExportConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeveloperConnectExportConfig() { + developerConnectRepoUri_ = ""; + branch_ = ""; + dir_ = ""; + commitSha_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.ExportProto + .internal_static_google_cloud_designcenter_v1_DeveloperConnectExportConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.ExportProto + .internal_static_google_cloud_designcenter_v1_DeveloperConnectExportConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.DeveloperConnectExportConfig.class, + com.google.cloud.designcenter.v1.DeveloperConnectExportConfig.Builder.class); + } + + public static final int DEVELOPER_CONNECT_REPO_URI_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object developerConnectRepoUri_ = ""; + + /** + * + * + *
+   * Required. The Developer Connect Git repository link, formatted as
+   * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+   * 
+ * + * + * string developer_connect_repo_uri = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The developerConnectRepoUri. + */ + @java.lang.Override + public java.lang.String getDeveloperConnectRepoUri() { + java.lang.Object ref = developerConnectRepoUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + developerConnectRepoUri_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The Developer Connect Git repository link, formatted as
+   * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+   * 
+ * + * + * string developer_connect_repo_uri = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for developerConnectRepoUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDeveloperConnectRepoUriBytes() { + java.lang.Object ref = developerConnectRepoUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + developerConnectRepoUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BRANCH_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object branch_ = ""; + + /** + * + * + *
+   * Optional. The branch in repo to which the content such as Infrastructure as
+   * Code (IaC) should be written to. If empty, Application Design Center will
+   * create a branch and push the changes.
+   * 
+ * + * string branch = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The branch. + */ + @java.lang.Override + public java.lang.String getBranch() { + java.lang.Object ref = branch_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + branch_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The branch in repo to which the content such as Infrastructure as
+   * Code (IaC) should be written to. If empty, Application Design Center will
+   * create a branch and push the changes.
+   * 
+ * + * string branch = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for branch. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBranchBytes() { + java.lang.Object ref = branch_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + branch_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DIR_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object dir_ = ""; + + /** + * + * + *
+   * Required. Directory, relative to the source repo, where content such as
+   * Infrastructure as Code (IaC) will be stored.
+   * This must be a relative path.To specify the root directory, use '/'.
+   * If the path or any subdirectories do not exist, they will be created.
+   * 
+ * + * string dir = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The dir. + */ + @java.lang.Override + public java.lang.String getDir() { + java.lang.Object ref = dir_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dir_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Directory, relative to the source repo, where content such as
+   * Infrastructure as Code (IaC) will be stored.
+   * This must be a relative path.To specify the root directory, use '/'.
+   * If the path or any subdirectories do not exist, they will be created.
+   * 
+ * + * string dir = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for dir. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDirBytes() { + java.lang.Object ref = dir_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dir_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COMMIT_SHA_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object commitSha_ = ""; + + /** + * + * + *
+   * Output only. The SHA of the Git commit that contains the exported content
+   * such as Infrastructure as Code (IaC).
+   * 
+ * + * string commit_sha = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The commitSha. + */ + @java.lang.Override + public java.lang.String getCommitSha() { + java.lang.Object ref = commitSha_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + commitSha_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The SHA of the Git commit that contains the exported content
+   * such as Infrastructure as Code (IaC).
+   * 
+ * + * string commit_sha = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for commitSha. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCommitShaBytes() { + java.lang.Object ref = commitSha_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + commitSha_ = 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.GeneratedMessage.isStringEmpty(developerConnectRepoUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, developerConnectRepoUri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(branch_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, branch_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dir_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, dir_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(commitSha_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, commitSha_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(developerConnectRepoUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, developerConnectRepoUri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(branch_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, branch_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dir_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, dir_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(commitSha_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, commitSha_); + } + 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.designcenter.v1.DeveloperConnectExportConfig)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.DeveloperConnectExportConfig other = + (com.google.cloud.designcenter.v1.DeveloperConnectExportConfig) obj; + + if (!getDeveloperConnectRepoUri().equals(other.getDeveloperConnectRepoUri())) return false; + if (!getBranch().equals(other.getBranch())) return false; + if (!getDir().equals(other.getDir())) return false; + if (!getCommitSha().equals(other.getCommitSha())) 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) + DEVELOPER_CONNECT_REPO_URI_FIELD_NUMBER; + hash = (53 * hash) + getDeveloperConnectRepoUri().hashCode(); + hash = (37 * hash) + BRANCH_FIELD_NUMBER; + hash = (53 * hash) + getBranch().hashCode(); + hash = (37 * hash) + DIR_FIELD_NUMBER; + hash = (53 * hash) + getDir().hashCode(); + hash = (37 * hash) + COMMIT_SHA_FIELD_NUMBER; + hash = (53 * hash) + getCommitSha().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.DeveloperConnectExportConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeveloperConnectExportConfig 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.designcenter.v1.DeveloperConnectExportConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeveloperConnectExportConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeveloperConnectExportConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeveloperConnectExportConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeveloperConnectExportConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeveloperConnectExportConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeveloperConnectExportConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeveloperConnectExportConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeveloperConnectExportConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeveloperConnectExportConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.DeveloperConnectExportConfig 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Through Developer Connect, defines a location where content such as
+   * Infrastructure as Code (IaC) is stored.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.DeveloperConnectExportConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.DeveloperConnectExportConfig) + com.google.cloud.designcenter.v1.DeveloperConnectExportConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.ExportProto + .internal_static_google_cloud_designcenter_v1_DeveloperConnectExportConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.ExportProto + .internal_static_google_cloud_designcenter_v1_DeveloperConnectExportConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.DeveloperConnectExportConfig.class, + com.google.cloud.designcenter.v1.DeveloperConnectExportConfig.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.DeveloperConnectExportConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + developerConnectRepoUri_ = ""; + branch_ = ""; + dir_ = ""; + commitSha_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.ExportProto + .internal_static_google_cloud_designcenter_v1_DeveloperConnectExportConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeveloperConnectExportConfig + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.DeveloperConnectExportConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeveloperConnectExportConfig build() { + com.google.cloud.designcenter.v1.DeveloperConnectExportConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeveloperConnectExportConfig buildPartial() { + com.google.cloud.designcenter.v1.DeveloperConnectExportConfig result = + new com.google.cloud.designcenter.v1.DeveloperConnectExportConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.DeveloperConnectExportConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.developerConnectRepoUri_ = developerConnectRepoUri_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.branch_ = branch_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.dir_ = dir_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.commitSha_ = commitSha_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.DeveloperConnectExportConfig) { + return mergeFrom((com.google.cloud.designcenter.v1.DeveloperConnectExportConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.DeveloperConnectExportConfig other) { + if (other + == com.google.cloud.designcenter.v1.DeveloperConnectExportConfig.getDefaultInstance()) + return this; + if (!other.getDeveloperConnectRepoUri().isEmpty()) { + developerConnectRepoUri_ = other.developerConnectRepoUri_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getBranch().isEmpty()) { + branch_ = other.branch_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDir().isEmpty()) { + dir_ = other.dir_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getCommitSha().isEmpty()) { + commitSha_ = other.commitSha_; + 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: + { + developerConnectRepoUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + branch_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + dir_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + commitSha_ = 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 developerConnectRepoUri_ = ""; + + /** + * + * + *
+     * Required. The Developer Connect Git repository link, formatted as
+     * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+     * 
+ * + * + * string developer_connect_repo_uri = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The developerConnectRepoUri. + */ + public java.lang.String getDeveloperConnectRepoUri() { + java.lang.Object ref = developerConnectRepoUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + developerConnectRepoUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The Developer Connect Git repository link, formatted as
+     * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+     * 
+ * + * + * string developer_connect_repo_uri = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for developerConnectRepoUri. + */ + public com.google.protobuf.ByteString getDeveloperConnectRepoUriBytes() { + java.lang.Object ref = developerConnectRepoUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + developerConnectRepoUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The Developer Connect Git repository link, formatted as
+     * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+     * 
+ * + * + * string developer_connect_repo_uri = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The developerConnectRepoUri to set. + * @return This builder for chaining. + */ + public Builder setDeveloperConnectRepoUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + developerConnectRepoUri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The Developer Connect Git repository link, formatted as
+     * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+     * 
+ * + * + * string developer_connect_repo_uri = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearDeveloperConnectRepoUri() { + developerConnectRepoUri_ = getDefaultInstance().getDeveloperConnectRepoUri(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The Developer Connect Git repository link, formatted as
+     * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+     * 
+ * + * + * string developer_connect_repo_uri = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for developerConnectRepoUri to set. + * @return This builder for chaining. + */ + public Builder setDeveloperConnectRepoUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + developerConnectRepoUri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object branch_ = ""; + + /** + * + * + *
+     * Optional. The branch in repo to which the content such as Infrastructure as
+     * Code (IaC) should be written to. If empty, Application Design Center will
+     * create a branch and push the changes.
+     * 
+ * + * string branch = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The branch. + */ + public java.lang.String getBranch() { + java.lang.Object ref = branch_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + branch_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The branch in repo to which the content such as Infrastructure as
+     * Code (IaC) should be written to. If empty, Application Design Center will
+     * create a branch and push the changes.
+     * 
+ * + * string branch = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for branch. + */ + public com.google.protobuf.ByteString getBranchBytes() { + java.lang.Object ref = branch_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + branch_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The branch in repo to which the content such as Infrastructure as
+     * Code (IaC) should be written to. If empty, Application Design Center will
+     * create a branch and push the changes.
+     * 
+ * + * string branch = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The branch to set. + * @return This builder for chaining. + */ + public Builder setBranch(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + branch_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The branch in repo to which the content such as Infrastructure as
+     * Code (IaC) should be written to. If empty, Application Design Center will
+     * create a branch and push the changes.
+     * 
+ * + * string branch = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearBranch() { + branch_ = getDefaultInstance().getBranch(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The branch in repo to which the content such as Infrastructure as
+     * Code (IaC) should be written to. If empty, Application Design Center will
+     * create a branch and push the changes.
+     * 
+ * + * string branch = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for branch to set. + * @return This builder for chaining. + */ + public Builder setBranchBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + branch_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object dir_ = ""; + + /** + * + * + *
+     * Required. Directory, relative to the source repo, where content such as
+     * Infrastructure as Code (IaC) will be stored.
+     * This must be a relative path.To specify the root directory, use '/'.
+     * If the path or any subdirectories do not exist, they will be created.
+     * 
+ * + * string dir = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The dir. + */ + public java.lang.String getDir() { + java.lang.Object ref = dir_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dir_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Directory, relative to the source repo, where content such as
+     * Infrastructure as Code (IaC) will be stored.
+     * This must be a relative path.To specify the root directory, use '/'.
+     * If the path or any subdirectories do not exist, they will be created.
+     * 
+ * + * string dir = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for dir. + */ + public com.google.protobuf.ByteString getDirBytes() { + java.lang.Object ref = dir_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dir_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Directory, relative to the source repo, where content such as
+     * Infrastructure as Code (IaC) will be stored.
+     * This must be a relative path.To specify the root directory, use '/'.
+     * If the path or any subdirectories do not exist, they will be created.
+     * 
+ * + * string dir = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The dir to set. + * @return This builder for chaining. + */ + public Builder setDir(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dir_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Directory, relative to the source repo, where content such as
+     * Infrastructure as Code (IaC) will be stored.
+     * This must be a relative path.To specify the root directory, use '/'.
+     * If the path or any subdirectories do not exist, they will be created.
+     * 
+ * + * string dir = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDir() { + dir_ = getDefaultInstance().getDir(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Directory, relative to the source repo, where content such as
+     * Infrastructure as Code (IaC) will be stored.
+     * This must be a relative path.To specify the root directory, use '/'.
+     * If the path or any subdirectories do not exist, they will be created.
+     * 
+ * + * string dir = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for dir to set. + * @return This builder for chaining. + */ + public Builder setDirBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dir_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object commitSha_ = ""; + + /** + * + * + *
+     * Output only. The SHA of the Git commit that contains the exported content
+     * such as Infrastructure as Code (IaC).
+     * 
+ * + * string commit_sha = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The commitSha. + */ + public java.lang.String getCommitSha() { + java.lang.Object ref = commitSha_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + commitSha_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The SHA of the Git commit that contains the exported content
+     * such as Infrastructure as Code (IaC).
+     * 
+ * + * string commit_sha = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for commitSha. + */ + public com.google.protobuf.ByteString getCommitShaBytes() { + java.lang.Object ref = commitSha_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + commitSha_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The SHA of the Git commit that contains the exported content
+     * such as Infrastructure as Code (IaC).
+     * 
+ * + * string commit_sha = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The commitSha to set. + * @return This builder for chaining. + */ + public Builder setCommitSha(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + commitSha_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The SHA of the Git commit that contains the exported content
+     * such as Infrastructure as Code (IaC).
+     * 
+ * + * string commit_sha = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearCommitSha() { + commitSha_ = getDefaultInstance().getCommitSha(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The SHA of the Git commit that contains the exported content
+     * such as Infrastructure as Code (IaC).
+     * 
+ * + * string commit_sha = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for commitSha to set. + * @return This builder for chaining. + */ + public Builder setCommitShaBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + commitSha_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.DeveloperConnectExportConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.DeveloperConnectExportConfig) + private static final com.google.cloud.designcenter.v1.DeveloperConnectExportConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.DeveloperConnectExportConfig(); + } + + public static com.google.cloud.designcenter.v1.DeveloperConnectExportConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeveloperConnectExportConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.DeveloperConnectExportConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeveloperConnectExportConfigOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeveloperConnectExportConfigOrBuilder.java new file mode 100644 index 000000000000..292e72161e8b --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeveloperConnectExportConfigOrBuilder.java @@ -0,0 +1,150 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/export.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface DeveloperConnectExportConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.DeveloperConnectExportConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The Developer Connect Git repository link, formatted as
+   * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+   * 
+ * + * + * string developer_connect_repo_uri = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The developerConnectRepoUri. + */ + java.lang.String getDeveloperConnectRepoUri(); + + /** + * + * + *
+   * Required. The Developer Connect Git repository link, formatted as
+   * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+   * 
+ * + * + * string developer_connect_repo_uri = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for developerConnectRepoUri. + */ + com.google.protobuf.ByteString getDeveloperConnectRepoUriBytes(); + + /** + * + * + *
+   * Optional. The branch in repo to which the content such as Infrastructure as
+   * Code (IaC) should be written to. If empty, Application Design Center will
+   * create a branch and push the changes.
+   * 
+ * + * string branch = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The branch. + */ + java.lang.String getBranch(); + + /** + * + * + *
+   * Optional. The branch in repo to which the content such as Infrastructure as
+   * Code (IaC) should be written to. If empty, Application Design Center will
+   * create a branch and push the changes.
+   * 
+ * + * string branch = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for branch. + */ + com.google.protobuf.ByteString getBranchBytes(); + + /** + * + * + *
+   * Required. Directory, relative to the source repo, where content such as
+   * Infrastructure as Code (IaC) will be stored.
+   * This must be a relative path.To specify the root directory, use '/'.
+   * If the path or any subdirectories do not exist, they will be created.
+   * 
+ * + * string dir = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The dir. + */ + java.lang.String getDir(); + + /** + * + * + *
+   * Required. Directory, relative to the source repo, where content such as
+   * Infrastructure as Code (IaC) will be stored.
+   * This must be a relative path.To specify the root directory, use '/'.
+   * If the path or any subdirectories do not exist, they will be created.
+   * 
+ * + * string dir = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for dir. + */ + com.google.protobuf.ByteString getDirBytes(); + + /** + * + * + *
+   * Output only. The SHA of the Git commit that contains the exported content
+   * such as Infrastructure as Code (IaC).
+   * 
+ * + * string commit_sha = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The commitSha. + */ + java.lang.String getCommitSha(); + + /** + * + * + *
+   * Output only. The SHA of the Git commit that contains the exported content
+   * such as Infrastructure as Code (IaC).
+   * 
+ * + * string commit_sha = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for commitSha. + */ + com.google.protobuf.ByteString getCommitShaBytes(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeveloperConnectSourceConfig.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeveloperConnectSourceConfig.java new file mode 100644 index 000000000000..7555eee23e2b --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeveloperConnectSourceConfig.java @@ -0,0 +1,1352 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/ingestion.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * This config specifies the location of a source (such as GitHub or Bitbucket)
+ * through Developer Connect.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.DeveloperConnectSourceConfig} + */ +@com.google.protobuf.Generated +public final class DeveloperConnectSourceConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.DeveloperConnectSourceConfig) + DeveloperConnectSourceConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DeveloperConnectSourceConfig"); + } + + // Use DeveloperConnectSourceConfig.newBuilder() to construct. + private DeveloperConnectSourceConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeveloperConnectSourceConfig() { + developerConnectRepoUri_ = ""; + dir_ = ""; + fetchedCommitSha_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.IngestionProto + .internal_static_google_cloud_designcenter_v1_DeveloperConnectSourceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.IngestionProto + .internal_static_google_cloud_designcenter_v1_DeveloperConnectSourceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig.class, + com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig.Builder.class); + } + + private int bitField0_; + public static final int DEVELOPER_CONNECT_REPO_URI_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object developerConnectRepoUri_ = ""; + + /** + * + * + *
+   * Required. The Developer Connect Git repository link, formatted as
+   * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+   * 
+ * + * + * string developer_connect_repo_uri = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The developerConnectRepoUri. + */ + @java.lang.Override + public java.lang.String getDeveloperConnectRepoUri() { + java.lang.Object ref = developerConnectRepoUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + developerConnectRepoUri_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The Developer Connect Git repository link, formatted as
+   * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+   * 
+ * + * + * string developer_connect_repo_uri = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for developerConnectRepoUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDeveloperConnectRepoUriBytes() { + java.lang.Object ref = developerConnectRepoUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + developerConnectRepoUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REFERENCE_FIELD_NUMBER = 8; + private com.google.cloud.designcenter.v1.GitReference reference_; + + /** + * + * + *
+   * Required. The reference (for example, a branch, tag, or commit SHA) from
+   * which the content should be read.
+   * 
+ * + * + * .google.cloud.designcenter.v1.GitReference reference = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the reference field is set. + */ + @java.lang.Override + public boolean hasReference() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The reference (for example, a branch, tag, or commit SHA) from
+   * which the content should be read.
+   * 
+ * + * + * .google.cloud.designcenter.v1.GitReference reference = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The reference. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.GitReference getReference() { + return reference_ == null + ? com.google.cloud.designcenter.v1.GitReference.getDefaultInstance() + : reference_; + } + + /** + * + * + *
+   * Required. The reference (for example, a branch, tag, or commit SHA) from
+   * which the content should be read.
+   * 
+ * + * + * .google.cloud.designcenter.v1.GitReference reference = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.GitReferenceOrBuilder getReferenceOrBuilder() { + return reference_ == null + ? com.google.cloud.designcenter.v1.GitReference.getDefaultInstance() + : reference_; + } + + public static final int DIR_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object dir_ = ""; + + /** + * + * + *
+   * Required. The sub-directory within the repository from which to read
+   * content. The path must be relative to the repository's root such as
+   * dir1/dir2. To read content from the root dir, provide "/" as the value of
+   * the field.
+   * 
+ * + * string dir = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The dir. + */ + @java.lang.Override + public java.lang.String getDir() { + java.lang.Object ref = dir_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dir_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The sub-directory within the repository from which to read
+   * content. The path must be relative to the repository's root such as
+   * dir1/dir2. To read content from the root dir, provide "/" as the value of
+   * the field.
+   * 
+ * + * string dir = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for dir. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDirBytes() { + java.lang.Object ref = dir_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dir_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FETCHED_COMMIT_SHA_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object fetchedCommitSha_ = ""; + + /** + * + * + *
+   * Output only. The SHA of the commit deduced from GitReference.
+   * 
+ * + * string fetched_commit_sha = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The fetchedCommitSha. + */ + @java.lang.Override + public java.lang.String getFetchedCommitSha() { + java.lang.Object ref = fetchedCommitSha_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fetchedCommitSha_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The SHA of the commit deduced from GitReference.
+   * 
+ * + * string fetched_commit_sha = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for fetchedCommitSha. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFetchedCommitShaBytes() { + java.lang.Object ref = fetchedCommitSha_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fetchedCommitSha_ = 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.GeneratedMessage.isStringEmpty(developerConnectRepoUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, developerConnectRepoUri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dir_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, dir_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(8, getReference()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(fetchedCommitSha_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 9, fetchedCommitSha_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(developerConnectRepoUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, developerConnectRepoUri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dir_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, dir_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getReference()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(fetchedCommitSha_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(9, fetchedCommitSha_); + } + 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.designcenter.v1.DeveloperConnectSourceConfig)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig other = + (com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig) obj; + + if (!getDeveloperConnectRepoUri().equals(other.getDeveloperConnectRepoUri())) return false; + if (hasReference() != other.hasReference()) return false; + if (hasReference()) { + if (!getReference().equals(other.getReference())) return false; + } + if (!getDir().equals(other.getDir())) return false; + if (!getFetchedCommitSha().equals(other.getFetchedCommitSha())) 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) + DEVELOPER_CONNECT_REPO_URI_FIELD_NUMBER; + hash = (53 * hash) + getDeveloperConnectRepoUri().hashCode(); + if (hasReference()) { + hash = (37 * hash) + REFERENCE_FIELD_NUMBER; + hash = (53 * hash) + getReference().hashCode(); + } + hash = (37 * hash) + DIR_FIELD_NUMBER; + hash = (53 * hash) + getDir().hashCode(); + hash = (37 * hash) + FETCHED_COMMIT_SHA_FIELD_NUMBER; + hash = (53 * hash) + getFetchedCommitSha().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig 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.designcenter.v1.DeveloperConnectSourceConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.DeveloperConnectSourceConfig 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * This config specifies the location of a source (such as GitHub or Bitbucket)
+   * through Developer Connect.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.DeveloperConnectSourceConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.DeveloperConnectSourceConfig) + com.google.cloud.designcenter.v1.DeveloperConnectSourceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.IngestionProto + .internal_static_google_cloud_designcenter_v1_DeveloperConnectSourceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.IngestionProto + .internal_static_google_cloud_designcenter_v1_DeveloperConnectSourceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig.class, + com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetReferenceFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + developerConnectRepoUri_ = ""; + reference_ = null; + if (referenceBuilder_ != null) { + referenceBuilder_.dispose(); + referenceBuilder_ = null; + } + dir_ = ""; + fetchedCommitSha_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.IngestionProto + .internal_static_google_cloud_designcenter_v1_DeveloperConnectSourceConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig build() { + com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig buildPartial() { + com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig result = + new com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.developerConnectRepoUri_ = developerConnectRepoUri_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.reference_ = referenceBuilder_ == null ? reference_ : referenceBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.dir_ = dir_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.fetchedCommitSha_ = fetchedCommitSha_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig) { + return mergeFrom((com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig other) { + if (other + == com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig.getDefaultInstance()) + return this; + if (!other.getDeveloperConnectRepoUri().isEmpty()) { + developerConnectRepoUri_ = other.developerConnectRepoUri_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasReference()) { + mergeReference(other.getReference()); + } + if (!other.getDir().isEmpty()) { + dir_ = other.dir_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFetchedCommitSha().isEmpty()) { + fetchedCommitSha_ = other.fetchedCommitSha_; + 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: + { + developerConnectRepoUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 42: + { + dir_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 42 + case 66: + { + input.readMessage( + internalGetReferenceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 66 + case 74: + { + fetchedCommitSha_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 74 + default: + { + 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 developerConnectRepoUri_ = ""; + + /** + * + * + *
+     * Required. The Developer Connect Git repository link, formatted as
+     * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+     * 
+ * + * + * string developer_connect_repo_uri = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The developerConnectRepoUri. + */ + public java.lang.String getDeveloperConnectRepoUri() { + java.lang.Object ref = developerConnectRepoUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + developerConnectRepoUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The Developer Connect Git repository link, formatted as
+     * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+     * 
+ * + * + * string developer_connect_repo_uri = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for developerConnectRepoUri. + */ + public com.google.protobuf.ByteString getDeveloperConnectRepoUriBytes() { + java.lang.Object ref = developerConnectRepoUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + developerConnectRepoUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The Developer Connect Git repository link, formatted as
+     * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+     * 
+ * + * + * string developer_connect_repo_uri = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The developerConnectRepoUri to set. + * @return This builder for chaining. + */ + public Builder setDeveloperConnectRepoUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + developerConnectRepoUri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The Developer Connect Git repository link, formatted as
+     * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+     * 
+ * + * + * string developer_connect_repo_uri = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearDeveloperConnectRepoUri() { + developerConnectRepoUri_ = getDefaultInstance().getDeveloperConnectRepoUri(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The Developer Connect Git repository link, formatted as
+     * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+     * 
+ * + * + * string developer_connect_repo_uri = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for developerConnectRepoUri to set. + * @return This builder for chaining. + */ + public Builder setDeveloperConnectRepoUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + developerConnectRepoUri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.designcenter.v1.GitReference reference_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.GitReference, + com.google.cloud.designcenter.v1.GitReference.Builder, + com.google.cloud.designcenter.v1.GitReferenceOrBuilder> + referenceBuilder_; + + /** + * + * + *
+     * Required. The reference (for example, a branch, tag, or commit SHA) from
+     * which the content should be read.
+     * 
+ * + * + * .google.cloud.designcenter.v1.GitReference reference = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the reference field is set. + */ + public boolean hasReference() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Required. The reference (for example, a branch, tag, or commit SHA) from
+     * which the content should be read.
+     * 
+ * + * + * .google.cloud.designcenter.v1.GitReference reference = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The reference. + */ + public com.google.cloud.designcenter.v1.GitReference getReference() { + if (referenceBuilder_ == null) { + return reference_ == null + ? com.google.cloud.designcenter.v1.GitReference.getDefaultInstance() + : reference_; + } else { + return referenceBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The reference (for example, a branch, tag, or commit SHA) from
+     * which the content should be read.
+     * 
+ * + * + * .google.cloud.designcenter.v1.GitReference reference = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setReference(com.google.cloud.designcenter.v1.GitReference value) { + if (referenceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reference_ = value; + } else { + referenceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The reference (for example, a branch, tag, or commit SHA) from
+     * which the content should be read.
+     * 
+ * + * + * .google.cloud.designcenter.v1.GitReference reference = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setReference( + com.google.cloud.designcenter.v1.GitReference.Builder builderForValue) { + if (referenceBuilder_ == null) { + reference_ = builderForValue.build(); + } else { + referenceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The reference (for example, a branch, tag, or commit SHA) from
+     * which the content should be read.
+     * 
+ * + * + * .google.cloud.designcenter.v1.GitReference reference = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeReference(com.google.cloud.designcenter.v1.GitReference value) { + if (referenceBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && reference_ != null + && reference_ != com.google.cloud.designcenter.v1.GitReference.getDefaultInstance()) { + getReferenceBuilder().mergeFrom(value); + } else { + reference_ = value; + } + } else { + referenceBuilder_.mergeFrom(value); + } + if (reference_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The reference (for example, a branch, tag, or commit SHA) from
+     * which the content should be read.
+     * 
+ * + * + * .google.cloud.designcenter.v1.GitReference reference = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearReference() { + bitField0_ = (bitField0_ & ~0x00000002); + reference_ = null; + if (referenceBuilder_ != null) { + referenceBuilder_.dispose(); + referenceBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The reference (for example, a branch, tag, or commit SHA) from
+     * which the content should be read.
+     * 
+ * + * + * .google.cloud.designcenter.v1.GitReference reference = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.GitReference.Builder getReferenceBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetReferenceFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The reference (for example, a branch, tag, or commit SHA) from
+     * which the content should be read.
+     * 
+ * + * + * .google.cloud.designcenter.v1.GitReference reference = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.GitReferenceOrBuilder getReferenceOrBuilder() { + if (referenceBuilder_ != null) { + return referenceBuilder_.getMessageOrBuilder(); + } else { + return reference_ == null + ? com.google.cloud.designcenter.v1.GitReference.getDefaultInstance() + : reference_; + } + } + + /** + * + * + *
+     * Required. The reference (for example, a branch, tag, or commit SHA) from
+     * which the content should be read.
+     * 
+ * + * + * .google.cloud.designcenter.v1.GitReference reference = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.GitReference, + com.google.cloud.designcenter.v1.GitReference.Builder, + com.google.cloud.designcenter.v1.GitReferenceOrBuilder> + internalGetReferenceFieldBuilder() { + if (referenceBuilder_ == null) { + referenceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.GitReference, + com.google.cloud.designcenter.v1.GitReference.Builder, + com.google.cloud.designcenter.v1.GitReferenceOrBuilder>( + getReference(), getParentForChildren(), isClean()); + reference_ = null; + } + return referenceBuilder_; + } + + private java.lang.Object dir_ = ""; + + /** + * + * + *
+     * Required. The sub-directory within the repository from which to read
+     * content. The path must be relative to the repository's root such as
+     * dir1/dir2. To read content from the root dir, provide "/" as the value of
+     * the field.
+     * 
+ * + * string dir = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The dir. + */ + public java.lang.String getDir() { + java.lang.Object ref = dir_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dir_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The sub-directory within the repository from which to read
+     * content. The path must be relative to the repository's root such as
+     * dir1/dir2. To read content from the root dir, provide "/" as the value of
+     * the field.
+     * 
+ * + * string dir = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for dir. + */ + public com.google.protobuf.ByteString getDirBytes() { + java.lang.Object ref = dir_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dir_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The sub-directory within the repository from which to read
+     * content. The path must be relative to the repository's root such as
+     * dir1/dir2. To read content from the root dir, provide "/" as the value of
+     * the field.
+     * 
+ * + * string dir = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The dir to set. + * @return This builder for chaining. + */ + public Builder setDir(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dir_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The sub-directory within the repository from which to read
+     * content. The path must be relative to the repository's root such as
+     * dir1/dir2. To read content from the root dir, provide "/" as the value of
+     * the field.
+     * 
+ * + * string dir = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDir() { + dir_ = getDefaultInstance().getDir(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The sub-directory within the repository from which to read
+     * content. The path must be relative to the repository's root such as
+     * dir1/dir2. To read content from the root dir, provide "/" as the value of
+     * the field.
+     * 
+ * + * string dir = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for dir to set. + * @return This builder for chaining. + */ + public Builder setDirBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dir_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object fetchedCommitSha_ = ""; + + /** + * + * + *
+     * Output only. The SHA of the commit deduced from GitReference.
+     * 
+ * + * string fetched_commit_sha = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The fetchedCommitSha. + */ + public java.lang.String getFetchedCommitSha() { + java.lang.Object ref = fetchedCommitSha_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fetchedCommitSha_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The SHA of the commit deduced from GitReference.
+     * 
+ * + * string fetched_commit_sha = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for fetchedCommitSha. + */ + public com.google.protobuf.ByteString getFetchedCommitShaBytes() { + java.lang.Object ref = fetchedCommitSha_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fetchedCommitSha_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The SHA of the commit deduced from GitReference.
+     * 
+ * + * string fetched_commit_sha = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The fetchedCommitSha to set. + * @return This builder for chaining. + */ + public Builder setFetchedCommitSha(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + fetchedCommitSha_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The SHA of the commit deduced from GitReference.
+     * 
+ * + * string fetched_commit_sha = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearFetchedCommitSha() { + fetchedCommitSha_ = getDefaultInstance().getFetchedCommitSha(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The SHA of the commit deduced from GitReference.
+     * 
+ * + * string fetched_commit_sha = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for fetchedCommitSha to set. + * @return This builder for chaining. + */ + public Builder setFetchedCommitShaBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fetchedCommitSha_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.DeveloperConnectSourceConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.DeveloperConnectSourceConfig) + private static final com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig(); + } + + public static com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeveloperConnectSourceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.DeveloperConnectSourceConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeveloperConnectSourceConfigOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeveloperConnectSourceConfigOrBuilder.java new file mode 100644 index 000000000000..317f2956eb45 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DeveloperConnectSourceConfigOrBuilder.java @@ -0,0 +1,164 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/ingestion.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface DeveloperConnectSourceConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.DeveloperConnectSourceConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The Developer Connect Git repository link, formatted as
+   * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+   * 
+ * + * + * string developer_connect_repo_uri = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The developerConnectRepoUri. + */ + java.lang.String getDeveloperConnectRepoUri(); + + /** + * + * + *
+   * Required. The Developer Connect Git repository link, formatted as
+   * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+   * 
+ * + * + * string developer_connect_repo_uri = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for developerConnectRepoUri. + */ + com.google.protobuf.ByteString getDeveloperConnectRepoUriBytes(); + + /** + * + * + *
+   * Required. The reference (for example, a branch, tag, or commit SHA) from
+   * which the content should be read.
+   * 
+ * + * + * .google.cloud.designcenter.v1.GitReference reference = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the reference field is set. + */ + boolean hasReference(); + + /** + * + * + *
+   * Required. The reference (for example, a branch, tag, or commit SHA) from
+   * which the content should be read.
+   * 
+ * + * + * .google.cloud.designcenter.v1.GitReference reference = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The reference. + */ + com.google.cloud.designcenter.v1.GitReference getReference(); + + /** + * + * + *
+   * Required. The reference (for example, a branch, tag, or commit SHA) from
+   * which the content should be read.
+   * 
+ * + * + * .google.cloud.designcenter.v1.GitReference reference = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.designcenter.v1.GitReferenceOrBuilder getReferenceOrBuilder(); + + /** + * + * + *
+   * Required. The sub-directory within the repository from which to read
+   * content. The path must be relative to the repository's root such as
+   * dir1/dir2. To read content from the root dir, provide "/" as the value of
+   * the field.
+   * 
+ * + * string dir = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The dir. + */ + java.lang.String getDir(); + + /** + * + * + *
+   * Required. The sub-directory within the repository from which to read
+   * content. The path must be relative to the repository's root such as
+   * dir1/dir2. To read content from the root dir, provide "/" as the value of
+   * the field.
+   * 
+ * + * string dir = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for dir. + */ + com.google.protobuf.ByteString getDirBytes(); + + /** + * + * + *
+   * Output only. The SHA of the commit deduced from GitReference.
+   * 
+ * + * string fetched_commit_sha = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The fetchedCommitSha. + */ + java.lang.String getFetchedCommitSha(); + + /** + * + * + *
+   * Output only. The SHA of the commit deduced from GitReference.
+   * 
+ * + * string fetched_commit_sha = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for fetchedCommitSha. + */ + com.google.protobuf.ByteString getFetchedCommitShaBytes(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DisplayVariable.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DisplayVariable.java new file mode 100644 index 000000000000..5b3c87a2c643 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DisplayVariable.java @@ -0,0 +1,3411 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Additional display specific Template pertaining to a particular input
+ * variable.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.DisplayVariable} + */ +@com.google.protobuf.Generated +public final class DisplayVariable extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.DisplayVariable) + DisplayVariableOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DisplayVariable"); + } + + // Use DisplayVariable.newBuilder() to construct. + private DisplayVariable(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DisplayVariable() { + name_ = ""; + title_ = ""; + alternateDefaults_ = java.util.Collections.emptyList(); + regexValidation_ = ""; + validation_ = ""; + enumValueLabels_ = java.util.Collections.emptyList(); + subtext_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_DisplayVariable_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 11: + return internalGetProperties(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_DisplayVariable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.DisplayVariable.class, + com.google.cloud.designcenter.v1.DisplayVariable.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The variable name from the corresponding standard Template file.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 variable name from the corresponding standard Template file.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 TITLE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object title_ = ""; + + /** + * + * + *
+   * Required. Visible title for the variable on the UI.
+   * 
+ * + * string title = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The title. + */ + @java.lang.Override + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Visible title for the variable on the UI.
+   * 
+ * + * string title = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for title. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ALTERNATE_DEFAULTS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List alternateDefaults_; + + /** + * + * + *
+   * Optional. Alternate defaults for the input.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.AlternateDefaultInput alternate_defaults = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getAlternateDefaultsList() { + return alternateDefaults_; + } + + /** + * + * + *
+   * Optional. Alternate defaults for the input.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.AlternateDefaultInput alternate_defaults = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getAlternateDefaultsOrBuilderList() { + return alternateDefaults_; + } + + /** + * + * + *
+   * Optional. Alternate defaults for the input.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.AlternateDefaultInput alternate_defaults = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getAlternateDefaultsCount() { + return alternateDefaults_.size(); + } + + /** + * + * + *
+   * Optional. Alternate defaults for the input.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.AlternateDefaultInput alternate_defaults = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.AlternateDefaultInput getAlternateDefaults(int index) { + return alternateDefaults_.get(index); + } + + /** + * + * + *
+   * Optional. Alternate defaults for the input.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.AlternateDefaultInput alternate_defaults = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.AlternateDefaultInputOrBuilder + getAlternateDefaultsOrBuilder(int index) { + return alternateDefaults_.get(index); + } + + public static final int REGEX_VALIDATION_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object regexValidation_ = ""; + + /** + * + * + *
+   * Optional. Regex based validation rules for the variable.
+   * 
+ * + * string regex_validation = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The regexValidation. + */ + @java.lang.Override + public java.lang.String getRegexValidation() { + java.lang.Object ref = regexValidation_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + regexValidation_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Regex based validation rules for the variable.
+   * 
+ * + * string regex_validation = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for regexValidation. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegexValidationBytes() { + java.lang.Object ref = regexValidation_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + regexValidation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MIN_FIELD_NUMBER = 5; + private float min_ = 0F; + + /** + * + * + *
+   * Optional. Minimum value for numeric types.
+   * 
+ * + * optional float min = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the min field is set. + */ + @java.lang.Override + public boolean hasMin() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. Minimum value for numeric types.
+   * 
+ * + * optional float min = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The min. + */ + @java.lang.Override + public float getMin() { + return min_; + } + + public static final int MAX_FIELD_NUMBER = 6; + private float max_ = 0F; + + /** + * + * + *
+   * Optional. Maximum value for numeric types.
+   * 
+ * + * optional float max = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the max field is set. + */ + @java.lang.Override + public boolean hasMax() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. Maximum value for numeric types.
+   * 
+ * + * optional float max = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The max. + */ + @java.lang.Override + public float getMax() { + return max_; + } + + public static final int VALIDATION_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object validation_ = ""; + + /** + * + * + *
+   * Optional. Text describing the validation rules for the property. Typically
+   * shown after an invalid input. Optional. UTF-8 text. No markup. At most 128
+   * characters.
+   * 
+ * + * string validation = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validation. + */ + @java.lang.Override + public java.lang.String getValidation() { + java.lang.Object ref = validation_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + validation_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Text describing the validation rules for the property. Typically
+   * shown after an invalid input. Optional. UTF-8 text. No markup. At most 128
+   * characters.
+   * 
+ * + * string validation = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for validation. + */ + @java.lang.Override + public com.google.protobuf.ByteString getValidationBytes() { + java.lang.Object ref = validation_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + validation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENUM_VALUE_LABELS_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private java.util.List enumValueLabels_; + + /** + * + * + *
+   * Optional. Labels for enum values.
+   * Values must be UTF-8 text with no markup, and at most 64 characters.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ValueLabelInput enum_value_labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getEnumValueLabelsList() { + return enumValueLabels_; + } + + /** + * + * + *
+   * Optional. Labels for enum values.
+   * Values must be UTF-8 text with no markup, and at most 64 characters.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ValueLabelInput enum_value_labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getEnumValueLabelsOrBuilderList() { + return enumValueLabels_; + } + + /** + * + * + *
+   * Optional. Labels for enum values.
+   * Values must be UTF-8 text with no markup, and at most 64 characters.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ValueLabelInput enum_value_labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getEnumValueLabelsCount() { + return enumValueLabels_.size(); + } + + /** + * + * + *
+   * Optional. Labels for enum values.
+   * Values must be UTF-8 text with no markup, and at most 64 characters.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ValueLabelInput enum_value_labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ValueLabelInput getEnumValueLabels(int index) { + return enumValueLabels_.get(index); + } + + /** + * + * + *
+   * Optional. Labels for enum values.
+   * Values must be UTF-8 text with no markup, and at most 64 characters.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ValueLabelInput enum_value_labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ValueLabelInputOrBuilder getEnumValueLabelsOrBuilder( + int index) { + return enumValueLabels_.get(index); + } + + public static final int LEVEL_FIELD_NUMBER = 9; + private int level_ = 0; + + /** + * + * + *
+   * Optional. Indicates the "advanced" level of the input property. Level 0
+   * (default) will always be shown. Level 1 corresponds to one expansion (user
+   * clicks "show advanced options" or "more options"). Higher levels correspond
+   * to further expansions, or they may be collapsed to level 1 by the UI
+   * implementation.
+   * Optional.
+   * 
+ * + * int32 level = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The level. + */ + @java.lang.Override + public int getLevel() { + return level_; + } + + public static final int SUBTEXT_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private volatile java.lang.Object subtext_ = ""; + + /** + * + * + *
+   * Optional. Property subtext, displayed below the title.
+   * 
+ * + * string subtext = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The subtext. + */ + @java.lang.Override + public java.lang.String getSubtext() { + java.lang.Object ref = subtext_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subtext_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Property subtext, displayed below the title.
+   * 
+ * + * string subtext = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for subtext. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSubtextBytes() { + java.lang.Object ref = subtext_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + subtext_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROPERTIES_FIELD_NUMBER = 11; + + private static final class PropertiesDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.designcenter.v1.DisplayVariable> + defaultEntry = + com.google.protobuf.MapEntry + . + newDefaultInstance( + com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_DisplayVariable_PropertiesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.designcenter.v1.DisplayVariable.getDefaultInstance()); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.designcenter.v1.DisplayVariable> + properties_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.designcenter.v1.DisplayVariable> + internalGetProperties() { + if (properties_ == null) { + return com.google.protobuf.MapField.emptyMapField(PropertiesDefaultEntryHolder.defaultEntry); + } + return properties_; + } + + public int getPropertiesCount() { + return internalGetProperties().getMap().size(); + } + + /** + * + * + *
+   * Optional. properties is a map defining all the fields of the input
+   * variable.
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.DisplayVariable> properties = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsProperties(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetProperties().getMap().containsKey(key); + } + + /** Use {@link #getPropertiesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getProperties() { + return getPropertiesMap(); + } + + /** + * + * + *
+   * Optional. properties is a map defining all the fields of the input
+   * variable.
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.DisplayVariable> properties = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map + getPropertiesMap() { + return internalGetProperties().getMap(); + } + + /** + * + * + *
+   * Optional. properties is a map defining all the fields of the input
+   * variable.
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.DisplayVariable> properties = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.designcenter.v1.DisplayVariable getPropertiesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.designcenter.v1.DisplayVariable defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetProperties().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+   * Optional. properties is a map defining all the fields of the input
+   * variable.
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.DisplayVariable> properties = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.DisplayVariable getPropertiesOrThrow( + java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetProperties().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, title_); + } + for (int i = 0; i < alternateDefaults_.size(); i++) { + output.writeMessage(3, alternateDefaults_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(regexValidation_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, regexValidation_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeFloat(5, min_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeFloat(6, max_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(validation_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, validation_); + } + for (int i = 0; i < enumValueLabels_.size(); i++) { + output.writeMessage(8, enumValueLabels_.get(i)); + } + if (level_ != 0) { + output.writeInt32(9, level_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(subtext_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 10, subtext_); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetProperties(), PropertiesDefaultEntryHolder.defaultEntry, 11); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, title_); + } + for (int i = 0; i < alternateDefaults_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, alternateDefaults_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(regexValidation_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, regexValidation_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, min_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(6, max_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(validation_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, validation_); + } + for (int i = 0; i < enumValueLabels_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, enumValueLabels_.get(i)); + } + if (level_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, level_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(subtext_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(10, subtext_); + } + for (java.util.Map.Entry + entry : internalGetProperties().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.designcenter.v1.DisplayVariable> + properties__ = + PropertiesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, properties__); + } + 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.designcenter.v1.DisplayVariable)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.DisplayVariable other = + (com.google.cloud.designcenter.v1.DisplayVariable) obj; + + if (!getName().equals(other.getName())) return false; + if (!getTitle().equals(other.getTitle())) return false; + if (!getAlternateDefaultsList().equals(other.getAlternateDefaultsList())) return false; + if (!getRegexValidation().equals(other.getRegexValidation())) return false; + if (hasMin() != other.hasMin()) return false; + if (hasMin()) { + if (java.lang.Float.floatToIntBits(getMin()) + != java.lang.Float.floatToIntBits(other.getMin())) return false; + } + if (hasMax() != other.hasMax()) return false; + if (hasMax()) { + if (java.lang.Float.floatToIntBits(getMax()) + != java.lang.Float.floatToIntBits(other.getMax())) return false; + } + if (!getValidation().equals(other.getValidation())) return false; + if (!getEnumValueLabelsList().equals(other.getEnumValueLabelsList())) return false; + if (getLevel() != other.getLevel()) return false; + if (!getSubtext().equals(other.getSubtext())) return false; + if (!internalGetProperties().equals(other.internalGetProperties())) 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) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + if (getAlternateDefaultsCount() > 0) { + hash = (37 * hash) + ALTERNATE_DEFAULTS_FIELD_NUMBER; + hash = (53 * hash) + getAlternateDefaultsList().hashCode(); + } + hash = (37 * hash) + REGEX_VALIDATION_FIELD_NUMBER; + hash = (53 * hash) + getRegexValidation().hashCode(); + if (hasMin()) { + hash = (37 * hash) + MIN_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getMin()); + } + if (hasMax()) { + hash = (37 * hash) + MAX_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getMax()); + } + hash = (37 * hash) + VALIDATION_FIELD_NUMBER; + hash = (53 * hash) + getValidation().hashCode(); + if (getEnumValueLabelsCount() > 0) { + hash = (37 * hash) + ENUM_VALUE_LABELS_FIELD_NUMBER; + hash = (53 * hash) + getEnumValueLabelsList().hashCode(); + } + hash = (37 * hash) + LEVEL_FIELD_NUMBER; + hash = (53 * hash) + getLevel(); + hash = (37 * hash) + SUBTEXT_FIELD_NUMBER; + hash = (53 * hash) + getSubtext().hashCode(); + if (!internalGetProperties().getMap().isEmpty()) { + hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; + hash = (53 * hash) + internalGetProperties().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.DisplayVariable parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DisplayVariable 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.designcenter.v1.DisplayVariable parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DisplayVariable parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DisplayVariable parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DisplayVariable parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DisplayVariable parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DisplayVariable parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DisplayVariable parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DisplayVariable parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DisplayVariable parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DisplayVariable parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.DisplayVariable 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Additional display specific Template pertaining to a particular input
+   * variable.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.DisplayVariable} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.DisplayVariable) + com.google.cloud.designcenter.v1.DisplayVariableOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_DisplayVariable_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 11: + return internalGetProperties(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 11: + return internalGetMutableProperties(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_DisplayVariable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.DisplayVariable.class, + com.google.cloud.designcenter.v1.DisplayVariable.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.DisplayVariable.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + title_ = ""; + if (alternateDefaultsBuilder_ == null) { + alternateDefaults_ = java.util.Collections.emptyList(); + } else { + alternateDefaults_ = null; + alternateDefaultsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + regexValidation_ = ""; + min_ = 0F; + max_ = 0F; + validation_ = ""; + if (enumValueLabelsBuilder_ == null) { + enumValueLabels_ = java.util.Collections.emptyList(); + } else { + enumValueLabels_ = null; + enumValueLabelsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000080); + level_ = 0; + subtext_ = ""; + internalGetMutableProperties().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_DisplayVariable_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DisplayVariable getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.DisplayVariable.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DisplayVariable build() { + com.google.cloud.designcenter.v1.DisplayVariable result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DisplayVariable buildPartial() { + com.google.cloud.designcenter.v1.DisplayVariable result = + new com.google.cloud.designcenter.v1.DisplayVariable(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.designcenter.v1.DisplayVariable result) { + if (alternateDefaultsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + alternateDefaults_ = java.util.Collections.unmodifiableList(alternateDefaults_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.alternateDefaults_ = alternateDefaults_; + } else { + result.alternateDefaults_ = alternateDefaultsBuilder_.build(); + } + if (enumValueLabelsBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0)) { + enumValueLabels_ = java.util.Collections.unmodifiableList(enumValueLabels_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.enumValueLabels_ = enumValueLabels_; + } else { + result.enumValueLabels_ = enumValueLabelsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.designcenter.v1.DisplayVariable result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.title_ = title_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.regexValidation_ = regexValidation_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.min_ = min_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.max_ = max_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.validation_ = validation_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.level_ = level_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.subtext_ = subtext_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.properties_ = + internalGetProperties().build(PropertiesDefaultEntryHolder.defaultEntry); + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.DisplayVariable) { + return mergeFrom((com.google.cloud.designcenter.v1.DisplayVariable) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.DisplayVariable other) { + if (other == com.google.cloud.designcenter.v1.DisplayVariable.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getTitle().isEmpty()) { + title_ = other.title_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (alternateDefaultsBuilder_ == null) { + if (!other.alternateDefaults_.isEmpty()) { + if (alternateDefaults_.isEmpty()) { + alternateDefaults_ = other.alternateDefaults_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureAlternateDefaultsIsMutable(); + alternateDefaults_.addAll(other.alternateDefaults_); + } + onChanged(); + } + } else { + if (!other.alternateDefaults_.isEmpty()) { + if (alternateDefaultsBuilder_.isEmpty()) { + alternateDefaultsBuilder_.dispose(); + alternateDefaultsBuilder_ = null; + alternateDefaults_ = other.alternateDefaults_; + bitField0_ = (bitField0_ & ~0x00000004); + alternateDefaultsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAlternateDefaultsFieldBuilder() + : null; + } else { + alternateDefaultsBuilder_.addAllMessages(other.alternateDefaults_); + } + } + } + if (!other.getRegexValidation().isEmpty()) { + regexValidation_ = other.regexValidation_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasMin()) { + setMin(other.getMin()); + } + if (other.hasMax()) { + setMax(other.getMax()); + } + if (!other.getValidation().isEmpty()) { + validation_ = other.validation_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (enumValueLabelsBuilder_ == null) { + if (!other.enumValueLabels_.isEmpty()) { + if (enumValueLabels_.isEmpty()) { + enumValueLabels_ = other.enumValueLabels_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureEnumValueLabelsIsMutable(); + enumValueLabels_.addAll(other.enumValueLabels_); + } + onChanged(); + } + } else { + if (!other.enumValueLabels_.isEmpty()) { + if (enumValueLabelsBuilder_.isEmpty()) { + enumValueLabelsBuilder_.dispose(); + enumValueLabelsBuilder_ = null; + enumValueLabels_ = other.enumValueLabels_; + bitField0_ = (bitField0_ & ~0x00000080); + enumValueLabelsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetEnumValueLabelsFieldBuilder() + : null; + } else { + enumValueLabelsBuilder_.addAllMessages(other.enumValueLabels_); + } + } + } + if (other.getLevel() != 0) { + setLevel(other.getLevel()); + } + if (!other.getSubtext().isEmpty()) { + subtext_ = other.subtext_; + bitField0_ |= 0x00000200; + onChanged(); + } + internalGetMutableProperties().mergeFrom(other.internalGetProperties()); + bitField0_ |= 0x00000400; + 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: + { + title_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + com.google.cloud.designcenter.v1.AlternateDefaultInput m = + input.readMessage( + com.google.cloud.designcenter.v1.AlternateDefaultInput.parser(), + extensionRegistry); + if (alternateDefaultsBuilder_ == null) { + ensureAlternateDefaultsIsMutable(); + alternateDefaults_.add(m); + } else { + alternateDefaultsBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: + { + regexValidation_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 45: + { + min_ = input.readFloat(); + bitField0_ |= 0x00000010; + break; + } // case 45 + case 53: + { + max_ = input.readFloat(); + bitField0_ |= 0x00000020; + break; + } // case 53 + case 58: + { + validation_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + com.google.cloud.designcenter.v1.ValueLabelInput m = + input.readMessage( + com.google.cloud.designcenter.v1.ValueLabelInput.parser(), + extensionRegistry); + if (enumValueLabelsBuilder_ == null) { + ensureEnumValueLabelsIsMutable(); + enumValueLabels_.add(m); + } else { + enumValueLabelsBuilder_.addMessage(m); + } + break; + } // case 66 + case 72: + { + level_ = input.readInt32(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 82: + { + subtext_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 90: + { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.designcenter.v1.DisplayVariable> + properties__ = + input.readMessage( + PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableProperties() + .ensureBuilderMap() + .put(properties__.getKey(), properties__.getValue()); + bitField0_ |= 0x00000400; + break; + } // case 90 + default: + { + 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 variable name from the corresponding standard Template file.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The variable name from the corresponding standard Template file.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 variable name from the corresponding standard Template file.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The variable name from the corresponding standard Template file.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The variable name from the corresponding standard Template file.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object title_ = ""; + + /** + * + * + *
+     * Required. Visible title for the variable on the UI.
+     * 
+ * + * string title = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The title. + */ + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Visible title for the variable on the UI.
+     * 
+ * + * string title = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for title. + */ + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Visible title for the variable on the UI.
+     * 
+ * + * string title = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The title to set. + * @return This builder for chaining. + */ + public Builder setTitle(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + title_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Visible title for the variable on the UI.
+     * 
+ * + * string title = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearTitle() { + title_ = getDefaultInstance().getTitle(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Visible title for the variable on the UI.
+     * 
+ * + * string title = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for title to set. + * @return This builder for chaining. + */ + public Builder setTitleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + title_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.util.List + alternateDefaults_ = java.util.Collections.emptyList(); + + private void ensureAlternateDefaultsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + alternateDefaults_ = + new java.util.ArrayList( + alternateDefaults_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.AlternateDefaultInput, + com.google.cloud.designcenter.v1.AlternateDefaultInput.Builder, + com.google.cloud.designcenter.v1.AlternateDefaultInputOrBuilder> + alternateDefaultsBuilder_; + + /** + * + * + *
+     * Optional. Alternate defaults for the input.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.AlternateDefaultInput alternate_defaults = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getAlternateDefaultsList() { + if (alternateDefaultsBuilder_ == null) { + return java.util.Collections.unmodifiableList(alternateDefaults_); + } else { + return alternateDefaultsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. Alternate defaults for the input.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.AlternateDefaultInput alternate_defaults = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getAlternateDefaultsCount() { + if (alternateDefaultsBuilder_ == null) { + return alternateDefaults_.size(); + } else { + return alternateDefaultsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. Alternate defaults for the input.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.AlternateDefaultInput alternate_defaults = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.AlternateDefaultInput getAlternateDefaults(int index) { + if (alternateDefaultsBuilder_ == null) { + return alternateDefaults_.get(index); + } else { + return alternateDefaultsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. Alternate defaults for the input.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.AlternateDefaultInput alternate_defaults = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAlternateDefaults( + int index, com.google.cloud.designcenter.v1.AlternateDefaultInput value) { + if (alternateDefaultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAlternateDefaultsIsMutable(); + alternateDefaults_.set(index, value); + onChanged(); + } else { + alternateDefaultsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Alternate defaults for the input.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.AlternateDefaultInput alternate_defaults = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAlternateDefaults( + int index, com.google.cloud.designcenter.v1.AlternateDefaultInput.Builder builderForValue) { + if (alternateDefaultsBuilder_ == null) { + ensureAlternateDefaultsIsMutable(); + alternateDefaults_.set(index, builderForValue.build()); + onChanged(); + } else { + alternateDefaultsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Alternate defaults for the input.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.AlternateDefaultInput alternate_defaults = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAlternateDefaults( + com.google.cloud.designcenter.v1.AlternateDefaultInput value) { + if (alternateDefaultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAlternateDefaultsIsMutable(); + alternateDefaults_.add(value); + onChanged(); + } else { + alternateDefaultsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. Alternate defaults for the input.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.AlternateDefaultInput alternate_defaults = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAlternateDefaults( + int index, com.google.cloud.designcenter.v1.AlternateDefaultInput value) { + if (alternateDefaultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAlternateDefaultsIsMutable(); + alternateDefaults_.add(index, value); + onChanged(); + } else { + alternateDefaultsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Alternate defaults for the input.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.AlternateDefaultInput alternate_defaults = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAlternateDefaults( + com.google.cloud.designcenter.v1.AlternateDefaultInput.Builder builderForValue) { + if (alternateDefaultsBuilder_ == null) { + ensureAlternateDefaultsIsMutable(); + alternateDefaults_.add(builderForValue.build()); + onChanged(); + } else { + alternateDefaultsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Alternate defaults for the input.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.AlternateDefaultInput alternate_defaults = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAlternateDefaults( + int index, com.google.cloud.designcenter.v1.AlternateDefaultInput.Builder builderForValue) { + if (alternateDefaultsBuilder_ == null) { + ensureAlternateDefaultsIsMutable(); + alternateDefaults_.add(index, builderForValue.build()); + onChanged(); + } else { + alternateDefaultsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Alternate defaults for the input.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.AlternateDefaultInput alternate_defaults = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllAlternateDefaults( + java.lang.Iterable + values) { + if (alternateDefaultsBuilder_ == null) { + ensureAlternateDefaultsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, alternateDefaults_); + onChanged(); + } else { + alternateDefaultsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. Alternate defaults for the input.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.AlternateDefaultInput alternate_defaults = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAlternateDefaults() { + if (alternateDefaultsBuilder_ == null) { + alternateDefaults_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + alternateDefaultsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Alternate defaults for the input.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.AlternateDefaultInput alternate_defaults = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeAlternateDefaults(int index) { + if (alternateDefaultsBuilder_ == null) { + ensureAlternateDefaultsIsMutable(); + alternateDefaults_.remove(index); + onChanged(); + } else { + alternateDefaultsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. Alternate defaults for the input.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.AlternateDefaultInput alternate_defaults = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.AlternateDefaultInput.Builder + getAlternateDefaultsBuilder(int index) { + return internalGetAlternateDefaultsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. Alternate defaults for the input.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.AlternateDefaultInput alternate_defaults = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.AlternateDefaultInputOrBuilder + getAlternateDefaultsOrBuilder(int index) { + if (alternateDefaultsBuilder_ == null) { + return alternateDefaults_.get(index); + } else { + return alternateDefaultsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. Alternate defaults for the input.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.AlternateDefaultInput alternate_defaults = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getAlternateDefaultsOrBuilderList() { + if (alternateDefaultsBuilder_ != null) { + return alternateDefaultsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(alternateDefaults_); + } + } + + /** + * + * + *
+     * Optional. Alternate defaults for the input.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.AlternateDefaultInput alternate_defaults = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.AlternateDefaultInput.Builder + addAlternateDefaultsBuilder() { + return internalGetAlternateDefaultsFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.AlternateDefaultInput.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Alternate defaults for the input.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.AlternateDefaultInput alternate_defaults = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.AlternateDefaultInput.Builder + addAlternateDefaultsBuilder(int index) { + return internalGetAlternateDefaultsFieldBuilder() + .addBuilder( + index, com.google.cloud.designcenter.v1.AlternateDefaultInput.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Alternate defaults for the input.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.AlternateDefaultInput alternate_defaults = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getAlternateDefaultsBuilderList() { + return internalGetAlternateDefaultsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.AlternateDefaultInput, + com.google.cloud.designcenter.v1.AlternateDefaultInput.Builder, + com.google.cloud.designcenter.v1.AlternateDefaultInputOrBuilder> + internalGetAlternateDefaultsFieldBuilder() { + if (alternateDefaultsBuilder_ == null) { + alternateDefaultsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.AlternateDefaultInput, + com.google.cloud.designcenter.v1.AlternateDefaultInput.Builder, + com.google.cloud.designcenter.v1.AlternateDefaultInputOrBuilder>( + alternateDefaults_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + alternateDefaults_ = null; + } + return alternateDefaultsBuilder_; + } + + private java.lang.Object regexValidation_ = ""; + + /** + * + * + *
+     * Optional. Regex based validation rules for the variable.
+     * 
+ * + * string regex_validation = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The regexValidation. + */ + public java.lang.String getRegexValidation() { + java.lang.Object ref = regexValidation_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + regexValidation_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Regex based validation rules for the variable.
+     * 
+ * + * string regex_validation = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for regexValidation. + */ + public com.google.protobuf.ByteString getRegexValidationBytes() { + java.lang.Object ref = regexValidation_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + regexValidation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Regex based validation rules for the variable.
+     * 
+ * + * string regex_validation = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The regexValidation to set. + * @return This builder for chaining. + */ + public Builder setRegexValidation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + regexValidation_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Regex based validation rules for the variable.
+     * 
+ * + * string regex_validation = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRegexValidation() { + regexValidation_ = getDefaultInstance().getRegexValidation(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Regex based validation rules for the variable.
+     * 
+ * + * string regex_validation = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for regexValidation to set. + * @return This builder for chaining. + */ + public Builder setRegexValidationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + regexValidation_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private float min_; + + /** + * + * + *
+     * Optional. Minimum value for numeric types.
+     * 
+ * + * optional float min = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the min field is set. + */ + @java.lang.Override + public boolean hasMin() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Optional. Minimum value for numeric types.
+     * 
+ * + * optional float min = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The min. + */ + @java.lang.Override + public float getMin() { + return min_; + } + + /** + * + * + *
+     * Optional. Minimum value for numeric types.
+     * 
+ * + * optional float min = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The min to set. + * @return This builder for chaining. + */ + public Builder setMin(float value) { + + min_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Minimum value for numeric types.
+     * 
+ * + * optional float min = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMin() { + bitField0_ = (bitField0_ & ~0x00000010); + min_ = 0F; + onChanged(); + return this; + } + + private float max_; + + /** + * + * + *
+     * Optional. Maximum value for numeric types.
+     * 
+ * + * optional float max = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the max field is set. + */ + @java.lang.Override + public boolean hasMax() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+     * Optional. Maximum value for numeric types.
+     * 
+ * + * optional float max = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The max. + */ + @java.lang.Override + public float getMax() { + return max_; + } + + /** + * + * + *
+     * Optional. Maximum value for numeric types.
+     * 
+ * + * optional float max = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The max to set. + * @return This builder for chaining. + */ + public Builder setMax(float value) { + + max_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Maximum value for numeric types.
+     * 
+ * + * optional float max = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMax() { + bitField0_ = (bitField0_ & ~0x00000020); + max_ = 0F; + onChanged(); + return this; + } + + private java.lang.Object validation_ = ""; + + /** + * + * + *
+     * Optional. Text describing the validation rules for the property. Typically
+     * shown after an invalid input. Optional. UTF-8 text. No markup. At most 128
+     * characters.
+     * 
+ * + * string validation = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validation. + */ + public java.lang.String getValidation() { + java.lang.Object ref = validation_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + validation_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Text describing the validation rules for the property. Typically
+     * shown after an invalid input. Optional. UTF-8 text. No markup. At most 128
+     * characters.
+     * 
+ * + * string validation = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for validation. + */ + public com.google.protobuf.ByteString getValidationBytes() { + java.lang.Object ref = validation_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + validation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Text describing the validation rules for the property. Typically
+     * shown after an invalid input. Optional. UTF-8 text. No markup. At most 128
+     * characters.
+     * 
+ * + * string validation = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The validation to set. + * @return This builder for chaining. + */ + public Builder setValidation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + validation_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Text describing the validation rules for the property. Typically
+     * shown after an invalid input. Optional. UTF-8 text. No markup. At most 128
+     * characters.
+     * 
+ * + * string validation = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearValidation() { + validation_ = getDefaultInstance().getValidation(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Text describing the validation rules for the property. Typically
+     * shown after an invalid input. Optional. UTF-8 text. No markup. At most 128
+     * characters.
+     * 
+ * + * string validation = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for validation to set. + * @return This builder for chaining. + */ + public Builder setValidationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + validation_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private java.util.List enumValueLabels_ = + java.util.Collections.emptyList(); + + private void ensureEnumValueLabelsIsMutable() { + if (!((bitField0_ & 0x00000080) != 0)) { + enumValueLabels_ = + new java.util.ArrayList( + enumValueLabels_); + bitField0_ |= 0x00000080; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ValueLabelInput, + com.google.cloud.designcenter.v1.ValueLabelInput.Builder, + com.google.cloud.designcenter.v1.ValueLabelInputOrBuilder> + enumValueLabelsBuilder_; + + /** + * + * + *
+     * Optional. Labels for enum values.
+     * Values must be UTF-8 text with no markup, and at most 64 characters.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ValueLabelInput enum_value_labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getEnumValueLabelsList() { + if (enumValueLabelsBuilder_ == null) { + return java.util.Collections.unmodifiableList(enumValueLabels_); + } else { + return enumValueLabelsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. Labels for enum values.
+     * Values must be UTF-8 text with no markup, and at most 64 characters.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ValueLabelInput enum_value_labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getEnumValueLabelsCount() { + if (enumValueLabelsBuilder_ == null) { + return enumValueLabels_.size(); + } else { + return enumValueLabelsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. Labels for enum values.
+     * Values must be UTF-8 text with no markup, and at most 64 characters.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ValueLabelInput enum_value_labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ValueLabelInput getEnumValueLabels(int index) { + if (enumValueLabelsBuilder_ == null) { + return enumValueLabels_.get(index); + } else { + return enumValueLabelsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. Labels for enum values.
+     * Values must be UTF-8 text with no markup, and at most 64 characters.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ValueLabelInput enum_value_labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEnumValueLabels( + int index, com.google.cloud.designcenter.v1.ValueLabelInput value) { + if (enumValueLabelsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnumValueLabelsIsMutable(); + enumValueLabels_.set(index, value); + onChanged(); + } else { + enumValueLabelsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Labels for enum values.
+     * Values must be UTF-8 text with no markup, and at most 64 characters.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ValueLabelInput enum_value_labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEnumValueLabels( + int index, com.google.cloud.designcenter.v1.ValueLabelInput.Builder builderForValue) { + if (enumValueLabelsBuilder_ == null) { + ensureEnumValueLabelsIsMutable(); + enumValueLabels_.set(index, builderForValue.build()); + onChanged(); + } else { + enumValueLabelsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Labels for enum values.
+     * Values must be UTF-8 text with no markup, and at most 64 characters.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ValueLabelInput enum_value_labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addEnumValueLabels(com.google.cloud.designcenter.v1.ValueLabelInput value) { + if (enumValueLabelsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnumValueLabelsIsMutable(); + enumValueLabels_.add(value); + onChanged(); + } else { + enumValueLabelsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. Labels for enum values.
+     * Values must be UTF-8 text with no markup, and at most 64 characters.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ValueLabelInput enum_value_labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addEnumValueLabels( + int index, com.google.cloud.designcenter.v1.ValueLabelInput value) { + if (enumValueLabelsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnumValueLabelsIsMutable(); + enumValueLabels_.add(index, value); + onChanged(); + } else { + enumValueLabelsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Labels for enum values.
+     * Values must be UTF-8 text with no markup, and at most 64 characters.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ValueLabelInput enum_value_labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addEnumValueLabels( + com.google.cloud.designcenter.v1.ValueLabelInput.Builder builderForValue) { + if (enumValueLabelsBuilder_ == null) { + ensureEnumValueLabelsIsMutable(); + enumValueLabels_.add(builderForValue.build()); + onChanged(); + } else { + enumValueLabelsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Labels for enum values.
+     * Values must be UTF-8 text with no markup, and at most 64 characters.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ValueLabelInput enum_value_labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addEnumValueLabels( + int index, com.google.cloud.designcenter.v1.ValueLabelInput.Builder builderForValue) { + if (enumValueLabelsBuilder_ == null) { + ensureEnumValueLabelsIsMutable(); + enumValueLabels_.add(index, builderForValue.build()); + onChanged(); + } else { + enumValueLabelsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Labels for enum values.
+     * Values must be UTF-8 text with no markup, and at most 64 characters.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ValueLabelInput enum_value_labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllEnumValueLabels( + java.lang.Iterable values) { + if (enumValueLabelsBuilder_ == null) { + ensureEnumValueLabelsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, enumValueLabels_); + onChanged(); + } else { + enumValueLabelsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. Labels for enum values.
+     * Values must be UTF-8 text with no markup, and at most 64 characters.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ValueLabelInput enum_value_labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearEnumValueLabels() { + if (enumValueLabelsBuilder_ == null) { + enumValueLabels_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + } else { + enumValueLabelsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Labels for enum values.
+     * Values must be UTF-8 text with no markup, and at most 64 characters.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ValueLabelInput enum_value_labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeEnumValueLabels(int index) { + if (enumValueLabelsBuilder_ == null) { + ensureEnumValueLabelsIsMutable(); + enumValueLabels_.remove(index); + onChanged(); + } else { + enumValueLabelsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. Labels for enum values.
+     * Values must be UTF-8 text with no markup, and at most 64 characters.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ValueLabelInput enum_value_labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ValueLabelInput.Builder getEnumValueLabelsBuilder( + int index) { + return internalGetEnumValueLabelsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. Labels for enum values.
+     * Values must be UTF-8 text with no markup, and at most 64 characters.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ValueLabelInput enum_value_labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ValueLabelInputOrBuilder getEnumValueLabelsOrBuilder( + int index) { + if (enumValueLabelsBuilder_ == null) { + return enumValueLabels_.get(index); + } else { + return enumValueLabelsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. Labels for enum values.
+     * Values must be UTF-8 text with no markup, and at most 64 characters.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ValueLabelInput enum_value_labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getEnumValueLabelsOrBuilderList() { + if (enumValueLabelsBuilder_ != null) { + return enumValueLabelsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(enumValueLabels_); + } + } + + /** + * + * + *
+     * Optional. Labels for enum values.
+     * Values must be UTF-8 text with no markup, and at most 64 characters.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ValueLabelInput enum_value_labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ValueLabelInput.Builder addEnumValueLabelsBuilder() { + return internalGetEnumValueLabelsFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.ValueLabelInput.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Labels for enum values.
+     * Values must be UTF-8 text with no markup, and at most 64 characters.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ValueLabelInput enum_value_labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ValueLabelInput.Builder addEnumValueLabelsBuilder( + int index) { + return internalGetEnumValueLabelsFieldBuilder() + .addBuilder(index, com.google.cloud.designcenter.v1.ValueLabelInput.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Labels for enum values.
+     * Values must be UTF-8 text with no markup, and at most 64 characters.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ValueLabelInput enum_value_labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getEnumValueLabelsBuilderList() { + return internalGetEnumValueLabelsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ValueLabelInput, + com.google.cloud.designcenter.v1.ValueLabelInput.Builder, + com.google.cloud.designcenter.v1.ValueLabelInputOrBuilder> + internalGetEnumValueLabelsFieldBuilder() { + if (enumValueLabelsBuilder_ == null) { + enumValueLabelsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ValueLabelInput, + com.google.cloud.designcenter.v1.ValueLabelInput.Builder, + com.google.cloud.designcenter.v1.ValueLabelInputOrBuilder>( + enumValueLabels_, + ((bitField0_ & 0x00000080) != 0), + getParentForChildren(), + isClean()); + enumValueLabels_ = null; + } + return enumValueLabelsBuilder_; + } + + private int level_; + + /** + * + * + *
+     * Optional. Indicates the "advanced" level of the input property. Level 0
+     * (default) will always be shown. Level 1 corresponds to one expansion (user
+     * clicks "show advanced options" or "more options"). Higher levels correspond
+     * to further expansions, or they may be collapsed to level 1 by the UI
+     * implementation.
+     * Optional.
+     * 
+ * + * int32 level = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The level. + */ + @java.lang.Override + public int getLevel() { + return level_; + } + + /** + * + * + *
+     * Optional. Indicates the "advanced" level of the input property. Level 0
+     * (default) will always be shown. Level 1 corresponds to one expansion (user
+     * clicks "show advanced options" or "more options"). Higher levels correspond
+     * to further expansions, or they may be collapsed to level 1 by the UI
+     * implementation.
+     * Optional.
+     * 
+ * + * int32 level = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The level to set. + * @return This builder for chaining. + */ + public Builder setLevel(int value) { + + level_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Indicates the "advanced" level of the input property. Level 0
+     * (default) will always be shown. Level 1 corresponds to one expansion (user
+     * clicks "show advanced options" or "more options"). Higher levels correspond
+     * to further expansions, or they may be collapsed to level 1 by the UI
+     * implementation.
+     * Optional.
+     * 
+ * + * int32 level = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearLevel() { + bitField0_ = (bitField0_ & ~0x00000100); + level_ = 0; + onChanged(); + return this; + } + + private java.lang.Object subtext_ = ""; + + /** + * + * + *
+     * Optional. Property subtext, displayed below the title.
+     * 
+ * + * string subtext = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The subtext. + */ + public java.lang.String getSubtext() { + java.lang.Object ref = subtext_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subtext_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Property subtext, displayed below the title.
+     * 
+ * + * string subtext = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for subtext. + */ + public com.google.protobuf.ByteString getSubtextBytes() { + java.lang.Object ref = subtext_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + subtext_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Property subtext, displayed below the title.
+     * 
+ * + * string subtext = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The subtext to set. + * @return This builder for chaining. + */ + public Builder setSubtext(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + subtext_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Property subtext, displayed below the title.
+     * 
+ * + * string subtext = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSubtext() { + subtext_ = getDefaultInstance().getSubtext(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Property subtext, displayed below the title.
+     * 
+ * + * string subtext = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for subtext to set. + * @return This builder for chaining. + */ + public Builder setSubtextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + subtext_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + private static final class PropertiesConverter + implements com.google.protobuf.MapFieldBuilder.Converter< + java.lang.String, + com.google.cloud.designcenter.v1.DisplayVariableOrBuilder, + com.google.cloud.designcenter.v1.DisplayVariable> { + @java.lang.Override + public com.google.cloud.designcenter.v1.DisplayVariable build( + com.google.cloud.designcenter.v1.DisplayVariableOrBuilder val) { + if (val instanceof com.google.cloud.designcenter.v1.DisplayVariable) { + return (com.google.cloud.designcenter.v1.DisplayVariable) val; + } + return ((com.google.cloud.designcenter.v1.DisplayVariable.Builder) val).build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.designcenter.v1.DisplayVariable> + defaultEntry() { + return PropertiesDefaultEntryHolder.defaultEntry; + } + } + ; + + private static final PropertiesConverter propertiesConverter = new PropertiesConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.designcenter.v1.DisplayVariableOrBuilder, + com.google.cloud.designcenter.v1.DisplayVariable, + com.google.cloud.designcenter.v1.DisplayVariable.Builder> + properties_; + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.designcenter.v1.DisplayVariableOrBuilder, + com.google.cloud.designcenter.v1.DisplayVariable, + com.google.cloud.designcenter.v1.DisplayVariable.Builder> + internalGetProperties() { + if (properties_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(propertiesConverter); + } + return properties_; + } + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.designcenter.v1.DisplayVariableOrBuilder, + com.google.cloud.designcenter.v1.DisplayVariable, + com.google.cloud.designcenter.v1.DisplayVariable.Builder> + internalGetMutableProperties() { + if (properties_ == null) { + properties_ = new com.google.protobuf.MapFieldBuilder<>(propertiesConverter); + } + bitField0_ |= 0x00000400; + onChanged(); + return properties_; + } + + public int getPropertiesCount() { + return internalGetProperties().ensureBuilderMap().size(); + } + + /** + * + * + *
+     * Optional. properties is a map defining all the fields of the input
+     * variable.
+     * 
+ * + * + * map<string, .google.cloud.designcenter.v1.DisplayVariable> properties = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsProperties(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetProperties().ensureBuilderMap().containsKey(key); + } + + /** Use {@link #getPropertiesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getProperties() { + return getPropertiesMap(); + } + + /** + * + * + *
+     * Optional. properties is a map defining all the fields of the input
+     * variable.
+     * 
+ * + * + * map<string, .google.cloud.designcenter.v1.DisplayVariable> properties = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map + getPropertiesMap() { + return internalGetProperties().getImmutableMap(); + } + + /** + * + * + *
+     * Optional. properties is a map defining all the fields of the input
+     * variable.
+     * 
+ * + * + * map<string, .google.cloud.designcenter.v1.DisplayVariable> properties = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.designcenter.v1.DisplayVariable getPropertiesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.designcenter.v1.DisplayVariable defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetMutableProperties().ensureBuilderMap(); + return map.containsKey(key) ? propertiesConverter.build(map.get(key)) : defaultValue; + } + + /** + * + * + *
+     * Optional. properties is a map defining all the fields of the input
+     * variable.
+     * 
+ * + * + * map<string, .google.cloud.designcenter.v1.DisplayVariable> properties = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.DisplayVariable getPropertiesOrThrow( + java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetMutableProperties().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return propertiesConverter.build(map.get(key)); + } + + public Builder clearProperties() { + bitField0_ = (bitField0_ & ~0x00000400); + internalGetMutableProperties().clear(); + return this; + } + + /** + * + * + *
+     * Optional. properties is a map defining all the fields of the input
+     * variable.
+     * 
+ * + * + * map<string, .google.cloud.designcenter.v1.DisplayVariable> properties = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeProperties(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableProperties().ensureBuilderMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map + getMutableProperties() { + bitField0_ |= 0x00000400; + return internalGetMutableProperties().ensureMessageMap(); + } + + /** + * + * + *
+     * Optional. properties is a map defining all the fields of the input
+     * variable.
+     * 
+ * + * + * map<string, .google.cloud.designcenter.v1.DisplayVariable> properties = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putProperties( + java.lang.String key, com.google.cloud.designcenter.v1.DisplayVariable value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableProperties().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00000400; + return this; + } + + /** + * + * + *
+     * Optional. properties is a map defining all the fields of the input
+     * variable.
+     * 
+ * + * + * map<string, .google.cloud.designcenter.v1.DisplayVariable> properties = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllProperties( + java.util.Map values) { + for (java.util.Map.Entry + e : values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableProperties().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00000400; + return this; + } + + /** + * + * + *
+     * Optional. properties is a map defining all the fields of the input
+     * variable.
+     * 
+ * + * + * map<string, .google.cloud.designcenter.v1.DisplayVariable> properties = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.DisplayVariable.Builder putPropertiesBuilderIfAbsent( + java.lang.String key) { + java.util.Map + builderMap = internalGetMutableProperties().ensureBuilderMap(); + com.google.cloud.designcenter.v1.DisplayVariableOrBuilder entry = builderMap.get(key); + if (entry == null) { + entry = com.google.cloud.designcenter.v1.DisplayVariable.newBuilder(); + builderMap.put(key, entry); + } + if (entry instanceof com.google.cloud.designcenter.v1.DisplayVariable) { + entry = ((com.google.cloud.designcenter.v1.DisplayVariable) entry).toBuilder(); + builderMap.put(key, entry); + } + return (com.google.cloud.designcenter.v1.DisplayVariable.Builder) entry; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.DisplayVariable) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.DisplayVariable) + private static final com.google.cloud.designcenter.v1.DisplayVariable DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.DisplayVariable(); + } + + public static com.google.cloud.designcenter.v1.DisplayVariable getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DisplayVariable parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.DisplayVariable getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DisplayVariableAlternateType.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DisplayVariableAlternateType.java new file mode 100644 index 000000000000..4a1b8584ed52 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DisplayVariableAlternateType.java @@ -0,0 +1,197 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/enums.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Alternate default value type.
+ * Allows you to define an alternative value for predefined use cases, such as
+ * security. If specified, this value can be used instead of the default value
+ * in BlueprintVariable.
+ * 
+ * + * Protobuf enum {@code google.cloud.designcenter.v1.DisplayVariableAlternateType} + */ +@com.google.protobuf.Generated +public enum DisplayVariableAlternateType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Default
+   * 
+ * + * DISPLAY_VARIABLE_ALTERNATE_TYPE_UNSPECIFIED = 0; + */ + DISPLAY_VARIABLE_ALTERNATE_TYPE_UNSPECIFIED(0), + /** + * + * + *
+   * A more secure default.
+   * 
+ * + * DISPLAY_VARIABLE_ALTERNATE_TYPE_SECURITY = 1; + */ + DISPLAY_VARIABLE_ALTERNATE_TYPE_SECURITY(1), + /** + * + * + *
+   * A default specifically needed for Application Design center.
+   * 
+ * + * DISPLAY_VARIABLE_ALTERNATE_TYPE_DC = 2; + */ + DISPLAY_VARIABLE_ALTERNATE_TYPE_DC(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DisplayVariableAlternateType"); + } + + /** + * + * + *
+   * Default
+   * 
+ * + * DISPLAY_VARIABLE_ALTERNATE_TYPE_UNSPECIFIED = 0; + */ + public static final int DISPLAY_VARIABLE_ALTERNATE_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+   * A more secure default.
+   * 
+ * + * DISPLAY_VARIABLE_ALTERNATE_TYPE_SECURITY = 1; + */ + public static final int DISPLAY_VARIABLE_ALTERNATE_TYPE_SECURITY_VALUE = 1; + + /** + * + * + *
+   * A default specifically needed for Application Design center.
+   * 
+ * + * DISPLAY_VARIABLE_ALTERNATE_TYPE_DC = 2; + */ + public static final int DISPLAY_VARIABLE_ALTERNATE_TYPE_DC_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 DisplayVariableAlternateType 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 DisplayVariableAlternateType forNumber(int value) { + switch (value) { + case 0: + return DISPLAY_VARIABLE_ALTERNATE_TYPE_UNSPECIFIED; + case 1: + return DISPLAY_VARIABLE_ALTERNATE_TYPE_SECURITY; + case 2: + return DISPLAY_VARIABLE_ALTERNATE_TYPE_DC; + 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 DisplayVariableAlternateType findValueByNumber(int number) { + return DisplayVariableAlternateType.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.designcenter.v1.EnumsProto.getDescriptor().getEnumTypes().get(5); + } + + private static final DisplayVariableAlternateType[] VALUES = values(); + + public static DisplayVariableAlternateType 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 DisplayVariableAlternateType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.designcenter.v1.DisplayVariableAlternateType) +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DisplayVariableOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DisplayVariableOrBuilder.java new file mode 100644 index 000000000000..9d9d2e9c8bd3 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DisplayVariableOrBuilder.java @@ -0,0 +1,449 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface DisplayVariableOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.DisplayVariable) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The variable name from the corresponding standard Template file.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The variable name from the corresponding standard Template file.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. Visible title for the variable on the UI.
+   * 
+ * + * string title = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The title. + */ + java.lang.String getTitle(); + + /** + * + * + *
+   * Required. Visible title for the variable on the UI.
+   * 
+ * + * string title = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for title. + */ + com.google.protobuf.ByteString getTitleBytes(); + + /** + * + * + *
+   * Optional. Alternate defaults for the input.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.AlternateDefaultInput alternate_defaults = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getAlternateDefaultsList(); + + /** + * + * + *
+   * Optional. Alternate defaults for the input.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.AlternateDefaultInput alternate_defaults = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.AlternateDefaultInput getAlternateDefaults(int index); + + /** + * + * + *
+   * Optional. Alternate defaults for the input.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.AlternateDefaultInput alternate_defaults = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getAlternateDefaultsCount(); + + /** + * + * + *
+   * Optional. Alternate defaults for the input.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.AlternateDefaultInput alternate_defaults = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getAlternateDefaultsOrBuilderList(); + + /** + * + * + *
+   * Optional. Alternate defaults for the input.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.AlternateDefaultInput alternate_defaults = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.AlternateDefaultInputOrBuilder getAlternateDefaultsOrBuilder( + int index); + + /** + * + * + *
+   * Optional. Regex based validation rules for the variable.
+   * 
+ * + * string regex_validation = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The regexValidation. + */ + java.lang.String getRegexValidation(); + + /** + * + * + *
+   * Optional. Regex based validation rules for the variable.
+   * 
+ * + * string regex_validation = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for regexValidation. + */ + com.google.protobuf.ByteString getRegexValidationBytes(); + + /** + * + * + *
+   * Optional. Minimum value for numeric types.
+   * 
+ * + * optional float min = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the min field is set. + */ + boolean hasMin(); + + /** + * + * + *
+   * Optional. Minimum value for numeric types.
+   * 
+ * + * optional float min = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The min. + */ + float getMin(); + + /** + * + * + *
+   * Optional. Maximum value for numeric types.
+   * 
+ * + * optional float max = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the max field is set. + */ + boolean hasMax(); + + /** + * + * + *
+   * Optional. Maximum value for numeric types.
+   * 
+ * + * optional float max = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The max. + */ + float getMax(); + + /** + * + * + *
+   * Optional. Text describing the validation rules for the property. Typically
+   * shown after an invalid input. Optional. UTF-8 text. No markup. At most 128
+   * characters.
+   * 
+ * + * string validation = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validation. + */ + java.lang.String getValidation(); + + /** + * + * + *
+   * Optional. Text describing the validation rules for the property. Typically
+   * shown after an invalid input. Optional. UTF-8 text. No markup. At most 128
+   * characters.
+   * 
+ * + * string validation = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for validation. + */ + com.google.protobuf.ByteString getValidationBytes(); + + /** + * + * + *
+   * Optional. Labels for enum values.
+   * Values must be UTF-8 text with no markup, and at most 64 characters.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ValueLabelInput enum_value_labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getEnumValueLabelsList(); + + /** + * + * + *
+   * Optional. Labels for enum values.
+   * Values must be UTF-8 text with no markup, and at most 64 characters.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ValueLabelInput enum_value_labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.ValueLabelInput getEnumValueLabels(int index); + + /** + * + * + *
+   * Optional. Labels for enum values.
+   * Values must be UTF-8 text with no markup, and at most 64 characters.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ValueLabelInput enum_value_labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getEnumValueLabelsCount(); + + /** + * + * + *
+   * Optional. Labels for enum values.
+   * Values must be UTF-8 text with no markup, and at most 64 characters.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ValueLabelInput enum_value_labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getEnumValueLabelsOrBuilderList(); + + /** + * + * + *
+   * Optional. Labels for enum values.
+   * Values must be UTF-8 text with no markup, and at most 64 characters.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ValueLabelInput enum_value_labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.ValueLabelInputOrBuilder getEnumValueLabelsOrBuilder(int index); + + /** + * + * + *
+   * Optional. Indicates the "advanced" level of the input property. Level 0
+   * (default) will always be shown. Level 1 corresponds to one expansion (user
+   * clicks "show advanced options" or "more options"). Higher levels correspond
+   * to further expansions, or they may be collapsed to level 1 by the UI
+   * implementation.
+   * Optional.
+   * 
+ * + * int32 level = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The level. + */ + int getLevel(); + + /** + * + * + *
+   * Optional. Property subtext, displayed below the title.
+   * 
+ * + * string subtext = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The subtext. + */ + java.lang.String getSubtext(); + + /** + * + * + *
+   * Optional. Property subtext, displayed below the title.
+   * 
+ * + * string subtext = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for subtext. + */ + com.google.protobuf.ByteString getSubtextBytes(); + + /** + * + * + *
+   * Optional. properties is a map defining all the fields of the input
+   * variable.
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.DisplayVariable> properties = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getPropertiesCount(); + + /** + * + * + *
+   * Optional. properties is a map defining all the fields of the input
+   * variable.
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.DisplayVariable> properties = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsProperties(java.lang.String key); + + /** Use {@link #getPropertiesMap()} instead. */ + @java.lang.Deprecated + java.util.Map getProperties(); + + /** + * + * + *
+   * Optional. properties is a map defining all the fields of the input
+   * variable.
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.DisplayVariable> properties = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map + getPropertiesMap(); + + /** + * + * + *
+   * Optional. properties is a map defining all the fields of the input
+   * variable.
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.DisplayVariable> properties = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + com.google.cloud.designcenter.v1.DisplayVariable getPropertiesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.designcenter.v1.DisplayVariable defaultValue); + + /** + * + * + *
+   * Optional. properties is a map defining all the fields of the input
+   * variable.
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.DisplayVariable> properties = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.DisplayVariable getPropertiesOrThrow(java.lang.String key); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DisplayVariableToggle.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DisplayVariableToggle.java new file mode 100644 index 000000000000..a874c0dae040 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DisplayVariableToggle.java @@ -0,0 +1,1304 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Display variable toggle.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.DisplayVariableToggle} + */ +@com.google.protobuf.Generated +public final class DisplayVariableToggle extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.DisplayVariableToggle) + DisplayVariableToggleOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DisplayVariableToggle"); + } + + // Use DisplayVariableToggle.newBuilder() to construct. + private DisplayVariableToggle(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DisplayVariableToggle() { + variable_ = ""; + variableValues_ = com.google.protobuf.LazyStringArrayList.emptyList(); + variableType_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_DisplayVariableToggle_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_DisplayVariableToggle_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.DisplayVariableToggle.class, + com.google.cloud.designcenter.v1.DisplayVariableToggle.Builder.class); + } + + /** + * + * + *
+   * Toogle variable type enum.
+   * 
+ * + * Protobuf enum {@code google.cloud.designcenter.v1.DisplayVariableToggle.ToggleVariableType} + */ + public enum ToggleVariableType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default
+     * 
+ * + * TOGGLE_VARIABLE_TYPE_UNSPECIFIED = 0; + */ + TOGGLE_VARIABLE_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Boolean
+     * 
+ * + * TOGGLE_VARIABLE_TYPE_BOOLEAN = 1; + */ + TOGGLE_VARIABLE_TYPE_BOOLEAN(1), + /** + * + * + *
+     * String
+     * 
+ * + * TOGGLE_VARIABLE_TYPE_STRING = 2; + */ + TOGGLE_VARIABLE_TYPE_STRING(2), + /** + * + * + *
+     * Integer
+     * 
+ * + * TOGGLE_VARIABLE_TYPE_INTEGER = 3; + */ + TOGGLE_VARIABLE_TYPE_INTEGER(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ToggleVariableType"); + } + + /** + * + * + *
+     * Default
+     * 
+ * + * TOGGLE_VARIABLE_TYPE_UNSPECIFIED = 0; + */ + public static final int TOGGLE_VARIABLE_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Boolean
+     * 
+ * + * TOGGLE_VARIABLE_TYPE_BOOLEAN = 1; + */ + public static final int TOGGLE_VARIABLE_TYPE_BOOLEAN_VALUE = 1; + + /** + * + * + *
+     * String
+     * 
+ * + * TOGGLE_VARIABLE_TYPE_STRING = 2; + */ + public static final int TOGGLE_VARIABLE_TYPE_STRING_VALUE = 2; + + /** + * + * + *
+     * Integer
+     * 
+ * + * TOGGLE_VARIABLE_TYPE_INTEGER = 3; + */ + public static final int TOGGLE_VARIABLE_TYPE_INTEGER_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 ToggleVariableType 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 ToggleVariableType forNumber(int value) { + switch (value) { + case 0: + return TOGGLE_VARIABLE_TYPE_UNSPECIFIED; + case 1: + return TOGGLE_VARIABLE_TYPE_BOOLEAN; + case 2: + return TOGGLE_VARIABLE_TYPE_STRING; + case 3: + return TOGGLE_VARIABLE_TYPE_INTEGER; + 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 ToggleVariableType findValueByNumber(int number) { + return ToggleVariableType.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DisplayVariableToggle.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final ToggleVariableType[] VALUES = values(); + + public static ToggleVariableType 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 ToggleVariableType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.designcenter.v1.DisplayVariableToggle.ToggleVariableType) + } + + public static final int VARIABLE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object variable_ = ""; + + /** + * + * + *
+   * Output only. The name of the variable used to toggle the display of another
+   * variable.
+   * 
+ * + * string variable = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The variable. + */ + @java.lang.Override + public java.lang.String getVariable() { + java.lang.Object ref = variable_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + variable_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The name of the variable used to toggle the display of another
+   * variable.
+   * 
+ * + * string variable = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for variable. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVariableBytes() { + java.lang.Object ref = variable_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + variable_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VARIABLE_VALUES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList variableValues_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Output only. The value of the variable used to toggle the display of
+   * another variable.
+   * 
+ * + * repeated string variable_values = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the variableValues. + */ + public com.google.protobuf.ProtocolStringList getVariableValuesList() { + return variableValues_; + } + + /** + * + * + *
+   * Output only. The value of the variable used to toggle the display of
+   * another variable.
+   * 
+ * + * repeated string variable_values = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of variableValues. + */ + public int getVariableValuesCount() { + return variableValues_.size(); + } + + /** + * + * + *
+   * Output only. The value of the variable used to toggle the display of
+   * another variable.
+   * 
+ * + * repeated string variable_values = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The variableValues at the given index. + */ + public java.lang.String getVariableValues(int index) { + return variableValues_.get(index); + } + + /** + * + * + *
+   * Output only. The value of the variable used to toggle the display of
+   * another variable.
+   * 
+ * + * repeated string variable_values = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the variableValues at the given index. + */ + public com.google.protobuf.ByteString getVariableValuesBytes(int index) { + return variableValues_.getByteString(index); + } + + public static final int VARIABLE_TYPE_FIELD_NUMBER = 3; + private int variableType_ = 0; + + /** + * + * + *
+   * Output only. The type of the variable used to toggle the display of another
+   * variable.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DisplayVariableToggle.ToggleVariableType variable_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for variableType. + */ + @java.lang.Override + public int getVariableTypeValue() { + return variableType_; + } + + /** + * + * + *
+   * Output only. The type of the variable used to toggle the display of another
+   * variable.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DisplayVariableToggle.ToggleVariableType variable_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The variableType. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.DisplayVariableToggle.ToggleVariableType + getVariableType() { + com.google.cloud.designcenter.v1.DisplayVariableToggle.ToggleVariableType result = + com.google.cloud.designcenter.v1.DisplayVariableToggle.ToggleVariableType.forNumber( + variableType_); + return result == null + ? com.google.cloud.designcenter.v1.DisplayVariableToggle.ToggleVariableType.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.GeneratedMessage.isStringEmpty(variable_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, variable_); + } + for (int i = 0; i < variableValues_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, variableValues_.getRaw(i)); + } + if (variableType_ + != com.google.cloud.designcenter.v1.DisplayVariableToggle.ToggleVariableType + .TOGGLE_VARIABLE_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, variableType_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(variable_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, variable_); + } + { + int dataSize = 0; + for (int i = 0; i < variableValues_.size(); i++) { + dataSize += computeStringSizeNoTag(variableValues_.getRaw(i)); + } + size += dataSize; + size += 1 * getVariableValuesList().size(); + } + if (variableType_ + != com.google.cloud.designcenter.v1.DisplayVariableToggle.ToggleVariableType + .TOGGLE_VARIABLE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, variableType_); + } + 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.designcenter.v1.DisplayVariableToggle)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.DisplayVariableToggle other = + (com.google.cloud.designcenter.v1.DisplayVariableToggle) obj; + + if (!getVariable().equals(other.getVariable())) return false; + if (!getVariableValuesList().equals(other.getVariableValuesList())) return false; + if (variableType_ != other.variableType_) 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) + VARIABLE_FIELD_NUMBER; + hash = (53 * hash) + getVariable().hashCode(); + if (getVariableValuesCount() > 0) { + hash = (37 * hash) + VARIABLE_VALUES_FIELD_NUMBER; + hash = (53 * hash) + getVariableValuesList().hashCode(); + } + hash = (37 * hash) + VARIABLE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + variableType_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.DisplayVariableToggle parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DisplayVariableToggle 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.designcenter.v1.DisplayVariableToggle parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DisplayVariableToggle parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DisplayVariableToggle parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DisplayVariableToggle parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DisplayVariableToggle parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DisplayVariableToggle parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DisplayVariableToggle parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DisplayVariableToggle parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DisplayVariableToggle parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DisplayVariableToggle parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.DisplayVariableToggle 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Display variable toggle.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.DisplayVariableToggle} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.DisplayVariableToggle) + com.google.cloud.designcenter.v1.DisplayVariableToggleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_DisplayVariableToggle_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_DisplayVariableToggle_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.DisplayVariableToggle.class, + com.google.cloud.designcenter.v1.DisplayVariableToggle.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.DisplayVariableToggle.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + variable_ = ""; + variableValues_ = com.google.protobuf.LazyStringArrayList.emptyList(); + variableType_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_DisplayVariableToggle_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DisplayVariableToggle getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.DisplayVariableToggle.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DisplayVariableToggle build() { + com.google.cloud.designcenter.v1.DisplayVariableToggle result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DisplayVariableToggle buildPartial() { + com.google.cloud.designcenter.v1.DisplayVariableToggle result = + new com.google.cloud.designcenter.v1.DisplayVariableToggle(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.DisplayVariableToggle result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.variable_ = variable_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + variableValues_.makeImmutable(); + result.variableValues_ = variableValues_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.variableType_ = variableType_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.DisplayVariableToggle) { + return mergeFrom((com.google.cloud.designcenter.v1.DisplayVariableToggle) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.DisplayVariableToggle other) { + if (other == com.google.cloud.designcenter.v1.DisplayVariableToggle.getDefaultInstance()) + return this; + if (!other.getVariable().isEmpty()) { + variable_ = other.variable_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.variableValues_.isEmpty()) { + if (variableValues_.isEmpty()) { + variableValues_ = other.variableValues_; + bitField0_ |= 0x00000002; + } else { + ensureVariableValuesIsMutable(); + variableValues_.addAll(other.variableValues_); + } + onChanged(); + } + if (other.variableType_ != 0) { + setVariableTypeValue(other.getVariableTypeValue()); + } + 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: + { + variable_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureVariableValuesIsMutable(); + variableValues_.add(s); + break; + } // case 18 + case 24: + { + variableType_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + 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 variable_ = ""; + + /** + * + * + *
+     * Output only. The name of the variable used to toggle the display of another
+     * variable.
+     * 
+ * + * string variable = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The variable. + */ + public java.lang.String getVariable() { + java.lang.Object ref = variable_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + variable_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The name of the variable used to toggle the display of another
+     * variable.
+     * 
+ * + * string variable = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for variable. + */ + public com.google.protobuf.ByteString getVariableBytes() { + java.lang.Object ref = variable_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + variable_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The name of the variable used to toggle the display of another
+     * variable.
+     * 
+ * + * string variable = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The variable to set. + * @return This builder for chaining. + */ + public Builder setVariable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + variable_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The name of the variable used to toggle the display of another
+     * variable.
+     * 
+ * + * string variable = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearVariable() { + variable_ = getDefaultInstance().getVariable(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The name of the variable used to toggle the display of another
+     * variable.
+     * 
+ * + * string variable = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for variable to set. + * @return This builder for chaining. + */ + public Builder setVariableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + variable_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList variableValues_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureVariableValuesIsMutable() { + if (!variableValues_.isModifiable()) { + variableValues_ = new com.google.protobuf.LazyStringArrayList(variableValues_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
+     * Output only. The value of the variable used to toggle the display of
+     * another variable.
+     * 
+ * + * repeated string variable_values = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the variableValues. + */ + public com.google.protobuf.ProtocolStringList getVariableValuesList() { + variableValues_.makeImmutable(); + return variableValues_; + } + + /** + * + * + *
+     * Output only. The value of the variable used to toggle the display of
+     * another variable.
+     * 
+ * + * repeated string variable_values = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of variableValues. + */ + public int getVariableValuesCount() { + return variableValues_.size(); + } + + /** + * + * + *
+     * Output only. The value of the variable used to toggle the display of
+     * another variable.
+     * 
+ * + * repeated string variable_values = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The variableValues at the given index. + */ + public java.lang.String getVariableValues(int index) { + return variableValues_.get(index); + } + + /** + * + * + *
+     * Output only. The value of the variable used to toggle the display of
+     * another variable.
+     * 
+ * + * repeated string variable_values = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the variableValues at the given index. + */ + public com.google.protobuf.ByteString getVariableValuesBytes(int index) { + return variableValues_.getByteString(index); + } + + /** + * + * + *
+     * Output only. The value of the variable used to toggle the display of
+     * another variable.
+     * 
+ * + * repeated string variable_values = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index to set the value at. + * @param value The variableValues to set. + * @return This builder for chaining. + */ + public Builder setVariableValues(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureVariableValuesIsMutable(); + variableValues_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The value of the variable used to toggle the display of
+     * another variable.
+     * 
+ * + * repeated string variable_values = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The variableValues to add. + * @return This builder for chaining. + */ + public Builder addVariableValues(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureVariableValuesIsMutable(); + variableValues_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The value of the variable used to toggle the display of
+     * another variable.
+     * 
+ * + * repeated string variable_values = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param values The variableValues to add. + * @return This builder for chaining. + */ + public Builder addAllVariableValues(java.lang.Iterable values) { + ensureVariableValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, variableValues_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The value of the variable used to toggle the display of
+     * another variable.
+     * 
+ * + * repeated string variable_values = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearVariableValues() { + variableValues_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The value of the variable used to toggle the display of
+     * another variable.
+     * 
+ * + * repeated string variable_values = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes of the variableValues to add. + * @return This builder for chaining. + */ + public Builder addVariableValuesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureVariableValuesIsMutable(); + variableValues_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int variableType_ = 0; + + /** + * + * + *
+     * Output only. The type of the variable used to toggle the display of another
+     * variable.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DisplayVariableToggle.ToggleVariableType variable_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for variableType. + */ + @java.lang.Override + public int getVariableTypeValue() { + return variableType_; + } + + /** + * + * + *
+     * Output only. The type of the variable used to toggle the display of another
+     * variable.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DisplayVariableToggle.ToggleVariableType variable_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for variableType to set. + * @return This builder for chaining. + */ + public Builder setVariableTypeValue(int value) { + variableType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The type of the variable used to toggle the display of another
+     * variable.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DisplayVariableToggle.ToggleVariableType variable_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The variableType. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.DisplayVariableToggle.ToggleVariableType + getVariableType() { + com.google.cloud.designcenter.v1.DisplayVariableToggle.ToggleVariableType result = + com.google.cloud.designcenter.v1.DisplayVariableToggle.ToggleVariableType.forNumber( + variableType_); + return result == null + ? com.google.cloud.designcenter.v1.DisplayVariableToggle.ToggleVariableType.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Output only. The type of the variable used to toggle the display of another
+     * variable.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DisplayVariableToggle.ToggleVariableType variable_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The variableType to set. + * @return This builder for chaining. + */ + public Builder setVariableType( + com.google.cloud.designcenter.v1.DisplayVariableToggle.ToggleVariableType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + variableType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The type of the variable used to toggle the display of another
+     * variable.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DisplayVariableToggle.ToggleVariableType variable_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearVariableType() { + bitField0_ = (bitField0_ & ~0x00000004); + variableType_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.DisplayVariableToggle) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.DisplayVariableToggle) + private static final com.google.cloud.designcenter.v1.DisplayVariableToggle DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.DisplayVariableToggle(); + } + + public static com.google.cloud.designcenter.v1.DisplayVariableToggle getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DisplayVariableToggle parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.DisplayVariableToggle getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DisplayVariableToggleOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DisplayVariableToggleOrBuilder.java new file mode 100644 index 000000000000..4ccf03b6f258 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DisplayVariableToggleOrBuilder.java @@ -0,0 +1,146 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface DisplayVariableToggleOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.DisplayVariableToggle) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The name of the variable used to toggle the display of another
+   * variable.
+   * 
+ * + * string variable = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The variable. + */ + java.lang.String getVariable(); + + /** + * + * + *
+   * Output only. The name of the variable used to toggle the display of another
+   * variable.
+   * 
+ * + * string variable = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for variable. + */ + com.google.protobuf.ByteString getVariableBytes(); + + /** + * + * + *
+   * Output only. The value of the variable used to toggle the display of
+   * another variable.
+   * 
+ * + * repeated string variable_values = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the variableValues. + */ + java.util.List getVariableValuesList(); + + /** + * + * + *
+   * Output only. The value of the variable used to toggle the display of
+   * another variable.
+   * 
+ * + * repeated string variable_values = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of variableValues. + */ + int getVariableValuesCount(); + + /** + * + * + *
+   * Output only. The value of the variable used to toggle the display of
+   * another variable.
+   * 
+ * + * repeated string variable_values = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The variableValues at the given index. + */ + java.lang.String getVariableValues(int index); + + /** + * + * + *
+   * Output only. The value of the variable used to toggle the display of
+   * another variable.
+   * 
+ * + * repeated string variable_values = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the variableValues at the given index. + */ + com.google.protobuf.ByteString getVariableValuesBytes(int index); + + /** + * + * + *
+   * Output only. The type of the variable used to toggle the display of another
+   * variable.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DisplayVariableToggle.ToggleVariableType variable_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for variableType. + */ + int getVariableTypeValue(); + + /** + * + * + *
+   * Output only. The type of the variable used to toggle the display of another
+   * variable.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DisplayVariableToggle.ToggleVariableType variable_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The variableType. + */ + com.google.cloud.designcenter.v1.DisplayVariableToggle.ToggleVariableType getVariableType(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DisplayVariableVisibility.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DisplayVariableVisibility.java new file mode 100644 index 000000000000..96bceb22b037 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DisplayVariableVisibility.java @@ -0,0 +1,171 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/enums.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Visibility defines how the output is exposed.
+ * 
+ * + * Protobuf enum {@code google.cloud.designcenter.v1.DisplayVariableVisibility} + */ +@com.google.protobuf.Generated +public enum DisplayVariableVisibility implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Default
+   * 
+ * + * DISPLAY_VARIABLE_VISIBILITY_UNSPECIFIED = 0; + */ + DISPLAY_VARIABLE_VISIBILITY_UNSPECIFIED(0), + /** + * + * + *
+   * Expose output as root module output.
+   * 
+ * + * DISPLAY_VARIABLE_VISIBILITY_ROOT = 1; + */ + DISPLAY_VARIABLE_VISIBILITY_ROOT(1), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DisplayVariableVisibility"); + } + + /** + * + * + *
+   * Default
+   * 
+ * + * DISPLAY_VARIABLE_VISIBILITY_UNSPECIFIED = 0; + */ + public static final int DISPLAY_VARIABLE_VISIBILITY_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+   * Expose output as root module output.
+   * 
+ * + * DISPLAY_VARIABLE_VISIBILITY_ROOT = 1; + */ + public static final int DISPLAY_VARIABLE_VISIBILITY_ROOT_VALUE = 1; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DisplayVariableVisibility 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 DisplayVariableVisibility forNumber(int value) { + switch (value) { + case 0: + return DISPLAY_VARIABLE_VISIBILITY_UNSPECIFIED; + case 1: + return DISPLAY_VARIABLE_VISIBILITY_ROOT; + 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 DisplayVariableVisibility findValueByNumber(int number) { + return DisplayVariableVisibility.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.designcenter.v1.EnumsProto.getDescriptor().getEnumTypes().get(6); + } + + private static final DisplayVariableVisibility[] VALUES = values(); + + public static DisplayVariableVisibility 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 DisplayVariableVisibility(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.designcenter.v1.DisplayVariableVisibility) +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/Domain.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/Domain.java new file mode 100644 index 000000000000..a509778bed4b --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/Domain.java @@ -0,0 +1,1635 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/assessment.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Domain for assessment.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.Domain} + */ +@com.google.protobuf.Generated +public final class Domain extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.Domain) + DomainOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "Domain"); + } + + // Use Domain.newBuilder() to construct. + private Domain(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Domain() { + domainName_ = ""; + displayName_ = ""; + description_ = ""; + frameworks_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_Domain_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_Domain_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.Domain.class, + com.google.cloud.designcenter.v1.Domain.Builder.class); + } + + public static final int DOMAIN_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object domainName_ = ""; + + /** + * + * + *
+   * Required. The domain name. Uniquely identifies the domain.
+   * 
+ * + * string domain_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The domainName. + */ + @java.lang.Override + public java.lang.String getDomainName() { + java.lang.Object ref = domainName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domainName_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The domain name. Uniquely identifies the domain.
+   * 
+ * + * string domain_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for domainName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDomainNameBytes() { + java.lang.Object ref = domainName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + domainName_ = 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_ = ""; + + /** + * + * + *
+   * Optional. The domain display name is user friendly name used for UI.
+   * 
+ * + * string display_name = 2 [(.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. The domain display name is user friendly name used for UI.
+   * 
+ * + * string display_name = 2 [(.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 DESCRIPTION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
+   * Optional. The domain description.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The domain description.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FRAMEWORKS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private java.util.List frameworks_; + + /** + * + * + *
+   * Optional. The frameworks that are applicable in this domain.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Framework frameworks = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getFrameworksList() { + return frameworks_; + } + + /** + * + * + *
+   * Optional. The frameworks that are applicable in this domain.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Framework frameworks = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getFrameworksOrBuilderList() { + return frameworks_; + } + + /** + * + * + *
+   * Optional. The frameworks that are applicable in this domain.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Framework frameworks = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getFrameworksCount() { + return frameworks_.size(); + } + + /** + * + * + *
+   * Optional. The frameworks that are applicable in this domain.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Framework frameworks = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.Framework getFrameworks(int index) { + return frameworks_.get(index); + } + + /** + * + * + *
+   * Optional. The frameworks that are applicable in this domain.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Framework frameworks = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.FrameworkOrBuilder getFrameworksOrBuilder(int index) { + return frameworks_.get(index); + } + + public static final int INACTIVE_FIELD_NUMBER = 5; + private boolean inactive_ = false; + + /** + * + * + *
+   * Optional. Whether the domain is inactive.
+   * Default: false.
+   * 
+ * + * bool inactive = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The inactive. + */ + @java.lang.Override + public boolean getInactive() { + return inactive_; + } + + 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.GeneratedMessage.isStringEmpty(domainName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, domainName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, description_); + } + for (int i = 0; i < frameworks_.size(); i++) { + output.writeMessage(4, frameworks_.get(i)); + } + if (inactive_ != false) { + output.writeBool(5, inactive_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(domainName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, domainName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, description_); + } + for (int i = 0; i < frameworks_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, frameworks_.get(i)); + } + if (inactive_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, inactive_); + } + 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.designcenter.v1.Domain)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.Domain other = (com.google.cloud.designcenter.v1.Domain) obj; + + if (!getDomainName().equals(other.getDomainName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getFrameworksList().equals(other.getFrameworksList())) return false; + if (getInactive() != other.getInactive()) 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) + DOMAIN_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDomainName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (getFrameworksCount() > 0) { + hash = (37 * hash) + FRAMEWORKS_FIELD_NUMBER; + hash = (53 * hash) + getFrameworksList().hashCode(); + } + hash = (37 * hash) + INACTIVE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getInactive()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.Domain parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.Domain 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.designcenter.v1.Domain parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.Domain parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.Domain parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.Domain parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.Domain parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.Domain parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.Domain parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.Domain parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.Domain parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.Domain parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.Domain 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Domain for assessment.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.Domain} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.Domain) + com.google.cloud.designcenter.v1.DomainOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_Domain_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_Domain_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.Domain.class, + com.google.cloud.designcenter.v1.Domain.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.Domain.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + domainName_ = ""; + displayName_ = ""; + description_ = ""; + if (frameworksBuilder_ == null) { + frameworks_ = java.util.Collections.emptyList(); + } else { + frameworks_ = null; + frameworksBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + inactive_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_Domain_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.Domain getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.Domain.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.Domain build() { + com.google.cloud.designcenter.v1.Domain result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.Domain buildPartial() { + com.google.cloud.designcenter.v1.Domain result = + new com.google.cloud.designcenter.v1.Domain(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.designcenter.v1.Domain result) { + if (frameworksBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + frameworks_ = java.util.Collections.unmodifiableList(frameworks_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.frameworks_ = frameworks_; + } else { + result.frameworks_ = frameworksBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.designcenter.v1.Domain result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.domainName_ = domainName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.inactive_ = inactive_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.Domain) { + return mergeFrom((com.google.cloud.designcenter.v1.Domain) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.Domain other) { + if (other == com.google.cloud.designcenter.v1.Domain.getDefaultInstance()) return this; + if (!other.getDomainName().isEmpty()) { + domainName_ = other.domainName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (frameworksBuilder_ == null) { + if (!other.frameworks_.isEmpty()) { + if (frameworks_.isEmpty()) { + frameworks_ = other.frameworks_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureFrameworksIsMutable(); + frameworks_.addAll(other.frameworks_); + } + onChanged(); + } + } else { + if (!other.frameworks_.isEmpty()) { + if (frameworksBuilder_.isEmpty()) { + frameworksBuilder_.dispose(); + frameworksBuilder_ = null; + frameworks_ = other.frameworks_; + bitField0_ = (bitField0_ & ~0x00000008); + frameworksBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetFrameworksFieldBuilder() + : null; + } else { + frameworksBuilder_.addAllMessages(other.frameworks_); + } + } + } + if (other.getInactive() != false) { + setInactive(other.getInactive()); + } + 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: + { + domainName_ = 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 34: + { + com.google.cloud.designcenter.v1.Framework m = + input.readMessage( + com.google.cloud.designcenter.v1.Framework.parser(), extensionRegistry); + if (frameworksBuilder_ == null) { + ensureFrameworksIsMutable(); + frameworks_.add(m); + } else { + frameworksBuilder_.addMessage(m); + } + break; + } // case 34 + case 40: + { + inactive_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + default: + { + 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 domainName_ = ""; + + /** + * + * + *
+     * Required. The domain name. Uniquely identifies the domain.
+     * 
+ * + * string domain_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The domainName. + */ + public java.lang.String getDomainName() { + java.lang.Object ref = domainName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domainName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The domain name. Uniquely identifies the domain.
+     * 
+ * + * string domain_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for domainName. + */ + public com.google.protobuf.ByteString getDomainNameBytes() { + java.lang.Object ref = domainName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + domainName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The domain name. Uniquely identifies the domain.
+     * 
+ * + * string domain_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The domainName to set. + * @return This builder for chaining. + */ + public Builder setDomainName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + domainName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The domain name. Uniquely identifies the domain.
+     * 
+ * + * string domain_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDomainName() { + domainName_ = getDefaultInstance().getDomainName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The domain name. Uniquely identifies the domain.
+     * 
+ * + * string domain_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for domainName to set. + * @return This builder for chaining. + */ + public Builder setDomainNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + domainName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
+     * Optional. The domain display name is user friendly name used for UI.
+     * 
+ * + * string display_name = 2 [(.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. The domain display name is user friendly name used for UI.
+     * 
+ * + * string display_name = 2 [(.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. The domain display name is user friendly name used for UI.
+     * 
+ * + * string display_name = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The domain display name is user friendly name used for UI.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The domain display name is user friendly name used for UI.
+     * 
+ * + * string display_name = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
+     * Optional. The domain description.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The domain description.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The domain description.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The domain description.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The domain description.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.util.List frameworks_ = + java.util.Collections.emptyList(); + + private void ensureFrameworksIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + frameworks_ = + new java.util.ArrayList(frameworks_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Framework, + com.google.cloud.designcenter.v1.Framework.Builder, + com.google.cloud.designcenter.v1.FrameworkOrBuilder> + frameworksBuilder_; + + /** + * + * + *
+     * Optional. The frameworks that are applicable in this domain.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Framework frameworks = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getFrameworksList() { + if (frameworksBuilder_ == null) { + return java.util.Collections.unmodifiableList(frameworks_); + } else { + return frameworksBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. The frameworks that are applicable in this domain.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Framework frameworks = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getFrameworksCount() { + if (frameworksBuilder_ == null) { + return frameworks_.size(); + } else { + return frameworksBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. The frameworks that are applicable in this domain.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Framework frameworks = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Framework getFrameworks(int index) { + if (frameworksBuilder_ == null) { + return frameworks_.get(index); + } else { + return frameworksBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. The frameworks that are applicable in this domain.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Framework frameworks = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFrameworks(int index, com.google.cloud.designcenter.v1.Framework value) { + if (frameworksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFrameworksIsMutable(); + frameworks_.set(index, value); + onChanged(); + } else { + frameworksBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The frameworks that are applicable in this domain.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Framework frameworks = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFrameworks( + int index, com.google.cloud.designcenter.v1.Framework.Builder builderForValue) { + if (frameworksBuilder_ == null) { + ensureFrameworksIsMutable(); + frameworks_.set(index, builderForValue.build()); + onChanged(); + } else { + frameworksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The frameworks that are applicable in this domain.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Framework frameworks = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addFrameworks(com.google.cloud.designcenter.v1.Framework value) { + if (frameworksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFrameworksIsMutable(); + frameworks_.add(value); + onChanged(); + } else { + frameworksBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. The frameworks that are applicable in this domain.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Framework frameworks = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addFrameworks(int index, com.google.cloud.designcenter.v1.Framework value) { + if (frameworksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFrameworksIsMutable(); + frameworks_.add(index, value); + onChanged(); + } else { + frameworksBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The frameworks that are applicable in this domain.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Framework frameworks = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addFrameworks( + com.google.cloud.designcenter.v1.Framework.Builder builderForValue) { + if (frameworksBuilder_ == null) { + ensureFrameworksIsMutable(); + frameworks_.add(builderForValue.build()); + onChanged(); + } else { + frameworksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The frameworks that are applicable in this domain.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Framework frameworks = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addFrameworks( + int index, com.google.cloud.designcenter.v1.Framework.Builder builderForValue) { + if (frameworksBuilder_ == null) { + ensureFrameworksIsMutable(); + frameworks_.add(index, builderForValue.build()); + onChanged(); + } else { + frameworksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The frameworks that are applicable in this domain.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Framework frameworks = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllFrameworks( + java.lang.Iterable values) { + if (frameworksBuilder_ == null) { + ensureFrameworksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, frameworks_); + onChanged(); + } else { + frameworksBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. The frameworks that are applicable in this domain.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Framework frameworks = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearFrameworks() { + if (frameworksBuilder_ == null) { + frameworks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + frameworksBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. The frameworks that are applicable in this domain.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Framework frameworks = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeFrameworks(int index) { + if (frameworksBuilder_ == null) { + ensureFrameworksIsMutable(); + frameworks_.remove(index); + onChanged(); + } else { + frameworksBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. The frameworks that are applicable in this domain.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Framework frameworks = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Framework.Builder getFrameworksBuilder(int index) { + return internalGetFrameworksFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. The frameworks that are applicable in this domain.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Framework frameworks = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.FrameworkOrBuilder getFrameworksOrBuilder(int index) { + if (frameworksBuilder_ == null) { + return frameworks_.get(index); + } else { + return frameworksBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. The frameworks that are applicable in this domain.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Framework frameworks = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getFrameworksOrBuilderList() { + if (frameworksBuilder_ != null) { + return frameworksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(frameworks_); + } + } + + /** + * + * + *
+     * Optional. The frameworks that are applicable in this domain.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Framework frameworks = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Framework.Builder addFrameworksBuilder() { + return internalGetFrameworksFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.Framework.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The frameworks that are applicable in this domain.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Framework frameworks = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Framework.Builder addFrameworksBuilder(int index) { + return internalGetFrameworksFieldBuilder() + .addBuilder(index, com.google.cloud.designcenter.v1.Framework.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The frameworks that are applicable in this domain.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Framework frameworks = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getFrameworksBuilderList() { + return internalGetFrameworksFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Framework, + com.google.cloud.designcenter.v1.Framework.Builder, + com.google.cloud.designcenter.v1.FrameworkOrBuilder> + internalGetFrameworksFieldBuilder() { + if (frameworksBuilder_ == null) { + frameworksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Framework, + com.google.cloud.designcenter.v1.Framework.Builder, + com.google.cloud.designcenter.v1.FrameworkOrBuilder>( + frameworks_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); + frameworks_ = null; + } + return frameworksBuilder_; + } + + private boolean inactive_; + + /** + * + * + *
+     * Optional. Whether the domain is inactive.
+     * Default: false.
+     * 
+ * + * bool inactive = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The inactive. + */ + @java.lang.Override + public boolean getInactive() { + return inactive_; + } + + /** + * + * + *
+     * Optional. Whether the domain is inactive.
+     * Default: false.
+     * 
+ * + * bool inactive = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The inactive to set. + * @return This builder for chaining. + */ + public Builder setInactive(boolean value) { + + inactive_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Whether the domain is inactive.
+     * Default: false.
+     * 
+ * + * bool inactive = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearInactive() { + bitField0_ = (bitField0_ & ~0x00000010); + inactive_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.Domain) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.Domain) + private static final com.google.cloud.designcenter.v1.Domain DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.Domain(); + } + + public static com.google.cloud.designcenter.v1.Domain getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Domain parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.Domain getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DomainAssessmentReport.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DomainAssessmentReport.java new file mode 100644 index 000000000000..d38531ea05f3 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DomainAssessmentReport.java @@ -0,0 +1,4732 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/assessment.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * The assessment report for each domain.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.DomainAssessmentReport} + */ +@com.google.protobuf.Generated +public final class DomainAssessmentReport extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.DomainAssessmentReport) + DomainAssessmentReportOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DomainAssessmentReport"); + } + + // Use DomainAssessmentReport.newBuilder() to construct. + private DomainAssessmentReport(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DomainAssessmentReport() { + reportName_ = ""; + domainId_ = ""; + status_ = 0; + assessedFrameworks_ = java.util.Collections.emptyList(); + additionalInfo_ = ""; + skippedAssetTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_DomainAssessmentReport_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_DomainAssessmentReport_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.DomainAssessmentReport.class, + com.google.cloud.designcenter.v1.DomainAssessmentReport.Builder.class); + } + + /** + * + * + *
+   * Status of domain assessment report.
+   * 
+ * + * Protobuf enum {@code google.cloud.designcenter.v1.DomainAssessmentReport.Status} + */ + public enum Status implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * No status specified.
+     * 
+ * + * STATUS_UNSPECIFIED = 0; + */ + STATUS_UNSPECIFIED(0), + /** + * + * + *
+     * Pending domain assessment.
+     * 
+ * + * PENDING = 1; + */ + PENDING(1), + /** + * + * + *
+     * Complete domain assessment.
+     * 
+ * + * COMPLETED = 2; + */ + COMPLETED(2), + /** + * + * + *
+     * Failed domain assessment.
+     * 
+ * + * FAILED = 3; + */ + FAILED(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "Status"); + } + + /** + * + * + *
+     * No status specified.
+     * 
+ * + * STATUS_UNSPECIFIED = 0; + */ + public static final int STATUS_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Pending domain assessment.
+     * 
+ * + * PENDING = 1; + */ + public static final int PENDING_VALUE = 1; + + /** + * + * + *
+     * Complete domain assessment.
+     * 
+ * + * COMPLETED = 2; + */ + public static final int COMPLETED_VALUE = 2; + + /** + * + * + *
+     * Failed domain assessment.
+     * 
+ * + * FAILED = 3; + */ + public static final int FAILED_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 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 PENDING; + case 2: + return COMPLETED; + case 3: + 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 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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DomainAssessmentReport.getDescriptor() + .getEnumTypes() + .get(0); + } + + 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.designcenter.v1.DomainAssessmentReport.Status) + } + + public interface DomainRedirectInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. URL to the domain page.
+     * 
+ * + * string url = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The url. + */ + java.lang.String getUrl(); + + /** + * + * + *
+     * Required. URL to the domain page.
+     * 
+ * + * string url = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for url. + */ + com.google.protobuf.ByteString getUrlBytes(); + + /** + * + * + *
+     * Required. Text to display in UI on the redirect URL.
+     * 
+ * + * string url_text = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The urlText. + */ + java.lang.String getUrlText(); + + /** + * + * + *
+     * Required. Text to display in UI on the redirect URL.
+     * 
+ * + * string url_text = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for urlText. + */ + com.google.protobuf.ByteString getUrlTextBytes(); + + /** + * + * + *
+     * Optional. Flag to open the URL in new tab. Default: false.
+     * 
+ * + * bool open_in_same_tab = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The openInSameTab. + */ + boolean getOpenInSameTab(); + } + + /** + * + * + *
+   * Information on how to redirect to domain.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo} + */ + public static final class DomainRedirectInfo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo) + DomainRedirectInfoOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DomainRedirectInfo"); + } + + // Use DomainRedirectInfo.newBuilder() to construct. + private DomainRedirectInfo(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DomainRedirectInfo() { + url_ = ""; + urlText_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_DomainAssessmentReport_DomainRedirectInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_DomainAssessmentReport_DomainRedirectInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo.class, + com.google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo.Builder + .class); + } + + public static final int URL_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object url_ = ""; + + /** + * + * + *
+     * Required. URL to the domain page.
+     * 
+ * + * string url = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The url. + */ + @java.lang.Override + public java.lang.String getUrl() { + java.lang.Object ref = url_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + url_ = s; + return s; + } + } + + /** + * + * + *
+     * Required. URL to the domain page.
+     * 
+ * + * string url = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for url. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUrlBytes() { + java.lang.Object ref = url_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + url_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int URL_TEXT_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object urlText_ = ""; + + /** + * + * + *
+     * Required. Text to display in UI on the redirect URL.
+     * 
+ * + * string url_text = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The urlText. + */ + @java.lang.Override + public java.lang.String getUrlText() { + java.lang.Object ref = urlText_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + urlText_ = s; + return s; + } + } + + /** + * + * + *
+     * Required. Text to display in UI on the redirect URL.
+     * 
+ * + * string url_text = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for urlText. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUrlTextBytes() { + java.lang.Object ref = urlText_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + urlText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OPEN_IN_SAME_TAB_FIELD_NUMBER = 3; + private boolean openInSameTab_ = false; + + /** + * + * + *
+     * Optional. Flag to open the URL in new tab. Default: false.
+     * 
+ * + * bool open_in_same_tab = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The openInSameTab. + */ + @java.lang.Override + public boolean getOpenInSameTab() { + return openInSameTab_; + } + + 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.GeneratedMessage.isStringEmpty(url_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, url_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(urlText_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, urlText_); + } + if (openInSameTab_ != false) { + output.writeBool(3, openInSameTab_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(url_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, url_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(urlText_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, urlText_); + } + if (openInSameTab_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, openInSameTab_); + } + 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.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo other = + (com.google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo) obj; + + if (!getUrl().equals(other.getUrl())) return false; + if (!getUrlText().equals(other.getUrlText())) return false; + if (getOpenInSameTab() != other.getOpenInSameTab()) 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) + URL_FIELD_NUMBER; + hash = (53 * hash) + getUrl().hashCode(); + hash = (37 * hash) + URL_TEXT_FIELD_NUMBER; + hash = (53 * hash) + getUrlText().hashCode(); + hash = (37 * hash) + OPEN_IN_SAME_TAB_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getOpenInSameTab()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo + 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.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Information on how to redirect to domain.
+     * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo) + com.google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_DomainAssessmentReport_DomainRedirectInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_DomainAssessmentReport_DomainRedirectInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo.class, + com.google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo.Builder + .class); + } + + // Construct using + // com.google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + url_ = ""; + urlText_ = ""; + openInSameTab_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_DomainAssessmentReport_DomainRedirectInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo build() { + com.google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo + buildPartial() { + com.google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo result = + new com.google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.url_ = url_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.urlText_ = urlText_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.openInSameTab_ = openInSameTab_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo) { + return mergeFrom( + (com.google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo other) { + if (other + == com.google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo + .getDefaultInstance()) return this; + if (!other.getUrl().isEmpty()) { + url_ = other.url_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getUrlText().isEmpty()) { + urlText_ = other.urlText_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getOpenInSameTab() != false) { + setOpenInSameTab(other.getOpenInSameTab()); + } + 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: + { + url_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + urlText_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + openInSameTab_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + 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 url_ = ""; + + /** + * + * + *
+       * Required. URL to the domain page.
+       * 
+ * + * string url = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The url. + */ + public java.lang.String getUrl() { + java.lang.Object ref = url_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + url_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Required. URL to the domain page.
+       * 
+ * + * string url = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for url. + */ + public com.google.protobuf.ByteString getUrlBytes() { + java.lang.Object ref = url_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + url_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Required. URL to the domain page.
+       * 
+ * + * string url = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The url to set. + * @return This builder for chaining. + */ + public Builder setUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + url_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Required. URL to the domain page.
+       * 
+ * + * string url = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearUrl() { + url_ = getDefaultInstance().getUrl(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+       * Required. URL to the domain page.
+       * 
+ * + * string url = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for url to set. + * @return This builder for chaining. + */ + public Builder setUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + url_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object urlText_ = ""; + + /** + * + * + *
+       * Required. Text to display in UI on the redirect URL.
+       * 
+ * + * string url_text = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The urlText. + */ + public java.lang.String getUrlText() { + java.lang.Object ref = urlText_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + urlText_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Required. Text to display in UI on the redirect URL.
+       * 
+ * + * string url_text = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for urlText. + */ + public com.google.protobuf.ByteString getUrlTextBytes() { + java.lang.Object ref = urlText_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + urlText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Required. Text to display in UI on the redirect URL.
+       * 
+ * + * string url_text = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The urlText to set. + * @return This builder for chaining. + */ + public Builder setUrlText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + urlText_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Required. Text to display in UI on the redirect URL.
+       * 
+ * + * string url_text = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearUrlText() { + urlText_ = getDefaultInstance().getUrlText(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+       * Required. Text to display in UI on the redirect URL.
+       * 
+ * + * string url_text = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for urlText to set. + * @return This builder for chaining. + */ + public Builder setUrlTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + urlText_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean openInSameTab_; + + /** + * + * + *
+       * Optional. Flag to open the URL in new tab. Default: false.
+       * 
+ * + * bool open_in_same_tab = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The openInSameTab. + */ + @java.lang.Override + public boolean getOpenInSameTab() { + return openInSameTab_; + } + + /** + * + * + *
+       * Optional. Flag to open the URL in new tab. Default: false.
+       * 
+ * + * bool open_in_same_tab = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The openInSameTab to set. + * @return This builder for chaining. + */ + public Builder setOpenInSameTab(boolean value) { + + openInSameTab_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Flag to open the URL in new tab. Default: false.
+       * 
+ * + * bool open_in_same_tab = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOpenInSameTab() { + bitField0_ = (bitField0_ & ~0x00000004); + openInSameTab_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo) + private static final com.google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo(); + } + + public static com.google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DomainRedirectInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int REPORT_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object reportName_ = ""; + + /** + * + * + *
+   * Optional. The report name as per Application Design Center.
+   * 
+ * + * string report_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The reportName. + */ + @java.lang.Override + public java.lang.String getReportName() { + java.lang.Object ref = reportName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + reportName_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The report name as per Application Design Center.
+   * 
+ * + * string report_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for reportName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getReportNameBytes() { + java.lang.Object ref = reportName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + reportName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DOMAIN_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object domainId_ = ""; + + /** + * + * + *
+   * Output only. The ID of the domain.
+   * 
+ * + * string domain_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The domainId. + */ + @java.lang.Override + public java.lang.String getDomainId() { + java.lang.Object ref = domainId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domainId_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The ID of the domain.
+   * 
+ * + * string domain_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for domainId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDomainIdBytes() { + java.lang.Object ref = domainId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + domainId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+   * Output only. The time at which the report was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. The time at which the report was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.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 at which the report was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.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 = 4; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
+   * Output only. The time at which the report was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. The time at which the report was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.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 time at which the report was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.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 STATUS_FIELD_NUMBER = 5; + private int status_ = 0; + + /** + * + * + *
+   * Optional. Status of assessment report.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DomainAssessmentReport.Status status = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override + public int getStatusValue() { + return status_; + } + + /** + * + * + *
+   * Optional. Status of assessment report.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DomainAssessmentReport.Status status = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The status. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.DomainAssessmentReport.Status getStatus() { + com.google.cloud.designcenter.v1.DomainAssessmentReport.Status result = + com.google.cloud.designcenter.v1.DomainAssessmentReport.Status.forNumber(status_); + return result == null + ? com.google.cloud.designcenter.v1.DomainAssessmentReport.Status.UNRECOGNIZED + : result; + } + + public static final int ADC_METADATA_FIELD_NUMBER = 9; + private com.google.cloud.designcenter.v1.AdcMetadata adcMetadata_; + + /** + * + * + *
+   * Output only. Specific information and metadata.
+   * 
+ * + * + * .google.cloud.designcenter.v1.AdcMetadata adc_metadata = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the adcMetadata field is set. + */ + @java.lang.Override + public boolean hasAdcMetadata() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Output only. Specific information and metadata.
+   * 
+ * + * + * .google.cloud.designcenter.v1.AdcMetadata adc_metadata = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The adcMetadata. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.AdcMetadata getAdcMetadata() { + return adcMetadata_ == null + ? com.google.cloud.designcenter.v1.AdcMetadata.getDefaultInstance() + : adcMetadata_; + } + + /** + * + * + *
+   * Output only. Specific information and metadata.
+   * 
+ * + * + * .google.cloud.designcenter.v1.AdcMetadata adc_metadata = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.AdcMetadataOrBuilder getAdcMetadataOrBuilder() { + return adcMetadata_ == null + ? com.google.cloud.designcenter.v1.AdcMetadata.getDefaultInstance() + : adcMetadata_; + } + + public static final int ASSESSED_FRAMEWORKS_FIELD_NUMBER = 14; + + @SuppressWarnings("serial") + private java.util.List assessedFrameworks_; + + /** + * + * + *
+   * Required. List of frameworks assessed and their findings.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.AssessedFramework assessed_frameworks = 14 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getAssessedFrameworksList() { + return assessedFrameworks_; + } + + /** + * + * + *
+   * Required. List of frameworks assessed and their findings.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.AssessedFramework assessed_frameworks = 14 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getAssessedFrameworksOrBuilderList() { + return assessedFrameworks_; + } + + /** + * + * + *
+   * Required. List of frameworks assessed and their findings.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.AssessedFramework assessed_frameworks = 14 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getAssessedFrameworksCount() { + return assessedFrameworks_.size(); + } + + /** + * + * + *
+   * Required. List of frameworks assessed and their findings.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.AssessedFramework assessed_frameworks = 14 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.AssessedFramework getAssessedFrameworks(int index) { + return assessedFrameworks_.get(index); + } + + /** + * + * + *
+   * Required. List of frameworks assessed and their findings.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.AssessedFramework assessed_frameworks = 14 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.AssessedFrameworkOrBuilder getAssessedFrameworksOrBuilder( + int index) { + return assessedFrameworks_.get(index); + } + + public static final int ADDITIONAL_INFO_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private volatile java.lang.Object additionalInfo_ = ""; + + /** + * + * + *
+   * Optional. Additional information about the report.
+   * 
+ * + * string additional_info = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The additionalInfo. + */ + @java.lang.Override + public java.lang.String getAdditionalInfo() { + java.lang.Object ref = additionalInfo_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + additionalInfo_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Additional information about the report.
+   * 
+ * + * string additional_info = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for additionalInfo. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAdditionalInfoBytes() { + java.lang.Object ref = additionalInfo_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + additionalInfo_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SKIPPED_ASSET_TYPES_FIELD_NUMBER = 12; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList skippedAssetTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Optional. List of asset types skipped during assessment.
+   * 
+ * + * repeated string skipped_asset_types = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the skippedAssetTypes. + */ + public com.google.protobuf.ProtocolStringList getSkippedAssetTypesList() { + return skippedAssetTypes_; + } + + /** + * + * + *
+   * Optional. List of asset types skipped during assessment.
+   * 
+ * + * repeated string skipped_asset_types = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of skippedAssetTypes. + */ + public int getSkippedAssetTypesCount() { + return skippedAssetTypes_.size(); + } + + /** + * + * + *
+   * Optional. List of asset types skipped during assessment.
+   * 
+ * + * repeated string skipped_asset_types = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The skippedAssetTypes at the given index. + */ + public java.lang.String getSkippedAssetTypes(int index) { + return skippedAssetTypes_.get(index); + } + + /** + * + * + *
+   * Optional. List of asset types skipped during assessment.
+   * 
+ * + * repeated string skipped_asset_types = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the skippedAssetTypes at the given index. + */ + public com.google.protobuf.ByteString getSkippedAssetTypesBytes(int index) { + return skippedAssetTypes_.getByteString(index); + } + + public static final int DOMAIN_REDIRECT_INFO_FIELD_NUMBER = 13; + private com.google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo + domainRedirectInfo_; + + /** + * + * + *
+   * Optional. Information on how to redirect to domain.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo domain_redirect_info = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the domainRedirectInfo field is set. + */ + @java.lang.Override + public boolean hasDomainRedirectInfo() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Optional. Information on how to redirect to domain.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo domain_redirect_info = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The domainRedirectInfo. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo + getDomainRedirectInfo() { + return domainRedirectInfo_ == null + ? com.google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo + .getDefaultInstance() + : domainRedirectInfo_; + } + + /** + * + * + *
+   * Optional. Information on how to redirect to domain.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo domain_redirect_info = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfoOrBuilder + getDomainRedirectInfoOrBuilder() { + return domainRedirectInfo_ == null + ? com.google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo + .getDefaultInstance() + : domainRedirectInfo_; + } + + public static final int REPORT_SCORE_FIELD_NUMBER = 15; + private com.google.cloud.designcenter.v1.ScoreCard reportScore_; + + /** + * + * + *
+   * Output only. Score card associated with the report.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ScoreCard report_score = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the reportScore field is set. + */ + @java.lang.Override + public boolean hasReportScore() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+   * Output only. Score card associated with the report.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ScoreCard report_score = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The reportScore. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ScoreCard getReportScore() { + return reportScore_ == null + ? com.google.cloud.designcenter.v1.ScoreCard.getDefaultInstance() + : reportScore_; + } + + /** + * + * + *
+   * Output only. Score card associated with the report.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ScoreCard report_score = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ScoreCardOrBuilder getReportScoreOrBuilder() { + return reportScore_ == null + ? com.google.cloud.designcenter.v1.ScoreCard.getDefaultInstance() + : reportScore_; + } + + 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.GeneratedMessage.isStringEmpty(reportName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, reportName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(domainId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, domainId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getUpdateTime()); + } + if (status_ + != com.google.cloud.designcenter.v1.DomainAssessmentReport.Status.STATUS_UNSPECIFIED + .getNumber()) { + output.writeEnum(5, status_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(9, getAdcMetadata()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(additionalInfo_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 11, additionalInfo_); + } + for (int i = 0; i < skippedAssetTypes_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 12, skippedAssetTypes_.getRaw(i)); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(13, getDomainRedirectInfo()); + } + for (int i = 0; i < assessedFrameworks_.size(); i++) { + output.writeMessage(14, assessedFrameworks_.get(i)); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(15, getReportScore()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(reportName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, reportName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(domainId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, domainId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); + } + if (status_ + != com.google.cloud.designcenter.v1.DomainAssessmentReport.Status.STATUS_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, status_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getAdcMetadata()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(additionalInfo_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(11, additionalInfo_); + } + { + int dataSize = 0; + for (int i = 0; i < skippedAssetTypes_.size(); i++) { + dataSize += computeStringSizeNoTag(skippedAssetTypes_.getRaw(i)); + } + size += dataSize; + size += 1 * getSkippedAssetTypesList().size(); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getDomainRedirectInfo()); + } + for (int i = 0; i < assessedFrameworks_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(14, assessedFrameworks_.get(i)); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getReportScore()); + } + 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.designcenter.v1.DomainAssessmentReport)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.DomainAssessmentReport other = + (com.google.cloud.designcenter.v1.DomainAssessmentReport) obj; + + if (!getReportName().equals(other.getReportName())) return false; + if (!getDomainId().equals(other.getDomainId())) 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 (status_ != other.status_) return false; + if (hasAdcMetadata() != other.hasAdcMetadata()) return false; + if (hasAdcMetadata()) { + if (!getAdcMetadata().equals(other.getAdcMetadata())) return false; + } + if (!getAssessedFrameworksList().equals(other.getAssessedFrameworksList())) return false; + if (!getAdditionalInfo().equals(other.getAdditionalInfo())) return false; + if (!getSkippedAssetTypesList().equals(other.getSkippedAssetTypesList())) return false; + if (hasDomainRedirectInfo() != other.hasDomainRedirectInfo()) return false; + if (hasDomainRedirectInfo()) { + if (!getDomainRedirectInfo().equals(other.getDomainRedirectInfo())) return false; + } + if (hasReportScore() != other.hasReportScore()) return false; + if (hasReportScore()) { + if (!getReportScore().equals(other.getReportScore())) 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) + REPORT_NAME_FIELD_NUMBER; + hash = (53 * hash) + getReportName().hashCode(); + hash = (37 * hash) + DOMAIN_ID_FIELD_NUMBER; + hash = (53 * hash) + getDomainId().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) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + if (hasAdcMetadata()) { + hash = (37 * hash) + ADC_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getAdcMetadata().hashCode(); + } + if (getAssessedFrameworksCount() > 0) { + hash = (37 * hash) + ASSESSED_FRAMEWORKS_FIELD_NUMBER; + hash = (53 * hash) + getAssessedFrameworksList().hashCode(); + } + hash = (37 * hash) + ADDITIONAL_INFO_FIELD_NUMBER; + hash = (53 * hash) + getAdditionalInfo().hashCode(); + if (getSkippedAssetTypesCount() > 0) { + hash = (37 * hash) + SKIPPED_ASSET_TYPES_FIELD_NUMBER; + hash = (53 * hash) + getSkippedAssetTypesList().hashCode(); + } + if (hasDomainRedirectInfo()) { + hash = (37 * hash) + DOMAIN_REDIRECT_INFO_FIELD_NUMBER; + hash = (53 * hash) + getDomainRedirectInfo().hashCode(); + } + if (hasReportScore()) { + hash = (37 * hash) + REPORT_SCORE_FIELD_NUMBER; + hash = (53 * hash) + getReportScore().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.DomainAssessmentReport parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DomainAssessmentReport 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.designcenter.v1.DomainAssessmentReport parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DomainAssessmentReport parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DomainAssessmentReport parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.DomainAssessmentReport parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DomainAssessmentReport parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DomainAssessmentReport parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DomainAssessmentReport parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DomainAssessmentReport parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.DomainAssessmentReport parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.DomainAssessmentReport parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.DomainAssessmentReport 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * The assessment report for each domain.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.DomainAssessmentReport} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.DomainAssessmentReport) + com.google.cloud.designcenter.v1.DomainAssessmentReportOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_DomainAssessmentReport_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_DomainAssessmentReport_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.DomainAssessmentReport.class, + com.google.cloud.designcenter.v1.DomainAssessmentReport.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.DomainAssessmentReport.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + internalGetAdcMetadataFieldBuilder(); + internalGetAssessedFrameworksFieldBuilder(); + internalGetDomainRedirectInfoFieldBuilder(); + internalGetReportScoreFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + reportName_ = ""; + domainId_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + status_ = 0; + adcMetadata_ = null; + if (adcMetadataBuilder_ != null) { + adcMetadataBuilder_.dispose(); + adcMetadataBuilder_ = null; + } + if (assessedFrameworksBuilder_ == null) { + assessedFrameworks_ = java.util.Collections.emptyList(); + } else { + assessedFrameworks_ = null; + assessedFrameworksBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000040); + additionalInfo_ = ""; + skippedAssetTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + domainRedirectInfo_ = null; + if (domainRedirectInfoBuilder_ != null) { + domainRedirectInfoBuilder_.dispose(); + domainRedirectInfoBuilder_ = null; + } + reportScore_ = null; + if (reportScoreBuilder_ != null) { + reportScoreBuilder_.dispose(); + reportScoreBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_DomainAssessmentReport_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DomainAssessmentReport getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.DomainAssessmentReport.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DomainAssessmentReport build() { + com.google.cloud.designcenter.v1.DomainAssessmentReport result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.DomainAssessmentReport buildPartial() { + com.google.cloud.designcenter.v1.DomainAssessmentReport result = + new com.google.cloud.designcenter.v1.DomainAssessmentReport(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.designcenter.v1.DomainAssessmentReport result) { + if (assessedFrameworksBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0)) { + assessedFrameworks_ = java.util.Collections.unmodifiableList(assessedFrameworks_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.assessedFrameworks_ = assessedFrameworks_; + } else { + result.assessedFrameworks_ = assessedFrameworksBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.designcenter.v1.DomainAssessmentReport result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.reportName_ = reportName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.domainId_ = domainId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.status_ = status_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.adcMetadata_ = + adcMetadataBuilder_ == null ? adcMetadata_ : adcMetadataBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.additionalInfo_ = additionalInfo_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + skippedAssetTypes_.makeImmutable(); + result.skippedAssetTypes_ = skippedAssetTypes_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.domainRedirectInfo_ = + domainRedirectInfoBuilder_ == null + ? domainRedirectInfo_ + : domainRedirectInfoBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.reportScore_ = + reportScoreBuilder_ == null ? reportScore_ : reportScoreBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.DomainAssessmentReport) { + return mergeFrom((com.google.cloud.designcenter.v1.DomainAssessmentReport) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.DomainAssessmentReport other) { + if (other == com.google.cloud.designcenter.v1.DomainAssessmentReport.getDefaultInstance()) + return this; + if (!other.getReportName().isEmpty()) { + reportName_ = other.reportName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDomainId().isEmpty()) { + domainId_ = other.domainId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + if (other.hasAdcMetadata()) { + mergeAdcMetadata(other.getAdcMetadata()); + } + if (assessedFrameworksBuilder_ == null) { + if (!other.assessedFrameworks_.isEmpty()) { + if (assessedFrameworks_.isEmpty()) { + assessedFrameworks_ = other.assessedFrameworks_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureAssessedFrameworksIsMutable(); + assessedFrameworks_.addAll(other.assessedFrameworks_); + } + onChanged(); + } + } else { + if (!other.assessedFrameworks_.isEmpty()) { + if (assessedFrameworksBuilder_.isEmpty()) { + assessedFrameworksBuilder_.dispose(); + assessedFrameworksBuilder_ = null; + assessedFrameworks_ = other.assessedFrameworks_; + bitField0_ = (bitField0_ & ~0x00000040); + assessedFrameworksBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAssessedFrameworksFieldBuilder() + : null; + } else { + assessedFrameworksBuilder_.addAllMessages(other.assessedFrameworks_); + } + } + } + if (!other.getAdditionalInfo().isEmpty()) { + additionalInfo_ = other.additionalInfo_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (!other.skippedAssetTypes_.isEmpty()) { + if (skippedAssetTypes_.isEmpty()) { + skippedAssetTypes_ = other.skippedAssetTypes_; + bitField0_ |= 0x00000100; + } else { + ensureSkippedAssetTypesIsMutable(); + skippedAssetTypes_.addAll(other.skippedAssetTypes_); + } + onChanged(); + } + if (other.hasDomainRedirectInfo()) { + mergeDomainRedirectInfo(other.getDomainRedirectInfo()); + } + if (other.hasReportScore()) { + mergeReportScore(other.getReportScore()); + } + 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: + { + reportName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + domainId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: + { + status_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 74: + { + input.readMessage( + internalGetAdcMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 74 + case 90: + { + additionalInfo_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 90 + case 98: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureSkippedAssetTypesIsMutable(); + skippedAssetTypes_.add(s); + break; + } // case 98 + case 106: + { + input.readMessage( + internalGetDomainRedirectInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 106 + case 114: + { + com.google.cloud.designcenter.v1.AssessedFramework m = + input.readMessage( + com.google.cloud.designcenter.v1.AssessedFramework.parser(), + extensionRegistry); + if (assessedFrameworksBuilder_ == null) { + ensureAssessedFrameworksIsMutable(); + assessedFrameworks_.add(m); + } else { + assessedFrameworksBuilder_.addMessage(m); + } + break; + } // case 114 + case 122: + { + input.readMessage( + internalGetReportScoreFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 122 + default: + { + 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 reportName_ = ""; + + /** + * + * + *
+     * Optional. The report name as per Application Design Center.
+     * 
+ * + * string report_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The reportName. + */ + public java.lang.String getReportName() { + java.lang.Object ref = reportName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + reportName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The report name as per Application Design Center.
+     * 
+ * + * string report_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for reportName. + */ + public com.google.protobuf.ByteString getReportNameBytes() { + java.lang.Object ref = reportName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + reportName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The report name as per Application Design Center.
+     * 
+ * + * string report_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The reportName to set. + * @return This builder for chaining. + */ + public Builder setReportName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + reportName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The report name as per Application Design Center.
+     * 
+ * + * string report_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearReportName() { + reportName_ = getDefaultInstance().getReportName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The report name as per Application Design Center.
+     * 
+ * + * string report_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for reportName to set. + * @return This builder for chaining. + */ + public Builder setReportNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + reportName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object domainId_ = ""; + + /** + * + * + *
+     * Output only. The ID of the domain.
+     * 
+ * + * string domain_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The domainId. + */ + public java.lang.String getDomainId() { + java.lang.Object ref = domainId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domainId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The ID of the domain.
+     * 
+ * + * string domain_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for domainId. + */ + public com.google.protobuf.ByteString getDomainIdBytes() { + java.lang.Object ref = domainId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + domainId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The ID of the domain.
+     * 
+ * + * string domain_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The domainId to set. + * @return This builder for chaining. + */ + public Builder setDomainId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + domainId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The ID of the domain.
+     * 
+ * + * string domain_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDomainId() { + domainId_ = getDefaultInstance().getDomainId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The ID of the domain.
+     * 
+ * + * string domain_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for domainId to set. + * @return This builder for chaining. + */ + public Builder setDomainIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + domainId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
+     * Output only. The time at which the report was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Output only. The time at which the report was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.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 at which the report was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.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. The time at which the report was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.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. The time at which the report was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.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); + } + if (createTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The time at which the report was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.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. The time at which the report was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The time at which the report was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.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 at which the report was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + 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.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
+     * Output only. The time at which the report was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Output only. The time at which the report was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.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 time at which the report was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.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. The time at which the report was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.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. The time at which the report was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.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); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The time at which the report was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.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. The time at which the report was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The time at which the report was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.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 time at which the report was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private int status_ = 0; + + /** + * + * + *
+     * Optional. Status of assessment report.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DomainAssessmentReport.Status status = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override + public int getStatusValue() { + return status_; + } + + /** + * + * + *
+     * Optional. Status of assessment report.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DomainAssessmentReport.Status status = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @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_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Status of assessment report.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DomainAssessmentReport.Status status = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The status. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.DomainAssessmentReport.Status getStatus() { + com.google.cloud.designcenter.v1.DomainAssessmentReport.Status result = + com.google.cloud.designcenter.v1.DomainAssessmentReport.Status.forNumber(status_); + return result == null + ? com.google.cloud.designcenter.v1.DomainAssessmentReport.Status.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Optional. Status of assessment report.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DomainAssessmentReport.Status status = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus(com.google.cloud.designcenter.v1.DomainAssessmentReport.Status value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + status_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Status of assessment report.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DomainAssessmentReport.Status status = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000010); + status_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.designcenter.v1.AdcMetadata adcMetadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.AdcMetadata, + com.google.cloud.designcenter.v1.AdcMetadata.Builder, + com.google.cloud.designcenter.v1.AdcMetadataOrBuilder> + adcMetadataBuilder_; + + /** + * + * + *
+     * Output only. Specific information and metadata.
+     * 
+ * + * + * .google.cloud.designcenter.v1.AdcMetadata adc_metadata = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the adcMetadata field is set. + */ + public boolean hasAdcMetadata() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+     * Output only. Specific information and metadata.
+     * 
+ * + * + * .google.cloud.designcenter.v1.AdcMetadata adc_metadata = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The adcMetadata. + */ + public com.google.cloud.designcenter.v1.AdcMetadata getAdcMetadata() { + if (adcMetadataBuilder_ == null) { + return adcMetadata_ == null + ? com.google.cloud.designcenter.v1.AdcMetadata.getDefaultInstance() + : adcMetadata_; + } else { + return adcMetadataBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Specific information and metadata.
+     * 
+ * + * + * .google.cloud.designcenter.v1.AdcMetadata adc_metadata = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAdcMetadata(com.google.cloud.designcenter.v1.AdcMetadata value) { + if (adcMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + adcMetadata_ = value; + } else { + adcMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Specific information and metadata.
+     * 
+ * + * + * .google.cloud.designcenter.v1.AdcMetadata adc_metadata = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAdcMetadata( + com.google.cloud.designcenter.v1.AdcMetadata.Builder builderForValue) { + if (adcMetadataBuilder_ == null) { + adcMetadata_ = builderForValue.build(); + } else { + adcMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Specific information and metadata.
+     * 
+ * + * + * .google.cloud.designcenter.v1.AdcMetadata adc_metadata = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeAdcMetadata(com.google.cloud.designcenter.v1.AdcMetadata value) { + if (adcMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && adcMetadata_ != null + && adcMetadata_ != com.google.cloud.designcenter.v1.AdcMetadata.getDefaultInstance()) { + getAdcMetadataBuilder().mergeFrom(value); + } else { + adcMetadata_ = value; + } + } else { + adcMetadataBuilder_.mergeFrom(value); + } + if (adcMetadata_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Specific information and metadata.
+     * 
+ * + * + * .google.cloud.designcenter.v1.AdcMetadata adc_metadata = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearAdcMetadata() { + bitField0_ = (bitField0_ & ~0x00000020); + adcMetadata_ = null; + if (adcMetadataBuilder_ != null) { + adcMetadataBuilder_.dispose(); + adcMetadataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Specific information and metadata.
+     * 
+ * + * + * .google.cloud.designcenter.v1.AdcMetadata adc_metadata = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.AdcMetadata.Builder getAdcMetadataBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetAdcMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Specific information and metadata.
+     * 
+ * + * + * .google.cloud.designcenter.v1.AdcMetadata adc_metadata = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.AdcMetadataOrBuilder getAdcMetadataOrBuilder() { + if (adcMetadataBuilder_ != null) { + return adcMetadataBuilder_.getMessageOrBuilder(); + } else { + return adcMetadata_ == null + ? com.google.cloud.designcenter.v1.AdcMetadata.getDefaultInstance() + : adcMetadata_; + } + } + + /** + * + * + *
+     * Output only. Specific information and metadata.
+     * 
+ * + * + * .google.cloud.designcenter.v1.AdcMetadata adc_metadata = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.AdcMetadata, + com.google.cloud.designcenter.v1.AdcMetadata.Builder, + com.google.cloud.designcenter.v1.AdcMetadataOrBuilder> + internalGetAdcMetadataFieldBuilder() { + if (adcMetadataBuilder_ == null) { + adcMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.AdcMetadata, + com.google.cloud.designcenter.v1.AdcMetadata.Builder, + com.google.cloud.designcenter.v1.AdcMetadataOrBuilder>( + getAdcMetadata(), getParentForChildren(), isClean()); + adcMetadata_ = null; + } + return adcMetadataBuilder_; + } + + private java.util.List assessedFrameworks_ = + java.util.Collections.emptyList(); + + private void ensureAssessedFrameworksIsMutable() { + if (!((bitField0_ & 0x00000040) != 0)) { + assessedFrameworks_ = + new java.util.ArrayList( + assessedFrameworks_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.AssessedFramework, + com.google.cloud.designcenter.v1.AssessedFramework.Builder, + com.google.cloud.designcenter.v1.AssessedFrameworkOrBuilder> + assessedFrameworksBuilder_; + + /** + * + * + *
+     * Required. List of frameworks assessed and their findings.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.AssessedFramework assessed_frameworks = 14 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getAssessedFrameworksList() { + if (assessedFrameworksBuilder_ == null) { + return java.util.Collections.unmodifiableList(assessedFrameworks_); + } else { + return assessedFrameworksBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Required. List of frameworks assessed and their findings.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.AssessedFramework assessed_frameworks = 14 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getAssessedFrameworksCount() { + if (assessedFrameworksBuilder_ == null) { + return assessedFrameworks_.size(); + } else { + return assessedFrameworksBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Required. List of frameworks assessed and their findings.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.AssessedFramework assessed_frameworks = 14 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.AssessedFramework getAssessedFrameworks(int index) { + if (assessedFrameworksBuilder_ == null) { + return assessedFrameworks_.get(index); + } else { + return assessedFrameworksBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Required. List of frameworks assessed and their findings.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.AssessedFramework assessed_frameworks = 14 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAssessedFrameworks( + int index, com.google.cloud.designcenter.v1.AssessedFramework value) { + if (assessedFrameworksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAssessedFrameworksIsMutable(); + assessedFrameworks_.set(index, value); + onChanged(); + } else { + assessedFrameworksBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Required. List of frameworks assessed and their findings.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.AssessedFramework assessed_frameworks = 14 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAssessedFrameworks( + int index, com.google.cloud.designcenter.v1.AssessedFramework.Builder builderForValue) { + if (assessedFrameworksBuilder_ == null) { + ensureAssessedFrameworksIsMutable(); + assessedFrameworks_.set(index, builderForValue.build()); + onChanged(); + } else { + assessedFrameworksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Required. List of frameworks assessed and their findings.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.AssessedFramework assessed_frameworks = 14 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAssessedFrameworks(com.google.cloud.designcenter.v1.AssessedFramework value) { + if (assessedFrameworksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAssessedFrameworksIsMutable(); + assessedFrameworks_.add(value); + onChanged(); + } else { + assessedFrameworksBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Required. List of frameworks assessed and their findings.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.AssessedFramework assessed_frameworks = 14 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAssessedFrameworks( + int index, com.google.cloud.designcenter.v1.AssessedFramework value) { + if (assessedFrameworksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAssessedFrameworksIsMutable(); + assessedFrameworks_.add(index, value); + onChanged(); + } else { + assessedFrameworksBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Required. List of frameworks assessed and their findings.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.AssessedFramework assessed_frameworks = 14 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAssessedFrameworks( + com.google.cloud.designcenter.v1.AssessedFramework.Builder builderForValue) { + if (assessedFrameworksBuilder_ == null) { + ensureAssessedFrameworksIsMutable(); + assessedFrameworks_.add(builderForValue.build()); + onChanged(); + } else { + assessedFrameworksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Required. List of frameworks assessed and their findings.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.AssessedFramework assessed_frameworks = 14 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAssessedFrameworks( + int index, com.google.cloud.designcenter.v1.AssessedFramework.Builder builderForValue) { + if (assessedFrameworksBuilder_ == null) { + ensureAssessedFrameworksIsMutable(); + assessedFrameworks_.add(index, builderForValue.build()); + onChanged(); + } else { + assessedFrameworksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Required. List of frameworks assessed and their findings.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.AssessedFramework assessed_frameworks = 14 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllAssessedFrameworks( + java.lang.Iterable values) { + if (assessedFrameworksBuilder_ == null) { + ensureAssessedFrameworksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, assessedFrameworks_); + onChanged(); + } else { + assessedFrameworksBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Required. List of frameworks assessed and their findings.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.AssessedFramework assessed_frameworks = 14 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAssessedFrameworks() { + if (assessedFrameworksBuilder_ == null) { + assessedFrameworks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + assessedFrameworksBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Required. List of frameworks assessed and their findings.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.AssessedFramework assessed_frameworks = 14 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeAssessedFrameworks(int index) { + if (assessedFrameworksBuilder_ == null) { + ensureAssessedFrameworksIsMutable(); + assessedFrameworks_.remove(index); + onChanged(); + } else { + assessedFrameworksBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Required. List of frameworks assessed and their findings.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.AssessedFramework assessed_frameworks = 14 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.AssessedFramework.Builder getAssessedFrameworksBuilder( + int index) { + return internalGetAssessedFrameworksFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Required. List of frameworks assessed and their findings.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.AssessedFramework assessed_frameworks = 14 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.AssessedFrameworkOrBuilder + getAssessedFrameworksOrBuilder(int index) { + if (assessedFrameworksBuilder_ == null) { + return assessedFrameworks_.get(index); + } else { + return assessedFrameworksBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Required. List of frameworks assessed and their findings.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.AssessedFramework assessed_frameworks = 14 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getAssessedFrameworksOrBuilderList() { + if (assessedFrameworksBuilder_ != null) { + return assessedFrameworksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(assessedFrameworks_); + } + } + + /** + * + * + *
+     * Required. List of frameworks assessed and their findings.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.AssessedFramework assessed_frameworks = 14 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.AssessedFramework.Builder + addAssessedFrameworksBuilder() { + return internalGetAssessedFrameworksFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.AssessedFramework.getDefaultInstance()); + } + + /** + * + * + *
+     * Required. List of frameworks assessed and their findings.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.AssessedFramework assessed_frameworks = 14 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.AssessedFramework.Builder addAssessedFrameworksBuilder( + int index) { + return internalGetAssessedFrameworksFieldBuilder() + .addBuilder( + index, com.google.cloud.designcenter.v1.AssessedFramework.getDefaultInstance()); + } + + /** + * + * + *
+     * Required. List of frameworks assessed and their findings.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.AssessedFramework assessed_frameworks = 14 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getAssessedFrameworksBuilderList() { + return internalGetAssessedFrameworksFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.AssessedFramework, + com.google.cloud.designcenter.v1.AssessedFramework.Builder, + com.google.cloud.designcenter.v1.AssessedFrameworkOrBuilder> + internalGetAssessedFrameworksFieldBuilder() { + if (assessedFrameworksBuilder_ == null) { + assessedFrameworksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.AssessedFramework, + com.google.cloud.designcenter.v1.AssessedFramework.Builder, + com.google.cloud.designcenter.v1.AssessedFrameworkOrBuilder>( + assessedFrameworks_, + ((bitField0_ & 0x00000040) != 0), + getParentForChildren(), + isClean()); + assessedFrameworks_ = null; + } + return assessedFrameworksBuilder_; + } + + private java.lang.Object additionalInfo_ = ""; + + /** + * + * + *
+     * Optional. Additional information about the report.
+     * 
+ * + * string additional_info = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The additionalInfo. + */ + public java.lang.String getAdditionalInfo() { + java.lang.Object ref = additionalInfo_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + additionalInfo_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Additional information about the report.
+     * 
+ * + * string additional_info = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for additionalInfo. + */ + public com.google.protobuf.ByteString getAdditionalInfoBytes() { + java.lang.Object ref = additionalInfo_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + additionalInfo_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Additional information about the report.
+     * 
+ * + * string additional_info = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The additionalInfo to set. + * @return This builder for chaining. + */ + public Builder setAdditionalInfo(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + additionalInfo_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Additional information about the report.
+     * 
+ * + * string additional_info = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAdditionalInfo() { + additionalInfo_ = getDefaultInstance().getAdditionalInfo(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Additional information about the report.
+     * 
+ * + * string additional_info = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for additionalInfo to set. + * @return This builder for chaining. + */ + public Builder setAdditionalInfoBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + additionalInfo_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList skippedAssetTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureSkippedAssetTypesIsMutable() { + if (!skippedAssetTypes_.isModifiable()) { + skippedAssetTypes_ = new com.google.protobuf.LazyStringArrayList(skippedAssetTypes_); + } + bitField0_ |= 0x00000100; + } + + /** + * + * + *
+     * Optional. List of asset types skipped during assessment.
+     * 
+ * + * repeated string skipped_asset_types = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the skippedAssetTypes. + */ + public com.google.protobuf.ProtocolStringList getSkippedAssetTypesList() { + skippedAssetTypes_.makeImmutable(); + return skippedAssetTypes_; + } + + /** + * + * + *
+     * Optional. List of asset types skipped during assessment.
+     * 
+ * + * repeated string skipped_asset_types = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of skippedAssetTypes. + */ + public int getSkippedAssetTypesCount() { + return skippedAssetTypes_.size(); + } + + /** + * + * + *
+     * Optional. List of asset types skipped during assessment.
+     * 
+ * + * repeated string skipped_asset_types = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The skippedAssetTypes at the given index. + */ + public java.lang.String getSkippedAssetTypes(int index) { + return skippedAssetTypes_.get(index); + } + + /** + * + * + *
+     * Optional. List of asset types skipped during assessment.
+     * 
+ * + * repeated string skipped_asset_types = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the skippedAssetTypes at the given index. + */ + public com.google.protobuf.ByteString getSkippedAssetTypesBytes(int index) { + return skippedAssetTypes_.getByteString(index); + } + + /** + * + * + *
+     * Optional. List of asset types skipped during assessment.
+     * 
+ * + * repeated string skipped_asset_types = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The skippedAssetTypes to set. + * @return This builder for chaining. + */ + public Builder setSkippedAssetTypes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSkippedAssetTypesIsMutable(); + skippedAssetTypes_.set(index, value); + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. List of asset types skipped during assessment.
+     * 
+ * + * repeated string skipped_asset_types = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The skippedAssetTypes to add. + * @return This builder for chaining. + */ + public Builder addSkippedAssetTypes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSkippedAssetTypesIsMutable(); + skippedAssetTypes_.add(value); + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. List of asset types skipped during assessment.
+     * 
+ * + * repeated string skipped_asset_types = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The skippedAssetTypes to add. + * @return This builder for chaining. + */ + public Builder addAllSkippedAssetTypes(java.lang.Iterable values) { + ensureSkippedAssetTypesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, skippedAssetTypes_); + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. List of asset types skipped during assessment.
+     * 
+ * + * repeated string skipped_asset_types = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearSkippedAssetTypes() { + skippedAssetTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. List of asset types skipped during assessment.
+     * 
+ * + * repeated string skipped_asset_types = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the skippedAssetTypes to add. + * @return This builder for chaining. + */ + public Builder addSkippedAssetTypesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureSkippedAssetTypesIsMutable(); + skippedAssetTypes_.add(value); + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private com.google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo + domainRedirectInfo_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo, + com.google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo.Builder, + com.google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfoOrBuilder> + domainRedirectInfoBuilder_; + + /** + * + * + *
+     * Optional. Information on how to redirect to domain.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo domain_redirect_info = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the domainRedirectInfo field is set. + */ + public boolean hasDomainRedirectInfo() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
+     * Optional. Information on how to redirect to domain.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo domain_redirect_info = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The domainRedirectInfo. + */ + public com.google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo + getDomainRedirectInfo() { + if (domainRedirectInfoBuilder_ == null) { + return domainRedirectInfo_ == null + ? com.google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo + .getDefaultInstance() + : domainRedirectInfo_; + } else { + return domainRedirectInfoBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Information on how to redirect to domain.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo domain_redirect_info = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDomainRedirectInfo( + com.google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo value) { + if (domainRedirectInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + domainRedirectInfo_ = value; + } else { + domainRedirectInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Information on how to redirect to domain.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo domain_redirect_info = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDomainRedirectInfo( + com.google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo.Builder + builderForValue) { + if (domainRedirectInfoBuilder_ == null) { + domainRedirectInfo_ = builderForValue.build(); + } else { + domainRedirectInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Information on how to redirect to domain.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo domain_redirect_info = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeDomainRedirectInfo( + com.google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo value) { + if (domainRedirectInfoBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && domainRedirectInfo_ != null + && domainRedirectInfo_ + != com.google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo + .getDefaultInstance()) { + getDomainRedirectInfoBuilder().mergeFrom(value); + } else { + domainRedirectInfo_ = value; + } + } else { + domainRedirectInfoBuilder_.mergeFrom(value); + } + if (domainRedirectInfo_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Information on how to redirect to domain.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo domain_redirect_info = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDomainRedirectInfo() { + bitField0_ = (bitField0_ & ~0x00000200); + domainRedirectInfo_ = null; + if (domainRedirectInfoBuilder_ != null) { + domainRedirectInfoBuilder_.dispose(); + domainRedirectInfoBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Information on how to redirect to domain.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo domain_redirect_info = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo.Builder + getDomainRedirectInfoBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return internalGetDomainRedirectInfoFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Information on how to redirect to domain.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo domain_redirect_info = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfoOrBuilder + getDomainRedirectInfoOrBuilder() { + if (domainRedirectInfoBuilder_ != null) { + return domainRedirectInfoBuilder_.getMessageOrBuilder(); + } else { + return domainRedirectInfo_ == null + ? com.google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo + .getDefaultInstance() + : domainRedirectInfo_; + } + } + + /** + * + * + *
+     * Optional. Information on how to redirect to domain.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo domain_redirect_info = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo, + com.google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo.Builder, + com.google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfoOrBuilder> + internalGetDomainRedirectInfoFieldBuilder() { + if (domainRedirectInfoBuilder_ == null) { + domainRedirectInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo, + com.google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo.Builder, + com.google.cloud.designcenter.v1.DomainAssessmentReport + .DomainRedirectInfoOrBuilder>( + getDomainRedirectInfo(), getParentForChildren(), isClean()); + domainRedirectInfo_ = null; + } + return domainRedirectInfoBuilder_; + } + + private com.google.cloud.designcenter.v1.ScoreCard reportScore_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ScoreCard, + com.google.cloud.designcenter.v1.ScoreCard.Builder, + com.google.cloud.designcenter.v1.ScoreCardOrBuilder> + reportScoreBuilder_; + + /** + * + * + *
+     * Output only. Score card associated with the report.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ScoreCard report_score = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the reportScore field is set. + */ + public boolean hasReportScore() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
+     * Output only. Score card associated with the report.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ScoreCard report_score = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The reportScore. + */ + public com.google.cloud.designcenter.v1.ScoreCard getReportScore() { + if (reportScoreBuilder_ == null) { + return reportScore_ == null + ? com.google.cloud.designcenter.v1.ScoreCard.getDefaultInstance() + : reportScore_; + } else { + return reportScoreBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Score card associated with the report.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ScoreCard report_score = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setReportScore(com.google.cloud.designcenter.v1.ScoreCard value) { + if (reportScoreBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reportScore_ = value; + } else { + reportScoreBuilder_.setMessage(value); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Score card associated with the report.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ScoreCard report_score = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setReportScore( + com.google.cloud.designcenter.v1.ScoreCard.Builder builderForValue) { + if (reportScoreBuilder_ == null) { + reportScore_ = builderForValue.build(); + } else { + reportScoreBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Score card associated with the report.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ScoreCard report_score = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeReportScore(com.google.cloud.designcenter.v1.ScoreCard value) { + if (reportScoreBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0) + && reportScore_ != null + && reportScore_ != com.google.cloud.designcenter.v1.ScoreCard.getDefaultInstance()) { + getReportScoreBuilder().mergeFrom(value); + } else { + reportScore_ = value; + } + } else { + reportScoreBuilder_.mergeFrom(value); + } + if (reportScore_ != null) { + bitField0_ |= 0x00000400; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Score card associated with the report.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ScoreCard report_score = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearReportScore() { + bitField0_ = (bitField0_ & ~0x00000400); + reportScore_ = null; + if (reportScoreBuilder_ != null) { + reportScoreBuilder_.dispose(); + reportScoreBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Score card associated with the report.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ScoreCard report_score = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ScoreCard.Builder getReportScoreBuilder() { + bitField0_ |= 0x00000400; + onChanged(); + return internalGetReportScoreFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Score card associated with the report.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ScoreCard report_score = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ScoreCardOrBuilder getReportScoreOrBuilder() { + if (reportScoreBuilder_ != null) { + return reportScoreBuilder_.getMessageOrBuilder(); + } else { + return reportScore_ == null + ? com.google.cloud.designcenter.v1.ScoreCard.getDefaultInstance() + : reportScore_; + } + } + + /** + * + * + *
+     * Output only. Score card associated with the report.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ScoreCard report_score = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ScoreCard, + com.google.cloud.designcenter.v1.ScoreCard.Builder, + com.google.cloud.designcenter.v1.ScoreCardOrBuilder> + internalGetReportScoreFieldBuilder() { + if (reportScoreBuilder_ == null) { + reportScoreBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ScoreCard, + com.google.cloud.designcenter.v1.ScoreCard.Builder, + com.google.cloud.designcenter.v1.ScoreCardOrBuilder>( + getReportScore(), getParentForChildren(), isClean()); + reportScore_ = null; + } + return reportScoreBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.DomainAssessmentReport) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.DomainAssessmentReport) + private static final com.google.cloud.designcenter.v1.DomainAssessmentReport DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.DomainAssessmentReport(); + } + + public static com.google.cloud.designcenter.v1.DomainAssessmentReport getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DomainAssessmentReport parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.DomainAssessmentReport getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DomainAssessmentReportOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DomainAssessmentReportOrBuilder.java new file mode 100644 index 000000000000..24975a237e60 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DomainAssessmentReportOrBuilder.java @@ -0,0 +1,472 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/assessment.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface DomainAssessmentReportOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.DomainAssessmentReport) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The report name as per Application Design Center.
+   * 
+ * + * string report_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The reportName. + */ + java.lang.String getReportName(); + + /** + * + * + *
+   * Optional. The report name as per Application Design Center.
+   * 
+ * + * string report_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for reportName. + */ + com.google.protobuf.ByteString getReportNameBytes(); + + /** + * + * + *
+   * Output only. The ID of the domain.
+   * 
+ * + * string domain_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The domainId. + */ + java.lang.String getDomainId(); + + /** + * + * + *
+   * Output only. The ID of the domain.
+   * 
+ * + * string domain_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for domainId. + */ + com.google.protobuf.ByteString getDomainIdBytes(); + + /** + * + * + *
+   * Output only. The time at which the report was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
+   * Output only. The time at which the report was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
+   * Output only. The time at which the report was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The time at which the report was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
+   * Output only. The time at which the report was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
+   * Output only. The time at which the report was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Optional. Status of assessment report.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DomainAssessmentReport.Status status = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for status. + */ + int getStatusValue(); + + /** + * + * + *
+   * Optional. Status of assessment report.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DomainAssessmentReport.Status status = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The status. + */ + com.google.cloud.designcenter.v1.DomainAssessmentReport.Status getStatus(); + + /** + * + * + *
+   * Output only. Specific information and metadata.
+   * 
+ * + * + * .google.cloud.designcenter.v1.AdcMetadata adc_metadata = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the adcMetadata field is set. + */ + boolean hasAdcMetadata(); + + /** + * + * + *
+   * Output only. Specific information and metadata.
+   * 
+ * + * + * .google.cloud.designcenter.v1.AdcMetadata adc_metadata = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The adcMetadata. + */ + com.google.cloud.designcenter.v1.AdcMetadata getAdcMetadata(); + + /** + * + * + *
+   * Output only. Specific information and metadata.
+   * 
+ * + * + * .google.cloud.designcenter.v1.AdcMetadata adc_metadata = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.AdcMetadataOrBuilder getAdcMetadataOrBuilder(); + + /** + * + * + *
+   * Required. List of frameworks assessed and their findings.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.AssessedFramework assessed_frameworks = 14 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getAssessedFrameworksList(); + + /** + * + * + *
+   * Required. List of frameworks assessed and their findings.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.AssessedFramework assessed_frameworks = 14 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.designcenter.v1.AssessedFramework getAssessedFrameworks(int index); + + /** + * + * + *
+   * Required. List of frameworks assessed and their findings.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.AssessedFramework assessed_frameworks = 14 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getAssessedFrameworksCount(); + + /** + * + * + *
+   * Required. List of frameworks assessed and their findings.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.AssessedFramework assessed_frameworks = 14 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getAssessedFrameworksOrBuilderList(); + + /** + * + * + *
+   * Required. List of frameworks assessed and their findings.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.AssessedFramework assessed_frameworks = 14 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.designcenter.v1.AssessedFrameworkOrBuilder getAssessedFrameworksOrBuilder( + int index); + + /** + * + * + *
+   * Optional. Additional information about the report.
+   * 
+ * + * string additional_info = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The additionalInfo. + */ + java.lang.String getAdditionalInfo(); + + /** + * + * + *
+   * Optional. Additional information about the report.
+   * 
+ * + * string additional_info = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for additionalInfo. + */ + com.google.protobuf.ByteString getAdditionalInfoBytes(); + + /** + * + * + *
+   * Optional. List of asset types skipped during assessment.
+   * 
+ * + * repeated string skipped_asset_types = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the skippedAssetTypes. + */ + java.util.List getSkippedAssetTypesList(); + + /** + * + * + *
+   * Optional. List of asset types skipped during assessment.
+   * 
+ * + * repeated string skipped_asset_types = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of skippedAssetTypes. + */ + int getSkippedAssetTypesCount(); + + /** + * + * + *
+   * Optional. List of asset types skipped during assessment.
+   * 
+ * + * repeated string skipped_asset_types = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The skippedAssetTypes at the given index. + */ + java.lang.String getSkippedAssetTypes(int index); + + /** + * + * + *
+   * Optional. List of asset types skipped during assessment.
+   * 
+ * + * repeated string skipped_asset_types = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the skippedAssetTypes at the given index. + */ + com.google.protobuf.ByteString getSkippedAssetTypesBytes(int index); + + /** + * + * + *
+   * Optional. Information on how to redirect to domain.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo domain_redirect_info = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the domainRedirectInfo field is set. + */ + boolean hasDomainRedirectInfo(); + + /** + * + * + *
+   * Optional. Information on how to redirect to domain.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo domain_redirect_info = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The domainRedirectInfo. + */ + com.google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo + getDomainRedirectInfo(); + + /** + * + * + *
+   * Optional. Information on how to redirect to domain.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfo domain_redirect_info = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.DomainAssessmentReport.DomainRedirectInfoOrBuilder + getDomainRedirectInfoOrBuilder(); + + /** + * + * + *
+   * Output only. Score card associated with the report.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ScoreCard report_score = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the reportScore field is set. + */ + boolean hasReportScore(); + + /** + * + * + *
+   * Output only. Score card associated with the report.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ScoreCard report_score = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The reportScore. + */ + com.google.cloud.designcenter.v1.ScoreCard getReportScore(); + + /** + * + * + *
+   * Output only. Score card associated with the report.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ScoreCard report_score = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.ScoreCardOrBuilder getReportScoreOrBuilder(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DomainOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DomainOrBuilder.java new file mode 100644 index 000000000000..163bffb95a37 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/DomainOrBuilder.java @@ -0,0 +1,186 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/assessment.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface DomainOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.Domain) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The domain name. Uniquely identifies the domain.
+   * 
+ * + * string domain_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The domainName. + */ + java.lang.String getDomainName(); + + /** + * + * + *
+   * Required. The domain name. Uniquely identifies the domain.
+   * 
+ * + * string domain_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for domainName. + */ + com.google.protobuf.ByteString getDomainNameBytes(); + + /** + * + * + *
+   * Optional. The domain display name is user friendly name used for UI.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
+   * Optional. The domain display name is user friendly name used for UI.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Optional. The domain description.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
+   * Optional. The domain description.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Optional. The frameworks that are applicable in this domain.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Framework frameworks = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getFrameworksList(); + + /** + * + * + *
+   * Optional. The frameworks that are applicable in this domain.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Framework frameworks = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.Framework getFrameworks(int index); + + /** + * + * + *
+   * Optional. The frameworks that are applicable in this domain.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Framework frameworks = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getFrameworksCount(); + + /** + * + * + *
+   * Optional. The frameworks that are applicable in this domain.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Framework frameworks = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getFrameworksOrBuilderList(); + + /** + * + * + *
+   * Optional. The frameworks that are applicable in this domain.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Framework frameworks = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.FrameworkOrBuilder getFrameworksOrBuilder(int index); + + /** + * + * + *
+   * Optional. Whether the domain is inactive.
+   * Default: false.
+   * 
+ * + * bool inactive = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The inactive. + */ + boolean getInactive(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/EnumsProto.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/EnumsProto.java new file mode 100644 index 000000000000..e644cae0f6cf --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/EnumsProto.java @@ -0,0 +1,128 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/enums.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public final class EnumsProto extends com.google.protobuf.GeneratedFile { + private EnumsProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "EnumsProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + 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/designcenter/v1/enums.proto\022\034google.cloud.designcenter.v1*\215\002\n" + + "\024ApplicationOperation\022%\n" + + "!APPLICATION_OPERATION_UNSPECIFIED\020\000\022 \n" + + "\034APPLICATION_OPERATION_CREATE\020\001\022 \n" + + "\034APPLICATION_OPERATION_UPDATE\020\002\022!\n" + + "\035APPLICATION_OPERATION_PREVIEW\020\003\022 \n" + + "\034APPLICATION_OPERATION_DEPLOY\020\004\022\035\n" + + "\031APPLICATION_OPERATION_GET\020\005\022&\n" + + "\"APPLICATION_OPERATION_GENERATE_IAC\020\006*\227\003\n" + + "\034ApplicationTemplateOperation\022.\n" + + "*APPLICATION_TEMPLATE_OPERATION_UNSPECIFIED\020\000\022)\n" + + "%APPLICATION_TEMPLATE_OPERATION_CREATE\020\001\022)\n" + + "%APPLICATION_TEMPLATE_OPERATION_UPDATE\020\002\022)\n" + + "%APPLICATION_TEMPLATE_OPERATION_COMMIT\020\003\022/\n" + + "+APPLICATION_TEMPLATE_OPERATION_GENERATE_IAC\020\004\022&\n" + + "\"APPLICATION_TEMPLATE_OPERATION_GET\020\005\022-\n" + + ")APPLICATION_TEMPLATE_OPERATION_IMPORT_IAC\020\006\022>\n" + + ":APPLICATION_TEMPLATE_OPERATION_UPDATE_COMPONENT_PARAMETERS\020\007*\243\001\n" + + "\020TemplateCategory\022!\n" + + "\035TEMPLATE_CATEGORY_UNSPECIFIED\020\000\022\026\n" + + "\022COMPONENT_TEMPLATE\020\001\022\030\n" + + "\024APPLICATION_TEMPLATE\020\002\022#\n" + + "\033COMPOSITE_SOLUTION_TEMPLATE\020\003\032\002\010\001\022\025\n" + + "\021INSTANCE_TEMPLATE\020\004*g\n" + + "\032ApplicationCompositionType\022,\n" + + "(APPLICATION_COMPOSITION_TYPE_UNSPECIFIED\020\000\022\014\n" + + "\010STANDARD\020\001\022\r\n" + + "\tCOMPOSITE\020\002*\214\002\n" + + "\014TemplateType\022\035\n" + + "\031TEMPLATE_TYPE_UNSPECIFIED\020\000\022\013\n" + + "\007SERVICE\020\001\022\014\n" + + "\010WORKLOAD\020\002\022\t\n" + + "\005ASSET\020\003\022\023\n" + + "\013APPLICATION\020\004\032\002\010\001\022\024\n" + + "\014JSS_SOLUTION\020\005\032\002\010\001\022\033\n" + + "\023SERVICE_DATA_SOURCE\020\006\032\002\010\001\022\030\n" + + "\020HELM_APPLICATION\020\007\032\002\010\001\022!\n" + + "\035STANDARD_APPLICATION_TEMPLATE\020\010\022\"\n" + + "\036COMPOSITE_APPLICATION_TEMPLATE\020\t\022\016\n\n" + + "HELM_CHART\020\n" + + "*\245\001\n" + + "\034DisplayVariableAlternateType\022/\n" + + "+DISPLAY_VARIABLE_ALTERNATE_TYPE_UNSPECIFIED\020\000\022,\n" + + "(DISPLAY_VARIABLE_ALTERNATE_TYPE_SECURITY\020\001\022&\n" + + "\"DISPLAY_VARIABLE_ALTERNATE_TYPE_DC\020\002*n\n" + + "\031DisplayVariableVisibility\022+\n" + + "\'DISPLAY_VARIABLE_VISIBILITY_UNSPECIFIED\020\000\022$\n" + + " DISPLAY_VARIABLE_VISIBILITY_ROOT\020\001*@\n" + + "\tIACFormat\022\032\n" + + "\026IAC_FORMAT_UNSPECIFIED\020\000\022\r\n" + + "\tTERRAFORM\020\001\022\010\n" + + "\004HELM\020\002*T\n" + + "\017ApplicationType\022 \n" + + "\034APPLICATION_TYPE_UNSPECIFIED\020\000\022\021\n\r" + + "TERRAFORM_APP\020\001\022\014\n" + + "\010HELM_APP\020\002*U\n" + + "\tIACSource\022\032\n" + + "\026IAC_SOURCE_UNSPECIFIED\020\000\022\022\n" + + "\016IAC_SOURCE_SAT\020\001\022\030\n" + + "\024IAC_SOURCE_TERRAFORM\020\002*\223\001\n" + + "\030ConnectionDependencyType\022*\n" + + "&CONNECTION_DEPENDENCY_TYPE_UNSPECIFIED\020\000\022#\n" + + "\037CONNECTION_DEPENDENCY_TYPE_DATA\020\001\022&\n" + + "\"CONNECTION_DEPENDENCY_TYPE_LOGICAL\020\002B\326\001\n" + + " com.google.cloud.designcenter.v1B\n" + + "EnumsProtoP\001ZDcloud.google.com/go/designcenter/apiv1/designcenterpb;designce" + + "nterpb\252\002\034Google.Cloud.DesignCenter.V1\312\002\034" + + "Google\\Cloud\\DesignCenter\\V1\352\002\037Google::Cloud::DesignCenter::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + descriptor.resolveAllFeaturesImmutable(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ExportApplicationIaCRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ExportApplicationIaCRequest.java new file mode 100644 index 000000000000..6dc6da0ba474 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ExportApplicationIaCRequest.java @@ -0,0 +1,1426 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Request message for ExportApplicationIaC method.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ExportApplicationIaCRequest} + */ +@com.google.protobuf.Generated +public final class ExportApplicationIaCRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ExportApplicationIaCRequest) + ExportApplicationIaCRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ExportApplicationIaCRequest"); + } + + // Use ExportApplicationIaCRequest.newBuilder() to construct. + private ExportApplicationIaCRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ExportApplicationIaCRequest() { + name_ = ""; + iacFormat_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ExportApplicationIaCRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ExportApplicationIaCRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ExportApplicationIaCRequest.class, + com.google.cloud.designcenter.v1.ExportApplicationIaCRequest.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The name of the application.
+   * 
+ * + * + * 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 application.
+   * 
+ * + * + * 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 IAC_FORMAT_FIELD_NUMBER = 2; + private int iacFormat_ = 0; + + /** + * + * + *
+   * Optional. The IaC format to generate.
+   * 
+ * + * + * .google.cloud.designcenter.v1.IACFormat iac_format = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for iacFormat. + */ + @java.lang.Override + public int getIacFormatValue() { + return iacFormat_; + } + + /** + * + * + *
+   * Optional. The IaC format to generate.
+   * 
+ * + * + * .google.cloud.designcenter.v1.IACFormat iac_format = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The iacFormat. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.IACFormat getIacFormat() { + com.google.cloud.designcenter.v1.IACFormat result = + com.google.cloud.designcenter.v1.IACFormat.forNumber(iacFormat_); + return result == null ? com.google.cloud.designcenter.v1.IACFormat.UNRECOGNIZED : result; + } + + public static final int ARTIFACT_LOCATION_FIELD_NUMBER = 3; + private com.google.cloud.designcenter.v1.ArtifactLocation artifactLocation_; + + /** + * + * + *
+   * Optional. Specifies the destination for the generated IaC, which can be
+   * Cloud Storage or a Developer Connect repository.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the artifactLocation field is set. + */ + @java.lang.Override + public boolean hasArtifactLocation() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. Specifies the destination for the generated IaC, which can be
+   * Cloud Storage or a Developer Connect repository.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The artifactLocation. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ArtifactLocation getArtifactLocation() { + return artifactLocation_ == null + ? com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance() + : artifactLocation_; + } + + /** + * + * + *
+   * Optional. Specifies the destination for the generated IaC, which can be
+   * Cloud Storage or a Developer Connect repository.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder getArtifactLocationOrBuilder() { + return artifactLocation_ == null + ? com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance() + : artifactLocation_; + } + + public static final int EXPORT_IAC_CONFIG_FIELD_NUMBER = 4; + private com.google.cloud.designcenter.v1.ExportIaCConfig exportIacConfig_; + + /** + * + * + *
+   * Optional. Configuration for exporting IaC.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ExportIaCConfig export_iac_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the exportIacConfig field is set. + */ + @java.lang.Override + public boolean hasExportIacConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. Configuration for exporting IaC.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ExportIaCConfig export_iac_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The exportIacConfig. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ExportIaCConfig getExportIacConfig() { + return exportIacConfig_ == null + ? com.google.cloud.designcenter.v1.ExportIaCConfig.getDefaultInstance() + : exportIacConfig_; + } + + /** + * + * + *
+   * Optional. Configuration for exporting IaC.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ExportIaCConfig export_iac_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ExportIaCConfigOrBuilder getExportIacConfigOrBuilder() { + return exportIacConfig_ == null + ? com.google.cloud.designcenter.v1.ExportIaCConfig.getDefaultInstance() + : exportIacConfig_; + } + + 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (iacFormat_ + != com.google.cloud.designcenter.v1.IACFormat.IAC_FORMAT_UNSPECIFIED.getNumber()) { + output.writeEnum(2, iacFormat_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getArtifactLocation()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getExportIacConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (iacFormat_ + != com.google.cloud.designcenter.v1.IACFormat.IAC_FORMAT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, iacFormat_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getArtifactLocation()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getExportIacConfig()); + } + 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.designcenter.v1.ExportApplicationIaCRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ExportApplicationIaCRequest other = + (com.google.cloud.designcenter.v1.ExportApplicationIaCRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (iacFormat_ != other.iacFormat_) return false; + if (hasArtifactLocation() != other.hasArtifactLocation()) return false; + if (hasArtifactLocation()) { + if (!getArtifactLocation().equals(other.getArtifactLocation())) return false; + } + if (hasExportIacConfig() != other.hasExportIacConfig()) return false; + if (hasExportIacConfig()) { + if (!getExportIacConfig().equals(other.getExportIacConfig())) 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) + IAC_FORMAT_FIELD_NUMBER; + hash = (53 * hash) + iacFormat_; + if (hasArtifactLocation()) { + hash = (37 * hash) + ARTIFACT_LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getArtifactLocation().hashCode(); + } + if (hasExportIacConfig()) { + hash = (37 * hash) + EXPORT_IAC_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getExportIacConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.ExportApplicationIaCRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ExportApplicationIaCRequest 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.designcenter.v1.ExportApplicationIaCRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ExportApplicationIaCRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ExportApplicationIaCRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ExportApplicationIaCRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ExportApplicationIaCRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ExportApplicationIaCRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ExportApplicationIaCRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ExportApplicationIaCRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ExportApplicationIaCRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ExportApplicationIaCRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ExportApplicationIaCRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for ExportApplicationIaC method.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ExportApplicationIaCRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ExportApplicationIaCRequest) + com.google.cloud.designcenter.v1.ExportApplicationIaCRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ExportApplicationIaCRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ExportApplicationIaCRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ExportApplicationIaCRequest.class, + com.google.cloud.designcenter.v1.ExportApplicationIaCRequest.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.ExportApplicationIaCRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetArtifactLocationFieldBuilder(); + internalGetExportIacConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + iacFormat_ = 0; + artifactLocation_ = null; + if (artifactLocationBuilder_ != null) { + artifactLocationBuilder_.dispose(); + artifactLocationBuilder_ = null; + } + exportIacConfig_ = null; + if (exportIacConfigBuilder_ != null) { + exportIacConfigBuilder_.dispose(); + exportIacConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ExportApplicationIaCRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ExportApplicationIaCRequest + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ExportApplicationIaCRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ExportApplicationIaCRequest build() { + com.google.cloud.designcenter.v1.ExportApplicationIaCRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ExportApplicationIaCRequest buildPartial() { + com.google.cloud.designcenter.v1.ExportApplicationIaCRequest result = + new com.google.cloud.designcenter.v1.ExportApplicationIaCRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.ExportApplicationIaCRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.iacFormat_ = iacFormat_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.artifactLocation_ = + artifactLocationBuilder_ == null ? artifactLocation_ : artifactLocationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.exportIacConfig_ = + exportIacConfigBuilder_ == null ? exportIacConfig_ : exportIacConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.ExportApplicationIaCRequest) { + return mergeFrom((com.google.cloud.designcenter.v1.ExportApplicationIaCRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.ExportApplicationIaCRequest other) { + if (other + == com.google.cloud.designcenter.v1.ExportApplicationIaCRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.iacFormat_ != 0) { + setIacFormatValue(other.getIacFormatValue()); + } + if (other.hasArtifactLocation()) { + mergeArtifactLocation(other.getArtifactLocation()); + } + if (other.hasExportIacConfig()) { + mergeExportIacConfig(other.getExportIacConfig()); + } + 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: + { + iacFormat_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + input.readMessage( + internalGetArtifactLocationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetExportIacConfigFieldBuilder().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 name_ = ""; + + /** + * + * + *
+     * Required. The name of the application.
+     * 
+ * + * + * 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 application.
+     * 
+ * + * + * 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 application.
+     * 
+ * + * + * 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 application.
+     * 
+ * + * + * 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 application.
+     * 
+ * + * + * 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 iacFormat_ = 0; + + /** + * + * + *
+     * Optional. The IaC format to generate.
+     * 
+ * + * + * .google.cloud.designcenter.v1.IACFormat iac_format = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for iacFormat. + */ + @java.lang.Override + public int getIacFormatValue() { + return iacFormat_; + } + + /** + * + * + *
+     * Optional. The IaC format to generate.
+     * 
+ * + * + * .google.cloud.designcenter.v1.IACFormat iac_format = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for iacFormat to set. + * @return This builder for chaining. + */ + public Builder setIacFormatValue(int value) { + iacFormat_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The IaC format to generate.
+     * 
+ * + * + * .google.cloud.designcenter.v1.IACFormat iac_format = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The iacFormat. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.IACFormat getIacFormat() { + com.google.cloud.designcenter.v1.IACFormat result = + com.google.cloud.designcenter.v1.IACFormat.forNumber(iacFormat_); + return result == null ? com.google.cloud.designcenter.v1.IACFormat.UNRECOGNIZED : result; + } + + /** + * + * + *
+     * Optional. The IaC format to generate.
+     * 
+ * + * + * .google.cloud.designcenter.v1.IACFormat iac_format = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The iacFormat to set. + * @return This builder for chaining. + */ + public Builder setIacFormat(com.google.cloud.designcenter.v1.IACFormat value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + iacFormat_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The IaC format to generate.
+     * 
+ * + * + * .google.cloud.designcenter.v1.IACFormat iac_format = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearIacFormat() { + bitField0_ = (bitField0_ & ~0x00000002); + iacFormat_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.designcenter.v1.ArtifactLocation artifactLocation_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ArtifactLocation, + com.google.cloud.designcenter.v1.ArtifactLocation.Builder, + com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder> + artifactLocationBuilder_; + + /** + * + * + *
+     * Optional. Specifies the destination for the generated IaC, which can be
+     * Cloud Storage or a Developer Connect repository.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the artifactLocation field is set. + */ + public boolean hasArtifactLocation() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Optional. Specifies the destination for the generated IaC, which can be
+     * Cloud Storage or a Developer Connect repository.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The artifactLocation. + */ + public com.google.cloud.designcenter.v1.ArtifactLocation getArtifactLocation() { + if (artifactLocationBuilder_ == null) { + return artifactLocation_ == null + ? com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance() + : artifactLocation_; + } else { + return artifactLocationBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Specifies the destination for the generated IaC, which can be
+     * Cloud Storage or a Developer Connect repository.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setArtifactLocation(com.google.cloud.designcenter.v1.ArtifactLocation value) { + if (artifactLocationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + artifactLocation_ = value; + } else { + artifactLocationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Specifies the destination for the generated IaC, which can be
+     * Cloud Storage or a Developer Connect repository.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setArtifactLocation( + com.google.cloud.designcenter.v1.ArtifactLocation.Builder builderForValue) { + if (artifactLocationBuilder_ == null) { + artifactLocation_ = builderForValue.build(); + } else { + artifactLocationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Specifies the destination for the generated IaC, which can be
+     * Cloud Storage or a Developer Connect repository.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeArtifactLocation(com.google.cloud.designcenter.v1.ArtifactLocation value) { + if (artifactLocationBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && artifactLocation_ != null + && artifactLocation_ + != com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance()) { + getArtifactLocationBuilder().mergeFrom(value); + } else { + artifactLocation_ = value; + } + } else { + artifactLocationBuilder_.mergeFrom(value); + } + if (artifactLocation_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Specifies the destination for the generated IaC, which can be
+     * Cloud Storage or a Developer Connect repository.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearArtifactLocation() { + bitField0_ = (bitField0_ & ~0x00000004); + artifactLocation_ = null; + if (artifactLocationBuilder_ != null) { + artifactLocationBuilder_.dispose(); + artifactLocationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Specifies the destination for the generated IaC, which can be
+     * Cloud Storage or a Developer Connect repository.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ArtifactLocation.Builder getArtifactLocationBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetArtifactLocationFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Specifies the destination for the generated IaC, which can be
+     * Cloud Storage or a Developer Connect repository.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder + getArtifactLocationOrBuilder() { + if (artifactLocationBuilder_ != null) { + return artifactLocationBuilder_.getMessageOrBuilder(); + } else { + return artifactLocation_ == null + ? com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance() + : artifactLocation_; + } + } + + /** + * + * + *
+     * Optional. Specifies the destination for the generated IaC, which can be
+     * Cloud Storage or a Developer Connect repository.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ArtifactLocation, + com.google.cloud.designcenter.v1.ArtifactLocation.Builder, + com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder> + internalGetArtifactLocationFieldBuilder() { + if (artifactLocationBuilder_ == null) { + artifactLocationBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ArtifactLocation, + com.google.cloud.designcenter.v1.ArtifactLocation.Builder, + com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder>( + getArtifactLocation(), getParentForChildren(), isClean()); + artifactLocation_ = null; + } + return artifactLocationBuilder_; + } + + private com.google.cloud.designcenter.v1.ExportIaCConfig exportIacConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ExportIaCConfig, + com.google.cloud.designcenter.v1.ExportIaCConfig.Builder, + com.google.cloud.designcenter.v1.ExportIaCConfigOrBuilder> + exportIacConfigBuilder_; + + /** + * + * + *
+     * Optional. Configuration for exporting IaC.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ExportIaCConfig export_iac_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the exportIacConfig field is set. + */ + public boolean hasExportIacConfig() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Optional. Configuration for exporting IaC.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ExportIaCConfig export_iac_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The exportIacConfig. + */ + public com.google.cloud.designcenter.v1.ExportIaCConfig getExportIacConfig() { + if (exportIacConfigBuilder_ == null) { + return exportIacConfig_ == null + ? com.google.cloud.designcenter.v1.ExportIaCConfig.getDefaultInstance() + : exportIacConfig_; + } else { + return exportIacConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Configuration for exporting IaC.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ExportIaCConfig export_iac_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setExportIacConfig(com.google.cloud.designcenter.v1.ExportIaCConfig value) { + if (exportIacConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + exportIacConfig_ = value; + } else { + exportIacConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Configuration for exporting IaC.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ExportIaCConfig export_iac_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setExportIacConfig( + com.google.cloud.designcenter.v1.ExportIaCConfig.Builder builderForValue) { + if (exportIacConfigBuilder_ == null) { + exportIacConfig_ = builderForValue.build(); + } else { + exportIacConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Configuration for exporting IaC.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ExportIaCConfig export_iac_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeExportIacConfig(com.google.cloud.designcenter.v1.ExportIaCConfig value) { + if (exportIacConfigBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && exportIacConfig_ != null + && exportIacConfig_ + != com.google.cloud.designcenter.v1.ExportIaCConfig.getDefaultInstance()) { + getExportIacConfigBuilder().mergeFrom(value); + } else { + exportIacConfig_ = value; + } + } else { + exportIacConfigBuilder_.mergeFrom(value); + } + if (exportIacConfig_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Configuration for exporting IaC.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ExportIaCConfig export_iac_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearExportIacConfig() { + bitField0_ = (bitField0_ & ~0x00000008); + exportIacConfig_ = null; + if (exportIacConfigBuilder_ != null) { + exportIacConfigBuilder_.dispose(); + exportIacConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Configuration for exporting IaC.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ExportIaCConfig export_iac_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ExportIaCConfig.Builder getExportIacConfigBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetExportIacConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Configuration for exporting IaC.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ExportIaCConfig export_iac_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ExportIaCConfigOrBuilder getExportIacConfigOrBuilder() { + if (exportIacConfigBuilder_ != null) { + return exportIacConfigBuilder_.getMessageOrBuilder(); + } else { + return exportIacConfig_ == null + ? com.google.cloud.designcenter.v1.ExportIaCConfig.getDefaultInstance() + : exportIacConfig_; + } + } + + /** + * + * + *
+     * Optional. Configuration for exporting IaC.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ExportIaCConfig export_iac_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ExportIaCConfig, + com.google.cloud.designcenter.v1.ExportIaCConfig.Builder, + com.google.cloud.designcenter.v1.ExportIaCConfigOrBuilder> + internalGetExportIacConfigFieldBuilder() { + if (exportIacConfigBuilder_ == null) { + exportIacConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ExportIaCConfig, + com.google.cloud.designcenter.v1.ExportIaCConfig.Builder, + com.google.cloud.designcenter.v1.ExportIaCConfigOrBuilder>( + getExportIacConfig(), getParentForChildren(), isClean()); + exportIacConfig_ = null; + } + return exportIacConfigBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ExportApplicationIaCRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ExportApplicationIaCRequest) + private static final com.google.cloud.designcenter.v1.ExportApplicationIaCRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.ExportApplicationIaCRequest(); + } + + public static com.google.cloud.designcenter.v1.ExportApplicationIaCRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportApplicationIaCRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ExportApplicationIaCRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ExportApplicationIaCRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ExportApplicationIaCRequestOrBuilder.java new file mode 100644 index 000000000000..79ea091d1501 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ExportApplicationIaCRequestOrBuilder.java @@ -0,0 +1,177 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ExportApplicationIaCRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ExportApplicationIaCRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the application.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The name of the application.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. The IaC format to generate.
+   * 
+ * + * + * .google.cloud.designcenter.v1.IACFormat iac_format = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for iacFormat. + */ + int getIacFormatValue(); + + /** + * + * + *
+   * Optional. The IaC format to generate.
+   * 
+ * + * + * .google.cloud.designcenter.v1.IACFormat iac_format = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The iacFormat. + */ + com.google.cloud.designcenter.v1.IACFormat getIacFormat(); + + /** + * + * + *
+   * Optional. Specifies the destination for the generated IaC, which can be
+   * Cloud Storage or a Developer Connect repository.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the artifactLocation field is set. + */ + boolean hasArtifactLocation(); + + /** + * + * + *
+   * Optional. Specifies the destination for the generated IaC, which can be
+   * Cloud Storage or a Developer Connect repository.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The artifactLocation. + */ + com.google.cloud.designcenter.v1.ArtifactLocation getArtifactLocation(); + + /** + * + * + *
+   * Optional. Specifies the destination for the generated IaC, which can be
+   * Cloud Storage or a Developer Connect repository.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder getArtifactLocationOrBuilder(); + + /** + * + * + *
+   * Optional. Configuration for exporting IaC.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ExportIaCConfig export_iac_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the exportIacConfig field is set. + */ + boolean hasExportIacConfig(); + + /** + * + * + *
+   * Optional. Configuration for exporting IaC.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ExportIaCConfig export_iac_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The exportIacConfig. + */ + com.google.cloud.designcenter.v1.ExportIaCConfig getExportIacConfig(); + + /** + * + * + *
+   * Optional. Configuration for exporting IaC.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ExportIaCConfig export_iac_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.ExportIaCConfigOrBuilder getExportIacConfigOrBuilder(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ExportApplicationIaCResponse.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ExportApplicationIaCResponse.java new file mode 100644 index 000000000000..a8c669e9032f --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ExportApplicationIaCResponse.java @@ -0,0 +1,998 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Response message for ExportApplicationIaC method.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ExportApplicationIaCResponse} + */ +@com.google.protobuf.Generated +public final class ExportApplicationIaCResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ExportApplicationIaCResponse) + ExportApplicationIaCResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ExportApplicationIaCResponse"); + } + + // Use ExportApplicationIaCResponse.newBuilder() to construct. + private ExportApplicationIaCResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ExportApplicationIaCResponse() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ExportApplicationIaCResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ExportApplicationIaCResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ExportApplicationIaCResponse.class, + com.google.cloud.designcenter.v1.ExportApplicationIaCResponse.Builder.class); + } + + private int bitField0_; + public static final int ARTIFACT_LOCATION_FIELD_NUMBER = 1; + private com.google.cloud.designcenter.v1.ArtifactLocation artifactLocation_; + + /** + * + * + *
+   * The destination where the generated IaC was written.
+   * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 1; + * + * @return Whether the artifactLocation field is set. + */ + @java.lang.Override + public boolean hasArtifactLocation() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * The destination where the generated IaC was written.
+   * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 1; + * + * @return The artifactLocation. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ArtifactLocation getArtifactLocation() { + return artifactLocation_ == null + ? com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance() + : artifactLocation_; + } + + /** + * + * + *
+   * The destination where the generated IaC was written.
+   * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 1; + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder getArtifactLocationOrBuilder() { + return artifactLocation_ == null + ? com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance() + : artifactLocation_; + } + + public static final int ROOT_MODULES_METADATA_FIELD_NUMBER = 2; + private com.google.cloud.designcenter.v1.RootModulesMetadata rootModulesMetadata_; + + /** + * + * + *
+   * Root modules metadata of the application.
+   * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 2; + * + * @return Whether the rootModulesMetadata field is set. + */ + @java.lang.Override + public boolean hasRootModulesMetadata() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Root modules metadata of the application.
+   * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 2; + * + * @return The rootModulesMetadata. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.RootModulesMetadata getRootModulesMetadata() { + return rootModulesMetadata_ == null + ? com.google.cloud.designcenter.v1.RootModulesMetadata.getDefaultInstance() + : rootModulesMetadata_; + } + + /** + * + * + *
+   * Root modules metadata of the application.
+   * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 2; + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.RootModulesMetadataOrBuilder + getRootModulesMetadataOrBuilder() { + return rootModulesMetadata_ == null + ? com.google.cloud.designcenter.v1.RootModulesMetadata.getDefaultInstance() + : rootModulesMetadata_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getArtifactLocation()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getRootModulesMetadata()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getArtifactLocation()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRootModulesMetadata()); + } + 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.designcenter.v1.ExportApplicationIaCResponse)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ExportApplicationIaCResponse other = + (com.google.cloud.designcenter.v1.ExportApplicationIaCResponse) obj; + + if (hasArtifactLocation() != other.hasArtifactLocation()) return false; + if (hasArtifactLocation()) { + if (!getArtifactLocation().equals(other.getArtifactLocation())) return false; + } + if (hasRootModulesMetadata() != other.hasRootModulesMetadata()) return false; + if (hasRootModulesMetadata()) { + if (!getRootModulesMetadata().equals(other.getRootModulesMetadata())) 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 (hasArtifactLocation()) { + hash = (37 * hash) + ARTIFACT_LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getArtifactLocation().hashCode(); + } + if (hasRootModulesMetadata()) { + hash = (37 * hash) + ROOT_MODULES_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getRootModulesMetadata().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.ExportApplicationIaCResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ExportApplicationIaCResponse 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.designcenter.v1.ExportApplicationIaCResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ExportApplicationIaCResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ExportApplicationIaCResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ExportApplicationIaCResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ExportApplicationIaCResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ExportApplicationIaCResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ExportApplicationIaCResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ExportApplicationIaCResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ExportApplicationIaCResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ExportApplicationIaCResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ExportApplicationIaCResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response message for ExportApplicationIaC method.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ExportApplicationIaCResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ExportApplicationIaCResponse) + com.google.cloud.designcenter.v1.ExportApplicationIaCResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ExportApplicationIaCResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ExportApplicationIaCResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ExportApplicationIaCResponse.class, + com.google.cloud.designcenter.v1.ExportApplicationIaCResponse.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.ExportApplicationIaCResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetArtifactLocationFieldBuilder(); + internalGetRootModulesMetadataFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + artifactLocation_ = null; + if (artifactLocationBuilder_ != null) { + artifactLocationBuilder_.dispose(); + artifactLocationBuilder_ = null; + } + rootModulesMetadata_ = null; + if (rootModulesMetadataBuilder_ != null) { + rootModulesMetadataBuilder_.dispose(); + rootModulesMetadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ExportApplicationIaCResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ExportApplicationIaCResponse + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ExportApplicationIaCResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ExportApplicationIaCResponse build() { + com.google.cloud.designcenter.v1.ExportApplicationIaCResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ExportApplicationIaCResponse buildPartial() { + com.google.cloud.designcenter.v1.ExportApplicationIaCResponse result = + new com.google.cloud.designcenter.v1.ExportApplicationIaCResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.ExportApplicationIaCResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.artifactLocation_ = + artifactLocationBuilder_ == null ? artifactLocation_ : artifactLocationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.rootModulesMetadata_ = + rootModulesMetadataBuilder_ == null + ? rootModulesMetadata_ + : rootModulesMetadataBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.ExportApplicationIaCResponse) { + return mergeFrom((com.google.cloud.designcenter.v1.ExportApplicationIaCResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.ExportApplicationIaCResponse other) { + if (other + == com.google.cloud.designcenter.v1.ExportApplicationIaCResponse.getDefaultInstance()) + return this; + if (other.hasArtifactLocation()) { + mergeArtifactLocation(other.getArtifactLocation()); + } + if (other.hasRootModulesMetadata()) { + mergeRootModulesMetadata(other.getRootModulesMetadata()); + } + 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( + internalGetArtifactLocationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetRootModulesMetadataFieldBuilder().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.designcenter.v1.ArtifactLocation artifactLocation_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ArtifactLocation, + com.google.cloud.designcenter.v1.ArtifactLocation.Builder, + com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder> + artifactLocationBuilder_; + + /** + * + * + *
+     * The destination where the generated IaC was written.
+     * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 1; + * + * @return Whether the artifactLocation field is set. + */ + public boolean hasArtifactLocation() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * The destination where the generated IaC was written.
+     * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 1; + * + * @return The artifactLocation. + */ + public com.google.cloud.designcenter.v1.ArtifactLocation getArtifactLocation() { + if (artifactLocationBuilder_ == null) { + return artifactLocation_ == null + ? com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance() + : artifactLocation_; + } else { + return artifactLocationBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * The destination where the generated IaC was written.
+     * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 1; + */ + public Builder setArtifactLocation(com.google.cloud.designcenter.v1.ArtifactLocation value) { + if (artifactLocationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + artifactLocation_ = value; + } else { + artifactLocationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The destination where the generated IaC was written.
+     * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 1; + */ + public Builder setArtifactLocation( + com.google.cloud.designcenter.v1.ArtifactLocation.Builder builderForValue) { + if (artifactLocationBuilder_ == null) { + artifactLocation_ = builderForValue.build(); + } else { + artifactLocationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The destination where the generated IaC was written.
+     * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 1; + */ + public Builder mergeArtifactLocation(com.google.cloud.designcenter.v1.ArtifactLocation value) { + if (artifactLocationBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && artifactLocation_ != null + && artifactLocation_ + != com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance()) { + getArtifactLocationBuilder().mergeFrom(value); + } else { + artifactLocation_ = value; + } + } else { + artifactLocationBuilder_.mergeFrom(value); + } + if (artifactLocation_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The destination where the generated IaC was written.
+     * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 1; + */ + public Builder clearArtifactLocation() { + bitField0_ = (bitField0_ & ~0x00000001); + artifactLocation_ = null; + if (artifactLocationBuilder_ != null) { + artifactLocationBuilder_.dispose(); + artifactLocationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * The destination where the generated IaC was written.
+     * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 1; + */ + public com.google.cloud.designcenter.v1.ArtifactLocation.Builder getArtifactLocationBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetArtifactLocationFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * The destination where the generated IaC was written.
+     * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 1; + */ + public com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder + getArtifactLocationOrBuilder() { + if (artifactLocationBuilder_ != null) { + return artifactLocationBuilder_.getMessageOrBuilder(); + } else { + return artifactLocation_ == null + ? com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance() + : artifactLocation_; + } + } + + /** + * + * + *
+     * The destination where the generated IaC was written.
+     * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ArtifactLocation, + com.google.cloud.designcenter.v1.ArtifactLocation.Builder, + com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder> + internalGetArtifactLocationFieldBuilder() { + if (artifactLocationBuilder_ == null) { + artifactLocationBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ArtifactLocation, + com.google.cloud.designcenter.v1.ArtifactLocation.Builder, + com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder>( + getArtifactLocation(), getParentForChildren(), isClean()); + artifactLocation_ = null; + } + return artifactLocationBuilder_; + } + + private com.google.cloud.designcenter.v1.RootModulesMetadata rootModulesMetadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.RootModulesMetadata, + com.google.cloud.designcenter.v1.RootModulesMetadata.Builder, + com.google.cloud.designcenter.v1.RootModulesMetadataOrBuilder> + rootModulesMetadataBuilder_; + + /** + * + * + *
+     * Root modules metadata of the application.
+     * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 2; + * + * @return Whether the rootModulesMetadata field is set. + */ + public boolean hasRootModulesMetadata() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Root modules metadata of the application.
+     * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 2; + * + * @return The rootModulesMetadata. + */ + public com.google.cloud.designcenter.v1.RootModulesMetadata getRootModulesMetadata() { + if (rootModulesMetadataBuilder_ == null) { + return rootModulesMetadata_ == null + ? com.google.cloud.designcenter.v1.RootModulesMetadata.getDefaultInstance() + : rootModulesMetadata_; + } else { + return rootModulesMetadataBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Root modules metadata of the application.
+     * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 2; + */ + public Builder setRootModulesMetadata( + com.google.cloud.designcenter.v1.RootModulesMetadata value) { + if (rootModulesMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rootModulesMetadata_ = value; + } else { + rootModulesMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Root modules metadata of the application.
+     * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 2; + */ + public Builder setRootModulesMetadata( + com.google.cloud.designcenter.v1.RootModulesMetadata.Builder builderForValue) { + if (rootModulesMetadataBuilder_ == null) { + rootModulesMetadata_ = builderForValue.build(); + } else { + rootModulesMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Root modules metadata of the application.
+     * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 2; + */ + public Builder mergeRootModulesMetadata( + com.google.cloud.designcenter.v1.RootModulesMetadata value) { + if (rootModulesMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && rootModulesMetadata_ != null + && rootModulesMetadata_ + != com.google.cloud.designcenter.v1.RootModulesMetadata.getDefaultInstance()) { + getRootModulesMetadataBuilder().mergeFrom(value); + } else { + rootModulesMetadata_ = value; + } + } else { + rootModulesMetadataBuilder_.mergeFrom(value); + } + if (rootModulesMetadata_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Root modules metadata of the application.
+     * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 2; + */ + public Builder clearRootModulesMetadata() { + bitField0_ = (bitField0_ & ~0x00000002); + rootModulesMetadata_ = null; + if (rootModulesMetadataBuilder_ != null) { + rootModulesMetadataBuilder_.dispose(); + rootModulesMetadataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Root modules metadata of the application.
+     * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 2; + */ + public com.google.cloud.designcenter.v1.RootModulesMetadata.Builder + getRootModulesMetadataBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetRootModulesMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Root modules metadata of the application.
+     * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 2; + */ + public com.google.cloud.designcenter.v1.RootModulesMetadataOrBuilder + getRootModulesMetadataOrBuilder() { + if (rootModulesMetadataBuilder_ != null) { + return rootModulesMetadataBuilder_.getMessageOrBuilder(); + } else { + return rootModulesMetadata_ == null + ? com.google.cloud.designcenter.v1.RootModulesMetadata.getDefaultInstance() + : rootModulesMetadata_; + } + } + + /** + * + * + *
+     * Root modules metadata of the application.
+     * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.RootModulesMetadata, + com.google.cloud.designcenter.v1.RootModulesMetadata.Builder, + com.google.cloud.designcenter.v1.RootModulesMetadataOrBuilder> + internalGetRootModulesMetadataFieldBuilder() { + if (rootModulesMetadataBuilder_ == null) { + rootModulesMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.RootModulesMetadata, + com.google.cloud.designcenter.v1.RootModulesMetadata.Builder, + com.google.cloud.designcenter.v1.RootModulesMetadataOrBuilder>( + getRootModulesMetadata(), getParentForChildren(), isClean()); + rootModulesMetadata_ = null; + } + return rootModulesMetadataBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ExportApplicationIaCResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ExportApplicationIaCResponse) + private static final com.google.cloud.designcenter.v1.ExportApplicationIaCResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.ExportApplicationIaCResponse(); + } + + public static com.google.cloud.designcenter.v1.ExportApplicationIaCResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportApplicationIaCResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ExportApplicationIaCResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ExportApplicationIaCResponseOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ExportApplicationIaCResponseOrBuilder.java new file mode 100644 index 000000000000..bfaaadf200da --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ExportApplicationIaCResponseOrBuilder.java @@ -0,0 +1,102 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ExportApplicationIaCResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ExportApplicationIaCResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The destination where the generated IaC was written.
+   * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 1; + * + * @return Whether the artifactLocation field is set. + */ + boolean hasArtifactLocation(); + + /** + * + * + *
+   * The destination where the generated IaC was written.
+   * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 1; + * + * @return The artifactLocation. + */ + com.google.cloud.designcenter.v1.ArtifactLocation getArtifactLocation(); + + /** + * + * + *
+   * The destination where the generated IaC was written.
+   * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 1; + */ + com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder getArtifactLocationOrBuilder(); + + /** + * + * + *
+   * Root modules metadata of the application.
+   * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 2; + * + * @return Whether the rootModulesMetadata field is set. + */ + boolean hasRootModulesMetadata(); + + /** + * + * + *
+   * Root modules metadata of the application.
+   * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 2; + * + * @return The rootModulesMetadata. + */ + com.google.cloud.designcenter.v1.RootModulesMetadata getRootModulesMetadata(); + + /** + * + * + *
+   * Root modules metadata of the application.
+   * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 2; + */ + com.google.cloud.designcenter.v1.RootModulesMetadataOrBuilder getRootModulesMetadataOrBuilder(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ExportApplicationTemplateIaCRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ExportApplicationTemplateIaCRequest.java new file mode 100644 index 000000000000..104ac5b244d1 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ExportApplicationTemplateIaCRequest.java @@ -0,0 +1,1275 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Request message for ExportApplicationTemplateIaC method.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ExportApplicationTemplateIaCRequest} + */ +@com.google.protobuf.Generated +public final class ExportApplicationTemplateIaCRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ExportApplicationTemplateIaCRequest) + ExportApplicationTemplateIaCRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ExportApplicationTemplateIaCRequest"); + } + + // Use ExportApplicationTemplateIaCRequest.newBuilder() to construct. + private ExportApplicationTemplateIaCRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ExportApplicationTemplateIaCRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ExportApplicationTemplateIaCRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ExportApplicationTemplateIaCRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCRequest.class, + com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCRequest.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The name of the application template.
+   * 
+ * + * + * 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 application template.
+   * 
+ * + * + * 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 ARTIFACT_LOCATION_FIELD_NUMBER = 3; + private com.google.cloud.designcenter.v1.ArtifactLocation artifactLocation_; + + /** + * + * + *
+   * Optional. Specifies the destination for the generated IaC, which can be
+   * Cloud Storage or a Developer Connect repository.
+   * Default is Google Cloud Storage.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the artifactLocation field is set. + */ + @java.lang.Override + public boolean hasArtifactLocation() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. Specifies the destination for the generated IaC, which can be
+   * Cloud Storage or a Developer Connect repository.
+   * Default is Google Cloud Storage.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The artifactLocation. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ArtifactLocation getArtifactLocation() { + return artifactLocation_ == null + ? com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance() + : artifactLocation_; + } + + /** + * + * + *
+   * Optional. Specifies the destination for the generated IaC, which can be
+   * Cloud Storage or a Developer Connect repository.
+   * Default is Google Cloud Storage.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder getArtifactLocationOrBuilder() { + return artifactLocation_ == null + ? com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance() + : artifactLocation_; + } + + public static final int EXPORT_IAC_CONFIG_FIELD_NUMBER = 5; + private com.google.cloud.designcenter.v1.ExportIaCConfig exportIacConfig_; + + /** + * + * + *
+   * Optional. Configuration for exporting IaC.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ExportIaCConfig export_iac_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the exportIacConfig field is set. + */ + @java.lang.Override + public boolean hasExportIacConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. Configuration for exporting IaC.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ExportIaCConfig export_iac_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The exportIacConfig. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ExportIaCConfig getExportIacConfig() { + return exportIacConfig_ == null + ? com.google.cloud.designcenter.v1.ExportIaCConfig.getDefaultInstance() + : exportIacConfig_; + } + + /** + * + * + *
+   * Optional. Configuration for exporting IaC.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ExportIaCConfig export_iac_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ExportIaCConfigOrBuilder getExportIacConfigOrBuilder() { + return exportIacConfig_ == null + ? com.google.cloud.designcenter.v1.ExportIaCConfig.getDefaultInstance() + : exportIacConfig_; + } + + 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getArtifactLocation()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getExportIacConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getArtifactLocation()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getExportIacConfig()); + } + 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.designcenter.v1.ExportApplicationTemplateIaCRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCRequest other = + (com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (hasArtifactLocation() != other.hasArtifactLocation()) return false; + if (hasArtifactLocation()) { + if (!getArtifactLocation().equals(other.getArtifactLocation())) return false; + } + if (hasExportIacConfig() != other.hasExportIacConfig()) return false; + if (hasExportIacConfig()) { + if (!getExportIacConfig().equals(other.getExportIacConfig())) 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 (hasArtifactLocation()) { + hash = (37 * hash) + ARTIFACT_LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getArtifactLocation().hashCode(); + } + if (hasExportIacConfig()) { + hash = (37 * hash) + EXPORT_IAC_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getExportIacConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCRequest 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.designcenter.v1.ExportApplicationTemplateIaCRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ExportApplicationTemplateIaCRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for ExportApplicationTemplateIaC method.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ExportApplicationTemplateIaCRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ExportApplicationTemplateIaCRequest) + com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ExportApplicationTemplateIaCRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ExportApplicationTemplateIaCRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCRequest.class, + com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCRequest.Builder.class); + } + + // Construct using + // com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetArtifactLocationFieldBuilder(); + internalGetExportIacConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + artifactLocation_ = null; + if (artifactLocationBuilder_ != null) { + artifactLocationBuilder_.dispose(); + artifactLocationBuilder_ = null; + } + exportIacConfig_ = null; + if (exportIacConfigBuilder_ != null) { + exportIacConfigBuilder_.dispose(); + exportIacConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ExportApplicationTemplateIaCRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCRequest + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCRequest build() { + com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCRequest buildPartial() { + com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCRequest result = + new com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.artifactLocation_ = + artifactLocationBuilder_ == null ? artifactLocation_ : artifactLocationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.exportIacConfig_ = + exportIacConfigBuilder_ == null ? exportIacConfig_ : exportIacConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCRequest) { + return mergeFrom( + (com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCRequest other) { + if (other + == com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasArtifactLocation()) { + mergeArtifactLocation(other.getArtifactLocation()); + } + if (other.hasExportIacConfig()) { + mergeExportIacConfig(other.getExportIacConfig()); + } + 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 26: + { + input.readMessage( + internalGetArtifactLocationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 26 + case 42: + { + input.readMessage( + internalGetExportIacConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + 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_ = ""; + + /** + * + * + *
+     * Required. The name of the application template.
+     * 
+ * + * + * 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 application template.
+     * 
+ * + * + * 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 application template.
+     * 
+ * + * + * 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 application template.
+     * 
+ * + * + * 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 application template.
+     * 
+ * + * + * 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 com.google.cloud.designcenter.v1.ArtifactLocation artifactLocation_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ArtifactLocation, + com.google.cloud.designcenter.v1.ArtifactLocation.Builder, + com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder> + artifactLocationBuilder_; + + /** + * + * + *
+     * Optional. Specifies the destination for the generated IaC, which can be
+     * Cloud Storage or a Developer Connect repository.
+     * Default is Google Cloud Storage.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the artifactLocation field is set. + */ + public boolean hasArtifactLocation() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Optional. Specifies the destination for the generated IaC, which can be
+     * Cloud Storage or a Developer Connect repository.
+     * Default is Google Cloud Storage.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The artifactLocation. + */ + public com.google.cloud.designcenter.v1.ArtifactLocation getArtifactLocation() { + if (artifactLocationBuilder_ == null) { + return artifactLocation_ == null + ? com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance() + : artifactLocation_; + } else { + return artifactLocationBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Specifies the destination for the generated IaC, which can be
+     * Cloud Storage or a Developer Connect repository.
+     * Default is Google Cloud Storage.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setArtifactLocation(com.google.cloud.designcenter.v1.ArtifactLocation value) { + if (artifactLocationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + artifactLocation_ = value; + } else { + artifactLocationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Specifies the destination for the generated IaC, which can be
+     * Cloud Storage or a Developer Connect repository.
+     * Default is Google Cloud Storage.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setArtifactLocation( + com.google.cloud.designcenter.v1.ArtifactLocation.Builder builderForValue) { + if (artifactLocationBuilder_ == null) { + artifactLocation_ = builderForValue.build(); + } else { + artifactLocationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Specifies the destination for the generated IaC, which can be
+     * Cloud Storage or a Developer Connect repository.
+     * Default is Google Cloud Storage.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeArtifactLocation(com.google.cloud.designcenter.v1.ArtifactLocation value) { + if (artifactLocationBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && artifactLocation_ != null + && artifactLocation_ + != com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance()) { + getArtifactLocationBuilder().mergeFrom(value); + } else { + artifactLocation_ = value; + } + } else { + artifactLocationBuilder_.mergeFrom(value); + } + if (artifactLocation_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Specifies the destination for the generated IaC, which can be
+     * Cloud Storage or a Developer Connect repository.
+     * Default is Google Cloud Storage.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearArtifactLocation() { + bitField0_ = (bitField0_ & ~0x00000002); + artifactLocation_ = null; + if (artifactLocationBuilder_ != null) { + artifactLocationBuilder_.dispose(); + artifactLocationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Specifies the destination for the generated IaC, which can be
+     * Cloud Storage or a Developer Connect repository.
+     * Default is Google Cloud Storage.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ArtifactLocation.Builder getArtifactLocationBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetArtifactLocationFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Specifies the destination for the generated IaC, which can be
+     * Cloud Storage or a Developer Connect repository.
+     * Default is Google Cloud Storage.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder + getArtifactLocationOrBuilder() { + if (artifactLocationBuilder_ != null) { + return artifactLocationBuilder_.getMessageOrBuilder(); + } else { + return artifactLocation_ == null + ? com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance() + : artifactLocation_; + } + } + + /** + * + * + *
+     * Optional. Specifies the destination for the generated IaC, which can be
+     * Cloud Storage or a Developer Connect repository.
+     * Default is Google Cloud Storage.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ArtifactLocation, + com.google.cloud.designcenter.v1.ArtifactLocation.Builder, + com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder> + internalGetArtifactLocationFieldBuilder() { + if (artifactLocationBuilder_ == null) { + artifactLocationBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ArtifactLocation, + com.google.cloud.designcenter.v1.ArtifactLocation.Builder, + com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder>( + getArtifactLocation(), getParentForChildren(), isClean()); + artifactLocation_ = null; + } + return artifactLocationBuilder_; + } + + private com.google.cloud.designcenter.v1.ExportIaCConfig exportIacConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ExportIaCConfig, + com.google.cloud.designcenter.v1.ExportIaCConfig.Builder, + com.google.cloud.designcenter.v1.ExportIaCConfigOrBuilder> + exportIacConfigBuilder_; + + /** + * + * + *
+     * Optional. Configuration for exporting IaC.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ExportIaCConfig export_iac_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the exportIacConfig field is set. + */ + public boolean hasExportIacConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Optional. Configuration for exporting IaC.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ExportIaCConfig export_iac_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The exportIacConfig. + */ + public com.google.cloud.designcenter.v1.ExportIaCConfig getExportIacConfig() { + if (exportIacConfigBuilder_ == null) { + return exportIacConfig_ == null + ? com.google.cloud.designcenter.v1.ExportIaCConfig.getDefaultInstance() + : exportIacConfig_; + } else { + return exportIacConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Configuration for exporting IaC.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ExportIaCConfig export_iac_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setExportIacConfig(com.google.cloud.designcenter.v1.ExportIaCConfig value) { + if (exportIacConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + exportIacConfig_ = value; + } else { + exportIacConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Configuration for exporting IaC.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ExportIaCConfig export_iac_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setExportIacConfig( + com.google.cloud.designcenter.v1.ExportIaCConfig.Builder builderForValue) { + if (exportIacConfigBuilder_ == null) { + exportIacConfig_ = builderForValue.build(); + } else { + exportIacConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Configuration for exporting IaC.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ExportIaCConfig export_iac_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeExportIacConfig(com.google.cloud.designcenter.v1.ExportIaCConfig value) { + if (exportIacConfigBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && exportIacConfig_ != null + && exportIacConfig_ + != com.google.cloud.designcenter.v1.ExportIaCConfig.getDefaultInstance()) { + getExportIacConfigBuilder().mergeFrom(value); + } else { + exportIacConfig_ = value; + } + } else { + exportIacConfigBuilder_.mergeFrom(value); + } + if (exportIacConfig_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Configuration for exporting IaC.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ExportIaCConfig export_iac_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearExportIacConfig() { + bitField0_ = (bitField0_ & ~0x00000004); + exportIacConfig_ = null; + if (exportIacConfigBuilder_ != null) { + exportIacConfigBuilder_.dispose(); + exportIacConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Configuration for exporting IaC.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ExportIaCConfig export_iac_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ExportIaCConfig.Builder getExportIacConfigBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetExportIacConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Configuration for exporting IaC.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ExportIaCConfig export_iac_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ExportIaCConfigOrBuilder getExportIacConfigOrBuilder() { + if (exportIacConfigBuilder_ != null) { + return exportIacConfigBuilder_.getMessageOrBuilder(); + } else { + return exportIacConfig_ == null + ? com.google.cloud.designcenter.v1.ExportIaCConfig.getDefaultInstance() + : exportIacConfig_; + } + } + + /** + * + * + *
+     * Optional. Configuration for exporting IaC.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ExportIaCConfig export_iac_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ExportIaCConfig, + com.google.cloud.designcenter.v1.ExportIaCConfig.Builder, + com.google.cloud.designcenter.v1.ExportIaCConfigOrBuilder> + internalGetExportIacConfigFieldBuilder() { + if (exportIacConfigBuilder_ == null) { + exportIacConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ExportIaCConfig, + com.google.cloud.designcenter.v1.ExportIaCConfig.Builder, + com.google.cloud.designcenter.v1.ExportIaCConfigOrBuilder>( + getExportIacConfig(), getParentForChildren(), isClean()); + exportIacConfig_ = null; + } + return exportIacConfigBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ExportApplicationTemplateIaCRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ExportApplicationTemplateIaCRequest) + private static final com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCRequest(); + } + + public static com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportApplicationTemplateIaCRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ExportApplicationTemplateIaCRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ExportApplicationTemplateIaCRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ExportApplicationTemplateIaCRequestOrBuilder.java new file mode 100644 index 000000000000..e7311ad0bfa4 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ExportApplicationTemplateIaCRequestOrBuilder.java @@ -0,0 +1,150 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ExportApplicationTemplateIaCRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ExportApplicationTemplateIaCRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the application template.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The name of the application template.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. Specifies the destination for the generated IaC, which can be
+   * Cloud Storage or a Developer Connect repository.
+   * Default is Google Cloud Storage.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the artifactLocation field is set. + */ + boolean hasArtifactLocation(); + + /** + * + * + *
+   * Optional. Specifies the destination for the generated IaC, which can be
+   * Cloud Storage or a Developer Connect repository.
+   * Default is Google Cloud Storage.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The artifactLocation. + */ + com.google.cloud.designcenter.v1.ArtifactLocation getArtifactLocation(); + + /** + * + * + *
+   * Optional. Specifies the destination for the generated IaC, which can be
+   * Cloud Storage or a Developer Connect repository.
+   * Default is Google Cloud Storage.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder getArtifactLocationOrBuilder(); + + /** + * + * + *
+   * Optional. Configuration for exporting IaC.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ExportIaCConfig export_iac_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the exportIacConfig field is set. + */ + boolean hasExportIacConfig(); + + /** + * + * + *
+   * Optional. Configuration for exporting IaC.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ExportIaCConfig export_iac_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The exportIacConfig. + */ + com.google.cloud.designcenter.v1.ExportIaCConfig getExportIacConfig(); + + /** + * + * + *
+   * Optional. Configuration for exporting IaC.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ExportIaCConfig export_iac_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.ExportIaCConfigOrBuilder getExportIacConfigOrBuilder(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ExportApplicationTemplateIaCResponse.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ExportApplicationTemplateIaCResponse.java new file mode 100644 index 000000000000..7bc25cc604c5 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ExportApplicationTemplateIaCResponse.java @@ -0,0 +1,1006 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Response message for ExportApplicationTemplateIaC method.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ExportApplicationTemplateIaCResponse} + */ +@com.google.protobuf.Generated +public final class ExportApplicationTemplateIaCResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ExportApplicationTemplateIaCResponse) + ExportApplicationTemplateIaCResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ExportApplicationTemplateIaCResponse"); + } + + // Use ExportApplicationTemplateIaCResponse.newBuilder() to construct. + private ExportApplicationTemplateIaCResponse( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ExportApplicationTemplateIaCResponse() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ExportApplicationTemplateIaCResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ExportApplicationTemplateIaCResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCResponse.class, + com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCResponse.Builder.class); + } + + private int bitField0_; + public static final int ARTIFACT_LOCATION_FIELD_NUMBER = 1; + private com.google.cloud.designcenter.v1.ArtifactLocation artifactLocation_; + + /** + * + * + *
+   * The destination where the generated IaC was written.
+   * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 1; + * + * @return Whether the artifactLocation field is set. + */ + @java.lang.Override + public boolean hasArtifactLocation() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * The destination where the generated IaC was written.
+   * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 1; + * + * @return The artifactLocation. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ArtifactLocation getArtifactLocation() { + return artifactLocation_ == null + ? com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance() + : artifactLocation_; + } + + /** + * + * + *
+   * The destination where the generated IaC was written.
+   * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 1; + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder getArtifactLocationOrBuilder() { + return artifactLocation_ == null + ? com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance() + : artifactLocation_; + } + + public static final int ROOT_MODULES_METADATA_FIELD_NUMBER = 2; + private com.google.cloud.designcenter.v1.RootModulesMetadata rootModulesMetadata_; + + /** + * + * + *
+   * Root modules metadata of the application template.
+   * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 2; + * + * @return Whether the rootModulesMetadata field is set. + */ + @java.lang.Override + public boolean hasRootModulesMetadata() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Root modules metadata of the application template.
+   * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 2; + * + * @return The rootModulesMetadata. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.RootModulesMetadata getRootModulesMetadata() { + return rootModulesMetadata_ == null + ? com.google.cloud.designcenter.v1.RootModulesMetadata.getDefaultInstance() + : rootModulesMetadata_; + } + + /** + * + * + *
+   * Root modules metadata of the application template.
+   * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 2; + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.RootModulesMetadataOrBuilder + getRootModulesMetadataOrBuilder() { + return rootModulesMetadata_ == null + ? com.google.cloud.designcenter.v1.RootModulesMetadata.getDefaultInstance() + : rootModulesMetadata_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getArtifactLocation()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getRootModulesMetadata()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getArtifactLocation()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRootModulesMetadata()); + } + 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.designcenter.v1.ExportApplicationTemplateIaCResponse)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCResponse other = + (com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCResponse) obj; + + if (hasArtifactLocation() != other.hasArtifactLocation()) return false; + if (hasArtifactLocation()) { + if (!getArtifactLocation().equals(other.getArtifactLocation())) return false; + } + if (hasRootModulesMetadata() != other.hasRootModulesMetadata()) return false; + if (hasRootModulesMetadata()) { + if (!getRootModulesMetadata().equals(other.getRootModulesMetadata())) 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 (hasArtifactLocation()) { + hash = (37 * hash) + ARTIFACT_LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getArtifactLocation().hashCode(); + } + if (hasRootModulesMetadata()) { + hash = (37 * hash) + ROOT_MODULES_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getRootModulesMetadata().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCResponse 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.designcenter.v1.ExportApplicationTemplateIaCResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ExportApplicationTemplateIaCResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response message for ExportApplicationTemplateIaC method.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ExportApplicationTemplateIaCResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ExportApplicationTemplateIaCResponse) + com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ExportApplicationTemplateIaCResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ExportApplicationTemplateIaCResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCResponse.class, + com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCResponse.Builder.class); + } + + // Construct using + // com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetArtifactLocationFieldBuilder(); + internalGetRootModulesMetadataFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + artifactLocation_ = null; + if (artifactLocationBuilder_ != null) { + artifactLocationBuilder_.dispose(); + artifactLocationBuilder_ = null; + } + rootModulesMetadata_ = null; + if (rootModulesMetadataBuilder_ != null) { + rootModulesMetadataBuilder_.dispose(); + rootModulesMetadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ExportApplicationTemplateIaCResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCResponse + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCResponse build() { + com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCResponse buildPartial() { + com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCResponse result = + new com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.artifactLocation_ = + artifactLocationBuilder_ == null ? artifactLocation_ : artifactLocationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.rootModulesMetadata_ = + rootModulesMetadataBuilder_ == null + ? rootModulesMetadata_ + : rootModulesMetadataBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCResponse) { + return mergeFrom( + (com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCResponse other) { + if (other + == com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCResponse + .getDefaultInstance()) return this; + if (other.hasArtifactLocation()) { + mergeArtifactLocation(other.getArtifactLocation()); + } + if (other.hasRootModulesMetadata()) { + mergeRootModulesMetadata(other.getRootModulesMetadata()); + } + 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( + internalGetArtifactLocationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetRootModulesMetadataFieldBuilder().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.designcenter.v1.ArtifactLocation artifactLocation_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ArtifactLocation, + com.google.cloud.designcenter.v1.ArtifactLocation.Builder, + com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder> + artifactLocationBuilder_; + + /** + * + * + *
+     * The destination where the generated IaC was written.
+     * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 1; + * + * @return Whether the artifactLocation field is set. + */ + public boolean hasArtifactLocation() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * The destination where the generated IaC was written.
+     * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 1; + * + * @return The artifactLocation. + */ + public com.google.cloud.designcenter.v1.ArtifactLocation getArtifactLocation() { + if (artifactLocationBuilder_ == null) { + return artifactLocation_ == null + ? com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance() + : artifactLocation_; + } else { + return artifactLocationBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * The destination where the generated IaC was written.
+     * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 1; + */ + public Builder setArtifactLocation(com.google.cloud.designcenter.v1.ArtifactLocation value) { + if (artifactLocationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + artifactLocation_ = value; + } else { + artifactLocationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The destination where the generated IaC was written.
+     * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 1; + */ + public Builder setArtifactLocation( + com.google.cloud.designcenter.v1.ArtifactLocation.Builder builderForValue) { + if (artifactLocationBuilder_ == null) { + artifactLocation_ = builderForValue.build(); + } else { + artifactLocationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The destination where the generated IaC was written.
+     * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 1; + */ + public Builder mergeArtifactLocation(com.google.cloud.designcenter.v1.ArtifactLocation value) { + if (artifactLocationBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && artifactLocation_ != null + && artifactLocation_ + != com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance()) { + getArtifactLocationBuilder().mergeFrom(value); + } else { + artifactLocation_ = value; + } + } else { + artifactLocationBuilder_.mergeFrom(value); + } + if (artifactLocation_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The destination where the generated IaC was written.
+     * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 1; + */ + public Builder clearArtifactLocation() { + bitField0_ = (bitField0_ & ~0x00000001); + artifactLocation_ = null; + if (artifactLocationBuilder_ != null) { + artifactLocationBuilder_.dispose(); + artifactLocationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * The destination where the generated IaC was written.
+     * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 1; + */ + public com.google.cloud.designcenter.v1.ArtifactLocation.Builder getArtifactLocationBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetArtifactLocationFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * The destination where the generated IaC was written.
+     * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 1; + */ + public com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder + getArtifactLocationOrBuilder() { + if (artifactLocationBuilder_ != null) { + return artifactLocationBuilder_.getMessageOrBuilder(); + } else { + return artifactLocation_ == null + ? com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance() + : artifactLocation_; + } + } + + /** + * + * + *
+     * The destination where the generated IaC was written.
+     * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ArtifactLocation, + com.google.cloud.designcenter.v1.ArtifactLocation.Builder, + com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder> + internalGetArtifactLocationFieldBuilder() { + if (artifactLocationBuilder_ == null) { + artifactLocationBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ArtifactLocation, + com.google.cloud.designcenter.v1.ArtifactLocation.Builder, + com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder>( + getArtifactLocation(), getParentForChildren(), isClean()); + artifactLocation_ = null; + } + return artifactLocationBuilder_; + } + + private com.google.cloud.designcenter.v1.RootModulesMetadata rootModulesMetadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.RootModulesMetadata, + com.google.cloud.designcenter.v1.RootModulesMetadata.Builder, + com.google.cloud.designcenter.v1.RootModulesMetadataOrBuilder> + rootModulesMetadataBuilder_; + + /** + * + * + *
+     * Root modules metadata of the application template.
+     * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 2; + * + * @return Whether the rootModulesMetadata field is set. + */ + public boolean hasRootModulesMetadata() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Root modules metadata of the application template.
+     * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 2; + * + * @return The rootModulesMetadata. + */ + public com.google.cloud.designcenter.v1.RootModulesMetadata getRootModulesMetadata() { + if (rootModulesMetadataBuilder_ == null) { + return rootModulesMetadata_ == null + ? com.google.cloud.designcenter.v1.RootModulesMetadata.getDefaultInstance() + : rootModulesMetadata_; + } else { + return rootModulesMetadataBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Root modules metadata of the application template.
+     * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 2; + */ + public Builder setRootModulesMetadata( + com.google.cloud.designcenter.v1.RootModulesMetadata value) { + if (rootModulesMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rootModulesMetadata_ = value; + } else { + rootModulesMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Root modules metadata of the application template.
+     * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 2; + */ + public Builder setRootModulesMetadata( + com.google.cloud.designcenter.v1.RootModulesMetadata.Builder builderForValue) { + if (rootModulesMetadataBuilder_ == null) { + rootModulesMetadata_ = builderForValue.build(); + } else { + rootModulesMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Root modules metadata of the application template.
+     * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 2; + */ + public Builder mergeRootModulesMetadata( + com.google.cloud.designcenter.v1.RootModulesMetadata value) { + if (rootModulesMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && rootModulesMetadata_ != null + && rootModulesMetadata_ + != com.google.cloud.designcenter.v1.RootModulesMetadata.getDefaultInstance()) { + getRootModulesMetadataBuilder().mergeFrom(value); + } else { + rootModulesMetadata_ = value; + } + } else { + rootModulesMetadataBuilder_.mergeFrom(value); + } + if (rootModulesMetadata_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Root modules metadata of the application template.
+     * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 2; + */ + public Builder clearRootModulesMetadata() { + bitField0_ = (bitField0_ & ~0x00000002); + rootModulesMetadata_ = null; + if (rootModulesMetadataBuilder_ != null) { + rootModulesMetadataBuilder_.dispose(); + rootModulesMetadataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Root modules metadata of the application template.
+     * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 2; + */ + public com.google.cloud.designcenter.v1.RootModulesMetadata.Builder + getRootModulesMetadataBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetRootModulesMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Root modules metadata of the application template.
+     * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 2; + */ + public com.google.cloud.designcenter.v1.RootModulesMetadataOrBuilder + getRootModulesMetadataOrBuilder() { + if (rootModulesMetadataBuilder_ != null) { + return rootModulesMetadataBuilder_.getMessageOrBuilder(); + } else { + return rootModulesMetadata_ == null + ? com.google.cloud.designcenter.v1.RootModulesMetadata.getDefaultInstance() + : rootModulesMetadata_; + } + } + + /** + * + * + *
+     * Root modules metadata of the application template.
+     * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.RootModulesMetadata, + com.google.cloud.designcenter.v1.RootModulesMetadata.Builder, + com.google.cloud.designcenter.v1.RootModulesMetadataOrBuilder> + internalGetRootModulesMetadataFieldBuilder() { + if (rootModulesMetadataBuilder_ == null) { + rootModulesMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.RootModulesMetadata, + com.google.cloud.designcenter.v1.RootModulesMetadata.Builder, + com.google.cloud.designcenter.v1.RootModulesMetadataOrBuilder>( + getRootModulesMetadata(), getParentForChildren(), isClean()); + rootModulesMetadata_ = null; + } + return rootModulesMetadataBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ExportApplicationTemplateIaCResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ExportApplicationTemplateIaCResponse) + private static final com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCResponse(); + } + + public static com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportApplicationTemplateIaCResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ExportApplicationTemplateIaCResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ExportApplicationTemplateIaCResponseOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ExportApplicationTemplateIaCResponseOrBuilder.java new file mode 100644 index 000000000000..76eac93d7a8d --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ExportApplicationTemplateIaCResponseOrBuilder.java @@ -0,0 +1,102 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ExportApplicationTemplateIaCResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ExportApplicationTemplateIaCResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The destination where the generated IaC was written.
+   * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 1; + * + * @return Whether the artifactLocation field is set. + */ + boolean hasArtifactLocation(); + + /** + * + * + *
+   * The destination where the generated IaC was written.
+   * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 1; + * + * @return The artifactLocation. + */ + com.google.cloud.designcenter.v1.ArtifactLocation getArtifactLocation(); + + /** + * + * + *
+   * The destination where the generated IaC was written.
+   * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 1; + */ + com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder getArtifactLocationOrBuilder(); + + /** + * + * + *
+   * Root modules metadata of the application template.
+   * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 2; + * + * @return Whether the rootModulesMetadata field is set. + */ + boolean hasRootModulesMetadata(); + + /** + * + * + *
+   * Root modules metadata of the application template.
+   * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 2; + * + * @return The rootModulesMetadata. + */ + com.google.cloud.designcenter.v1.RootModulesMetadata getRootModulesMetadata(); + + /** + * + * + *
+   * Root modules metadata of the application template.
+   * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 2; + */ + com.google.cloud.designcenter.v1.RootModulesMetadataOrBuilder getRootModulesMetadataOrBuilder(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ExportApplicationTemplateRevisionIaCRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ExportApplicationTemplateRevisionIaCRequest.java new file mode 100644 index 000000000000..f591c57e6149 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ExportApplicationTemplateRevisionIaCRequest.java @@ -0,0 +1,1291 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Request message for ExportApplicationTemplateRevisionIaC method.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCRequest} + */ +@com.google.protobuf.Generated +public final class ExportApplicationTemplateRevisionIaCRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCRequest) + ExportApplicationTemplateRevisionIaCRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ExportApplicationTemplateRevisionIaCRequest"); + } + + // Use ExportApplicationTemplateRevisionIaCRequest.newBuilder() to construct. + private ExportApplicationTemplateRevisionIaCRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ExportApplicationTemplateRevisionIaCRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ExportApplicationTemplateRevisionIaCRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ExportApplicationTemplateRevisionIaCRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCRequest.class, + com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCRequest.Builder + .class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The name of the application template revision.
+   * 
+ * + * + * 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 application template revision.
+   * 
+ * + * + * 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 ARTIFACT_LOCATION_FIELD_NUMBER = 3; + private com.google.cloud.designcenter.v1.ArtifactLocation artifactLocation_; + + /** + * + * + *
+   * Optional. Specifies the destination for the generated IaC, which can be
+   * Cloud Storage or a Developer Connect repository.
+   * Default is Google Cloud Storage.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the artifactLocation field is set. + */ + @java.lang.Override + public boolean hasArtifactLocation() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. Specifies the destination for the generated IaC, which can be
+   * Cloud Storage or a Developer Connect repository.
+   * Default is Google Cloud Storage.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The artifactLocation. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ArtifactLocation getArtifactLocation() { + return artifactLocation_ == null + ? com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance() + : artifactLocation_; + } + + /** + * + * + *
+   * Optional. Specifies the destination for the generated IaC, which can be
+   * Cloud Storage or a Developer Connect repository.
+   * Default is Google Cloud Storage.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder getArtifactLocationOrBuilder() { + return artifactLocation_ == null + ? com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance() + : artifactLocation_; + } + + public static final int EXPORT_IAC_CONFIG_FIELD_NUMBER = 5; + private com.google.cloud.designcenter.v1.ExportIaCConfig exportIacConfig_; + + /** + * + * + *
+   * Optional. Configuration for exporting IaC.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ExportIaCConfig export_iac_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the exportIacConfig field is set. + */ + @java.lang.Override + public boolean hasExportIacConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. Configuration for exporting IaC.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ExportIaCConfig export_iac_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The exportIacConfig. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ExportIaCConfig getExportIacConfig() { + return exportIacConfig_ == null + ? com.google.cloud.designcenter.v1.ExportIaCConfig.getDefaultInstance() + : exportIacConfig_; + } + + /** + * + * + *
+   * Optional. Configuration for exporting IaC.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ExportIaCConfig export_iac_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ExportIaCConfigOrBuilder getExportIacConfigOrBuilder() { + return exportIacConfig_ == null + ? com.google.cloud.designcenter.v1.ExportIaCConfig.getDefaultInstance() + : exportIacConfig_; + } + + 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getArtifactLocation()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getExportIacConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getArtifactLocation()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getExportIacConfig()); + } + 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.designcenter.v1.ExportApplicationTemplateRevisionIaCRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCRequest other = + (com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (hasArtifactLocation() != other.hasArtifactLocation()) return false; + if (hasArtifactLocation()) { + if (!getArtifactLocation().equals(other.getArtifactLocation())) return false; + } + if (hasExportIacConfig() != other.hasExportIacConfig()) return false; + if (hasExportIacConfig()) { + if (!getExportIacConfig().equals(other.getExportIacConfig())) 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 (hasArtifactLocation()) { + hash = (37 * hash) + ARTIFACT_LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getArtifactLocation().hashCode(); + } + if (hasExportIacConfig()) { + hash = (37 * hash) + EXPORT_IAC_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getExportIacConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCRequest + 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.designcenter.v1.ExportApplicationTemplateRevisionIaCRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ExportApplicationTemplateRevisionIaCRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for ExportApplicationTemplateRevisionIaC method.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCRequest) + com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ExportApplicationTemplateRevisionIaCRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ExportApplicationTemplateRevisionIaCRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCRequest.class, + com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetArtifactLocationFieldBuilder(); + internalGetExportIacConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + artifactLocation_ = null; + if (artifactLocationBuilder_ != null) { + artifactLocationBuilder_.dispose(); + artifactLocationBuilder_ = null; + } + exportIacConfig_ = null; + if (exportIacConfigBuilder_ != null) { + exportIacConfigBuilder_.dispose(); + exportIacConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ExportApplicationTemplateRevisionIaCRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCRequest + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCRequest build() { + com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCRequest + buildPartial() { + com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCRequest result = + new com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.artifactLocation_ = + artifactLocationBuilder_ == null ? artifactLocation_ : artifactLocationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.exportIacConfig_ = + exportIacConfigBuilder_ == null ? exportIacConfig_ : exportIacConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCRequest) { + return mergeFrom( + (com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCRequest other) { + if (other + == com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasArtifactLocation()) { + mergeArtifactLocation(other.getArtifactLocation()); + } + if (other.hasExportIacConfig()) { + mergeExportIacConfig(other.getExportIacConfig()); + } + 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 26: + { + input.readMessage( + internalGetArtifactLocationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 26 + case 42: + { + input.readMessage( + internalGetExportIacConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + 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_ = ""; + + /** + * + * + *
+     * Required. The name of the application template revision.
+     * 
+ * + * + * 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 application template revision.
+     * 
+ * + * + * 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 application template revision.
+     * 
+ * + * + * 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 application template revision.
+     * 
+ * + * + * 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 application template revision.
+     * 
+ * + * + * 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 com.google.cloud.designcenter.v1.ArtifactLocation artifactLocation_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ArtifactLocation, + com.google.cloud.designcenter.v1.ArtifactLocation.Builder, + com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder> + artifactLocationBuilder_; + + /** + * + * + *
+     * Optional. Specifies the destination for the generated IaC, which can be
+     * Cloud Storage or a Developer Connect repository.
+     * Default is Google Cloud Storage.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the artifactLocation field is set. + */ + public boolean hasArtifactLocation() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Optional. Specifies the destination for the generated IaC, which can be
+     * Cloud Storage or a Developer Connect repository.
+     * Default is Google Cloud Storage.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The artifactLocation. + */ + public com.google.cloud.designcenter.v1.ArtifactLocation getArtifactLocation() { + if (artifactLocationBuilder_ == null) { + return artifactLocation_ == null + ? com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance() + : artifactLocation_; + } else { + return artifactLocationBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Specifies the destination for the generated IaC, which can be
+     * Cloud Storage or a Developer Connect repository.
+     * Default is Google Cloud Storage.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setArtifactLocation(com.google.cloud.designcenter.v1.ArtifactLocation value) { + if (artifactLocationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + artifactLocation_ = value; + } else { + artifactLocationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Specifies the destination for the generated IaC, which can be
+     * Cloud Storage or a Developer Connect repository.
+     * Default is Google Cloud Storage.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setArtifactLocation( + com.google.cloud.designcenter.v1.ArtifactLocation.Builder builderForValue) { + if (artifactLocationBuilder_ == null) { + artifactLocation_ = builderForValue.build(); + } else { + artifactLocationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Specifies the destination for the generated IaC, which can be
+     * Cloud Storage or a Developer Connect repository.
+     * Default is Google Cloud Storage.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeArtifactLocation(com.google.cloud.designcenter.v1.ArtifactLocation value) { + if (artifactLocationBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && artifactLocation_ != null + && artifactLocation_ + != com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance()) { + getArtifactLocationBuilder().mergeFrom(value); + } else { + artifactLocation_ = value; + } + } else { + artifactLocationBuilder_.mergeFrom(value); + } + if (artifactLocation_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Specifies the destination for the generated IaC, which can be
+     * Cloud Storage or a Developer Connect repository.
+     * Default is Google Cloud Storage.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearArtifactLocation() { + bitField0_ = (bitField0_ & ~0x00000002); + artifactLocation_ = null; + if (artifactLocationBuilder_ != null) { + artifactLocationBuilder_.dispose(); + artifactLocationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Specifies the destination for the generated IaC, which can be
+     * Cloud Storage or a Developer Connect repository.
+     * Default is Google Cloud Storage.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ArtifactLocation.Builder getArtifactLocationBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetArtifactLocationFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Specifies the destination for the generated IaC, which can be
+     * Cloud Storage or a Developer Connect repository.
+     * Default is Google Cloud Storage.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder + getArtifactLocationOrBuilder() { + if (artifactLocationBuilder_ != null) { + return artifactLocationBuilder_.getMessageOrBuilder(); + } else { + return artifactLocation_ == null + ? com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance() + : artifactLocation_; + } + } + + /** + * + * + *
+     * Optional. Specifies the destination for the generated IaC, which can be
+     * Cloud Storage or a Developer Connect repository.
+     * Default is Google Cloud Storage.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ArtifactLocation, + com.google.cloud.designcenter.v1.ArtifactLocation.Builder, + com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder> + internalGetArtifactLocationFieldBuilder() { + if (artifactLocationBuilder_ == null) { + artifactLocationBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ArtifactLocation, + com.google.cloud.designcenter.v1.ArtifactLocation.Builder, + com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder>( + getArtifactLocation(), getParentForChildren(), isClean()); + artifactLocation_ = null; + } + return artifactLocationBuilder_; + } + + private com.google.cloud.designcenter.v1.ExportIaCConfig exportIacConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ExportIaCConfig, + com.google.cloud.designcenter.v1.ExportIaCConfig.Builder, + com.google.cloud.designcenter.v1.ExportIaCConfigOrBuilder> + exportIacConfigBuilder_; + + /** + * + * + *
+     * Optional. Configuration for exporting IaC.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ExportIaCConfig export_iac_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the exportIacConfig field is set. + */ + public boolean hasExportIacConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Optional. Configuration for exporting IaC.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ExportIaCConfig export_iac_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The exportIacConfig. + */ + public com.google.cloud.designcenter.v1.ExportIaCConfig getExportIacConfig() { + if (exportIacConfigBuilder_ == null) { + return exportIacConfig_ == null + ? com.google.cloud.designcenter.v1.ExportIaCConfig.getDefaultInstance() + : exportIacConfig_; + } else { + return exportIacConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Configuration for exporting IaC.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ExportIaCConfig export_iac_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setExportIacConfig(com.google.cloud.designcenter.v1.ExportIaCConfig value) { + if (exportIacConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + exportIacConfig_ = value; + } else { + exportIacConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Configuration for exporting IaC.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ExportIaCConfig export_iac_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setExportIacConfig( + com.google.cloud.designcenter.v1.ExportIaCConfig.Builder builderForValue) { + if (exportIacConfigBuilder_ == null) { + exportIacConfig_ = builderForValue.build(); + } else { + exportIacConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Configuration for exporting IaC.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ExportIaCConfig export_iac_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeExportIacConfig(com.google.cloud.designcenter.v1.ExportIaCConfig value) { + if (exportIacConfigBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && exportIacConfig_ != null + && exportIacConfig_ + != com.google.cloud.designcenter.v1.ExportIaCConfig.getDefaultInstance()) { + getExportIacConfigBuilder().mergeFrom(value); + } else { + exportIacConfig_ = value; + } + } else { + exportIacConfigBuilder_.mergeFrom(value); + } + if (exportIacConfig_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Configuration for exporting IaC.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ExportIaCConfig export_iac_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearExportIacConfig() { + bitField0_ = (bitField0_ & ~0x00000004); + exportIacConfig_ = null; + if (exportIacConfigBuilder_ != null) { + exportIacConfigBuilder_.dispose(); + exportIacConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Configuration for exporting IaC.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ExportIaCConfig export_iac_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ExportIaCConfig.Builder getExportIacConfigBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetExportIacConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Configuration for exporting IaC.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ExportIaCConfig export_iac_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ExportIaCConfigOrBuilder getExportIacConfigOrBuilder() { + if (exportIacConfigBuilder_ != null) { + return exportIacConfigBuilder_.getMessageOrBuilder(); + } else { + return exportIacConfig_ == null + ? com.google.cloud.designcenter.v1.ExportIaCConfig.getDefaultInstance() + : exportIacConfig_; + } + } + + /** + * + * + *
+     * Optional. Configuration for exporting IaC.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ExportIaCConfig export_iac_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ExportIaCConfig, + com.google.cloud.designcenter.v1.ExportIaCConfig.Builder, + com.google.cloud.designcenter.v1.ExportIaCConfigOrBuilder> + internalGetExportIacConfigFieldBuilder() { + if (exportIacConfigBuilder_ == null) { + exportIacConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ExportIaCConfig, + com.google.cloud.designcenter.v1.ExportIaCConfig.Builder, + com.google.cloud.designcenter.v1.ExportIaCConfigOrBuilder>( + getExportIacConfig(), getParentForChildren(), isClean()); + exportIacConfig_ = null; + } + return exportIacConfigBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCRequest) + private static final com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCRequest(); + } + + public static com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportApplicationTemplateRevisionIaCRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ExportApplicationTemplateRevisionIaCRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ExportApplicationTemplateRevisionIaCRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ExportApplicationTemplateRevisionIaCRequestOrBuilder.java new file mode 100644 index 000000000000..96e20efe8eda --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ExportApplicationTemplateRevisionIaCRequestOrBuilder.java @@ -0,0 +1,150 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ExportApplicationTemplateRevisionIaCRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the application template revision.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The name of the application template revision.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. Specifies the destination for the generated IaC, which can be
+   * Cloud Storage or a Developer Connect repository.
+   * Default is Google Cloud Storage.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the artifactLocation field is set. + */ + boolean hasArtifactLocation(); + + /** + * + * + *
+   * Optional. Specifies the destination for the generated IaC, which can be
+   * Cloud Storage or a Developer Connect repository.
+   * Default is Google Cloud Storage.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The artifactLocation. + */ + com.google.cloud.designcenter.v1.ArtifactLocation getArtifactLocation(); + + /** + * + * + *
+   * Optional. Specifies the destination for the generated IaC, which can be
+   * Cloud Storage or a Developer Connect repository.
+   * Default is Google Cloud Storage.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder getArtifactLocationOrBuilder(); + + /** + * + * + *
+   * Optional. Configuration for exporting IaC.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ExportIaCConfig export_iac_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the exportIacConfig field is set. + */ + boolean hasExportIacConfig(); + + /** + * + * + *
+   * Optional. Configuration for exporting IaC.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ExportIaCConfig export_iac_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The exportIacConfig. + */ + com.google.cloud.designcenter.v1.ExportIaCConfig getExportIacConfig(); + + /** + * + * + *
+   * Optional. Configuration for exporting IaC.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ExportIaCConfig export_iac_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.ExportIaCConfigOrBuilder getExportIacConfigOrBuilder(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ExportApplicationTemplateRevisionIaCResponse.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ExportApplicationTemplateRevisionIaCResponse.java new file mode 100644 index 000000000000..5c1a942f09f6 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ExportApplicationTemplateRevisionIaCResponse.java @@ -0,0 +1,1023 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Response message for ExportApplicationTemplateRevisionIaC method.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCResponse} + */ +@com.google.protobuf.Generated +public final class ExportApplicationTemplateRevisionIaCResponse + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCResponse) + ExportApplicationTemplateRevisionIaCResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ExportApplicationTemplateRevisionIaCResponse"); + } + + // Use ExportApplicationTemplateRevisionIaCResponse.newBuilder() to construct. + private ExportApplicationTemplateRevisionIaCResponse( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ExportApplicationTemplateRevisionIaCResponse() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ExportApplicationTemplateRevisionIaCResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ExportApplicationTemplateRevisionIaCResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCResponse.class, + com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCResponse.Builder + .class); + } + + private int bitField0_; + public static final int ARTIFACT_LOCATION_FIELD_NUMBER = 1; + private com.google.cloud.designcenter.v1.ArtifactLocation artifactLocation_; + + /** + * + * + *
+   * The destination where the generated IaC was written.
+   * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 1; + * + * @return Whether the artifactLocation field is set. + */ + @java.lang.Override + public boolean hasArtifactLocation() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * The destination where the generated IaC was written.
+   * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 1; + * + * @return The artifactLocation. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ArtifactLocation getArtifactLocation() { + return artifactLocation_ == null + ? com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance() + : artifactLocation_; + } + + /** + * + * + *
+   * The destination where the generated IaC was written.
+   * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 1; + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder getArtifactLocationOrBuilder() { + return artifactLocation_ == null + ? com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance() + : artifactLocation_; + } + + public static final int ROOT_MODULES_METADATA_FIELD_NUMBER = 2; + private com.google.cloud.designcenter.v1.RootModulesMetadata rootModulesMetadata_; + + /** + * + * + *
+   * Root modules metadata of the application template revision.
+   * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 2; + * + * @return Whether the rootModulesMetadata field is set. + */ + @java.lang.Override + public boolean hasRootModulesMetadata() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Root modules metadata of the application template revision.
+   * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 2; + * + * @return The rootModulesMetadata. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.RootModulesMetadata getRootModulesMetadata() { + return rootModulesMetadata_ == null + ? com.google.cloud.designcenter.v1.RootModulesMetadata.getDefaultInstance() + : rootModulesMetadata_; + } + + /** + * + * + *
+   * Root modules metadata of the application template revision.
+   * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 2; + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.RootModulesMetadataOrBuilder + getRootModulesMetadataOrBuilder() { + return rootModulesMetadata_ == null + ? com.google.cloud.designcenter.v1.RootModulesMetadata.getDefaultInstance() + : rootModulesMetadata_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getArtifactLocation()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getRootModulesMetadata()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getArtifactLocation()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRootModulesMetadata()); + } + 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.designcenter.v1.ExportApplicationTemplateRevisionIaCResponse)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCResponse other = + (com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCResponse) obj; + + if (hasArtifactLocation() != other.hasArtifactLocation()) return false; + if (hasArtifactLocation()) { + if (!getArtifactLocation().equals(other.getArtifactLocation())) return false; + } + if (hasRootModulesMetadata() != other.hasRootModulesMetadata()) return false; + if (hasRootModulesMetadata()) { + if (!getRootModulesMetadata().equals(other.getRootModulesMetadata())) 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 (hasArtifactLocation()) { + hash = (37 * hash) + ARTIFACT_LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getArtifactLocation().hashCode(); + } + if (hasRootModulesMetadata()) { + hash = (37 * hash) + ROOT_MODULES_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getRootModulesMetadata().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCResponse + 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.designcenter.v1.ExportApplicationTemplateRevisionIaCResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCResponse + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCResponse + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCResponse + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ExportApplicationTemplateRevisionIaCResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response message for ExportApplicationTemplateRevisionIaC method.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCResponse) + com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ExportApplicationTemplateRevisionIaCResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ExportApplicationTemplateRevisionIaCResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCResponse.class, + com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetArtifactLocationFieldBuilder(); + internalGetRootModulesMetadataFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + artifactLocation_ = null; + if (artifactLocationBuilder_ != null) { + artifactLocationBuilder_.dispose(); + artifactLocationBuilder_ = null; + } + rootModulesMetadata_ = null; + if (rootModulesMetadataBuilder_ != null) { + rootModulesMetadataBuilder_.dispose(); + rootModulesMetadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ExportApplicationTemplateRevisionIaCResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCResponse + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCResponse build() { + com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCResponse + buildPartial() { + com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCResponse result = + new com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.artifactLocation_ = + artifactLocationBuilder_ == null ? artifactLocation_ : artifactLocationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.rootModulesMetadata_ = + rootModulesMetadataBuilder_ == null + ? rootModulesMetadata_ + : rootModulesMetadataBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCResponse) { + return mergeFrom( + (com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCResponse other) { + if (other + == com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCResponse + .getDefaultInstance()) return this; + if (other.hasArtifactLocation()) { + mergeArtifactLocation(other.getArtifactLocation()); + } + if (other.hasRootModulesMetadata()) { + mergeRootModulesMetadata(other.getRootModulesMetadata()); + } + 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( + internalGetArtifactLocationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetRootModulesMetadataFieldBuilder().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.designcenter.v1.ArtifactLocation artifactLocation_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ArtifactLocation, + com.google.cloud.designcenter.v1.ArtifactLocation.Builder, + com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder> + artifactLocationBuilder_; + + /** + * + * + *
+     * The destination where the generated IaC was written.
+     * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 1; + * + * @return Whether the artifactLocation field is set. + */ + public boolean hasArtifactLocation() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * The destination where the generated IaC was written.
+     * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 1; + * + * @return The artifactLocation. + */ + public com.google.cloud.designcenter.v1.ArtifactLocation getArtifactLocation() { + if (artifactLocationBuilder_ == null) { + return artifactLocation_ == null + ? com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance() + : artifactLocation_; + } else { + return artifactLocationBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * The destination where the generated IaC was written.
+     * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 1; + */ + public Builder setArtifactLocation(com.google.cloud.designcenter.v1.ArtifactLocation value) { + if (artifactLocationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + artifactLocation_ = value; + } else { + artifactLocationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The destination where the generated IaC was written.
+     * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 1; + */ + public Builder setArtifactLocation( + com.google.cloud.designcenter.v1.ArtifactLocation.Builder builderForValue) { + if (artifactLocationBuilder_ == null) { + artifactLocation_ = builderForValue.build(); + } else { + artifactLocationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The destination where the generated IaC was written.
+     * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 1; + */ + public Builder mergeArtifactLocation(com.google.cloud.designcenter.v1.ArtifactLocation value) { + if (artifactLocationBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && artifactLocation_ != null + && artifactLocation_ + != com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance()) { + getArtifactLocationBuilder().mergeFrom(value); + } else { + artifactLocation_ = value; + } + } else { + artifactLocationBuilder_.mergeFrom(value); + } + if (artifactLocation_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The destination where the generated IaC was written.
+     * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 1; + */ + public Builder clearArtifactLocation() { + bitField0_ = (bitField0_ & ~0x00000001); + artifactLocation_ = null; + if (artifactLocationBuilder_ != null) { + artifactLocationBuilder_.dispose(); + artifactLocationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * The destination where the generated IaC was written.
+     * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 1; + */ + public com.google.cloud.designcenter.v1.ArtifactLocation.Builder getArtifactLocationBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetArtifactLocationFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * The destination where the generated IaC was written.
+     * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 1; + */ + public com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder + getArtifactLocationOrBuilder() { + if (artifactLocationBuilder_ != null) { + return artifactLocationBuilder_.getMessageOrBuilder(); + } else { + return artifactLocation_ == null + ? com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance() + : artifactLocation_; + } + } + + /** + * + * + *
+     * The destination where the generated IaC was written.
+     * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ArtifactLocation, + com.google.cloud.designcenter.v1.ArtifactLocation.Builder, + com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder> + internalGetArtifactLocationFieldBuilder() { + if (artifactLocationBuilder_ == null) { + artifactLocationBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ArtifactLocation, + com.google.cloud.designcenter.v1.ArtifactLocation.Builder, + com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder>( + getArtifactLocation(), getParentForChildren(), isClean()); + artifactLocation_ = null; + } + return artifactLocationBuilder_; + } + + private com.google.cloud.designcenter.v1.RootModulesMetadata rootModulesMetadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.RootModulesMetadata, + com.google.cloud.designcenter.v1.RootModulesMetadata.Builder, + com.google.cloud.designcenter.v1.RootModulesMetadataOrBuilder> + rootModulesMetadataBuilder_; + + /** + * + * + *
+     * Root modules metadata of the application template revision.
+     * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 2; + * + * @return Whether the rootModulesMetadata field is set. + */ + public boolean hasRootModulesMetadata() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Root modules metadata of the application template revision.
+     * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 2; + * + * @return The rootModulesMetadata. + */ + public com.google.cloud.designcenter.v1.RootModulesMetadata getRootModulesMetadata() { + if (rootModulesMetadataBuilder_ == null) { + return rootModulesMetadata_ == null + ? com.google.cloud.designcenter.v1.RootModulesMetadata.getDefaultInstance() + : rootModulesMetadata_; + } else { + return rootModulesMetadataBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Root modules metadata of the application template revision.
+     * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 2; + */ + public Builder setRootModulesMetadata( + com.google.cloud.designcenter.v1.RootModulesMetadata value) { + if (rootModulesMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rootModulesMetadata_ = value; + } else { + rootModulesMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Root modules metadata of the application template revision.
+     * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 2; + */ + public Builder setRootModulesMetadata( + com.google.cloud.designcenter.v1.RootModulesMetadata.Builder builderForValue) { + if (rootModulesMetadataBuilder_ == null) { + rootModulesMetadata_ = builderForValue.build(); + } else { + rootModulesMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Root modules metadata of the application template revision.
+     * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 2; + */ + public Builder mergeRootModulesMetadata( + com.google.cloud.designcenter.v1.RootModulesMetadata value) { + if (rootModulesMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && rootModulesMetadata_ != null + && rootModulesMetadata_ + != com.google.cloud.designcenter.v1.RootModulesMetadata.getDefaultInstance()) { + getRootModulesMetadataBuilder().mergeFrom(value); + } else { + rootModulesMetadata_ = value; + } + } else { + rootModulesMetadataBuilder_.mergeFrom(value); + } + if (rootModulesMetadata_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Root modules metadata of the application template revision.
+     * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 2; + */ + public Builder clearRootModulesMetadata() { + bitField0_ = (bitField0_ & ~0x00000002); + rootModulesMetadata_ = null; + if (rootModulesMetadataBuilder_ != null) { + rootModulesMetadataBuilder_.dispose(); + rootModulesMetadataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Root modules metadata of the application template revision.
+     * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 2; + */ + public com.google.cloud.designcenter.v1.RootModulesMetadata.Builder + getRootModulesMetadataBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetRootModulesMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Root modules metadata of the application template revision.
+     * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 2; + */ + public com.google.cloud.designcenter.v1.RootModulesMetadataOrBuilder + getRootModulesMetadataOrBuilder() { + if (rootModulesMetadataBuilder_ != null) { + return rootModulesMetadataBuilder_.getMessageOrBuilder(); + } else { + return rootModulesMetadata_ == null + ? com.google.cloud.designcenter.v1.RootModulesMetadata.getDefaultInstance() + : rootModulesMetadata_; + } + } + + /** + * + * + *
+     * Root modules metadata of the application template revision.
+     * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.RootModulesMetadata, + com.google.cloud.designcenter.v1.RootModulesMetadata.Builder, + com.google.cloud.designcenter.v1.RootModulesMetadataOrBuilder> + internalGetRootModulesMetadataFieldBuilder() { + if (rootModulesMetadataBuilder_ == null) { + rootModulesMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.RootModulesMetadata, + com.google.cloud.designcenter.v1.RootModulesMetadata.Builder, + com.google.cloud.designcenter.v1.RootModulesMetadataOrBuilder>( + getRootModulesMetadata(), getParentForChildren(), isClean()); + rootModulesMetadata_ = null; + } + return rootModulesMetadataBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCResponse) + private static final com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCResponse(); + } + + public static com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportApplicationTemplateRevisionIaCResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ExportApplicationTemplateRevisionIaCResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ExportApplicationTemplateRevisionIaCResponseOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ExportApplicationTemplateRevisionIaCResponseOrBuilder.java new file mode 100644 index 000000000000..731afba0302e --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ExportApplicationTemplateRevisionIaCResponseOrBuilder.java @@ -0,0 +1,102 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ExportApplicationTemplateRevisionIaCResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The destination where the generated IaC was written.
+   * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 1; + * + * @return Whether the artifactLocation field is set. + */ + boolean hasArtifactLocation(); + + /** + * + * + *
+   * The destination where the generated IaC was written.
+   * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 1; + * + * @return The artifactLocation. + */ + com.google.cloud.designcenter.v1.ArtifactLocation getArtifactLocation(); + + /** + * + * + *
+   * The destination where the generated IaC was written.
+   * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 1; + */ + com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder getArtifactLocationOrBuilder(); + + /** + * + * + *
+   * Root modules metadata of the application template revision.
+   * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 2; + * + * @return Whether the rootModulesMetadata field is set. + */ + boolean hasRootModulesMetadata(); + + /** + * + * + *
+   * Root modules metadata of the application template revision.
+   * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 2; + * + * @return The rootModulesMetadata. + */ + com.google.cloud.designcenter.v1.RootModulesMetadata getRootModulesMetadata(); + + /** + * + * + *
+   * Root modules metadata of the application template revision.
+   * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 2; + */ + com.google.cloud.designcenter.v1.RootModulesMetadataOrBuilder getRootModulesMetadataOrBuilder(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ExportIaCConfig.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ExportIaCConfig.java new file mode 100644 index 000000000000..bbca5458a0d1 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ExportIaCConfig.java @@ -0,0 +1,992 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/export.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Configuration for exporting a resource as IAC.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ExportIaCConfig} + */ +@com.google.protobuf.Generated +public final class ExportIaCConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ExportIaCConfig) + ExportIaCConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ExportIaCConfig"); + } + + // Use ExportIaCConfig.newBuilder() to construct. + private ExportIaCConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ExportIaCConfig() { + iacFormat_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.ExportProto + .internal_static_google_cloud_designcenter_v1_ExportIaCConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.ExportProto + .internal_static_google_cloud_designcenter_v1_ExportIaCConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ExportIaCConfig.class, + com.google.cloud.designcenter.v1.ExportIaCConfig.Builder.class); + } + + private int configPayloadCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object configPayload_; + + public enum ConfigPayloadCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + TF_CONFIG(2), + CONFIGPAYLOAD_NOT_SET(0); + private final int value; + + private ConfigPayloadCase(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 ConfigPayloadCase valueOf(int value) { + return forNumber(value); + } + + public static ConfigPayloadCase forNumber(int value) { + switch (value) { + case 2: + return TF_CONFIG; + case 0: + return CONFIGPAYLOAD_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ConfigPayloadCase getConfigPayloadCase() { + return ConfigPayloadCase.forNumber(configPayloadCase_); + } + + public static final int TF_CONFIG_FIELD_NUMBER = 2; + + /** + * + * + *
+   * Optional. Configuration on how to handle terraform IaC export.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TerraformConfig tf_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the tfConfig field is set. + */ + @java.lang.Override + public boolean hasTfConfig() { + return configPayloadCase_ == 2; + } + + /** + * + * + *
+   * Optional. Configuration on how to handle terraform IaC export.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TerraformConfig tf_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The tfConfig. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformConfig getTfConfig() { + if (configPayloadCase_ == 2) { + return (com.google.cloud.designcenter.v1.TerraformConfig) configPayload_; + } + return com.google.cloud.designcenter.v1.TerraformConfig.getDefaultInstance(); + } + + /** + * + * + *
+   * Optional. Configuration on how to handle terraform IaC export.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TerraformConfig tf_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformConfigOrBuilder getTfConfigOrBuilder() { + if (configPayloadCase_ == 2) { + return (com.google.cloud.designcenter.v1.TerraformConfig) configPayload_; + } + return com.google.cloud.designcenter.v1.TerraformConfig.getDefaultInstance(); + } + + public static final int IAC_FORMAT_FIELD_NUMBER = 1; + private int iacFormat_ = 0; + + /** + * + * + *
+   * Optional. IaC format of the export. Default is [IACFormat.TERRAFORM].
+   * 
+ * + * + * .google.cloud.designcenter.v1.IACFormat iac_format = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for iacFormat. + */ + @java.lang.Override + public int getIacFormatValue() { + return iacFormat_; + } + + /** + * + * + *
+   * Optional. IaC format of the export. Default is [IACFormat.TERRAFORM].
+   * 
+ * + * + * .google.cloud.designcenter.v1.IACFormat iac_format = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The iacFormat. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.IACFormat getIacFormat() { + com.google.cloud.designcenter.v1.IACFormat result = + com.google.cloud.designcenter.v1.IACFormat.forNumber(iacFormat_); + return result == null ? com.google.cloud.designcenter.v1.IACFormat.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 (iacFormat_ + != com.google.cloud.designcenter.v1.IACFormat.IAC_FORMAT_UNSPECIFIED.getNumber()) { + output.writeEnum(1, iacFormat_); + } + if (configPayloadCase_ == 2) { + output.writeMessage(2, (com.google.cloud.designcenter.v1.TerraformConfig) configPayload_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (iacFormat_ + != com.google.cloud.designcenter.v1.IACFormat.IAC_FORMAT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, iacFormat_); + } + if (configPayloadCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.designcenter.v1.TerraformConfig) configPayload_); + } + 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.designcenter.v1.ExportIaCConfig)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ExportIaCConfig other = + (com.google.cloud.designcenter.v1.ExportIaCConfig) obj; + + if (iacFormat_ != other.iacFormat_) return false; + if (!getConfigPayloadCase().equals(other.getConfigPayloadCase())) return false; + switch (configPayloadCase_) { + case 2: + if (!getTfConfig().equals(other.getTfConfig())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + IAC_FORMAT_FIELD_NUMBER; + hash = (53 * hash) + iacFormat_; + switch (configPayloadCase_) { + case 2: + hash = (37 * hash) + TF_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getTfConfig().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.ExportIaCConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ExportIaCConfig 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.designcenter.v1.ExportIaCConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ExportIaCConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ExportIaCConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ExportIaCConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ExportIaCConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ExportIaCConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ExportIaCConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ExportIaCConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ExportIaCConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ExportIaCConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ExportIaCConfig 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Configuration for exporting a resource as IAC.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ExportIaCConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ExportIaCConfig) + com.google.cloud.designcenter.v1.ExportIaCConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.ExportProto + .internal_static_google_cloud_designcenter_v1_ExportIaCConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.ExportProto + .internal_static_google_cloud_designcenter_v1_ExportIaCConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ExportIaCConfig.class, + com.google.cloud.designcenter.v1.ExportIaCConfig.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.ExportIaCConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (tfConfigBuilder_ != null) { + tfConfigBuilder_.clear(); + } + iacFormat_ = 0; + configPayloadCase_ = 0; + configPayload_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.ExportProto + .internal_static_google_cloud_designcenter_v1_ExportIaCConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ExportIaCConfig getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ExportIaCConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ExportIaCConfig build() { + com.google.cloud.designcenter.v1.ExportIaCConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ExportIaCConfig buildPartial() { + com.google.cloud.designcenter.v1.ExportIaCConfig result = + new com.google.cloud.designcenter.v1.ExportIaCConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.ExportIaCConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.iacFormat_ = iacFormat_; + } + } + + private void buildPartialOneofs(com.google.cloud.designcenter.v1.ExportIaCConfig result) { + result.configPayloadCase_ = configPayloadCase_; + result.configPayload_ = this.configPayload_; + if (configPayloadCase_ == 2 && tfConfigBuilder_ != null) { + result.configPayload_ = tfConfigBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.ExportIaCConfig) { + return mergeFrom((com.google.cloud.designcenter.v1.ExportIaCConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.ExportIaCConfig other) { + if (other == com.google.cloud.designcenter.v1.ExportIaCConfig.getDefaultInstance()) + return this; + if (other.iacFormat_ != 0) { + setIacFormatValue(other.getIacFormatValue()); + } + switch (other.getConfigPayloadCase()) { + case TF_CONFIG: + { + mergeTfConfig(other.getTfConfig()); + break; + } + case CONFIGPAYLOAD_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 8: + { + iacFormat_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 8 + case 18: + { + input.readMessage( + internalGetTfConfigFieldBuilder().getBuilder(), extensionRegistry); + configPayloadCase_ = 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 configPayloadCase_ = 0; + private java.lang.Object configPayload_; + + public ConfigPayloadCase getConfigPayloadCase() { + return ConfigPayloadCase.forNumber(configPayloadCase_); + } + + public Builder clearConfigPayload() { + configPayloadCase_ = 0; + configPayload_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.TerraformConfig, + com.google.cloud.designcenter.v1.TerraformConfig.Builder, + com.google.cloud.designcenter.v1.TerraformConfigOrBuilder> + tfConfigBuilder_; + + /** + * + * + *
+     * Optional. Configuration on how to handle terraform IaC export.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TerraformConfig tf_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the tfConfig field is set. + */ + @java.lang.Override + public boolean hasTfConfig() { + return configPayloadCase_ == 2; + } + + /** + * + * + *
+     * Optional. Configuration on how to handle terraform IaC export.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TerraformConfig tf_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The tfConfig. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformConfig getTfConfig() { + if (tfConfigBuilder_ == null) { + if (configPayloadCase_ == 2) { + return (com.google.cloud.designcenter.v1.TerraformConfig) configPayload_; + } + return com.google.cloud.designcenter.v1.TerraformConfig.getDefaultInstance(); + } else { + if (configPayloadCase_ == 2) { + return tfConfigBuilder_.getMessage(); + } + return com.google.cloud.designcenter.v1.TerraformConfig.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. Configuration on how to handle terraform IaC export.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TerraformConfig tf_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTfConfig(com.google.cloud.designcenter.v1.TerraformConfig value) { + if (tfConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + configPayload_ = value; + onChanged(); + } else { + tfConfigBuilder_.setMessage(value); + } + configPayloadCase_ = 2; + return this; + } + + /** + * + * + *
+     * Optional. Configuration on how to handle terraform IaC export.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TerraformConfig tf_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTfConfig( + com.google.cloud.designcenter.v1.TerraformConfig.Builder builderForValue) { + if (tfConfigBuilder_ == null) { + configPayload_ = builderForValue.build(); + onChanged(); + } else { + tfConfigBuilder_.setMessage(builderForValue.build()); + } + configPayloadCase_ = 2; + return this; + } + + /** + * + * + *
+     * Optional. Configuration on how to handle terraform IaC export.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TerraformConfig tf_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeTfConfig(com.google.cloud.designcenter.v1.TerraformConfig value) { + if (tfConfigBuilder_ == null) { + if (configPayloadCase_ == 2 + && configPayload_ + != com.google.cloud.designcenter.v1.TerraformConfig.getDefaultInstance()) { + configPayload_ = + com.google.cloud.designcenter.v1.TerraformConfig.newBuilder( + (com.google.cloud.designcenter.v1.TerraformConfig) configPayload_) + .mergeFrom(value) + .buildPartial(); + } else { + configPayload_ = value; + } + onChanged(); + } else { + if (configPayloadCase_ == 2) { + tfConfigBuilder_.mergeFrom(value); + } else { + tfConfigBuilder_.setMessage(value); + } + } + configPayloadCase_ = 2; + return this; + } + + /** + * + * + *
+     * Optional. Configuration on how to handle terraform IaC export.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TerraformConfig tf_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearTfConfig() { + if (tfConfigBuilder_ == null) { + if (configPayloadCase_ == 2) { + configPayloadCase_ = 0; + configPayload_ = null; + onChanged(); + } + } else { + if (configPayloadCase_ == 2) { + configPayloadCase_ = 0; + configPayload_ = null; + } + tfConfigBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Configuration on how to handle terraform IaC export.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TerraformConfig tf_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.TerraformConfig.Builder getTfConfigBuilder() { + return internalGetTfConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Configuration on how to handle terraform IaC export.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TerraformConfig tf_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformConfigOrBuilder getTfConfigOrBuilder() { + if ((configPayloadCase_ == 2) && (tfConfigBuilder_ != null)) { + return tfConfigBuilder_.getMessageOrBuilder(); + } else { + if (configPayloadCase_ == 2) { + return (com.google.cloud.designcenter.v1.TerraformConfig) configPayload_; + } + return com.google.cloud.designcenter.v1.TerraformConfig.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. Configuration on how to handle terraform IaC export.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TerraformConfig tf_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.TerraformConfig, + com.google.cloud.designcenter.v1.TerraformConfig.Builder, + com.google.cloud.designcenter.v1.TerraformConfigOrBuilder> + internalGetTfConfigFieldBuilder() { + if (tfConfigBuilder_ == null) { + if (!(configPayloadCase_ == 2)) { + configPayload_ = com.google.cloud.designcenter.v1.TerraformConfig.getDefaultInstance(); + } + tfConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.TerraformConfig, + com.google.cloud.designcenter.v1.TerraformConfig.Builder, + com.google.cloud.designcenter.v1.TerraformConfigOrBuilder>( + (com.google.cloud.designcenter.v1.TerraformConfig) configPayload_, + getParentForChildren(), + isClean()); + configPayload_ = null; + } + configPayloadCase_ = 2; + onChanged(); + return tfConfigBuilder_; + } + + private int iacFormat_ = 0; + + /** + * + * + *
+     * Optional. IaC format of the export. Default is [IACFormat.TERRAFORM].
+     * 
+ * + * + * .google.cloud.designcenter.v1.IACFormat iac_format = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for iacFormat. + */ + @java.lang.Override + public int getIacFormatValue() { + return iacFormat_; + } + + /** + * + * + *
+     * Optional. IaC format of the export. Default is [IACFormat.TERRAFORM].
+     * 
+ * + * + * .google.cloud.designcenter.v1.IACFormat iac_format = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for iacFormat to set. + * @return This builder for chaining. + */ + public Builder setIacFormatValue(int value) { + iacFormat_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. IaC format of the export. Default is [IACFormat.TERRAFORM].
+     * 
+ * + * + * .google.cloud.designcenter.v1.IACFormat iac_format = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The iacFormat. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.IACFormat getIacFormat() { + com.google.cloud.designcenter.v1.IACFormat result = + com.google.cloud.designcenter.v1.IACFormat.forNumber(iacFormat_); + return result == null ? com.google.cloud.designcenter.v1.IACFormat.UNRECOGNIZED : result; + } + + /** + * + * + *
+     * Optional. IaC format of the export. Default is [IACFormat.TERRAFORM].
+     * 
+ * + * + * .google.cloud.designcenter.v1.IACFormat iac_format = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The iacFormat to set. + * @return This builder for chaining. + */ + public Builder setIacFormat(com.google.cloud.designcenter.v1.IACFormat value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + iacFormat_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. IaC format of the export. Default is [IACFormat.TERRAFORM].
+     * 
+ * + * + * .google.cloud.designcenter.v1.IACFormat iac_format = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearIacFormat() { + bitField0_ = (bitField0_ & ~0x00000002); + iacFormat_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ExportIaCConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ExportIaCConfig) + private static final com.google.cloud.designcenter.v1.ExportIaCConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.ExportIaCConfig(); + } + + public static com.google.cloud.designcenter.v1.ExportIaCConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportIaCConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ExportIaCConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ExportIaCConfigOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ExportIaCConfigOrBuilder.java new file mode 100644 index 000000000000..2f9c65c40331 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ExportIaCConfigOrBuilder.java @@ -0,0 +1,103 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/export.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ExportIaCConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ExportIaCConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Configuration on how to handle terraform IaC export.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TerraformConfig tf_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the tfConfig field is set. + */ + boolean hasTfConfig(); + + /** + * + * + *
+   * Optional. Configuration on how to handle terraform IaC export.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TerraformConfig tf_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The tfConfig. + */ + com.google.cloud.designcenter.v1.TerraformConfig getTfConfig(); + + /** + * + * + *
+   * Optional. Configuration on how to handle terraform IaC export.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TerraformConfig tf_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.TerraformConfigOrBuilder getTfConfigOrBuilder(); + + /** + * + * + *
+   * Optional. IaC format of the export. Default is [IACFormat.TERRAFORM].
+   * 
+ * + * + * .google.cloud.designcenter.v1.IACFormat iac_format = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for iacFormat. + */ + int getIacFormatValue(); + + /** + * + * + *
+   * Optional. IaC format of the export. Default is [IACFormat.TERRAFORM].
+   * 
+ * + * + * .google.cloud.designcenter.v1.IACFormat iac_format = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The iacFormat. + */ + com.google.cloud.designcenter.v1.IACFormat getIacFormat(); + + com.google.cloud.designcenter.v1.ExportIaCConfig.ConfigPayloadCase getConfigPayloadCase(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ExportProto.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ExportProto.java new file mode 100644 index 000000000000..caa0333f3869 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ExportProto.java @@ -0,0 +1,168 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/export.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public final class ExportProto extends com.google.protobuf.GeneratedFile { + private ExportProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ExportProto"); + } + + 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_designcenter_v1_ArtifactLocation_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ArtifactLocation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_DeveloperConnectExportConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_DeveloperConnectExportConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_ExportIaCConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ExportIaCConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_TerraformConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_TerraformConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_TerraformModuleConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_TerraformModuleConfig_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/designcenter/v1/export.pr" + + "oto\022\034google.cloud.designcenter.v1\032\037googl" + + "e/api/field_behavior.proto\032\031google/api/r" + + "esource.proto\032(google/cloud/designcenter/v1/enums.proto\"\244\001\n" + + "\020ArtifactLocation\022k\n" + + "\037developer_connect_export_config\030\001 \001(\0132:." + + "google.cloud.designcenter.v1.DeveloperConnectExportConfigB\004\342A\001\001H\000\022\027\n" + + "\007gcs_uri\030\002 \001(\tB\004\342A\001\001H\000B\n\n" + + "\010location\"\301\001\n" + + "\034DeveloperConnectExportConfig\022^\n" + + "\032developer_connect_repo_uri\030\001 \001(\tB:\342A\001\002\372A3\n" + + "1developerconnect.googleapis.com/GitRepositoryLink\022\024\n" + + "\006branch\030\002 \001(\tB\004\342A\001\001\022\021\n" + + "\003dir\030\003 \001(\tB\004\342A\001\002\022\030\n\n" + + "commit_sha\030\004 \001(\tB\004\342A\001\003\"\260\001\n" + + "\017ExportIaCConfig\022H\n" + + "\ttf_config\030\002" + + " \001(\0132-.google.cloud.designcenter.v1.TerraformConfigB\004\342A\001\001H\000\022A\n\n" + + "iac_format\030\001" + + " \001(\0162\'.google.cloud.designcenter.v1.IACFormatB\004\342A\001\001B\020\n" + + "\016config_payload\"f\n" + + "\017TerraformConfig\022S\n" + + "\020tf_module_config\030\001 \001" + + "(\01323.google.cloud.designcenter.v1.TerraformModuleConfigB\004\342A\001\001\"w\n" + + "\025TerraformModuleConfig\022!\n" + + "\021git_proxy_enabled\030\001 \001(\010B\004\342A\001\001H\000\022(\n" + + "\030local_references_enabled\030\002 \001(\010B\004\342A\001\001H\000B\021\n" + + "\017source_overrideB\327\001\n" + + " com.google.cloud.designcenter.v1B\013ExportProtoP\001ZDclou" + + "d.google.com/go/designcenter/apiv1/desig" + + "ncenterpb;designcenterpb\252\002\034Google.Cloud." + + "DesignCenter.V1\312\002\034Google\\Cloud\\DesignCen" + + "ter\\V1\352\002\037Google::Cloud::DesignCenter::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.designcenter.v1.EnumsProto.getDescriptor(), + }); + internal_static_google_cloud_designcenter_v1_ArtifactLocation_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_designcenter_v1_ArtifactLocation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ArtifactLocation_descriptor, + new java.lang.String[] { + "DeveloperConnectExportConfig", "GcsUri", "Location", + }); + internal_static_google_cloud_designcenter_v1_DeveloperConnectExportConfig_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_designcenter_v1_DeveloperConnectExportConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_DeveloperConnectExportConfig_descriptor, + new java.lang.String[] { + "DeveloperConnectRepoUri", "Branch", "Dir", "CommitSha", + }); + internal_static_google_cloud_designcenter_v1_ExportIaCConfig_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_designcenter_v1_ExportIaCConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ExportIaCConfig_descriptor, + new java.lang.String[] { + "TfConfig", "IacFormat", "ConfigPayload", + }); + internal_static_google_cloud_designcenter_v1_TerraformConfig_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_cloud_designcenter_v1_TerraformConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_TerraformConfig_descriptor, + new java.lang.String[] { + "TfModuleConfig", + }); + internal_static_google_cloud_designcenter_v1_TerraformModuleConfig_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_cloud_designcenter_v1_TerraformModuleConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_TerraformModuleConfig_descriptor, + new java.lang.String[] { + "GitProxyEnabled", "LocalReferencesEnabled", "SourceOverride", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.designcenter.v1.EnumsProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchApplicationAssessmentReportRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchApplicationAssessmentReportRequest.java new file mode 100644 index 000000000000..8cc764fa226d --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchApplicationAssessmentReportRequest.java @@ -0,0 +1,636 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/best_practices_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for fetching an application assessment report.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.FetchApplicationAssessmentReportRequest} + */ +@com.google.protobuf.Generated +public final class FetchApplicationAssessmentReportRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.FetchApplicationAssessmentReportRequest) + FetchApplicationAssessmentReportRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "FetchApplicationAssessmentReportRequest"); + } + + // Use FetchApplicationAssessmentReportRequest.newBuilder() to construct. + private FetchApplicationAssessmentReportRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private FetchApplicationAssessmentReportRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_FetchApplicationAssessmentReportRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_FetchApplicationAssessmentReportRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportRequest.class, + com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The application name in the following format:
+   * `projects/$project/locations/$location/spaces/$space/applications/$application`
+   * 
+ * + * + * 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 application name in the following format:
+   * `projects/$project/locations/$location/spaces/$space/applications/$application`
+   * 
+ * + * + * 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.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.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.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.designcenter.v1.FetchApplicationAssessmentReportRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportRequest other = + (com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportRequest) 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.designcenter.v1.FetchApplicationAssessmentReportRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportRequest 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.designcenter.v1.FetchApplicationAssessmentReportRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.FetchApplicationAssessmentReportRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for fetching an application assessment report.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.FetchApplicationAssessmentReportRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.FetchApplicationAssessmentReportRequest) + com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_FetchApplicationAssessmentReportRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_FetchApplicationAssessmentReportRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportRequest.class, + com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.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.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_FetchApplicationAssessmentReportRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportRequest + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportRequest build() { + com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportRequest buildPartial() { + com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportRequest result = + new com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportRequest) { + return mergeFrom( + (com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportRequest other) { + if (other + == com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportRequest + .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 application name in the following format:
+     * `projects/$project/locations/$location/spaces/$space/applications/$application`
+     * 
+ * + * + * 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 application name in the following format:
+     * `projects/$project/locations/$location/spaces/$space/applications/$application`
+     * 
+ * + * + * 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 application name in the following format:
+     * `projects/$project/locations/$location/spaces/$space/applications/$application`
+     * 
+ * + * + * 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 application name in the following format:
+     * `projects/$project/locations/$location/spaces/$space/applications/$application`
+     * 
+ * + * + * 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 application name in the following format:
+     * `projects/$project/locations/$location/spaces/$space/applications/$application`
+     * 
+ * + * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.FetchApplicationAssessmentReportRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.FetchApplicationAssessmentReportRequest) + private static final com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportRequest(); + } + + public static com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FetchApplicationAssessmentReportRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.FetchApplicationAssessmentReportRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchApplicationAssessmentReportRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchApplicationAssessmentReportRequestOrBuilder.java new file mode 100644 index 000000000000..bfc6d2fbcea9 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchApplicationAssessmentReportRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/best_practices_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface FetchApplicationAssessmentReportRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.FetchApplicationAssessmentReportRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The application name in the following format:
+   * `projects/$project/locations/$location/spaces/$space/applications/$application`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The application name in the following format:
+   * `projects/$project/locations/$location/spaces/$space/applications/$application`
+   * 
+ * + * + * 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-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchApplicationAssessmentReportResponse.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchApplicationAssessmentReportResponse.java new file mode 100644 index 000000000000..fe5283c290fe --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchApplicationAssessmentReportResponse.java @@ -0,0 +1,723 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/best_practices_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for response of fetching an application assessment report.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.FetchApplicationAssessmentReportResponse} + */ +@com.google.protobuf.Generated +public final class FetchApplicationAssessmentReportResponse + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.FetchApplicationAssessmentReportResponse) + FetchApplicationAssessmentReportResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "FetchApplicationAssessmentReportResponse"); + } + + // Use FetchApplicationAssessmentReportResponse.newBuilder() to construct. + private FetchApplicationAssessmentReportResponse( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private FetchApplicationAssessmentReportResponse() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_FetchApplicationAssessmentReportResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_FetchApplicationAssessmentReportResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportResponse.class, + com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportResponse.Builder + .class); + } + + private int bitField0_; + public static final int ASSESSMENT_REPORT_FIELD_NUMBER = 1; + private com.google.cloud.designcenter.v1.AssessmentReport assessmentReport_; + + /** + * + * + *
+   * Assessment report for the application.
+   * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1; + * + * @return Whether the assessmentReport field is set. + */ + @java.lang.Override + public boolean hasAssessmentReport() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Assessment report for the application.
+   * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1; + * + * @return The assessmentReport. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.AssessmentReport getAssessmentReport() { + return assessmentReport_ == null + ? com.google.cloud.designcenter.v1.AssessmentReport.getDefaultInstance() + : assessmentReport_; + } + + /** + * + * + *
+   * Assessment report for the application.
+   * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1; + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.AssessmentReportOrBuilder getAssessmentReportOrBuilder() { + return assessmentReport_ == null + ? com.google.cloud.designcenter.v1.AssessmentReport.getDefaultInstance() + : assessmentReport_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getAssessmentReport()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAssessmentReport()); + } + 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.designcenter.v1.FetchApplicationAssessmentReportResponse)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportResponse other = + (com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportResponse) obj; + + if (hasAssessmentReport() != other.hasAssessmentReport()) return false; + if (hasAssessmentReport()) { + if (!getAssessmentReport().equals(other.getAssessmentReport())) 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 (hasAssessmentReport()) { + hash = (37 * hash) + ASSESSMENT_REPORT_FIELD_NUMBER; + hash = (53 * hash) + getAssessmentReport().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportResponse 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.designcenter.v1.FetchApplicationAssessmentReportResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.FetchApplicationAssessmentReportResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for response of fetching an application assessment report.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.FetchApplicationAssessmentReportResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.FetchApplicationAssessmentReportResponse) + com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_FetchApplicationAssessmentReportResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_FetchApplicationAssessmentReportResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportResponse.class, + com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetAssessmentReportFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + assessmentReport_ = null; + if (assessmentReportBuilder_ != null) { + assessmentReportBuilder_.dispose(); + assessmentReportBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_FetchApplicationAssessmentReportResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportResponse + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportResponse build() { + com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportResponse + buildPartial() { + com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportResponse result = + new com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.assessmentReport_ = + assessmentReportBuilder_ == null ? assessmentReport_ : assessmentReportBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportResponse) { + return mergeFrom( + (com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportResponse other) { + if (other + == com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportResponse + .getDefaultInstance()) return this; + if (other.hasAssessmentReport()) { + mergeAssessmentReport(other.getAssessmentReport()); + } + 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( + internalGetAssessmentReportFieldBuilder().getBuilder(), extensionRegistry); + 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 com.google.cloud.designcenter.v1.AssessmentReport assessmentReport_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.AssessmentReport, + com.google.cloud.designcenter.v1.AssessmentReport.Builder, + com.google.cloud.designcenter.v1.AssessmentReportOrBuilder> + assessmentReportBuilder_; + + /** + * + * + *
+     * Assessment report for the application.
+     * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1; + * + * @return Whether the assessmentReport field is set. + */ + public boolean hasAssessmentReport() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Assessment report for the application.
+     * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1; + * + * @return The assessmentReport. + */ + public com.google.cloud.designcenter.v1.AssessmentReport getAssessmentReport() { + if (assessmentReportBuilder_ == null) { + return assessmentReport_ == null + ? com.google.cloud.designcenter.v1.AssessmentReport.getDefaultInstance() + : assessmentReport_; + } else { + return assessmentReportBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Assessment report for the application.
+     * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1; + */ + public Builder setAssessmentReport(com.google.cloud.designcenter.v1.AssessmentReport value) { + if (assessmentReportBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + assessmentReport_ = value; + } else { + assessmentReportBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Assessment report for the application.
+     * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1; + */ + public Builder setAssessmentReport( + com.google.cloud.designcenter.v1.AssessmentReport.Builder builderForValue) { + if (assessmentReportBuilder_ == null) { + assessmentReport_ = builderForValue.build(); + } else { + assessmentReportBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Assessment report for the application.
+     * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1; + */ + public Builder mergeAssessmentReport(com.google.cloud.designcenter.v1.AssessmentReport value) { + if (assessmentReportBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && assessmentReport_ != null + && assessmentReport_ + != com.google.cloud.designcenter.v1.AssessmentReport.getDefaultInstance()) { + getAssessmentReportBuilder().mergeFrom(value); + } else { + assessmentReport_ = value; + } + } else { + assessmentReportBuilder_.mergeFrom(value); + } + if (assessmentReport_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Assessment report for the application.
+     * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1; + */ + public Builder clearAssessmentReport() { + bitField0_ = (bitField0_ & ~0x00000001); + assessmentReport_ = null; + if (assessmentReportBuilder_ != null) { + assessmentReportBuilder_.dispose(); + assessmentReportBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Assessment report for the application.
+     * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1; + */ + public com.google.cloud.designcenter.v1.AssessmentReport.Builder getAssessmentReportBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetAssessmentReportFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Assessment report for the application.
+     * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1; + */ + public com.google.cloud.designcenter.v1.AssessmentReportOrBuilder + getAssessmentReportOrBuilder() { + if (assessmentReportBuilder_ != null) { + return assessmentReportBuilder_.getMessageOrBuilder(); + } else { + return assessmentReport_ == null + ? com.google.cloud.designcenter.v1.AssessmentReport.getDefaultInstance() + : assessmentReport_; + } + } + + /** + * + * + *
+     * Assessment report for the application.
+     * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.AssessmentReport, + com.google.cloud.designcenter.v1.AssessmentReport.Builder, + com.google.cloud.designcenter.v1.AssessmentReportOrBuilder> + internalGetAssessmentReportFieldBuilder() { + if (assessmentReportBuilder_ == null) { + assessmentReportBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.AssessmentReport, + com.google.cloud.designcenter.v1.AssessmentReport.Builder, + com.google.cloud.designcenter.v1.AssessmentReportOrBuilder>( + getAssessmentReport(), getParentForChildren(), isClean()); + assessmentReport_ = null; + } + return assessmentReportBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.FetchApplicationAssessmentReportResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.FetchApplicationAssessmentReportResponse) + private static final com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportResponse(); + } + + public static com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FetchApplicationAssessmentReportResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.FetchApplicationAssessmentReportResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchApplicationAssessmentReportResponseOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchApplicationAssessmentReportResponseOrBuilder.java new file mode 100644 index 000000000000..08332729cbaf --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchApplicationAssessmentReportResponseOrBuilder.java @@ -0,0 +1,65 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/best_practices_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface FetchApplicationAssessmentReportResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.FetchApplicationAssessmentReportResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Assessment report for the application.
+   * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1; + * + * @return Whether the assessmentReport field is set. + */ + boolean hasAssessmentReport(); + + /** + * + * + *
+   * Assessment report for the application.
+   * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1; + * + * @return The assessmentReport. + */ + com.google.cloud.designcenter.v1.AssessmentReport getAssessmentReport(); + + /** + * + * + *
+   * Assessment report for the application.
+   * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1; + */ + com.google.cloud.designcenter.v1.AssessmentReportOrBuilder getAssessmentReportOrBuilder(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchCatalogTemplateRevisionAssessmentReportRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchCatalogTemplateRevisionAssessmentReportRequest.java new file mode 100644 index 000000000000..268e71008ec2 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchCatalogTemplateRevisionAssessmentReportRequest.java @@ -0,0 +1,663 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/catalog_management_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Request message for FetchCatalogTemplateRevisionAssessmentReport.
+ * 
+ * + * Protobuf type {@code + * google.cloud.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportRequest} + */ +@com.google.protobuf.Generated +public final class FetchCatalogTemplateRevisionAssessmentReportRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportRequest) + FetchCatalogTemplateRevisionAssessmentReportRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "FetchCatalogTemplateRevisionAssessmentReportRequest"); + } + + // Use FetchCatalogTemplateRevisionAssessmentReportRequest.newBuilder() to construct. + private FetchCatalogTemplateRevisionAssessmentReportRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private FetchCatalogTemplateRevisionAssessmentReportRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_FetchCatalogTemplateRevisionAssessmentReportRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_FetchCatalogTemplateRevisionAssessmentReportRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportRequest + .class, + com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportRequest + .Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The catalog template revision name in the following format:
+   * `projects/{project}/locations/{location}/spaces/{space}/catalogs/{catalog}/templates/{template}/revisions/{revision}`
+   * 
+ * + * + * 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 catalog template revision name in the following format:
+   * `projects/{project}/locations/{location}/spaces/{space}/catalogs/{catalog}/templates/{template}/revisions/{revision}`
+   * 
+ * + * + * 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.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.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.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.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportRequest other = + (com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportRequest) 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.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportRequest + 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.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportRequest + 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for FetchCatalogTemplateRevisionAssessmentReport.
+   * 
+ * + * Protobuf type {@code + * google.cloud.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportRequest) + com.google.cloud.designcenter.v1 + .FetchCatalogTemplateRevisionAssessmentReportRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_FetchCatalogTemplateRevisionAssessmentReportRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_FetchCatalogTemplateRevisionAssessmentReportRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportRequest + .class, + com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportRequest + .Builder.class); + } + + // Construct using + // com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.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.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_FetchCatalogTemplateRevisionAssessmentReportRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportRequest + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportRequest + build() { + com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportRequest + buildPartial() { + com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportRequest result = + new com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportRequest( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportRequest + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportRequest) { + return mergeFrom( + (com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportRequest) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportRequest + other) { + if (other + == com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportRequest + .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 catalog template revision name in the following format:
+     * `projects/{project}/locations/{location}/spaces/{space}/catalogs/{catalog}/templates/{template}/revisions/{revision}`
+     * 
+ * + * + * 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 catalog template revision name in the following format:
+     * `projects/{project}/locations/{location}/spaces/{space}/catalogs/{catalog}/templates/{template}/revisions/{revision}`
+     * 
+ * + * + * 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 catalog template revision name in the following format:
+     * `projects/{project}/locations/{location}/spaces/{space}/catalogs/{catalog}/templates/{template}/revisions/{revision}`
+     * 
+ * + * + * 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 catalog template revision name in the following format:
+     * `projects/{project}/locations/{location}/spaces/{space}/catalogs/{catalog}/templates/{template}/revisions/{revision}`
+     * 
+ * + * + * 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 catalog template revision name in the following format:
+     * `projects/{project}/locations/{location}/spaces/{space}/catalogs/{catalog}/templates/{template}/revisions/{revision}`
+     * 
+ * + * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportRequest) + private static final com.google.cloud.designcenter.v1 + .FetchCatalogTemplateRevisionAssessmentReportRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportRequest(); + } + + public static com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser< + FetchCatalogTemplateRevisionAssessmentReportRequest> + PARSER = + new com.google.protobuf.AbstractParser< + FetchCatalogTemplateRevisionAssessmentReportRequest>() { + @java.lang.Override + public FetchCatalogTemplateRevisionAssessmentReportRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchCatalogTemplateRevisionAssessmentReportRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchCatalogTemplateRevisionAssessmentReportRequestOrBuilder.java new file mode 100644 index 000000000000..ea5dd1797ca2 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchCatalogTemplateRevisionAssessmentReportRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/catalog_management_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface FetchCatalogTemplateRevisionAssessmentReportRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The catalog template revision name in the following format:
+   * `projects/{project}/locations/{location}/spaces/{space}/catalogs/{catalog}/templates/{template}/revisions/{revision}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The catalog template revision name in the following format:
+   * `projects/{project}/locations/{location}/spaces/{space}/catalogs/{catalog}/templates/{template}/revisions/{revision}`
+   * 
+ * + * + * 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-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchCatalogTemplateRevisionAssessmentReportResponse.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchCatalogTemplateRevisionAssessmentReportResponse.java new file mode 100644 index 000000000000..9f52d0a2e7d2 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchCatalogTemplateRevisionAssessmentReportResponse.java @@ -0,0 +1,761 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/catalog_management_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Response message for FetchCatalogTemplateRevisionAssessmentReport.
+ * 
+ * + * Protobuf type {@code + * google.cloud.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportResponse} + */ +@com.google.protobuf.Generated +public final class FetchCatalogTemplateRevisionAssessmentReportResponse + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportResponse) + FetchCatalogTemplateRevisionAssessmentReportResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "FetchCatalogTemplateRevisionAssessmentReportResponse"); + } + + // Use FetchCatalogTemplateRevisionAssessmentReportResponse.newBuilder() to construct. + private FetchCatalogTemplateRevisionAssessmentReportResponse( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private FetchCatalogTemplateRevisionAssessmentReportResponse() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_FetchCatalogTemplateRevisionAssessmentReportResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_FetchCatalogTemplateRevisionAssessmentReportResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportResponse + .class, + com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportResponse + .Builder.class); + } + + private int bitField0_; + public static final int ASSESSMENT_REPORT_FIELD_NUMBER = 1; + private com.google.cloud.designcenter.v1.AssessmentReport assessmentReport_; + + /** + * + * + *
+   * Assessment report for the catalog template revision.
+   * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1; + * + * @return Whether the assessmentReport field is set. + */ + @java.lang.Override + public boolean hasAssessmentReport() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Assessment report for the catalog template revision.
+   * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1; + * + * @return The assessmentReport. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.AssessmentReport getAssessmentReport() { + return assessmentReport_ == null + ? com.google.cloud.designcenter.v1.AssessmentReport.getDefaultInstance() + : assessmentReport_; + } + + /** + * + * + *
+   * Assessment report for the catalog template revision.
+   * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1; + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.AssessmentReportOrBuilder getAssessmentReportOrBuilder() { + return assessmentReport_ == null + ? com.google.cloud.designcenter.v1.AssessmentReport.getDefaultInstance() + : assessmentReport_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getAssessmentReport()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAssessmentReport()); + } + 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.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportResponse)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportResponse other = + (com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportResponse) obj; + + if (hasAssessmentReport() != other.hasAssessmentReport()) return false; + if (hasAssessmentReport()) { + if (!getAssessmentReport().equals(other.getAssessmentReport())) 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 (hasAssessmentReport()) { + hash = (37 * hash) + ASSESSMENT_REPORT_FIELD_NUMBER; + hash = (53 * hash) + getAssessmentReport().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1 + .FetchCatalogTemplateRevisionAssessmentReportResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1 + .FetchCatalogTemplateRevisionAssessmentReportResponse + 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.designcenter.v1 + .FetchCatalogTemplateRevisionAssessmentReportResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1 + .FetchCatalogTemplateRevisionAssessmentReportResponse + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1 + .FetchCatalogTemplateRevisionAssessmentReportResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1 + .FetchCatalogTemplateRevisionAssessmentReportResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1 + .FetchCatalogTemplateRevisionAssessmentReportResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1 + .FetchCatalogTemplateRevisionAssessmentReportResponse + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1 + .FetchCatalogTemplateRevisionAssessmentReportResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1 + .FetchCatalogTemplateRevisionAssessmentReportResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1 + .FetchCatalogTemplateRevisionAssessmentReportResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1 + .FetchCatalogTemplateRevisionAssessmentReportResponse + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportResponse + 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response message for FetchCatalogTemplateRevisionAssessmentReport.
+   * 
+ * + * Protobuf type {@code + * google.cloud.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportResponse) + com.google.cloud.designcenter.v1 + .FetchCatalogTemplateRevisionAssessmentReportResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_FetchCatalogTemplateRevisionAssessmentReportResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_FetchCatalogTemplateRevisionAssessmentReportResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportResponse + .class, + com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportResponse + .Builder.class); + } + + // Construct using + // com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetAssessmentReportFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + assessmentReport_ = null; + if (assessmentReportBuilder_ != null) { + assessmentReportBuilder_.dispose(); + assessmentReportBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_FetchCatalogTemplateRevisionAssessmentReportResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportResponse + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportResponse + build() { + com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportResponse + buildPartial() { + com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportResponse result = + new com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportResponse( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportResponse + result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.assessmentReport_ = + assessmentReportBuilder_ == null ? assessmentReport_ : assessmentReportBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportResponse) { + return mergeFrom( + (com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportResponse) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportResponse + other) { + if (other + == com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportResponse + .getDefaultInstance()) return this; + if (other.hasAssessmentReport()) { + mergeAssessmentReport(other.getAssessmentReport()); + } + 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( + internalGetAssessmentReportFieldBuilder().getBuilder(), extensionRegistry); + 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 com.google.cloud.designcenter.v1.AssessmentReport assessmentReport_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.AssessmentReport, + com.google.cloud.designcenter.v1.AssessmentReport.Builder, + com.google.cloud.designcenter.v1.AssessmentReportOrBuilder> + assessmentReportBuilder_; + + /** + * + * + *
+     * Assessment report for the catalog template revision.
+     * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1; + * + * @return Whether the assessmentReport field is set. + */ + public boolean hasAssessmentReport() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Assessment report for the catalog template revision.
+     * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1; + * + * @return The assessmentReport. + */ + public com.google.cloud.designcenter.v1.AssessmentReport getAssessmentReport() { + if (assessmentReportBuilder_ == null) { + return assessmentReport_ == null + ? com.google.cloud.designcenter.v1.AssessmentReport.getDefaultInstance() + : assessmentReport_; + } else { + return assessmentReportBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Assessment report for the catalog template revision.
+     * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1; + */ + public Builder setAssessmentReport(com.google.cloud.designcenter.v1.AssessmentReport value) { + if (assessmentReportBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + assessmentReport_ = value; + } else { + assessmentReportBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Assessment report for the catalog template revision.
+     * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1; + */ + public Builder setAssessmentReport( + com.google.cloud.designcenter.v1.AssessmentReport.Builder builderForValue) { + if (assessmentReportBuilder_ == null) { + assessmentReport_ = builderForValue.build(); + } else { + assessmentReportBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Assessment report for the catalog template revision.
+     * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1; + */ + public Builder mergeAssessmentReport(com.google.cloud.designcenter.v1.AssessmentReport value) { + if (assessmentReportBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && assessmentReport_ != null + && assessmentReport_ + != com.google.cloud.designcenter.v1.AssessmentReport.getDefaultInstance()) { + getAssessmentReportBuilder().mergeFrom(value); + } else { + assessmentReport_ = value; + } + } else { + assessmentReportBuilder_.mergeFrom(value); + } + if (assessmentReport_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Assessment report for the catalog template revision.
+     * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1; + */ + public Builder clearAssessmentReport() { + bitField0_ = (bitField0_ & ~0x00000001); + assessmentReport_ = null; + if (assessmentReportBuilder_ != null) { + assessmentReportBuilder_.dispose(); + assessmentReportBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Assessment report for the catalog template revision.
+     * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1; + */ + public com.google.cloud.designcenter.v1.AssessmentReport.Builder getAssessmentReportBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetAssessmentReportFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Assessment report for the catalog template revision.
+     * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1; + */ + public com.google.cloud.designcenter.v1.AssessmentReportOrBuilder + getAssessmentReportOrBuilder() { + if (assessmentReportBuilder_ != null) { + return assessmentReportBuilder_.getMessageOrBuilder(); + } else { + return assessmentReport_ == null + ? com.google.cloud.designcenter.v1.AssessmentReport.getDefaultInstance() + : assessmentReport_; + } + } + + /** + * + * + *
+     * Assessment report for the catalog template revision.
+     * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.AssessmentReport, + com.google.cloud.designcenter.v1.AssessmentReport.Builder, + com.google.cloud.designcenter.v1.AssessmentReportOrBuilder> + internalGetAssessmentReportFieldBuilder() { + if (assessmentReportBuilder_ == null) { + assessmentReportBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.AssessmentReport, + com.google.cloud.designcenter.v1.AssessmentReport.Builder, + com.google.cloud.designcenter.v1.AssessmentReportOrBuilder>( + getAssessmentReport(), getParentForChildren(), isClean()); + assessmentReport_ = null; + } + return assessmentReportBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportResponse) + private static final com.google.cloud.designcenter.v1 + .FetchCatalogTemplateRevisionAssessmentReportResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportResponse(); + } + + public static com.google.cloud.designcenter.v1 + .FetchCatalogTemplateRevisionAssessmentReportResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser< + FetchCatalogTemplateRevisionAssessmentReportResponse> + PARSER = + new com.google.protobuf.AbstractParser< + FetchCatalogTemplateRevisionAssessmentReportResponse>() { + @java.lang.Override + public FetchCatalogTemplateRevisionAssessmentReportResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchCatalogTemplateRevisionAssessmentReportResponseOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchCatalogTemplateRevisionAssessmentReportResponseOrBuilder.java new file mode 100644 index 000000000000..dbc78177285a --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchCatalogTemplateRevisionAssessmentReportResponseOrBuilder.java @@ -0,0 +1,65 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/catalog_management_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface FetchCatalogTemplateRevisionAssessmentReportResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.FetchCatalogTemplateRevisionAssessmentReportResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Assessment report for the catalog template revision.
+   * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1; + * + * @return Whether the assessmentReport field is set. + */ + boolean hasAssessmentReport(); + + /** + * + * + *
+   * Assessment report for the catalog template revision.
+   * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1; + * + * @return The assessmentReport. + */ + com.google.cloud.designcenter.v1.AssessmentReport getAssessmentReport(); + + /** + * + * + *
+   * Assessment report for the catalog template revision.
+   * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1; + */ + com.google.cloud.designcenter.v1.AssessmentReportOrBuilder getAssessmentReportOrBuilder(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchCatalogTemplateRevisionTFSourceRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchCatalogTemplateRevisionTFSourceRequest.java new file mode 100644 index 000000000000..cb0551841630 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchCatalogTemplateRevisionTFSourceRequest.java @@ -0,0 +1,655 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/catalog_management_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Request message for fetching the Terraform source of a catalog template
+ * revision.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceRequest} + */ +@com.google.protobuf.Generated +public final class FetchCatalogTemplateRevisionTFSourceRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceRequest) + FetchCatalogTemplateRevisionTFSourceRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "FetchCatalogTemplateRevisionTFSourceRequest"); + } + + // Use FetchCatalogTemplateRevisionTFSourceRequest.newBuilder() to construct. + private FetchCatalogTemplateRevisionTFSourceRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private FetchCatalogTemplateRevisionTFSourceRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_FetchCatalogTemplateRevisionTFSourceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_FetchCatalogTemplateRevisionTFSourceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceRequest.class, + com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceRequest.Builder + .class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. Name of the resource
+   * Eg:
+   * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template/revisions/$revision`
+   * 
+ * + * + * 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
+   * Eg:
+   * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template/revisions/$revision`
+   * 
+ * + * + * 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.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.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.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.designcenter.v1.FetchCatalogTemplateRevisionTFSourceRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceRequest other = + (com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceRequest) 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.designcenter.v1.FetchCatalogTemplateRevisionTFSourceRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceRequest + 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.designcenter.v1.FetchCatalogTemplateRevisionTFSourceRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.FetchCatalogTemplateRevisionTFSourceRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for fetching the Terraform source of a catalog template
+   * revision.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceRequest) + com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_FetchCatalogTemplateRevisionTFSourceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_FetchCatalogTemplateRevisionTFSourceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceRequest.class, + com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.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.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_FetchCatalogTemplateRevisionTFSourceRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceRequest + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceRequest build() { + com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceRequest + buildPartial() { + com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceRequest result = + new com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceRequest) { + return mergeFrom( + (com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceRequest other) { + if (other + == com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceRequest + .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
+     * Eg:
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template/revisions/$revision`
+     * 
+ * + * + * 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
+     * Eg:
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template/revisions/$revision`
+     * 
+ * + * + * 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
+     * Eg:
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template/revisions/$revision`
+     * 
+ * + * + * 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
+     * Eg:
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template/revisions/$revision`
+     * 
+ * + * + * 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
+     * Eg:
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template/revisions/$revision`
+     * 
+ * + * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceRequest) + private static final com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceRequest(); + } + + public static com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FetchCatalogTemplateRevisionTFSourceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.FetchCatalogTemplateRevisionTFSourceRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchCatalogTemplateRevisionTFSourceRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchCatalogTemplateRevisionTFSourceRequestOrBuilder.java new file mode 100644 index 000000000000..4c354ffa9ea6 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchCatalogTemplateRevisionTFSourceRequestOrBuilder.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/catalog_management_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface FetchCatalogTemplateRevisionTFSourceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the resource
+   * Eg:
+   * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template/revisions/$revision`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. Name of the resource
+   * Eg:
+   * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template/revisions/$revision`
+   * 
+ * + * + * 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-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchCatalogTemplateRevisionTFSourceResponse.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchCatalogTemplateRevisionTFSourceResponse.java new file mode 100644 index 000000000000..11d3ca25998f --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchCatalogTemplateRevisionTFSourceResponse.java @@ -0,0 +1,1253 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/catalog_management_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Response message for getting the Terraform source of a catalog template
+ * revision.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceResponse} + */ +@com.google.protobuf.Generated +public final class FetchCatalogTemplateRevisionTFSourceResponse + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceResponse) + FetchCatalogTemplateRevisionTFSourceResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "FetchCatalogTemplateRevisionTFSourceResponse"); + } + + // Use FetchCatalogTemplateRevisionTFSourceResponse.newBuilder() to construct. + private FetchCatalogTemplateRevisionTFSourceResponse( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private FetchCatalogTemplateRevisionTFSourceResponse() { + modules_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_FetchCatalogTemplateRevisionTFSourceResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_FetchCatalogTemplateRevisionTFSourceResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceResponse.class, + com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceResponse.Builder + .class); + } + + private int bitField0_; + public static final int ROOT_MODULE_FIELD_NUMBER = 1; + private com.google.cloud.designcenter.v1.TerraformModule rootModule_; + + /** + * + * + *
+   * The root Terraform module of the catalog template revision.
+   * 
+ * + * .google.cloud.designcenter.v1.TerraformModule root_module = 1; + * + * @return Whether the rootModule field is set. + */ + @java.lang.Override + public boolean hasRootModule() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * The root Terraform module of the catalog template revision.
+   * 
+ * + * .google.cloud.designcenter.v1.TerraformModule root_module = 1; + * + * @return The rootModule. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformModule getRootModule() { + return rootModule_ == null + ? com.google.cloud.designcenter.v1.TerraformModule.getDefaultInstance() + : rootModule_; + } + + /** + * + * + *
+   * The root Terraform module of the catalog template revision.
+   * 
+ * + * .google.cloud.designcenter.v1.TerraformModule root_module = 1; + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformModuleOrBuilder getRootModuleOrBuilder() { + return rootModule_ == null + ? com.google.cloud.designcenter.v1.TerraformModule.getDefaultInstance() + : rootModule_; + } + + public static final int MODULES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List modules_; + + /** + * + * + *
+   * The dependent Terraform modules used by the root module.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformModule modules = 2; + */ + @java.lang.Override + public java.util.List getModulesList() { + return modules_; + } + + /** + * + * + *
+   * The dependent Terraform modules used by the root module.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformModule modules = 2; + */ + @java.lang.Override + public java.util.List + getModulesOrBuilderList() { + return modules_; + } + + /** + * + * + *
+   * The dependent Terraform modules used by the root module.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformModule modules = 2; + */ + @java.lang.Override + public int getModulesCount() { + return modules_.size(); + } + + /** + * + * + *
+   * The dependent Terraform modules used by the root module.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformModule modules = 2; + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformModule getModules(int index) { + return modules_.get(index); + } + + /** + * + * + *
+   * The dependent Terraform modules used by the root module.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformModule modules = 2; + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformModuleOrBuilder getModulesOrBuilder(int index) { + return modules_.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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getRootModule()); + } + for (int i = 0; i < modules_.size(); i++) { + output.writeMessage(2, modules_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRootModule()); + } + for (int i = 0; i < modules_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, modules_.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.designcenter.v1.FetchCatalogTemplateRevisionTFSourceResponse)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceResponse other = + (com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceResponse) obj; + + if (hasRootModule() != other.hasRootModule()) return false; + if (hasRootModule()) { + if (!getRootModule().equals(other.getRootModule())) return false; + } + if (!getModulesList().equals(other.getModulesList())) 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 (hasRootModule()) { + hash = (37 * hash) + ROOT_MODULE_FIELD_NUMBER; + hash = (53 * hash) + getRootModule().hashCode(); + } + if (getModulesCount() > 0) { + hash = (37 * hash) + MODULES_FIELD_NUMBER; + hash = (53 * hash) + getModulesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceResponse + 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.designcenter.v1.FetchCatalogTemplateRevisionTFSourceResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceResponse + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceResponse + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceResponse + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.FetchCatalogTemplateRevisionTFSourceResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response message for getting the Terraform source of a catalog template
+   * revision.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceResponse) + com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_FetchCatalogTemplateRevisionTFSourceResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_FetchCatalogTemplateRevisionTFSourceResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceResponse.class, + com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetRootModuleFieldBuilder(); + internalGetModulesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + rootModule_ = null; + if (rootModuleBuilder_ != null) { + rootModuleBuilder_.dispose(); + rootModuleBuilder_ = null; + } + if (modulesBuilder_ == null) { + modules_ = java.util.Collections.emptyList(); + } else { + modules_ = null; + modulesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_FetchCatalogTemplateRevisionTFSourceResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceResponse + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceResponse build() { + com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceResponse + buildPartial() { + com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceResponse result = + new com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceResponse result) { + if (modulesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + modules_ = java.util.Collections.unmodifiableList(modules_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.modules_ = modules_; + } else { + result.modules_ = modulesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.rootModule_ = rootModuleBuilder_ == null ? rootModule_ : rootModuleBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceResponse) { + return mergeFrom( + (com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceResponse other) { + if (other + == com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceResponse + .getDefaultInstance()) return this; + if (other.hasRootModule()) { + mergeRootModule(other.getRootModule()); + } + if (modulesBuilder_ == null) { + if (!other.modules_.isEmpty()) { + if (modules_.isEmpty()) { + modules_ = other.modules_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureModulesIsMutable(); + modules_.addAll(other.modules_); + } + onChanged(); + } + } else { + if (!other.modules_.isEmpty()) { + if (modulesBuilder_.isEmpty()) { + modulesBuilder_.dispose(); + modulesBuilder_ = null; + modules_ = other.modules_; + bitField0_ = (bitField0_ & ~0x00000002); + modulesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetModulesFieldBuilder() + : null; + } else { + modulesBuilder_.addAllMessages(other.modules_); + } + } + } + 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( + internalGetRootModuleFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.designcenter.v1.TerraformModule m = + input.readMessage( + com.google.cloud.designcenter.v1.TerraformModule.parser(), + extensionRegistry); + if (modulesBuilder_ == null) { + ensureModulesIsMutable(); + modules_.add(m); + } else { + modulesBuilder_.addMessage(m); + } + 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.designcenter.v1.TerraformModule rootModule_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.TerraformModule, + com.google.cloud.designcenter.v1.TerraformModule.Builder, + com.google.cloud.designcenter.v1.TerraformModuleOrBuilder> + rootModuleBuilder_; + + /** + * + * + *
+     * The root Terraform module of the catalog template revision.
+     * 
+ * + * .google.cloud.designcenter.v1.TerraformModule root_module = 1; + * + * @return Whether the rootModule field is set. + */ + public boolean hasRootModule() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * The root Terraform module of the catalog template revision.
+     * 
+ * + * .google.cloud.designcenter.v1.TerraformModule root_module = 1; + * + * @return The rootModule. + */ + public com.google.cloud.designcenter.v1.TerraformModule getRootModule() { + if (rootModuleBuilder_ == null) { + return rootModule_ == null + ? com.google.cloud.designcenter.v1.TerraformModule.getDefaultInstance() + : rootModule_; + } else { + return rootModuleBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * The root Terraform module of the catalog template revision.
+     * 
+ * + * .google.cloud.designcenter.v1.TerraformModule root_module = 1; + */ + public Builder setRootModule(com.google.cloud.designcenter.v1.TerraformModule value) { + if (rootModuleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rootModule_ = value; + } else { + rootModuleBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The root Terraform module of the catalog template revision.
+     * 
+ * + * .google.cloud.designcenter.v1.TerraformModule root_module = 1; + */ + public Builder setRootModule( + com.google.cloud.designcenter.v1.TerraformModule.Builder builderForValue) { + if (rootModuleBuilder_ == null) { + rootModule_ = builderForValue.build(); + } else { + rootModuleBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The root Terraform module of the catalog template revision.
+     * 
+ * + * .google.cloud.designcenter.v1.TerraformModule root_module = 1; + */ + public Builder mergeRootModule(com.google.cloud.designcenter.v1.TerraformModule value) { + if (rootModuleBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && rootModule_ != null + && rootModule_ + != com.google.cloud.designcenter.v1.TerraformModule.getDefaultInstance()) { + getRootModuleBuilder().mergeFrom(value); + } else { + rootModule_ = value; + } + } else { + rootModuleBuilder_.mergeFrom(value); + } + if (rootModule_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The root Terraform module of the catalog template revision.
+     * 
+ * + * .google.cloud.designcenter.v1.TerraformModule root_module = 1; + */ + public Builder clearRootModule() { + bitField0_ = (bitField0_ & ~0x00000001); + rootModule_ = null; + if (rootModuleBuilder_ != null) { + rootModuleBuilder_.dispose(); + rootModuleBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * The root Terraform module of the catalog template revision.
+     * 
+ * + * .google.cloud.designcenter.v1.TerraformModule root_module = 1; + */ + public com.google.cloud.designcenter.v1.TerraformModule.Builder getRootModuleBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetRootModuleFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * The root Terraform module of the catalog template revision.
+     * 
+ * + * .google.cloud.designcenter.v1.TerraformModule root_module = 1; + */ + public com.google.cloud.designcenter.v1.TerraformModuleOrBuilder getRootModuleOrBuilder() { + if (rootModuleBuilder_ != null) { + return rootModuleBuilder_.getMessageOrBuilder(); + } else { + return rootModule_ == null + ? com.google.cloud.designcenter.v1.TerraformModule.getDefaultInstance() + : rootModule_; + } + } + + /** + * + * + *
+     * The root Terraform module of the catalog template revision.
+     * 
+ * + * .google.cloud.designcenter.v1.TerraformModule root_module = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.TerraformModule, + com.google.cloud.designcenter.v1.TerraformModule.Builder, + com.google.cloud.designcenter.v1.TerraformModuleOrBuilder> + internalGetRootModuleFieldBuilder() { + if (rootModuleBuilder_ == null) { + rootModuleBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.TerraformModule, + com.google.cloud.designcenter.v1.TerraformModule.Builder, + com.google.cloud.designcenter.v1.TerraformModuleOrBuilder>( + getRootModule(), getParentForChildren(), isClean()); + rootModule_ = null; + } + return rootModuleBuilder_; + } + + private java.util.List modules_ = + java.util.Collections.emptyList(); + + private void ensureModulesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + modules_ = + new java.util.ArrayList(modules_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.TerraformModule, + com.google.cloud.designcenter.v1.TerraformModule.Builder, + com.google.cloud.designcenter.v1.TerraformModuleOrBuilder> + modulesBuilder_; + + /** + * + * + *
+     * The dependent Terraform modules used by the root module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformModule modules = 2; + */ + public java.util.List getModulesList() { + if (modulesBuilder_ == null) { + return java.util.Collections.unmodifiableList(modules_); + } else { + return modulesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The dependent Terraform modules used by the root module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformModule modules = 2; + */ + public int getModulesCount() { + if (modulesBuilder_ == null) { + return modules_.size(); + } else { + return modulesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The dependent Terraform modules used by the root module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformModule modules = 2; + */ + public com.google.cloud.designcenter.v1.TerraformModule getModules(int index) { + if (modulesBuilder_ == null) { + return modules_.get(index); + } else { + return modulesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The dependent Terraform modules used by the root module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformModule modules = 2; + */ + public Builder setModules(int index, com.google.cloud.designcenter.v1.TerraformModule value) { + if (modulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureModulesIsMutable(); + modules_.set(index, value); + onChanged(); + } else { + modulesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The dependent Terraform modules used by the root module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformModule modules = 2; + */ + public Builder setModules( + int index, com.google.cloud.designcenter.v1.TerraformModule.Builder builderForValue) { + if (modulesBuilder_ == null) { + ensureModulesIsMutable(); + modules_.set(index, builderForValue.build()); + onChanged(); + } else { + modulesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The dependent Terraform modules used by the root module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformModule modules = 2; + */ + public Builder addModules(com.google.cloud.designcenter.v1.TerraformModule value) { + if (modulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureModulesIsMutable(); + modules_.add(value); + onChanged(); + } else { + modulesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The dependent Terraform modules used by the root module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformModule modules = 2; + */ + public Builder addModules(int index, com.google.cloud.designcenter.v1.TerraformModule value) { + if (modulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureModulesIsMutable(); + modules_.add(index, value); + onChanged(); + } else { + modulesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The dependent Terraform modules used by the root module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformModule modules = 2; + */ + public Builder addModules( + com.google.cloud.designcenter.v1.TerraformModule.Builder builderForValue) { + if (modulesBuilder_ == null) { + ensureModulesIsMutable(); + modules_.add(builderForValue.build()); + onChanged(); + } else { + modulesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The dependent Terraform modules used by the root module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformModule modules = 2; + */ + public Builder addModules( + int index, com.google.cloud.designcenter.v1.TerraformModule.Builder builderForValue) { + if (modulesBuilder_ == null) { + ensureModulesIsMutable(); + modules_.add(index, builderForValue.build()); + onChanged(); + } else { + modulesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The dependent Terraform modules used by the root module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformModule modules = 2; + */ + public Builder addAllModules( + java.lang.Iterable values) { + if (modulesBuilder_ == null) { + ensureModulesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, modules_); + onChanged(); + } else { + modulesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The dependent Terraform modules used by the root module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformModule modules = 2; + */ + public Builder clearModules() { + if (modulesBuilder_ == null) { + modules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + modulesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The dependent Terraform modules used by the root module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformModule modules = 2; + */ + public Builder removeModules(int index) { + if (modulesBuilder_ == null) { + ensureModulesIsMutable(); + modules_.remove(index); + onChanged(); + } else { + modulesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The dependent Terraform modules used by the root module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformModule modules = 2; + */ + public com.google.cloud.designcenter.v1.TerraformModule.Builder getModulesBuilder(int index) { + return internalGetModulesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The dependent Terraform modules used by the root module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformModule modules = 2; + */ + public com.google.cloud.designcenter.v1.TerraformModuleOrBuilder getModulesOrBuilder( + int index) { + if (modulesBuilder_ == null) { + return modules_.get(index); + } else { + return modulesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The dependent Terraform modules used by the root module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformModule modules = 2; + */ + public java.util.List + getModulesOrBuilderList() { + if (modulesBuilder_ != null) { + return modulesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(modules_); + } + } + + /** + * + * + *
+     * The dependent Terraform modules used by the root module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformModule modules = 2; + */ + public com.google.cloud.designcenter.v1.TerraformModule.Builder addModulesBuilder() { + return internalGetModulesFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.TerraformModule.getDefaultInstance()); + } + + /** + * + * + *
+     * The dependent Terraform modules used by the root module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformModule modules = 2; + */ + public com.google.cloud.designcenter.v1.TerraformModule.Builder addModulesBuilder(int index) { + return internalGetModulesFieldBuilder() + .addBuilder(index, com.google.cloud.designcenter.v1.TerraformModule.getDefaultInstance()); + } + + /** + * + * + *
+     * The dependent Terraform modules used by the root module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformModule modules = 2; + */ + public java.util.List + getModulesBuilderList() { + return internalGetModulesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.TerraformModule, + com.google.cloud.designcenter.v1.TerraformModule.Builder, + com.google.cloud.designcenter.v1.TerraformModuleOrBuilder> + internalGetModulesFieldBuilder() { + if (modulesBuilder_ == null) { + modulesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.TerraformModule, + com.google.cloud.designcenter.v1.TerraformModule.Builder, + com.google.cloud.designcenter.v1.TerraformModuleOrBuilder>( + modules_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + modules_ = null; + } + return modulesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceResponse) + private static final com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceResponse(); + } + + public static com.google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FetchCatalogTemplateRevisionTFSourceResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.FetchCatalogTemplateRevisionTFSourceResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchCatalogTemplateRevisionTFSourceResponseOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchCatalogTemplateRevisionTFSourceResponseOrBuilder.java new file mode 100644 index 000000000000..eb3aa766934d --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchCatalogTemplateRevisionTFSourceResponseOrBuilder.java @@ -0,0 +1,121 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/catalog_management_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface FetchCatalogTemplateRevisionTFSourceResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.FetchCatalogTemplateRevisionTFSourceResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The root Terraform module of the catalog template revision.
+   * 
+ * + * .google.cloud.designcenter.v1.TerraformModule root_module = 1; + * + * @return Whether the rootModule field is set. + */ + boolean hasRootModule(); + + /** + * + * + *
+   * The root Terraform module of the catalog template revision.
+   * 
+ * + * .google.cloud.designcenter.v1.TerraformModule root_module = 1; + * + * @return The rootModule. + */ + com.google.cloud.designcenter.v1.TerraformModule getRootModule(); + + /** + * + * + *
+   * The root Terraform module of the catalog template revision.
+   * 
+ * + * .google.cloud.designcenter.v1.TerraformModule root_module = 1; + */ + com.google.cloud.designcenter.v1.TerraformModuleOrBuilder getRootModuleOrBuilder(); + + /** + * + * + *
+   * The dependent Terraform modules used by the root module.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformModule modules = 2; + */ + java.util.List getModulesList(); + + /** + * + * + *
+   * The dependent Terraform modules used by the root module.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformModule modules = 2; + */ + com.google.cloud.designcenter.v1.TerraformModule getModules(int index); + + /** + * + * + *
+   * The dependent Terraform modules used by the root module.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformModule modules = 2; + */ + int getModulesCount(); + + /** + * + * + *
+   * The dependent Terraform modules used by the root module.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformModule modules = 2; + */ + java.util.List + getModulesOrBuilderList(); + + /** + * + * + *
+   * The dependent Terraform modules used by the root module.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformModule modules = 2; + */ + com.google.cloud.designcenter.v1.TerraformModuleOrBuilder getModulesOrBuilder(int index); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchFrameworksRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchFrameworksRequest.java new file mode 100644 index 000000000000..7a7f113cbb77 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchFrameworksRequest.java @@ -0,0 +1,1411 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/best_practices_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Request for FetchFrameworks rpc
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.FetchFrameworksRequest} + */ +@com.google.protobuf.Generated +public final class FetchFrameworksRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.FetchFrameworksRequest) + FetchFrameworksRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "FetchFrameworksRequest"); + } + + // Use FetchFrameworksRequest.newBuilder() to construct. + private FetchFrameworksRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private FetchFrameworksRequest() { + parent_ = ""; + projects_ = com.google.protobuf.LazyStringArrayList.emptyList(); + pageToken_ = ""; + filter_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_FetchFrameworksRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_FetchFrameworksRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.FetchFrameworksRequest.class, + com.google.cloud.designcenter.v1.FetchFrameworksRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent resource name.
+   * Format: projects/{project}/locations/{location}
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The parent resource name.
+   * Format: projects/{project}/locations/{location}
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 PROJECTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList projects_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Optional. Projects to fetch frameworks for.
+   * Format: projects/{project}
+   * 
+ * + * repeated string projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the projects. + */ + public com.google.protobuf.ProtocolStringList getProjectsList() { + return projects_; + } + + /** + * + * + *
+   * Optional. Projects to fetch frameworks for.
+   * Format: projects/{project}
+   * 
+ * + * repeated string projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of projects. + */ + public int getProjectsCount() { + return projects_.size(); + } + + /** + * + * + *
+   * Optional. Projects to fetch frameworks for.
+   * Format: projects/{project}
+   * 
+ * + * repeated string projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The projects at the given index. + */ + public java.lang.String getProjects(int index) { + return projects_.get(index); + } + + /** + * + * + *
+   * Optional. Projects to fetch frameworks for.
+   * Format: projects/{project}
+   * 
+ * + * repeated string projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the projects at the given index. + */ + public com.google.protobuf.ByteString getProjectsBytes(int index) { + return projects_.getByteString(index); + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 3; + private int pageSize_ = 0; + + /** + * + * + *
+   * Optional. The maximum number of results to return from this request.
+   * Non-positive values are ignored. The presence of nextPageToken in the
+   * response indicates that more results might be available.
+   * 
+ * + * 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. If present, then retrieve the next batch of results from the
+   * preceding call to this method. pageToken must be the value of nextPageToken
+   * from the previous response. The values of other method parameters should be
+   * identical to those in the previous call.
+   * 
+ * + * 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. If present, then retrieve the next batch of results from the
+   * preceding call to this method. pageToken must be the value of nextPageToken
+   * from the previous response. The values of other method parameters should be
+   * identical to those in the previous call.
+   * 
+ * + * 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; + } + } + + public static final int FILTER_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
+   * Optional. Filter for frameworks list.
+   * 
+ * + * string filter = 5 [(.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. Filter for frameworks list.
+   * 
+ * + * string filter = 5 [(.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; + } + } + + 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.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + for (int i = 0; i < projects_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, projects_.getRaw(i)); + } + if (pageSize_ != 0) { + output.writeInt32(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, filter_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + { + int dataSize = 0; + for (int i = 0; i < projects_.size(); i++) { + dataSize += computeStringSizeNoTag(projects_.getRaw(i)); + } + size += dataSize; + size += 1 * getProjectsList().size(); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, 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.designcenter.v1.FetchFrameworksRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.FetchFrameworksRequest other = + (com.google.cloud.designcenter.v1.FetchFrameworksRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getProjectsList().equals(other.getProjectsList())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) 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(); + if (getProjectsCount() > 0) { + hash = (37 * hash) + PROJECTS_FIELD_NUMBER; + hash = (53 * hash) + getProjectsList().hashCode(); + } + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.FetchFrameworksRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.FetchFrameworksRequest 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.designcenter.v1.FetchFrameworksRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.FetchFrameworksRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.FetchFrameworksRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.FetchFrameworksRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.FetchFrameworksRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.FetchFrameworksRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.FetchFrameworksRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.FetchFrameworksRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.FetchFrameworksRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.FetchFrameworksRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.FetchFrameworksRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request for FetchFrameworks rpc
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.FetchFrameworksRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.FetchFrameworksRequest) + com.google.cloud.designcenter.v1.FetchFrameworksRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_FetchFrameworksRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_FetchFrameworksRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.FetchFrameworksRequest.class, + com.google.cloud.designcenter.v1.FetchFrameworksRequest.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.FetchFrameworksRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + projects_ = com.google.protobuf.LazyStringArrayList.emptyList(); + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_FetchFrameworksRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.FetchFrameworksRequest getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.FetchFrameworksRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.FetchFrameworksRequest build() { + com.google.cloud.designcenter.v1.FetchFrameworksRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.FetchFrameworksRequest buildPartial() { + com.google.cloud.designcenter.v1.FetchFrameworksRequest result = + new com.google.cloud.designcenter.v1.FetchFrameworksRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.FetchFrameworksRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + projects_.makeImmutable(); + result.projects_ = projects_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.filter_ = filter_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.FetchFrameworksRequest) { + return mergeFrom((com.google.cloud.designcenter.v1.FetchFrameworksRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.FetchFrameworksRequest other) { + if (other == com.google.cloud.designcenter.v1.FetchFrameworksRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.projects_.isEmpty()) { + if (projects_.isEmpty()) { + projects_ = other.projects_; + bitField0_ |= 0x00000002; + } else { + ensureProjectsIsMutable(); + projects_.addAll(other.projects_); + } + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + 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 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureProjectsIsMutable(); + projects_.add(s); + break; + } // case 18 + case 24: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent resource name.
+     * Format: projects/{project}/locations/{location}
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The parent resource name.
+     * Format: projects/{project}/locations/{location}
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The parent resource name.
+     * Format: projects/{project}/locations/{location}
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource name.
+     * Format: projects/{project}/locations/{location}
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource name.
+     * Format: projects/{project}/locations/{location}
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 com.google.protobuf.LazyStringArrayList projects_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureProjectsIsMutable() { + if (!projects_.isModifiable()) { + projects_ = new com.google.protobuf.LazyStringArrayList(projects_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
+     * Optional. Projects to fetch frameworks for.
+     * Format: projects/{project}
+     * 
+ * + * repeated string projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the projects. + */ + public com.google.protobuf.ProtocolStringList getProjectsList() { + projects_.makeImmutable(); + return projects_; + } + + /** + * + * + *
+     * Optional. Projects to fetch frameworks for.
+     * Format: projects/{project}
+     * 
+ * + * repeated string projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of projects. + */ + public int getProjectsCount() { + return projects_.size(); + } + + /** + * + * + *
+     * Optional. Projects to fetch frameworks for.
+     * Format: projects/{project}
+     * 
+ * + * repeated string projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The projects at the given index. + */ + public java.lang.String getProjects(int index) { + return projects_.get(index); + } + + /** + * + * + *
+     * Optional. Projects to fetch frameworks for.
+     * Format: projects/{project}
+     * 
+ * + * repeated string projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the projects at the given index. + */ + public com.google.protobuf.ByteString getProjectsBytes(int index) { + return projects_.getByteString(index); + } + + /** + * + * + *
+     * Optional. Projects to fetch frameworks for.
+     * Format: projects/{project}
+     * 
+ * + * repeated string projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The projects to set. + * @return This builder for chaining. + */ + public Builder setProjects(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureProjectsIsMutable(); + projects_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Projects to fetch frameworks for.
+     * Format: projects/{project}
+     * 
+ * + * repeated string projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The projects to add. + * @return This builder for chaining. + */ + public Builder addProjects(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureProjectsIsMutable(); + projects_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Projects to fetch frameworks for.
+     * Format: projects/{project}
+     * 
+ * + * repeated string projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The projects to add. + * @return This builder for chaining. + */ + public Builder addAllProjects(java.lang.Iterable values) { + ensureProjectsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, projects_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Projects to fetch frameworks for.
+     * Format: projects/{project}
+     * 
+ * + * repeated string projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearProjects() { + projects_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Projects to fetch frameworks for.
+     * Format: projects/{project}
+     * 
+ * + * repeated string projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the projects to add. + * @return This builder for chaining. + */ + public Builder addProjectsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureProjectsIsMutable(); + projects_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
+     * Optional. The maximum number of results to return from this request.
+     * Non-positive values are ignored. The presence of nextPageToken in the
+     * response indicates that more results might be available.
+     * 
+ * + * 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 results to return from this request.
+     * Non-positive values are ignored. The presence of nextPageToken in the
+     * response indicates that more results might be available.
+     * 
+ * + * 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 results to return from this request.
+     * Non-positive values are ignored. The presence of nextPageToken in the
+     * response indicates that more results might be available.
+     * 
+ * + * 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. If present, then retrieve the next batch of results from the
+     * preceding call to this method. pageToken must be the value of nextPageToken
+     * from the previous response. The values of other method parameters should be
+     * identical to those in the previous call.
+     * 
+ * + * 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. If present, then retrieve the next batch of results from the
+     * preceding call to this method. pageToken must be the value of nextPageToken
+     * from the previous response. The values of other method parameters should be
+     * identical to those in the previous call.
+     * 
+ * + * 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. If present, then retrieve the next batch of results from the
+     * preceding call to this method. pageToken must be the value of nextPageToken
+     * from the previous response. The values of other method parameters should be
+     * identical to those in the previous call.
+     * 
+ * + * 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. If present, then retrieve the next batch of results from the
+     * preceding call to this method. pageToken must be the value of nextPageToken
+     * from the previous response. The values of other method parameters should be
+     * identical to those in the previous call.
+     * 
+ * + * 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. If present, then retrieve the next batch of results from the
+     * preceding call to this method. pageToken must be the value of nextPageToken
+     * from the previous response. The values of other method parameters should be
+     * identical to those in the previous call.
+     * 
+ * + * 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; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
+     * Optional. Filter for frameworks list.
+     * 
+ * + * string filter = 5 [(.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. Filter for frameworks list.
+     * 
+ * + * string filter = 5 [(.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. Filter for frameworks list.
+     * 
+ * + * string filter = 5 [(.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_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Filter for frameworks list.
+     * 
+ * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Filter for frameworks list.
+     * 
+ * + * string filter = 5 [(.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_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.FetchFrameworksRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.FetchFrameworksRequest) + private static final com.google.cloud.designcenter.v1.FetchFrameworksRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.FetchFrameworksRequest(); + } + + public static com.google.cloud.designcenter.v1.FetchFrameworksRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FetchFrameworksRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.FetchFrameworksRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchFrameworksRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchFrameworksRequestOrBuilder.java new file mode 100644 index 000000000000..c5ea30b2e867 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchFrameworksRequestOrBuilder.java @@ -0,0 +1,187 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/best_practices_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface FetchFrameworksRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.FetchFrameworksRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource name.
+   * Format: projects/{project}/locations/{location}
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent resource name.
+   * Format: projects/{project}/locations/{location}
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. Projects to fetch frameworks for.
+   * Format: projects/{project}
+   * 
+ * + * repeated string projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the projects. + */ + java.util.List getProjectsList(); + + /** + * + * + *
+   * Optional. Projects to fetch frameworks for.
+   * Format: projects/{project}
+   * 
+ * + * repeated string projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of projects. + */ + int getProjectsCount(); + + /** + * + * + *
+   * Optional. Projects to fetch frameworks for.
+   * Format: projects/{project}
+   * 
+ * + * repeated string projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The projects at the given index. + */ + java.lang.String getProjects(int index); + + /** + * + * + *
+   * Optional. Projects to fetch frameworks for.
+   * Format: projects/{project}
+   * 
+ * + * repeated string projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the projects at the given index. + */ + com.google.protobuf.ByteString getProjectsBytes(int index); + + /** + * + * + *
+   * Optional. The maximum number of results to return from this request.
+   * Non-positive values are ignored. The presence of nextPageToken in the
+   * response indicates that more results might be available.
+   * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. If present, then retrieve the next batch of results from the
+   * preceding call to this method. pageToken must be the value of nextPageToken
+   * from the previous response. The values of other method parameters should be
+   * identical to those in the previous call.
+   * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * Optional. If present, then retrieve the next batch of results from the
+   * preceding call to this method. pageToken must be the value of nextPageToken
+   * from the previous response. The values of other method parameters should be
+   * identical to those in the previous call.
+   * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional. Filter for frameworks list.
+   * 
+ * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * Optional. Filter for frameworks list.
+   * 
+ * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchFrameworksResponse.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchFrameworksResponse.java new file mode 100644 index 000000000000..ae745840de50 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchFrameworksResponse.java @@ -0,0 +1,1121 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/best_practices_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Response for FetchFrameworks rpc
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.FetchFrameworksResponse} + */ +@com.google.protobuf.Generated +public final class FetchFrameworksResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.FetchFrameworksResponse) + FetchFrameworksResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "FetchFrameworksResponse"); + } + + // Use FetchFrameworksResponse.newBuilder() to construct. + private FetchFrameworksResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private FetchFrameworksResponse() { + frameworks_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_FetchFrameworksResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_FetchFrameworksResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.FetchFrameworksResponse.class, + com.google.cloud.designcenter.v1.FetchFrameworksResponse.Builder.class); + } + + public static final int FRAMEWORKS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List frameworks_; + + /** + * + * + *
+   * The list of frameworks.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Framework frameworks = 1; + */ + @java.lang.Override + public java.util.List getFrameworksList() { + return frameworks_; + } + + /** + * + * + *
+   * The list of frameworks.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Framework frameworks = 1; + */ + @java.lang.Override + public java.util.List + getFrameworksOrBuilderList() { + return frameworks_; + } + + /** + * + * + *
+   * The list of frameworks.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Framework frameworks = 1; + */ + @java.lang.Override + public int getFrameworksCount() { + return frameworks_.size(); + } + + /** + * + * + *
+   * The list of frameworks.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Framework frameworks = 1; + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.Framework getFrameworks(int index) { + return frameworks_.get(index); + } + + /** + * + * + *
+   * The list of frameworks.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Framework frameworks = 1; + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.FrameworkOrBuilder getFrameworksOrBuilder(int index) { + return frameworks_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * A token, which 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, which 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 < frameworks_.size(); i++) { + output.writeMessage(1, frameworks_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.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 < frameworks_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, frameworks_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.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.designcenter.v1.FetchFrameworksResponse)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.FetchFrameworksResponse other = + (com.google.cloud.designcenter.v1.FetchFrameworksResponse) obj; + + if (!getFrameworksList().equals(other.getFrameworksList())) 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 (getFrameworksCount() > 0) { + hash = (37 * hash) + FRAMEWORKS_FIELD_NUMBER; + hash = (53 * hash) + getFrameworksList().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.designcenter.v1.FetchFrameworksResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.FetchFrameworksResponse 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.designcenter.v1.FetchFrameworksResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.FetchFrameworksResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.FetchFrameworksResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.FetchFrameworksResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.FetchFrameworksResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.FetchFrameworksResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.FetchFrameworksResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.FetchFrameworksResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.FetchFrameworksResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.FetchFrameworksResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.FetchFrameworksResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response for FetchFrameworks rpc
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.FetchFrameworksResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.FetchFrameworksResponse) + com.google.cloud.designcenter.v1.FetchFrameworksResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_FetchFrameworksResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_FetchFrameworksResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.FetchFrameworksResponse.class, + com.google.cloud.designcenter.v1.FetchFrameworksResponse.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.FetchFrameworksResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (frameworksBuilder_ == null) { + frameworks_ = java.util.Collections.emptyList(); + } else { + frameworks_ = null; + frameworksBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_FetchFrameworksResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.FetchFrameworksResponse getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.FetchFrameworksResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.FetchFrameworksResponse build() { + com.google.cloud.designcenter.v1.FetchFrameworksResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.FetchFrameworksResponse buildPartial() { + com.google.cloud.designcenter.v1.FetchFrameworksResponse result = + new com.google.cloud.designcenter.v1.FetchFrameworksResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.designcenter.v1.FetchFrameworksResponse result) { + if (frameworksBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + frameworks_ = java.util.Collections.unmodifiableList(frameworks_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.frameworks_ = frameworks_; + } else { + result.frameworks_ = frameworksBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.designcenter.v1.FetchFrameworksResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.FetchFrameworksResponse) { + return mergeFrom((com.google.cloud.designcenter.v1.FetchFrameworksResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.FetchFrameworksResponse other) { + if (other == com.google.cloud.designcenter.v1.FetchFrameworksResponse.getDefaultInstance()) + return this; + if (frameworksBuilder_ == null) { + if (!other.frameworks_.isEmpty()) { + if (frameworks_.isEmpty()) { + frameworks_ = other.frameworks_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureFrameworksIsMutable(); + frameworks_.addAll(other.frameworks_); + } + onChanged(); + } + } else { + if (!other.frameworks_.isEmpty()) { + if (frameworksBuilder_.isEmpty()) { + frameworksBuilder_.dispose(); + frameworksBuilder_ = null; + frameworks_ = other.frameworks_; + bitField0_ = (bitField0_ & ~0x00000001); + frameworksBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetFrameworksFieldBuilder() + : null; + } else { + frameworksBuilder_.addAllMessages(other.frameworks_); + } + } + } + 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.designcenter.v1.Framework m = + input.readMessage( + com.google.cloud.designcenter.v1.Framework.parser(), extensionRegistry); + if (frameworksBuilder_ == null) { + ensureFrameworksIsMutable(); + frameworks_.add(m); + } else { + frameworksBuilder_.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 frameworks_ = + java.util.Collections.emptyList(); + + private void ensureFrameworksIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + frameworks_ = + new java.util.ArrayList(frameworks_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Framework, + com.google.cloud.designcenter.v1.Framework.Builder, + com.google.cloud.designcenter.v1.FrameworkOrBuilder> + frameworksBuilder_; + + /** + * + * + *
+     * The list of frameworks.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Framework frameworks = 1; + */ + public java.util.List getFrameworksList() { + if (frameworksBuilder_ == null) { + return java.util.Collections.unmodifiableList(frameworks_); + } else { + return frameworksBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The list of frameworks.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Framework frameworks = 1; + */ + public int getFrameworksCount() { + if (frameworksBuilder_ == null) { + return frameworks_.size(); + } else { + return frameworksBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The list of frameworks.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Framework frameworks = 1; + */ + public com.google.cloud.designcenter.v1.Framework getFrameworks(int index) { + if (frameworksBuilder_ == null) { + return frameworks_.get(index); + } else { + return frameworksBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The list of frameworks.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Framework frameworks = 1; + */ + public Builder setFrameworks(int index, com.google.cloud.designcenter.v1.Framework value) { + if (frameworksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFrameworksIsMutable(); + frameworks_.set(index, value); + onChanged(); + } else { + frameworksBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of frameworks.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Framework frameworks = 1; + */ + public Builder setFrameworks( + int index, com.google.cloud.designcenter.v1.Framework.Builder builderForValue) { + if (frameworksBuilder_ == null) { + ensureFrameworksIsMutable(); + frameworks_.set(index, builderForValue.build()); + onChanged(); + } else { + frameworksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of frameworks.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Framework frameworks = 1; + */ + public Builder addFrameworks(com.google.cloud.designcenter.v1.Framework value) { + if (frameworksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFrameworksIsMutable(); + frameworks_.add(value); + onChanged(); + } else { + frameworksBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The list of frameworks.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Framework frameworks = 1; + */ + public Builder addFrameworks(int index, com.google.cloud.designcenter.v1.Framework value) { + if (frameworksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFrameworksIsMutable(); + frameworks_.add(index, value); + onChanged(); + } else { + frameworksBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of frameworks.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Framework frameworks = 1; + */ + public Builder addFrameworks( + com.google.cloud.designcenter.v1.Framework.Builder builderForValue) { + if (frameworksBuilder_ == null) { + ensureFrameworksIsMutable(); + frameworks_.add(builderForValue.build()); + onChanged(); + } else { + frameworksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of frameworks.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Framework frameworks = 1; + */ + public Builder addFrameworks( + int index, com.google.cloud.designcenter.v1.Framework.Builder builderForValue) { + if (frameworksBuilder_ == null) { + ensureFrameworksIsMutable(); + frameworks_.add(index, builderForValue.build()); + onChanged(); + } else { + frameworksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of frameworks.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Framework frameworks = 1; + */ + public Builder addAllFrameworks( + java.lang.Iterable values) { + if (frameworksBuilder_ == null) { + ensureFrameworksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, frameworks_); + onChanged(); + } else { + frameworksBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The list of frameworks.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Framework frameworks = 1; + */ + public Builder clearFrameworks() { + if (frameworksBuilder_ == null) { + frameworks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + frameworksBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The list of frameworks.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Framework frameworks = 1; + */ + public Builder removeFrameworks(int index) { + if (frameworksBuilder_ == null) { + ensureFrameworksIsMutable(); + frameworks_.remove(index); + onChanged(); + } else { + frameworksBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The list of frameworks.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Framework frameworks = 1; + */ + public com.google.cloud.designcenter.v1.Framework.Builder getFrameworksBuilder(int index) { + return internalGetFrameworksFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The list of frameworks.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Framework frameworks = 1; + */ + public com.google.cloud.designcenter.v1.FrameworkOrBuilder getFrameworksOrBuilder(int index) { + if (frameworksBuilder_ == null) { + return frameworks_.get(index); + } else { + return frameworksBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The list of frameworks.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Framework frameworks = 1; + */ + public java.util.List + getFrameworksOrBuilderList() { + if (frameworksBuilder_ != null) { + return frameworksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(frameworks_); + } + } + + /** + * + * + *
+     * The list of frameworks.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Framework frameworks = 1; + */ + public com.google.cloud.designcenter.v1.Framework.Builder addFrameworksBuilder() { + return internalGetFrameworksFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.Framework.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of frameworks.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Framework frameworks = 1; + */ + public com.google.cloud.designcenter.v1.Framework.Builder addFrameworksBuilder(int index) { + return internalGetFrameworksFieldBuilder() + .addBuilder(index, com.google.cloud.designcenter.v1.Framework.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of frameworks.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Framework frameworks = 1; + */ + public java.util.List + getFrameworksBuilderList() { + return internalGetFrameworksFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Framework, + com.google.cloud.designcenter.v1.Framework.Builder, + com.google.cloud.designcenter.v1.FrameworkOrBuilder> + internalGetFrameworksFieldBuilder() { + if (frameworksBuilder_ == null) { + frameworksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Framework, + com.google.cloud.designcenter.v1.Framework.Builder, + com.google.cloud.designcenter.v1.FrameworkOrBuilder>( + frameworks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + frameworks_ = null; + } + return frameworksBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * A token, which 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, which 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, which 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, which 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, which 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.FetchFrameworksResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.FetchFrameworksResponse) + private static final com.google.cloud.designcenter.v1.FetchFrameworksResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.FetchFrameworksResponse(); + } + + public static com.google.cloud.designcenter.v1.FetchFrameworksResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FetchFrameworksResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.FetchFrameworksResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchFrameworksResponseOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchFrameworksResponseOrBuilder.java new file mode 100644 index 000000000000..f9d211cc0f2f --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchFrameworksResponseOrBuilder.java @@ -0,0 +1,112 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/best_practices_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface FetchFrameworksResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.FetchFrameworksResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of frameworks.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Framework frameworks = 1; + */ + java.util.List getFrameworksList(); + + /** + * + * + *
+   * The list of frameworks.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Framework frameworks = 1; + */ + com.google.cloud.designcenter.v1.Framework getFrameworks(int index); + + /** + * + * + *
+   * The list of frameworks.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Framework frameworks = 1; + */ + int getFrameworksCount(); + + /** + * + * + *
+   * The list of frameworks.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Framework frameworks = 1; + */ + java.util.List + getFrameworksOrBuilderList(); + + /** + * + * + *
+   * The list of frameworks.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Framework frameworks = 1; + */ + com.google.cloud.designcenter.v1.FrameworkOrBuilder getFrameworksOrBuilder(int index); + + /** + * + * + *
+   * A token, which 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, which 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-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchSharedTemplateRevisionAssessmentReportRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchSharedTemplateRevisionAssessmentReportRequest.java new file mode 100644 index 000000000000..23684d0142d3 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchSharedTemplateRevisionAssessmentReportRequest.java @@ -0,0 +1,661 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/sharing_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Request message for FetchSharedTemplateRevisionAssessmentReport.
+ * 
+ * + * Protobuf type {@code + * google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportRequest} + */ +@com.google.protobuf.Generated +public final class FetchSharedTemplateRevisionAssessmentReportRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportRequest) + FetchSharedTemplateRevisionAssessmentReportRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "FetchSharedTemplateRevisionAssessmentReportRequest"); + } + + // Use FetchSharedTemplateRevisionAssessmentReportRequest.newBuilder() to construct. + private FetchSharedTemplateRevisionAssessmentReportRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private FetchSharedTemplateRevisionAssessmentReportRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_FetchSharedTemplateRevisionAssessmentReportRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_FetchSharedTemplateRevisionAssessmentReportRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportRequest + .class, + com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportRequest + .Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The shared template revision name in the following format:
+   * `projects/{project}/locations/{location}/spaces/{space}/sharedTemplates/{shared_template}/revisions/{revision}`
+   * 
+ * + * + * 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 shared template revision name in the following format:
+   * `projects/{project}/locations/{location}/spaces/{space}/sharedTemplates/{shared_template}/revisions/{revision}`
+   * 
+ * + * + * 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.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.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.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.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportRequest other = + (com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportRequest) 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.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportRequest + 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.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportRequest + 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for FetchSharedTemplateRevisionAssessmentReport.
+   * 
+ * + * Protobuf type {@code + * google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportRequest) + com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_FetchSharedTemplateRevisionAssessmentReportRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_FetchSharedTemplateRevisionAssessmentReportRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportRequest + .class, + com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportRequest + .Builder.class); + } + + // Construct using + // com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.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.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_FetchSharedTemplateRevisionAssessmentReportRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportRequest + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportRequest + build() { + com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportRequest + buildPartial() { + com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportRequest result = + new com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportRequest( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportRequest + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportRequest) { + return mergeFrom( + (com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportRequest) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportRequest other) { + if (other + == com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportRequest + .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 shared template revision name in the following format:
+     * `projects/{project}/locations/{location}/spaces/{space}/sharedTemplates/{shared_template}/revisions/{revision}`
+     * 
+ * + * + * 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 shared template revision name in the following format:
+     * `projects/{project}/locations/{location}/spaces/{space}/sharedTemplates/{shared_template}/revisions/{revision}`
+     * 
+ * + * + * 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 shared template revision name in the following format:
+     * `projects/{project}/locations/{location}/spaces/{space}/sharedTemplates/{shared_template}/revisions/{revision}`
+     * 
+ * + * + * 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 shared template revision name in the following format:
+     * `projects/{project}/locations/{location}/spaces/{space}/sharedTemplates/{shared_template}/revisions/{revision}`
+     * 
+ * + * + * 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 shared template revision name in the following format:
+     * `projects/{project}/locations/{location}/spaces/{space}/sharedTemplates/{shared_template}/revisions/{revision}`
+     * 
+ * + * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportRequest) + private static final com.google.cloud.designcenter.v1 + .FetchSharedTemplateRevisionAssessmentReportRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportRequest(); + } + + public static com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser< + FetchSharedTemplateRevisionAssessmentReportRequest> + PARSER = + new com.google.protobuf.AbstractParser< + FetchSharedTemplateRevisionAssessmentReportRequest>() { + @java.lang.Override + public FetchSharedTemplateRevisionAssessmentReportRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchSharedTemplateRevisionAssessmentReportRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchSharedTemplateRevisionAssessmentReportRequestOrBuilder.java new file mode 100644 index 000000000000..6dcbeaa1f771 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchSharedTemplateRevisionAssessmentReportRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/sharing_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface FetchSharedTemplateRevisionAssessmentReportRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The shared template revision name in the following format:
+   * `projects/{project}/locations/{location}/spaces/{space}/sharedTemplates/{shared_template}/revisions/{revision}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The shared template revision name in the following format:
+   * `projects/{project}/locations/{location}/spaces/{space}/sharedTemplates/{shared_template}/revisions/{revision}`
+   * 
+ * + * + * 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-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchSharedTemplateRevisionAssessmentReportResponse.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchSharedTemplateRevisionAssessmentReportResponse.java new file mode 100644 index 000000000000..5276f046ecbd --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchSharedTemplateRevisionAssessmentReportResponse.java @@ -0,0 +1,748 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/sharing_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Response message for FetchSharedTemplateRevisionAssessmentReport.
+ * 
+ * + * Protobuf type {@code + * google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportResponse} + */ +@com.google.protobuf.Generated +public final class FetchSharedTemplateRevisionAssessmentReportResponse + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportResponse) + FetchSharedTemplateRevisionAssessmentReportResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "FetchSharedTemplateRevisionAssessmentReportResponse"); + } + + // Use FetchSharedTemplateRevisionAssessmentReportResponse.newBuilder() to construct. + private FetchSharedTemplateRevisionAssessmentReportResponse( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private FetchSharedTemplateRevisionAssessmentReportResponse() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_FetchSharedTemplateRevisionAssessmentReportResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_FetchSharedTemplateRevisionAssessmentReportResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportResponse + .class, + com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportResponse + .Builder.class); + } + + private int bitField0_; + public static final int ASSESSMENT_REPORT_FIELD_NUMBER = 1; + private com.google.cloud.designcenter.v1.AssessmentReport assessmentReport_; + + /** + * + * + *
+   * Assessment report for the shared template revision.
+   * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1; + * + * @return Whether the assessmentReport field is set. + */ + @java.lang.Override + public boolean hasAssessmentReport() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Assessment report for the shared template revision.
+   * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1; + * + * @return The assessmentReport. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.AssessmentReport getAssessmentReport() { + return assessmentReport_ == null + ? com.google.cloud.designcenter.v1.AssessmentReport.getDefaultInstance() + : assessmentReport_; + } + + /** + * + * + *
+   * Assessment report for the shared template revision.
+   * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1; + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.AssessmentReportOrBuilder getAssessmentReportOrBuilder() { + return assessmentReport_ == null + ? com.google.cloud.designcenter.v1.AssessmentReport.getDefaultInstance() + : assessmentReport_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getAssessmentReport()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAssessmentReport()); + } + 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.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportResponse)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportResponse other = + (com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportResponse) obj; + + if (hasAssessmentReport() != other.hasAssessmentReport()) return false; + if (hasAssessmentReport()) { + if (!getAssessmentReport().equals(other.getAssessmentReport())) 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 (hasAssessmentReport()) { + hash = (37 * hash) + ASSESSMENT_REPORT_FIELD_NUMBER; + hash = (53 * hash) + getAssessmentReport().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportResponse + 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.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportResponse + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportResponse + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportResponse + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportResponse + 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response message for FetchSharedTemplateRevisionAssessmentReport.
+   * 
+ * + * Protobuf type {@code + * google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportResponse) + com.google.cloud.designcenter.v1 + .FetchSharedTemplateRevisionAssessmentReportResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_FetchSharedTemplateRevisionAssessmentReportResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_FetchSharedTemplateRevisionAssessmentReportResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportResponse + .class, + com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportResponse + .Builder.class); + } + + // Construct using + // com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetAssessmentReportFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + assessmentReport_ = null; + if (assessmentReportBuilder_ != null) { + assessmentReportBuilder_.dispose(); + assessmentReportBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_FetchSharedTemplateRevisionAssessmentReportResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportResponse + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportResponse + build() { + com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportResponse + buildPartial() { + com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportResponse result = + new com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportResponse( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportResponse + result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.assessmentReport_ = + assessmentReportBuilder_ == null ? assessmentReport_ : assessmentReportBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportResponse) { + return mergeFrom( + (com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportResponse) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportResponse + other) { + if (other + == com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportResponse + .getDefaultInstance()) return this; + if (other.hasAssessmentReport()) { + mergeAssessmentReport(other.getAssessmentReport()); + } + 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( + internalGetAssessmentReportFieldBuilder().getBuilder(), extensionRegistry); + 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 com.google.cloud.designcenter.v1.AssessmentReport assessmentReport_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.AssessmentReport, + com.google.cloud.designcenter.v1.AssessmentReport.Builder, + com.google.cloud.designcenter.v1.AssessmentReportOrBuilder> + assessmentReportBuilder_; + + /** + * + * + *
+     * Assessment report for the shared template revision.
+     * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1; + * + * @return Whether the assessmentReport field is set. + */ + public boolean hasAssessmentReport() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Assessment report for the shared template revision.
+     * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1; + * + * @return The assessmentReport. + */ + public com.google.cloud.designcenter.v1.AssessmentReport getAssessmentReport() { + if (assessmentReportBuilder_ == null) { + return assessmentReport_ == null + ? com.google.cloud.designcenter.v1.AssessmentReport.getDefaultInstance() + : assessmentReport_; + } else { + return assessmentReportBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Assessment report for the shared template revision.
+     * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1; + */ + public Builder setAssessmentReport(com.google.cloud.designcenter.v1.AssessmentReport value) { + if (assessmentReportBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + assessmentReport_ = value; + } else { + assessmentReportBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Assessment report for the shared template revision.
+     * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1; + */ + public Builder setAssessmentReport( + com.google.cloud.designcenter.v1.AssessmentReport.Builder builderForValue) { + if (assessmentReportBuilder_ == null) { + assessmentReport_ = builderForValue.build(); + } else { + assessmentReportBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Assessment report for the shared template revision.
+     * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1; + */ + public Builder mergeAssessmentReport(com.google.cloud.designcenter.v1.AssessmentReport value) { + if (assessmentReportBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && assessmentReport_ != null + && assessmentReport_ + != com.google.cloud.designcenter.v1.AssessmentReport.getDefaultInstance()) { + getAssessmentReportBuilder().mergeFrom(value); + } else { + assessmentReport_ = value; + } + } else { + assessmentReportBuilder_.mergeFrom(value); + } + if (assessmentReport_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Assessment report for the shared template revision.
+     * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1; + */ + public Builder clearAssessmentReport() { + bitField0_ = (bitField0_ & ~0x00000001); + assessmentReport_ = null; + if (assessmentReportBuilder_ != null) { + assessmentReportBuilder_.dispose(); + assessmentReportBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Assessment report for the shared template revision.
+     * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1; + */ + public com.google.cloud.designcenter.v1.AssessmentReport.Builder getAssessmentReportBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetAssessmentReportFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Assessment report for the shared template revision.
+     * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1; + */ + public com.google.cloud.designcenter.v1.AssessmentReportOrBuilder + getAssessmentReportOrBuilder() { + if (assessmentReportBuilder_ != null) { + return assessmentReportBuilder_.getMessageOrBuilder(); + } else { + return assessmentReport_ == null + ? com.google.cloud.designcenter.v1.AssessmentReport.getDefaultInstance() + : assessmentReport_; + } + } + + /** + * + * + *
+     * Assessment report for the shared template revision.
+     * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.AssessmentReport, + com.google.cloud.designcenter.v1.AssessmentReport.Builder, + com.google.cloud.designcenter.v1.AssessmentReportOrBuilder> + internalGetAssessmentReportFieldBuilder() { + if (assessmentReportBuilder_ == null) { + assessmentReportBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.AssessmentReport, + com.google.cloud.designcenter.v1.AssessmentReport.Builder, + com.google.cloud.designcenter.v1.AssessmentReportOrBuilder>( + getAssessmentReport(), getParentForChildren(), isClean()); + assessmentReport_ = null; + } + return assessmentReportBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportResponse) + private static final com.google.cloud.designcenter.v1 + .FetchSharedTemplateRevisionAssessmentReportResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportResponse(); + } + + public static com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser< + FetchSharedTemplateRevisionAssessmentReportResponse> + PARSER = + new com.google.protobuf.AbstractParser< + FetchSharedTemplateRevisionAssessmentReportResponse>() { + @java.lang.Override + public FetchSharedTemplateRevisionAssessmentReportResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchSharedTemplateRevisionAssessmentReportResponseOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchSharedTemplateRevisionAssessmentReportResponseOrBuilder.java new file mode 100644 index 000000000000..4510490229e5 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchSharedTemplateRevisionAssessmentReportResponseOrBuilder.java @@ -0,0 +1,65 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/sharing_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface FetchSharedTemplateRevisionAssessmentReportResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.FetchSharedTemplateRevisionAssessmentReportResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Assessment report for the shared template revision.
+   * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1; + * + * @return Whether the assessmentReport field is set. + */ + boolean hasAssessmentReport(); + + /** + * + * + *
+   * Assessment report for the shared template revision.
+   * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1; + * + * @return The assessmentReport. + */ + com.google.cloud.designcenter.v1.AssessmentReport getAssessmentReport(); + + /** + * + * + *
+   * Assessment report for the shared template revision.
+   * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1; + */ + com.google.cloud.designcenter.v1.AssessmentReportOrBuilder getAssessmentReportOrBuilder(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchSharedTemplateRevisionTFSourceRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchSharedTemplateRevisionTFSourceRequest.java new file mode 100644 index 000000000000..37bd5a97dc84 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchSharedTemplateRevisionTFSourceRequest.java @@ -0,0 +1,654 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/sharing_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Request message for fetching the Terraform source of a shared template
+ * revision.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceRequest} + */ +@com.google.protobuf.Generated +public final class FetchSharedTemplateRevisionTFSourceRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceRequest) + FetchSharedTemplateRevisionTFSourceRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "FetchSharedTemplateRevisionTFSourceRequest"); + } + + // Use FetchSharedTemplateRevisionTFSourceRequest.newBuilder() to construct. + private FetchSharedTemplateRevisionTFSourceRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private FetchSharedTemplateRevisionTFSourceRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_FetchSharedTemplateRevisionTFSourceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_FetchSharedTemplateRevisionTFSourceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceRequest.class, + com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceRequest.Builder + .class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. Name of the resource
+   * Eg:
+   * `projects/$project/locations/$location/spaces/$space/sharedTemplates/$template/revisions/$revision`
+   * 
+ * + * + * 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
+   * Eg:
+   * `projects/$project/locations/$location/spaces/$space/sharedTemplates/$template/revisions/$revision`
+   * 
+ * + * + * 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.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.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.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.designcenter.v1.FetchSharedTemplateRevisionTFSourceRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceRequest other = + (com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceRequest) 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.designcenter.v1.FetchSharedTemplateRevisionTFSourceRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceRequest + 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.designcenter.v1.FetchSharedTemplateRevisionTFSourceRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.FetchSharedTemplateRevisionTFSourceRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for fetching the Terraform source of a shared template
+   * revision.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceRequest) + com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_FetchSharedTemplateRevisionTFSourceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_FetchSharedTemplateRevisionTFSourceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceRequest.class, + com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.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.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_FetchSharedTemplateRevisionTFSourceRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceRequest + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceRequest build() { + com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceRequest + buildPartial() { + com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceRequest result = + new com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceRequest) { + return mergeFrom( + (com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceRequest other) { + if (other + == com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceRequest + .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
+     * Eg:
+     * `projects/$project/locations/$location/spaces/$space/sharedTemplates/$template/revisions/$revision`
+     * 
+ * + * + * 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
+     * Eg:
+     * `projects/$project/locations/$location/spaces/$space/sharedTemplates/$template/revisions/$revision`
+     * 
+ * + * + * 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
+     * Eg:
+     * `projects/$project/locations/$location/spaces/$space/sharedTemplates/$template/revisions/$revision`
+     * 
+ * + * + * 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
+     * Eg:
+     * `projects/$project/locations/$location/spaces/$space/sharedTemplates/$template/revisions/$revision`
+     * 
+ * + * + * 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
+     * Eg:
+     * `projects/$project/locations/$location/spaces/$space/sharedTemplates/$template/revisions/$revision`
+     * 
+ * + * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceRequest) + private static final com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceRequest(); + } + + public static com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FetchSharedTemplateRevisionTFSourceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.FetchSharedTemplateRevisionTFSourceRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchSharedTemplateRevisionTFSourceRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchSharedTemplateRevisionTFSourceRequestOrBuilder.java new file mode 100644 index 000000000000..d12de260dab3 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchSharedTemplateRevisionTFSourceRequestOrBuilder.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/sharing_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface FetchSharedTemplateRevisionTFSourceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the resource
+   * Eg:
+   * `projects/$project/locations/$location/spaces/$space/sharedTemplates/$template/revisions/$revision`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. Name of the resource
+   * Eg:
+   * `projects/$project/locations/$location/spaces/$space/sharedTemplates/$template/revisions/$revision`
+   * 
+ * + * + * 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-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchSharedTemplateRevisionTFSourceResponse.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchSharedTemplateRevisionTFSourceResponse.java new file mode 100644 index 000000000000..fd0a191d7b48 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchSharedTemplateRevisionTFSourceResponse.java @@ -0,0 +1,1252 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/sharing_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Response message for getting the Terraform source of a shared template
+ * revision.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceResponse} + */ +@com.google.protobuf.Generated +public final class FetchSharedTemplateRevisionTFSourceResponse + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceResponse) + FetchSharedTemplateRevisionTFSourceResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "FetchSharedTemplateRevisionTFSourceResponse"); + } + + // Use FetchSharedTemplateRevisionTFSourceResponse.newBuilder() to construct. + private FetchSharedTemplateRevisionTFSourceResponse( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private FetchSharedTemplateRevisionTFSourceResponse() { + modules_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_FetchSharedTemplateRevisionTFSourceResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_FetchSharedTemplateRevisionTFSourceResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceResponse.class, + com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceResponse.Builder + .class); + } + + private int bitField0_; + public static final int ROOT_MODULE_FIELD_NUMBER = 1; + private com.google.cloud.designcenter.v1.TerraformModule rootModule_; + + /** + * + * + *
+   * The root Terraform module of the catalog template revision.
+   * 
+ * + * .google.cloud.designcenter.v1.TerraformModule root_module = 1; + * + * @return Whether the rootModule field is set. + */ + @java.lang.Override + public boolean hasRootModule() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * The root Terraform module of the catalog template revision.
+   * 
+ * + * .google.cloud.designcenter.v1.TerraformModule root_module = 1; + * + * @return The rootModule. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformModule getRootModule() { + return rootModule_ == null + ? com.google.cloud.designcenter.v1.TerraformModule.getDefaultInstance() + : rootModule_; + } + + /** + * + * + *
+   * The root Terraform module of the catalog template revision.
+   * 
+ * + * .google.cloud.designcenter.v1.TerraformModule root_module = 1; + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformModuleOrBuilder getRootModuleOrBuilder() { + return rootModule_ == null + ? com.google.cloud.designcenter.v1.TerraformModule.getDefaultInstance() + : rootModule_; + } + + public static final int MODULES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List modules_; + + /** + * + * + *
+   * The dependent Terraform modules used by the root module.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformModule modules = 2; + */ + @java.lang.Override + public java.util.List getModulesList() { + return modules_; + } + + /** + * + * + *
+   * The dependent Terraform modules used by the root module.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformModule modules = 2; + */ + @java.lang.Override + public java.util.List + getModulesOrBuilderList() { + return modules_; + } + + /** + * + * + *
+   * The dependent Terraform modules used by the root module.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformModule modules = 2; + */ + @java.lang.Override + public int getModulesCount() { + return modules_.size(); + } + + /** + * + * + *
+   * The dependent Terraform modules used by the root module.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformModule modules = 2; + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformModule getModules(int index) { + return modules_.get(index); + } + + /** + * + * + *
+   * The dependent Terraform modules used by the root module.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformModule modules = 2; + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformModuleOrBuilder getModulesOrBuilder(int index) { + return modules_.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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getRootModule()); + } + for (int i = 0; i < modules_.size(); i++) { + output.writeMessage(2, modules_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRootModule()); + } + for (int i = 0; i < modules_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, modules_.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.designcenter.v1.FetchSharedTemplateRevisionTFSourceResponse)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceResponse other = + (com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceResponse) obj; + + if (hasRootModule() != other.hasRootModule()) return false; + if (hasRootModule()) { + if (!getRootModule().equals(other.getRootModule())) return false; + } + if (!getModulesList().equals(other.getModulesList())) 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 (hasRootModule()) { + hash = (37 * hash) + ROOT_MODULE_FIELD_NUMBER; + hash = (53 * hash) + getRootModule().hashCode(); + } + if (getModulesCount() > 0) { + hash = (37 * hash) + MODULES_FIELD_NUMBER; + hash = (53 * hash) + getModulesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceResponse + 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.designcenter.v1.FetchSharedTemplateRevisionTFSourceResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceResponse + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceResponse + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceResponse + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.FetchSharedTemplateRevisionTFSourceResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response message for getting the Terraform source of a shared template
+   * revision.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceResponse) + com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_FetchSharedTemplateRevisionTFSourceResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_FetchSharedTemplateRevisionTFSourceResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceResponse.class, + com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetRootModuleFieldBuilder(); + internalGetModulesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + rootModule_ = null; + if (rootModuleBuilder_ != null) { + rootModuleBuilder_.dispose(); + rootModuleBuilder_ = null; + } + if (modulesBuilder_ == null) { + modules_ = java.util.Collections.emptyList(); + } else { + modules_ = null; + modulesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_FetchSharedTemplateRevisionTFSourceResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceResponse + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceResponse build() { + com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceResponse + buildPartial() { + com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceResponse result = + new com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceResponse result) { + if (modulesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + modules_ = java.util.Collections.unmodifiableList(modules_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.modules_ = modules_; + } else { + result.modules_ = modulesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.rootModule_ = rootModuleBuilder_ == null ? rootModule_ : rootModuleBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceResponse) { + return mergeFrom( + (com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceResponse other) { + if (other + == com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceResponse + .getDefaultInstance()) return this; + if (other.hasRootModule()) { + mergeRootModule(other.getRootModule()); + } + if (modulesBuilder_ == null) { + if (!other.modules_.isEmpty()) { + if (modules_.isEmpty()) { + modules_ = other.modules_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureModulesIsMutable(); + modules_.addAll(other.modules_); + } + onChanged(); + } + } else { + if (!other.modules_.isEmpty()) { + if (modulesBuilder_.isEmpty()) { + modulesBuilder_.dispose(); + modulesBuilder_ = null; + modules_ = other.modules_; + bitField0_ = (bitField0_ & ~0x00000002); + modulesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetModulesFieldBuilder() + : null; + } else { + modulesBuilder_.addAllMessages(other.modules_); + } + } + } + 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( + internalGetRootModuleFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.designcenter.v1.TerraformModule m = + input.readMessage( + com.google.cloud.designcenter.v1.TerraformModule.parser(), + extensionRegistry); + if (modulesBuilder_ == null) { + ensureModulesIsMutable(); + modules_.add(m); + } else { + modulesBuilder_.addMessage(m); + } + 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.designcenter.v1.TerraformModule rootModule_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.TerraformModule, + com.google.cloud.designcenter.v1.TerraformModule.Builder, + com.google.cloud.designcenter.v1.TerraformModuleOrBuilder> + rootModuleBuilder_; + + /** + * + * + *
+     * The root Terraform module of the catalog template revision.
+     * 
+ * + * .google.cloud.designcenter.v1.TerraformModule root_module = 1; + * + * @return Whether the rootModule field is set. + */ + public boolean hasRootModule() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * The root Terraform module of the catalog template revision.
+     * 
+ * + * .google.cloud.designcenter.v1.TerraformModule root_module = 1; + * + * @return The rootModule. + */ + public com.google.cloud.designcenter.v1.TerraformModule getRootModule() { + if (rootModuleBuilder_ == null) { + return rootModule_ == null + ? com.google.cloud.designcenter.v1.TerraformModule.getDefaultInstance() + : rootModule_; + } else { + return rootModuleBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * The root Terraform module of the catalog template revision.
+     * 
+ * + * .google.cloud.designcenter.v1.TerraformModule root_module = 1; + */ + public Builder setRootModule(com.google.cloud.designcenter.v1.TerraformModule value) { + if (rootModuleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rootModule_ = value; + } else { + rootModuleBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The root Terraform module of the catalog template revision.
+     * 
+ * + * .google.cloud.designcenter.v1.TerraformModule root_module = 1; + */ + public Builder setRootModule( + com.google.cloud.designcenter.v1.TerraformModule.Builder builderForValue) { + if (rootModuleBuilder_ == null) { + rootModule_ = builderForValue.build(); + } else { + rootModuleBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The root Terraform module of the catalog template revision.
+     * 
+ * + * .google.cloud.designcenter.v1.TerraformModule root_module = 1; + */ + public Builder mergeRootModule(com.google.cloud.designcenter.v1.TerraformModule value) { + if (rootModuleBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && rootModule_ != null + && rootModule_ + != com.google.cloud.designcenter.v1.TerraformModule.getDefaultInstance()) { + getRootModuleBuilder().mergeFrom(value); + } else { + rootModule_ = value; + } + } else { + rootModuleBuilder_.mergeFrom(value); + } + if (rootModule_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The root Terraform module of the catalog template revision.
+     * 
+ * + * .google.cloud.designcenter.v1.TerraformModule root_module = 1; + */ + public Builder clearRootModule() { + bitField0_ = (bitField0_ & ~0x00000001); + rootModule_ = null; + if (rootModuleBuilder_ != null) { + rootModuleBuilder_.dispose(); + rootModuleBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * The root Terraform module of the catalog template revision.
+     * 
+ * + * .google.cloud.designcenter.v1.TerraformModule root_module = 1; + */ + public com.google.cloud.designcenter.v1.TerraformModule.Builder getRootModuleBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetRootModuleFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * The root Terraform module of the catalog template revision.
+     * 
+ * + * .google.cloud.designcenter.v1.TerraformModule root_module = 1; + */ + public com.google.cloud.designcenter.v1.TerraformModuleOrBuilder getRootModuleOrBuilder() { + if (rootModuleBuilder_ != null) { + return rootModuleBuilder_.getMessageOrBuilder(); + } else { + return rootModule_ == null + ? com.google.cloud.designcenter.v1.TerraformModule.getDefaultInstance() + : rootModule_; + } + } + + /** + * + * + *
+     * The root Terraform module of the catalog template revision.
+     * 
+ * + * .google.cloud.designcenter.v1.TerraformModule root_module = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.TerraformModule, + com.google.cloud.designcenter.v1.TerraformModule.Builder, + com.google.cloud.designcenter.v1.TerraformModuleOrBuilder> + internalGetRootModuleFieldBuilder() { + if (rootModuleBuilder_ == null) { + rootModuleBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.TerraformModule, + com.google.cloud.designcenter.v1.TerraformModule.Builder, + com.google.cloud.designcenter.v1.TerraformModuleOrBuilder>( + getRootModule(), getParentForChildren(), isClean()); + rootModule_ = null; + } + return rootModuleBuilder_; + } + + private java.util.List modules_ = + java.util.Collections.emptyList(); + + private void ensureModulesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + modules_ = + new java.util.ArrayList(modules_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.TerraformModule, + com.google.cloud.designcenter.v1.TerraformModule.Builder, + com.google.cloud.designcenter.v1.TerraformModuleOrBuilder> + modulesBuilder_; + + /** + * + * + *
+     * The dependent Terraform modules used by the root module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformModule modules = 2; + */ + public java.util.List getModulesList() { + if (modulesBuilder_ == null) { + return java.util.Collections.unmodifiableList(modules_); + } else { + return modulesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The dependent Terraform modules used by the root module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformModule modules = 2; + */ + public int getModulesCount() { + if (modulesBuilder_ == null) { + return modules_.size(); + } else { + return modulesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The dependent Terraform modules used by the root module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformModule modules = 2; + */ + public com.google.cloud.designcenter.v1.TerraformModule getModules(int index) { + if (modulesBuilder_ == null) { + return modules_.get(index); + } else { + return modulesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The dependent Terraform modules used by the root module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformModule modules = 2; + */ + public Builder setModules(int index, com.google.cloud.designcenter.v1.TerraformModule value) { + if (modulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureModulesIsMutable(); + modules_.set(index, value); + onChanged(); + } else { + modulesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The dependent Terraform modules used by the root module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformModule modules = 2; + */ + public Builder setModules( + int index, com.google.cloud.designcenter.v1.TerraformModule.Builder builderForValue) { + if (modulesBuilder_ == null) { + ensureModulesIsMutable(); + modules_.set(index, builderForValue.build()); + onChanged(); + } else { + modulesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The dependent Terraform modules used by the root module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformModule modules = 2; + */ + public Builder addModules(com.google.cloud.designcenter.v1.TerraformModule value) { + if (modulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureModulesIsMutable(); + modules_.add(value); + onChanged(); + } else { + modulesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The dependent Terraform modules used by the root module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformModule modules = 2; + */ + public Builder addModules(int index, com.google.cloud.designcenter.v1.TerraformModule value) { + if (modulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureModulesIsMutable(); + modules_.add(index, value); + onChanged(); + } else { + modulesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The dependent Terraform modules used by the root module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformModule modules = 2; + */ + public Builder addModules( + com.google.cloud.designcenter.v1.TerraformModule.Builder builderForValue) { + if (modulesBuilder_ == null) { + ensureModulesIsMutable(); + modules_.add(builderForValue.build()); + onChanged(); + } else { + modulesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The dependent Terraform modules used by the root module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformModule modules = 2; + */ + public Builder addModules( + int index, com.google.cloud.designcenter.v1.TerraformModule.Builder builderForValue) { + if (modulesBuilder_ == null) { + ensureModulesIsMutable(); + modules_.add(index, builderForValue.build()); + onChanged(); + } else { + modulesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The dependent Terraform modules used by the root module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformModule modules = 2; + */ + public Builder addAllModules( + java.lang.Iterable values) { + if (modulesBuilder_ == null) { + ensureModulesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, modules_); + onChanged(); + } else { + modulesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The dependent Terraform modules used by the root module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformModule modules = 2; + */ + public Builder clearModules() { + if (modulesBuilder_ == null) { + modules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + modulesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The dependent Terraform modules used by the root module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformModule modules = 2; + */ + public Builder removeModules(int index) { + if (modulesBuilder_ == null) { + ensureModulesIsMutable(); + modules_.remove(index); + onChanged(); + } else { + modulesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The dependent Terraform modules used by the root module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformModule modules = 2; + */ + public com.google.cloud.designcenter.v1.TerraformModule.Builder getModulesBuilder(int index) { + return internalGetModulesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The dependent Terraform modules used by the root module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformModule modules = 2; + */ + public com.google.cloud.designcenter.v1.TerraformModuleOrBuilder getModulesOrBuilder( + int index) { + if (modulesBuilder_ == null) { + return modules_.get(index); + } else { + return modulesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The dependent Terraform modules used by the root module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformModule modules = 2; + */ + public java.util.List + getModulesOrBuilderList() { + if (modulesBuilder_ != null) { + return modulesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(modules_); + } + } + + /** + * + * + *
+     * The dependent Terraform modules used by the root module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformModule modules = 2; + */ + public com.google.cloud.designcenter.v1.TerraformModule.Builder addModulesBuilder() { + return internalGetModulesFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.TerraformModule.getDefaultInstance()); + } + + /** + * + * + *
+     * The dependent Terraform modules used by the root module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformModule modules = 2; + */ + public com.google.cloud.designcenter.v1.TerraformModule.Builder addModulesBuilder(int index) { + return internalGetModulesFieldBuilder() + .addBuilder(index, com.google.cloud.designcenter.v1.TerraformModule.getDefaultInstance()); + } + + /** + * + * + *
+     * The dependent Terraform modules used by the root module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformModule modules = 2; + */ + public java.util.List + getModulesBuilderList() { + return internalGetModulesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.TerraformModule, + com.google.cloud.designcenter.v1.TerraformModule.Builder, + com.google.cloud.designcenter.v1.TerraformModuleOrBuilder> + internalGetModulesFieldBuilder() { + if (modulesBuilder_ == null) { + modulesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.TerraformModule, + com.google.cloud.designcenter.v1.TerraformModule.Builder, + com.google.cloud.designcenter.v1.TerraformModuleOrBuilder>( + modules_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + modules_ = null; + } + return modulesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceResponse) + private static final com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceResponse(); + } + + public static com.google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FetchSharedTemplateRevisionTFSourceResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.FetchSharedTemplateRevisionTFSourceResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchSharedTemplateRevisionTFSourceResponseOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchSharedTemplateRevisionTFSourceResponseOrBuilder.java new file mode 100644 index 000000000000..53a65a15257a --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FetchSharedTemplateRevisionTFSourceResponseOrBuilder.java @@ -0,0 +1,121 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/sharing_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface FetchSharedTemplateRevisionTFSourceResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.FetchSharedTemplateRevisionTFSourceResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The root Terraform module of the catalog template revision.
+   * 
+ * + * .google.cloud.designcenter.v1.TerraformModule root_module = 1; + * + * @return Whether the rootModule field is set. + */ + boolean hasRootModule(); + + /** + * + * + *
+   * The root Terraform module of the catalog template revision.
+   * 
+ * + * .google.cloud.designcenter.v1.TerraformModule root_module = 1; + * + * @return The rootModule. + */ + com.google.cloud.designcenter.v1.TerraformModule getRootModule(); + + /** + * + * + *
+   * The root Terraform module of the catalog template revision.
+   * 
+ * + * .google.cloud.designcenter.v1.TerraformModule root_module = 1; + */ + com.google.cloud.designcenter.v1.TerraformModuleOrBuilder getRootModuleOrBuilder(); + + /** + * + * + *
+   * The dependent Terraform modules used by the root module.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformModule modules = 2; + */ + java.util.List getModulesList(); + + /** + * + * + *
+   * The dependent Terraform modules used by the root module.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformModule modules = 2; + */ + com.google.cloud.designcenter.v1.TerraformModule getModules(int index); + + /** + * + * + *
+   * The dependent Terraform modules used by the root module.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformModule modules = 2; + */ + int getModulesCount(); + + /** + * + * + *
+   * The dependent Terraform modules used by the root module.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformModule modules = 2; + */ + java.util.List + getModulesOrBuilderList(); + + /** + * + * + *
+   * The dependent Terraform modules used by the root module.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformModule modules = 2; + */ + com.google.cloud.designcenter.v1.TerraformModuleOrBuilder getModulesOrBuilder(int index); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/Framework.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/Framework.java new file mode 100644 index 000000000000..bd2de47f72fc --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/Framework.java @@ -0,0 +1,2703 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/assessment.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Framework for assessment.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.Framework} + */ +@com.google.protobuf.Generated +public final class Framework extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.Framework) + FrameworkOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "Framework"); + } + + // Use Framework.newBuilder() to construct. + private Framework(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Framework() { + name_ = ""; + displayName_ = ""; + description_ = ""; + url_ = ""; + cloudControlDetails_ = java.util.Collections.emptyList(); + deploymentStatus_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_Framework_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_Framework_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.Framework.class, + com.google.cloud.designcenter.v1.Framework.Builder.class); + } + + /** + * + * + *
+   * Enum for deployment status of a framework.
+   * 
+ * + * Protobuf enum {@code google.cloud.designcenter.v1.Framework.DeploymentStatus} + */ + public enum DeploymentStatus implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Deployment status unspecified.
+     * 
+ * + * DEPLOYMENT_STATUS_UNSPECIFIED = 0; + */ + DEPLOYMENT_STATUS_UNSPECIFIED(0), + /** + * + * + *
+     * Framework is deployed.
+     * 
+ * + * DEPLOYED = 1; + */ + DEPLOYED(1), + /** + * + * + *
+     * Framework is undeployed.
+     * 
+ * + * UNDEPLOYED = 2; + */ + UNDEPLOYED(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DeploymentStatus"); + } + + /** + * + * + *
+     * Deployment status unspecified.
+     * 
+ * + * DEPLOYMENT_STATUS_UNSPECIFIED = 0; + */ + public static final int DEPLOYMENT_STATUS_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Framework is deployed.
+     * 
+ * + * DEPLOYED = 1; + */ + public static final int DEPLOYED_VALUE = 1; + + /** + * + * + *
+     * Framework is undeployed.
+     * 
+ * + * UNDEPLOYED = 2; + */ + public static final int UNDEPLOYED_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 DeploymentStatus 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 DeploymentStatus forNumber(int value) { + switch (value) { + case 0: + return DEPLOYMENT_STATUS_UNSPECIFIED; + case 1: + return DEPLOYED; + case 2: + return UNDEPLOYED; + 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 DeploymentStatus findValueByNumber(int number) { + return DeploymentStatus.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.designcenter.v1.Framework.getDescriptor().getEnumTypes().get(0); + } + + private static final DeploymentStatus[] VALUES = values(); + + public static DeploymentStatus 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 DeploymentStatus(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.designcenter.v1.Framework.DeploymentStatus) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The framework name.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 framework name.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 MAJOR_REVISION_ID_FIELD_NUMBER = 11; + private int majorRevisionId_ = 0; + + /** + * + * + *
+   * Optional. The major revision id of the framework.
+   * 
+ * + * int32 major_revision_id = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The majorRevisionId. + */ + @java.lang.Override + public int getMajorRevisionId() { + return majorRevisionId_; + } + + public static final int PARENT_DOMAIN_FIELD_NUMBER = 9; + private com.google.cloud.designcenter.v1.Domain parentDomain_; + + /** + * + * + *
+   * Required. The domain to which this framework belongs.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Domain parent_domain = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the parentDomain field is set. + */ + @java.lang.Override + public boolean hasParentDomain() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The domain to which this framework belongs.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Domain parent_domain = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The parentDomain. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.Domain getParentDomain() { + return parentDomain_ == null + ? com.google.cloud.designcenter.v1.Domain.getDefaultInstance() + : parentDomain_; + } + + /** + * + * + *
+   * Required. The domain to which this framework belongs.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Domain parent_domain = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.DomainOrBuilder getParentDomainOrBuilder() { + return parentDomain_ == null + ? com.google.cloud.designcenter.v1.Domain.getDefaultInstance() + : parentDomain_; + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
+   * Optional. The framework display name.
+   * 
+ * + * string display_name = 3 [(.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. The framework display name.
+   * 
+ * + * string display_name = 3 [(.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 DESCRIPTION_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
+   * Optional. The framework description.
+   * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The framework description.
+   * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int URL_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object url_ = ""; + + /** + * + * + *
+   * Optional. The URL to a framework.
+   * 
+ * + * string url = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The url. + */ + @java.lang.Override + public java.lang.String getUrl() { + java.lang.Object ref = url_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + url_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The URL to a framework.
+   * 
+ * + * string url = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for url. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUrlBytes() { + java.lang.Object ref = url_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + url_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACTIVE_FIELD_NUMBER = 6; + private boolean active_ = false; + + /** + * + * + *
+   * Optional. Whether the framework is active.
+   * 
+ * + * bool active = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The active. + */ + @java.lang.Override + public boolean getActive() { + return active_; + } + + public static final int CLOUD_CONTROL_DETAILS_FIELD_NUMBER = 12; + + @SuppressWarnings("serial") + private java.util.List cloudControlDetails_; + + /** + * + * + *
+   * Optional. The cloud controls that are associated with the framework.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControl cloud_control_details = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getCloudControlDetailsList() { + return cloudControlDetails_; + } + + /** + * + * + *
+   * Optional. The cloud controls that are associated with the framework.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControl cloud_control_details = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getCloudControlDetailsOrBuilderList() { + return cloudControlDetails_; + } + + /** + * + * + *
+   * Optional. The cloud controls that are associated with the framework.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControl cloud_control_details = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getCloudControlDetailsCount() { + return cloudControlDetails_.size(); + } + + /** + * + * + *
+   * Optional. The cloud controls that are associated with the framework.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControl cloud_control_details = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.CloudControl getCloudControlDetails(int index) { + return cloudControlDetails_.get(index); + } + + /** + * + * + *
+   * Optional. The cloud controls that are associated with the framework.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControl cloud_control_details = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.CloudControlOrBuilder getCloudControlDetailsOrBuilder( + int index) { + return cloudControlDetails_.get(index); + } + + public static final int DEPLOYMENT_STATUS_FIELD_NUMBER = 10; + private int deploymentStatus_ = 0; + + /** + * + * + *
+   * Optional. The deployment status of the framework.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Framework.DeploymentStatus deployment_status = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for deploymentStatus. + */ + @java.lang.Override + public int getDeploymentStatusValue() { + return deploymentStatus_; + } + + /** + * + * + *
+   * Optional. The deployment status of the framework.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Framework.DeploymentStatus deployment_status = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The deploymentStatus. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.Framework.DeploymentStatus getDeploymentStatus() { + com.google.cloud.designcenter.v1.Framework.DeploymentStatus result = + com.google.cloud.designcenter.v1.Framework.DeploymentStatus.forNumber(deploymentStatus_); + return result == null + ? com.google.cloud.designcenter.v1.Framework.DeploymentStatus.UNRECOGNIZED + : result; + } + + public static final int MANAGED_PROJECT_APPLICABLE_FIELD_NUMBER = 13; + private boolean managedProjectApplicable_ = false; + + /** + * + * + *
+   * Output only. Indicates if the framework is defined in the managed project.
+   * Only managed-project frameworks can be manually attached.
+   * 
+ * + * bool managed_project_applicable = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The managedProjectApplicable. + */ + @java.lang.Override + public boolean getManagedProjectApplicable() { + return managedProjectApplicable_; + } + + 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, description_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(url_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, url_); + } + if (active_ != false) { + output.writeBool(6, active_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(9, getParentDomain()); + } + if (deploymentStatus_ + != com.google.cloud.designcenter.v1.Framework.DeploymentStatus.DEPLOYMENT_STATUS_UNSPECIFIED + .getNumber()) { + output.writeEnum(10, deploymentStatus_); + } + if (majorRevisionId_ != 0) { + output.writeInt32(11, majorRevisionId_); + } + for (int i = 0; i < cloudControlDetails_.size(); i++) { + output.writeMessage(12, cloudControlDetails_.get(i)); + } + if (managedProjectApplicable_ != false) { + output.writeBool(13, managedProjectApplicable_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, description_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(url_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, url_); + } + if (active_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, active_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getParentDomain()); + } + if (deploymentStatus_ + != com.google.cloud.designcenter.v1.Framework.DeploymentStatus.DEPLOYMENT_STATUS_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, deploymentStatus_); + } + if (majorRevisionId_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(11, majorRevisionId_); + } + for (int i = 0; i < cloudControlDetails_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(12, cloudControlDetails_.get(i)); + } + if (managedProjectApplicable_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(13, managedProjectApplicable_); + } + 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.designcenter.v1.Framework)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.Framework other = + (com.google.cloud.designcenter.v1.Framework) obj; + + if (!getName().equals(other.getName())) return false; + if (getMajorRevisionId() != other.getMajorRevisionId()) return false; + if (hasParentDomain() != other.hasParentDomain()) return false; + if (hasParentDomain()) { + if (!getParentDomain().equals(other.getParentDomain())) return false; + } + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getUrl().equals(other.getUrl())) return false; + if (getActive() != other.getActive()) return false; + if (!getCloudControlDetailsList().equals(other.getCloudControlDetailsList())) return false; + if (deploymentStatus_ != other.deploymentStatus_) return false; + if (getManagedProjectApplicable() != other.getManagedProjectApplicable()) 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) + MAJOR_REVISION_ID_FIELD_NUMBER; + hash = (53 * hash) + getMajorRevisionId(); + if (hasParentDomain()) { + hash = (37 * hash) + PARENT_DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getParentDomain().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) + URL_FIELD_NUMBER; + hash = (53 * hash) + getUrl().hashCode(); + hash = (37 * hash) + ACTIVE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getActive()); + if (getCloudControlDetailsCount() > 0) { + hash = (37 * hash) + CLOUD_CONTROL_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getCloudControlDetailsList().hashCode(); + } + hash = (37 * hash) + DEPLOYMENT_STATUS_FIELD_NUMBER; + hash = (53 * hash) + deploymentStatus_; + hash = (37 * hash) + MANAGED_PROJECT_APPLICABLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getManagedProjectApplicable()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.Framework parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.Framework 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.designcenter.v1.Framework parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.Framework parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.Framework parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.Framework parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.Framework parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.Framework parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.Framework parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.Framework parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.Framework parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.Framework parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.Framework 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Framework for assessment.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.Framework} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.Framework) + com.google.cloud.designcenter.v1.FrameworkOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_Framework_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_Framework_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.Framework.class, + com.google.cloud.designcenter.v1.Framework.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.Framework.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetParentDomainFieldBuilder(); + internalGetCloudControlDetailsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + majorRevisionId_ = 0; + parentDomain_ = null; + if (parentDomainBuilder_ != null) { + parentDomainBuilder_.dispose(); + parentDomainBuilder_ = null; + } + displayName_ = ""; + description_ = ""; + url_ = ""; + active_ = false; + if (cloudControlDetailsBuilder_ == null) { + cloudControlDetails_ = java.util.Collections.emptyList(); + } else { + cloudControlDetails_ = null; + cloudControlDetailsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000080); + deploymentStatus_ = 0; + managedProjectApplicable_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_Framework_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.Framework getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.Framework.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.Framework build() { + com.google.cloud.designcenter.v1.Framework result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.Framework buildPartial() { + com.google.cloud.designcenter.v1.Framework result = + new com.google.cloud.designcenter.v1.Framework(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.designcenter.v1.Framework result) { + if (cloudControlDetailsBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0)) { + cloudControlDetails_ = java.util.Collections.unmodifiableList(cloudControlDetails_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.cloudControlDetails_ = cloudControlDetails_; + } else { + result.cloudControlDetails_ = cloudControlDetailsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.designcenter.v1.Framework result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.majorRevisionId_ = majorRevisionId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.parentDomain_ = + parentDomainBuilder_ == null ? parentDomain_ : parentDomainBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.url_ = url_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.active_ = active_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.deploymentStatus_ = deploymentStatus_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.managedProjectApplicable_ = managedProjectApplicable_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.Framework) { + return mergeFrom((com.google.cloud.designcenter.v1.Framework) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.Framework other) { + if (other == com.google.cloud.designcenter.v1.Framework.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getMajorRevisionId() != 0) { + setMajorRevisionId(other.getMajorRevisionId()); + } + if (other.hasParentDomain()) { + mergeParentDomain(other.getParentDomain()); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getUrl().isEmpty()) { + url_ = other.url_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.getActive() != false) { + setActive(other.getActive()); + } + if (cloudControlDetailsBuilder_ == null) { + if (!other.cloudControlDetails_.isEmpty()) { + if (cloudControlDetails_.isEmpty()) { + cloudControlDetails_ = other.cloudControlDetails_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureCloudControlDetailsIsMutable(); + cloudControlDetails_.addAll(other.cloudControlDetails_); + } + onChanged(); + } + } else { + if (!other.cloudControlDetails_.isEmpty()) { + if (cloudControlDetailsBuilder_.isEmpty()) { + cloudControlDetailsBuilder_.dispose(); + cloudControlDetailsBuilder_ = null; + cloudControlDetails_ = other.cloudControlDetails_; + bitField0_ = (bitField0_ & ~0x00000080); + cloudControlDetailsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetCloudControlDetailsFieldBuilder() + : null; + } else { + cloudControlDetailsBuilder_.addAllMessages(other.cloudControlDetails_); + } + } + } + if (other.deploymentStatus_ != 0) { + setDeploymentStatusValue(other.getDeploymentStatusValue()); + } + if (other.getManagedProjectApplicable() != false) { + setManagedProjectApplicable(other.getManagedProjectApplicable()); + } + 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 26: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 34 + case 42: + { + url_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 42 + case 48: + { + active_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 48 + case 74: + { + input.readMessage( + internalGetParentDomainFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 74 + case 80: + { + deploymentStatus_ = input.readEnum(); + bitField0_ |= 0x00000100; + break; + } // case 80 + case 88: + { + majorRevisionId_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 88 + case 98: + { + com.google.cloud.designcenter.v1.CloudControl m = + input.readMessage( + com.google.cloud.designcenter.v1.CloudControl.parser(), extensionRegistry); + if (cloudControlDetailsBuilder_ == null) { + ensureCloudControlDetailsIsMutable(); + cloudControlDetails_.add(m); + } else { + cloudControlDetailsBuilder_.addMessage(m); + } + break; + } // case 98 + case 104: + { + managedProjectApplicable_ = input.readBool(); + bitField0_ |= 0x00000200; + break; + } // case 104 + default: + { + 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 framework name.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The framework name.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 framework name.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The framework name.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The framework name.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int majorRevisionId_; + + /** + * + * + *
+     * Optional. The major revision id of the framework.
+     * 
+ * + * int32 major_revision_id = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The majorRevisionId. + */ + @java.lang.Override + public int getMajorRevisionId() { + return majorRevisionId_; + } + + /** + * + * + *
+     * Optional. The major revision id of the framework.
+     * 
+ * + * int32 major_revision_id = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The majorRevisionId to set. + * @return This builder for chaining. + */ + public Builder setMajorRevisionId(int value) { + + majorRevisionId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The major revision id of the framework.
+     * 
+ * + * int32 major_revision_id = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMajorRevisionId() { + bitField0_ = (bitField0_ & ~0x00000002); + majorRevisionId_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.designcenter.v1.Domain parentDomain_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.Domain, + com.google.cloud.designcenter.v1.Domain.Builder, + com.google.cloud.designcenter.v1.DomainOrBuilder> + parentDomainBuilder_; + + /** + * + * + *
+     * Required. The domain to which this framework belongs.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Domain parent_domain = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the parentDomain field is set. + */ + public boolean hasParentDomain() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Required. The domain to which this framework belongs.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Domain parent_domain = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The parentDomain. + */ + public com.google.cloud.designcenter.v1.Domain getParentDomain() { + if (parentDomainBuilder_ == null) { + return parentDomain_ == null + ? com.google.cloud.designcenter.v1.Domain.getDefaultInstance() + : parentDomain_; + } else { + return parentDomainBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The domain to which this framework belongs.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Domain parent_domain = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setParentDomain(com.google.cloud.designcenter.v1.Domain value) { + if (parentDomainBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + parentDomain_ = value; + } else { + parentDomainBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The domain to which this framework belongs.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Domain parent_domain = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setParentDomain( + com.google.cloud.designcenter.v1.Domain.Builder builderForValue) { + if (parentDomainBuilder_ == null) { + parentDomain_ = builderForValue.build(); + } else { + parentDomainBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The domain to which this framework belongs.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Domain parent_domain = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeParentDomain(com.google.cloud.designcenter.v1.Domain value) { + if (parentDomainBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && parentDomain_ != null + && parentDomain_ != com.google.cloud.designcenter.v1.Domain.getDefaultInstance()) { + getParentDomainBuilder().mergeFrom(value); + } else { + parentDomain_ = value; + } + } else { + parentDomainBuilder_.mergeFrom(value); + } + if (parentDomain_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The domain to which this framework belongs.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Domain parent_domain = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearParentDomain() { + bitField0_ = (bitField0_ & ~0x00000004); + parentDomain_ = null; + if (parentDomainBuilder_ != null) { + parentDomainBuilder_.dispose(); + parentDomainBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The domain to which this framework belongs.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Domain parent_domain = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.Domain.Builder getParentDomainBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetParentDomainFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The domain to which this framework belongs.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Domain parent_domain = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.DomainOrBuilder getParentDomainOrBuilder() { + if (parentDomainBuilder_ != null) { + return parentDomainBuilder_.getMessageOrBuilder(); + } else { + return parentDomain_ == null + ? com.google.cloud.designcenter.v1.Domain.getDefaultInstance() + : parentDomain_; + } + } + + /** + * + * + *
+     * Required. The domain to which this framework belongs.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Domain parent_domain = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.Domain, + com.google.cloud.designcenter.v1.Domain.Builder, + com.google.cloud.designcenter.v1.DomainOrBuilder> + internalGetParentDomainFieldBuilder() { + if (parentDomainBuilder_ == null) { + parentDomainBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.Domain, + com.google.cloud.designcenter.v1.Domain.Builder, + com.google.cloud.designcenter.v1.DomainOrBuilder>( + getParentDomain(), getParentForChildren(), isClean()); + parentDomain_ = null; + } + return parentDomainBuilder_; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
+     * Optional. The framework display name.
+     * 
+ * + * string display_name = 3 [(.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. The framework display name.
+     * 
+ * + * string display_name = 3 [(.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. The framework display name.
+     * 
+ * + * string display_name = 3 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The framework display name.
+     * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The framework display name.
+     * 
+ * + * string display_name = 3 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
+     * Optional. The framework description.
+     * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The framework description.
+     * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The framework description.
+     * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The framework description.
+     * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The framework description.
+     * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object url_ = ""; + + /** + * + * + *
+     * Optional. The URL to a framework.
+     * 
+ * + * string url = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The url. + */ + public java.lang.String getUrl() { + java.lang.Object ref = url_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + url_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The URL to a framework.
+     * 
+ * + * string url = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for url. + */ + public com.google.protobuf.ByteString getUrlBytes() { + java.lang.Object ref = url_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + url_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The URL to a framework.
+     * 
+ * + * string url = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The url to set. + * @return This builder for chaining. + */ + public Builder setUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + url_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The URL to a framework.
+     * 
+ * + * string url = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearUrl() { + url_ = getDefaultInstance().getUrl(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The URL to a framework.
+     * 
+ * + * string url = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for url to set. + * @return This builder for chaining. + */ + public Builder setUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + url_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private boolean active_; + + /** + * + * + *
+     * Optional. Whether the framework is active.
+     * 
+ * + * bool active = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The active. + */ + @java.lang.Override + public boolean getActive() { + return active_; + } + + /** + * + * + *
+     * Optional. Whether the framework is active.
+     * 
+ * + * bool active = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The active to set. + * @return This builder for chaining. + */ + public Builder setActive(boolean value) { + + active_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Whether the framework is active.
+     * 
+ * + * bool active = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearActive() { + bitField0_ = (bitField0_ & ~0x00000040); + active_ = false; + onChanged(); + return this; + } + + private java.util.List cloudControlDetails_ = + java.util.Collections.emptyList(); + + private void ensureCloudControlDetailsIsMutable() { + if (!((bitField0_ & 0x00000080) != 0)) { + cloudControlDetails_ = + new java.util.ArrayList( + cloudControlDetails_); + bitField0_ |= 0x00000080; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.CloudControl, + com.google.cloud.designcenter.v1.CloudControl.Builder, + com.google.cloud.designcenter.v1.CloudControlOrBuilder> + cloudControlDetailsBuilder_; + + /** + * + * + *
+     * Optional. The cloud controls that are associated with the framework.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControl cloud_control_details = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getCloudControlDetailsList() { + if (cloudControlDetailsBuilder_ == null) { + return java.util.Collections.unmodifiableList(cloudControlDetails_); + } else { + return cloudControlDetailsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. The cloud controls that are associated with the framework.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControl cloud_control_details = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getCloudControlDetailsCount() { + if (cloudControlDetailsBuilder_ == null) { + return cloudControlDetails_.size(); + } else { + return cloudControlDetailsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. The cloud controls that are associated with the framework.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControl cloud_control_details = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.CloudControl getCloudControlDetails(int index) { + if (cloudControlDetailsBuilder_ == null) { + return cloudControlDetails_.get(index); + } else { + return cloudControlDetailsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. The cloud controls that are associated with the framework.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControl cloud_control_details = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCloudControlDetails( + int index, com.google.cloud.designcenter.v1.CloudControl value) { + if (cloudControlDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCloudControlDetailsIsMutable(); + cloudControlDetails_.set(index, value); + onChanged(); + } else { + cloudControlDetailsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The cloud controls that are associated with the framework.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControl cloud_control_details = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCloudControlDetails( + int index, com.google.cloud.designcenter.v1.CloudControl.Builder builderForValue) { + if (cloudControlDetailsBuilder_ == null) { + ensureCloudControlDetailsIsMutable(); + cloudControlDetails_.set(index, builderForValue.build()); + onChanged(); + } else { + cloudControlDetailsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The cloud controls that are associated with the framework.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControl cloud_control_details = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCloudControlDetails(com.google.cloud.designcenter.v1.CloudControl value) { + if (cloudControlDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCloudControlDetailsIsMutable(); + cloudControlDetails_.add(value); + onChanged(); + } else { + cloudControlDetailsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. The cloud controls that are associated with the framework.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControl cloud_control_details = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCloudControlDetails( + int index, com.google.cloud.designcenter.v1.CloudControl value) { + if (cloudControlDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCloudControlDetailsIsMutable(); + cloudControlDetails_.add(index, value); + onChanged(); + } else { + cloudControlDetailsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The cloud controls that are associated with the framework.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControl cloud_control_details = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCloudControlDetails( + com.google.cloud.designcenter.v1.CloudControl.Builder builderForValue) { + if (cloudControlDetailsBuilder_ == null) { + ensureCloudControlDetailsIsMutable(); + cloudControlDetails_.add(builderForValue.build()); + onChanged(); + } else { + cloudControlDetailsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The cloud controls that are associated with the framework.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControl cloud_control_details = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCloudControlDetails( + int index, com.google.cloud.designcenter.v1.CloudControl.Builder builderForValue) { + if (cloudControlDetailsBuilder_ == null) { + ensureCloudControlDetailsIsMutable(); + cloudControlDetails_.add(index, builderForValue.build()); + onChanged(); + } else { + cloudControlDetailsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The cloud controls that are associated with the framework.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControl cloud_control_details = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllCloudControlDetails( + java.lang.Iterable values) { + if (cloudControlDetailsBuilder_ == null) { + ensureCloudControlDetailsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, cloudControlDetails_); + onChanged(); + } else { + cloudControlDetailsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. The cloud controls that are associated with the framework.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControl cloud_control_details = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCloudControlDetails() { + if (cloudControlDetailsBuilder_ == null) { + cloudControlDetails_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + } else { + cloudControlDetailsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. The cloud controls that are associated with the framework.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControl cloud_control_details = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeCloudControlDetails(int index) { + if (cloudControlDetailsBuilder_ == null) { + ensureCloudControlDetailsIsMutable(); + cloudControlDetails_.remove(index); + onChanged(); + } else { + cloudControlDetailsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. The cloud controls that are associated with the framework.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControl cloud_control_details = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.CloudControl.Builder getCloudControlDetailsBuilder( + int index) { + return internalGetCloudControlDetailsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. The cloud controls that are associated with the framework.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControl cloud_control_details = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.CloudControlOrBuilder getCloudControlDetailsOrBuilder( + int index) { + if (cloudControlDetailsBuilder_ == null) { + return cloudControlDetails_.get(index); + } else { + return cloudControlDetailsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. The cloud controls that are associated with the framework.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControl cloud_control_details = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getCloudControlDetailsOrBuilderList() { + if (cloudControlDetailsBuilder_ != null) { + return cloudControlDetailsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(cloudControlDetails_); + } + } + + /** + * + * + *
+     * Optional. The cloud controls that are associated with the framework.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControl cloud_control_details = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.CloudControl.Builder addCloudControlDetailsBuilder() { + return internalGetCloudControlDetailsFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.CloudControl.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The cloud controls that are associated with the framework.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControl cloud_control_details = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.CloudControl.Builder addCloudControlDetailsBuilder( + int index) { + return internalGetCloudControlDetailsFieldBuilder() + .addBuilder(index, com.google.cloud.designcenter.v1.CloudControl.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The cloud controls that are associated with the framework.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControl cloud_control_details = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getCloudControlDetailsBuilderList() { + return internalGetCloudControlDetailsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.CloudControl, + com.google.cloud.designcenter.v1.CloudControl.Builder, + com.google.cloud.designcenter.v1.CloudControlOrBuilder> + internalGetCloudControlDetailsFieldBuilder() { + if (cloudControlDetailsBuilder_ == null) { + cloudControlDetailsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.CloudControl, + com.google.cloud.designcenter.v1.CloudControl.Builder, + com.google.cloud.designcenter.v1.CloudControlOrBuilder>( + cloudControlDetails_, + ((bitField0_ & 0x00000080) != 0), + getParentForChildren(), + isClean()); + cloudControlDetails_ = null; + } + return cloudControlDetailsBuilder_; + } + + private int deploymentStatus_ = 0; + + /** + * + * + *
+     * Optional. The deployment status of the framework.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Framework.DeploymentStatus deployment_status = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for deploymentStatus. + */ + @java.lang.Override + public int getDeploymentStatusValue() { + return deploymentStatus_; + } + + /** + * + * + *
+     * Optional. The deployment status of the framework.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Framework.DeploymentStatus deployment_status = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for deploymentStatus to set. + * @return This builder for chaining. + */ + public Builder setDeploymentStatusValue(int value) { + deploymentStatus_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The deployment status of the framework.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Framework.DeploymentStatus deployment_status = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The deploymentStatus. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.Framework.DeploymentStatus getDeploymentStatus() { + com.google.cloud.designcenter.v1.Framework.DeploymentStatus result = + com.google.cloud.designcenter.v1.Framework.DeploymentStatus.forNumber(deploymentStatus_); + return result == null + ? com.google.cloud.designcenter.v1.Framework.DeploymentStatus.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Optional. The deployment status of the framework.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Framework.DeploymentStatus deployment_status = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The deploymentStatus to set. + * @return This builder for chaining. + */ + public Builder setDeploymentStatus( + com.google.cloud.designcenter.v1.Framework.DeploymentStatus value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000100; + deploymentStatus_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The deployment status of the framework.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Framework.DeploymentStatus deployment_status = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearDeploymentStatus() { + bitField0_ = (bitField0_ & ~0x00000100); + deploymentStatus_ = 0; + onChanged(); + return this; + } + + private boolean managedProjectApplicable_; + + /** + * + * + *
+     * Output only. Indicates if the framework is defined in the managed project.
+     * Only managed-project frameworks can be manually attached.
+     * 
+ * + * bool managed_project_applicable = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The managedProjectApplicable. + */ + @java.lang.Override + public boolean getManagedProjectApplicable() { + return managedProjectApplicable_; + } + + /** + * + * + *
+     * Output only. Indicates if the framework is defined in the managed project.
+     * Only managed-project frameworks can be manually attached.
+     * 
+ * + * bool managed_project_applicable = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The managedProjectApplicable to set. + * @return This builder for chaining. + */ + public Builder setManagedProjectApplicable(boolean value) { + + managedProjectApplicable_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Indicates if the framework is defined in the managed project.
+     * Only managed-project frameworks can be manually attached.
+     * 
+ * + * bool managed_project_applicable = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearManagedProjectApplicable() { + bitField0_ = (bitField0_ & ~0x00000200); + managedProjectApplicable_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.Framework) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.Framework) + private static final com.google.cloud.designcenter.v1.Framework DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.Framework(); + } + + public static com.google.cloud.designcenter.v1.Framework getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Framework parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.Framework getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FrameworkOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FrameworkOrBuilder.java new file mode 100644 index 000000000000..9250e9cf1dfd --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/FrameworkOrBuilder.java @@ -0,0 +1,311 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/assessment.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface FrameworkOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.Framework) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The framework name.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The framework name.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. The major revision id of the framework.
+   * 
+ * + * int32 major_revision_id = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The majorRevisionId. + */ + int getMajorRevisionId(); + + /** + * + * + *
+   * Required. The domain to which this framework belongs.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Domain parent_domain = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the parentDomain field is set. + */ + boolean hasParentDomain(); + + /** + * + * + *
+   * Required. The domain to which this framework belongs.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Domain parent_domain = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The parentDomain. + */ + com.google.cloud.designcenter.v1.Domain getParentDomain(); + + /** + * + * + *
+   * Required. The domain to which this framework belongs.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Domain parent_domain = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.designcenter.v1.DomainOrBuilder getParentDomainOrBuilder(); + + /** + * + * + *
+   * Optional. The framework display name.
+   * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
+   * Optional. The framework display name.
+   * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Optional. The framework description.
+   * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
+   * Optional. The framework description.
+   * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Optional. The URL to a framework.
+   * 
+ * + * string url = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The url. + */ + java.lang.String getUrl(); + + /** + * + * + *
+   * Optional. The URL to a framework.
+   * 
+ * + * string url = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for url. + */ + com.google.protobuf.ByteString getUrlBytes(); + + /** + * + * + *
+   * Optional. Whether the framework is active.
+   * 
+ * + * bool active = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The active. + */ + boolean getActive(); + + /** + * + * + *
+   * Optional. The cloud controls that are associated with the framework.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControl cloud_control_details = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getCloudControlDetailsList(); + + /** + * + * + *
+   * Optional. The cloud controls that are associated with the framework.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControl cloud_control_details = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.CloudControl getCloudControlDetails(int index); + + /** + * + * + *
+   * Optional. The cloud controls that are associated with the framework.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControl cloud_control_details = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getCloudControlDetailsCount(); + + /** + * + * + *
+   * Optional. The cloud controls that are associated with the framework.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControl cloud_control_details = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getCloudControlDetailsOrBuilderList(); + + /** + * + * + *
+   * Optional. The cloud controls that are associated with the framework.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControl cloud_control_details = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.CloudControlOrBuilder getCloudControlDetailsOrBuilder(int index); + + /** + * + * + *
+   * Optional. The deployment status of the framework.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Framework.DeploymentStatus deployment_status = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for deploymentStatus. + */ + int getDeploymentStatusValue(); + + /** + * + * + *
+   * Optional. The deployment status of the framework.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Framework.DeploymentStatus deployment_status = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The deploymentStatus. + */ + com.google.cloud.designcenter.v1.Framework.DeploymentStatus getDeploymentStatus(); + + /** + * + * + *
+   * Output only. Indicates if the framework is defined in the managed project.
+   * Only managed-project frameworks can be manually attached.
+   * 
+ * + * bool managed_project_applicable = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The managedProjectApplicable. + */ + boolean getManagedProjectApplicable(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GKEDeploymentTarget.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GKEDeploymentTarget.java new file mode 100644 index 000000000000..bdc0c70044f5 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GKEDeploymentTarget.java @@ -0,0 +1,1106 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * The GKE deployment target.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.GKEDeploymentTarget} + */ +@com.google.protobuf.Generated +public final class GKEDeploymentTarget extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.GKEDeploymentTarget) + GKEDeploymentTargetOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "GKEDeploymentTarget"); + } + + // Use GKEDeploymentTarget.newBuilder() to construct. + private GKEDeploymentTarget(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GKEDeploymentTarget() { + clusterSelfLink_ = ""; + namespace_ = ""; + kubernetesServiceAccount_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_GKEDeploymentTarget_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_GKEDeploymentTarget_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.GKEDeploymentTarget.class, + com.google.cloud.designcenter.v1.GKEDeploymentTarget.Builder.class); + } + + public static final int CLUSTER_SELF_LINK_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object clusterSelfLink_ = ""; + + /** + * + * + *
+   * Required. The self link of the cluster where GKE based application is
+   * deployed.
+   * 
+ * + * string cluster_self_link = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clusterSelfLink. + */ + @java.lang.Override + public java.lang.String getClusterSelfLink() { + java.lang.Object ref = clusterSelfLink_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterSelfLink_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The self link of the cluster where GKE based application is
+   * deployed.
+   * 
+ * + * string cluster_self_link = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for clusterSelfLink. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClusterSelfLinkBytes() { + java.lang.Object ref = clusterSelfLink_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterSelfLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAMESPACE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object namespace_ = ""; + + /** + * + * + *
+   * Required. The namespace where the application is deployed.
+   * 
+ * + * string namespace = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The namespace. + */ + @java.lang.Override + public java.lang.String getNamespace() { + java.lang.Object ref = namespace_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + namespace_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The namespace where the application is deployed.
+   * 
+ * + * string namespace = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for namespace. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNamespaceBytes() { + java.lang.Object ref = namespace_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + namespace_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int KUBERNETES_SERVICE_ACCOUNT_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object kubernetesServiceAccount_ = ""; + + /** + * + * + *
+   * Required. The kubernetes service account that is created within the
+   * namespace provided above. Example: default or node-sa
+   * 
+ * + * string kubernetes_service_account = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The kubernetesServiceAccount. + */ + @java.lang.Override + public java.lang.String getKubernetesServiceAccount() { + java.lang.Object ref = kubernetesServiceAccount_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kubernetesServiceAccount_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The kubernetes service account that is created within the
+   * namespace provided above. Example: default or node-sa
+   * 
+ * + * string kubernetes_service_account = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for kubernetesServiceAccount. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKubernetesServiceAccountBytes() { + java.lang.Object ref = kubernetesServiceAccount_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kubernetesServiceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int KUBERNETES_SERVICE_ACCOUNT_CREATION_FIELD_NUMBER = 4; + private boolean kubernetesServiceAccountCreation_ = false; + + /** + * + * + *
+   * Optional. Whether to create the provided KSA.
+   * If true, the KSA will be created in the namespace provided above.
+   * If false, the KSA is expected to already exist in the namespace provided
+   * above.
+   * 
+ * + * bool kubernetes_service_account_creation = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The kubernetesServiceAccountCreation. + */ + @java.lang.Override + public boolean getKubernetesServiceAccountCreation() { + return kubernetesServiceAccountCreation_; + } + + 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.GeneratedMessage.isStringEmpty(clusterSelfLink_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, clusterSelfLink_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(namespace_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, namespace_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(kubernetesServiceAccount_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, kubernetesServiceAccount_); + } + if (kubernetesServiceAccountCreation_ != false) { + output.writeBool(4, kubernetesServiceAccountCreation_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(clusterSelfLink_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, clusterSelfLink_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(namespace_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, namespace_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(kubernetesServiceAccount_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, kubernetesServiceAccount_); + } + if (kubernetesServiceAccountCreation_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 4, kubernetesServiceAccountCreation_); + } + 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.designcenter.v1.GKEDeploymentTarget)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.GKEDeploymentTarget other = + (com.google.cloud.designcenter.v1.GKEDeploymentTarget) obj; + + if (!getClusterSelfLink().equals(other.getClusterSelfLink())) return false; + if (!getNamespace().equals(other.getNamespace())) return false; + if (!getKubernetesServiceAccount().equals(other.getKubernetesServiceAccount())) return false; + if (getKubernetesServiceAccountCreation() != other.getKubernetesServiceAccountCreation()) + 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) + CLUSTER_SELF_LINK_FIELD_NUMBER; + hash = (53 * hash) + getClusterSelfLink().hashCode(); + hash = (37 * hash) + NAMESPACE_FIELD_NUMBER; + hash = (53 * hash) + getNamespace().hashCode(); + hash = (37 * hash) + KUBERNETES_SERVICE_ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getKubernetesServiceAccount().hashCode(); + hash = (37 * hash) + KUBERNETES_SERVICE_ACCOUNT_CREATION_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getKubernetesServiceAccountCreation()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.GKEDeploymentTarget parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GKEDeploymentTarget 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.designcenter.v1.GKEDeploymentTarget parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GKEDeploymentTarget parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GKEDeploymentTarget parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GKEDeploymentTarget parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GKEDeploymentTarget parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GKEDeploymentTarget parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GKEDeploymentTarget parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GKEDeploymentTarget parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GKEDeploymentTarget parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GKEDeploymentTarget parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.GKEDeploymentTarget 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * The GKE deployment target.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.GKEDeploymentTarget} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.GKEDeploymentTarget) + com.google.cloud.designcenter.v1.GKEDeploymentTargetOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_GKEDeploymentTarget_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_GKEDeploymentTarget_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.GKEDeploymentTarget.class, + com.google.cloud.designcenter.v1.GKEDeploymentTarget.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.GKEDeploymentTarget.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + clusterSelfLink_ = ""; + namespace_ = ""; + kubernetesServiceAccount_ = ""; + kubernetesServiceAccountCreation_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_GKEDeploymentTarget_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GKEDeploymentTarget getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.GKEDeploymentTarget.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GKEDeploymentTarget build() { + com.google.cloud.designcenter.v1.GKEDeploymentTarget result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GKEDeploymentTarget buildPartial() { + com.google.cloud.designcenter.v1.GKEDeploymentTarget result = + new com.google.cloud.designcenter.v1.GKEDeploymentTarget(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.GKEDeploymentTarget result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.clusterSelfLink_ = clusterSelfLink_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.namespace_ = namespace_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.kubernetesServiceAccount_ = kubernetesServiceAccount_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.kubernetesServiceAccountCreation_ = kubernetesServiceAccountCreation_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.GKEDeploymentTarget) { + return mergeFrom((com.google.cloud.designcenter.v1.GKEDeploymentTarget) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.GKEDeploymentTarget other) { + if (other == com.google.cloud.designcenter.v1.GKEDeploymentTarget.getDefaultInstance()) + return this; + if (!other.getClusterSelfLink().isEmpty()) { + clusterSelfLink_ = other.clusterSelfLink_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getNamespace().isEmpty()) { + namespace_ = other.namespace_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getKubernetesServiceAccount().isEmpty()) { + kubernetesServiceAccount_ = other.kubernetesServiceAccount_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.getKubernetesServiceAccountCreation() != false) { + setKubernetesServiceAccountCreation(other.getKubernetesServiceAccountCreation()); + } + 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: + { + clusterSelfLink_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + namespace_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + kubernetesServiceAccount_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + kubernetesServiceAccountCreation_ = 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 clusterSelfLink_ = ""; + + /** + * + * + *
+     * Required. The self link of the cluster where GKE based application is
+     * deployed.
+     * 
+ * + * string cluster_self_link = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clusterSelfLink. + */ + public java.lang.String getClusterSelfLink() { + java.lang.Object ref = clusterSelfLink_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterSelfLink_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The self link of the cluster where GKE based application is
+     * deployed.
+     * 
+ * + * string cluster_self_link = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for clusterSelfLink. + */ + public com.google.protobuf.ByteString getClusterSelfLinkBytes() { + java.lang.Object ref = clusterSelfLink_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterSelfLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The self link of the cluster where GKE based application is
+     * deployed.
+     * 
+ * + * string cluster_self_link = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The clusterSelfLink to set. + * @return This builder for chaining. + */ + public Builder setClusterSelfLink(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + clusterSelfLink_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The self link of the cluster where GKE based application is
+     * deployed.
+     * 
+ * + * string cluster_self_link = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearClusterSelfLink() { + clusterSelfLink_ = getDefaultInstance().getClusterSelfLink(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The self link of the cluster where GKE based application is
+     * deployed.
+     * 
+ * + * string cluster_self_link = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for clusterSelfLink to set. + * @return This builder for chaining. + */ + public Builder setClusterSelfLinkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterSelfLink_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object namespace_ = ""; + + /** + * + * + *
+     * Required. The namespace where the application is deployed.
+     * 
+ * + * string namespace = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The namespace. + */ + public java.lang.String getNamespace() { + java.lang.Object ref = namespace_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + namespace_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The namespace where the application is deployed.
+     * 
+ * + * string namespace = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for namespace. + */ + public com.google.protobuf.ByteString getNamespaceBytes() { + java.lang.Object ref = namespace_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + namespace_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The namespace where the application is deployed.
+     * 
+ * + * string namespace = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The namespace to set. + * @return This builder for chaining. + */ + public Builder setNamespace(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + namespace_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The namespace where the application is deployed.
+     * 
+ * + * string namespace = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearNamespace() { + namespace_ = getDefaultInstance().getNamespace(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The namespace where the application is deployed.
+     * 
+ * + * string namespace = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for namespace to set. + * @return This builder for chaining. + */ + public Builder setNamespaceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + namespace_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object kubernetesServiceAccount_ = ""; + + /** + * + * + *
+     * Required. The kubernetes service account that is created within the
+     * namespace provided above. Example: default or node-sa
+     * 
+ * + * string kubernetes_service_account = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The kubernetesServiceAccount. + */ + public java.lang.String getKubernetesServiceAccount() { + java.lang.Object ref = kubernetesServiceAccount_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kubernetesServiceAccount_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The kubernetes service account that is created within the
+     * namespace provided above. Example: default or node-sa
+     * 
+ * + * string kubernetes_service_account = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for kubernetesServiceAccount. + */ + public com.google.protobuf.ByteString getKubernetesServiceAccountBytes() { + java.lang.Object ref = kubernetesServiceAccount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kubernetesServiceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The kubernetes service account that is created within the
+     * namespace provided above. Example: default or node-sa
+     * 
+ * + * string kubernetes_service_account = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The kubernetesServiceAccount to set. + * @return This builder for chaining. + */ + public Builder setKubernetesServiceAccount(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + kubernetesServiceAccount_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The kubernetes service account that is created within the
+     * namespace provided above. Example: default or node-sa
+     * 
+ * + * string kubernetes_service_account = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearKubernetesServiceAccount() { + kubernetesServiceAccount_ = getDefaultInstance().getKubernetesServiceAccount(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The kubernetes service account that is created within the
+     * namespace provided above. Example: default or node-sa
+     * 
+ * + * string kubernetes_service_account = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for kubernetesServiceAccount to set. + * @return This builder for chaining. + */ + public Builder setKubernetesServiceAccountBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kubernetesServiceAccount_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private boolean kubernetesServiceAccountCreation_; + + /** + * + * + *
+     * Optional. Whether to create the provided KSA.
+     * If true, the KSA will be created in the namespace provided above.
+     * If false, the KSA is expected to already exist in the namespace provided
+     * above.
+     * 
+ * + * bool kubernetes_service_account_creation = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The kubernetesServiceAccountCreation. + */ + @java.lang.Override + public boolean getKubernetesServiceAccountCreation() { + return kubernetesServiceAccountCreation_; + } + + /** + * + * + *
+     * Optional. Whether to create the provided KSA.
+     * If true, the KSA will be created in the namespace provided above.
+     * If false, the KSA is expected to already exist in the namespace provided
+     * above.
+     * 
+ * + * bool kubernetes_service_account_creation = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The kubernetesServiceAccountCreation to set. + * @return This builder for chaining. + */ + public Builder setKubernetesServiceAccountCreation(boolean value) { + + kubernetesServiceAccountCreation_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Whether to create the provided KSA.
+     * If true, the KSA will be created in the namespace provided above.
+     * If false, the KSA is expected to already exist in the namespace provided
+     * above.
+     * 
+ * + * bool kubernetes_service_account_creation = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearKubernetesServiceAccountCreation() { + bitField0_ = (bitField0_ & ~0x00000008); + kubernetesServiceAccountCreation_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.GKEDeploymentTarget) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.GKEDeploymentTarget) + private static final com.google.cloud.designcenter.v1.GKEDeploymentTarget DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.GKEDeploymentTarget(); + } + + public static com.google.cloud.designcenter.v1.GKEDeploymentTarget getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GKEDeploymentTarget parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.GKEDeploymentTarget getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GKEDeploymentTargetOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GKEDeploymentTargetOrBuilder.java new file mode 100644 index 000000000000..9be912a48e5c --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GKEDeploymentTargetOrBuilder.java @@ -0,0 +1,127 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface GKEDeploymentTargetOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.GKEDeploymentTarget) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The self link of the cluster where GKE based application is
+   * deployed.
+   * 
+ * + * string cluster_self_link = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clusterSelfLink. + */ + java.lang.String getClusterSelfLink(); + + /** + * + * + *
+   * Required. The self link of the cluster where GKE based application is
+   * deployed.
+   * 
+ * + * string cluster_self_link = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for clusterSelfLink. + */ + com.google.protobuf.ByteString getClusterSelfLinkBytes(); + + /** + * + * + *
+   * Required. The namespace where the application is deployed.
+   * 
+ * + * string namespace = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The namespace. + */ + java.lang.String getNamespace(); + + /** + * + * + *
+   * Required. The namespace where the application is deployed.
+   * 
+ * + * string namespace = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for namespace. + */ + com.google.protobuf.ByteString getNamespaceBytes(); + + /** + * + * + *
+   * Required. The kubernetes service account that is created within the
+   * namespace provided above. Example: default or node-sa
+   * 
+ * + * string kubernetes_service_account = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The kubernetesServiceAccount. + */ + java.lang.String getKubernetesServiceAccount(); + + /** + * + * + *
+   * Required. The kubernetes service account that is created within the
+   * namespace provided above. Example: default or node-sa
+   * 
+ * + * string kubernetes_service_account = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for kubernetesServiceAccount. + */ + com.google.protobuf.ByteString getKubernetesServiceAccountBytes(); + + /** + * + * + *
+   * Optional. Whether to create the provided KSA.
+   * If true, the KSA will be created in the namespace provided above.
+   * If false, the KSA is expected to already exist in the namespace provided
+   * above.
+   * 
+ * + * bool kubernetes_service_account_creation = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The kubernetesServiceAccountCreation. + */ + boolean getKubernetesServiceAccountCreation(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationAssessmentReportRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationAssessmentReportRequest.java new file mode 100644 index 000000000000..97e31c066d10 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationAssessmentReportRequest.java @@ -0,0 +1,645 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/best_practices_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for generating an application assessment report.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.GenerateApplicationAssessmentReportRequest} + */ +@com.google.protobuf.Generated +public final class GenerateApplicationAssessmentReportRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.GenerateApplicationAssessmentReportRequest) + GenerateApplicationAssessmentReportRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "GenerateApplicationAssessmentReportRequest"); + } + + // Use GenerateApplicationAssessmentReportRequest.newBuilder() to construct. + private GenerateApplicationAssessmentReportRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GenerateApplicationAssessmentReportRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GenerateApplicationAssessmentReportRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GenerateApplicationAssessmentReportRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportRequest.class, + com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportRequest.Builder + .class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The application name in the following format:
+   * `projects/$project/locations/$location/spaces/$space/applications/$application`
+   * 
+ * + * + * 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 application name in the following format:
+   * `projects/$project/locations/$location/spaces/$space/applications/$application`
+   * 
+ * + * + * 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.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.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.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.designcenter.v1.GenerateApplicationAssessmentReportRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportRequest other = + (com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportRequest) 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.designcenter.v1.GenerateApplicationAssessmentReportRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportRequest + 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.designcenter.v1.GenerateApplicationAssessmentReportRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.GenerateApplicationAssessmentReportRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for generating an application assessment report.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.GenerateApplicationAssessmentReportRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.GenerateApplicationAssessmentReportRequest) + com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GenerateApplicationAssessmentReportRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GenerateApplicationAssessmentReportRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportRequest.class, + com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.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.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GenerateApplicationAssessmentReportRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportRequest + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportRequest build() { + com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportRequest + buildPartial() { + com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportRequest result = + new com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportRequest) { + return mergeFrom( + (com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportRequest other) { + if (other + == com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportRequest + .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 application name in the following format:
+     * `projects/$project/locations/$location/spaces/$space/applications/$application`
+     * 
+ * + * + * 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 application name in the following format:
+     * `projects/$project/locations/$location/spaces/$space/applications/$application`
+     * 
+ * + * + * 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 application name in the following format:
+     * `projects/$project/locations/$location/spaces/$space/applications/$application`
+     * 
+ * + * + * 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 application name in the following format:
+     * `projects/$project/locations/$location/spaces/$space/applications/$application`
+     * 
+ * + * + * 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 application name in the following format:
+     * `projects/$project/locations/$location/spaces/$space/applications/$application`
+     * 
+ * + * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.GenerateApplicationAssessmentReportRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.GenerateApplicationAssessmentReportRequest) + private static final com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportRequest(); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateApplicationAssessmentReportRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.GenerateApplicationAssessmentReportRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationAssessmentReportRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationAssessmentReportRequestOrBuilder.java new file mode 100644 index 000000000000..25f817e0d608 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationAssessmentReportRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/best_practices_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface GenerateApplicationAssessmentReportRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.GenerateApplicationAssessmentReportRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The application name in the following format:
+   * `projects/$project/locations/$location/spaces/$space/applications/$application`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The application name in the following format:
+   * `projects/$project/locations/$location/spaces/$space/applications/$application`
+   * 
+ * + * + * 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-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationAssessmentReportResponse.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationAssessmentReportResponse.java new file mode 100644 index 000000000000..2b8628930e75 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationAssessmentReportResponse.java @@ -0,0 +1,755 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/best_practices_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Response for GenerateApplicationAssessmentReport.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.GenerateApplicationAssessmentReportResponse} + */ +@com.google.protobuf.Generated +public final class GenerateApplicationAssessmentReportResponse + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.GenerateApplicationAssessmentReportResponse) + GenerateApplicationAssessmentReportResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "GenerateApplicationAssessmentReportResponse"); + } + + // Use GenerateApplicationAssessmentReportResponse.newBuilder() to construct. + private GenerateApplicationAssessmentReportResponse( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GenerateApplicationAssessmentReportResponse() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GenerateApplicationAssessmentReportResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GenerateApplicationAssessmentReportResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportResponse.class, + com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportResponse.Builder + .class); + } + + private int bitField0_; + public static final int ASSESSMENT_REPORT_FIELD_NUMBER = 1; + private com.google.cloud.designcenter.v1.AssessmentReport assessmentReport_; + + /** + * + * + *
+   * Output only. Best practices by Design Assessment report
+   * 
+ * + * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the assessmentReport field is set. + */ + @java.lang.Override + public boolean hasAssessmentReport() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. Best practices by Design Assessment report
+   * 
+ * + * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The assessmentReport. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.AssessmentReport getAssessmentReport() { + return assessmentReport_ == null + ? com.google.cloud.designcenter.v1.AssessmentReport.getDefaultInstance() + : assessmentReport_; + } + + /** + * + * + *
+   * Output only. Best practices by Design Assessment report
+   * 
+ * + * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.AssessmentReportOrBuilder getAssessmentReportOrBuilder() { + return assessmentReport_ == null + ? com.google.cloud.designcenter.v1.AssessmentReport.getDefaultInstance() + : assessmentReport_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getAssessmentReport()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAssessmentReport()); + } + 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.designcenter.v1.GenerateApplicationAssessmentReportResponse)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportResponse other = + (com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportResponse) obj; + + if (hasAssessmentReport() != other.hasAssessmentReport()) return false; + if (hasAssessmentReport()) { + if (!getAssessmentReport().equals(other.getAssessmentReport())) 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 (hasAssessmentReport()) { + hash = (37 * hash) + ASSESSMENT_REPORT_FIELD_NUMBER; + hash = (53 * hash) + getAssessmentReport().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportResponse + 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.designcenter.v1.GenerateApplicationAssessmentReportResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportResponse + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportResponse + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportResponse + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.GenerateApplicationAssessmentReportResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response for GenerateApplicationAssessmentReport.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.GenerateApplicationAssessmentReportResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.GenerateApplicationAssessmentReportResponse) + com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GenerateApplicationAssessmentReportResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GenerateApplicationAssessmentReportResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportResponse.class, + com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetAssessmentReportFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + assessmentReport_ = null; + if (assessmentReportBuilder_ != null) { + assessmentReportBuilder_.dispose(); + assessmentReportBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GenerateApplicationAssessmentReportResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportResponse + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportResponse build() { + com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportResponse + buildPartial() { + com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportResponse result = + new com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.assessmentReport_ = + assessmentReportBuilder_ == null ? assessmentReport_ : assessmentReportBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportResponse) { + return mergeFrom( + (com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportResponse other) { + if (other + == com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportResponse + .getDefaultInstance()) return this; + if (other.hasAssessmentReport()) { + mergeAssessmentReport(other.getAssessmentReport()); + } + 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( + internalGetAssessmentReportFieldBuilder().getBuilder(), extensionRegistry); + 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 com.google.cloud.designcenter.v1.AssessmentReport assessmentReport_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.AssessmentReport, + com.google.cloud.designcenter.v1.AssessmentReport.Builder, + com.google.cloud.designcenter.v1.AssessmentReportOrBuilder> + assessmentReportBuilder_; + + /** + * + * + *
+     * Output only. Best practices by Design Assessment report
+     * 
+ * + * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the assessmentReport field is set. + */ + public boolean hasAssessmentReport() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Output only. Best practices by Design Assessment report
+     * 
+ * + * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The assessmentReport. + */ + public com.google.cloud.designcenter.v1.AssessmentReport getAssessmentReport() { + if (assessmentReportBuilder_ == null) { + return assessmentReport_ == null + ? com.google.cloud.designcenter.v1.AssessmentReport.getDefaultInstance() + : assessmentReport_; + } else { + return assessmentReportBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Best practices by Design Assessment report
+     * 
+ * + * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAssessmentReport(com.google.cloud.designcenter.v1.AssessmentReport value) { + if (assessmentReportBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + assessmentReport_ = value; + } else { + assessmentReportBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Best practices by Design Assessment report
+     * 
+ * + * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAssessmentReport( + com.google.cloud.designcenter.v1.AssessmentReport.Builder builderForValue) { + if (assessmentReportBuilder_ == null) { + assessmentReport_ = builderForValue.build(); + } else { + assessmentReportBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Best practices by Design Assessment report
+     * 
+ * + * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeAssessmentReport(com.google.cloud.designcenter.v1.AssessmentReport value) { + if (assessmentReportBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && assessmentReport_ != null + && assessmentReport_ + != com.google.cloud.designcenter.v1.AssessmentReport.getDefaultInstance()) { + getAssessmentReportBuilder().mergeFrom(value); + } else { + assessmentReport_ = value; + } + } else { + assessmentReportBuilder_.mergeFrom(value); + } + if (assessmentReport_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Best practices by Design Assessment report
+     * 
+ * + * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearAssessmentReport() { + bitField0_ = (bitField0_ & ~0x00000001); + assessmentReport_ = null; + if (assessmentReportBuilder_ != null) { + assessmentReportBuilder_.dispose(); + assessmentReportBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Best practices by Design Assessment report
+     * 
+ * + * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.AssessmentReport.Builder getAssessmentReportBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetAssessmentReportFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Best practices by Design Assessment report
+     * 
+ * + * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.AssessmentReportOrBuilder + getAssessmentReportOrBuilder() { + if (assessmentReportBuilder_ != null) { + return assessmentReportBuilder_.getMessageOrBuilder(); + } else { + return assessmentReport_ == null + ? com.google.cloud.designcenter.v1.AssessmentReport.getDefaultInstance() + : assessmentReport_; + } + } + + /** + * + * + *
+     * Output only. Best practices by Design Assessment report
+     * 
+ * + * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.AssessmentReport, + com.google.cloud.designcenter.v1.AssessmentReport.Builder, + com.google.cloud.designcenter.v1.AssessmentReportOrBuilder> + internalGetAssessmentReportFieldBuilder() { + if (assessmentReportBuilder_ == null) { + assessmentReportBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.AssessmentReport, + com.google.cloud.designcenter.v1.AssessmentReport.Builder, + com.google.cloud.designcenter.v1.AssessmentReportOrBuilder>( + getAssessmentReport(), getParentForChildren(), isClean()); + assessmentReport_ = null; + } + return assessmentReportBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.GenerateApplicationAssessmentReportResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.GenerateApplicationAssessmentReportResponse) + private static final com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportResponse(); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateApplicationAssessmentReportResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.GenerateApplicationAssessmentReportResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationAssessmentReportResponseOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationAssessmentReportResponseOrBuilder.java new file mode 100644 index 000000000000..1ec219988a5e --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationAssessmentReportResponseOrBuilder.java @@ -0,0 +1,71 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/best_practices_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface GenerateApplicationAssessmentReportResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.GenerateApplicationAssessmentReportResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Best practices by Design Assessment report
+   * 
+ * + * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the assessmentReport field is set. + */ + boolean hasAssessmentReport(); + + /** + * + * + *
+   * Output only. Best practices by Design Assessment report
+   * 
+ * + * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The assessmentReport. + */ + com.google.cloud.designcenter.v1.AssessmentReport getAssessmentReport(); + + /** + * + * + *
+   * Output only. Best practices by Design Assessment report
+   * 
+ * + * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.AssessmentReportOrBuilder getAssessmentReportOrBuilder(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationIaCRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationIaCRequest.java new file mode 100644 index 000000000000..fe16cd255c34 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationIaCRequest.java @@ -0,0 +1,1337 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Request message for GenerateApplicationIaC method.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.GenerateApplicationIaCRequest} + */ +@com.google.protobuf.Generated +public final class GenerateApplicationIaCRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.GenerateApplicationIaCRequest) + GenerateApplicationIaCRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "GenerateApplicationIaCRequest"); + } + + // Use GenerateApplicationIaCRequest.newBuilder() to construct. + private GenerateApplicationIaCRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GenerateApplicationIaCRequest() { + name_ = ""; + iacFormat_ = 0; + gcsUri_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GenerateApplicationIaCRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GenerateApplicationIaCRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.GenerateApplicationIaCRequest.class, + com.google.cloud.designcenter.v1.GenerateApplicationIaCRequest.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The name of the application.
+   * 
+ * + * + * 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 application.
+   * 
+ * + * + * 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 IAC_FORMAT_FIELD_NUMBER = 2; + private int iacFormat_ = 0; + + /** + * + * + *
+   * Optional. The IaC format to generate.
+   * 
+ * + * + * .google.cloud.designcenter.v1.IACFormat iac_format = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for iacFormat. + */ + @java.lang.Override + public int getIacFormatValue() { + return iacFormat_; + } + + /** + * + * + *
+   * Optional. The IaC format to generate.
+   * 
+ * + * + * .google.cloud.designcenter.v1.IACFormat iac_format = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The iacFormat. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.IACFormat getIacFormat() { + com.google.cloud.designcenter.v1.IACFormat result = + com.google.cloud.designcenter.v1.IACFormat.forNumber(iacFormat_); + return result == null ? com.google.cloud.designcenter.v1.IACFormat.UNRECOGNIZED : result; + } + + public static final int GCS_URI_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object gcsUri_ = ""; + + /** + * + * + *
+   * Optional. DEPRECATED: Use the 'artifact_location' field instead.
+   * The Cloud Storage URI to write the generated IaC to.
+   * 
+ * + * string gcs_uri = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * @deprecated google.cloud.designcenter.v1.GenerateApplicationIaCRequest.gcs_uri is deprecated. + * See google/cloud/designcenter/v1/deployment_messages.proto;l=262 + * @return The gcsUri. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getGcsUri() { + java.lang.Object ref = gcsUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gcsUri_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. DEPRECATED: Use the 'artifact_location' field instead.
+   * The Cloud Storage URI to write the generated IaC to.
+   * 
+ * + * string gcs_uri = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * @deprecated google.cloud.designcenter.v1.GenerateApplicationIaCRequest.gcs_uri is deprecated. + * See google/cloud/designcenter/v1/deployment_messages.proto;l=262 + * @return The bytes for gcsUri. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getGcsUriBytes() { + java.lang.Object ref = gcsUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gcsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ARTIFACT_LOCATION_FIELD_NUMBER = 4; + private com.google.cloud.designcenter.v1.ArtifactLocation artifactLocation_; + + /** + * + * + *
+   * Optional. Specifies the destination for the generated IaC, which can be
+   * Cloud Storage or a Developer Connect repository.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the artifactLocation field is set. + */ + @java.lang.Override + public boolean hasArtifactLocation() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. Specifies the destination for the generated IaC, which can be
+   * Cloud Storage or a Developer Connect repository.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The artifactLocation. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ArtifactLocation getArtifactLocation() { + return artifactLocation_ == null + ? com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance() + : artifactLocation_; + } + + /** + * + * + *
+   * Optional. Specifies the destination for the generated IaC, which can be
+   * Cloud Storage or a Developer Connect repository.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder getArtifactLocationOrBuilder() { + return artifactLocation_ == null + ? com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance() + : artifactLocation_; + } + + 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (iacFormat_ + != com.google.cloud.designcenter.v1.IACFormat.IAC_FORMAT_UNSPECIFIED.getNumber()) { + output.writeEnum(2, iacFormat_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gcsUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, gcsUri_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getArtifactLocation()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (iacFormat_ + != com.google.cloud.designcenter.v1.IACFormat.IAC_FORMAT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, iacFormat_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gcsUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, gcsUri_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getArtifactLocation()); + } + 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.designcenter.v1.GenerateApplicationIaCRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.GenerateApplicationIaCRequest other = + (com.google.cloud.designcenter.v1.GenerateApplicationIaCRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (iacFormat_ != other.iacFormat_) return false; + if (!getGcsUri().equals(other.getGcsUri())) return false; + if (hasArtifactLocation() != other.hasArtifactLocation()) return false; + if (hasArtifactLocation()) { + if (!getArtifactLocation().equals(other.getArtifactLocation())) 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) + IAC_FORMAT_FIELD_NUMBER; + hash = (53 * hash) + iacFormat_; + hash = (37 * hash) + GCS_URI_FIELD_NUMBER; + hash = (53 * hash) + getGcsUri().hashCode(); + if (hasArtifactLocation()) { + hash = (37 * hash) + ARTIFACT_LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getArtifactLocation().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationIaCRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationIaCRequest 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.designcenter.v1.GenerateApplicationIaCRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationIaCRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationIaCRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationIaCRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationIaCRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationIaCRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationIaCRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationIaCRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationIaCRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationIaCRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.GenerateApplicationIaCRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for GenerateApplicationIaC method.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.GenerateApplicationIaCRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.GenerateApplicationIaCRequest) + com.google.cloud.designcenter.v1.GenerateApplicationIaCRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GenerateApplicationIaCRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GenerateApplicationIaCRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.GenerateApplicationIaCRequest.class, + com.google.cloud.designcenter.v1.GenerateApplicationIaCRequest.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.GenerateApplicationIaCRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetArtifactLocationFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + iacFormat_ = 0; + gcsUri_ = ""; + artifactLocation_ = null; + if (artifactLocationBuilder_ != null) { + artifactLocationBuilder_.dispose(); + artifactLocationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GenerateApplicationIaCRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GenerateApplicationIaCRequest + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.GenerateApplicationIaCRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GenerateApplicationIaCRequest build() { + com.google.cloud.designcenter.v1.GenerateApplicationIaCRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GenerateApplicationIaCRequest buildPartial() { + com.google.cloud.designcenter.v1.GenerateApplicationIaCRequest result = + new com.google.cloud.designcenter.v1.GenerateApplicationIaCRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.GenerateApplicationIaCRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.iacFormat_ = iacFormat_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.gcsUri_ = gcsUri_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.artifactLocation_ = + artifactLocationBuilder_ == null ? artifactLocation_ : artifactLocationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.GenerateApplicationIaCRequest) { + return mergeFrom((com.google.cloud.designcenter.v1.GenerateApplicationIaCRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.GenerateApplicationIaCRequest other) { + if (other + == com.google.cloud.designcenter.v1.GenerateApplicationIaCRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.iacFormat_ != 0) { + setIacFormatValue(other.getIacFormatValue()); + } + if (!other.getGcsUri().isEmpty()) { + gcsUri_ = other.gcsUri_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasArtifactLocation()) { + mergeArtifactLocation(other.getArtifactLocation()); + } + 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: + { + iacFormat_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + gcsUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetArtifactLocationFieldBuilder().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 name_ = ""; + + /** + * + * + *
+     * Required. The name of the application.
+     * 
+ * + * + * 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 application.
+     * 
+ * + * + * 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 application.
+     * 
+ * + * + * 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 application.
+     * 
+ * + * + * 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 application.
+     * 
+ * + * + * 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 iacFormat_ = 0; + + /** + * + * + *
+     * Optional. The IaC format to generate.
+     * 
+ * + * + * .google.cloud.designcenter.v1.IACFormat iac_format = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for iacFormat. + */ + @java.lang.Override + public int getIacFormatValue() { + return iacFormat_; + } + + /** + * + * + *
+     * Optional. The IaC format to generate.
+     * 
+ * + * + * .google.cloud.designcenter.v1.IACFormat iac_format = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for iacFormat to set. + * @return This builder for chaining. + */ + public Builder setIacFormatValue(int value) { + iacFormat_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The IaC format to generate.
+     * 
+ * + * + * .google.cloud.designcenter.v1.IACFormat iac_format = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The iacFormat. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.IACFormat getIacFormat() { + com.google.cloud.designcenter.v1.IACFormat result = + com.google.cloud.designcenter.v1.IACFormat.forNumber(iacFormat_); + return result == null ? com.google.cloud.designcenter.v1.IACFormat.UNRECOGNIZED : result; + } + + /** + * + * + *
+     * Optional. The IaC format to generate.
+     * 
+ * + * + * .google.cloud.designcenter.v1.IACFormat iac_format = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The iacFormat to set. + * @return This builder for chaining. + */ + public Builder setIacFormat(com.google.cloud.designcenter.v1.IACFormat value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + iacFormat_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The IaC format to generate.
+     * 
+ * + * + * .google.cloud.designcenter.v1.IACFormat iac_format = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearIacFormat() { + bitField0_ = (bitField0_ & ~0x00000002); + iacFormat_ = 0; + onChanged(); + return this; + } + + private java.lang.Object gcsUri_ = ""; + + /** + * + * + *
+     * Optional. DEPRECATED: Use the 'artifact_location' field instead.
+     * The Cloud Storage URI to write the generated IaC to.
+     * 
+ * + * string gcs_uri = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * @deprecated google.cloud.designcenter.v1.GenerateApplicationIaCRequest.gcs_uri is deprecated. + * See google/cloud/designcenter/v1/deployment_messages.proto;l=262 + * @return The gcsUri. + */ + @java.lang.Deprecated + public java.lang.String getGcsUri() { + java.lang.Object ref = gcsUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gcsUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. DEPRECATED: Use the 'artifact_location' field instead.
+     * The Cloud Storage URI to write the generated IaC to.
+     * 
+ * + * string gcs_uri = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * @deprecated google.cloud.designcenter.v1.GenerateApplicationIaCRequest.gcs_uri is deprecated. + * See google/cloud/designcenter/v1/deployment_messages.proto;l=262 + * @return The bytes for gcsUri. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getGcsUriBytes() { + java.lang.Object ref = gcsUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gcsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. DEPRECATED: Use the 'artifact_location' field instead.
+     * The Cloud Storage URI to write the generated IaC to.
+     * 
+ * + * string gcs_uri = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * @deprecated google.cloud.designcenter.v1.GenerateApplicationIaCRequest.gcs_uri is deprecated. + * See google/cloud/designcenter/v1/deployment_messages.proto;l=262 + * @param value The gcsUri to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setGcsUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + gcsUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. DEPRECATED: Use the 'artifact_location' field instead.
+     * The Cloud Storage URI to write the generated IaC to.
+     * 
+ * + * string gcs_uri = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * @deprecated google.cloud.designcenter.v1.GenerateApplicationIaCRequest.gcs_uri is deprecated. + * See google/cloud/designcenter/v1/deployment_messages.proto;l=262 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearGcsUri() { + gcsUri_ = getDefaultInstance().getGcsUri(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. DEPRECATED: Use the 'artifact_location' field instead.
+     * The Cloud Storage URI to write the generated IaC to.
+     * 
+ * + * string gcs_uri = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * @deprecated google.cloud.designcenter.v1.GenerateApplicationIaCRequest.gcs_uri is deprecated. + * See google/cloud/designcenter/v1/deployment_messages.proto;l=262 + * @param value The bytes for gcsUri to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setGcsUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gcsUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.cloud.designcenter.v1.ArtifactLocation artifactLocation_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ArtifactLocation, + com.google.cloud.designcenter.v1.ArtifactLocation.Builder, + com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder> + artifactLocationBuilder_; + + /** + * + * + *
+     * Optional. Specifies the destination for the generated IaC, which can be
+     * Cloud Storage or a Developer Connect repository.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the artifactLocation field is set. + */ + public boolean hasArtifactLocation() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Optional. Specifies the destination for the generated IaC, which can be
+     * Cloud Storage or a Developer Connect repository.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The artifactLocation. + */ + public com.google.cloud.designcenter.v1.ArtifactLocation getArtifactLocation() { + if (artifactLocationBuilder_ == null) { + return artifactLocation_ == null + ? com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance() + : artifactLocation_; + } else { + return artifactLocationBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Specifies the destination for the generated IaC, which can be
+     * Cloud Storage or a Developer Connect repository.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setArtifactLocation(com.google.cloud.designcenter.v1.ArtifactLocation value) { + if (artifactLocationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + artifactLocation_ = value; + } else { + artifactLocationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Specifies the destination for the generated IaC, which can be
+     * Cloud Storage or a Developer Connect repository.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setArtifactLocation( + com.google.cloud.designcenter.v1.ArtifactLocation.Builder builderForValue) { + if (artifactLocationBuilder_ == null) { + artifactLocation_ = builderForValue.build(); + } else { + artifactLocationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Specifies the destination for the generated IaC, which can be
+     * Cloud Storage or a Developer Connect repository.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeArtifactLocation(com.google.cloud.designcenter.v1.ArtifactLocation value) { + if (artifactLocationBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && artifactLocation_ != null + && artifactLocation_ + != com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance()) { + getArtifactLocationBuilder().mergeFrom(value); + } else { + artifactLocation_ = value; + } + } else { + artifactLocationBuilder_.mergeFrom(value); + } + if (artifactLocation_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Specifies the destination for the generated IaC, which can be
+     * Cloud Storage or a Developer Connect repository.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearArtifactLocation() { + bitField0_ = (bitField0_ & ~0x00000008); + artifactLocation_ = null; + if (artifactLocationBuilder_ != null) { + artifactLocationBuilder_.dispose(); + artifactLocationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Specifies the destination for the generated IaC, which can be
+     * Cloud Storage or a Developer Connect repository.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ArtifactLocation.Builder getArtifactLocationBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetArtifactLocationFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Specifies the destination for the generated IaC, which can be
+     * Cloud Storage or a Developer Connect repository.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder + getArtifactLocationOrBuilder() { + if (artifactLocationBuilder_ != null) { + return artifactLocationBuilder_.getMessageOrBuilder(); + } else { + return artifactLocation_ == null + ? com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance() + : artifactLocation_; + } + } + + /** + * + * + *
+     * Optional. Specifies the destination for the generated IaC, which can be
+     * Cloud Storage or a Developer Connect repository.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ArtifactLocation, + com.google.cloud.designcenter.v1.ArtifactLocation.Builder, + com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder> + internalGetArtifactLocationFieldBuilder() { + if (artifactLocationBuilder_ == null) { + artifactLocationBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ArtifactLocation, + com.google.cloud.designcenter.v1.ArtifactLocation.Builder, + com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder>( + getArtifactLocation(), getParentForChildren(), isClean()); + artifactLocation_ = null; + } + return artifactLocationBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.GenerateApplicationIaCRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.GenerateApplicationIaCRequest) + private static final com.google.cloud.designcenter.v1.GenerateApplicationIaCRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.GenerateApplicationIaCRequest(); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationIaCRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateApplicationIaCRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.GenerateApplicationIaCRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationIaCRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationIaCRequestOrBuilder.java new file mode 100644 index 000000000000..f5502532f6cc --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationIaCRequestOrBuilder.java @@ -0,0 +1,168 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface GenerateApplicationIaCRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.GenerateApplicationIaCRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the application.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The name of the application.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. The IaC format to generate.
+   * 
+ * + * + * .google.cloud.designcenter.v1.IACFormat iac_format = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for iacFormat. + */ + int getIacFormatValue(); + + /** + * + * + *
+   * Optional. The IaC format to generate.
+   * 
+ * + * + * .google.cloud.designcenter.v1.IACFormat iac_format = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The iacFormat. + */ + com.google.cloud.designcenter.v1.IACFormat getIacFormat(); + + /** + * + * + *
+   * Optional. DEPRECATED: Use the 'artifact_location' field instead.
+   * The Cloud Storage URI to write the generated IaC to.
+   * 
+ * + * string gcs_uri = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * @deprecated google.cloud.designcenter.v1.GenerateApplicationIaCRequest.gcs_uri is deprecated. + * See google/cloud/designcenter/v1/deployment_messages.proto;l=262 + * @return The gcsUri. + */ + @java.lang.Deprecated + java.lang.String getGcsUri(); + + /** + * + * + *
+   * Optional. DEPRECATED: Use the 'artifact_location' field instead.
+   * The Cloud Storage URI to write the generated IaC to.
+   * 
+ * + * string gcs_uri = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * @deprecated google.cloud.designcenter.v1.GenerateApplicationIaCRequest.gcs_uri is deprecated. + * See google/cloud/designcenter/v1/deployment_messages.proto;l=262 + * @return The bytes for gcsUri. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getGcsUriBytes(); + + /** + * + * + *
+   * Optional. Specifies the destination for the generated IaC, which can be
+   * Cloud Storage or a Developer Connect repository.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the artifactLocation field is set. + */ + boolean hasArtifactLocation(); + + /** + * + * + *
+   * Optional. Specifies the destination for the generated IaC, which can be
+   * Cloud Storage or a Developer Connect repository.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The artifactLocation. + */ + com.google.cloud.designcenter.v1.ArtifactLocation getArtifactLocation(); + + /** + * + * + *
+   * Optional. Specifies the destination for the generated IaC, which can be
+   * Cloud Storage or a Developer Connect repository.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder getArtifactLocationOrBuilder(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationIaCResponse.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationIaCResponse.java new file mode 100644 index 000000000000..aafdd878afe4 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationIaCResponse.java @@ -0,0 +1,1219 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Response message for GenerateApplicationIaC method.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.GenerateApplicationIaCResponse} + */ +@com.google.protobuf.Generated +public final class GenerateApplicationIaCResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.GenerateApplicationIaCResponse) + GenerateApplicationIaCResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "GenerateApplicationIaCResponse"); + } + + // Use GenerateApplicationIaCResponse.newBuilder() to construct. + private GenerateApplicationIaCResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GenerateApplicationIaCResponse() { + gcsUri_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GenerateApplicationIaCResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GenerateApplicationIaCResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.GenerateApplicationIaCResponse.class, + com.google.cloud.designcenter.v1.GenerateApplicationIaCResponse.Builder.class); + } + + private int bitField0_; + public static final int GCS_URI_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object gcsUri_ = ""; + + /** + * + * + *
+   * DEPRECATED: Use the 'artifact_location' field instead.
+   * The Cloud Storage URI of the generated IaC.
+   * 
+ * + * string gcs_uri = 1 [deprecated = true]; + * + * @deprecated google.cloud.designcenter.v1.GenerateApplicationIaCResponse.gcs_uri is deprecated. + * See google/cloud/designcenter/v1/deployment_messages.proto;l=275 + * @return The gcsUri. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getGcsUri() { + java.lang.Object ref = gcsUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gcsUri_ = s; + return s; + } + } + + /** + * + * + *
+   * DEPRECATED: Use the 'artifact_location' field instead.
+   * The Cloud Storage URI of the generated IaC.
+   * 
+ * + * string gcs_uri = 1 [deprecated = true]; + * + * @deprecated google.cloud.designcenter.v1.GenerateApplicationIaCResponse.gcs_uri is deprecated. + * See google/cloud/designcenter/v1/deployment_messages.proto;l=275 + * @return The bytes for gcsUri. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getGcsUriBytes() { + java.lang.Object ref = gcsUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gcsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ARTIFACT_LOCATION_FIELD_NUMBER = 2; + private com.google.cloud.designcenter.v1.ArtifactLocation artifactLocation_; + + /** + * + * + *
+   * The destination where the generated IaC was written.
+   * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 2; + * + * @return Whether the artifactLocation field is set. + */ + @java.lang.Override + public boolean hasArtifactLocation() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * The destination where the generated IaC was written.
+   * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 2; + * + * @return The artifactLocation. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ArtifactLocation getArtifactLocation() { + return artifactLocation_ == null + ? com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance() + : artifactLocation_; + } + + /** + * + * + *
+   * The destination where the generated IaC was written.
+   * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 2; + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder getArtifactLocationOrBuilder() { + return artifactLocation_ == null + ? com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance() + : artifactLocation_; + } + + public static final int ROOT_MODULES_METADATA_FIELD_NUMBER = 3; + private com.google.cloud.designcenter.v1.RootModulesMetadata rootModulesMetadata_; + + /** + * + * + *
+   * Root modules metadata of the application.
+   * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 3; + * + * @return Whether the rootModulesMetadata field is set. + */ + @java.lang.Override + public boolean hasRootModulesMetadata() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Root modules metadata of the application.
+   * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 3; + * + * @return The rootModulesMetadata. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.RootModulesMetadata getRootModulesMetadata() { + return rootModulesMetadata_ == null + ? com.google.cloud.designcenter.v1.RootModulesMetadata.getDefaultInstance() + : rootModulesMetadata_; + } + + /** + * + * + *
+   * Root modules metadata of the application.
+   * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 3; + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.RootModulesMetadataOrBuilder + getRootModulesMetadataOrBuilder() { + return rootModulesMetadata_ == null + ? com.google.cloud.designcenter.v1.RootModulesMetadata.getDefaultInstance() + : rootModulesMetadata_; + } + + 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.GeneratedMessage.isStringEmpty(gcsUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, gcsUri_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getArtifactLocation()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getRootModulesMetadata()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gcsUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, gcsUri_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getArtifactLocation()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getRootModulesMetadata()); + } + 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.designcenter.v1.GenerateApplicationIaCResponse)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.GenerateApplicationIaCResponse other = + (com.google.cloud.designcenter.v1.GenerateApplicationIaCResponse) obj; + + if (!getGcsUri().equals(other.getGcsUri())) return false; + if (hasArtifactLocation() != other.hasArtifactLocation()) return false; + if (hasArtifactLocation()) { + if (!getArtifactLocation().equals(other.getArtifactLocation())) return false; + } + if (hasRootModulesMetadata() != other.hasRootModulesMetadata()) return false; + if (hasRootModulesMetadata()) { + if (!getRootModulesMetadata().equals(other.getRootModulesMetadata())) 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) + GCS_URI_FIELD_NUMBER; + hash = (53 * hash) + getGcsUri().hashCode(); + if (hasArtifactLocation()) { + hash = (37 * hash) + ARTIFACT_LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getArtifactLocation().hashCode(); + } + if (hasRootModulesMetadata()) { + hash = (37 * hash) + ROOT_MODULES_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getRootModulesMetadata().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationIaCResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationIaCResponse 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.designcenter.v1.GenerateApplicationIaCResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationIaCResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationIaCResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationIaCResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationIaCResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationIaCResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationIaCResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationIaCResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationIaCResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationIaCResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.GenerateApplicationIaCResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response message for GenerateApplicationIaC method.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.GenerateApplicationIaCResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.GenerateApplicationIaCResponse) + com.google.cloud.designcenter.v1.GenerateApplicationIaCResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GenerateApplicationIaCResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GenerateApplicationIaCResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.GenerateApplicationIaCResponse.class, + com.google.cloud.designcenter.v1.GenerateApplicationIaCResponse.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.GenerateApplicationIaCResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetArtifactLocationFieldBuilder(); + internalGetRootModulesMetadataFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + gcsUri_ = ""; + artifactLocation_ = null; + if (artifactLocationBuilder_ != null) { + artifactLocationBuilder_.dispose(); + artifactLocationBuilder_ = null; + } + rootModulesMetadata_ = null; + if (rootModulesMetadataBuilder_ != null) { + rootModulesMetadataBuilder_.dispose(); + rootModulesMetadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GenerateApplicationIaCResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GenerateApplicationIaCResponse + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.GenerateApplicationIaCResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GenerateApplicationIaCResponse build() { + com.google.cloud.designcenter.v1.GenerateApplicationIaCResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GenerateApplicationIaCResponse buildPartial() { + com.google.cloud.designcenter.v1.GenerateApplicationIaCResponse result = + new com.google.cloud.designcenter.v1.GenerateApplicationIaCResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.GenerateApplicationIaCResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.gcsUri_ = gcsUri_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.artifactLocation_ = + artifactLocationBuilder_ == null ? artifactLocation_ : artifactLocationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.rootModulesMetadata_ = + rootModulesMetadataBuilder_ == null + ? rootModulesMetadata_ + : rootModulesMetadataBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.GenerateApplicationIaCResponse) { + return mergeFrom((com.google.cloud.designcenter.v1.GenerateApplicationIaCResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.designcenter.v1.GenerateApplicationIaCResponse other) { + if (other + == com.google.cloud.designcenter.v1.GenerateApplicationIaCResponse.getDefaultInstance()) + return this; + if (!other.getGcsUri().isEmpty()) { + gcsUri_ = other.gcsUri_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasArtifactLocation()) { + mergeArtifactLocation(other.getArtifactLocation()); + } + if (other.hasRootModulesMetadata()) { + mergeRootModulesMetadata(other.getRootModulesMetadata()); + } + 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: + { + gcsUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetArtifactLocationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetRootModulesMetadataFieldBuilder().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 gcsUri_ = ""; + + /** + * + * + *
+     * DEPRECATED: Use the 'artifact_location' field instead.
+     * The Cloud Storage URI of the generated IaC.
+     * 
+ * + * string gcs_uri = 1 [deprecated = true]; + * + * @deprecated google.cloud.designcenter.v1.GenerateApplicationIaCResponse.gcs_uri is + * deprecated. See google/cloud/designcenter/v1/deployment_messages.proto;l=275 + * @return The gcsUri. + */ + @java.lang.Deprecated + public java.lang.String getGcsUri() { + java.lang.Object ref = gcsUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gcsUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * DEPRECATED: Use the 'artifact_location' field instead.
+     * The Cloud Storage URI of the generated IaC.
+     * 
+ * + * string gcs_uri = 1 [deprecated = true]; + * + * @deprecated google.cloud.designcenter.v1.GenerateApplicationIaCResponse.gcs_uri is + * deprecated. See google/cloud/designcenter/v1/deployment_messages.proto;l=275 + * @return The bytes for gcsUri. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getGcsUriBytes() { + java.lang.Object ref = gcsUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gcsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * DEPRECATED: Use the 'artifact_location' field instead.
+     * The Cloud Storage URI of the generated IaC.
+     * 
+ * + * string gcs_uri = 1 [deprecated = true]; + * + * @deprecated google.cloud.designcenter.v1.GenerateApplicationIaCResponse.gcs_uri is + * deprecated. See google/cloud/designcenter/v1/deployment_messages.proto;l=275 + * @param value The gcsUri to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setGcsUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + gcsUri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * DEPRECATED: Use the 'artifact_location' field instead.
+     * The Cloud Storage URI of the generated IaC.
+     * 
+ * + * string gcs_uri = 1 [deprecated = true]; + * + * @deprecated google.cloud.designcenter.v1.GenerateApplicationIaCResponse.gcs_uri is + * deprecated. See google/cloud/designcenter/v1/deployment_messages.proto;l=275 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearGcsUri() { + gcsUri_ = getDefaultInstance().getGcsUri(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * DEPRECATED: Use the 'artifact_location' field instead.
+     * The Cloud Storage URI of the generated IaC.
+     * 
+ * + * string gcs_uri = 1 [deprecated = true]; + * + * @deprecated google.cloud.designcenter.v1.GenerateApplicationIaCResponse.gcs_uri is + * deprecated. See google/cloud/designcenter/v1/deployment_messages.proto;l=275 + * @param value The bytes for gcsUri to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setGcsUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gcsUri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.designcenter.v1.ArtifactLocation artifactLocation_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ArtifactLocation, + com.google.cloud.designcenter.v1.ArtifactLocation.Builder, + com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder> + artifactLocationBuilder_; + + /** + * + * + *
+     * The destination where the generated IaC was written.
+     * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 2; + * + * @return Whether the artifactLocation field is set. + */ + public boolean hasArtifactLocation() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * The destination where the generated IaC was written.
+     * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 2; + * + * @return The artifactLocation. + */ + public com.google.cloud.designcenter.v1.ArtifactLocation getArtifactLocation() { + if (artifactLocationBuilder_ == null) { + return artifactLocation_ == null + ? com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance() + : artifactLocation_; + } else { + return artifactLocationBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * The destination where the generated IaC was written.
+     * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 2; + */ + public Builder setArtifactLocation(com.google.cloud.designcenter.v1.ArtifactLocation value) { + if (artifactLocationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + artifactLocation_ = value; + } else { + artifactLocationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * The destination where the generated IaC was written.
+     * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 2; + */ + public Builder setArtifactLocation( + com.google.cloud.designcenter.v1.ArtifactLocation.Builder builderForValue) { + if (artifactLocationBuilder_ == null) { + artifactLocation_ = builderForValue.build(); + } else { + artifactLocationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * The destination where the generated IaC was written.
+     * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 2; + */ + public Builder mergeArtifactLocation(com.google.cloud.designcenter.v1.ArtifactLocation value) { + if (artifactLocationBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && artifactLocation_ != null + && artifactLocation_ + != com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance()) { + getArtifactLocationBuilder().mergeFrom(value); + } else { + artifactLocation_ = value; + } + } else { + artifactLocationBuilder_.mergeFrom(value); + } + if (artifactLocation_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The destination where the generated IaC was written.
+     * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 2; + */ + public Builder clearArtifactLocation() { + bitField0_ = (bitField0_ & ~0x00000002); + artifactLocation_ = null; + if (artifactLocationBuilder_ != null) { + artifactLocationBuilder_.dispose(); + artifactLocationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * The destination where the generated IaC was written.
+     * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 2; + */ + public com.google.cloud.designcenter.v1.ArtifactLocation.Builder getArtifactLocationBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetArtifactLocationFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * The destination where the generated IaC was written.
+     * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 2; + */ + public com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder + getArtifactLocationOrBuilder() { + if (artifactLocationBuilder_ != null) { + return artifactLocationBuilder_.getMessageOrBuilder(); + } else { + return artifactLocation_ == null + ? com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance() + : artifactLocation_; + } + } + + /** + * + * + *
+     * The destination where the generated IaC was written.
+     * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ArtifactLocation, + com.google.cloud.designcenter.v1.ArtifactLocation.Builder, + com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder> + internalGetArtifactLocationFieldBuilder() { + if (artifactLocationBuilder_ == null) { + artifactLocationBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ArtifactLocation, + com.google.cloud.designcenter.v1.ArtifactLocation.Builder, + com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder>( + getArtifactLocation(), getParentForChildren(), isClean()); + artifactLocation_ = null; + } + return artifactLocationBuilder_; + } + + private com.google.cloud.designcenter.v1.RootModulesMetadata rootModulesMetadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.RootModulesMetadata, + com.google.cloud.designcenter.v1.RootModulesMetadata.Builder, + com.google.cloud.designcenter.v1.RootModulesMetadataOrBuilder> + rootModulesMetadataBuilder_; + + /** + * + * + *
+     * Root modules metadata of the application.
+     * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 3; + * + * @return Whether the rootModulesMetadata field is set. + */ + public boolean hasRootModulesMetadata() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Root modules metadata of the application.
+     * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 3; + * + * @return The rootModulesMetadata. + */ + public com.google.cloud.designcenter.v1.RootModulesMetadata getRootModulesMetadata() { + if (rootModulesMetadataBuilder_ == null) { + return rootModulesMetadata_ == null + ? com.google.cloud.designcenter.v1.RootModulesMetadata.getDefaultInstance() + : rootModulesMetadata_; + } else { + return rootModulesMetadataBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Root modules metadata of the application.
+     * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 3; + */ + public Builder setRootModulesMetadata( + com.google.cloud.designcenter.v1.RootModulesMetadata value) { + if (rootModulesMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rootModulesMetadata_ = value; + } else { + rootModulesMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Root modules metadata of the application.
+     * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 3; + */ + public Builder setRootModulesMetadata( + com.google.cloud.designcenter.v1.RootModulesMetadata.Builder builderForValue) { + if (rootModulesMetadataBuilder_ == null) { + rootModulesMetadata_ = builderForValue.build(); + } else { + rootModulesMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Root modules metadata of the application.
+     * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 3; + */ + public Builder mergeRootModulesMetadata( + com.google.cloud.designcenter.v1.RootModulesMetadata value) { + if (rootModulesMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && rootModulesMetadata_ != null + && rootModulesMetadata_ + != com.google.cloud.designcenter.v1.RootModulesMetadata.getDefaultInstance()) { + getRootModulesMetadataBuilder().mergeFrom(value); + } else { + rootModulesMetadata_ = value; + } + } else { + rootModulesMetadataBuilder_.mergeFrom(value); + } + if (rootModulesMetadata_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Root modules metadata of the application.
+     * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 3; + */ + public Builder clearRootModulesMetadata() { + bitField0_ = (bitField0_ & ~0x00000004); + rootModulesMetadata_ = null; + if (rootModulesMetadataBuilder_ != null) { + rootModulesMetadataBuilder_.dispose(); + rootModulesMetadataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Root modules metadata of the application.
+     * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 3; + */ + public com.google.cloud.designcenter.v1.RootModulesMetadata.Builder + getRootModulesMetadataBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetRootModulesMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Root modules metadata of the application.
+     * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 3; + */ + public com.google.cloud.designcenter.v1.RootModulesMetadataOrBuilder + getRootModulesMetadataOrBuilder() { + if (rootModulesMetadataBuilder_ != null) { + return rootModulesMetadataBuilder_.getMessageOrBuilder(); + } else { + return rootModulesMetadata_ == null + ? com.google.cloud.designcenter.v1.RootModulesMetadata.getDefaultInstance() + : rootModulesMetadata_; + } + } + + /** + * + * + *
+     * Root modules metadata of the application.
+     * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 3; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.RootModulesMetadata, + com.google.cloud.designcenter.v1.RootModulesMetadata.Builder, + com.google.cloud.designcenter.v1.RootModulesMetadataOrBuilder> + internalGetRootModulesMetadataFieldBuilder() { + if (rootModulesMetadataBuilder_ == null) { + rootModulesMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.RootModulesMetadata, + com.google.cloud.designcenter.v1.RootModulesMetadata.Builder, + com.google.cloud.designcenter.v1.RootModulesMetadataOrBuilder>( + getRootModulesMetadata(), getParentForChildren(), isClean()); + rootModulesMetadata_ = null; + } + return rootModulesMetadataBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.GenerateApplicationIaCResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.GenerateApplicationIaCResponse) + private static final com.google.cloud.designcenter.v1.GenerateApplicationIaCResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.GenerateApplicationIaCResponse(); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationIaCResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateApplicationIaCResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.GenerateApplicationIaCResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationIaCResponseOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationIaCResponseOrBuilder.java new file mode 100644 index 000000000000..0bb295b3ae71 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationIaCResponseOrBuilder.java @@ -0,0 +1,136 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface GenerateApplicationIaCResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.GenerateApplicationIaCResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * DEPRECATED: Use the 'artifact_location' field instead.
+   * The Cloud Storage URI of the generated IaC.
+   * 
+ * + * string gcs_uri = 1 [deprecated = true]; + * + * @deprecated google.cloud.designcenter.v1.GenerateApplicationIaCResponse.gcs_uri is deprecated. + * See google/cloud/designcenter/v1/deployment_messages.proto;l=275 + * @return The gcsUri. + */ + @java.lang.Deprecated + java.lang.String getGcsUri(); + + /** + * + * + *
+   * DEPRECATED: Use the 'artifact_location' field instead.
+   * The Cloud Storage URI of the generated IaC.
+   * 
+ * + * string gcs_uri = 1 [deprecated = true]; + * + * @deprecated google.cloud.designcenter.v1.GenerateApplicationIaCResponse.gcs_uri is deprecated. + * See google/cloud/designcenter/v1/deployment_messages.proto;l=275 + * @return The bytes for gcsUri. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getGcsUriBytes(); + + /** + * + * + *
+   * The destination where the generated IaC was written.
+   * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 2; + * + * @return Whether the artifactLocation field is set. + */ + boolean hasArtifactLocation(); + + /** + * + * + *
+   * The destination where the generated IaC was written.
+   * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 2; + * + * @return The artifactLocation. + */ + com.google.cloud.designcenter.v1.ArtifactLocation getArtifactLocation(); + + /** + * + * + *
+   * The destination where the generated IaC was written.
+   * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 2; + */ + com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder getArtifactLocationOrBuilder(); + + /** + * + * + *
+   * Root modules metadata of the application.
+   * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 3; + * + * @return Whether the rootModulesMetadata field is set. + */ + boolean hasRootModulesMetadata(); + + /** + * + * + *
+   * Root modules metadata of the application.
+   * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 3; + * + * @return The rootModulesMetadata. + */ + com.google.cloud.designcenter.v1.RootModulesMetadata getRootModulesMetadata(); + + /** + * + * + *
+   * Root modules metadata of the application.
+   * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 3; + */ + com.google.cloud.designcenter.v1.RootModulesMetadataOrBuilder getRootModulesMetadataOrBuilder(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationTemplateAssessmentReportRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationTemplateAssessmentReportRequest.java new file mode 100644 index 000000000000..3dda86bce7a7 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationTemplateAssessmentReportRequest.java @@ -0,0 +1,939 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/best_practices_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for generate assessment report application template.
+ * 
+ * + * Protobuf type {@code + * google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportRequest} + */ +@com.google.protobuf.Generated +public final class GenerateApplicationTemplateAssessmentReportRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportRequest) + GenerateApplicationTemplateAssessmentReportRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "GenerateApplicationTemplateAssessmentReportRequest"); + } + + // Use GenerateApplicationTemplateAssessmentReportRequest.newBuilder() to construct. + private GenerateApplicationTemplateAssessmentReportRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GenerateApplicationTemplateAssessmentReportRequest() { + name_ = ""; + serviceAccount_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GenerateApplicationTemplateAssessmentReportRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GenerateApplicationTemplateAssessmentReportRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportRequest + .class, + com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportRequest + .Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The application template name in the following format:
+   * `projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate`
+   * 
+ * + * + * 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 application template name in the following format:
+   * `projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate`
+   * 
+ * + * + * 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 SERVICE_ACCOUNT_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object serviceAccount_ = ""; + + /** + * + * + *
+   * Optional. Deprecated: This field is no longer used since we moved to fast
+   * plan assessment.
+   *
+   * - This service account will be used to execute the preview
+   * process.
+   * - The caller must have the 'iam.serviceAccounts.actAs' permission on this
+   * service account.
+   * Format: projects/{PROJECT}/serviceAccounts/{EMAIL_ADDRESS}
+   * 
+ * + * string service_account = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportRequest.service_account + * is deprecated. See google/cloud/designcenter/v1/best_practices_messages.proto;l=89 + * @return The serviceAccount. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getServiceAccount() { + java.lang.Object ref = serviceAccount_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccount_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Deprecated: This field is no longer used since we moved to fast
+   * plan assessment.
+   *
+   * - This service account will be used to execute the preview
+   * process.
+   * - The caller must have the 'iam.serviceAccounts.actAs' permission on this
+   * service account.
+   * Format: projects/{PROJECT}/serviceAccounts/{EMAIL_ADDRESS}
+   * 
+ * + * string service_account = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportRequest.service_account + * is deprecated. See google/cloud/designcenter/v1/best_practices_messages.proto;l=89 + * @return The bytes for serviceAccount. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getServiceAccountBytes() { + java.lang.Object ref = serviceAccount_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAccount_ = 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(serviceAccount_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, serviceAccount_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(serviceAccount_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, serviceAccount_); + } + 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.designcenter.v1.GenerateApplicationTemplateAssessmentReportRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportRequest other = + (com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getServiceAccount().equals(other.getServiceAccount())) 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) + SERVICE_ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getServiceAccount().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportRequest + 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.designcenter.v1.GenerateApplicationTemplateAssessmentReportRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.GenerateApplicationTemplateAssessmentReportRequest + 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for generate assessment report application template.
+   * 
+ * + * Protobuf type {@code + * google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportRequest) + com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GenerateApplicationTemplateAssessmentReportRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GenerateApplicationTemplateAssessmentReportRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportRequest + .class, + com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportRequest + .Builder.class); + } + + // Construct using + // com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + serviceAccount_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GenerateApplicationTemplateAssessmentReportRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportRequest + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportRequest + build() { + com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportRequest + buildPartial() { + com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportRequest result = + new com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportRequest( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportRequest + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.serviceAccount_ = serviceAccount_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportRequest) { + return mergeFrom( + (com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportRequest) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportRequest other) { + if (other + == com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getServiceAccount().isEmpty()) { + serviceAccount_ = other.serviceAccount_; + 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: + { + serviceAccount_ = 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. The application template name in the following format:
+     * `projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate`
+     * 
+ * + * + * 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 application template name in the following format:
+     * `projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate`
+     * 
+ * + * + * 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 application template name in the following format:
+     * `projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate`
+     * 
+ * + * + * 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 application template name in the following format:
+     * `projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate`
+     * 
+ * + * + * 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 application template name in the following format:
+     * `projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate`
+     * 
+ * + * + * 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 serviceAccount_ = ""; + + /** + * + * + *
+     * Optional. Deprecated: This field is no longer used since we moved to fast
+     * plan assessment.
+     *
+     * - This service account will be used to execute the preview
+     * process.
+     * - The caller must have the 'iam.serviceAccounts.actAs' permission on this
+     * service account.
+     * Format: projects/{PROJECT}/serviceAccounts/{EMAIL_ADDRESS}
+     * 
+ * + * + * string service_account = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportRequest.service_account + * is deprecated. See google/cloud/designcenter/v1/best_practices_messages.proto;l=89 + * @return The serviceAccount. + */ + @java.lang.Deprecated + public java.lang.String getServiceAccount() { + java.lang.Object ref = serviceAccount_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccount_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Deprecated: This field is no longer used since we moved to fast
+     * plan assessment.
+     *
+     * - This service account will be used to execute the preview
+     * process.
+     * - The caller must have the 'iam.serviceAccounts.actAs' permission on this
+     * service account.
+     * Format: projects/{PROJECT}/serviceAccounts/{EMAIL_ADDRESS}
+     * 
+ * + * + * string service_account = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportRequest.service_account + * is deprecated. See google/cloud/designcenter/v1/best_practices_messages.proto;l=89 + * @return The bytes for serviceAccount. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getServiceAccountBytes() { + java.lang.Object ref = serviceAccount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Deprecated: This field is no longer used since we moved to fast
+     * plan assessment.
+     *
+     * - This service account will be used to execute the preview
+     * process.
+     * - The caller must have the 'iam.serviceAccounts.actAs' permission on this
+     * service account.
+     * Format: projects/{PROJECT}/serviceAccounts/{EMAIL_ADDRESS}
+     * 
+ * + * + * string service_account = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportRequest.service_account + * is deprecated. See google/cloud/designcenter/v1/best_practices_messages.proto;l=89 + * @param value The serviceAccount to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setServiceAccount(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + serviceAccount_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Deprecated: This field is no longer used since we moved to fast
+     * plan assessment.
+     *
+     * - This service account will be used to execute the preview
+     * process.
+     * - The caller must have the 'iam.serviceAccounts.actAs' permission on this
+     * service account.
+     * Format: projects/{PROJECT}/serviceAccounts/{EMAIL_ADDRESS}
+     * 
+ * + * + * string service_account = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportRequest.service_account + * is deprecated. See google/cloud/designcenter/v1/best_practices_messages.proto;l=89 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearServiceAccount() { + serviceAccount_ = getDefaultInstance().getServiceAccount(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Deprecated: This field is no longer used since we moved to fast
+     * plan assessment.
+     *
+     * - This service account will be used to execute the preview
+     * process.
+     * - The caller must have the 'iam.serviceAccounts.actAs' permission on this
+     * service account.
+     * Format: projects/{PROJECT}/serviceAccounts/{EMAIL_ADDRESS}
+     * 
+ * + * + * string service_account = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportRequest.service_account + * is deprecated. See google/cloud/designcenter/v1/best_practices_messages.proto;l=89 + * @param value The bytes for serviceAccount to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceAccount_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportRequest) + private static final com.google.cloud.designcenter.v1 + .GenerateApplicationTemplateAssessmentReportRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportRequest(); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser< + GenerateApplicationTemplateAssessmentReportRequest> + PARSER = + new com.google.protobuf.AbstractParser< + GenerateApplicationTemplateAssessmentReportRequest>() { + @java.lang.Override + public GenerateApplicationTemplateAssessmentReportRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.GenerateApplicationTemplateAssessmentReportRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationTemplateAssessmentReportRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationTemplateAssessmentReportRequestOrBuilder.java new file mode 100644 index 000000000000..f94e6e08e2f2 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationTemplateAssessmentReportRequestOrBuilder.java @@ -0,0 +1,110 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/best_practices_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface GenerateApplicationTemplateAssessmentReportRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The application template name in the following format:
+   * `projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The application template name in the following format:
+   * `projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. Deprecated: This field is no longer used since we moved to fast
+   * plan assessment.
+   *
+   * - This service account will be used to execute the preview
+   * process.
+   * - The caller must have the 'iam.serviceAccounts.actAs' permission on this
+   * service account.
+   * Format: projects/{PROJECT}/serviceAccounts/{EMAIL_ADDRESS}
+   * 
+ * + * string service_account = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportRequest.service_account + * is deprecated. See google/cloud/designcenter/v1/best_practices_messages.proto;l=89 + * @return The serviceAccount. + */ + @java.lang.Deprecated + java.lang.String getServiceAccount(); + + /** + * + * + *
+   * Optional. Deprecated: This field is no longer used since we moved to fast
+   * plan assessment.
+   *
+   * - This service account will be used to execute the preview
+   * process.
+   * - The caller must have the 'iam.serviceAccounts.actAs' permission on this
+   * service account.
+   * Format: projects/{PROJECT}/serviceAccounts/{EMAIL_ADDRESS}
+   * 
+ * + * string service_account = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportRequest.service_account + * is deprecated. See google/cloud/designcenter/v1/best_practices_messages.proto;l=89 + * @return The bytes for serviceAccount. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getServiceAccountBytes(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationTemplateAssessmentReportResponse.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationTemplateAssessmentReportResponse.java new file mode 100644 index 000000000000..195ff21246de --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationTemplateAssessmentReportResponse.java @@ -0,0 +1,1071 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/best_practices_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Response for GenerateAssessmentReport for application template.
+ * 
+ * + * Protobuf type {@code + * google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportResponse} + */ +@com.google.protobuf.Generated +public final class GenerateApplicationTemplateAssessmentReportResponse + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportResponse) + GenerateApplicationTemplateAssessmentReportResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "GenerateApplicationTemplateAssessmentReportResponse"); + } + + // Use GenerateApplicationTemplateAssessmentReportResponse.newBuilder() to construct. + private GenerateApplicationTemplateAssessmentReportResponse( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GenerateApplicationTemplateAssessmentReportResponse() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GenerateApplicationTemplateAssessmentReportResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GenerateApplicationTemplateAssessmentReportResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportResponse + .class, + com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportResponse + .Builder.class); + } + + private int bitField0_; + public static final int PREVIEW_FIELD_NUMBER = 1; + private com.google.cloud.config.v1.Preview preview_; + + /** + * + * + *
+   * Deprecated: This field is no longer used since we moved to fast plan
+   * assessment.
+   * Infrastructure Manager preview.
+   * 
+ * + * .google.cloud.config.v1.Preview preview = 1 [deprecated = true]; + * + * @deprecated + * google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportResponse.preview is + * deprecated. See google/cloud/designcenter/v1/best_practices_messages.proto;l=98 + * @return Whether the preview field is set. + */ + @java.lang.Override + @java.lang.Deprecated + public boolean hasPreview() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Deprecated: This field is no longer used since we moved to fast plan
+   * assessment.
+   * Infrastructure Manager preview.
+   * 
+ * + * .google.cloud.config.v1.Preview preview = 1 [deprecated = true]; + * + * @deprecated + * google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportResponse.preview is + * deprecated. See google/cloud/designcenter/v1/best_practices_messages.proto;l=98 + * @return The preview. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.config.v1.Preview getPreview() { + return preview_ == null ? com.google.cloud.config.v1.Preview.getDefaultInstance() : preview_; + } + + /** + * + * + *
+   * Deprecated: This field is no longer used since we moved to fast plan
+   * assessment.
+   * Infrastructure Manager preview.
+   * 
+ * + * .google.cloud.config.v1.Preview preview = 1 [deprecated = true]; + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.config.v1.PreviewOrBuilder getPreviewOrBuilder() { + return preview_ == null ? com.google.cloud.config.v1.Preview.getDefaultInstance() : preview_; + } + + public static final int ASSESSMENT_REPORT_FIELD_NUMBER = 2; + private com.google.cloud.designcenter.v1.AssessmentReport assessmentReport_; + + /** + * + * + *
+   * Best practices by Design Assessment report
+   * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 2; + * + * @return Whether the assessmentReport field is set. + */ + @java.lang.Override + public boolean hasAssessmentReport() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Best practices by Design Assessment report
+   * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 2; + * + * @return The assessmentReport. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.AssessmentReport getAssessmentReport() { + return assessmentReport_ == null + ? com.google.cloud.designcenter.v1.AssessmentReport.getDefaultInstance() + : assessmentReport_; + } + + /** + * + * + *
+   * Best practices by Design Assessment report
+   * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 2; + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.AssessmentReportOrBuilder getAssessmentReportOrBuilder() { + return assessmentReport_ == null + ? com.google.cloud.designcenter.v1.AssessmentReport.getDefaultInstance() + : assessmentReport_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getPreview()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getAssessmentReport()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPreview()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAssessmentReport()); + } + 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.designcenter.v1.GenerateApplicationTemplateAssessmentReportResponse)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportResponse other = + (com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportResponse) obj; + + if (hasPreview() != other.hasPreview()) return false; + if (hasPreview()) { + if (!getPreview().equals(other.getPreview())) return false; + } + if (hasAssessmentReport() != other.hasAssessmentReport()) return false; + if (hasAssessmentReport()) { + if (!getAssessmentReport().equals(other.getAssessmentReport())) 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 (hasPreview()) { + hash = (37 * hash) + PREVIEW_FIELD_NUMBER; + hash = (53 * hash) + getPreview().hashCode(); + } + if (hasAssessmentReport()) { + hash = (37 * hash) + ASSESSMENT_REPORT_FIELD_NUMBER; + hash = (53 * hash) + getAssessmentReport().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportResponse + 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.designcenter.v1.GenerateApplicationTemplateAssessmentReportResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportResponse + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportResponse + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportResponse + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.GenerateApplicationTemplateAssessmentReportResponse + 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response for GenerateAssessmentReport for application template.
+   * 
+ * + * Protobuf type {@code + * google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportResponse) + com.google.cloud.designcenter.v1 + .GenerateApplicationTemplateAssessmentReportResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GenerateApplicationTemplateAssessmentReportResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GenerateApplicationTemplateAssessmentReportResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportResponse + .class, + com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportResponse + .Builder.class); + } + + // Construct using + // com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetPreviewFieldBuilder(); + internalGetAssessmentReportFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + preview_ = null; + if (previewBuilder_ != null) { + previewBuilder_.dispose(); + previewBuilder_ = null; + } + assessmentReport_ = null; + if (assessmentReportBuilder_ != null) { + assessmentReportBuilder_.dispose(); + assessmentReportBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GenerateApplicationTemplateAssessmentReportResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportResponse + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportResponse + build() { + com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportResponse + buildPartial() { + com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportResponse result = + new com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportResponse( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportResponse + result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.preview_ = previewBuilder_ == null ? preview_ : previewBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.assessmentReport_ = + assessmentReportBuilder_ == null ? assessmentReport_ : assessmentReportBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportResponse) { + return mergeFrom( + (com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportResponse) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportResponse + other) { + if (other + == com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportResponse + .getDefaultInstance()) return this; + if (other.hasPreview()) { + mergePreview(other.getPreview()); + } + if (other.hasAssessmentReport()) { + mergeAssessmentReport(other.getAssessmentReport()); + } + 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(internalGetPreviewFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetAssessmentReportFieldBuilder().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.config.v1.Preview preview_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.config.v1.Preview, + com.google.cloud.config.v1.Preview.Builder, + com.google.cloud.config.v1.PreviewOrBuilder> + previewBuilder_; + + /** + * + * + *
+     * Deprecated: This field is no longer used since we moved to fast plan
+     * assessment.
+     * Infrastructure Manager preview.
+     * 
+ * + * .google.cloud.config.v1.Preview preview = 1 [deprecated = true]; + * + * @deprecated + * google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportResponse.preview + * is deprecated. See google/cloud/designcenter/v1/best_practices_messages.proto;l=98 + * @return Whether the preview field is set. + */ + @java.lang.Deprecated + public boolean hasPreview() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Deprecated: This field is no longer used since we moved to fast plan
+     * assessment.
+     * Infrastructure Manager preview.
+     * 
+ * + * .google.cloud.config.v1.Preview preview = 1 [deprecated = true]; + * + * @deprecated + * google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportResponse.preview + * is deprecated. See google/cloud/designcenter/v1/best_practices_messages.proto;l=98 + * @return The preview. + */ + @java.lang.Deprecated + public com.google.cloud.config.v1.Preview getPreview() { + if (previewBuilder_ == null) { + return preview_ == null + ? com.google.cloud.config.v1.Preview.getDefaultInstance() + : preview_; + } else { + return previewBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Deprecated: This field is no longer used since we moved to fast plan
+     * assessment.
+     * Infrastructure Manager preview.
+     * 
+ * + * .google.cloud.config.v1.Preview preview = 1 [deprecated = true]; + */ + @java.lang.Deprecated + public Builder setPreview(com.google.cloud.config.v1.Preview value) { + if (previewBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + preview_ = value; + } else { + previewBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Deprecated: This field is no longer used since we moved to fast plan
+     * assessment.
+     * Infrastructure Manager preview.
+     * 
+ * + * .google.cloud.config.v1.Preview preview = 1 [deprecated = true]; + */ + @java.lang.Deprecated + public Builder setPreview(com.google.cloud.config.v1.Preview.Builder builderForValue) { + if (previewBuilder_ == null) { + preview_ = builderForValue.build(); + } else { + previewBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Deprecated: This field is no longer used since we moved to fast plan
+     * assessment.
+     * Infrastructure Manager preview.
+     * 
+ * + * .google.cloud.config.v1.Preview preview = 1 [deprecated = true]; + */ + @java.lang.Deprecated + public Builder mergePreview(com.google.cloud.config.v1.Preview value) { + if (previewBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && preview_ != null + && preview_ != com.google.cloud.config.v1.Preview.getDefaultInstance()) { + getPreviewBuilder().mergeFrom(value); + } else { + preview_ = value; + } + } else { + previewBuilder_.mergeFrom(value); + } + if (preview_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Deprecated: This field is no longer used since we moved to fast plan
+     * assessment.
+     * Infrastructure Manager preview.
+     * 
+ * + * .google.cloud.config.v1.Preview preview = 1 [deprecated = true]; + */ + @java.lang.Deprecated + public Builder clearPreview() { + bitField0_ = (bitField0_ & ~0x00000001); + preview_ = null; + if (previewBuilder_ != null) { + previewBuilder_.dispose(); + previewBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Deprecated: This field is no longer used since we moved to fast plan
+     * assessment.
+     * Infrastructure Manager preview.
+     * 
+ * + * .google.cloud.config.v1.Preview preview = 1 [deprecated = true]; + */ + @java.lang.Deprecated + public com.google.cloud.config.v1.Preview.Builder getPreviewBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetPreviewFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Deprecated: This field is no longer used since we moved to fast plan
+     * assessment.
+     * Infrastructure Manager preview.
+     * 
+ * + * .google.cloud.config.v1.Preview preview = 1 [deprecated = true]; + */ + @java.lang.Deprecated + public com.google.cloud.config.v1.PreviewOrBuilder getPreviewOrBuilder() { + if (previewBuilder_ != null) { + return previewBuilder_.getMessageOrBuilder(); + } else { + return preview_ == null + ? com.google.cloud.config.v1.Preview.getDefaultInstance() + : preview_; + } + } + + /** + * + * + *
+     * Deprecated: This field is no longer used since we moved to fast plan
+     * assessment.
+     * Infrastructure Manager preview.
+     * 
+ * + * .google.cloud.config.v1.Preview preview = 1 [deprecated = true]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.config.v1.Preview, + com.google.cloud.config.v1.Preview.Builder, + com.google.cloud.config.v1.PreviewOrBuilder> + internalGetPreviewFieldBuilder() { + if (previewBuilder_ == null) { + previewBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.config.v1.Preview, + com.google.cloud.config.v1.Preview.Builder, + com.google.cloud.config.v1.PreviewOrBuilder>( + getPreview(), getParentForChildren(), isClean()); + preview_ = null; + } + return previewBuilder_; + } + + private com.google.cloud.designcenter.v1.AssessmentReport assessmentReport_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.AssessmentReport, + com.google.cloud.designcenter.v1.AssessmentReport.Builder, + com.google.cloud.designcenter.v1.AssessmentReportOrBuilder> + assessmentReportBuilder_; + + /** + * + * + *
+     * Best practices by Design Assessment report
+     * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 2; + * + * @return Whether the assessmentReport field is set. + */ + public boolean hasAssessmentReport() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Best practices by Design Assessment report
+     * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 2; + * + * @return The assessmentReport. + */ + public com.google.cloud.designcenter.v1.AssessmentReport getAssessmentReport() { + if (assessmentReportBuilder_ == null) { + return assessmentReport_ == null + ? com.google.cloud.designcenter.v1.AssessmentReport.getDefaultInstance() + : assessmentReport_; + } else { + return assessmentReportBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Best practices by Design Assessment report
+     * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 2; + */ + public Builder setAssessmentReport(com.google.cloud.designcenter.v1.AssessmentReport value) { + if (assessmentReportBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + assessmentReport_ = value; + } else { + assessmentReportBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Best practices by Design Assessment report
+     * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 2; + */ + public Builder setAssessmentReport( + com.google.cloud.designcenter.v1.AssessmentReport.Builder builderForValue) { + if (assessmentReportBuilder_ == null) { + assessmentReport_ = builderForValue.build(); + } else { + assessmentReportBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Best practices by Design Assessment report
+     * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 2; + */ + public Builder mergeAssessmentReport(com.google.cloud.designcenter.v1.AssessmentReport value) { + if (assessmentReportBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && assessmentReport_ != null + && assessmentReport_ + != com.google.cloud.designcenter.v1.AssessmentReport.getDefaultInstance()) { + getAssessmentReportBuilder().mergeFrom(value); + } else { + assessmentReport_ = value; + } + } else { + assessmentReportBuilder_.mergeFrom(value); + } + if (assessmentReport_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Best practices by Design Assessment report
+     * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 2; + */ + public Builder clearAssessmentReport() { + bitField0_ = (bitField0_ & ~0x00000002); + assessmentReport_ = null; + if (assessmentReportBuilder_ != null) { + assessmentReportBuilder_.dispose(); + assessmentReportBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Best practices by Design Assessment report
+     * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 2; + */ + public com.google.cloud.designcenter.v1.AssessmentReport.Builder getAssessmentReportBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetAssessmentReportFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Best practices by Design Assessment report
+     * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 2; + */ + public com.google.cloud.designcenter.v1.AssessmentReportOrBuilder + getAssessmentReportOrBuilder() { + if (assessmentReportBuilder_ != null) { + return assessmentReportBuilder_.getMessageOrBuilder(); + } else { + return assessmentReport_ == null + ? com.google.cloud.designcenter.v1.AssessmentReport.getDefaultInstance() + : assessmentReport_; + } + } + + /** + * + * + *
+     * Best practices by Design Assessment report
+     * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.AssessmentReport, + com.google.cloud.designcenter.v1.AssessmentReport.Builder, + com.google.cloud.designcenter.v1.AssessmentReportOrBuilder> + internalGetAssessmentReportFieldBuilder() { + if (assessmentReportBuilder_ == null) { + assessmentReportBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.AssessmentReport, + com.google.cloud.designcenter.v1.AssessmentReport.Builder, + com.google.cloud.designcenter.v1.AssessmentReportOrBuilder>( + getAssessmentReport(), getParentForChildren(), isClean()); + assessmentReport_ = null; + } + return assessmentReportBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportResponse) + private static final com.google.cloud.designcenter.v1 + .GenerateApplicationTemplateAssessmentReportResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportResponse(); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser< + GenerateApplicationTemplateAssessmentReportResponse> + PARSER = + new com.google.protobuf.AbstractParser< + GenerateApplicationTemplateAssessmentReportResponse>() { + @java.lang.Override + public GenerateApplicationTemplateAssessmentReportResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.GenerateApplicationTemplateAssessmentReportResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationTemplateAssessmentReportResponseOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationTemplateAssessmentReportResponseOrBuilder.java new file mode 100644 index 000000000000..6399315cb00f --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationTemplateAssessmentReportResponseOrBuilder.java @@ -0,0 +1,117 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/best_practices_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface GenerateApplicationTemplateAssessmentReportResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Deprecated: This field is no longer used since we moved to fast plan
+   * assessment.
+   * Infrastructure Manager preview.
+   * 
+ * + * .google.cloud.config.v1.Preview preview = 1 [deprecated = true]; + * + * @deprecated + * google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportResponse.preview is + * deprecated. See google/cloud/designcenter/v1/best_practices_messages.proto;l=98 + * @return Whether the preview field is set. + */ + @java.lang.Deprecated + boolean hasPreview(); + + /** + * + * + *
+   * Deprecated: This field is no longer used since we moved to fast plan
+   * assessment.
+   * Infrastructure Manager preview.
+   * 
+ * + * .google.cloud.config.v1.Preview preview = 1 [deprecated = true]; + * + * @deprecated + * google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportResponse.preview is + * deprecated. See google/cloud/designcenter/v1/best_practices_messages.proto;l=98 + * @return The preview. + */ + @java.lang.Deprecated + com.google.cloud.config.v1.Preview getPreview(); + + /** + * + * + *
+   * Deprecated: This field is no longer used since we moved to fast plan
+   * assessment.
+   * Infrastructure Manager preview.
+   * 
+ * + * .google.cloud.config.v1.Preview preview = 1 [deprecated = true]; + */ + @java.lang.Deprecated + com.google.cloud.config.v1.PreviewOrBuilder getPreviewOrBuilder(); + + /** + * + * + *
+   * Best practices by Design Assessment report
+   * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 2; + * + * @return Whether the assessmentReport field is set. + */ + boolean hasAssessmentReport(); + + /** + * + * + *
+   * Best practices by Design Assessment report
+   * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 2; + * + * @return The assessmentReport. + */ + com.google.cloud.designcenter.v1.AssessmentReport getAssessmentReport(); + + /** + * + * + *
+   * Best practices by Design Assessment report
+   * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 2; + */ + com.google.cloud.designcenter.v1.AssessmentReportOrBuilder getAssessmentReportOrBuilder(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationTemplateIaCRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationTemplateIaCRequest.java new file mode 100644 index 000000000000..cdaa56375dff --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationTemplateIaCRequest.java @@ -0,0 +1,1532 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Request message for GenerateApplicationTemplateIaC method.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest} + */ +@com.google.protobuf.Generated +public final class GenerateApplicationTemplateIaCRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest) + GenerateApplicationTemplateIaCRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "GenerateApplicationTemplateIaCRequest"); + } + + // Use GenerateApplicationTemplateIaCRequest.newBuilder() to construct. + private GenerateApplicationTemplateIaCRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GenerateApplicationTemplateIaCRequest() { + name_ = ""; + iacFormat_ = 0; + gcsUri_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GenerateApplicationTemplateIaCRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GenerateApplicationTemplateIaCRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest.class, + com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest.Builder.class); + } + + /** + * + * + *
+   * The IaC format to generate.
+   * 
+ * + * Protobuf enum {@code + * google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest.IACFormat} + */ + public enum IACFormat implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * IaC format is unspecified.
+     * 
+ * + * IAC_FORMAT_UNSPECIFIED = 0; + */ + IAC_FORMAT_UNSPECIFIED(0), + /** + * + * + *
+     * IaC format is Terraform.
+     * 
+ * + * TERRAFORM = 1; + */ + TERRAFORM(1), + /** + * + * + *
+     * IaC format is HELM.
+     * 
+ * + * HELM = 2; + */ + HELM(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "IACFormat"); + } + + /** + * + * + *
+     * IaC format is unspecified.
+     * 
+ * + * IAC_FORMAT_UNSPECIFIED = 0; + */ + public static final int IAC_FORMAT_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * IaC format is Terraform.
+     * 
+ * + * TERRAFORM = 1; + */ + public static final int TERRAFORM_VALUE = 1; + + /** + * + * + *
+     * IaC format is HELM.
+     * 
+ * + * HELM = 2; + */ + public static final int HELM_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 IACFormat 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 IACFormat forNumber(int value) { + switch (value) { + case 0: + return IAC_FORMAT_UNSPECIFIED; + case 1: + return TERRAFORM; + case 2: + return HELM; + 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 IACFormat findValueByNumber(int number) { + return IACFormat.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final IACFormat[] VALUES = values(); + + public static IACFormat 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 IACFormat(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest.IACFormat) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The name of the application template.
+   * 
+ * + * + * 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 application template.
+   * 
+ * + * + * 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 IAC_FORMAT_FIELD_NUMBER = 2; + private int iacFormat_ = 0; + + /** + * + * + *
+   * Optional. The IaC format to generate.
+   * 
+ * + * + * .google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest.IACFormat iac_format = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for iacFormat. + */ + @java.lang.Override + public int getIacFormatValue() { + return iacFormat_; + } + + /** + * + * + *
+   * Optional. The IaC format to generate.
+   * 
+ * + * + * .google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest.IACFormat iac_format = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The iacFormat. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest.IACFormat + getIacFormat() { + com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest.IACFormat result = + com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest.IACFormat.forNumber( + iacFormat_); + return result == null + ? com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest.IACFormat + .UNRECOGNIZED + : result; + } + + public static final int GCS_URI_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object gcsUri_ = ""; + + /** + * + * + *
+   * Optional. DEPRECATED: Use the 'artifact_location' field instead.
+   * The Cloud Storage URI to write the generated IaC to.
+   * 
+ * + * string gcs_uri = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * @deprecated google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest.gcs_uri is + * deprecated. See google/cloud/designcenter/v1/authoring_messages.proto;l=285 + * @return The gcsUri. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getGcsUri() { + java.lang.Object ref = gcsUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gcsUri_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. DEPRECATED: Use the 'artifact_location' field instead.
+   * The Cloud Storage URI to write the generated IaC to.
+   * 
+ * + * string gcs_uri = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * @deprecated google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest.gcs_uri is + * deprecated. See google/cloud/designcenter/v1/authoring_messages.proto;l=285 + * @return The bytes for gcsUri. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getGcsUriBytes() { + java.lang.Object ref = gcsUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gcsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ARTIFACT_LOCATION_FIELD_NUMBER = 4; + private com.google.cloud.designcenter.v1.ArtifactLocation artifactLocation_; + + /** + * + * + *
+   * Optional. Specifies the destination for the generated IaC, which can be
+   * Cloud Storage or a Developer Connect repository.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the artifactLocation field is set. + */ + @java.lang.Override + public boolean hasArtifactLocation() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. Specifies the destination for the generated IaC, which can be
+   * Cloud Storage or a Developer Connect repository.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The artifactLocation. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ArtifactLocation getArtifactLocation() { + return artifactLocation_ == null + ? com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance() + : artifactLocation_; + } + + /** + * + * + *
+   * Optional. Specifies the destination for the generated IaC, which can be
+   * Cloud Storage or a Developer Connect repository.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder getArtifactLocationOrBuilder() { + return artifactLocation_ == null + ? com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance() + : artifactLocation_; + } + + 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (iacFormat_ + != com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest.IACFormat + .IAC_FORMAT_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, iacFormat_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gcsUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, gcsUri_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getArtifactLocation()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (iacFormat_ + != com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest.IACFormat + .IAC_FORMAT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, iacFormat_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gcsUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, gcsUri_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getArtifactLocation()); + } + 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.designcenter.v1.GenerateApplicationTemplateIaCRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest other = + (com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (iacFormat_ != other.iacFormat_) return false; + if (!getGcsUri().equals(other.getGcsUri())) return false; + if (hasArtifactLocation() != other.hasArtifactLocation()) return false; + if (hasArtifactLocation()) { + if (!getArtifactLocation().equals(other.getArtifactLocation())) 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) + IAC_FORMAT_FIELD_NUMBER; + hash = (53 * hash) + iacFormat_; + hash = (37 * hash) + GCS_URI_FIELD_NUMBER; + hash = (53 * hash) + getGcsUri().hashCode(); + if (hasArtifactLocation()) { + hash = (37 * hash) + ARTIFACT_LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getArtifactLocation().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest 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.designcenter.v1.GenerateApplicationTemplateIaCRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.GenerateApplicationTemplateIaCRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for GenerateApplicationTemplateIaC method.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest) + com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GenerateApplicationTemplateIaCRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GenerateApplicationTemplateIaCRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest.class, + com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest.Builder.class); + } + + // Construct using + // com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetArtifactLocationFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + iacFormat_ = 0; + gcsUri_ = ""; + artifactLocation_ = null; + if (artifactLocationBuilder_ != null) { + artifactLocationBuilder_.dispose(); + artifactLocationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GenerateApplicationTemplateIaCRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest build() { + com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest buildPartial() { + com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest result = + new com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.iacFormat_ = iacFormat_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.gcsUri_ = gcsUri_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.artifactLocation_ = + artifactLocationBuilder_ == null ? artifactLocation_ : artifactLocationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest) { + return mergeFrom( + (com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest other) { + if (other + == com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.iacFormat_ != 0) { + setIacFormatValue(other.getIacFormatValue()); + } + if (!other.getGcsUri().isEmpty()) { + gcsUri_ = other.gcsUri_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasArtifactLocation()) { + mergeArtifactLocation(other.getArtifactLocation()); + } + 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: + { + iacFormat_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + gcsUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetArtifactLocationFieldBuilder().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 name_ = ""; + + /** + * + * + *
+     * Required. The name of the application template.
+     * 
+ * + * + * 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 application template.
+     * 
+ * + * + * 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 application template.
+     * 
+ * + * + * 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 application template.
+     * 
+ * + * + * 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 application template.
+     * 
+ * + * + * 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 iacFormat_ = 0; + + /** + * + * + *
+     * Optional. The IaC format to generate.
+     * 
+ * + * + * .google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest.IACFormat iac_format = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for iacFormat. + */ + @java.lang.Override + public int getIacFormatValue() { + return iacFormat_; + } + + /** + * + * + *
+     * Optional. The IaC format to generate.
+     * 
+ * + * + * .google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest.IACFormat iac_format = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for iacFormat to set. + * @return This builder for chaining. + */ + public Builder setIacFormatValue(int value) { + iacFormat_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The IaC format to generate.
+     * 
+ * + * + * .google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest.IACFormat iac_format = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The iacFormat. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest.IACFormat + getIacFormat() { + com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest.IACFormat result = + com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest.IACFormat + .forNumber(iacFormat_); + return result == null + ? com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest.IACFormat + .UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Optional. The IaC format to generate.
+     * 
+ * + * + * .google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest.IACFormat iac_format = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The iacFormat to set. + * @return This builder for chaining. + */ + public Builder setIacFormat( + com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest.IACFormat value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + iacFormat_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The IaC format to generate.
+     * 
+ * + * + * .google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest.IACFormat iac_format = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearIacFormat() { + bitField0_ = (bitField0_ & ~0x00000002); + iacFormat_ = 0; + onChanged(); + return this; + } + + private java.lang.Object gcsUri_ = ""; + + /** + * + * + *
+     * Optional. DEPRECATED: Use the 'artifact_location' field instead.
+     * The Cloud Storage URI to write the generated IaC to.
+     * 
+ * + * string gcs_uri = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * @deprecated google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest.gcs_uri is + * deprecated. See google/cloud/designcenter/v1/authoring_messages.proto;l=285 + * @return The gcsUri. + */ + @java.lang.Deprecated + public java.lang.String getGcsUri() { + java.lang.Object ref = gcsUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gcsUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. DEPRECATED: Use the 'artifact_location' field instead.
+     * The Cloud Storage URI to write the generated IaC to.
+     * 
+ * + * string gcs_uri = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * @deprecated google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest.gcs_uri is + * deprecated. See google/cloud/designcenter/v1/authoring_messages.proto;l=285 + * @return The bytes for gcsUri. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getGcsUriBytes() { + java.lang.Object ref = gcsUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gcsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. DEPRECATED: Use the 'artifact_location' field instead.
+     * The Cloud Storage URI to write the generated IaC to.
+     * 
+ * + * string gcs_uri = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * @deprecated google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest.gcs_uri is + * deprecated. See google/cloud/designcenter/v1/authoring_messages.proto;l=285 + * @param value The gcsUri to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setGcsUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + gcsUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. DEPRECATED: Use the 'artifact_location' field instead.
+     * The Cloud Storage URI to write the generated IaC to.
+     * 
+ * + * string gcs_uri = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * @deprecated google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest.gcs_uri is + * deprecated. See google/cloud/designcenter/v1/authoring_messages.proto;l=285 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearGcsUri() { + gcsUri_ = getDefaultInstance().getGcsUri(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. DEPRECATED: Use the 'artifact_location' field instead.
+     * The Cloud Storage URI to write the generated IaC to.
+     * 
+ * + * string gcs_uri = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * @deprecated google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest.gcs_uri is + * deprecated. See google/cloud/designcenter/v1/authoring_messages.proto;l=285 + * @param value The bytes for gcsUri to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setGcsUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gcsUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.cloud.designcenter.v1.ArtifactLocation artifactLocation_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ArtifactLocation, + com.google.cloud.designcenter.v1.ArtifactLocation.Builder, + com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder> + artifactLocationBuilder_; + + /** + * + * + *
+     * Optional. Specifies the destination for the generated IaC, which can be
+     * Cloud Storage or a Developer Connect repository.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the artifactLocation field is set. + */ + public boolean hasArtifactLocation() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Optional. Specifies the destination for the generated IaC, which can be
+     * Cloud Storage or a Developer Connect repository.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The artifactLocation. + */ + public com.google.cloud.designcenter.v1.ArtifactLocation getArtifactLocation() { + if (artifactLocationBuilder_ == null) { + return artifactLocation_ == null + ? com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance() + : artifactLocation_; + } else { + return artifactLocationBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Specifies the destination for the generated IaC, which can be
+     * Cloud Storage or a Developer Connect repository.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setArtifactLocation(com.google.cloud.designcenter.v1.ArtifactLocation value) { + if (artifactLocationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + artifactLocation_ = value; + } else { + artifactLocationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Specifies the destination for the generated IaC, which can be
+     * Cloud Storage or a Developer Connect repository.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setArtifactLocation( + com.google.cloud.designcenter.v1.ArtifactLocation.Builder builderForValue) { + if (artifactLocationBuilder_ == null) { + artifactLocation_ = builderForValue.build(); + } else { + artifactLocationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Specifies the destination for the generated IaC, which can be
+     * Cloud Storage or a Developer Connect repository.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeArtifactLocation(com.google.cloud.designcenter.v1.ArtifactLocation value) { + if (artifactLocationBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && artifactLocation_ != null + && artifactLocation_ + != com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance()) { + getArtifactLocationBuilder().mergeFrom(value); + } else { + artifactLocation_ = value; + } + } else { + artifactLocationBuilder_.mergeFrom(value); + } + if (artifactLocation_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Specifies the destination for the generated IaC, which can be
+     * Cloud Storage or a Developer Connect repository.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearArtifactLocation() { + bitField0_ = (bitField0_ & ~0x00000008); + artifactLocation_ = null; + if (artifactLocationBuilder_ != null) { + artifactLocationBuilder_.dispose(); + artifactLocationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Specifies the destination for the generated IaC, which can be
+     * Cloud Storage or a Developer Connect repository.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ArtifactLocation.Builder getArtifactLocationBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetArtifactLocationFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Specifies the destination for the generated IaC, which can be
+     * Cloud Storage or a Developer Connect repository.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder + getArtifactLocationOrBuilder() { + if (artifactLocationBuilder_ != null) { + return artifactLocationBuilder_.getMessageOrBuilder(); + } else { + return artifactLocation_ == null + ? com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance() + : artifactLocation_; + } + } + + /** + * + * + *
+     * Optional. Specifies the destination for the generated IaC, which can be
+     * Cloud Storage or a Developer Connect repository.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ArtifactLocation, + com.google.cloud.designcenter.v1.ArtifactLocation.Builder, + com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder> + internalGetArtifactLocationFieldBuilder() { + if (artifactLocationBuilder_ == null) { + artifactLocationBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ArtifactLocation, + com.google.cloud.designcenter.v1.ArtifactLocation.Builder, + com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder>( + getArtifactLocation(), getParentForChildren(), isClean()); + artifactLocation_ = null; + } + return artifactLocationBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest) + private static final com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest(); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateApplicationTemplateIaCRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.GenerateApplicationTemplateIaCRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationTemplateIaCRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationTemplateIaCRequestOrBuilder.java new file mode 100644 index 000000000000..f675fc2c2304 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationTemplateIaCRequestOrBuilder.java @@ -0,0 +1,168 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface GenerateApplicationTemplateIaCRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the application template.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The name of the application template.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. The IaC format to generate.
+   * 
+ * + * + * .google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest.IACFormat iac_format = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for iacFormat. + */ + int getIacFormatValue(); + + /** + * + * + *
+   * Optional. The IaC format to generate.
+   * 
+ * + * + * .google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest.IACFormat iac_format = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The iacFormat. + */ + com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest.IACFormat getIacFormat(); + + /** + * + * + *
+   * Optional. DEPRECATED: Use the 'artifact_location' field instead.
+   * The Cloud Storage URI to write the generated IaC to.
+   * 
+ * + * string gcs_uri = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * @deprecated google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest.gcs_uri is + * deprecated. See google/cloud/designcenter/v1/authoring_messages.proto;l=285 + * @return The gcsUri. + */ + @java.lang.Deprecated + java.lang.String getGcsUri(); + + /** + * + * + *
+   * Optional. DEPRECATED: Use the 'artifact_location' field instead.
+   * The Cloud Storage URI to write the generated IaC to.
+   * 
+ * + * string gcs_uri = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * @deprecated google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest.gcs_uri is + * deprecated. See google/cloud/designcenter/v1/authoring_messages.proto;l=285 + * @return The bytes for gcsUri. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getGcsUriBytes(); + + /** + * + * + *
+   * Optional. Specifies the destination for the generated IaC, which can be
+   * Cloud Storage or a Developer Connect repository.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the artifactLocation field is set. + */ + boolean hasArtifactLocation(); + + /** + * + * + *
+   * Optional. Specifies the destination for the generated IaC, which can be
+   * Cloud Storage or a Developer Connect repository.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The artifactLocation. + */ + com.google.cloud.designcenter.v1.ArtifactLocation getArtifactLocation(); + + /** + * + * + *
+   * Optional. Specifies the destination for the generated IaC, which can be
+   * Cloud Storage or a Developer Connect repository.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder getArtifactLocationOrBuilder(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationTemplateIaCResponse.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationTemplateIaCResponse.java new file mode 100644 index 000000000000..51f5fc32ee61 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationTemplateIaCResponse.java @@ -0,0 +1,1229 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Response message for GenerateApplicationTemplateIaC method.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.GenerateApplicationTemplateIaCResponse} + */ +@com.google.protobuf.Generated +public final class GenerateApplicationTemplateIaCResponse + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.GenerateApplicationTemplateIaCResponse) + GenerateApplicationTemplateIaCResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "GenerateApplicationTemplateIaCResponse"); + } + + // Use GenerateApplicationTemplateIaCResponse.newBuilder() to construct. + private GenerateApplicationTemplateIaCResponse( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GenerateApplicationTemplateIaCResponse() { + gcsUri_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GenerateApplicationTemplateIaCResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GenerateApplicationTemplateIaCResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCResponse.class, + com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCResponse.Builder.class); + } + + private int bitField0_; + public static final int GCS_URI_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object gcsUri_ = ""; + + /** + * + * + *
+   * DEPRECATED: Use the 'artifact_location' field instead.
+   * The Cloud Storage URI of the generated IaC.
+   * 
+ * + * string gcs_uri = 1 [deprecated = true]; + * + * @deprecated google.cloud.designcenter.v1.GenerateApplicationTemplateIaCResponse.gcs_uri is + * deprecated. See google/cloud/designcenter/v1/authoring_messages.proto;l=298 + * @return The gcsUri. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getGcsUri() { + java.lang.Object ref = gcsUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gcsUri_ = s; + return s; + } + } + + /** + * + * + *
+   * DEPRECATED: Use the 'artifact_location' field instead.
+   * The Cloud Storage URI of the generated IaC.
+   * 
+ * + * string gcs_uri = 1 [deprecated = true]; + * + * @deprecated google.cloud.designcenter.v1.GenerateApplicationTemplateIaCResponse.gcs_uri is + * deprecated. See google/cloud/designcenter/v1/authoring_messages.proto;l=298 + * @return The bytes for gcsUri. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getGcsUriBytes() { + java.lang.Object ref = gcsUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gcsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ARTIFACT_LOCATION_FIELD_NUMBER = 2; + private com.google.cloud.designcenter.v1.ArtifactLocation artifactLocation_; + + /** + * + * + *
+   * The destination where the generated IaC was written.
+   * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 2; + * + * @return Whether the artifactLocation field is set. + */ + @java.lang.Override + public boolean hasArtifactLocation() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * The destination where the generated IaC was written.
+   * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 2; + * + * @return The artifactLocation. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ArtifactLocation getArtifactLocation() { + return artifactLocation_ == null + ? com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance() + : artifactLocation_; + } + + /** + * + * + *
+   * The destination where the generated IaC was written.
+   * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 2; + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder getArtifactLocationOrBuilder() { + return artifactLocation_ == null + ? com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance() + : artifactLocation_; + } + + public static final int ROOT_MODULES_METADATA_FIELD_NUMBER = 3; + private com.google.cloud.designcenter.v1.RootModulesMetadata rootModulesMetadata_; + + /** + * + * + *
+   * Root modules metadata of the application template.
+   * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 3; + * + * @return Whether the rootModulesMetadata field is set. + */ + @java.lang.Override + public boolean hasRootModulesMetadata() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Root modules metadata of the application template.
+   * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 3; + * + * @return The rootModulesMetadata. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.RootModulesMetadata getRootModulesMetadata() { + return rootModulesMetadata_ == null + ? com.google.cloud.designcenter.v1.RootModulesMetadata.getDefaultInstance() + : rootModulesMetadata_; + } + + /** + * + * + *
+   * Root modules metadata of the application template.
+   * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 3; + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.RootModulesMetadataOrBuilder + getRootModulesMetadataOrBuilder() { + return rootModulesMetadata_ == null + ? com.google.cloud.designcenter.v1.RootModulesMetadata.getDefaultInstance() + : rootModulesMetadata_; + } + + 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.GeneratedMessage.isStringEmpty(gcsUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, gcsUri_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getArtifactLocation()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getRootModulesMetadata()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gcsUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, gcsUri_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getArtifactLocation()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getRootModulesMetadata()); + } + 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.designcenter.v1.GenerateApplicationTemplateIaCResponse)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCResponse other = + (com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCResponse) obj; + + if (!getGcsUri().equals(other.getGcsUri())) return false; + if (hasArtifactLocation() != other.hasArtifactLocation()) return false; + if (hasArtifactLocation()) { + if (!getArtifactLocation().equals(other.getArtifactLocation())) return false; + } + if (hasRootModulesMetadata() != other.hasRootModulesMetadata()) return false; + if (hasRootModulesMetadata()) { + if (!getRootModulesMetadata().equals(other.getRootModulesMetadata())) 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) + GCS_URI_FIELD_NUMBER; + hash = (53 * hash) + getGcsUri().hashCode(); + if (hasArtifactLocation()) { + hash = (37 * hash) + ARTIFACT_LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getArtifactLocation().hashCode(); + } + if (hasRootModulesMetadata()) { + hash = (37 * hash) + ROOT_MODULES_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getRootModulesMetadata().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCResponse 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.designcenter.v1.GenerateApplicationTemplateIaCResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.GenerateApplicationTemplateIaCResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response message for GenerateApplicationTemplateIaC method.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.GenerateApplicationTemplateIaCResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.GenerateApplicationTemplateIaCResponse) + com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GenerateApplicationTemplateIaCResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GenerateApplicationTemplateIaCResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCResponse.class, + com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetArtifactLocationFieldBuilder(); + internalGetRootModulesMetadataFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + gcsUri_ = ""; + artifactLocation_ = null; + if (artifactLocationBuilder_ != null) { + artifactLocationBuilder_.dispose(); + artifactLocationBuilder_ = null; + } + rootModulesMetadata_ = null; + if (rootModulesMetadataBuilder_ != null) { + rootModulesMetadataBuilder_.dispose(); + rootModulesMetadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GenerateApplicationTemplateIaCResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCResponse + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCResponse build() { + com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCResponse buildPartial() { + com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCResponse result = + new com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.gcsUri_ = gcsUri_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.artifactLocation_ = + artifactLocationBuilder_ == null ? artifactLocation_ : artifactLocationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.rootModulesMetadata_ = + rootModulesMetadataBuilder_ == null + ? rootModulesMetadata_ + : rootModulesMetadataBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCResponse) { + return mergeFrom( + (com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCResponse other) { + if (other + == com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCResponse + .getDefaultInstance()) return this; + if (!other.getGcsUri().isEmpty()) { + gcsUri_ = other.gcsUri_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasArtifactLocation()) { + mergeArtifactLocation(other.getArtifactLocation()); + } + if (other.hasRootModulesMetadata()) { + mergeRootModulesMetadata(other.getRootModulesMetadata()); + } + 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: + { + gcsUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetArtifactLocationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetRootModulesMetadataFieldBuilder().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 gcsUri_ = ""; + + /** + * + * + *
+     * DEPRECATED: Use the 'artifact_location' field instead.
+     * The Cloud Storage URI of the generated IaC.
+     * 
+ * + * string gcs_uri = 1 [deprecated = true]; + * + * @deprecated google.cloud.designcenter.v1.GenerateApplicationTemplateIaCResponse.gcs_uri is + * deprecated. See google/cloud/designcenter/v1/authoring_messages.proto;l=298 + * @return The gcsUri. + */ + @java.lang.Deprecated + public java.lang.String getGcsUri() { + java.lang.Object ref = gcsUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gcsUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * DEPRECATED: Use the 'artifact_location' field instead.
+     * The Cloud Storage URI of the generated IaC.
+     * 
+ * + * string gcs_uri = 1 [deprecated = true]; + * + * @deprecated google.cloud.designcenter.v1.GenerateApplicationTemplateIaCResponse.gcs_uri is + * deprecated. See google/cloud/designcenter/v1/authoring_messages.proto;l=298 + * @return The bytes for gcsUri. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getGcsUriBytes() { + java.lang.Object ref = gcsUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gcsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * DEPRECATED: Use the 'artifact_location' field instead.
+     * The Cloud Storage URI of the generated IaC.
+     * 
+ * + * string gcs_uri = 1 [deprecated = true]; + * + * @deprecated google.cloud.designcenter.v1.GenerateApplicationTemplateIaCResponse.gcs_uri is + * deprecated. See google/cloud/designcenter/v1/authoring_messages.proto;l=298 + * @param value The gcsUri to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setGcsUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + gcsUri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * DEPRECATED: Use the 'artifact_location' field instead.
+     * The Cloud Storage URI of the generated IaC.
+     * 
+ * + * string gcs_uri = 1 [deprecated = true]; + * + * @deprecated google.cloud.designcenter.v1.GenerateApplicationTemplateIaCResponse.gcs_uri is + * deprecated. See google/cloud/designcenter/v1/authoring_messages.proto;l=298 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearGcsUri() { + gcsUri_ = getDefaultInstance().getGcsUri(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * DEPRECATED: Use the 'artifact_location' field instead.
+     * The Cloud Storage URI of the generated IaC.
+     * 
+ * + * string gcs_uri = 1 [deprecated = true]; + * + * @deprecated google.cloud.designcenter.v1.GenerateApplicationTemplateIaCResponse.gcs_uri is + * deprecated. See google/cloud/designcenter/v1/authoring_messages.proto;l=298 + * @param value The bytes for gcsUri to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setGcsUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gcsUri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.designcenter.v1.ArtifactLocation artifactLocation_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ArtifactLocation, + com.google.cloud.designcenter.v1.ArtifactLocation.Builder, + com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder> + artifactLocationBuilder_; + + /** + * + * + *
+     * The destination where the generated IaC was written.
+     * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 2; + * + * @return Whether the artifactLocation field is set. + */ + public boolean hasArtifactLocation() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * The destination where the generated IaC was written.
+     * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 2; + * + * @return The artifactLocation. + */ + public com.google.cloud.designcenter.v1.ArtifactLocation getArtifactLocation() { + if (artifactLocationBuilder_ == null) { + return artifactLocation_ == null + ? com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance() + : artifactLocation_; + } else { + return artifactLocationBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * The destination where the generated IaC was written.
+     * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 2; + */ + public Builder setArtifactLocation(com.google.cloud.designcenter.v1.ArtifactLocation value) { + if (artifactLocationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + artifactLocation_ = value; + } else { + artifactLocationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * The destination where the generated IaC was written.
+     * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 2; + */ + public Builder setArtifactLocation( + com.google.cloud.designcenter.v1.ArtifactLocation.Builder builderForValue) { + if (artifactLocationBuilder_ == null) { + artifactLocation_ = builderForValue.build(); + } else { + artifactLocationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * The destination where the generated IaC was written.
+     * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 2; + */ + public Builder mergeArtifactLocation(com.google.cloud.designcenter.v1.ArtifactLocation value) { + if (artifactLocationBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && artifactLocation_ != null + && artifactLocation_ + != com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance()) { + getArtifactLocationBuilder().mergeFrom(value); + } else { + artifactLocation_ = value; + } + } else { + artifactLocationBuilder_.mergeFrom(value); + } + if (artifactLocation_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The destination where the generated IaC was written.
+     * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 2; + */ + public Builder clearArtifactLocation() { + bitField0_ = (bitField0_ & ~0x00000002); + artifactLocation_ = null; + if (artifactLocationBuilder_ != null) { + artifactLocationBuilder_.dispose(); + artifactLocationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * The destination where the generated IaC was written.
+     * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 2; + */ + public com.google.cloud.designcenter.v1.ArtifactLocation.Builder getArtifactLocationBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetArtifactLocationFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * The destination where the generated IaC was written.
+     * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 2; + */ + public com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder + getArtifactLocationOrBuilder() { + if (artifactLocationBuilder_ != null) { + return artifactLocationBuilder_.getMessageOrBuilder(); + } else { + return artifactLocation_ == null + ? com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance() + : artifactLocation_; + } + } + + /** + * + * + *
+     * The destination where the generated IaC was written.
+     * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ArtifactLocation, + com.google.cloud.designcenter.v1.ArtifactLocation.Builder, + com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder> + internalGetArtifactLocationFieldBuilder() { + if (artifactLocationBuilder_ == null) { + artifactLocationBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ArtifactLocation, + com.google.cloud.designcenter.v1.ArtifactLocation.Builder, + com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder>( + getArtifactLocation(), getParentForChildren(), isClean()); + artifactLocation_ = null; + } + return artifactLocationBuilder_; + } + + private com.google.cloud.designcenter.v1.RootModulesMetadata rootModulesMetadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.RootModulesMetadata, + com.google.cloud.designcenter.v1.RootModulesMetadata.Builder, + com.google.cloud.designcenter.v1.RootModulesMetadataOrBuilder> + rootModulesMetadataBuilder_; + + /** + * + * + *
+     * Root modules metadata of the application template.
+     * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 3; + * + * @return Whether the rootModulesMetadata field is set. + */ + public boolean hasRootModulesMetadata() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Root modules metadata of the application template.
+     * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 3; + * + * @return The rootModulesMetadata. + */ + public com.google.cloud.designcenter.v1.RootModulesMetadata getRootModulesMetadata() { + if (rootModulesMetadataBuilder_ == null) { + return rootModulesMetadata_ == null + ? com.google.cloud.designcenter.v1.RootModulesMetadata.getDefaultInstance() + : rootModulesMetadata_; + } else { + return rootModulesMetadataBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Root modules metadata of the application template.
+     * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 3; + */ + public Builder setRootModulesMetadata( + com.google.cloud.designcenter.v1.RootModulesMetadata value) { + if (rootModulesMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rootModulesMetadata_ = value; + } else { + rootModulesMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Root modules metadata of the application template.
+     * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 3; + */ + public Builder setRootModulesMetadata( + com.google.cloud.designcenter.v1.RootModulesMetadata.Builder builderForValue) { + if (rootModulesMetadataBuilder_ == null) { + rootModulesMetadata_ = builderForValue.build(); + } else { + rootModulesMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Root modules metadata of the application template.
+     * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 3; + */ + public Builder mergeRootModulesMetadata( + com.google.cloud.designcenter.v1.RootModulesMetadata value) { + if (rootModulesMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && rootModulesMetadata_ != null + && rootModulesMetadata_ + != com.google.cloud.designcenter.v1.RootModulesMetadata.getDefaultInstance()) { + getRootModulesMetadataBuilder().mergeFrom(value); + } else { + rootModulesMetadata_ = value; + } + } else { + rootModulesMetadataBuilder_.mergeFrom(value); + } + if (rootModulesMetadata_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Root modules metadata of the application template.
+     * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 3; + */ + public Builder clearRootModulesMetadata() { + bitField0_ = (bitField0_ & ~0x00000004); + rootModulesMetadata_ = null; + if (rootModulesMetadataBuilder_ != null) { + rootModulesMetadataBuilder_.dispose(); + rootModulesMetadataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Root modules metadata of the application template.
+     * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 3; + */ + public com.google.cloud.designcenter.v1.RootModulesMetadata.Builder + getRootModulesMetadataBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetRootModulesMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Root modules metadata of the application template.
+     * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 3; + */ + public com.google.cloud.designcenter.v1.RootModulesMetadataOrBuilder + getRootModulesMetadataOrBuilder() { + if (rootModulesMetadataBuilder_ != null) { + return rootModulesMetadataBuilder_.getMessageOrBuilder(); + } else { + return rootModulesMetadata_ == null + ? com.google.cloud.designcenter.v1.RootModulesMetadata.getDefaultInstance() + : rootModulesMetadata_; + } + } + + /** + * + * + *
+     * Root modules metadata of the application template.
+     * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 3; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.RootModulesMetadata, + com.google.cloud.designcenter.v1.RootModulesMetadata.Builder, + com.google.cloud.designcenter.v1.RootModulesMetadataOrBuilder> + internalGetRootModulesMetadataFieldBuilder() { + if (rootModulesMetadataBuilder_ == null) { + rootModulesMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.RootModulesMetadata, + com.google.cloud.designcenter.v1.RootModulesMetadata.Builder, + com.google.cloud.designcenter.v1.RootModulesMetadataOrBuilder>( + getRootModulesMetadata(), getParentForChildren(), isClean()); + rootModulesMetadata_ = null; + } + return rootModulesMetadataBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.GenerateApplicationTemplateIaCResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.GenerateApplicationTemplateIaCResponse) + private static final com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCResponse(); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateApplicationTemplateIaCResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.GenerateApplicationTemplateIaCResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationTemplateIaCResponseOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationTemplateIaCResponseOrBuilder.java new file mode 100644 index 000000000000..0d1e0f4c622b --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationTemplateIaCResponseOrBuilder.java @@ -0,0 +1,136 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface GenerateApplicationTemplateIaCResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.GenerateApplicationTemplateIaCResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * DEPRECATED: Use the 'artifact_location' field instead.
+   * The Cloud Storage URI of the generated IaC.
+   * 
+ * + * string gcs_uri = 1 [deprecated = true]; + * + * @deprecated google.cloud.designcenter.v1.GenerateApplicationTemplateIaCResponse.gcs_uri is + * deprecated. See google/cloud/designcenter/v1/authoring_messages.proto;l=298 + * @return The gcsUri. + */ + @java.lang.Deprecated + java.lang.String getGcsUri(); + + /** + * + * + *
+   * DEPRECATED: Use the 'artifact_location' field instead.
+   * The Cloud Storage URI of the generated IaC.
+   * 
+ * + * string gcs_uri = 1 [deprecated = true]; + * + * @deprecated google.cloud.designcenter.v1.GenerateApplicationTemplateIaCResponse.gcs_uri is + * deprecated. See google/cloud/designcenter/v1/authoring_messages.proto;l=298 + * @return The bytes for gcsUri. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getGcsUriBytes(); + + /** + * + * + *
+   * The destination where the generated IaC was written.
+   * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 2; + * + * @return Whether the artifactLocation field is set. + */ + boolean hasArtifactLocation(); + + /** + * + * + *
+   * The destination where the generated IaC was written.
+   * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 2; + * + * @return The artifactLocation. + */ + com.google.cloud.designcenter.v1.ArtifactLocation getArtifactLocation(); + + /** + * + * + *
+   * The destination where the generated IaC was written.
+   * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 2; + */ + com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder getArtifactLocationOrBuilder(); + + /** + * + * + *
+   * Root modules metadata of the application template.
+   * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 3; + * + * @return Whether the rootModulesMetadata field is set. + */ + boolean hasRootModulesMetadata(); + + /** + * + * + *
+   * Root modules metadata of the application template.
+   * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 3; + * + * @return The rootModulesMetadata. + */ + com.google.cloud.designcenter.v1.RootModulesMetadata getRootModulesMetadata(); + + /** + * + * + *
+   * Root modules metadata of the application template.
+   * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 3; + */ + com.google.cloud.designcenter.v1.RootModulesMetadataOrBuilder getRootModulesMetadataOrBuilder(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationTemplateRevisionIaCRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationTemplateRevisionIaCRequest.java new file mode 100644 index 000000000000..ca23f7ad27b2 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationTemplateRevisionIaCRequest.java @@ -0,0 +1,1337 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Request message for GenerateApplicationTemplateRevisionIaC method.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest} + */ +@com.google.protobuf.Generated +public final class GenerateApplicationTemplateRevisionIaCRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest) + GenerateApplicationTemplateRevisionIaCRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "GenerateApplicationTemplateRevisionIaCRequest"); + } + + // Use GenerateApplicationTemplateRevisionIaCRequest.newBuilder() to construct. + private GenerateApplicationTemplateRevisionIaCRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GenerateApplicationTemplateRevisionIaCRequest() { + name_ = ""; + iacFormat_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GenerateApplicationTemplateRevisionIaCRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GenerateApplicationTemplateRevisionIaCRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest.class, + com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest.Builder + .class); + } + + /** + * + * + *
+   * The IaC format to generate.
+   * 
+ * + * Protobuf enum {@code + * google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest.IACFormat} + */ + public enum IACFormat implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * IaC format is unspecified.
+     * 
+ * + * IAC_FORMAT_UNSPECIFIED = 0; + */ + IAC_FORMAT_UNSPECIFIED(0), + /** + * + * + *
+     * IaC format is Terraform.
+     * 
+ * + * TERRAFORM = 1; + */ + TERRAFORM(1), + /** + * + * + *
+     * IaC format is HELM.
+     * 
+ * + * HELM = 2; + */ + HELM(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "IACFormat"); + } + + /** + * + * + *
+     * IaC format is unspecified.
+     * 
+ * + * IAC_FORMAT_UNSPECIFIED = 0; + */ + public static final int IAC_FORMAT_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * IaC format is Terraform.
+     * 
+ * + * TERRAFORM = 1; + */ + public static final int TERRAFORM_VALUE = 1; + + /** + * + * + *
+     * IaC format is HELM.
+     * 
+ * + * HELM = 2; + */ + public static final int HELM_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 IACFormat 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 IACFormat forNumber(int value) { + switch (value) { + case 0: + return IAC_FORMAT_UNSPECIFIED; + case 1: + return TERRAFORM; + case 2: + return HELM; + 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 IACFormat findValueByNumber(int number) { + return IACFormat.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest + .getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final IACFormat[] VALUES = values(); + + public static IACFormat 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 IACFormat(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest.IACFormat) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The name of the application template revision.
+   * 
+ * + * + * 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 application template revision.
+   * 
+ * + * + * 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 IAC_FORMAT_FIELD_NUMBER = 2; + private int iacFormat_ = 0; + + /** + * + * + *
+   * Optional. The IaC format to generate.
+   * 
+ * + * + * .google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest.IACFormat iac_format = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for iacFormat. + */ + @java.lang.Override + public int getIacFormatValue() { + return iacFormat_; + } + + /** + * + * + *
+   * Optional. The IaC format to generate.
+   * 
+ * + * + * .google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest.IACFormat iac_format = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The iacFormat. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest.IACFormat + getIacFormat() { + com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest.IACFormat + result = + com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest.IACFormat + .forNumber(iacFormat_); + return result == null + ? com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest.IACFormat + .UNRECOGNIZED + : result; + } + + public static final int ARTIFACT_LOCATION_FIELD_NUMBER = 3; + private com.google.cloud.designcenter.v1.ArtifactLocation artifactLocation_; + + /** + * + * + *
+   * Optional. Specifies the destination for the generated IaC, which can be
+   * Cloud Storage or a Developer Connect repository.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the artifactLocation field is set. + */ + @java.lang.Override + public boolean hasArtifactLocation() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. Specifies the destination for the generated IaC, which can be
+   * Cloud Storage or a Developer Connect repository.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The artifactLocation. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ArtifactLocation getArtifactLocation() { + return artifactLocation_ == null + ? com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance() + : artifactLocation_; + } + + /** + * + * + *
+   * Optional. Specifies the destination for the generated IaC, which can be
+   * Cloud Storage or a Developer Connect repository.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder getArtifactLocationOrBuilder() { + return artifactLocation_ == null + ? com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance() + : artifactLocation_; + } + + 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (iacFormat_ + != com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest.IACFormat + .IAC_FORMAT_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, iacFormat_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getArtifactLocation()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (iacFormat_ + != com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest.IACFormat + .IAC_FORMAT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, iacFormat_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getArtifactLocation()); + } + 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.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest other = + (com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (iacFormat_ != other.iacFormat_) return false; + if (hasArtifactLocation() != other.hasArtifactLocation()) return false; + if (hasArtifactLocation()) { + if (!getArtifactLocation().equals(other.getArtifactLocation())) 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) + IAC_FORMAT_FIELD_NUMBER; + hash = (53 * hash) + iacFormat_; + if (hasArtifactLocation()) { + hash = (37 * hash) + ARTIFACT_LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getArtifactLocation().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest + 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.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for GenerateApplicationTemplateRevisionIaC method.
+   * 
+ * + * Protobuf type {@code + * google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest) + com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GenerateApplicationTemplateRevisionIaCRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GenerateApplicationTemplateRevisionIaCRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest.class, + com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetArtifactLocationFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + iacFormat_ = 0; + artifactLocation_ = null; + if (artifactLocationBuilder_ != null) { + artifactLocationBuilder_.dispose(); + artifactLocationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GenerateApplicationTemplateRevisionIaCRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest build() { + com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest + buildPartial() { + com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest result = + new com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.iacFormat_ = iacFormat_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.artifactLocation_ = + artifactLocationBuilder_ == null ? artifactLocation_ : artifactLocationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest) { + return mergeFrom( + (com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest other) { + if (other + == com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.iacFormat_ != 0) { + setIacFormatValue(other.getIacFormatValue()); + } + if (other.hasArtifactLocation()) { + mergeArtifactLocation(other.getArtifactLocation()); + } + 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: + { + iacFormat_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + input.readMessage( + internalGetArtifactLocationFieldBuilder().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 name_ = ""; + + /** + * + * + *
+     * Required. The name of the application template revision.
+     * 
+ * + * + * 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 application template revision.
+     * 
+ * + * + * 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 application template revision.
+     * 
+ * + * + * 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 application template revision.
+     * 
+ * + * + * 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 application template revision.
+     * 
+ * + * + * 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 iacFormat_ = 0; + + /** + * + * + *
+     * Optional. The IaC format to generate.
+     * 
+ * + * + * .google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest.IACFormat iac_format = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for iacFormat. + */ + @java.lang.Override + public int getIacFormatValue() { + return iacFormat_; + } + + /** + * + * + *
+     * Optional. The IaC format to generate.
+     * 
+ * + * + * .google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest.IACFormat iac_format = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for iacFormat to set. + * @return This builder for chaining. + */ + public Builder setIacFormatValue(int value) { + iacFormat_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The IaC format to generate.
+     * 
+ * + * + * .google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest.IACFormat iac_format = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The iacFormat. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest.IACFormat + getIacFormat() { + com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest.IACFormat + result = + com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest + .IACFormat.forNumber(iacFormat_); + return result == null + ? com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest.IACFormat + .UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Optional. The IaC format to generate.
+     * 
+ * + * + * .google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest.IACFormat iac_format = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The iacFormat to set. + * @return This builder for chaining. + */ + public Builder setIacFormat( + com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest.IACFormat + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + iacFormat_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The IaC format to generate.
+     * 
+ * + * + * .google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest.IACFormat iac_format = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearIacFormat() { + bitField0_ = (bitField0_ & ~0x00000002); + iacFormat_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.designcenter.v1.ArtifactLocation artifactLocation_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ArtifactLocation, + com.google.cloud.designcenter.v1.ArtifactLocation.Builder, + com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder> + artifactLocationBuilder_; + + /** + * + * + *
+     * Optional. Specifies the destination for the generated IaC, which can be
+     * Cloud Storage or a Developer Connect repository.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the artifactLocation field is set. + */ + public boolean hasArtifactLocation() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Optional. Specifies the destination for the generated IaC, which can be
+     * Cloud Storage or a Developer Connect repository.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The artifactLocation. + */ + public com.google.cloud.designcenter.v1.ArtifactLocation getArtifactLocation() { + if (artifactLocationBuilder_ == null) { + return artifactLocation_ == null + ? com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance() + : artifactLocation_; + } else { + return artifactLocationBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Specifies the destination for the generated IaC, which can be
+     * Cloud Storage or a Developer Connect repository.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setArtifactLocation(com.google.cloud.designcenter.v1.ArtifactLocation value) { + if (artifactLocationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + artifactLocation_ = value; + } else { + artifactLocationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Specifies the destination for the generated IaC, which can be
+     * Cloud Storage or a Developer Connect repository.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setArtifactLocation( + com.google.cloud.designcenter.v1.ArtifactLocation.Builder builderForValue) { + if (artifactLocationBuilder_ == null) { + artifactLocation_ = builderForValue.build(); + } else { + artifactLocationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Specifies the destination for the generated IaC, which can be
+     * Cloud Storage or a Developer Connect repository.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeArtifactLocation(com.google.cloud.designcenter.v1.ArtifactLocation value) { + if (artifactLocationBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && artifactLocation_ != null + && artifactLocation_ + != com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance()) { + getArtifactLocationBuilder().mergeFrom(value); + } else { + artifactLocation_ = value; + } + } else { + artifactLocationBuilder_.mergeFrom(value); + } + if (artifactLocation_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Specifies the destination for the generated IaC, which can be
+     * Cloud Storage or a Developer Connect repository.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearArtifactLocation() { + bitField0_ = (bitField0_ & ~0x00000004); + artifactLocation_ = null; + if (artifactLocationBuilder_ != null) { + artifactLocationBuilder_.dispose(); + artifactLocationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Specifies the destination for the generated IaC, which can be
+     * Cloud Storage or a Developer Connect repository.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ArtifactLocation.Builder getArtifactLocationBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetArtifactLocationFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Specifies the destination for the generated IaC, which can be
+     * Cloud Storage or a Developer Connect repository.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder + getArtifactLocationOrBuilder() { + if (artifactLocationBuilder_ != null) { + return artifactLocationBuilder_.getMessageOrBuilder(); + } else { + return artifactLocation_ == null + ? com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance() + : artifactLocation_; + } + } + + /** + * + * + *
+     * Optional. Specifies the destination for the generated IaC, which can be
+     * Cloud Storage or a Developer Connect repository.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ArtifactLocation, + com.google.cloud.designcenter.v1.ArtifactLocation.Builder, + com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder> + internalGetArtifactLocationFieldBuilder() { + if (artifactLocationBuilder_ == null) { + artifactLocationBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ArtifactLocation, + com.google.cloud.designcenter.v1.ArtifactLocation.Builder, + com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder>( + getArtifactLocation(), getParentForChildren(), isClean()); + artifactLocation_ = null; + } + return artifactLocationBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest) + private static final com.google.cloud.designcenter.v1 + .GenerateApplicationTemplateRevisionIaCRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest(); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateApplicationTemplateRevisionIaCRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationTemplateRevisionIaCRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationTemplateRevisionIaCRequestOrBuilder.java new file mode 100644 index 000000000000..587a3f18f7ae --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationTemplateRevisionIaCRequestOrBuilder.java @@ -0,0 +1,135 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface GenerateApplicationTemplateRevisionIaCRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the application template revision.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The name of the application template revision.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. The IaC format to generate.
+   * 
+ * + * + * .google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest.IACFormat iac_format = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for iacFormat. + */ + int getIacFormatValue(); + + /** + * + * + *
+   * Optional. The IaC format to generate.
+   * 
+ * + * + * .google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest.IACFormat iac_format = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The iacFormat. + */ + com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest.IACFormat + getIacFormat(); + + /** + * + * + *
+   * Optional. Specifies the destination for the generated IaC, which can be
+   * Cloud Storage or a Developer Connect repository.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the artifactLocation field is set. + */ + boolean hasArtifactLocation(); + + /** + * + * + *
+   * Optional. Specifies the destination for the generated IaC, which can be
+   * Cloud Storage or a Developer Connect repository.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The artifactLocation. + */ + com.google.cloud.designcenter.v1.ArtifactLocation getArtifactLocation(); + + /** + * + * + *
+   * Optional. Specifies the destination for the generated IaC, which can be
+   * Cloud Storage or a Developer Connect repository.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder getArtifactLocationOrBuilder(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationTemplateRevisionIaCResponse.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationTemplateRevisionIaCResponse.java new file mode 100644 index 000000000000..2c473a307bc2 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationTemplateRevisionIaCResponse.java @@ -0,0 +1,1028 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Response message for GenerateApplicationTemplateRevisionIaC method.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCResponse} + */ +@com.google.protobuf.Generated +public final class GenerateApplicationTemplateRevisionIaCResponse + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCResponse) + GenerateApplicationTemplateRevisionIaCResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "GenerateApplicationTemplateRevisionIaCResponse"); + } + + // Use GenerateApplicationTemplateRevisionIaCResponse.newBuilder() to construct. + private GenerateApplicationTemplateRevisionIaCResponse( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GenerateApplicationTemplateRevisionIaCResponse() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GenerateApplicationTemplateRevisionIaCResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GenerateApplicationTemplateRevisionIaCResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCResponse.class, + com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCResponse.Builder + .class); + } + + private int bitField0_; + public static final int ARTIFACT_LOCATION_FIELD_NUMBER = 1; + private com.google.cloud.designcenter.v1.ArtifactLocation artifactLocation_; + + /** + * + * + *
+   * The destination where the generated IaC was written.
+   * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 1; + * + * @return Whether the artifactLocation field is set. + */ + @java.lang.Override + public boolean hasArtifactLocation() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * The destination where the generated IaC was written.
+   * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 1; + * + * @return The artifactLocation. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ArtifactLocation getArtifactLocation() { + return artifactLocation_ == null + ? com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance() + : artifactLocation_; + } + + /** + * + * + *
+   * The destination where the generated IaC was written.
+   * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 1; + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder getArtifactLocationOrBuilder() { + return artifactLocation_ == null + ? com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance() + : artifactLocation_; + } + + public static final int ROOT_MODULES_METADATA_FIELD_NUMBER = 2; + private com.google.cloud.designcenter.v1.RootModulesMetadata rootModulesMetadata_; + + /** + * + * + *
+   * Root modules metadata of the application template revision.
+   * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 2; + * + * @return Whether the rootModulesMetadata field is set. + */ + @java.lang.Override + public boolean hasRootModulesMetadata() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Root modules metadata of the application template revision.
+   * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 2; + * + * @return The rootModulesMetadata. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.RootModulesMetadata getRootModulesMetadata() { + return rootModulesMetadata_ == null + ? com.google.cloud.designcenter.v1.RootModulesMetadata.getDefaultInstance() + : rootModulesMetadata_; + } + + /** + * + * + *
+   * Root modules metadata of the application template revision.
+   * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 2; + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.RootModulesMetadataOrBuilder + getRootModulesMetadataOrBuilder() { + return rootModulesMetadata_ == null + ? com.google.cloud.designcenter.v1.RootModulesMetadata.getDefaultInstance() + : rootModulesMetadata_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getArtifactLocation()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getRootModulesMetadata()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getArtifactLocation()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRootModulesMetadata()); + } + 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.designcenter.v1.GenerateApplicationTemplateRevisionIaCResponse)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCResponse other = + (com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCResponse) obj; + + if (hasArtifactLocation() != other.hasArtifactLocation()) return false; + if (hasArtifactLocation()) { + if (!getArtifactLocation().equals(other.getArtifactLocation())) return false; + } + if (hasRootModulesMetadata() != other.hasRootModulesMetadata()) return false; + if (hasRootModulesMetadata()) { + if (!getRootModulesMetadata().equals(other.getRootModulesMetadata())) 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 (hasArtifactLocation()) { + hash = (37 * hash) + ARTIFACT_LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getArtifactLocation().hashCode(); + } + if (hasRootModulesMetadata()) { + hash = (37 * hash) + ROOT_MODULES_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getRootModulesMetadata().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCResponse + 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.designcenter.v1.GenerateApplicationTemplateRevisionIaCResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCResponse + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCResponse + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCResponse + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.GenerateApplicationTemplateRevisionIaCResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response message for GenerateApplicationTemplateRevisionIaC method.
+   * 
+ * + * Protobuf type {@code + * google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCResponse) + com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GenerateApplicationTemplateRevisionIaCResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GenerateApplicationTemplateRevisionIaCResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCResponse.class, + com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCResponse + .Builder.class); + } + + // Construct using + // com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetArtifactLocationFieldBuilder(); + internalGetRootModulesMetadataFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + artifactLocation_ = null; + if (artifactLocationBuilder_ != null) { + artifactLocationBuilder_.dispose(); + artifactLocationBuilder_ = null; + } + rootModulesMetadata_ = null; + if (rootModulesMetadataBuilder_ != null) { + rootModulesMetadataBuilder_.dispose(); + rootModulesMetadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GenerateApplicationTemplateRevisionIaCResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCResponse + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCResponse build() { + com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCResponse + buildPartial() { + com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCResponse result = + new com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.artifactLocation_ = + artifactLocationBuilder_ == null ? artifactLocation_ : artifactLocationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.rootModulesMetadata_ = + rootModulesMetadataBuilder_ == null + ? rootModulesMetadata_ + : rootModulesMetadataBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCResponse) { + return mergeFrom( + (com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCResponse) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCResponse other) { + if (other + == com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCResponse + .getDefaultInstance()) return this; + if (other.hasArtifactLocation()) { + mergeArtifactLocation(other.getArtifactLocation()); + } + if (other.hasRootModulesMetadata()) { + mergeRootModulesMetadata(other.getRootModulesMetadata()); + } + 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( + internalGetArtifactLocationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetRootModulesMetadataFieldBuilder().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.designcenter.v1.ArtifactLocation artifactLocation_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ArtifactLocation, + com.google.cloud.designcenter.v1.ArtifactLocation.Builder, + com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder> + artifactLocationBuilder_; + + /** + * + * + *
+     * The destination where the generated IaC was written.
+     * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 1; + * + * @return Whether the artifactLocation field is set. + */ + public boolean hasArtifactLocation() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * The destination where the generated IaC was written.
+     * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 1; + * + * @return The artifactLocation. + */ + public com.google.cloud.designcenter.v1.ArtifactLocation getArtifactLocation() { + if (artifactLocationBuilder_ == null) { + return artifactLocation_ == null + ? com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance() + : artifactLocation_; + } else { + return artifactLocationBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * The destination where the generated IaC was written.
+     * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 1; + */ + public Builder setArtifactLocation(com.google.cloud.designcenter.v1.ArtifactLocation value) { + if (artifactLocationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + artifactLocation_ = value; + } else { + artifactLocationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The destination where the generated IaC was written.
+     * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 1; + */ + public Builder setArtifactLocation( + com.google.cloud.designcenter.v1.ArtifactLocation.Builder builderForValue) { + if (artifactLocationBuilder_ == null) { + artifactLocation_ = builderForValue.build(); + } else { + artifactLocationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The destination where the generated IaC was written.
+     * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 1; + */ + public Builder mergeArtifactLocation(com.google.cloud.designcenter.v1.ArtifactLocation value) { + if (artifactLocationBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && artifactLocation_ != null + && artifactLocation_ + != com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance()) { + getArtifactLocationBuilder().mergeFrom(value); + } else { + artifactLocation_ = value; + } + } else { + artifactLocationBuilder_.mergeFrom(value); + } + if (artifactLocation_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The destination where the generated IaC was written.
+     * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 1; + */ + public Builder clearArtifactLocation() { + bitField0_ = (bitField0_ & ~0x00000001); + artifactLocation_ = null; + if (artifactLocationBuilder_ != null) { + artifactLocationBuilder_.dispose(); + artifactLocationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * The destination where the generated IaC was written.
+     * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 1; + */ + public com.google.cloud.designcenter.v1.ArtifactLocation.Builder getArtifactLocationBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetArtifactLocationFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * The destination where the generated IaC was written.
+     * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 1; + */ + public com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder + getArtifactLocationOrBuilder() { + if (artifactLocationBuilder_ != null) { + return artifactLocationBuilder_.getMessageOrBuilder(); + } else { + return artifactLocation_ == null + ? com.google.cloud.designcenter.v1.ArtifactLocation.getDefaultInstance() + : artifactLocation_; + } + } + + /** + * + * + *
+     * The destination where the generated IaC was written.
+     * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ArtifactLocation, + com.google.cloud.designcenter.v1.ArtifactLocation.Builder, + com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder> + internalGetArtifactLocationFieldBuilder() { + if (artifactLocationBuilder_ == null) { + artifactLocationBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ArtifactLocation, + com.google.cloud.designcenter.v1.ArtifactLocation.Builder, + com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder>( + getArtifactLocation(), getParentForChildren(), isClean()); + artifactLocation_ = null; + } + return artifactLocationBuilder_; + } + + private com.google.cloud.designcenter.v1.RootModulesMetadata rootModulesMetadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.RootModulesMetadata, + com.google.cloud.designcenter.v1.RootModulesMetadata.Builder, + com.google.cloud.designcenter.v1.RootModulesMetadataOrBuilder> + rootModulesMetadataBuilder_; + + /** + * + * + *
+     * Root modules metadata of the application template revision.
+     * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 2; + * + * @return Whether the rootModulesMetadata field is set. + */ + public boolean hasRootModulesMetadata() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Root modules metadata of the application template revision.
+     * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 2; + * + * @return The rootModulesMetadata. + */ + public com.google.cloud.designcenter.v1.RootModulesMetadata getRootModulesMetadata() { + if (rootModulesMetadataBuilder_ == null) { + return rootModulesMetadata_ == null + ? com.google.cloud.designcenter.v1.RootModulesMetadata.getDefaultInstance() + : rootModulesMetadata_; + } else { + return rootModulesMetadataBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Root modules metadata of the application template revision.
+     * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 2; + */ + public Builder setRootModulesMetadata( + com.google.cloud.designcenter.v1.RootModulesMetadata value) { + if (rootModulesMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rootModulesMetadata_ = value; + } else { + rootModulesMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Root modules metadata of the application template revision.
+     * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 2; + */ + public Builder setRootModulesMetadata( + com.google.cloud.designcenter.v1.RootModulesMetadata.Builder builderForValue) { + if (rootModulesMetadataBuilder_ == null) { + rootModulesMetadata_ = builderForValue.build(); + } else { + rootModulesMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Root modules metadata of the application template revision.
+     * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 2; + */ + public Builder mergeRootModulesMetadata( + com.google.cloud.designcenter.v1.RootModulesMetadata value) { + if (rootModulesMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && rootModulesMetadata_ != null + && rootModulesMetadata_ + != com.google.cloud.designcenter.v1.RootModulesMetadata.getDefaultInstance()) { + getRootModulesMetadataBuilder().mergeFrom(value); + } else { + rootModulesMetadata_ = value; + } + } else { + rootModulesMetadataBuilder_.mergeFrom(value); + } + if (rootModulesMetadata_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Root modules metadata of the application template revision.
+     * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 2; + */ + public Builder clearRootModulesMetadata() { + bitField0_ = (bitField0_ & ~0x00000002); + rootModulesMetadata_ = null; + if (rootModulesMetadataBuilder_ != null) { + rootModulesMetadataBuilder_.dispose(); + rootModulesMetadataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Root modules metadata of the application template revision.
+     * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 2; + */ + public com.google.cloud.designcenter.v1.RootModulesMetadata.Builder + getRootModulesMetadataBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetRootModulesMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Root modules metadata of the application template revision.
+     * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 2; + */ + public com.google.cloud.designcenter.v1.RootModulesMetadataOrBuilder + getRootModulesMetadataOrBuilder() { + if (rootModulesMetadataBuilder_ != null) { + return rootModulesMetadataBuilder_.getMessageOrBuilder(); + } else { + return rootModulesMetadata_ == null + ? com.google.cloud.designcenter.v1.RootModulesMetadata.getDefaultInstance() + : rootModulesMetadata_; + } + } + + /** + * + * + *
+     * Root modules metadata of the application template revision.
+     * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.RootModulesMetadata, + com.google.cloud.designcenter.v1.RootModulesMetadata.Builder, + com.google.cloud.designcenter.v1.RootModulesMetadataOrBuilder> + internalGetRootModulesMetadataFieldBuilder() { + if (rootModulesMetadataBuilder_ == null) { + rootModulesMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.RootModulesMetadata, + com.google.cloud.designcenter.v1.RootModulesMetadata.Builder, + com.google.cloud.designcenter.v1.RootModulesMetadataOrBuilder>( + getRootModulesMetadata(), getParentForChildren(), isClean()); + rootModulesMetadata_ = null; + } + return rootModulesMetadataBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCResponse) + private static final com.google.cloud.designcenter.v1 + .GenerateApplicationTemplateRevisionIaCResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCResponse(); + } + + public static com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateApplicationTemplateRevisionIaCResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.GenerateApplicationTemplateRevisionIaCResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationTemplateRevisionIaCResponseOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationTemplateRevisionIaCResponseOrBuilder.java new file mode 100644 index 000000000000..bf00fe2a0df0 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateApplicationTemplateRevisionIaCResponseOrBuilder.java @@ -0,0 +1,102 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface GenerateApplicationTemplateRevisionIaCResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The destination where the generated IaC was written.
+   * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 1; + * + * @return Whether the artifactLocation field is set. + */ + boolean hasArtifactLocation(); + + /** + * + * + *
+   * The destination where the generated IaC was written.
+   * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 1; + * + * @return The artifactLocation. + */ + com.google.cloud.designcenter.v1.ArtifactLocation getArtifactLocation(); + + /** + * + * + *
+   * The destination where the generated IaC was written.
+   * 
+ * + * .google.cloud.designcenter.v1.ArtifactLocation artifact_location = 1; + */ + com.google.cloud.designcenter.v1.ArtifactLocationOrBuilder getArtifactLocationOrBuilder(); + + /** + * + * + *
+   * Root modules metadata of the application template revision.
+   * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 2; + * + * @return Whether the rootModulesMetadata field is set. + */ + boolean hasRootModulesMetadata(); + + /** + * + * + *
+   * Root modules metadata of the application template revision.
+   * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 2; + * + * @return The rootModulesMetadata. + */ + com.google.cloud.designcenter.v1.RootModulesMetadata getRootModulesMetadata(); + + /** + * + * + *
+   * Root modules metadata of the application template revision.
+   * 
+ * + * .google.cloud.designcenter.v1.RootModulesMetadata root_modules_metadata = 2; + */ + com.google.cloud.designcenter.v1.RootModulesMetadataOrBuilder getRootModulesMetadataOrBuilder(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateAssessmentReportOperationMetadata.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateAssessmentReportOperationMetadata.java new file mode 100644 index 000000000000..2f69ce7a8378 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateAssessmentReportOperationMetadata.java @@ -0,0 +1,843 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/designcenter.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Ephemeral metadata depicting the state of assessment report generation.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata} + */ +@com.google.protobuf.Generated +public final class GenerateAssessmentReportOperationMetadata + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata) + GenerateAssessmentReportOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "GenerateAssessmentReportOperationMetadata"); + } + + // Use GenerateAssessmentReportOperationMetadata.newBuilder() to construct. + private GenerateAssessmentReportOperationMetadata( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GenerateAssessmentReportOperationMetadata() { + step_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DesigncenterProto + .internal_static_google_cloud_designcenter_v1_GenerateAssessmentReportOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DesigncenterProto + .internal_static_google_cloud_designcenter_v1_GenerateAssessmentReportOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata.class, + com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata.Builder + .class); + } + + /** + * + * + *
+   * Steps in generating an assessment report.
+   * 
+ * + * Protobuf enum {@code + * google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata.AssessmentStep} + */ + public enum AssessmentStep implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified step.
+     * 
+ * + * ASSESSMENT_STEP_UNSPECIFIED = 0; + */ + ASSESSMENT_STEP_UNSPECIFIED(0), + /** + * + * + *
+     * Generating Terraform fast plan.
+     * 
+ * + * FAST_PLAN = 1; + */ + FAST_PLAN(1), + /** + * + * + *
+     * Generating BPBD assessment report.
+     * 
+ * + * ASSESSMENT_REPORT = 2; + */ + ASSESSMENT_REPORT(2), + /** + * + * + *
+     * Succeeded.
+     * 
+ * + * SUCCEEDED = 3; + */ + SUCCEEDED(3), + /** + * + * + *
+     * Failed.
+     * 
+ * + * FAILED = 4; + */ + FAILED(4), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AssessmentStep"); + } + + /** + * + * + *
+     * Unspecified step.
+     * 
+ * + * ASSESSMENT_STEP_UNSPECIFIED = 0; + */ + public static final int ASSESSMENT_STEP_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Generating Terraform fast plan.
+     * 
+ * + * FAST_PLAN = 1; + */ + public static final int FAST_PLAN_VALUE = 1; + + /** + * + * + *
+     * Generating BPBD assessment report.
+     * 
+ * + * ASSESSMENT_REPORT = 2; + */ + public static final int ASSESSMENT_REPORT_VALUE = 2; + + /** + * + * + *
+     * Succeeded.
+     * 
+ * + * SUCCEEDED = 3; + */ + public static final int SUCCEEDED_VALUE = 3; + + /** + * + * + *
+     * Failed.
+     * 
+ * + * 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 AssessmentStep 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 AssessmentStep forNumber(int value) { + switch (value) { + case 0: + return ASSESSMENT_STEP_UNSPECIFIED; + case 1: + return FAST_PLAN; + case 2: + return ASSESSMENT_REPORT; + case 3: + return SUCCEEDED; + 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 AssessmentStep findValueByNumber(int number) { + return AssessmentStep.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata + .getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final AssessmentStep[] VALUES = values(); + + public static AssessmentStep 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 AssessmentStep(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata.AssessmentStep) + } + + public static final int STEP_FIELD_NUMBER = 1; + private int step_ = 0; + + /** + * + * + *
+   * Output only. The current step of the generate assessment report operation.
+   * 
+ * + * + * .google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata.AssessmentStep step = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for step. + */ + @java.lang.Override + public int getStepValue() { + return step_; + } + + /** + * + * + *
+   * Output only. The current step of the generate assessment report operation.
+   * 
+ * + * + * .google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata.AssessmentStep step = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The step. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata.AssessmentStep + getStep() { + com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata.AssessmentStep + result = + com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata + .AssessmentStep.forNumber(step_); + return result == null + ? com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata.AssessmentStep + .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 (step_ + != com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata.AssessmentStep + .ASSESSMENT_STEP_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, step_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (step_ + != com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata.AssessmentStep + .ASSESSMENT_STEP_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, step_); + } + 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.designcenter.v1.GenerateAssessmentReportOperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata other = + (com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata) obj; + + if (step_ != other.step_) 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) + STEP_FIELD_NUMBER; + hash = (53 * hash) + step_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata + 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.designcenter.v1.GenerateAssessmentReportOperationMetadata + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.GenerateAssessmentReportOperationMetadata 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Ephemeral metadata depicting the state of assessment report generation.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata) + com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DesigncenterProto + .internal_static_google_cloud_designcenter_v1_GenerateAssessmentReportOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DesigncenterProto + .internal_static_google_cloud_designcenter_v1_GenerateAssessmentReportOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata.class, + com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata.Builder + .class); + } + + // Construct using + // com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + step_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.DesigncenterProto + .internal_static_google_cloud_designcenter_v1_GenerateAssessmentReportOperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata build() { + com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata + buildPartial() { + com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata result = + new com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.step_ = step_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata) { + return mergeFrom( + (com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata other) { + if (other + == com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata + .getDefaultInstance()) return this; + if (other.step_ != 0) { + setStepValue(other.getStepValue()); + } + 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: + { + step_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + 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 step_ = 0; + + /** + * + * + *
+     * Output only. The current step of the generate assessment report operation.
+     * 
+ * + * + * .google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata.AssessmentStep step = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for step. + */ + @java.lang.Override + public int getStepValue() { + return step_; + } + + /** + * + * + *
+     * Output only. The current step of the generate assessment report operation.
+     * 
+ * + * + * .google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata.AssessmentStep step = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for step to set. + * @return This builder for chaining. + */ + public Builder setStepValue(int value) { + step_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The current step of the generate assessment report operation.
+     * 
+ * + * + * .google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata.AssessmentStep step = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The step. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata.AssessmentStep + getStep() { + com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata.AssessmentStep + result = + com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata + .AssessmentStep.forNumber(step_); + return result == null + ? com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata + .AssessmentStep.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Output only. The current step of the generate assessment report operation.
+     * 
+ * + * + * .google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata.AssessmentStep step = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The step to set. + * @return This builder for chaining. + */ + public Builder setStep( + com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata.AssessmentStep + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + step_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The current step of the generate assessment report operation.
+     * 
+ * + * + * .google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata.AssessmentStep step = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearStep() { + bitField0_ = (bitField0_ & ~0x00000001); + step_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata) + private static final com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata(); + } + + public static com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateAssessmentReportOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.GenerateAssessmentReportOperationMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateAssessmentReportOperationMetadataOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateAssessmentReportOperationMetadataOrBuilder.java new file mode 100644 index 000000000000..2d99583b3d7f --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateAssessmentReportOperationMetadataOrBuilder.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/designcenter.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface GenerateAssessmentReportOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The current step of the generate assessment report operation.
+   * 
+ * + * + * .google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata.AssessmentStep step = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for step. + */ + int getStepValue(); + + /** + * + * + *
+   * Output only. The current step of the generate assessment report operation.
+   * 
+ * + * + * .google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata.AssessmentStep step = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The step. + */ + com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata.AssessmentStep + getStep(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateAssessmentReportRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateAssessmentReportRequest.java new file mode 100644 index 000000000000..b0505102b6cf --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateAssessmentReportRequest.java @@ -0,0 +1,1048 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/best_practices_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Deprecated: Use GenerateTerraformPlanAssessmentReportRequest instead.
+ *
+ * Message for the request to generate a best practice report for a given
+ * Terraform plan.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.GenerateAssessmentReportRequest} + */ +@com.google.protobuf.Generated +@java.lang.Deprecated +public final class GenerateAssessmentReportRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.GenerateAssessmentReportRequest) + GenerateAssessmentReportRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "GenerateAssessmentReportRequest"); + } + + // Use GenerateAssessmentReportRequest.newBuilder() to construct. + private GenerateAssessmentReportRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GenerateAssessmentReportRequest() { + terraformPlan_ = com.google.protobuf.ByteString.EMPTY; + additionalFrameworks_ = com.google.protobuf.LazyStringArrayList.emptyList(); + spaceName_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GenerateAssessmentReportRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GenerateAssessmentReportRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.GenerateAssessmentReportRequest.class, + com.google.cloud.designcenter.v1.GenerateAssessmentReportRequest.Builder.class); + } + + public static final int TERRAFORM_PLAN_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString terraformPlan_ = com.google.protobuf.ByteString.EMPTY; + + /** + * + * + *
+   * Required. Terraform plan bytes.
+   * 
+ * + * bytes terraform_plan = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The terraformPlan. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTerraformPlan() { + return terraformPlan_; + } + + public static final int ADDITIONAL_FRAMEWORKS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList additionalFrameworks_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Optional. Additional Frameworks to run assessment against. If empty, run
+   * against default frameworks. Frameworks refers to the policies.
+   * 
+ * + * repeated string additional_frameworks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the additionalFrameworks. + */ + public com.google.protobuf.ProtocolStringList getAdditionalFrameworksList() { + return additionalFrameworks_; + } + + /** + * + * + *
+   * Optional. Additional Frameworks to run assessment against. If empty, run
+   * against default frameworks. Frameworks refers to the policies.
+   * 
+ * + * repeated string additional_frameworks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of additionalFrameworks. + */ + public int getAdditionalFrameworksCount() { + return additionalFrameworks_.size(); + } + + /** + * + * + *
+   * Optional. Additional Frameworks to run assessment against. If empty, run
+   * against default frameworks. Frameworks refers to the policies.
+   * 
+ * + * repeated string additional_frameworks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The additionalFrameworks at the given index. + */ + public java.lang.String getAdditionalFrameworks(int index) { + return additionalFrameworks_.get(index); + } + + /** + * + * + *
+   * Optional. Additional Frameworks to run assessment against. If empty, run
+   * against default frameworks. Frameworks refers to the policies.
+   * 
+ * + * repeated string additional_frameworks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the additionalFrameworks at the given index. + */ + public com.google.protobuf.ByteString getAdditionalFrameworksBytes(int index) { + return additionalFrameworks_.getByteString(index); + } + + public static final int SPACE_NAME_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object spaceName_ = ""; + + /** + * + * + *
+   * Required. The name of the space at which Generate Assessment Report is
+   * called. Format: `projects/$project/locations/$location/spaces/$space`
+   * 
+ * + * + * string space_name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The spaceName. + */ + @java.lang.Override + public java.lang.String getSpaceName() { + java.lang.Object ref = spaceName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + spaceName_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The name of the space at which Generate Assessment Report is
+   * called. Format: `projects/$project/locations/$location/spaces/$space`
+   * 
+ * + * + * string space_name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for spaceName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSpaceNameBytes() { + java.lang.Object ref = spaceName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + spaceName_ = 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 (!terraformPlan_.isEmpty()) { + output.writeBytes(1, terraformPlan_); + } + for (int i = 0; i < additionalFrameworks_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, additionalFrameworks_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(spaceName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, spaceName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!terraformPlan_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, terraformPlan_); + } + { + int dataSize = 0; + for (int i = 0; i < additionalFrameworks_.size(); i++) { + dataSize += computeStringSizeNoTag(additionalFrameworks_.getRaw(i)); + } + size += dataSize; + size += 1 * getAdditionalFrameworksList().size(); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(spaceName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, spaceName_); + } + 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.designcenter.v1.GenerateAssessmentReportRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.GenerateAssessmentReportRequest other = + (com.google.cloud.designcenter.v1.GenerateAssessmentReportRequest) obj; + + if (!getTerraformPlan().equals(other.getTerraformPlan())) return false; + if (!getAdditionalFrameworksList().equals(other.getAdditionalFrameworksList())) return false; + if (!getSpaceName().equals(other.getSpaceName())) 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) + TERRAFORM_PLAN_FIELD_NUMBER; + hash = (53 * hash) + getTerraformPlan().hashCode(); + if (getAdditionalFrameworksCount() > 0) { + hash = (37 * hash) + ADDITIONAL_FRAMEWORKS_FIELD_NUMBER; + hash = (53 * hash) + getAdditionalFrameworksList().hashCode(); + } + hash = (37 * hash) + SPACE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getSpaceName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.GenerateAssessmentReportRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GenerateAssessmentReportRequest 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.designcenter.v1.GenerateAssessmentReportRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GenerateAssessmentReportRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GenerateAssessmentReportRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GenerateAssessmentReportRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GenerateAssessmentReportRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GenerateAssessmentReportRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GenerateAssessmentReportRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GenerateAssessmentReportRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GenerateAssessmentReportRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GenerateAssessmentReportRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.GenerateAssessmentReportRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Deprecated: Use GenerateTerraformPlanAssessmentReportRequest instead.
+   *
+   * Message for the request to generate a best practice report for a given
+   * Terraform plan.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.GenerateAssessmentReportRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.GenerateAssessmentReportRequest) + com.google.cloud.designcenter.v1.GenerateAssessmentReportRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GenerateAssessmentReportRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GenerateAssessmentReportRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.GenerateAssessmentReportRequest.class, + com.google.cloud.designcenter.v1.GenerateAssessmentReportRequest.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.GenerateAssessmentReportRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + terraformPlan_ = com.google.protobuf.ByteString.EMPTY; + additionalFrameworks_ = com.google.protobuf.LazyStringArrayList.emptyList(); + spaceName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GenerateAssessmentReportRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GenerateAssessmentReportRequest + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.GenerateAssessmentReportRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GenerateAssessmentReportRequest build() { + com.google.cloud.designcenter.v1.GenerateAssessmentReportRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GenerateAssessmentReportRequest buildPartial() { + com.google.cloud.designcenter.v1.GenerateAssessmentReportRequest result = + new com.google.cloud.designcenter.v1.GenerateAssessmentReportRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.GenerateAssessmentReportRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.terraformPlan_ = terraformPlan_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + additionalFrameworks_.makeImmutable(); + result.additionalFrameworks_ = additionalFrameworks_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.spaceName_ = spaceName_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.GenerateAssessmentReportRequest) { + return mergeFrom((com.google.cloud.designcenter.v1.GenerateAssessmentReportRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.designcenter.v1.GenerateAssessmentReportRequest other) { + if (other + == com.google.cloud.designcenter.v1.GenerateAssessmentReportRequest.getDefaultInstance()) + return this; + if (!other.getTerraformPlan().isEmpty()) { + setTerraformPlan(other.getTerraformPlan()); + } + if (!other.additionalFrameworks_.isEmpty()) { + if (additionalFrameworks_.isEmpty()) { + additionalFrameworks_ = other.additionalFrameworks_; + bitField0_ |= 0x00000002; + } else { + ensureAdditionalFrameworksIsMutable(); + additionalFrameworks_.addAll(other.additionalFrameworks_); + } + onChanged(); + } + if (!other.getSpaceName().isEmpty()) { + spaceName_ = other.spaceName_; + 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: + { + terraformPlan_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAdditionalFrameworksIsMutable(); + additionalFrameworks_.add(s); + break; + } // case 18 + case 26: + { + spaceName_ = 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 com.google.protobuf.ByteString terraformPlan_ = com.google.protobuf.ByteString.EMPTY; + + /** + * + * + *
+     * Required. Terraform plan bytes.
+     * 
+ * + * bytes terraform_plan = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The terraformPlan. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTerraformPlan() { + return terraformPlan_; + } + + /** + * + * + *
+     * Required. Terraform plan bytes.
+     * 
+ * + * bytes terraform_plan = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The terraformPlan to set. + * @return This builder for chaining. + */ + public Builder setTerraformPlan(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + terraformPlan_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Terraform plan bytes.
+     * 
+ * + * bytes terraform_plan = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearTerraformPlan() { + bitField0_ = (bitField0_ & ~0x00000001); + terraformPlan_ = getDefaultInstance().getTerraformPlan(); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList additionalFrameworks_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureAdditionalFrameworksIsMutable() { + if (!additionalFrameworks_.isModifiable()) { + additionalFrameworks_ = new com.google.protobuf.LazyStringArrayList(additionalFrameworks_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
+     * Optional. Additional Frameworks to run assessment against. If empty, run
+     * against default frameworks. Frameworks refers to the policies.
+     * 
+ * + * repeated string additional_frameworks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the additionalFrameworks. + */ + public com.google.protobuf.ProtocolStringList getAdditionalFrameworksList() { + additionalFrameworks_.makeImmutable(); + return additionalFrameworks_; + } + + /** + * + * + *
+     * Optional. Additional Frameworks to run assessment against. If empty, run
+     * against default frameworks. Frameworks refers to the policies.
+     * 
+ * + * repeated string additional_frameworks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of additionalFrameworks. + */ + public int getAdditionalFrameworksCount() { + return additionalFrameworks_.size(); + } + + /** + * + * + *
+     * Optional. Additional Frameworks to run assessment against. If empty, run
+     * against default frameworks. Frameworks refers to the policies.
+     * 
+ * + * repeated string additional_frameworks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The additionalFrameworks at the given index. + */ + public java.lang.String getAdditionalFrameworks(int index) { + return additionalFrameworks_.get(index); + } + + /** + * + * + *
+     * Optional. Additional Frameworks to run assessment against. If empty, run
+     * against default frameworks. Frameworks refers to the policies.
+     * 
+ * + * repeated string additional_frameworks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the additionalFrameworks at the given index. + */ + public com.google.protobuf.ByteString getAdditionalFrameworksBytes(int index) { + return additionalFrameworks_.getByteString(index); + } + + /** + * + * + *
+     * Optional. Additional Frameworks to run assessment against. If empty, run
+     * against default frameworks. Frameworks refers to the policies.
+     * 
+ * + * repeated string additional_frameworks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The additionalFrameworks to set. + * @return This builder for chaining. + */ + public Builder setAdditionalFrameworks(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdditionalFrameworksIsMutable(); + additionalFrameworks_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Additional Frameworks to run assessment against. If empty, run
+     * against default frameworks. Frameworks refers to the policies.
+     * 
+ * + * repeated string additional_frameworks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The additionalFrameworks to add. + * @return This builder for chaining. + */ + public Builder addAdditionalFrameworks(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdditionalFrameworksIsMutable(); + additionalFrameworks_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Additional Frameworks to run assessment against. If empty, run
+     * against default frameworks. Frameworks refers to the policies.
+     * 
+ * + * repeated string additional_frameworks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The additionalFrameworks to add. + * @return This builder for chaining. + */ + public Builder addAllAdditionalFrameworks(java.lang.Iterable values) { + ensureAdditionalFrameworksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, additionalFrameworks_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Additional Frameworks to run assessment against. If empty, run
+     * against default frameworks. Frameworks refers to the policies.
+     * 
+ * + * repeated string additional_frameworks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearAdditionalFrameworks() { + additionalFrameworks_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Additional Frameworks to run assessment against. If empty, run
+     * against default frameworks. Frameworks refers to the policies.
+     * 
+ * + * repeated string additional_frameworks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the additionalFrameworks to add. + * @return This builder for chaining. + */ + public Builder addAdditionalFrameworksBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAdditionalFrameworksIsMutable(); + additionalFrameworks_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object spaceName_ = ""; + + /** + * + * + *
+     * Required. The name of the space at which Generate Assessment Report is
+     * called. Format: `projects/$project/locations/$location/spaces/$space`
+     * 
+ * + * + * string space_name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The spaceName. + */ + public java.lang.String getSpaceName() { + java.lang.Object ref = spaceName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + spaceName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The name of the space at which Generate Assessment Report is
+     * called. Format: `projects/$project/locations/$location/spaces/$space`
+     * 
+ * + * + * string space_name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for spaceName. + */ + public com.google.protobuf.ByteString getSpaceNameBytes() { + java.lang.Object ref = spaceName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + spaceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The name of the space at which Generate Assessment Report is
+     * called. Format: `projects/$project/locations/$location/spaces/$space`
+     * 
+ * + * + * string space_name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The spaceName to set. + * @return This builder for chaining. + */ + public Builder setSpaceName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + spaceName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The name of the space at which Generate Assessment Report is
+     * called. Format: `projects/$project/locations/$location/spaces/$space`
+     * 
+ * + * + * string space_name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearSpaceName() { + spaceName_ = getDefaultInstance().getSpaceName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The name of the space at which Generate Assessment Report is
+     * called. Format: `projects/$project/locations/$location/spaces/$space`
+     * 
+ * + * + * string space_name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for spaceName to set. + * @return This builder for chaining. + */ + public Builder setSpaceNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + spaceName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.GenerateAssessmentReportRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.GenerateAssessmentReportRequest) + private static final com.google.cloud.designcenter.v1.GenerateAssessmentReportRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.GenerateAssessmentReportRequest(); + } + + public static com.google.cloud.designcenter.v1.GenerateAssessmentReportRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateAssessmentReportRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.GenerateAssessmentReportRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateAssessmentReportRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateAssessmentReportRequestOrBuilder.java new file mode 100644 index 000000000000..c8b6dfce3148 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateAssessmentReportRequestOrBuilder.java @@ -0,0 +1,136 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/best_practices_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +@java.lang.Deprecated +public interface GenerateAssessmentReportRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.GenerateAssessmentReportRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Terraform plan bytes.
+   * 
+ * + * bytes terraform_plan = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The terraformPlan. + */ + com.google.protobuf.ByteString getTerraformPlan(); + + /** + * + * + *
+   * Optional. Additional Frameworks to run assessment against. If empty, run
+   * against default frameworks. Frameworks refers to the policies.
+   * 
+ * + * repeated string additional_frameworks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the additionalFrameworks. + */ + java.util.List getAdditionalFrameworksList(); + + /** + * + * + *
+   * Optional. Additional Frameworks to run assessment against. If empty, run
+   * against default frameworks. Frameworks refers to the policies.
+   * 
+ * + * repeated string additional_frameworks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of additionalFrameworks. + */ + int getAdditionalFrameworksCount(); + + /** + * + * + *
+   * Optional. Additional Frameworks to run assessment against. If empty, run
+   * against default frameworks. Frameworks refers to the policies.
+   * 
+ * + * repeated string additional_frameworks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The additionalFrameworks at the given index. + */ + java.lang.String getAdditionalFrameworks(int index); + + /** + * + * + *
+   * Optional. Additional Frameworks to run assessment against. If empty, run
+   * against default frameworks. Frameworks refers to the policies.
+   * 
+ * + * repeated string additional_frameworks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the additionalFrameworks at the given index. + */ + com.google.protobuf.ByteString getAdditionalFrameworksBytes(int index); + + /** + * + * + *
+   * Required. The name of the space at which Generate Assessment Report is
+   * called. Format: `projects/$project/locations/$location/spaces/$space`
+   * 
+ * + * + * string space_name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The spaceName. + */ + java.lang.String getSpaceName(); + + /** + * + * + *
+   * Required. The name of the space at which Generate Assessment Report is
+   * called. Format: `projects/$project/locations/$location/spaces/$space`
+   * 
+ * + * + * string space_name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for spaceName. + */ + com.google.protobuf.ByteString getSpaceNameBytes(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateAssessmentReportResponse.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateAssessmentReportResponse.java new file mode 100644 index 000000000000..caa95ce82dcf --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateAssessmentReportResponse.java @@ -0,0 +1,718 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/best_practices_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Deprecated: Use GenerateTerraformPlanAssessmentReportResponse instead.
+ *
+ * Response for GenerateAssessmentReport.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.GenerateAssessmentReportResponse} + */ +@com.google.protobuf.Generated +@java.lang.Deprecated +public final class GenerateAssessmentReportResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.GenerateAssessmentReportResponse) + GenerateAssessmentReportResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "GenerateAssessmentReportResponse"); + } + + // Use GenerateAssessmentReportResponse.newBuilder() to construct. + private GenerateAssessmentReportResponse( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GenerateAssessmentReportResponse() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GenerateAssessmentReportResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GenerateAssessmentReportResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.GenerateAssessmentReportResponse.class, + com.google.cloud.designcenter.v1.GenerateAssessmentReportResponse.Builder.class); + } + + private int bitField0_; + public static final int ASSESSMENT_REPORT_FIELD_NUMBER = 1; + private com.google.cloud.designcenter.v1.AssessmentReport assessmentReport_; + + /** + * + * + *
+   * Aggregated assessment report from all domains.
+   * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1; + * + * @return Whether the assessmentReport field is set. + */ + @java.lang.Override + public boolean hasAssessmentReport() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Aggregated assessment report from all domains.
+   * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1; + * + * @return The assessmentReport. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.AssessmentReport getAssessmentReport() { + return assessmentReport_ == null + ? com.google.cloud.designcenter.v1.AssessmentReport.getDefaultInstance() + : assessmentReport_; + } + + /** + * + * + *
+   * Aggregated assessment report from all domains.
+   * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1; + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.AssessmentReportOrBuilder getAssessmentReportOrBuilder() { + return assessmentReport_ == null + ? com.google.cloud.designcenter.v1.AssessmentReport.getDefaultInstance() + : assessmentReport_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getAssessmentReport()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAssessmentReport()); + } + 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.designcenter.v1.GenerateAssessmentReportResponse)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.GenerateAssessmentReportResponse other = + (com.google.cloud.designcenter.v1.GenerateAssessmentReportResponse) obj; + + if (hasAssessmentReport() != other.hasAssessmentReport()) return false; + if (hasAssessmentReport()) { + if (!getAssessmentReport().equals(other.getAssessmentReport())) 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 (hasAssessmentReport()) { + hash = (37 * hash) + ASSESSMENT_REPORT_FIELD_NUMBER; + hash = (53 * hash) + getAssessmentReport().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.GenerateAssessmentReportResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GenerateAssessmentReportResponse 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.designcenter.v1.GenerateAssessmentReportResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GenerateAssessmentReportResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GenerateAssessmentReportResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GenerateAssessmentReportResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GenerateAssessmentReportResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GenerateAssessmentReportResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GenerateAssessmentReportResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GenerateAssessmentReportResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GenerateAssessmentReportResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GenerateAssessmentReportResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.GenerateAssessmentReportResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Deprecated: Use GenerateTerraformPlanAssessmentReportResponse instead.
+   *
+   * Response for GenerateAssessmentReport.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.GenerateAssessmentReportResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.GenerateAssessmentReportResponse) + com.google.cloud.designcenter.v1.GenerateAssessmentReportResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GenerateAssessmentReportResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GenerateAssessmentReportResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.GenerateAssessmentReportResponse.class, + com.google.cloud.designcenter.v1.GenerateAssessmentReportResponse.Builder.class); + } + + // Construct using + // com.google.cloud.designcenter.v1.GenerateAssessmentReportResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetAssessmentReportFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + assessmentReport_ = null; + if (assessmentReportBuilder_ != null) { + assessmentReportBuilder_.dispose(); + assessmentReportBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GenerateAssessmentReportResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GenerateAssessmentReportResponse + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.GenerateAssessmentReportResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GenerateAssessmentReportResponse build() { + com.google.cloud.designcenter.v1.GenerateAssessmentReportResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GenerateAssessmentReportResponse buildPartial() { + com.google.cloud.designcenter.v1.GenerateAssessmentReportResponse result = + new com.google.cloud.designcenter.v1.GenerateAssessmentReportResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.GenerateAssessmentReportResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.assessmentReport_ = + assessmentReportBuilder_ == null ? assessmentReport_ : assessmentReportBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.GenerateAssessmentReportResponse) { + return mergeFrom((com.google.cloud.designcenter.v1.GenerateAssessmentReportResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.designcenter.v1.GenerateAssessmentReportResponse other) { + if (other + == com.google.cloud.designcenter.v1.GenerateAssessmentReportResponse.getDefaultInstance()) + return this; + if (other.hasAssessmentReport()) { + mergeAssessmentReport(other.getAssessmentReport()); + } + 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( + internalGetAssessmentReportFieldBuilder().getBuilder(), extensionRegistry); + 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 com.google.cloud.designcenter.v1.AssessmentReport assessmentReport_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.AssessmentReport, + com.google.cloud.designcenter.v1.AssessmentReport.Builder, + com.google.cloud.designcenter.v1.AssessmentReportOrBuilder> + assessmentReportBuilder_; + + /** + * + * + *
+     * Aggregated assessment report from all domains.
+     * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1; + * + * @return Whether the assessmentReport field is set. + */ + public boolean hasAssessmentReport() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Aggregated assessment report from all domains.
+     * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1; + * + * @return The assessmentReport. + */ + public com.google.cloud.designcenter.v1.AssessmentReport getAssessmentReport() { + if (assessmentReportBuilder_ == null) { + return assessmentReport_ == null + ? com.google.cloud.designcenter.v1.AssessmentReport.getDefaultInstance() + : assessmentReport_; + } else { + return assessmentReportBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Aggregated assessment report from all domains.
+     * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1; + */ + public Builder setAssessmentReport(com.google.cloud.designcenter.v1.AssessmentReport value) { + if (assessmentReportBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + assessmentReport_ = value; + } else { + assessmentReportBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Aggregated assessment report from all domains.
+     * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1; + */ + public Builder setAssessmentReport( + com.google.cloud.designcenter.v1.AssessmentReport.Builder builderForValue) { + if (assessmentReportBuilder_ == null) { + assessmentReport_ = builderForValue.build(); + } else { + assessmentReportBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Aggregated assessment report from all domains.
+     * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1; + */ + public Builder mergeAssessmentReport(com.google.cloud.designcenter.v1.AssessmentReport value) { + if (assessmentReportBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && assessmentReport_ != null + && assessmentReport_ + != com.google.cloud.designcenter.v1.AssessmentReport.getDefaultInstance()) { + getAssessmentReportBuilder().mergeFrom(value); + } else { + assessmentReport_ = value; + } + } else { + assessmentReportBuilder_.mergeFrom(value); + } + if (assessmentReport_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Aggregated assessment report from all domains.
+     * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1; + */ + public Builder clearAssessmentReport() { + bitField0_ = (bitField0_ & ~0x00000001); + assessmentReport_ = null; + if (assessmentReportBuilder_ != null) { + assessmentReportBuilder_.dispose(); + assessmentReportBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Aggregated assessment report from all domains.
+     * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1; + */ + public com.google.cloud.designcenter.v1.AssessmentReport.Builder getAssessmentReportBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetAssessmentReportFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Aggregated assessment report from all domains.
+     * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1; + */ + public com.google.cloud.designcenter.v1.AssessmentReportOrBuilder + getAssessmentReportOrBuilder() { + if (assessmentReportBuilder_ != null) { + return assessmentReportBuilder_.getMessageOrBuilder(); + } else { + return assessmentReport_ == null + ? com.google.cloud.designcenter.v1.AssessmentReport.getDefaultInstance() + : assessmentReport_; + } + } + + /** + * + * + *
+     * Aggregated assessment report from all domains.
+     * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.AssessmentReport, + com.google.cloud.designcenter.v1.AssessmentReport.Builder, + com.google.cloud.designcenter.v1.AssessmentReportOrBuilder> + internalGetAssessmentReportFieldBuilder() { + if (assessmentReportBuilder_ == null) { + assessmentReportBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.AssessmentReport, + com.google.cloud.designcenter.v1.AssessmentReport.Builder, + com.google.cloud.designcenter.v1.AssessmentReportOrBuilder>( + getAssessmentReport(), getParentForChildren(), isClean()); + assessmentReport_ = null; + } + return assessmentReportBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.GenerateAssessmentReportResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.GenerateAssessmentReportResponse) + private static final com.google.cloud.designcenter.v1.GenerateAssessmentReportResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.GenerateAssessmentReportResponse(); + } + + public static com.google.cloud.designcenter.v1.GenerateAssessmentReportResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateAssessmentReportResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.GenerateAssessmentReportResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateAssessmentReportResponseOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateAssessmentReportResponseOrBuilder.java new file mode 100644 index 000000000000..ab05b11d6696 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateAssessmentReportResponseOrBuilder.java @@ -0,0 +1,66 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/best_practices_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +@java.lang.Deprecated +public interface GenerateAssessmentReportResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.GenerateAssessmentReportResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Aggregated assessment report from all domains.
+   * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1; + * + * @return Whether the assessmentReport field is set. + */ + boolean hasAssessmentReport(); + + /** + * + * + *
+   * Aggregated assessment report from all domains.
+   * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1; + * + * @return The assessmentReport. + */ + com.google.cloud.designcenter.v1.AssessmentReport getAssessmentReport(); + + /** + * + * + *
+   * Aggregated assessment report from all domains.
+   * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1; + */ + com.google.cloud.designcenter.v1.AssessmentReportOrBuilder getAssessmentReportOrBuilder(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateTerraformPlanAssessmentReportRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateTerraformPlanAssessmentReportRequest.java new file mode 100644 index 000000000000..0d7a67d3ff4c --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateTerraformPlanAssessmentReportRequest.java @@ -0,0 +1,1069 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/best_practices_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for the request to generate a best practice report for a given
+ * Terraform plan at the collection level.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportRequest} + */ +@com.google.protobuf.Generated +public final class GenerateTerraformPlanAssessmentReportRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportRequest) + GenerateTerraformPlanAssessmentReportRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "GenerateTerraformPlanAssessmentReportRequest"); + } + + // Use GenerateTerraformPlanAssessmentReportRequest.newBuilder() to construct. + private GenerateTerraformPlanAssessmentReportRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GenerateTerraformPlanAssessmentReportRequest() { + name_ = ""; + terraformPlan_ = com.google.protobuf.ByteString.EMPTY; + additionalFrameworks_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GenerateTerraformPlanAssessmentReportRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GenerateTerraformPlanAssessmentReportRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportRequest.class, + com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportRequest.Builder + .class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The parent resource in which to generate the assessment report.
+   * Format: projects/$project/locations/$location/spaces/$space
+   * 
+ * + * + * 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 parent resource in which to generate the assessment report.
+   * Format: projects/$project/locations/$location/spaces/$space
+   * 
+ * + * + * 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 TERRAFORM_PLAN_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString terraformPlan_ = com.google.protobuf.ByteString.EMPTY; + + /** + * + * + *
+   * Required. The raw JSON representation of the generated Terraform plan,
+   * provided as bytes.
+   * 
+ * + * bytes terraform_plan = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The terraformPlan. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTerraformPlan() { + return terraformPlan_; + } + + public static final int ADDITIONAL_FRAMEWORKS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList additionalFrameworks_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Optional. Additional Frameworks to run assessment against. If empty, run
+   * against default frameworks. Frameworks refers to the policies.
+   * 
+ * + * repeated string additional_frameworks = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the additionalFrameworks. + */ + public com.google.protobuf.ProtocolStringList getAdditionalFrameworksList() { + return additionalFrameworks_; + } + + /** + * + * + *
+   * Optional. Additional Frameworks to run assessment against. If empty, run
+   * against default frameworks. Frameworks refers to the policies.
+   * 
+ * + * repeated string additional_frameworks = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of additionalFrameworks. + */ + public int getAdditionalFrameworksCount() { + return additionalFrameworks_.size(); + } + + /** + * + * + *
+   * Optional. Additional Frameworks to run assessment against. If empty, run
+   * against default frameworks. Frameworks refers to the policies.
+   * 
+ * + * repeated string additional_frameworks = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The additionalFrameworks at the given index. + */ + public java.lang.String getAdditionalFrameworks(int index) { + return additionalFrameworks_.get(index); + } + + /** + * + * + *
+   * Optional. Additional Frameworks to run assessment against. If empty, run
+   * against default frameworks. Frameworks refers to the policies.
+   * 
+ * + * repeated string additional_frameworks = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the additionalFrameworks at the given index. + */ + public com.google.protobuf.ByteString getAdditionalFrameworksBytes(int index) { + return additionalFrameworks_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!terraformPlan_.isEmpty()) { + output.writeBytes(2, terraformPlan_); + } + for (int i = 0; i < additionalFrameworks_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, additionalFrameworks_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!terraformPlan_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, terraformPlan_); + } + { + int dataSize = 0; + for (int i = 0; i < additionalFrameworks_.size(); i++) { + dataSize += computeStringSizeNoTag(additionalFrameworks_.getRaw(i)); + } + size += dataSize; + size += 1 * getAdditionalFrameworksList().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.designcenter.v1.GenerateTerraformPlanAssessmentReportRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportRequest other = + (com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getTerraformPlan().equals(other.getTerraformPlan())) return false; + if (!getAdditionalFrameworksList().equals(other.getAdditionalFrameworksList())) 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) + TERRAFORM_PLAN_FIELD_NUMBER; + hash = (53 * hash) + getTerraformPlan().hashCode(); + if (getAdditionalFrameworksCount() > 0) { + hash = (37 * hash) + ADDITIONAL_FRAMEWORKS_FIELD_NUMBER; + hash = (53 * hash) + getAdditionalFrameworksList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportRequest + 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.designcenter.v1.GenerateTerraformPlanAssessmentReportRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.GenerateTerraformPlanAssessmentReportRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for the request to generate a best practice report for a given
+   * Terraform plan at the collection level.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportRequest) + com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GenerateTerraformPlanAssessmentReportRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GenerateTerraformPlanAssessmentReportRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportRequest.class, + com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + terraformPlan_ = com.google.protobuf.ByteString.EMPTY; + additionalFrameworks_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GenerateTerraformPlanAssessmentReportRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportRequest + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportRequest build() { + com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportRequest + buildPartial() { + com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportRequest result = + new com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.terraformPlan_ = terraformPlan_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + additionalFrameworks_.makeImmutable(); + result.additionalFrameworks_ = additionalFrameworks_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportRequest) { + return mergeFrom( + (com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportRequest other) { + if (other + == com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getTerraformPlan().isEmpty()) { + setTerraformPlan(other.getTerraformPlan()); + } + if (!other.additionalFrameworks_.isEmpty()) { + if (additionalFrameworks_.isEmpty()) { + additionalFrameworks_ = other.additionalFrameworks_; + bitField0_ |= 0x00000004; + } else { + ensureAdditionalFrameworksIsMutable(); + additionalFrameworks_.addAll(other.additionalFrameworks_); + } + 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: + { + terraformPlan_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAdditionalFrameworksIsMutable(); + additionalFrameworks_.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.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The parent resource in which to generate the assessment report.
+     * Format: projects/$project/locations/$location/spaces/$space
+     * 
+ * + * + * 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 parent resource in which to generate the assessment report.
+     * Format: projects/$project/locations/$location/spaces/$space
+     * 
+ * + * + * 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 parent resource in which to generate the assessment report.
+     * Format: projects/$project/locations/$location/spaces/$space
+     * 
+ * + * + * 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 parent resource in which to generate the assessment report.
+     * Format: projects/$project/locations/$location/spaces/$space
+     * 
+ * + * + * 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 parent resource in which to generate the assessment report.
+     * Format: projects/$project/locations/$location/spaces/$space
+     * 
+ * + * + * 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 com.google.protobuf.ByteString terraformPlan_ = com.google.protobuf.ByteString.EMPTY; + + /** + * + * + *
+     * Required. The raw JSON representation of the generated Terraform plan,
+     * provided as bytes.
+     * 
+ * + * bytes terraform_plan = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The terraformPlan. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTerraformPlan() { + return terraformPlan_; + } + + /** + * + * + *
+     * Required. The raw JSON representation of the generated Terraform plan,
+     * provided as bytes.
+     * 
+ * + * bytes terraform_plan = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The terraformPlan to set. + * @return This builder for chaining. + */ + public Builder setTerraformPlan(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + terraformPlan_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The raw JSON representation of the generated Terraform plan,
+     * provided as bytes.
+     * 
+ * + * bytes terraform_plan = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearTerraformPlan() { + bitField0_ = (bitField0_ & ~0x00000002); + terraformPlan_ = getDefaultInstance().getTerraformPlan(); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList additionalFrameworks_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureAdditionalFrameworksIsMutable() { + if (!additionalFrameworks_.isModifiable()) { + additionalFrameworks_ = new com.google.protobuf.LazyStringArrayList(additionalFrameworks_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
+     * Optional. Additional Frameworks to run assessment against. If empty, run
+     * against default frameworks. Frameworks refers to the policies.
+     * 
+ * + * repeated string additional_frameworks = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the additionalFrameworks. + */ + public com.google.protobuf.ProtocolStringList getAdditionalFrameworksList() { + additionalFrameworks_.makeImmutable(); + return additionalFrameworks_; + } + + /** + * + * + *
+     * Optional. Additional Frameworks to run assessment against. If empty, run
+     * against default frameworks. Frameworks refers to the policies.
+     * 
+ * + * repeated string additional_frameworks = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of additionalFrameworks. + */ + public int getAdditionalFrameworksCount() { + return additionalFrameworks_.size(); + } + + /** + * + * + *
+     * Optional. Additional Frameworks to run assessment against. If empty, run
+     * against default frameworks. Frameworks refers to the policies.
+     * 
+ * + * repeated string additional_frameworks = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The additionalFrameworks at the given index. + */ + public java.lang.String getAdditionalFrameworks(int index) { + return additionalFrameworks_.get(index); + } + + /** + * + * + *
+     * Optional. Additional Frameworks to run assessment against. If empty, run
+     * against default frameworks. Frameworks refers to the policies.
+     * 
+ * + * repeated string additional_frameworks = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the additionalFrameworks at the given index. + */ + public com.google.protobuf.ByteString getAdditionalFrameworksBytes(int index) { + return additionalFrameworks_.getByteString(index); + } + + /** + * + * + *
+     * Optional. Additional Frameworks to run assessment against. If empty, run
+     * against default frameworks. Frameworks refers to the policies.
+     * 
+ * + * repeated string additional_frameworks = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The additionalFrameworks to set. + * @return This builder for chaining. + */ + public Builder setAdditionalFrameworks(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdditionalFrameworksIsMutable(); + additionalFrameworks_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Additional Frameworks to run assessment against. If empty, run
+     * against default frameworks. Frameworks refers to the policies.
+     * 
+ * + * repeated string additional_frameworks = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The additionalFrameworks to add. + * @return This builder for chaining. + */ + public Builder addAdditionalFrameworks(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdditionalFrameworksIsMutable(); + additionalFrameworks_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Additional Frameworks to run assessment against. If empty, run
+     * against default frameworks. Frameworks refers to the policies.
+     * 
+ * + * repeated string additional_frameworks = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The additionalFrameworks to add. + * @return This builder for chaining. + */ + public Builder addAllAdditionalFrameworks(java.lang.Iterable values) { + ensureAdditionalFrameworksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, additionalFrameworks_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Additional Frameworks to run assessment against. If empty, run
+     * against default frameworks. Frameworks refers to the policies.
+     * 
+ * + * repeated string additional_frameworks = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearAdditionalFrameworks() { + additionalFrameworks_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Additional Frameworks to run assessment against. If empty, run
+     * against default frameworks. Frameworks refers to the policies.
+     * 
+ * + * repeated string additional_frameworks = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the additionalFrameworks to add. + * @return This builder for chaining. + */ + public Builder addAdditionalFrameworksBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAdditionalFrameworksIsMutable(); + additionalFrameworks_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportRequest) + private static final com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportRequest(); + } + + public static com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateTerraformPlanAssessmentReportRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.GenerateTerraformPlanAssessmentReportRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateTerraformPlanAssessmentReportRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateTerraformPlanAssessmentReportRequestOrBuilder.java new file mode 100644 index 000000000000..2a5e760ad4b1 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateTerraformPlanAssessmentReportRequestOrBuilder.java @@ -0,0 +1,136 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/best_practices_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface GenerateTerraformPlanAssessmentReportRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource in which to generate the assessment report.
+   * Format: projects/$project/locations/$location/spaces/$space
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The parent resource in which to generate the assessment report.
+   * Format: projects/$project/locations/$location/spaces/$space
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The raw JSON representation of the generated Terraform plan,
+   * provided as bytes.
+   * 
+ * + * bytes terraform_plan = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The terraformPlan. + */ + com.google.protobuf.ByteString getTerraformPlan(); + + /** + * + * + *
+   * Optional. Additional Frameworks to run assessment against. If empty, run
+   * against default frameworks. Frameworks refers to the policies.
+   * 
+ * + * repeated string additional_frameworks = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the additionalFrameworks. + */ + java.util.List getAdditionalFrameworksList(); + + /** + * + * + *
+   * Optional. Additional Frameworks to run assessment against. If empty, run
+   * against default frameworks. Frameworks refers to the policies.
+   * 
+ * + * repeated string additional_frameworks = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of additionalFrameworks. + */ + int getAdditionalFrameworksCount(); + + /** + * + * + *
+   * Optional. Additional Frameworks to run assessment against. If empty, run
+   * against default frameworks. Frameworks refers to the policies.
+   * 
+ * + * repeated string additional_frameworks = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The additionalFrameworks at the given index. + */ + java.lang.String getAdditionalFrameworks(int index); + + /** + * + * + *
+   * Optional. Additional Frameworks to run assessment against. If empty, run
+   * against default frameworks. Frameworks refers to the policies.
+   * 
+ * + * repeated string additional_frameworks = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the additionalFrameworks at the given index. + */ + com.google.protobuf.ByteString getAdditionalFrameworksBytes(int index); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateTerraformPlanAssessmentReportResponse.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateTerraformPlanAssessmentReportResponse.java new file mode 100644 index 000000000000..85dd01c338f7 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateTerraformPlanAssessmentReportResponse.java @@ -0,0 +1,735 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/best_practices_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Response for GenerateTerraformPlanAssessmentReport.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportResponse} + */ +@com.google.protobuf.Generated +public final class GenerateTerraformPlanAssessmentReportResponse + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportResponse) + GenerateTerraformPlanAssessmentReportResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "GenerateTerraformPlanAssessmentReportResponse"); + } + + // Use GenerateTerraformPlanAssessmentReportResponse.newBuilder() to construct. + private GenerateTerraformPlanAssessmentReportResponse( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GenerateTerraformPlanAssessmentReportResponse() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GenerateTerraformPlanAssessmentReportResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GenerateTerraformPlanAssessmentReportResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportResponse.class, + com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportResponse.Builder + .class); + } + + private int bitField0_; + public static final int ASSESSMENT_REPORT_FIELD_NUMBER = 1; + private com.google.cloud.designcenter.v1.AssessmentReport assessmentReport_; + + /** + * + * + *
+   * Aggregated assessment report from all domains.
+   * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1; + * + * @return Whether the assessmentReport field is set. + */ + @java.lang.Override + public boolean hasAssessmentReport() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Aggregated assessment report from all domains.
+   * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1; + * + * @return The assessmentReport. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.AssessmentReport getAssessmentReport() { + return assessmentReport_ == null + ? com.google.cloud.designcenter.v1.AssessmentReport.getDefaultInstance() + : assessmentReport_; + } + + /** + * + * + *
+   * Aggregated assessment report from all domains.
+   * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1; + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.AssessmentReportOrBuilder getAssessmentReportOrBuilder() { + return assessmentReport_ == null + ? com.google.cloud.designcenter.v1.AssessmentReport.getDefaultInstance() + : assessmentReport_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getAssessmentReport()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAssessmentReport()); + } + 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.designcenter.v1.GenerateTerraformPlanAssessmentReportResponse)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportResponse other = + (com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportResponse) obj; + + if (hasAssessmentReport() != other.hasAssessmentReport()) return false; + if (hasAssessmentReport()) { + if (!getAssessmentReport().equals(other.getAssessmentReport())) 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 (hasAssessmentReport()) { + hash = (37 * hash) + ASSESSMENT_REPORT_FIELD_NUMBER; + hash = (53 * hash) + getAssessmentReport().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportResponse + 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.designcenter.v1.GenerateTerraformPlanAssessmentReportResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportResponse + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportResponse + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportResponse + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.GenerateTerraformPlanAssessmentReportResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response for GenerateTerraformPlanAssessmentReport.
+   * 
+ * + * Protobuf type {@code + * google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportResponse) + com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GenerateTerraformPlanAssessmentReportResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GenerateTerraformPlanAssessmentReportResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportResponse.class, + com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetAssessmentReportFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + assessmentReport_ = null; + if (assessmentReportBuilder_ != null) { + assessmentReportBuilder_.dispose(); + assessmentReportBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GenerateTerraformPlanAssessmentReportResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportResponse + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportResponse build() { + com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportResponse + buildPartial() { + com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportResponse result = + new com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.assessmentReport_ = + assessmentReportBuilder_ == null ? assessmentReport_ : assessmentReportBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportResponse) { + return mergeFrom( + (com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportResponse other) { + if (other + == com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportResponse + .getDefaultInstance()) return this; + if (other.hasAssessmentReport()) { + mergeAssessmentReport(other.getAssessmentReport()); + } + 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( + internalGetAssessmentReportFieldBuilder().getBuilder(), extensionRegistry); + 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 com.google.cloud.designcenter.v1.AssessmentReport assessmentReport_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.AssessmentReport, + com.google.cloud.designcenter.v1.AssessmentReport.Builder, + com.google.cloud.designcenter.v1.AssessmentReportOrBuilder> + assessmentReportBuilder_; + + /** + * + * + *
+     * Aggregated assessment report from all domains.
+     * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1; + * + * @return Whether the assessmentReport field is set. + */ + public boolean hasAssessmentReport() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Aggregated assessment report from all domains.
+     * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1; + * + * @return The assessmentReport. + */ + public com.google.cloud.designcenter.v1.AssessmentReport getAssessmentReport() { + if (assessmentReportBuilder_ == null) { + return assessmentReport_ == null + ? com.google.cloud.designcenter.v1.AssessmentReport.getDefaultInstance() + : assessmentReport_; + } else { + return assessmentReportBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Aggregated assessment report from all domains.
+     * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1; + */ + public Builder setAssessmentReport(com.google.cloud.designcenter.v1.AssessmentReport value) { + if (assessmentReportBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + assessmentReport_ = value; + } else { + assessmentReportBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Aggregated assessment report from all domains.
+     * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1; + */ + public Builder setAssessmentReport( + com.google.cloud.designcenter.v1.AssessmentReport.Builder builderForValue) { + if (assessmentReportBuilder_ == null) { + assessmentReport_ = builderForValue.build(); + } else { + assessmentReportBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Aggregated assessment report from all domains.
+     * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1; + */ + public Builder mergeAssessmentReport(com.google.cloud.designcenter.v1.AssessmentReport value) { + if (assessmentReportBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && assessmentReport_ != null + && assessmentReport_ + != com.google.cloud.designcenter.v1.AssessmentReport.getDefaultInstance()) { + getAssessmentReportBuilder().mergeFrom(value); + } else { + assessmentReport_ = value; + } + } else { + assessmentReportBuilder_.mergeFrom(value); + } + if (assessmentReport_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Aggregated assessment report from all domains.
+     * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1; + */ + public Builder clearAssessmentReport() { + bitField0_ = (bitField0_ & ~0x00000001); + assessmentReport_ = null; + if (assessmentReportBuilder_ != null) { + assessmentReportBuilder_.dispose(); + assessmentReportBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Aggregated assessment report from all domains.
+     * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1; + */ + public com.google.cloud.designcenter.v1.AssessmentReport.Builder getAssessmentReportBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetAssessmentReportFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Aggregated assessment report from all domains.
+     * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1; + */ + public com.google.cloud.designcenter.v1.AssessmentReportOrBuilder + getAssessmentReportOrBuilder() { + if (assessmentReportBuilder_ != null) { + return assessmentReportBuilder_.getMessageOrBuilder(); + } else { + return assessmentReport_ == null + ? com.google.cloud.designcenter.v1.AssessmentReport.getDefaultInstance() + : assessmentReport_; + } + } + + /** + * + * + *
+     * Aggregated assessment report from all domains.
+     * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.AssessmentReport, + com.google.cloud.designcenter.v1.AssessmentReport.Builder, + com.google.cloud.designcenter.v1.AssessmentReportOrBuilder> + internalGetAssessmentReportFieldBuilder() { + if (assessmentReportBuilder_ == null) { + assessmentReportBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.AssessmentReport, + com.google.cloud.designcenter.v1.AssessmentReport.Builder, + com.google.cloud.designcenter.v1.AssessmentReportOrBuilder>( + getAssessmentReport(), getParentForChildren(), isClean()); + assessmentReport_ = null; + } + return assessmentReportBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportResponse) + private static final com.google.cloud.designcenter.v1 + .GenerateTerraformPlanAssessmentReportResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportResponse(); + } + + public static com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateTerraformPlanAssessmentReportResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.GenerateTerraformPlanAssessmentReportResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateTerraformPlanAssessmentReportResponseOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateTerraformPlanAssessmentReportResponseOrBuilder.java new file mode 100644 index 000000000000..b8dbb63588a7 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GenerateTerraformPlanAssessmentReportResponseOrBuilder.java @@ -0,0 +1,65 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/best_practices_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface GenerateTerraformPlanAssessmentReportResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Aggregated assessment report from all domains.
+   * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1; + * + * @return Whether the assessmentReport field is set. + */ + boolean hasAssessmentReport(); + + /** + * + * + *
+   * Aggregated assessment report from all domains.
+   * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1; + * + * @return The assessmentReport. + */ + com.google.cloud.designcenter.v1.AssessmentReport getAssessmentReport(); + + /** + * + * + *
+   * Aggregated assessment report from all domains.
+   * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 1; + */ + com.google.cloud.designcenter.v1.AssessmentReportOrBuilder getAssessmentReportOrBuilder(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetApplicationRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetApplicationRequest.java new file mode 100644 index 000000000000..77e947876ecf --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetApplicationRequest.java @@ -0,0 +1,625 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for getting an application.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.GetApplicationRequest} + */ +@com.google.protobuf.Generated +public final class GetApplicationRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.GetApplicationRequest) + GetApplicationRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "GetApplicationRequest"); + } + + // Use GetApplicationRequest.newBuilder() to construct. + private GetApplicationRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetApplicationRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GetApplicationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GetApplicationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.GetApplicationRequest.class, + com.google.cloud.designcenter.v1.GetApplicationRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The application name.
+   * Format:
+   * `projects/$project/locations/$location/spaces/$space/applications/$application`
+   * 
+ * + * + * 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 application name.
+   * Format:
+   * `projects/$project/locations/$location/spaces/$space/applications/$application`
+   * 
+ * + * + * 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.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.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.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.designcenter.v1.GetApplicationRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.GetApplicationRequest other = + (com.google.cloud.designcenter.v1.GetApplicationRequest) 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.designcenter.v1.GetApplicationRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GetApplicationRequest 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.designcenter.v1.GetApplicationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GetApplicationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GetApplicationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GetApplicationRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GetApplicationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GetApplicationRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GetApplicationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GetApplicationRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GetApplicationRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GetApplicationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.GetApplicationRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for getting an application.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.GetApplicationRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.GetApplicationRequest) + com.google.cloud.designcenter.v1.GetApplicationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GetApplicationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GetApplicationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.GetApplicationRequest.class, + com.google.cloud.designcenter.v1.GetApplicationRequest.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.GetApplicationRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.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.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GetApplicationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GetApplicationRequest getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.GetApplicationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GetApplicationRequest build() { + com.google.cloud.designcenter.v1.GetApplicationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GetApplicationRequest buildPartial() { + com.google.cloud.designcenter.v1.GetApplicationRequest result = + new com.google.cloud.designcenter.v1.GetApplicationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.GetApplicationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.GetApplicationRequest) { + return mergeFrom((com.google.cloud.designcenter.v1.GetApplicationRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.GetApplicationRequest other) { + if (other == com.google.cloud.designcenter.v1.GetApplicationRequest.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 application name.
+     * Format:
+     * `projects/$project/locations/$location/spaces/$space/applications/$application`
+     * 
+ * + * + * 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 application name.
+     * Format:
+     * `projects/$project/locations/$location/spaces/$space/applications/$application`
+     * 
+ * + * + * 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 application name.
+     * Format:
+     * `projects/$project/locations/$location/spaces/$space/applications/$application`
+     * 
+ * + * + * 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 application name.
+     * Format:
+     * `projects/$project/locations/$location/spaces/$space/applications/$application`
+     * 
+ * + * + * 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 application name.
+     * Format:
+     * `projects/$project/locations/$location/spaces/$space/applications/$application`
+     * 
+ * + * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.GetApplicationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.GetApplicationRequest) + private static final com.google.cloud.designcenter.v1.GetApplicationRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.GetApplicationRequest(); + } + + public static com.google.cloud.designcenter.v1.GetApplicationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetApplicationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.GetApplicationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetApplicationRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetApplicationRequestOrBuilder.java new file mode 100644 index 000000000000..da28f068c6ad --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetApplicationRequestOrBuilder.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface GetApplicationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.GetApplicationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The application name.
+   * Format:
+   * `projects/$project/locations/$location/spaces/$space/applications/$application`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The application name.
+   * Format:
+   * `projects/$project/locations/$location/spaces/$space/applications/$application`
+   * 
+ * + * + * 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-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetApplicationTemplateRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetApplicationTemplateRequest.java new file mode 100644 index 000000000000..62c8c68141cb --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetApplicationTemplateRequest.java @@ -0,0 +1,617 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for getting an application template.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.GetApplicationTemplateRequest} + */ +@com.google.protobuf.Generated +public final class GetApplicationTemplateRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.GetApplicationTemplateRequest) + GetApplicationTemplateRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "GetApplicationTemplateRequest"); + } + + // Use GetApplicationTemplateRequest.newBuilder() to construct. + private GetApplicationTemplateRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetApplicationTemplateRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GetApplicationTemplateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GetApplicationTemplateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.GetApplicationTemplateRequest.class, + com.google.cloud.designcenter.v1.GetApplicationTemplateRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The application template name.
+   * 
+ * + * + * 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 application template name.
+   * 
+ * + * + * 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.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.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.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.designcenter.v1.GetApplicationTemplateRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.GetApplicationTemplateRequest other = + (com.google.cloud.designcenter.v1.GetApplicationTemplateRequest) 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.designcenter.v1.GetApplicationTemplateRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GetApplicationTemplateRequest 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.designcenter.v1.GetApplicationTemplateRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GetApplicationTemplateRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GetApplicationTemplateRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GetApplicationTemplateRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GetApplicationTemplateRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GetApplicationTemplateRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GetApplicationTemplateRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GetApplicationTemplateRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GetApplicationTemplateRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GetApplicationTemplateRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.GetApplicationTemplateRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for getting an application template.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.GetApplicationTemplateRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.GetApplicationTemplateRequest) + com.google.cloud.designcenter.v1.GetApplicationTemplateRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GetApplicationTemplateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GetApplicationTemplateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.GetApplicationTemplateRequest.class, + com.google.cloud.designcenter.v1.GetApplicationTemplateRequest.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.GetApplicationTemplateRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.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.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GetApplicationTemplateRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GetApplicationTemplateRequest + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.GetApplicationTemplateRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GetApplicationTemplateRequest build() { + com.google.cloud.designcenter.v1.GetApplicationTemplateRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GetApplicationTemplateRequest buildPartial() { + com.google.cloud.designcenter.v1.GetApplicationTemplateRequest result = + new com.google.cloud.designcenter.v1.GetApplicationTemplateRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.GetApplicationTemplateRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.GetApplicationTemplateRequest) { + return mergeFrom((com.google.cloud.designcenter.v1.GetApplicationTemplateRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.GetApplicationTemplateRequest other) { + if (other + == com.google.cloud.designcenter.v1.GetApplicationTemplateRequest.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 application template name.
+     * 
+ * + * + * 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 application template name.
+     * 
+ * + * + * 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 application template name.
+     * 
+ * + * + * 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 application template name.
+     * 
+ * + * + * 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 application template name.
+     * 
+ * + * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.GetApplicationTemplateRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.GetApplicationTemplateRequest) + private static final com.google.cloud.designcenter.v1.GetApplicationTemplateRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.GetApplicationTemplateRequest(); + } + + public static com.google.cloud.designcenter.v1.GetApplicationTemplateRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetApplicationTemplateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.GetApplicationTemplateRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetApplicationTemplateRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetApplicationTemplateRequestOrBuilder.java new file mode 100644 index 000000000000..a7b2b64fd459 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetApplicationTemplateRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface GetApplicationTemplateRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.GetApplicationTemplateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The application template name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The application template name.
+   * 
+ * + * + * 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-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetApplicationTemplateRevisionRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetApplicationTemplateRevisionRequest.java new file mode 100644 index 000000000000..9b32a1a8ab0f --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetApplicationTemplateRevisionRequest.java @@ -0,0 +1,625 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for getting an application template revision.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.GetApplicationTemplateRevisionRequest} + */ +@com.google.protobuf.Generated +public final class GetApplicationTemplateRevisionRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.GetApplicationTemplateRevisionRequest) + GetApplicationTemplateRevisionRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "GetApplicationTemplateRevisionRequest"); + } + + // Use GetApplicationTemplateRevisionRequest.newBuilder() to construct. + private GetApplicationTemplateRevisionRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetApplicationTemplateRevisionRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GetApplicationTemplateRevisionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GetApplicationTemplateRevisionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.GetApplicationTemplateRevisionRequest.class, + com.google.cloud.designcenter.v1.GetApplicationTemplateRevisionRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The application template revision name.
+   * 
+ * + * + * 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 application template revision name.
+   * 
+ * + * + * 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.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.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.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.designcenter.v1.GetApplicationTemplateRevisionRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.GetApplicationTemplateRevisionRequest other = + (com.google.cloud.designcenter.v1.GetApplicationTemplateRevisionRequest) 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.designcenter.v1.GetApplicationTemplateRevisionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GetApplicationTemplateRevisionRequest 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.designcenter.v1.GetApplicationTemplateRevisionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GetApplicationTemplateRevisionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GetApplicationTemplateRevisionRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GetApplicationTemplateRevisionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GetApplicationTemplateRevisionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GetApplicationTemplateRevisionRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GetApplicationTemplateRevisionRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GetApplicationTemplateRevisionRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GetApplicationTemplateRevisionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GetApplicationTemplateRevisionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.GetApplicationTemplateRevisionRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for getting an application template revision.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.GetApplicationTemplateRevisionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.GetApplicationTemplateRevisionRequest) + com.google.cloud.designcenter.v1.GetApplicationTemplateRevisionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GetApplicationTemplateRevisionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GetApplicationTemplateRevisionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.GetApplicationTemplateRevisionRequest.class, + com.google.cloud.designcenter.v1.GetApplicationTemplateRevisionRequest.Builder.class); + } + + // Construct using + // com.google.cloud.designcenter.v1.GetApplicationTemplateRevisionRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.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.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GetApplicationTemplateRevisionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GetApplicationTemplateRevisionRequest + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.GetApplicationTemplateRevisionRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GetApplicationTemplateRevisionRequest build() { + com.google.cloud.designcenter.v1.GetApplicationTemplateRevisionRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GetApplicationTemplateRevisionRequest buildPartial() { + com.google.cloud.designcenter.v1.GetApplicationTemplateRevisionRequest result = + new com.google.cloud.designcenter.v1.GetApplicationTemplateRevisionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.GetApplicationTemplateRevisionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.GetApplicationTemplateRevisionRequest) { + return mergeFrom( + (com.google.cloud.designcenter.v1.GetApplicationTemplateRevisionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.designcenter.v1.GetApplicationTemplateRevisionRequest other) { + if (other + == com.google.cloud.designcenter.v1.GetApplicationTemplateRevisionRequest + .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 application template revision name.
+     * 
+ * + * + * 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 application template revision name.
+     * 
+ * + * + * 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 application template revision name.
+     * 
+ * + * + * 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 application template revision name.
+     * 
+ * + * + * 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 application template revision name.
+     * 
+ * + * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.GetApplicationTemplateRevisionRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.GetApplicationTemplateRevisionRequest) + private static final com.google.cloud.designcenter.v1.GetApplicationTemplateRevisionRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.GetApplicationTemplateRevisionRequest(); + } + + public static com.google.cloud.designcenter.v1.GetApplicationTemplateRevisionRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetApplicationTemplateRevisionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.GetApplicationTemplateRevisionRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetApplicationTemplateRevisionRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetApplicationTemplateRevisionRequestOrBuilder.java new file mode 100644 index 000000000000..33bb71eb886f --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetApplicationTemplateRevisionRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface GetApplicationTemplateRevisionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.GetApplicationTemplateRevisionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The application template revision name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The application template revision name.
+   * 
+ * + * + * 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-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetApplicationTemplateSystemRevisionRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetApplicationTemplateSystemRevisionRequest.java new file mode 100644 index 000000000000..917797a6be12 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetApplicationTemplateSystemRevisionRequest.java @@ -0,0 +1,653 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for getting an ApplicationTemplateSystemRevision.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.GetApplicationTemplateSystemRevisionRequest} + */ +@com.google.protobuf.Generated +public final class GetApplicationTemplateSystemRevisionRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.GetApplicationTemplateSystemRevisionRequest) + GetApplicationTemplateSystemRevisionRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "GetApplicationTemplateSystemRevisionRequest"); + } + + // Use GetApplicationTemplateSystemRevisionRequest.newBuilder() to construct. + private GetApplicationTemplateSystemRevisionRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetApplicationTemplateSystemRevisionRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GetApplicationTemplateSystemRevisionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GetApplicationTemplateSystemRevisionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.GetApplicationTemplateSystemRevisionRequest.class, + com.google.cloud.designcenter.v1.GetApplicationTemplateSystemRevisionRequest.Builder + .class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The name of the ApplicationTemplateSystemRevision to retrieve.
+   * Format:
+   * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/systemRevisions/{system_revision}
+   * 
+ * + * + * 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 ApplicationTemplateSystemRevision to retrieve.
+   * Format:
+   * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/systemRevisions/{system_revision}
+   * 
+ * + * + * 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.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.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.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.designcenter.v1.GetApplicationTemplateSystemRevisionRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.GetApplicationTemplateSystemRevisionRequest other = + (com.google.cloud.designcenter.v1.GetApplicationTemplateSystemRevisionRequest) 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.designcenter.v1.GetApplicationTemplateSystemRevisionRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GetApplicationTemplateSystemRevisionRequest + 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.designcenter.v1.GetApplicationTemplateSystemRevisionRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GetApplicationTemplateSystemRevisionRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GetApplicationTemplateSystemRevisionRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GetApplicationTemplateSystemRevisionRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GetApplicationTemplateSystemRevisionRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GetApplicationTemplateSystemRevisionRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GetApplicationTemplateSystemRevisionRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GetApplicationTemplateSystemRevisionRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GetApplicationTemplateSystemRevisionRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GetApplicationTemplateSystemRevisionRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.GetApplicationTemplateSystemRevisionRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for getting an ApplicationTemplateSystemRevision.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.GetApplicationTemplateSystemRevisionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.GetApplicationTemplateSystemRevisionRequest) + com.google.cloud.designcenter.v1.GetApplicationTemplateSystemRevisionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GetApplicationTemplateSystemRevisionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GetApplicationTemplateSystemRevisionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.GetApplicationTemplateSystemRevisionRequest.class, + com.google.cloud.designcenter.v1.GetApplicationTemplateSystemRevisionRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.designcenter.v1.GetApplicationTemplateSystemRevisionRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.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.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GetApplicationTemplateSystemRevisionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GetApplicationTemplateSystemRevisionRequest + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.GetApplicationTemplateSystemRevisionRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GetApplicationTemplateSystemRevisionRequest build() { + com.google.cloud.designcenter.v1.GetApplicationTemplateSystemRevisionRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GetApplicationTemplateSystemRevisionRequest + buildPartial() { + com.google.cloud.designcenter.v1.GetApplicationTemplateSystemRevisionRequest result = + new com.google.cloud.designcenter.v1.GetApplicationTemplateSystemRevisionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.GetApplicationTemplateSystemRevisionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.designcenter.v1.GetApplicationTemplateSystemRevisionRequest) { + return mergeFrom( + (com.google.cloud.designcenter.v1.GetApplicationTemplateSystemRevisionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.designcenter.v1.GetApplicationTemplateSystemRevisionRequest other) { + if (other + == com.google.cloud.designcenter.v1.GetApplicationTemplateSystemRevisionRequest + .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 ApplicationTemplateSystemRevision to retrieve.
+     * Format:
+     * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/systemRevisions/{system_revision}
+     * 
+ * + * + * 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 ApplicationTemplateSystemRevision to retrieve.
+     * Format:
+     * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/systemRevisions/{system_revision}
+     * 
+ * + * + * 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 ApplicationTemplateSystemRevision to retrieve.
+     * Format:
+     * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/systemRevisions/{system_revision}
+     * 
+ * + * + * 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 ApplicationTemplateSystemRevision to retrieve.
+     * Format:
+     * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/systemRevisions/{system_revision}
+     * 
+ * + * + * 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 ApplicationTemplateSystemRevision to retrieve.
+     * Format:
+     * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/systemRevisions/{system_revision}
+     * 
+ * + * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.GetApplicationTemplateSystemRevisionRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.GetApplicationTemplateSystemRevisionRequest) + private static final com.google.cloud.designcenter.v1.GetApplicationTemplateSystemRevisionRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.designcenter.v1.GetApplicationTemplateSystemRevisionRequest(); + } + + public static com.google.cloud.designcenter.v1.GetApplicationTemplateSystemRevisionRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetApplicationTemplateSystemRevisionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.GetApplicationTemplateSystemRevisionRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetApplicationTemplateSystemRevisionRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetApplicationTemplateSystemRevisionRequestOrBuilder.java new file mode 100644 index 000000000000..e9a76b09d4d7 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetApplicationTemplateSystemRevisionRequestOrBuilder.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface GetApplicationTemplateSystemRevisionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.GetApplicationTemplateSystemRevisionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the ApplicationTemplateSystemRevision to retrieve.
+   * Format:
+   * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/systemRevisions/{system_revision}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The name of the ApplicationTemplateSystemRevision to retrieve.
+   * Format:
+   * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/systemRevisions/{system_revision}
+   * 
+ * + * + * 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-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetCatalogRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetCatalogRequest.java new file mode 100644 index 000000000000..36812eeca720 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetCatalogRequest.java @@ -0,0 +1,617 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/catalog_management_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for getting a catalog.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.GetCatalogRequest} + */ +@com.google.protobuf.Generated +public final class GetCatalogRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.GetCatalogRequest) + GetCatalogRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "GetCatalogRequest"); + } + + // Use GetCatalogRequest.newBuilder() to construct. + private GetCatalogRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetCatalogRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GetCatalogRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GetCatalogRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.GetCatalogRequest.class, + com.google.cloud.designcenter.v1.GetCatalogRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The catalog name in the following format:
+   * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog`
+   * 
+ * + * + * 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 catalog name in the following format:
+   * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog`
+   * 
+ * + * + * 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.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.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.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.designcenter.v1.GetCatalogRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.GetCatalogRequest other = + (com.google.cloud.designcenter.v1.GetCatalogRequest) 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.designcenter.v1.GetCatalogRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GetCatalogRequest 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.designcenter.v1.GetCatalogRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GetCatalogRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GetCatalogRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GetCatalogRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GetCatalogRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GetCatalogRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GetCatalogRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GetCatalogRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GetCatalogRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GetCatalogRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.GetCatalogRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for getting a catalog.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.GetCatalogRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.GetCatalogRequest) + com.google.cloud.designcenter.v1.GetCatalogRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GetCatalogRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GetCatalogRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.GetCatalogRequest.class, + com.google.cloud.designcenter.v1.GetCatalogRequest.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.GetCatalogRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.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.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GetCatalogRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GetCatalogRequest getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.GetCatalogRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GetCatalogRequest build() { + com.google.cloud.designcenter.v1.GetCatalogRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GetCatalogRequest buildPartial() { + com.google.cloud.designcenter.v1.GetCatalogRequest result = + new com.google.cloud.designcenter.v1.GetCatalogRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.GetCatalogRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.GetCatalogRequest) { + return mergeFrom((com.google.cloud.designcenter.v1.GetCatalogRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.GetCatalogRequest other) { + if (other == com.google.cloud.designcenter.v1.GetCatalogRequest.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 catalog name in the following format:
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog`
+     * 
+ * + * + * 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 catalog name in the following format:
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog`
+     * 
+ * + * + * 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 catalog name in the following format:
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog`
+     * 
+ * + * + * 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 catalog name in the following format:
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog`
+     * 
+ * + * + * 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 catalog name in the following format:
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog`
+     * 
+ * + * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.GetCatalogRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.GetCatalogRequest) + private static final com.google.cloud.designcenter.v1.GetCatalogRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.GetCatalogRequest(); + } + + public static com.google.cloud.designcenter.v1.GetCatalogRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetCatalogRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.GetCatalogRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetCatalogRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetCatalogRequestOrBuilder.java new file mode 100644 index 000000000000..300e817e1c4b --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetCatalogRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/catalog_management_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface GetCatalogRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.GetCatalogRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The catalog name in the following format:
+   * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The catalog name in the following format:
+   * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog`
+   * 
+ * + * + * 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-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetCatalogTemplateRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetCatalogTemplateRequest.java new file mode 100644 index 000000000000..05b07de57979 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetCatalogTemplateRequest.java @@ -0,0 +1,618 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/catalog_management_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for getting a catalog template resource.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.GetCatalogTemplateRequest} + */ +@com.google.protobuf.Generated +public final class GetCatalogTemplateRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.GetCatalogTemplateRequest) + GetCatalogTemplateRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "GetCatalogTemplateRequest"); + } + + // Use GetCatalogTemplateRequest.newBuilder() to construct. + private GetCatalogTemplateRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetCatalogTemplateRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GetCatalogTemplateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GetCatalogTemplateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.GetCatalogTemplateRequest.class, + com.google.cloud.designcenter.v1.GetCatalogTemplateRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The catalog template name in the following format:
+   * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template`
+   * 
+ * + * + * 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 catalog template name in the following format:
+   * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template`
+   * 
+ * + * + * 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.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.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.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.designcenter.v1.GetCatalogTemplateRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.GetCatalogTemplateRequest other = + (com.google.cloud.designcenter.v1.GetCatalogTemplateRequest) 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.designcenter.v1.GetCatalogTemplateRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GetCatalogTemplateRequest 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.designcenter.v1.GetCatalogTemplateRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GetCatalogTemplateRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GetCatalogTemplateRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GetCatalogTemplateRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GetCatalogTemplateRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GetCatalogTemplateRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GetCatalogTemplateRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GetCatalogTemplateRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GetCatalogTemplateRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GetCatalogTemplateRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.GetCatalogTemplateRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for getting a catalog template resource.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.GetCatalogTemplateRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.GetCatalogTemplateRequest) + com.google.cloud.designcenter.v1.GetCatalogTemplateRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GetCatalogTemplateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GetCatalogTemplateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.GetCatalogTemplateRequest.class, + com.google.cloud.designcenter.v1.GetCatalogTemplateRequest.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.GetCatalogTemplateRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.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.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GetCatalogTemplateRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GetCatalogTemplateRequest getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.GetCatalogTemplateRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GetCatalogTemplateRequest build() { + com.google.cloud.designcenter.v1.GetCatalogTemplateRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GetCatalogTemplateRequest buildPartial() { + com.google.cloud.designcenter.v1.GetCatalogTemplateRequest result = + new com.google.cloud.designcenter.v1.GetCatalogTemplateRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.GetCatalogTemplateRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.GetCatalogTemplateRequest) { + return mergeFrom((com.google.cloud.designcenter.v1.GetCatalogTemplateRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.GetCatalogTemplateRequest other) { + if (other == com.google.cloud.designcenter.v1.GetCatalogTemplateRequest.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 catalog template name in the following format:
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template`
+     * 
+ * + * + * 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 catalog template name in the following format:
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template`
+     * 
+ * + * + * 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 catalog template name in the following format:
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template`
+     * 
+ * + * + * 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 catalog template name in the following format:
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template`
+     * 
+ * + * + * 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 catalog template name in the following format:
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template`
+     * 
+ * + * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.GetCatalogTemplateRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.GetCatalogTemplateRequest) + private static final com.google.cloud.designcenter.v1.GetCatalogTemplateRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.GetCatalogTemplateRequest(); + } + + public static com.google.cloud.designcenter.v1.GetCatalogTemplateRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetCatalogTemplateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.GetCatalogTemplateRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetCatalogTemplateRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetCatalogTemplateRequestOrBuilder.java new file mode 100644 index 000000000000..e055a3405311 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetCatalogTemplateRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/catalog_management_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface GetCatalogTemplateRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.GetCatalogTemplateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The catalog template name in the following format:
+   * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The catalog template name in the following format:
+   * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template`
+   * 
+ * + * + * 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-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetCatalogTemplateRevisionRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetCatalogTemplateRevisionRequest.java new file mode 100644 index 000000000000..dd31071bd021 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetCatalogTemplateRevisionRequest.java @@ -0,0 +1,623 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/catalog_management_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for GetTemplateRevision Request
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.GetCatalogTemplateRevisionRequest} + */ +@com.google.protobuf.Generated +public final class GetCatalogTemplateRevisionRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.GetCatalogTemplateRevisionRequest) + GetCatalogTemplateRevisionRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "GetCatalogTemplateRevisionRequest"); + } + + // Use GetCatalogTemplateRevisionRequest.newBuilder() to construct. + private GetCatalogTemplateRevisionRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetCatalogTemplateRevisionRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GetCatalogTemplateRevisionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GetCatalogTemplateRevisionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.GetCatalogTemplateRevisionRequest.class, + com.google.cloud.designcenter.v1.GetCatalogTemplateRevisionRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The catalog template revisions name.
+   * 
+ * + * + * 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 catalog template revisions name.
+   * 
+ * + * + * 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.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.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.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.designcenter.v1.GetCatalogTemplateRevisionRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.GetCatalogTemplateRevisionRequest other = + (com.google.cloud.designcenter.v1.GetCatalogTemplateRevisionRequest) 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.designcenter.v1.GetCatalogTemplateRevisionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GetCatalogTemplateRevisionRequest 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.designcenter.v1.GetCatalogTemplateRevisionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GetCatalogTemplateRevisionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GetCatalogTemplateRevisionRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GetCatalogTemplateRevisionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GetCatalogTemplateRevisionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GetCatalogTemplateRevisionRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GetCatalogTemplateRevisionRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GetCatalogTemplateRevisionRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GetCatalogTemplateRevisionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GetCatalogTemplateRevisionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.GetCatalogTemplateRevisionRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for GetTemplateRevision Request
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.GetCatalogTemplateRevisionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.GetCatalogTemplateRevisionRequest) + com.google.cloud.designcenter.v1.GetCatalogTemplateRevisionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GetCatalogTemplateRevisionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GetCatalogTemplateRevisionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.GetCatalogTemplateRevisionRequest.class, + com.google.cloud.designcenter.v1.GetCatalogTemplateRevisionRequest.Builder.class); + } + + // Construct using + // com.google.cloud.designcenter.v1.GetCatalogTemplateRevisionRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.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.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GetCatalogTemplateRevisionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GetCatalogTemplateRevisionRequest + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.GetCatalogTemplateRevisionRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GetCatalogTemplateRevisionRequest build() { + com.google.cloud.designcenter.v1.GetCatalogTemplateRevisionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GetCatalogTemplateRevisionRequest buildPartial() { + com.google.cloud.designcenter.v1.GetCatalogTemplateRevisionRequest result = + new com.google.cloud.designcenter.v1.GetCatalogTemplateRevisionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.GetCatalogTemplateRevisionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.GetCatalogTemplateRevisionRequest) { + return mergeFrom( + (com.google.cloud.designcenter.v1.GetCatalogTemplateRevisionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.designcenter.v1.GetCatalogTemplateRevisionRequest other) { + if (other + == com.google.cloud.designcenter.v1.GetCatalogTemplateRevisionRequest + .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 catalog template revisions name.
+     * 
+ * + * + * 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 catalog template revisions name.
+     * 
+ * + * + * 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 catalog template revisions name.
+     * 
+ * + * + * 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 catalog template revisions name.
+     * 
+ * + * + * 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 catalog template revisions name.
+     * 
+ * + * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.GetCatalogTemplateRevisionRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.GetCatalogTemplateRevisionRequest) + private static final com.google.cloud.designcenter.v1.GetCatalogTemplateRevisionRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.GetCatalogTemplateRevisionRequest(); + } + + public static com.google.cloud.designcenter.v1.GetCatalogTemplateRevisionRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetCatalogTemplateRevisionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.GetCatalogTemplateRevisionRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetCatalogTemplateRevisionRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetCatalogTemplateRevisionRequestOrBuilder.java new file mode 100644 index 000000000000..4dacea0c8941 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetCatalogTemplateRevisionRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/catalog_management_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface GetCatalogTemplateRevisionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.GetCatalogTemplateRevisionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The catalog template revisions name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The catalog template revisions name.
+   * 
+ * + * + * 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-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetComponentRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetComponentRequest.java new file mode 100644 index 000000000000..08fe1d328d00 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetComponentRequest.java @@ -0,0 +1,610 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for getting a component.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.GetComponentRequest} + */ +@com.google.protobuf.Generated +public final class GetComponentRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.GetComponentRequest) + GetComponentRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "GetComponentRequest"); + } + + // Use GetComponentRequest.newBuilder() to construct. + private GetComponentRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetComponentRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GetComponentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GetComponentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.GetComponentRequest.class, + com.google.cloud.designcenter.v1.GetComponentRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The component name.
+   * 
+ * + * + * 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 component name.
+   * 
+ * + * + * 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.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.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.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.designcenter.v1.GetComponentRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.GetComponentRequest other = + (com.google.cloud.designcenter.v1.GetComponentRequest) 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.designcenter.v1.GetComponentRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GetComponentRequest 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.designcenter.v1.GetComponentRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GetComponentRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GetComponentRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GetComponentRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GetComponentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GetComponentRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GetComponentRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GetComponentRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GetComponentRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GetComponentRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.GetComponentRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for getting a component.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.GetComponentRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.GetComponentRequest) + com.google.cloud.designcenter.v1.GetComponentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GetComponentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GetComponentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.GetComponentRequest.class, + com.google.cloud.designcenter.v1.GetComponentRequest.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.GetComponentRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.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.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GetComponentRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GetComponentRequest getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.GetComponentRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GetComponentRequest build() { + com.google.cloud.designcenter.v1.GetComponentRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GetComponentRequest buildPartial() { + com.google.cloud.designcenter.v1.GetComponentRequest result = + new com.google.cloud.designcenter.v1.GetComponentRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.GetComponentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.GetComponentRequest) { + return mergeFrom((com.google.cloud.designcenter.v1.GetComponentRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.GetComponentRequest other) { + if (other == com.google.cloud.designcenter.v1.GetComponentRequest.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 component name.
+     * 
+ * + * + * 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 component name.
+     * 
+ * + * + * 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 component name.
+     * 
+ * + * + * 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 component name.
+     * 
+ * + * + * 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 component name.
+     * 
+ * + * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.GetComponentRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.GetComponentRequest) + private static final com.google.cloud.designcenter.v1.GetComponentRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.GetComponentRequest(); + } + + public static com.google.cloud.designcenter.v1.GetComponentRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetComponentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.GetComponentRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetComponentRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetComponentRequestOrBuilder.java new file mode 100644 index 000000000000..14dd091bb628 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetComponentRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface GetComponentRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.GetComponentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The component name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The component name.
+   * 
+ * + * + * 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-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetConnectionRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetConnectionRequest.java new file mode 100644 index 000000000000..afb7e100144a --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetConnectionRequest.java @@ -0,0 +1,611 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for getting a connection.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.GetConnectionRequest} + */ +@com.google.protobuf.Generated +public final class GetConnectionRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.GetConnectionRequest) + GetConnectionRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "GetConnectionRequest"); + } + + // Use GetConnectionRequest.newBuilder() to construct. + private GetConnectionRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetConnectionRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GetConnectionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GetConnectionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.GetConnectionRequest.class, + com.google.cloud.designcenter.v1.GetConnectionRequest.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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.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.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.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.designcenter.v1.GetConnectionRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.GetConnectionRequest other = + (com.google.cloud.designcenter.v1.GetConnectionRequest) 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.designcenter.v1.GetConnectionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GetConnectionRequest 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.designcenter.v1.GetConnectionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GetConnectionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GetConnectionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GetConnectionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GetConnectionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GetConnectionRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GetConnectionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GetConnectionRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GetConnectionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GetConnectionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.GetConnectionRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for getting a connection.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.GetConnectionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.GetConnectionRequest) + com.google.cloud.designcenter.v1.GetConnectionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GetConnectionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GetConnectionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.GetConnectionRequest.class, + com.google.cloud.designcenter.v1.GetConnectionRequest.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.GetConnectionRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.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.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GetConnectionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GetConnectionRequest getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.GetConnectionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GetConnectionRequest build() { + com.google.cloud.designcenter.v1.GetConnectionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GetConnectionRequest buildPartial() { + com.google.cloud.designcenter.v1.GetConnectionRequest result = + new com.google.cloud.designcenter.v1.GetConnectionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.GetConnectionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.GetConnectionRequest) { + return mergeFrom((com.google.cloud.designcenter.v1.GetConnectionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.GetConnectionRequest other) { + if (other == com.google.cloud.designcenter.v1.GetConnectionRequest.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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.GetConnectionRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.GetConnectionRequest) + private static final com.google.cloud.designcenter.v1.GetConnectionRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.GetConnectionRequest(); + } + + public static com.google.cloud.designcenter.v1.GetConnectionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetConnectionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.GetConnectionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetConnectionRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetConnectionRequestOrBuilder.java new file mode 100644 index 000000000000..c27d1edcf134 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetConnectionRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface GetConnectionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.GetConnectionRequest) + 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-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetPolicyRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetPolicyRequest.java new file mode 100644 index 000000000000..ef88f0aea997 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetPolicyRequest.java @@ -0,0 +1,617 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/best_practices_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for getting a policy.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.GetPolicyRequest} + */ +@com.google.protobuf.Generated +public final class GetPolicyRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.GetPolicyRequest) + GetPolicyRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "GetPolicyRequest"); + } + + // Use GetPolicyRequest.newBuilder() to construct. + private GetPolicyRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetPolicyRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GetPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GetPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.GetPolicyRequest.class, + com.google.cloud.designcenter.v1.GetPolicyRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The policy name in the following format:
+   * `projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate/policies/$policy`
+   * 
+ * + * + * 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 policy name in the following format:
+   * `projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate/policies/$policy`
+   * 
+ * + * + * 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.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.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.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.designcenter.v1.GetPolicyRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.GetPolicyRequest other = + (com.google.cloud.designcenter.v1.GetPolicyRequest) 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.designcenter.v1.GetPolicyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GetPolicyRequest 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.designcenter.v1.GetPolicyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GetPolicyRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GetPolicyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GetPolicyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GetPolicyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GetPolicyRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GetPolicyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GetPolicyRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GetPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GetPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.GetPolicyRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for getting a policy.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.GetPolicyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.GetPolicyRequest) + com.google.cloud.designcenter.v1.GetPolicyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GetPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GetPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.GetPolicyRequest.class, + com.google.cloud.designcenter.v1.GetPolicyRequest.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.GetPolicyRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.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.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GetPolicyRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GetPolicyRequest getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.GetPolicyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GetPolicyRequest build() { + com.google.cloud.designcenter.v1.GetPolicyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GetPolicyRequest buildPartial() { + com.google.cloud.designcenter.v1.GetPolicyRequest result = + new com.google.cloud.designcenter.v1.GetPolicyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.GetPolicyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.GetPolicyRequest) { + return mergeFrom((com.google.cloud.designcenter.v1.GetPolicyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.GetPolicyRequest other) { + if (other == com.google.cloud.designcenter.v1.GetPolicyRequest.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 policy name in the following format:
+     * `projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate/policies/$policy`
+     * 
+ * + * + * 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 policy name in the following format:
+     * `projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate/policies/$policy`
+     * 
+ * + * + * 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 policy name in the following format:
+     * `projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate/policies/$policy`
+     * 
+ * + * + * 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 policy name in the following format:
+     * `projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate/policies/$policy`
+     * 
+ * + * + * 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 policy name in the following format:
+     * `projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate/policies/$policy`
+     * 
+ * + * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.GetPolicyRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.GetPolicyRequest) + private static final com.google.cloud.designcenter.v1.GetPolicyRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.GetPolicyRequest(); + } + + public static com.google.cloud.designcenter.v1.GetPolicyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.GetPolicyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetPolicyRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetPolicyRequestOrBuilder.java new file mode 100644 index 000000000000..a713128a73ab --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetPolicyRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/best_practices_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface GetPolicyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.GetPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The policy name in the following format:
+   * `projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate/policies/$policy`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The policy name in the following format:
+   * `projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate/policies/$policy`
+   * 
+ * + * + * 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-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetShareRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetShareRequest.java new file mode 100644 index 000000000000..5578caf892d8 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetShareRequest.java @@ -0,0 +1,617 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/sharing_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for getting a share of a catalog.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.GetShareRequest} + */ +@com.google.protobuf.Generated +public final class GetShareRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.GetShareRequest) + GetShareRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "GetShareRequest"); + } + + // Use GetShareRequest.newBuilder() to construct. + private GetShareRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetShareRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_GetShareRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_GetShareRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.GetShareRequest.class, + com.google.cloud.designcenter.v1.GetShareRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The share name in the following format:
+   * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/shares/$share`
+   * 
+ * + * + * 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 share name in the following format:
+   * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/shares/$share`
+   * 
+ * + * + * 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.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.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.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.designcenter.v1.GetShareRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.GetShareRequest other = + (com.google.cloud.designcenter.v1.GetShareRequest) 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.designcenter.v1.GetShareRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GetShareRequest 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.designcenter.v1.GetShareRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GetShareRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GetShareRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GetShareRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GetShareRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GetShareRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GetShareRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GetShareRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GetShareRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GetShareRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.GetShareRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for getting a share of a catalog.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.GetShareRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.GetShareRequest) + com.google.cloud.designcenter.v1.GetShareRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_GetShareRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_GetShareRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.GetShareRequest.class, + com.google.cloud.designcenter.v1.GetShareRequest.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.GetShareRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.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.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_GetShareRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GetShareRequest getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.GetShareRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GetShareRequest build() { + com.google.cloud.designcenter.v1.GetShareRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GetShareRequest buildPartial() { + com.google.cloud.designcenter.v1.GetShareRequest result = + new com.google.cloud.designcenter.v1.GetShareRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.GetShareRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.GetShareRequest) { + return mergeFrom((com.google.cloud.designcenter.v1.GetShareRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.GetShareRequest other) { + if (other == com.google.cloud.designcenter.v1.GetShareRequest.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 share name in the following format:
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/shares/$share`
+     * 
+ * + * + * 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 share name in the following format:
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/shares/$share`
+     * 
+ * + * + * 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 share name in the following format:
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/shares/$share`
+     * 
+ * + * + * 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 share name in the following format:
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/shares/$share`
+     * 
+ * + * + * 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 share name in the following format:
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/shares/$share`
+     * 
+ * + * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.GetShareRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.GetShareRequest) + private static final com.google.cloud.designcenter.v1.GetShareRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.GetShareRequest(); + } + + public static com.google.cloud.designcenter.v1.GetShareRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetShareRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.GetShareRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetShareRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetShareRequestOrBuilder.java new file mode 100644 index 000000000000..9e2edd834547 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetShareRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/sharing_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface GetShareRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.GetShareRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The share name in the following format:
+   * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/shares/$share`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The share name in the following format:
+   * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/shares/$share`
+   * 
+ * + * + * 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-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetSharedTemplateRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetSharedTemplateRequest.java new file mode 100644 index 000000000000..42812fc42619 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetSharedTemplateRequest.java @@ -0,0 +1,625 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/sharing_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for getting a shared template.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.GetSharedTemplateRequest} + */ +@com.google.protobuf.Generated +public final class GetSharedTemplateRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.GetSharedTemplateRequest) + GetSharedTemplateRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "GetSharedTemplateRequest"); + } + + // Use GetSharedTemplateRequest.newBuilder() to construct. + private GetSharedTemplateRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetSharedTemplateRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_GetSharedTemplateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_GetSharedTemplateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.GetSharedTemplateRequest.class, + com.google.cloud.designcenter.v1.GetSharedTemplateRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The shared template name.
+   * Format:
+   * `projects/$project/locations/$location/spaces/$space/sharedTemplates/$sharedTemplate`
+   * 
+ * + * + * 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 shared template name.
+   * Format:
+   * `projects/$project/locations/$location/spaces/$space/sharedTemplates/$sharedTemplate`
+   * 
+ * + * + * 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.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.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.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.designcenter.v1.GetSharedTemplateRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.GetSharedTemplateRequest other = + (com.google.cloud.designcenter.v1.GetSharedTemplateRequest) 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.designcenter.v1.GetSharedTemplateRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GetSharedTemplateRequest 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.designcenter.v1.GetSharedTemplateRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GetSharedTemplateRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GetSharedTemplateRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GetSharedTemplateRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GetSharedTemplateRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GetSharedTemplateRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GetSharedTemplateRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GetSharedTemplateRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GetSharedTemplateRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GetSharedTemplateRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.GetSharedTemplateRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for getting a shared template.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.GetSharedTemplateRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.GetSharedTemplateRequest) + com.google.cloud.designcenter.v1.GetSharedTemplateRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_GetSharedTemplateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_GetSharedTemplateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.GetSharedTemplateRequest.class, + com.google.cloud.designcenter.v1.GetSharedTemplateRequest.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.GetSharedTemplateRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.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.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_GetSharedTemplateRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GetSharedTemplateRequest getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.GetSharedTemplateRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GetSharedTemplateRequest build() { + com.google.cloud.designcenter.v1.GetSharedTemplateRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GetSharedTemplateRequest buildPartial() { + com.google.cloud.designcenter.v1.GetSharedTemplateRequest result = + new com.google.cloud.designcenter.v1.GetSharedTemplateRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.GetSharedTemplateRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.GetSharedTemplateRequest) { + return mergeFrom((com.google.cloud.designcenter.v1.GetSharedTemplateRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.GetSharedTemplateRequest other) { + if (other == com.google.cloud.designcenter.v1.GetSharedTemplateRequest.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 shared template name.
+     * Format:
+     * `projects/$project/locations/$location/spaces/$space/sharedTemplates/$sharedTemplate`
+     * 
+ * + * + * 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 shared template name.
+     * Format:
+     * `projects/$project/locations/$location/spaces/$space/sharedTemplates/$sharedTemplate`
+     * 
+ * + * + * 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 shared template name.
+     * Format:
+     * `projects/$project/locations/$location/spaces/$space/sharedTemplates/$sharedTemplate`
+     * 
+ * + * + * 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 shared template name.
+     * Format:
+     * `projects/$project/locations/$location/spaces/$space/sharedTemplates/$sharedTemplate`
+     * 
+ * + * + * 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 shared template name.
+     * Format:
+     * `projects/$project/locations/$location/spaces/$space/sharedTemplates/$sharedTemplate`
+     * 
+ * + * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.GetSharedTemplateRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.GetSharedTemplateRequest) + private static final com.google.cloud.designcenter.v1.GetSharedTemplateRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.GetSharedTemplateRequest(); + } + + public static com.google.cloud.designcenter.v1.GetSharedTemplateRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSharedTemplateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.GetSharedTemplateRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetSharedTemplateRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetSharedTemplateRequestOrBuilder.java new file mode 100644 index 000000000000..494dc47a99f6 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetSharedTemplateRequestOrBuilder.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/sharing_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface GetSharedTemplateRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.GetSharedTemplateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The shared template name.
+   * Format:
+   * `projects/$project/locations/$location/spaces/$space/sharedTemplates/$sharedTemplate`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The shared template name.
+   * Format:
+   * `projects/$project/locations/$location/spaces/$space/sharedTemplates/$sharedTemplate`
+   * 
+ * + * + * 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-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetSharedTemplateRevisionRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetSharedTemplateRevisionRequest.java new file mode 100644 index 000000000000..03344f49d254 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetSharedTemplateRevisionRequest.java @@ -0,0 +1,628 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/sharing_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for getting a shared template revisions.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.GetSharedTemplateRevisionRequest} + */ +@com.google.protobuf.Generated +public final class GetSharedTemplateRevisionRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.GetSharedTemplateRevisionRequest) + GetSharedTemplateRevisionRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "GetSharedTemplateRevisionRequest"); + } + + // Use GetSharedTemplateRevisionRequest.newBuilder() to construct. + private GetSharedTemplateRevisionRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetSharedTemplateRevisionRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_GetSharedTemplateRevisionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_GetSharedTemplateRevisionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.GetSharedTemplateRevisionRequest.class, + com.google.cloud.designcenter.v1.GetSharedTemplateRevisionRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The shared template revision name, in the following format:
+   * `projects/$project/locations/$location/spaces/$space/sharedTemplates/$sharedTemplate/revisions/$revision`
+   * 
+ * + * + * 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 shared template revision name, in the following format:
+   * `projects/$project/locations/$location/spaces/$space/sharedTemplates/$sharedTemplate/revisions/$revision`
+   * 
+ * + * + * 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.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.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.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.designcenter.v1.GetSharedTemplateRevisionRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.GetSharedTemplateRevisionRequest other = + (com.google.cloud.designcenter.v1.GetSharedTemplateRevisionRequest) 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.designcenter.v1.GetSharedTemplateRevisionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GetSharedTemplateRevisionRequest 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.designcenter.v1.GetSharedTemplateRevisionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GetSharedTemplateRevisionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GetSharedTemplateRevisionRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GetSharedTemplateRevisionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GetSharedTemplateRevisionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GetSharedTemplateRevisionRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GetSharedTemplateRevisionRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GetSharedTemplateRevisionRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GetSharedTemplateRevisionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GetSharedTemplateRevisionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.GetSharedTemplateRevisionRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for getting a shared template revisions.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.GetSharedTemplateRevisionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.GetSharedTemplateRevisionRequest) + com.google.cloud.designcenter.v1.GetSharedTemplateRevisionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_GetSharedTemplateRevisionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_GetSharedTemplateRevisionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.GetSharedTemplateRevisionRequest.class, + com.google.cloud.designcenter.v1.GetSharedTemplateRevisionRequest.Builder.class); + } + + // Construct using + // com.google.cloud.designcenter.v1.GetSharedTemplateRevisionRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.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.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_GetSharedTemplateRevisionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GetSharedTemplateRevisionRequest + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.GetSharedTemplateRevisionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GetSharedTemplateRevisionRequest build() { + com.google.cloud.designcenter.v1.GetSharedTemplateRevisionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GetSharedTemplateRevisionRequest buildPartial() { + com.google.cloud.designcenter.v1.GetSharedTemplateRevisionRequest result = + new com.google.cloud.designcenter.v1.GetSharedTemplateRevisionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.GetSharedTemplateRevisionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.GetSharedTemplateRevisionRequest) { + return mergeFrom((com.google.cloud.designcenter.v1.GetSharedTemplateRevisionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.designcenter.v1.GetSharedTemplateRevisionRequest other) { + if (other + == com.google.cloud.designcenter.v1.GetSharedTemplateRevisionRequest.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 shared template revision name, in the following format:
+     * `projects/$project/locations/$location/spaces/$space/sharedTemplates/$sharedTemplate/revisions/$revision`
+     * 
+ * + * + * 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 shared template revision name, in the following format:
+     * `projects/$project/locations/$location/spaces/$space/sharedTemplates/$sharedTemplate/revisions/$revision`
+     * 
+ * + * + * 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 shared template revision name, in the following format:
+     * `projects/$project/locations/$location/spaces/$space/sharedTemplates/$sharedTemplate/revisions/$revision`
+     * 
+ * + * + * 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 shared template revision name, in the following format:
+     * `projects/$project/locations/$location/spaces/$space/sharedTemplates/$sharedTemplate/revisions/$revision`
+     * 
+ * + * + * 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 shared template revision name, in the following format:
+     * `projects/$project/locations/$location/spaces/$space/sharedTemplates/$sharedTemplate/revisions/$revision`
+     * 
+ * + * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.GetSharedTemplateRevisionRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.GetSharedTemplateRevisionRequest) + private static final com.google.cloud.designcenter.v1.GetSharedTemplateRevisionRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.GetSharedTemplateRevisionRequest(); + } + + public static com.google.cloud.designcenter.v1.GetSharedTemplateRevisionRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSharedTemplateRevisionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.GetSharedTemplateRevisionRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetSharedTemplateRevisionRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetSharedTemplateRevisionRequestOrBuilder.java new file mode 100644 index 000000000000..3ed7f696b81d --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetSharedTemplateRevisionRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/sharing_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface GetSharedTemplateRevisionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.GetSharedTemplateRevisionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The shared template revision name, in the following format:
+   * `projects/$project/locations/$location/spaces/$space/sharedTemplates/$sharedTemplate/revisions/$revision`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The shared template revision name, in the following format:
+   * `projects/$project/locations/$location/spaces/$space/sharedTemplates/$sharedTemplate/revisions/$revision`
+   * 
+ * + * + * 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-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetSpaceRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetSpaceRequest.java new file mode 100644 index 000000000000..2f277e78b4a2 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetSpaceRequest.java @@ -0,0 +1,610 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/catalog_management_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Results returned from projects.locations.spaces.get.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.GetSpaceRequest} + */ +@com.google.protobuf.Generated +public final class GetSpaceRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.GetSpaceRequest) + GetSpaceRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "GetSpaceRequest"); + } + + // Use GetSpaceRequest.newBuilder() to construct. + private GetSpaceRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetSpaceRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GetSpaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GetSpaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.GetSpaceRequest.class, + com.google.cloud.designcenter.v1.GetSpaceRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The space name.
+   * 
+ * + * + * 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 space name.
+   * 
+ * + * + * 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.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.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.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.designcenter.v1.GetSpaceRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.GetSpaceRequest other = + (com.google.cloud.designcenter.v1.GetSpaceRequest) 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.designcenter.v1.GetSpaceRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GetSpaceRequest 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.designcenter.v1.GetSpaceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GetSpaceRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GetSpaceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GetSpaceRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GetSpaceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GetSpaceRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GetSpaceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GetSpaceRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GetSpaceRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GetSpaceRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.GetSpaceRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Results returned from projects.locations.spaces.get.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.GetSpaceRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.GetSpaceRequest) + com.google.cloud.designcenter.v1.GetSpaceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GetSpaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GetSpaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.GetSpaceRequest.class, + com.google.cloud.designcenter.v1.GetSpaceRequest.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.GetSpaceRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.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.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_GetSpaceRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GetSpaceRequest getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.GetSpaceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GetSpaceRequest build() { + com.google.cloud.designcenter.v1.GetSpaceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GetSpaceRequest buildPartial() { + com.google.cloud.designcenter.v1.GetSpaceRequest result = + new com.google.cloud.designcenter.v1.GetSpaceRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.GetSpaceRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.GetSpaceRequest) { + return mergeFrom((com.google.cloud.designcenter.v1.GetSpaceRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.GetSpaceRequest other) { + if (other == com.google.cloud.designcenter.v1.GetSpaceRequest.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 space name.
+     * 
+ * + * + * 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 space name.
+     * 
+ * + * + * 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 space name.
+     * 
+ * + * + * 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 space name.
+     * 
+ * + * + * 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 space name.
+     * 
+ * + * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.GetSpaceRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.GetSpaceRequest) + private static final com.google.cloud.designcenter.v1.GetSpaceRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.GetSpaceRequest(); + } + + public static com.google.cloud.designcenter.v1.GetSpaceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSpaceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.GetSpaceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetSpaceRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetSpaceRequestOrBuilder.java new file mode 100644 index 000000000000..6b66dfaa5d41 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GetSpaceRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/catalog_management_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface GetSpaceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.GetSpaceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The space name.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The space name.
+   * 
+ * + * + * 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-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GitReference.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GitReference.java new file mode 100644 index 000000000000..aaffc4fb269d --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GitReference.java @@ -0,0 +1,1239 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/ingestion.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * The Git reference. Can be a commit SHA, branch name, or tag name.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.GitReference} + */ +@com.google.protobuf.Generated +public final class GitReference extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.GitReference) + GitReferenceOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "GitReference"); + } + + // Use GitReference.newBuilder() to construct. + private GitReference(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GitReference() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.IngestionProto + .internal_static_google_cloud_designcenter_v1_GitReference_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.IngestionProto + .internal_static_google_cloud_designcenter_v1_GitReference_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.GitReference.class, + com.google.cloud.designcenter.v1.GitReference.Builder.class); + } + + private int referenceCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object reference_; + + public enum ReferenceCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + BRANCH(1), + REF_TAG(2), + COMMIT_SHA(3), + REFERENCE_NOT_SET(0); + private final int value; + + private ReferenceCase(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 ReferenceCase valueOf(int value) { + return forNumber(value); + } + + public static ReferenceCase forNumber(int value) { + switch (value) { + case 1: + return BRANCH; + case 2: + return REF_TAG; + case 3: + return COMMIT_SHA; + case 0: + return REFERENCE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ReferenceCase getReferenceCase() { + return ReferenceCase.forNumber(referenceCase_); + } + + public static final int BRANCH_FIELD_NUMBER = 1; + + /** + * + * + *
+   * Optional. The name of the branch from which content should be read.
+   * For example: "main"
+   * 
+ * + * string branch = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the branch field is set. + */ + public boolean hasBranch() { + return referenceCase_ == 1; + } + + /** + * + * + *
+   * Optional. The name of the branch from which content should be read.
+   * For example: "main"
+   * 
+ * + * string branch = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The branch. + */ + public java.lang.String getBranch() { + java.lang.Object ref = ""; + if (referenceCase_ == 1) { + ref = reference_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (referenceCase_ == 1) { + reference_ = s; + } + return s; + } + } + + /** + * + * + *
+   * Optional. The name of the branch from which content should be read.
+   * For example: "main"
+   * 
+ * + * string branch = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for branch. + */ + public com.google.protobuf.ByteString getBranchBytes() { + java.lang.Object ref = ""; + if (referenceCase_ == 1) { + ref = reference_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (referenceCase_ == 1) { + reference_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REF_TAG_FIELD_NUMBER = 2; + + /** + * + * + *
+   * Optional. The reference tag from which content should be read.
+   * For example: "v1.2.3"
+   * 
+ * + * string ref_tag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the refTag field is set. + */ + public boolean hasRefTag() { + return referenceCase_ == 2; + } + + /** + * + * + *
+   * Optional. The reference tag from which content should be read.
+   * For example: "v1.2.3"
+   * 
+ * + * string ref_tag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The refTag. + */ + public java.lang.String getRefTag() { + java.lang.Object ref = ""; + if (referenceCase_ == 2) { + ref = reference_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (referenceCase_ == 2) { + reference_ = s; + } + return s; + } + } + + /** + * + * + *
+   * Optional. The reference tag from which content should be read.
+   * For example: "v1.2.3"
+   * 
+ * + * string ref_tag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for refTag. + */ + public com.google.protobuf.ByteString getRefTagBytes() { + java.lang.Object ref = ""; + if (referenceCase_ == 2) { + ref = reference_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (referenceCase_ == 2) { + reference_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COMMIT_SHA_FIELD_NUMBER = 3; + + /** + * + * + *
+   * Optional. The full SHA hash of a specific commit from which content
+   * should be read.
+   * 
+ * + * string commit_sha = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the commitSha field is set. + */ + public boolean hasCommitSha() { + return referenceCase_ == 3; + } + + /** + * + * + *
+   * Optional. The full SHA hash of a specific commit from which content
+   * should be read.
+   * 
+ * + * string commit_sha = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The commitSha. + */ + public java.lang.String getCommitSha() { + java.lang.Object ref = ""; + if (referenceCase_ == 3) { + ref = reference_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (referenceCase_ == 3) { + reference_ = s; + } + return s; + } + } + + /** + * + * + *
+   * Optional. The full SHA hash of a specific commit from which content
+   * should be read.
+   * 
+ * + * string commit_sha = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for commitSha. + */ + public com.google.protobuf.ByteString getCommitShaBytes() { + java.lang.Object ref = ""; + if (referenceCase_ == 3) { + ref = reference_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (referenceCase_ == 3) { + reference_ = 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 (referenceCase_ == 1) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, reference_); + } + if (referenceCase_ == 2) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, reference_); + } + if (referenceCase_ == 3) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, reference_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (referenceCase_ == 1) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, reference_); + } + if (referenceCase_ == 2) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, reference_); + } + if (referenceCase_ == 3) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, reference_); + } + 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.designcenter.v1.GitReference)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.GitReference other = + (com.google.cloud.designcenter.v1.GitReference) obj; + + if (!getReferenceCase().equals(other.getReferenceCase())) return false; + switch (referenceCase_) { + case 1: + if (!getBranch().equals(other.getBranch())) return false; + break; + case 2: + if (!getRefTag().equals(other.getRefTag())) return false; + break; + case 3: + if (!getCommitSha().equals(other.getCommitSha())) 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 (referenceCase_) { + case 1: + hash = (37 * hash) + BRANCH_FIELD_NUMBER; + hash = (53 * hash) + getBranch().hashCode(); + break; + case 2: + hash = (37 * hash) + REF_TAG_FIELD_NUMBER; + hash = (53 * hash) + getRefTag().hashCode(); + break; + case 3: + hash = (37 * hash) + COMMIT_SHA_FIELD_NUMBER; + hash = (53 * hash) + getCommitSha().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.GitReference parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GitReference 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.designcenter.v1.GitReference parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GitReference parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GitReference parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GitReference parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GitReference parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GitReference parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GitReference parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GitReference parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GitReference parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GitReference parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.GitReference 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * The Git reference. Can be a commit SHA, branch name, or tag name.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.GitReference} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.GitReference) + com.google.cloud.designcenter.v1.GitReferenceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.IngestionProto + .internal_static_google_cloud_designcenter_v1_GitReference_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.IngestionProto + .internal_static_google_cloud_designcenter_v1_GitReference_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.GitReference.class, + com.google.cloud.designcenter.v1.GitReference.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.GitReference.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + referenceCase_ = 0; + reference_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.IngestionProto + .internal_static_google_cloud_designcenter_v1_GitReference_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GitReference getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.GitReference.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GitReference build() { + com.google.cloud.designcenter.v1.GitReference result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GitReference buildPartial() { + com.google.cloud.designcenter.v1.GitReference result = + new com.google.cloud.designcenter.v1.GitReference(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.GitReference result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.designcenter.v1.GitReference result) { + result.referenceCase_ = referenceCase_; + result.reference_ = this.reference_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.GitReference) { + return mergeFrom((com.google.cloud.designcenter.v1.GitReference) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.GitReference other) { + if (other == com.google.cloud.designcenter.v1.GitReference.getDefaultInstance()) return this; + switch (other.getReferenceCase()) { + case BRANCH: + { + referenceCase_ = 1; + reference_ = other.reference_; + onChanged(); + break; + } + case REF_TAG: + { + referenceCase_ = 2; + reference_ = other.reference_; + onChanged(); + break; + } + case COMMIT_SHA: + { + referenceCase_ = 3; + reference_ = other.reference_; + onChanged(); + break; + } + case REFERENCE_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: + { + java.lang.String s = input.readStringRequireUtf8(); + referenceCase_ = 1; + reference_ = s; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + referenceCase_ = 2; + reference_ = s; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + referenceCase_ = 3; + reference_ = 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 referenceCase_ = 0; + private java.lang.Object reference_; + + public ReferenceCase getReferenceCase() { + return ReferenceCase.forNumber(referenceCase_); + } + + public Builder clearReference() { + referenceCase_ = 0; + reference_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
+     * Optional. The name of the branch from which content should be read.
+     * For example: "main"
+     * 
+ * + * string branch = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the branch field is set. + */ + @java.lang.Override + public boolean hasBranch() { + return referenceCase_ == 1; + } + + /** + * + * + *
+     * Optional. The name of the branch from which content should be read.
+     * For example: "main"
+     * 
+ * + * string branch = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The branch. + */ + @java.lang.Override + public java.lang.String getBranch() { + java.lang.Object ref = ""; + if (referenceCase_ == 1) { + ref = reference_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (referenceCase_ == 1) { + reference_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The name of the branch from which content should be read.
+     * For example: "main"
+     * 
+ * + * string branch = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for branch. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBranchBytes() { + java.lang.Object ref = ""; + if (referenceCase_ == 1) { + ref = reference_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (referenceCase_ == 1) { + reference_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The name of the branch from which content should be read.
+     * For example: "main"
+     * 
+ * + * string branch = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The branch to set. + * @return This builder for chaining. + */ + public Builder setBranch(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + referenceCase_ = 1; + reference_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The name of the branch from which content should be read.
+     * For example: "main"
+     * 
+ * + * string branch = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearBranch() { + if (referenceCase_ == 1) { + referenceCase_ = 0; + reference_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The name of the branch from which content should be read.
+     * For example: "main"
+     * 
+ * + * string branch = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for branch to set. + * @return This builder for chaining. + */ + public Builder setBranchBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + referenceCase_ = 1; + reference_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The reference tag from which content should be read.
+     * For example: "v1.2.3"
+     * 
+ * + * string ref_tag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the refTag field is set. + */ + @java.lang.Override + public boolean hasRefTag() { + return referenceCase_ == 2; + } + + /** + * + * + *
+     * Optional. The reference tag from which content should be read.
+     * For example: "v1.2.3"
+     * 
+ * + * string ref_tag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The refTag. + */ + @java.lang.Override + public java.lang.String getRefTag() { + java.lang.Object ref = ""; + if (referenceCase_ == 2) { + ref = reference_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (referenceCase_ == 2) { + reference_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The reference tag from which content should be read.
+     * For example: "v1.2.3"
+     * 
+ * + * string ref_tag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for refTag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRefTagBytes() { + java.lang.Object ref = ""; + if (referenceCase_ == 2) { + ref = reference_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (referenceCase_ == 2) { + reference_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The reference tag from which content should be read.
+     * For example: "v1.2.3"
+     * 
+ * + * string ref_tag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The refTag to set. + * @return This builder for chaining. + */ + public Builder setRefTag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + referenceCase_ = 2; + reference_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The reference tag from which content should be read.
+     * For example: "v1.2.3"
+     * 
+ * + * string ref_tag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRefTag() { + if (referenceCase_ == 2) { + referenceCase_ = 0; + reference_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The reference tag from which content should be read.
+     * For example: "v1.2.3"
+     * 
+ * + * string ref_tag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for refTag to set. + * @return This builder for chaining. + */ + public Builder setRefTagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + referenceCase_ = 2; + reference_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The full SHA hash of a specific commit from which content
+     * should be read.
+     * 
+ * + * string commit_sha = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the commitSha field is set. + */ + @java.lang.Override + public boolean hasCommitSha() { + return referenceCase_ == 3; + } + + /** + * + * + *
+     * Optional. The full SHA hash of a specific commit from which content
+     * should be read.
+     * 
+ * + * string commit_sha = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The commitSha. + */ + @java.lang.Override + public java.lang.String getCommitSha() { + java.lang.Object ref = ""; + if (referenceCase_ == 3) { + ref = reference_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (referenceCase_ == 3) { + reference_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The full SHA hash of a specific commit from which content
+     * should be read.
+     * 
+ * + * string commit_sha = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for commitSha. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCommitShaBytes() { + java.lang.Object ref = ""; + if (referenceCase_ == 3) { + ref = reference_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (referenceCase_ == 3) { + reference_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The full SHA hash of a specific commit from which content
+     * should be read.
+     * 
+ * + * string commit_sha = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The commitSha to set. + * @return This builder for chaining. + */ + public Builder setCommitSha(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + referenceCase_ = 3; + reference_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The full SHA hash of a specific commit from which content
+     * should be read.
+     * 
+ * + * string commit_sha = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearCommitSha() { + if (referenceCase_ == 3) { + referenceCase_ = 0; + reference_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The full SHA hash of a specific commit from which content
+     * should be read.
+     * 
+ * + * string commit_sha = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for commitSha to set. + * @return This builder for chaining. + */ + public Builder setCommitShaBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + referenceCase_ = 3; + reference_ = value; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.GitReference) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.GitReference) + private static final com.google.cloud.designcenter.v1.GitReference DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.GitReference(); + } + + public static com.google.cloud.designcenter.v1.GitReference getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GitReference parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.GitReference getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GitReferenceOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GitReferenceOrBuilder.java new file mode 100644 index 000000000000..4f1da9b0e771 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GitReferenceOrBuilder.java @@ -0,0 +1,156 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/ingestion.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface GitReferenceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.GitReference) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The name of the branch from which content should be read.
+   * For example: "main"
+   * 
+ * + * string branch = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the branch field is set. + */ + boolean hasBranch(); + + /** + * + * + *
+   * Optional. The name of the branch from which content should be read.
+   * For example: "main"
+   * 
+ * + * string branch = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The branch. + */ + java.lang.String getBranch(); + + /** + * + * + *
+   * Optional. The name of the branch from which content should be read.
+   * For example: "main"
+   * 
+ * + * string branch = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for branch. + */ + com.google.protobuf.ByteString getBranchBytes(); + + /** + * + * + *
+   * Optional. The reference tag from which content should be read.
+   * For example: "v1.2.3"
+   * 
+ * + * string ref_tag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the refTag field is set. + */ + boolean hasRefTag(); + + /** + * + * + *
+   * Optional. The reference tag from which content should be read.
+   * For example: "v1.2.3"
+   * 
+ * + * string ref_tag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The refTag. + */ + java.lang.String getRefTag(); + + /** + * + * + *
+   * Optional. The reference tag from which content should be read.
+   * For example: "v1.2.3"
+   * 
+ * + * string ref_tag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for refTag. + */ + com.google.protobuf.ByteString getRefTagBytes(); + + /** + * + * + *
+   * Optional. The full SHA hash of a specific commit from which content
+   * should be read.
+   * 
+ * + * string commit_sha = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the commitSha field is set. + */ + boolean hasCommitSha(); + + /** + * + * + *
+   * Optional. The full SHA hash of a specific commit from which content
+   * should be read.
+   * 
+ * + * string commit_sha = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The commitSha. + */ + java.lang.String getCommitSha(); + + /** + * + * + *
+   * Optional. The full SHA hash of a specific commit from which content
+   * should be read.
+   * 
+ * + * string commit_sha = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for commitSha. + */ + com.google.protobuf.ByteString getCommitShaBytes(); + + com.google.cloud.designcenter.v1.GitReference.ReferenceCase getReferenceCase(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GitSource.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GitSource.java new file mode 100644 index 000000000000..f2ca5d25e83d --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GitSource.java @@ -0,0 +1,1535 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/ingestion.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Defines how to access a Git source.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.GitSource} + */ +@com.google.protobuf.Generated +public final class GitSource extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.GitSource) + GitSourceOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "GitSource"); + } + + // Use GitSource.newBuilder() to construct. + private GitSource(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GitSource() { + repo_ = ""; + dir_ = ""; + commitSha_ = ""; + refTag_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.IngestionProto + .internal_static_google_cloud_designcenter_v1_GitSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.IngestionProto + .internal_static_google_cloud_designcenter_v1_GitSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.GitSource.class, + com.google.cloud.designcenter.v1.GitSource.Builder.class); + } + + private int bitField0_; + public static final int REPO_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object repo_ = ""; + + /** + * + * + *
+   * Required. Location of the git repo to build.
+   * 
+ * + * string repo = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The repo. + */ + @java.lang.Override + public java.lang.String getRepo() { + java.lang.Object ref = repo_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + repo_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Location of the git repo to build.
+   * 
+ * + * string repo = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for repo. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRepoBytes() { + java.lang.Object ref = repo_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + repo_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DIR_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object dir_ = ""; + + /** + * + * + *
+   * Optional. Directory, relative to the source root, in which to run the
+   * build. This must be a relative path. If a step's `dir` is specified and is
+   * an absolute path, this value is ignored for that step's execution.
+   * 
+ * + * string dir = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dir. + */ + @java.lang.Override + public java.lang.String getDir() { + java.lang.Object ref = dir_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dir_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Directory, relative to the source root, in which to run the
+   * build. This must be a relative path. If a step's `dir` is specified and is
+   * an absolute path, this value is ignored for that step's execution.
+   * 
+ * + * string dir = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for dir. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDirBytes() { + java.lang.Object ref = dir_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dir_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COMMIT_SHA_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object commitSha_ = ""; + + /** + * + * + *
+   * Output only. The commit SHA of the git repo deduced from given ref_tag.
+   * 
+ * + * string commit_sha = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The commitSha. + */ + @java.lang.Override + public java.lang.String getCommitSha() { + java.lang.Object ref = commitSha_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + commitSha_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The commit SHA of the git repo deduced from given ref_tag.
+   * 
+ * + * string commit_sha = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for commitSha. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCommitShaBytes() { + java.lang.Object ref = commitSha_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + commitSha_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEVELOPER_CONNECT_CONFIG_FIELD_NUMBER = 4; + private com.google.cloud.designcenter.v1.DeveloperConnectConfig developerConnectConfig_; + + /** + * + * + *
+   * Optional. This config defines the location of a source through Developer
+   * Connect. Used to access private git repos.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectConfig developer_connect_config = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.designcenter.v1.GitSource.developer_connect_config is deprecated. See + * google/cloud/designcenter/v1/ingestion.proto;l=48 + * @return Whether the developerConnectConfig field is set. + */ + @java.lang.Override + @java.lang.Deprecated + public boolean hasDeveloperConnectConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. This config defines the location of a source through Developer
+   * Connect. Used to access private git repos.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectConfig developer_connect_config = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.designcenter.v1.GitSource.developer_connect_config is deprecated. See + * google/cloud/designcenter/v1/ingestion.proto;l=48 + * @return The developerConnectConfig. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.designcenter.v1.DeveloperConnectConfig getDeveloperConnectConfig() { + return developerConnectConfig_ == null + ? com.google.cloud.designcenter.v1.DeveloperConnectConfig.getDefaultInstance() + : developerConnectConfig_; + } + + /** + * + * + *
+   * Optional. This config defines the location of a source through Developer
+   * Connect. Used to access private git repos.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectConfig developer_connect_config = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.designcenter.v1.DeveloperConnectConfigOrBuilder + getDeveloperConnectConfigOrBuilder() { + return developerConnectConfig_ == null + ? com.google.cloud.designcenter.v1.DeveloperConnectConfig.getDefaultInstance() + : developerConnectConfig_; + } + + public static final int REF_TAG_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object refTag_ = ""; + + /** + * + * + *
+   * Required. The reference tag of the git repo.
+   * 
+ * + * string ref_tag = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The refTag. + */ + @java.lang.Override + public java.lang.String getRefTag() { + java.lang.Object ref = refTag_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + refTag_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The reference tag of the git repo.
+   * 
+ * + * string ref_tag = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for refTag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRefTagBytes() { + java.lang.Object ref = refTag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + refTag_ = 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.GeneratedMessage.isStringEmpty(repo_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, repo_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dir_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, dir_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(commitSha_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, commitSha_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getDeveloperConnectConfig()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(refTag_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, refTag_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(repo_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, repo_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dir_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, dir_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(commitSha_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, commitSha_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDeveloperConnectConfig()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(refTag_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, refTag_); + } + 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.designcenter.v1.GitSource)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.GitSource other = + (com.google.cloud.designcenter.v1.GitSource) obj; + + if (!getRepo().equals(other.getRepo())) return false; + if (!getDir().equals(other.getDir())) return false; + if (!getCommitSha().equals(other.getCommitSha())) return false; + if (hasDeveloperConnectConfig() != other.hasDeveloperConnectConfig()) return false; + if (hasDeveloperConnectConfig()) { + if (!getDeveloperConnectConfig().equals(other.getDeveloperConnectConfig())) return false; + } + if (!getRefTag().equals(other.getRefTag())) 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) + REPO_FIELD_NUMBER; + hash = (53 * hash) + getRepo().hashCode(); + hash = (37 * hash) + DIR_FIELD_NUMBER; + hash = (53 * hash) + getDir().hashCode(); + hash = (37 * hash) + COMMIT_SHA_FIELD_NUMBER; + hash = (53 * hash) + getCommitSha().hashCode(); + if (hasDeveloperConnectConfig()) { + hash = (37 * hash) + DEVELOPER_CONNECT_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDeveloperConnectConfig().hashCode(); + } + hash = (37 * hash) + REF_TAG_FIELD_NUMBER; + hash = (53 * hash) + getRefTag().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.GitSource parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GitSource 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.designcenter.v1.GitSource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GitSource parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GitSource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.GitSource parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GitSource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GitSource parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GitSource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GitSource parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.GitSource parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.GitSource parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.GitSource 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Defines how to access a Git source.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.GitSource} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.GitSource) + com.google.cloud.designcenter.v1.GitSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.IngestionProto + .internal_static_google_cloud_designcenter_v1_GitSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.IngestionProto + .internal_static_google_cloud_designcenter_v1_GitSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.GitSource.class, + com.google.cloud.designcenter.v1.GitSource.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.GitSource.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetDeveloperConnectConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + repo_ = ""; + dir_ = ""; + commitSha_ = ""; + developerConnectConfig_ = null; + if (developerConnectConfigBuilder_ != null) { + developerConnectConfigBuilder_.dispose(); + developerConnectConfigBuilder_ = null; + } + refTag_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.IngestionProto + .internal_static_google_cloud_designcenter_v1_GitSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GitSource getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.GitSource.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GitSource build() { + com.google.cloud.designcenter.v1.GitSource result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.GitSource buildPartial() { + com.google.cloud.designcenter.v1.GitSource result = + new com.google.cloud.designcenter.v1.GitSource(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.GitSource result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.repo_ = repo_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.dir_ = dir_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.commitSha_ = commitSha_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.developerConnectConfig_ = + developerConnectConfigBuilder_ == null + ? developerConnectConfig_ + : developerConnectConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.refTag_ = refTag_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.GitSource) { + return mergeFrom((com.google.cloud.designcenter.v1.GitSource) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.GitSource other) { + if (other == com.google.cloud.designcenter.v1.GitSource.getDefaultInstance()) return this; + if (!other.getRepo().isEmpty()) { + repo_ = other.repo_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDir().isEmpty()) { + dir_ = other.dir_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getCommitSha().isEmpty()) { + commitSha_ = other.commitSha_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasDeveloperConnectConfig()) { + mergeDeveloperConnectConfig(other.getDeveloperConnectConfig()); + } + if (!other.getRefTag().isEmpty()) { + refTag_ = other.refTag_; + 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: + { + repo_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + dir_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + commitSha_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetDeveloperConnectConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + refTag_ = 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 repo_ = ""; + + /** + * + * + *
+     * Required. Location of the git repo to build.
+     * 
+ * + * string repo = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The repo. + */ + public java.lang.String getRepo() { + java.lang.Object ref = repo_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + repo_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Location of the git repo to build.
+     * 
+ * + * string repo = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for repo. + */ + public com.google.protobuf.ByteString getRepoBytes() { + java.lang.Object ref = repo_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + repo_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Location of the git repo to build.
+     * 
+ * + * string repo = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The repo to set. + * @return This builder for chaining. + */ + public Builder setRepo(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + repo_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Location of the git repo to build.
+     * 
+ * + * string repo = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearRepo() { + repo_ = getDefaultInstance().getRepo(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Location of the git repo to build.
+     * 
+ * + * string repo = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for repo to set. + * @return This builder for chaining. + */ + public Builder setRepoBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + repo_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object dir_ = ""; + + /** + * + * + *
+     * Optional. Directory, relative to the source root, in which to run the
+     * build. This must be a relative path. If a step's `dir` is specified and is
+     * an absolute path, this value is ignored for that step's execution.
+     * 
+ * + * string dir = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dir. + */ + public java.lang.String getDir() { + java.lang.Object ref = dir_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dir_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Directory, relative to the source root, in which to run the
+     * build. This must be a relative path. If a step's `dir` is specified and is
+     * an absolute path, this value is ignored for that step's execution.
+     * 
+ * + * string dir = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for dir. + */ + public com.google.protobuf.ByteString getDirBytes() { + java.lang.Object ref = dir_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dir_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Directory, relative to the source root, in which to run the
+     * build. This must be a relative path. If a step's `dir` is specified and is
+     * an absolute path, this value is ignored for that step's execution.
+     * 
+ * + * string dir = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The dir to set. + * @return This builder for chaining. + */ + public Builder setDir(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dir_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Directory, relative to the source root, in which to run the
+     * build. This must be a relative path. If a step's `dir` is specified and is
+     * an absolute path, this value is ignored for that step's execution.
+     * 
+ * + * string dir = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDir() { + dir_ = getDefaultInstance().getDir(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Directory, relative to the source root, in which to run the
+     * build. This must be a relative path. If a step's `dir` is specified and is
+     * an absolute path, this value is ignored for that step's execution.
+     * 
+ * + * string dir = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for dir to set. + * @return This builder for chaining. + */ + public Builder setDirBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dir_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object commitSha_ = ""; + + /** + * + * + *
+     * Output only. The commit SHA of the git repo deduced from given ref_tag.
+     * 
+ * + * string commit_sha = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The commitSha. + */ + public java.lang.String getCommitSha() { + java.lang.Object ref = commitSha_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + commitSha_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The commit SHA of the git repo deduced from given ref_tag.
+     * 
+ * + * string commit_sha = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for commitSha. + */ + public com.google.protobuf.ByteString getCommitShaBytes() { + java.lang.Object ref = commitSha_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + commitSha_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The commit SHA of the git repo deduced from given ref_tag.
+     * 
+ * + * string commit_sha = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The commitSha to set. + * @return This builder for chaining. + */ + public Builder setCommitSha(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + commitSha_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The commit SHA of the git repo deduced from given ref_tag.
+     * 
+ * + * string commit_sha = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearCommitSha() { + commitSha_ = getDefaultInstance().getCommitSha(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The commit SHA of the git repo deduced from given ref_tag.
+     * 
+ * + * string commit_sha = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for commitSha to set. + * @return This builder for chaining. + */ + public Builder setCommitShaBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + commitSha_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.cloud.designcenter.v1.DeveloperConnectConfig developerConnectConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.DeveloperConnectConfig, + com.google.cloud.designcenter.v1.DeveloperConnectConfig.Builder, + com.google.cloud.designcenter.v1.DeveloperConnectConfigOrBuilder> + developerConnectConfigBuilder_; + + /** + * + * + *
+     * Optional. This config defines the location of a source through Developer
+     * Connect. Used to access private git repos.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectConfig developer_connect_config = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.designcenter.v1.GitSource.developer_connect_config is deprecated. + * See google/cloud/designcenter/v1/ingestion.proto;l=48 + * @return Whether the developerConnectConfig field is set. + */ + @java.lang.Deprecated + public boolean hasDeveloperConnectConfig() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Optional. This config defines the location of a source through Developer
+     * Connect. Used to access private git repos.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectConfig developer_connect_config = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.designcenter.v1.GitSource.developer_connect_config is deprecated. + * See google/cloud/designcenter/v1/ingestion.proto;l=48 + * @return The developerConnectConfig. + */ + @java.lang.Deprecated + public com.google.cloud.designcenter.v1.DeveloperConnectConfig getDeveloperConnectConfig() { + if (developerConnectConfigBuilder_ == null) { + return developerConnectConfig_ == null + ? com.google.cloud.designcenter.v1.DeveloperConnectConfig.getDefaultInstance() + : developerConnectConfig_; + } else { + return developerConnectConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. This config defines the location of a source through Developer
+     * Connect. Used to access private git repos.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectConfig developer_connect_config = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public Builder setDeveloperConnectConfig( + com.google.cloud.designcenter.v1.DeveloperConnectConfig value) { + if (developerConnectConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + developerConnectConfig_ = value; + } else { + developerConnectConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. This config defines the location of a source through Developer
+     * Connect. Used to access private git repos.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectConfig developer_connect_config = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public Builder setDeveloperConnectConfig( + com.google.cloud.designcenter.v1.DeveloperConnectConfig.Builder builderForValue) { + if (developerConnectConfigBuilder_ == null) { + developerConnectConfig_ = builderForValue.build(); + } else { + developerConnectConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. This config defines the location of a source through Developer
+     * Connect. Used to access private git repos.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectConfig developer_connect_config = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public Builder mergeDeveloperConnectConfig( + com.google.cloud.designcenter.v1.DeveloperConnectConfig value) { + if (developerConnectConfigBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && developerConnectConfig_ != null + && developerConnectConfig_ + != com.google.cloud.designcenter.v1.DeveloperConnectConfig.getDefaultInstance()) { + getDeveloperConnectConfigBuilder().mergeFrom(value); + } else { + developerConnectConfig_ = value; + } + } else { + developerConnectConfigBuilder_.mergeFrom(value); + } + if (developerConnectConfig_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. This config defines the location of a source through Developer
+     * Connect. Used to access private git repos.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectConfig developer_connect_config = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public Builder clearDeveloperConnectConfig() { + bitField0_ = (bitField0_ & ~0x00000008); + developerConnectConfig_ = null; + if (developerConnectConfigBuilder_ != null) { + developerConnectConfigBuilder_.dispose(); + developerConnectConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. This config defines the location of a source through Developer
+     * Connect. Used to access private git repos.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectConfig developer_connect_config = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public com.google.cloud.designcenter.v1.DeveloperConnectConfig.Builder + getDeveloperConnectConfigBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetDeveloperConnectConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. This config defines the location of a source through Developer
+     * Connect. Used to access private git repos.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectConfig developer_connect_config = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public com.google.cloud.designcenter.v1.DeveloperConnectConfigOrBuilder + getDeveloperConnectConfigOrBuilder() { + if (developerConnectConfigBuilder_ != null) { + return developerConnectConfigBuilder_.getMessageOrBuilder(); + } else { + return developerConnectConfig_ == null + ? com.google.cloud.designcenter.v1.DeveloperConnectConfig.getDefaultInstance() + : developerConnectConfig_; + } + } + + /** + * + * + *
+     * Optional. This config defines the location of a source through Developer
+     * Connect. Used to access private git repos.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectConfig developer_connect_config = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.DeveloperConnectConfig, + com.google.cloud.designcenter.v1.DeveloperConnectConfig.Builder, + com.google.cloud.designcenter.v1.DeveloperConnectConfigOrBuilder> + internalGetDeveloperConnectConfigFieldBuilder() { + if (developerConnectConfigBuilder_ == null) { + developerConnectConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.DeveloperConnectConfig, + com.google.cloud.designcenter.v1.DeveloperConnectConfig.Builder, + com.google.cloud.designcenter.v1.DeveloperConnectConfigOrBuilder>( + getDeveloperConnectConfig(), getParentForChildren(), isClean()); + developerConnectConfig_ = null; + } + return developerConnectConfigBuilder_; + } + + private java.lang.Object refTag_ = ""; + + /** + * + * + *
+     * Required. The reference tag of the git repo.
+     * 
+ * + * string ref_tag = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The refTag. + */ + public java.lang.String getRefTag() { + java.lang.Object ref = refTag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + refTag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The reference tag of the git repo.
+     * 
+ * + * string ref_tag = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for refTag. + */ + public com.google.protobuf.ByteString getRefTagBytes() { + java.lang.Object ref = refTag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + refTag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The reference tag of the git repo.
+     * 
+ * + * string ref_tag = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The refTag to set. + * @return This builder for chaining. + */ + public Builder setRefTag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + refTag_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The reference tag of the git repo.
+     * 
+ * + * string ref_tag = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearRefTag() { + refTag_ = getDefaultInstance().getRefTag(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The reference tag of the git repo.
+     * 
+ * + * string ref_tag = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for refTag to set. + * @return This builder for chaining. + */ + public Builder setRefTagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + refTag_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.GitSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.GitSource) + private static final com.google.cloud.designcenter.v1.GitSource DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.GitSource(); + } + + public static com.google.cloud.designcenter.v1.GitSource getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GitSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.GitSource getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GitSourceOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GitSourceOrBuilder.java new file mode 100644 index 000000000000..ebd4d7954ab3 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/GitSourceOrBuilder.java @@ -0,0 +1,190 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/ingestion.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface GitSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.GitSource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Location of the git repo to build.
+   * 
+ * + * string repo = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The repo. + */ + java.lang.String getRepo(); + + /** + * + * + *
+   * Required. Location of the git repo to build.
+   * 
+ * + * string repo = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for repo. + */ + com.google.protobuf.ByteString getRepoBytes(); + + /** + * + * + *
+   * Optional. Directory, relative to the source root, in which to run the
+   * build. This must be a relative path. If a step's `dir` is specified and is
+   * an absolute path, this value is ignored for that step's execution.
+   * 
+ * + * string dir = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dir. + */ + java.lang.String getDir(); + + /** + * + * + *
+   * Optional. Directory, relative to the source root, in which to run the
+   * build. This must be a relative path. If a step's `dir` is specified and is
+   * an absolute path, this value is ignored for that step's execution.
+   * 
+ * + * string dir = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for dir. + */ + com.google.protobuf.ByteString getDirBytes(); + + /** + * + * + *
+   * Output only. The commit SHA of the git repo deduced from given ref_tag.
+   * 
+ * + * string commit_sha = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The commitSha. + */ + java.lang.String getCommitSha(); + + /** + * + * + *
+   * Output only. The commit SHA of the git repo deduced from given ref_tag.
+   * 
+ * + * string commit_sha = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for commitSha. + */ + com.google.protobuf.ByteString getCommitShaBytes(); + + /** + * + * + *
+   * Optional. This config defines the location of a source through Developer
+   * Connect. Used to access private git repos.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectConfig developer_connect_config = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.designcenter.v1.GitSource.developer_connect_config is deprecated. See + * google/cloud/designcenter/v1/ingestion.proto;l=48 + * @return Whether the developerConnectConfig field is set. + */ + @java.lang.Deprecated + boolean hasDeveloperConnectConfig(); + + /** + * + * + *
+   * Optional. This config defines the location of a source through Developer
+   * Connect. Used to access private git repos.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectConfig developer_connect_config = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.designcenter.v1.GitSource.developer_connect_config is deprecated. See + * google/cloud/designcenter/v1/ingestion.proto;l=48 + * @return The developerConnectConfig. + */ + @java.lang.Deprecated + com.google.cloud.designcenter.v1.DeveloperConnectConfig getDeveloperConnectConfig(); + + /** + * + * + *
+   * Optional. This config defines the location of a source through Developer
+   * Connect. Used to access private git repos.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectConfig developer_connect_config = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + com.google.cloud.designcenter.v1.DeveloperConnectConfigOrBuilder + getDeveloperConnectConfigOrBuilder(); + + /** + * + * + *
+   * Required. The reference tag of the git repo.
+   * 
+ * + * string ref_tag = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The refTag. + */ + java.lang.String getRefTag(); + + /** + * + * + *
+   * Required. The reference tag of the git repo.
+   * 
+ * + * string ref_tag = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for refTag. + */ + com.google.protobuf.ByteString getRefTagBytes(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/HelmApplicationOutputParameters.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/HelmApplicationOutputParameters.java new file mode 100644 index 000000000000..1b47e7860b3a --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/HelmApplicationOutputParameters.java @@ -0,0 +1,978 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * The helm application output parameters of the deployment.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.HelmApplicationOutputParameters} + */ +@com.google.protobuf.Generated +public final class HelmApplicationOutputParameters extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.HelmApplicationOutputParameters) + HelmApplicationOutputParametersOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "HelmApplicationOutputParameters"); + } + + // Use HelmApplicationOutputParameters.newBuilder() to construct. + private HelmApplicationOutputParameters(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private HelmApplicationOutputParameters() { + parameters_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_HelmApplicationOutputParameters_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_HelmApplicationOutputParameters_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.HelmApplicationOutputParameters.class, + com.google.cloud.designcenter.v1.HelmApplicationOutputParameters.Builder.class); + } + + public static final int PARAMETERS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List parameters_; + + /** + * + * + *
+   * Output only. The output parameters of the helm application.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getParametersList() { + return parameters_; + } + + /** + * + * + *
+   * Output only. The output parameters of the helm application.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getParametersOrBuilderList() { + return parameters_; + } + + /** + * + * + *
+   * Output only. The output parameters of the helm application.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getParametersCount() { + return parameters_.size(); + } + + /** + * + * + *
+   * Output only. The output parameters of the helm application.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.Parameter getParameters(int index) { + return parameters_.get(index); + } + + /** + * + * + *
+   * Output only. The output parameters of the helm application.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ParameterOrBuilder getParametersOrBuilder(int index) { + return parameters_.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 < parameters_.size(); i++) { + output.writeMessage(1, parameters_.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 < parameters_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, parameters_.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.designcenter.v1.HelmApplicationOutputParameters)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.HelmApplicationOutputParameters other = + (com.google.cloud.designcenter.v1.HelmApplicationOutputParameters) obj; + + if (!getParametersList().equals(other.getParametersList())) 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 (getParametersCount() > 0) { + hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getParametersList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.HelmApplicationOutputParameters parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.HelmApplicationOutputParameters 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.designcenter.v1.HelmApplicationOutputParameters parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.HelmApplicationOutputParameters parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.HelmApplicationOutputParameters parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.HelmApplicationOutputParameters parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.HelmApplicationOutputParameters parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.HelmApplicationOutputParameters parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.HelmApplicationOutputParameters parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.HelmApplicationOutputParameters parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.HelmApplicationOutputParameters parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.HelmApplicationOutputParameters parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.HelmApplicationOutputParameters 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * The helm application output parameters of the deployment.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.HelmApplicationOutputParameters} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.HelmApplicationOutputParameters) + com.google.cloud.designcenter.v1.HelmApplicationOutputParametersOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_HelmApplicationOutputParameters_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_HelmApplicationOutputParameters_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.HelmApplicationOutputParameters.class, + com.google.cloud.designcenter.v1.HelmApplicationOutputParameters.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.HelmApplicationOutputParameters.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (parametersBuilder_ == null) { + parameters_ = java.util.Collections.emptyList(); + } else { + parameters_ = null; + parametersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_HelmApplicationOutputParameters_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.HelmApplicationOutputParameters + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.HelmApplicationOutputParameters.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.HelmApplicationOutputParameters build() { + com.google.cloud.designcenter.v1.HelmApplicationOutputParameters result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.HelmApplicationOutputParameters buildPartial() { + com.google.cloud.designcenter.v1.HelmApplicationOutputParameters result = + new com.google.cloud.designcenter.v1.HelmApplicationOutputParameters(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.designcenter.v1.HelmApplicationOutputParameters result) { + if (parametersBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + parameters_ = java.util.Collections.unmodifiableList(parameters_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.parameters_ = parameters_; + } else { + result.parameters_ = parametersBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.HelmApplicationOutputParameters result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.HelmApplicationOutputParameters) { + return mergeFrom((com.google.cloud.designcenter.v1.HelmApplicationOutputParameters) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.designcenter.v1.HelmApplicationOutputParameters other) { + if (other + == com.google.cloud.designcenter.v1.HelmApplicationOutputParameters.getDefaultInstance()) + return this; + if (parametersBuilder_ == null) { + if (!other.parameters_.isEmpty()) { + if (parameters_.isEmpty()) { + parameters_ = other.parameters_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureParametersIsMutable(); + parameters_.addAll(other.parameters_); + } + onChanged(); + } + } else { + if (!other.parameters_.isEmpty()) { + if (parametersBuilder_.isEmpty()) { + parametersBuilder_.dispose(); + parametersBuilder_ = null; + parameters_ = other.parameters_; + bitField0_ = (bitField0_ & ~0x00000001); + parametersBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetParametersFieldBuilder() + : null; + } else { + parametersBuilder_.addAllMessages(other.parameters_); + } + } + } + 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.designcenter.v1.Parameter m = + input.readMessage( + com.google.cloud.designcenter.v1.Parameter.parser(), extensionRegistry); + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + parameters_.add(m); + } else { + parametersBuilder_.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 parameters_ = + java.util.Collections.emptyList(); + + private void ensureParametersIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + parameters_ = + new java.util.ArrayList(parameters_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Parameter, + com.google.cloud.designcenter.v1.Parameter.Builder, + com.google.cloud.designcenter.v1.ParameterOrBuilder> + parametersBuilder_; + + /** + * + * + *
+     * Output only. The output parameters of the helm application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getParametersList() { + if (parametersBuilder_ == null) { + return java.util.Collections.unmodifiableList(parameters_); + } else { + return parametersBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Output only. The output parameters of the helm application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getParametersCount() { + if (parametersBuilder_ == null) { + return parameters_.size(); + } else { + return parametersBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Output only. The output parameters of the helm application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.Parameter getParameters(int index) { + if (parametersBuilder_ == null) { + return parameters_.get(index); + } else { + return parametersBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Output only. The output parameters of the helm application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setParameters(int index, com.google.cloud.designcenter.v1.Parameter value) { + if (parametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureParametersIsMutable(); + parameters_.set(index, value); + onChanged(); + } else { + parametersBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. The output parameters of the helm application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setParameters( + int index, com.google.cloud.designcenter.v1.Parameter.Builder builderForValue) { + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + parameters_.set(index, builderForValue.build()); + onChanged(); + } else { + parametersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The output parameters of the helm application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addParameters(com.google.cloud.designcenter.v1.Parameter value) { + if (parametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureParametersIsMutable(); + parameters_.add(value); + onChanged(); + } else { + parametersBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Output only. The output parameters of the helm application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addParameters(int index, com.google.cloud.designcenter.v1.Parameter value) { + if (parametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureParametersIsMutable(); + parameters_.add(index, value); + onChanged(); + } else { + parametersBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. The output parameters of the helm application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addParameters( + com.google.cloud.designcenter.v1.Parameter.Builder builderForValue) { + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + parameters_.add(builderForValue.build()); + onChanged(); + } else { + parametersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The output parameters of the helm application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addParameters( + int index, com.google.cloud.designcenter.v1.Parameter.Builder builderForValue) { + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + parameters_.add(index, builderForValue.build()); + onChanged(); + } else { + parametersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The output parameters of the helm application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllParameters( + java.lang.Iterable values) { + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, parameters_); + onChanged(); + } else { + parametersBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Output only. The output parameters of the helm application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearParameters() { + if (parametersBuilder_ == null) { + parameters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + parametersBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Output only. The output parameters of the helm application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeParameters(int index) { + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + parameters_.remove(index); + onChanged(); + } else { + parametersBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Output only. The output parameters of the helm application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.Parameter.Builder getParametersBuilder(int index) { + return internalGetParametersFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Output only. The output parameters of the helm application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ParameterOrBuilder getParametersOrBuilder(int index) { + if (parametersBuilder_ == null) { + return parameters_.get(index); + } else { + return parametersBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Output only. The output parameters of the helm application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getParametersOrBuilderList() { + if (parametersBuilder_ != null) { + return parametersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(parameters_); + } + } + + /** + * + * + *
+     * Output only. The output parameters of the helm application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.Parameter.Builder addParametersBuilder() { + return internalGetParametersFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.Parameter.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. The output parameters of the helm application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.Parameter.Builder addParametersBuilder(int index) { + return internalGetParametersFieldBuilder() + .addBuilder(index, com.google.cloud.designcenter.v1.Parameter.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. The output parameters of the helm application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getParametersBuilderList() { + return internalGetParametersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Parameter, + com.google.cloud.designcenter.v1.Parameter.Builder, + com.google.cloud.designcenter.v1.ParameterOrBuilder> + internalGetParametersFieldBuilder() { + if (parametersBuilder_ == null) { + parametersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Parameter, + com.google.cloud.designcenter.v1.Parameter.Builder, + com.google.cloud.designcenter.v1.ParameterOrBuilder>( + parameters_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + parameters_ = null; + } + return parametersBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.HelmApplicationOutputParameters) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.HelmApplicationOutputParameters) + private static final com.google.cloud.designcenter.v1.HelmApplicationOutputParameters + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.HelmApplicationOutputParameters(); + } + + public static com.google.cloud.designcenter.v1.HelmApplicationOutputParameters + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HelmApplicationOutputParameters parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.HelmApplicationOutputParameters + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/HelmApplicationOutputParametersOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/HelmApplicationOutputParametersOrBuilder.java new file mode 100644 index 000000000000..41e3796ddda6 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/HelmApplicationOutputParametersOrBuilder.java @@ -0,0 +1,94 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface HelmApplicationOutputParametersOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.HelmApplicationOutputParameters) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The output parameters of the helm application.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getParametersList(); + + /** + * + * + *
+   * Output only. The output parameters of the helm application.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.Parameter getParameters(int index); + + /** + * + * + *
+   * Output only. The output parameters of the helm application.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getParametersCount(); + + /** + * + * + *
+   * Output only. The output parameters of the helm application.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getParametersOrBuilderList(); + + /** + * + * + *
+   * Output only. The output parameters of the helm application.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.ParameterOrBuilder getParametersOrBuilder(int index); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/HelmChartInput.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/HelmChartInput.java new file mode 100644 index 000000000000..f821eceba65d --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/HelmChartInput.java @@ -0,0 +1,1840 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Helm Chart inputs.
+ * Documentation: https://helm.sh/docs/
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.HelmChartInput} + */ +@com.google.protobuf.Generated +public final class HelmChartInput extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.HelmChartInput) + HelmChartInputOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "HelmChartInput"); + } + + // Use HelmChartInput.newBuilder() to construct. + private HelmChartInput(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private HelmChartInput() { + helmInputVariable_ = ""; + description_ = ""; + type_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_HelmChartInput_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 7: + return internalGetNestedInputs(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_HelmChartInput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.HelmChartInput.class, + com.google.cloud.designcenter.v1.HelmChartInput.Builder.class); + } + + private int bitField0_; + public static final int HELM_INPUT_VARIABLE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object helmInputVariable_ = ""; + + /** + * + * + *
+   * Output only. Input variable name present in Helm Chart values.yaml
+   * 
+ * + * string helm_input_variable = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The helmInputVariable. + */ + @java.lang.Override + public java.lang.String getHelmInputVariable() { + java.lang.Object ref = helmInputVariable_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + helmInputVariable_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. Input variable name present in Helm Chart values.yaml
+   * 
+ * + * string helm_input_variable = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for helmInputVariable. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHelmInputVariableBytes() { + java.lang.Object ref = helmInputVariable_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + helmInputVariable_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
+   * Output only. Input variable description.
+   * 
+ * + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+   * Output only. Input variable description.
+   * 
+ * + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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 TYPE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object type_ = ""; + + /** + * + * + *
+   * Output only. Input data type.
+   * 
+ * + * string type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The type. + */ + @java.lang.Override + public java.lang.String getType() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + type_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. Input data type.
+   * 
+ * + * string type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for type. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEFAULT_VALUE_FIELD_NUMBER = 4; + private com.google.protobuf.Value defaultValue_; + + /** + * + * + *
+   * Output only. The default value of the input variable.
+   * 
+ * + * .google.protobuf.Value default_value = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the defaultValue field is set. + */ + @java.lang.Override + public boolean hasDefaultValue() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. The default value of the input variable.
+   * 
+ * + * .google.protobuf.Value default_value = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The defaultValue. + */ + @java.lang.Override + public com.google.protobuf.Value getDefaultValue() { + return defaultValue_ == null ? com.google.protobuf.Value.getDefaultInstance() : defaultValue_; + } + + /** + * + * + *
+   * Output only. The default value of the input variable.
+   * 
+ * + * .google.protobuf.Value default_value = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.ValueOrBuilder getDefaultValueOrBuilder() { + return defaultValue_ == null ? com.google.protobuf.Value.getDefaultInstance() : defaultValue_; + } + + public static final int IS_REQUIRED_FIELD_NUMBER = 6; + private boolean isRequired_ = false; + + /** + * + * + *
+   * Output only. Indicates if input is required.
+   * 
+ * + * bool is_required = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The isRequired. + */ + @java.lang.Override + public boolean getIsRequired() { + return isRequired_; + } + + public static final int NESTED_INPUTS_FIELD_NUMBER = 7; + + private static final class NestedInputsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.designcenter.v1.HelmChartInput> + defaultEntry = + com.google.protobuf.MapEntry + . + newDefaultInstance( + com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_HelmChartInput_NestedInputsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.designcenter.v1.HelmChartInput.getDefaultInstance()); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.designcenter.v1.HelmChartInput> + nestedInputs_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.designcenter.v1.HelmChartInput> + internalGetNestedInputs() { + if (nestedInputs_ == null) { + return com.google.protobuf.MapField.emptyMapField( + NestedInputsDefaultEntryHolder.defaultEntry); + } + return nestedInputs_; + } + + public int getNestedInputsCount() { + return internalGetNestedInputs().getMap().size(); + } + + /** + * + * + *
+   * Output only. Contains details of nested inputs.
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.HelmChartInput> nested_inputs = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public boolean containsNestedInputs(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetNestedInputs().getMap().containsKey(key); + } + + /** Use {@link #getNestedInputsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getNestedInputs() { + return getNestedInputsMap(); + } + + /** + * + * + *
+   * Output only. Contains details of nested inputs.
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.HelmChartInput> nested_inputs = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.Map + getNestedInputsMap() { + return internalGetNestedInputs().getMap(); + } + + /** + * + * + *
+   * Output only. Contains details of nested inputs.
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.HelmChartInput> nested_inputs = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.designcenter.v1.HelmChartInput getNestedInputsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.designcenter.v1.HelmChartInput defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetNestedInputs().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+   * Output only. Contains details of nested inputs.
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.HelmChartInput> nested_inputs = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.HelmChartInput getNestedInputsOrThrow( + java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetNestedInputs().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(helmInputVariable_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, helmInputVariable_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, description_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(type_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, type_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getDefaultValue()); + } + if (isRequired_ != false) { + output.writeBool(6, isRequired_); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetNestedInputs(), NestedInputsDefaultEntryHolder.defaultEntry, 7); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(helmInputVariable_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, helmInputVariable_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, description_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(type_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, type_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDefaultValue()); + } + if (isRequired_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, isRequired_); + } + for (java.util.Map.Entry + entry : internalGetNestedInputs().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.designcenter.v1.HelmChartInput> + nestedInputs__ = + NestedInputsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, nestedInputs__); + } + 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.designcenter.v1.HelmChartInput)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.HelmChartInput other = + (com.google.cloud.designcenter.v1.HelmChartInput) obj; + + if (!getHelmInputVariable().equals(other.getHelmInputVariable())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getType().equals(other.getType())) return false; + if (hasDefaultValue() != other.hasDefaultValue()) return false; + if (hasDefaultValue()) { + if (!getDefaultValue().equals(other.getDefaultValue())) return false; + } + if (getIsRequired() != other.getIsRequired()) return false; + if (!internalGetNestedInputs().equals(other.internalGetNestedInputs())) 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) + HELM_INPUT_VARIABLE_FIELD_NUMBER; + hash = (53 * hash) + getHelmInputVariable().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + if (hasDefaultValue()) { + hash = (37 * hash) + DEFAULT_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getDefaultValue().hashCode(); + } + hash = (37 * hash) + IS_REQUIRED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsRequired()); + if (!internalGetNestedInputs().getMap().isEmpty()) { + hash = (37 * hash) + NESTED_INPUTS_FIELD_NUMBER; + hash = (53 * hash) + internalGetNestedInputs().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.HelmChartInput parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.HelmChartInput 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.designcenter.v1.HelmChartInput parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.HelmChartInput parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.HelmChartInput parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.HelmChartInput parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.HelmChartInput parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.HelmChartInput parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.HelmChartInput parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.HelmChartInput parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.HelmChartInput parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.HelmChartInput parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.HelmChartInput 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Helm Chart inputs.
+   * Documentation: https://helm.sh/docs/
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.HelmChartInput} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.HelmChartInput) + com.google.cloud.designcenter.v1.HelmChartInputOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_HelmChartInput_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 7: + return internalGetNestedInputs(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 7: + return internalGetMutableNestedInputs(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_HelmChartInput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.HelmChartInput.class, + com.google.cloud.designcenter.v1.HelmChartInput.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.HelmChartInput.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetDefaultValueFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + helmInputVariable_ = ""; + description_ = ""; + type_ = ""; + defaultValue_ = null; + if (defaultValueBuilder_ != null) { + defaultValueBuilder_.dispose(); + defaultValueBuilder_ = null; + } + isRequired_ = false; + internalGetMutableNestedInputs().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_HelmChartInput_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.HelmChartInput getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.HelmChartInput.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.HelmChartInput build() { + com.google.cloud.designcenter.v1.HelmChartInput result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.HelmChartInput buildPartial() { + com.google.cloud.designcenter.v1.HelmChartInput result = + new com.google.cloud.designcenter.v1.HelmChartInput(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.HelmChartInput result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.helmInputVariable_ = helmInputVariable_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.type_ = type_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.defaultValue_ = + defaultValueBuilder_ == null ? defaultValue_ : defaultValueBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.isRequired_ = isRequired_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.nestedInputs_ = + internalGetNestedInputs().build(NestedInputsDefaultEntryHolder.defaultEntry); + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.HelmChartInput) { + return mergeFrom((com.google.cloud.designcenter.v1.HelmChartInput) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.HelmChartInput other) { + if (other == com.google.cloud.designcenter.v1.HelmChartInput.getDefaultInstance()) + return this; + if (!other.getHelmInputVariable().isEmpty()) { + helmInputVariable_ = other.helmInputVariable_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getType().isEmpty()) { + type_ = other.type_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasDefaultValue()) { + mergeDefaultValue(other.getDefaultValue()); + } + if (other.getIsRequired() != false) { + setIsRequired(other.getIsRequired()); + } + internalGetMutableNestedInputs().mergeFrom(other.internalGetNestedInputs()); + bitField0_ |= 0x00000020; + 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: + { + helmInputVariable_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + type_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetDefaultValueFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 48: + { + isRequired_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 48 + case 58: + { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.designcenter.v1.HelmChartInput> + nestedInputs__ = + input.readMessage( + NestedInputsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableNestedInputs() + .ensureBuilderMap() + .put(nestedInputs__.getKey(), nestedInputs__.getValue()); + bitField0_ |= 0x00000020; + 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 java.lang.Object helmInputVariable_ = ""; + + /** + * + * + *
+     * Output only. Input variable name present in Helm Chart values.yaml
+     * 
+ * + * string helm_input_variable = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The helmInputVariable. + */ + public java.lang.String getHelmInputVariable() { + java.lang.Object ref = helmInputVariable_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + helmInputVariable_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Input variable name present in Helm Chart values.yaml
+     * 
+ * + * string helm_input_variable = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for helmInputVariable. + */ + public com.google.protobuf.ByteString getHelmInputVariableBytes() { + java.lang.Object ref = helmInputVariable_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + helmInputVariable_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Input variable name present in Helm Chart values.yaml
+     * 
+ * + * string helm_input_variable = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The helmInputVariable to set. + * @return This builder for chaining. + */ + public Builder setHelmInputVariable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + helmInputVariable_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Input variable name present in Helm Chart values.yaml
+     * 
+ * + * string helm_input_variable = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearHelmInputVariable() { + helmInputVariable_ = getDefaultInstance().getHelmInputVariable(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Input variable name present in Helm Chart values.yaml
+     * 
+ * + * string helm_input_variable = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for helmInputVariable to set. + * @return This builder for chaining. + */ + public Builder setHelmInputVariableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + helmInputVariable_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
+     * Output only. Input variable description.
+     * 
+ * + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+     * Output only. Input variable description.
+     * 
+ * + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+     * Output only. Input variable description.
+     * 
+ * + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Input variable description.
+     * 
+ * + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Input variable description.
+     * 
+ * + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object type_ = ""; + + /** + * + * + *
+     * Output only. Input data type.
+     * 
+ * + * string type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The type. + */ + public java.lang.String getType() { + java.lang.Object ref = type_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + type_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Input data type.
+     * 
+ * + * string type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for type. + */ + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Input data type.
+     * 
+ * + * string type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Input data type.
+     * 
+ * + * string type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearType() { + type_ = getDefaultInstance().getType(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Input data type.
+     * 
+ * + * string type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for type to set. + * @return This builder for chaining. + */ + public Builder setTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + type_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.Value defaultValue_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder> + defaultValueBuilder_; + + /** + * + * + *
+     * Output only. The default value of the input variable.
+     * 
+ * + * .google.protobuf.Value default_value = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the defaultValue field is set. + */ + public boolean hasDefaultValue() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Output only. The default value of the input variable.
+     * 
+ * + * .google.protobuf.Value default_value = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The defaultValue. + */ + public com.google.protobuf.Value getDefaultValue() { + if (defaultValueBuilder_ == null) { + return defaultValue_ == null + ? com.google.protobuf.Value.getDefaultInstance() + : defaultValue_; + } else { + return defaultValueBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. The default value of the input variable.
+     * 
+ * + * .google.protobuf.Value default_value = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDefaultValue(com.google.protobuf.Value value) { + if (defaultValueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + defaultValue_ = value; + } else { + defaultValueBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The default value of the input variable.
+     * 
+ * + * .google.protobuf.Value default_value = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDefaultValue(com.google.protobuf.Value.Builder builderForValue) { + if (defaultValueBuilder_ == null) { + defaultValue_ = builderForValue.build(); + } else { + defaultValueBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The default value of the input variable.
+     * 
+ * + * .google.protobuf.Value default_value = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeDefaultValue(com.google.protobuf.Value value) { + if (defaultValueBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && defaultValue_ != null + && defaultValue_ != com.google.protobuf.Value.getDefaultInstance()) { + getDefaultValueBuilder().mergeFrom(value); + } else { + defaultValue_ = value; + } + } else { + defaultValueBuilder_.mergeFrom(value); + } + if (defaultValue_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The default value of the input variable.
+     * 
+ * + * .google.protobuf.Value default_value = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDefaultValue() { + bitField0_ = (bitField0_ & ~0x00000008); + defaultValue_ = null; + if (defaultValueBuilder_ != null) { + defaultValueBuilder_.dispose(); + defaultValueBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The default value of the input variable.
+     * 
+ * + * .google.protobuf.Value default_value = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Value.Builder getDefaultValueBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetDefaultValueFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The default value of the input variable.
+     * 
+ * + * .google.protobuf.Value default_value = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.ValueOrBuilder getDefaultValueOrBuilder() { + if (defaultValueBuilder_ != null) { + return defaultValueBuilder_.getMessageOrBuilder(); + } else { + return defaultValue_ == null + ? com.google.protobuf.Value.getDefaultInstance() + : defaultValue_; + } + } + + /** + * + * + *
+     * Output only. The default value of the input variable.
+     * 
+ * + * .google.protobuf.Value default_value = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder> + internalGetDefaultValueFieldBuilder() { + if (defaultValueBuilder_ == null) { + defaultValueBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder>( + getDefaultValue(), getParentForChildren(), isClean()); + defaultValue_ = null; + } + return defaultValueBuilder_; + } + + private boolean isRequired_; + + /** + * + * + *
+     * Output only. Indicates if input is required.
+     * 
+ * + * bool is_required = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The isRequired. + */ + @java.lang.Override + public boolean getIsRequired() { + return isRequired_; + } + + /** + * + * + *
+     * Output only. Indicates if input is required.
+     * 
+ * + * bool is_required = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The isRequired to set. + * @return This builder for chaining. + */ + public Builder setIsRequired(boolean value) { + + isRequired_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Indicates if input is required.
+     * 
+ * + * bool is_required = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearIsRequired() { + bitField0_ = (bitField0_ & ~0x00000010); + isRequired_ = false; + onChanged(); + return this; + } + + private static final class NestedInputsConverter + implements com.google.protobuf.MapFieldBuilder.Converter< + java.lang.String, + com.google.cloud.designcenter.v1.HelmChartInputOrBuilder, + com.google.cloud.designcenter.v1.HelmChartInput> { + @java.lang.Override + public com.google.cloud.designcenter.v1.HelmChartInput build( + com.google.cloud.designcenter.v1.HelmChartInputOrBuilder val) { + if (val instanceof com.google.cloud.designcenter.v1.HelmChartInput) { + return (com.google.cloud.designcenter.v1.HelmChartInput) val; + } + return ((com.google.cloud.designcenter.v1.HelmChartInput.Builder) val).build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.designcenter.v1.HelmChartInput> + defaultEntry() { + return NestedInputsDefaultEntryHolder.defaultEntry; + } + } + ; + + private static final NestedInputsConverter nestedInputsConverter = new NestedInputsConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.designcenter.v1.HelmChartInputOrBuilder, + com.google.cloud.designcenter.v1.HelmChartInput, + com.google.cloud.designcenter.v1.HelmChartInput.Builder> + nestedInputs_; + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.designcenter.v1.HelmChartInputOrBuilder, + com.google.cloud.designcenter.v1.HelmChartInput, + com.google.cloud.designcenter.v1.HelmChartInput.Builder> + internalGetNestedInputs() { + if (nestedInputs_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(nestedInputsConverter); + } + return nestedInputs_; + } + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.designcenter.v1.HelmChartInputOrBuilder, + com.google.cloud.designcenter.v1.HelmChartInput, + com.google.cloud.designcenter.v1.HelmChartInput.Builder> + internalGetMutableNestedInputs() { + if (nestedInputs_ == null) { + nestedInputs_ = new com.google.protobuf.MapFieldBuilder<>(nestedInputsConverter); + } + bitField0_ |= 0x00000020; + onChanged(); + return nestedInputs_; + } + + public int getNestedInputsCount() { + return internalGetNestedInputs().ensureBuilderMap().size(); + } + + /** + * + * + *
+     * Output only. Contains details of nested inputs.
+     * 
+ * + * + * map<string, .google.cloud.designcenter.v1.HelmChartInput> nested_inputs = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public boolean containsNestedInputs(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetNestedInputs().ensureBuilderMap().containsKey(key); + } + + /** Use {@link #getNestedInputsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getNestedInputs() { + return getNestedInputsMap(); + } + + /** + * + * + *
+     * Output only. Contains details of nested inputs.
+     * 
+ * + * + * map<string, .google.cloud.designcenter.v1.HelmChartInput> nested_inputs = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.Map + getNestedInputsMap() { + return internalGetNestedInputs().getImmutableMap(); + } + + /** + * + * + *
+     * Output only. Contains details of nested inputs.
+     * 
+ * + * + * map<string, .google.cloud.designcenter.v1.HelmChartInput> nested_inputs = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.designcenter.v1.HelmChartInput getNestedInputsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.designcenter.v1.HelmChartInput defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetMutableNestedInputs().ensureBuilderMap(); + return map.containsKey(key) ? nestedInputsConverter.build(map.get(key)) : defaultValue; + } + + /** + * + * + *
+     * Output only. Contains details of nested inputs.
+     * 
+ * + * + * map<string, .google.cloud.designcenter.v1.HelmChartInput> nested_inputs = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.HelmChartInput getNestedInputsOrThrow( + java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetMutableNestedInputs().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return nestedInputsConverter.build(map.get(key)); + } + + public Builder clearNestedInputs() { + bitField0_ = (bitField0_ & ~0x00000020); + internalGetMutableNestedInputs().clear(); + return this; + } + + /** + * + * + *
+     * Output only. Contains details of nested inputs.
+     * 
+ * + * + * map<string, .google.cloud.designcenter.v1.HelmChartInput> nested_inputs = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeNestedInputs(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableNestedInputs().ensureBuilderMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map + getMutableNestedInputs() { + bitField0_ |= 0x00000020; + return internalGetMutableNestedInputs().ensureMessageMap(); + } + + /** + * + * + *
+     * Output only. Contains details of nested inputs.
+     * 
+ * + * + * map<string, .google.cloud.designcenter.v1.HelmChartInput> nested_inputs = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder putNestedInputs( + java.lang.String key, com.google.cloud.designcenter.v1.HelmChartInput value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableNestedInputs().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00000020; + return this; + } + + /** + * + * + *
+     * Output only. Contains details of nested inputs.
+     * 
+ * + * + * map<string, .google.cloud.designcenter.v1.HelmChartInput> nested_inputs = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder putAllNestedInputs( + java.util.Map values) { + for (java.util.Map.Entry + e : values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableNestedInputs().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00000020; + return this; + } + + /** + * + * + *
+     * Output only. Contains details of nested inputs.
+     * 
+ * + * + * map<string, .google.cloud.designcenter.v1.HelmChartInput> nested_inputs = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.HelmChartInput.Builder putNestedInputsBuilderIfAbsent( + java.lang.String key) { + java.util.Map + builderMap = internalGetMutableNestedInputs().ensureBuilderMap(); + com.google.cloud.designcenter.v1.HelmChartInputOrBuilder entry = builderMap.get(key); + if (entry == null) { + entry = com.google.cloud.designcenter.v1.HelmChartInput.newBuilder(); + builderMap.put(key, entry); + } + if (entry instanceof com.google.cloud.designcenter.v1.HelmChartInput) { + entry = ((com.google.cloud.designcenter.v1.HelmChartInput) entry).toBuilder(); + builderMap.put(key, entry); + } + return (com.google.cloud.designcenter.v1.HelmChartInput.Builder) entry; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.HelmChartInput) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.HelmChartInput) + private static final com.google.cloud.designcenter.v1.HelmChartInput DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.HelmChartInput(); + } + + public static com.google.cloud.designcenter.v1.HelmChartInput getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HelmChartInput parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.HelmChartInput getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/HelmChartInputOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/HelmChartInputOrBuilder.java new file mode 100644 index 000000000000..e57fb4872c12 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/HelmChartInputOrBuilder.java @@ -0,0 +1,234 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface HelmChartInputOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.HelmChartInput) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Input variable name present in Helm Chart values.yaml
+   * 
+ * + * string helm_input_variable = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The helmInputVariable. + */ + java.lang.String getHelmInputVariable(); + + /** + * + * + *
+   * Output only. Input variable name present in Helm Chart values.yaml
+   * 
+ * + * string helm_input_variable = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for helmInputVariable. + */ + com.google.protobuf.ByteString getHelmInputVariableBytes(); + + /** + * + * + *
+   * Output only. Input variable description.
+   * 
+ * + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
+   * Output only. Input variable description.
+   * 
+ * + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Output only. Input data type.
+   * 
+ * + * string type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The type. + */ + java.lang.String getType(); + + /** + * + * + *
+   * Output only. Input data type.
+   * 
+ * + * string type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for type. + */ + com.google.protobuf.ByteString getTypeBytes(); + + /** + * + * + *
+   * Output only. The default value of the input variable.
+   * 
+ * + * .google.protobuf.Value default_value = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the defaultValue field is set. + */ + boolean hasDefaultValue(); + + /** + * + * + *
+   * Output only. The default value of the input variable.
+   * 
+ * + * .google.protobuf.Value default_value = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The defaultValue. + */ + com.google.protobuf.Value getDefaultValue(); + + /** + * + * + *
+   * Output only. The default value of the input variable.
+   * 
+ * + * .google.protobuf.Value default_value = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.ValueOrBuilder getDefaultValueOrBuilder(); + + /** + * + * + *
+   * Output only. Indicates if input is required.
+   * 
+ * + * bool is_required = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The isRequired. + */ + boolean getIsRequired(); + + /** + * + * + *
+   * Output only. Contains details of nested inputs.
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.HelmChartInput> nested_inputs = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getNestedInputsCount(); + + /** + * + * + *
+   * Output only. Contains details of nested inputs.
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.HelmChartInput> nested_inputs = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + boolean containsNestedInputs(java.lang.String key); + + /** Use {@link #getNestedInputsMap()} instead. */ + @java.lang.Deprecated + java.util.Map + getNestedInputs(); + + /** + * + * + *
+   * Output only. Contains details of nested inputs.
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.HelmChartInput> nested_inputs = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.Map + getNestedInputsMap(); + + /** + * + * + *
+   * Output only. Contains details of nested inputs.
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.HelmChartInput> nested_inputs = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + /* nullable */ + com.google.cloud.designcenter.v1.HelmChartInput getNestedInputsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.designcenter.v1.HelmChartInput defaultValue); + + /** + * + * + *
+   * Output only. Contains details of nested inputs.
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.HelmChartInput> nested_inputs = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.HelmChartInput getNestedInputsOrThrow(java.lang.String key); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/HelmChartMetadata.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/HelmChartMetadata.java new file mode 100644 index 000000000000..45f6094a47fb --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/HelmChartMetadata.java @@ -0,0 +1,1537 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Helm Chart metadata.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.HelmChartMetadata} + */ +@com.google.protobuf.Generated +public final class HelmChartMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.HelmChartMetadata) + HelmChartMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "HelmChartMetadata"); + } + + // Use HelmChartMetadata.newBuilder() to construct. + private HelmChartMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private HelmChartMetadata() { + helmInput_ = java.util.Collections.emptyList(); + helmOutput_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_HelmChartMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_HelmChartMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.HelmChartMetadata.class, + com.google.cloud.designcenter.v1.HelmChartMetadata.Builder.class); + } + + public static final int HELM_INPUT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List helmInput_; + + /** + * + * + *
+   * Output only. Helm Chart inputs.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.HelmChartInput helm_input = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getHelmInputList() { + return helmInput_; + } + + /** + * + * + *
+   * Output only. Helm Chart inputs.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.HelmChartInput helm_input = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getHelmInputOrBuilderList() { + return helmInput_; + } + + /** + * + * + *
+   * Output only. Helm Chart inputs.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.HelmChartInput helm_input = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getHelmInputCount() { + return helmInput_.size(); + } + + /** + * + * + *
+   * Output only. Helm Chart inputs.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.HelmChartInput helm_input = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.HelmChartInput getHelmInput(int index) { + return helmInput_.get(index); + } + + /** + * + * + *
+   * Output only. Helm Chart inputs.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.HelmChartInput helm_input = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.HelmChartInputOrBuilder getHelmInputOrBuilder(int index) { + return helmInput_.get(index); + } + + public static final int HELM_OUTPUT_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List helmOutput_; + + /** + * + * + *
+   * Output only. Helm Chart outputs.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.HelmChartOutput helm_output = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getHelmOutputList() { + return helmOutput_; + } + + /** + * + * + *
+   * Output only. Helm Chart outputs.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.HelmChartOutput helm_output = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getHelmOutputOrBuilderList() { + return helmOutput_; + } + + /** + * + * + *
+   * Output only. Helm Chart outputs.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.HelmChartOutput helm_output = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getHelmOutputCount() { + return helmOutput_.size(); + } + + /** + * + * + *
+   * Output only. Helm Chart outputs.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.HelmChartOutput helm_output = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.HelmChartOutput getHelmOutput(int index) { + return helmOutput_.get(index); + } + + /** + * + * + *
+   * Output only. Helm Chart outputs.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.HelmChartOutput helm_output = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.HelmChartOutputOrBuilder getHelmOutputOrBuilder( + int index) { + return helmOutput_.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 < helmInput_.size(); i++) { + output.writeMessage(1, helmInput_.get(i)); + } + for (int i = 0; i < helmOutput_.size(); i++) { + output.writeMessage(2, helmOutput_.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 < helmInput_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, helmInput_.get(i)); + } + for (int i = 0; i < helmOutput_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, helmOutput_.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.designcenter.v1.HelmChartMetadata)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.HelmChartMetadata other = + (com.google.cloud.designcenter.v1.HelmChartMetadata) obj; + + if (!getHelmInputList().equals(other.getHelmInputList())) return false; + if (!getHelmOutputList().equals(other.getHelmOutputList())) 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 (getHelmInputCount() > 0) { + hash = (37 * hash) + HELM_INPUT_FIELD_NUMBER; + hash = (53 * hash) + getHelmInputList().hashCode(); + } + if (getHelmOutputCount() > 0) { + hash = (37 * hash) + HELM_OUTPUT_FIELD_NUMBER; + hash = (53 * hash) + getHelmOutputList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.HelmChartMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.HelmChartMetadata 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.designcenter.v1.HelmChartMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.HelmChartMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.HelmChartMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.HelmChartMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.HelmChartMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.HelmChartMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.HelmChartMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.HelmChartMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.HelmChartMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.HelmChartMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.HelmChartMetadata 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Helm Chart metadata.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.HelmChartMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.HelmChartMetadata) + com.google.cloud.designcenter.v1.HelmChartMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_HelmChartMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_HelmChartMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.HelmChartMetadata.class, + com.google.cloud.designcenter.v1.HelmChartMetadata.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.HelmChartMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (helmInputBuilder_ == null) { + helmInput_ = java.util.Collections.emptyList(); + } else { + helmInput_ = null; + helmInputBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (helmOutputBuilder_ == null) { + helmOutput_ = java.util.Collections.emptyList(); + } else { + helmOutput_ = null; + helmOutputBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_HelmChartMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.HelmChartMetadata getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.HelmChartMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.HelmChartMetadata build() { + com.google.cloud.designcenter.v1.HelmChartMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.HelmChartMetadata buildPartial() { + com.google.cloud.designcenter.v1.HelmChartMetadata result = + new com.google.cloud.designcenter.v1.HelmChartMetadata(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.designcenter.v1.HelmChartMetadata result) { + if (helmInputBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + helmInput_ = java.util.Collections.unmodifiableList(helmInput_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.helmInput_ = helmInput_; + } else { + result.helmInput_ = helmInputBuilder_.build(); + } + if (helmOutputBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + helmOutput_ = java.util.Collections.unmodifiableList(helmOutput_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.helmOutput_ = helmOutput_; + } else { + result.helmOutput_ = helmOutputBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.designcenter.v1.HelmChartMetadata result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.HelmChartMetadata) { + return mergeFrom((com.google.cloud.designcenter.v1.HelmChartMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.HelmChartMetadata other) { + if (other == com.google.cloud.designcenter.v1.HelmChartMetadata.getDefaultInstance()) + return this; + if (helmInputBuilder_ == null) { + if (!other.helmInput_.isEmpty()) { + if (helmInput_.isEmpty()) { + helmInput_ = other.helmInput_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureHelmInputIsMutable(); + helmInput_.addAll(other.helmInput_); + } + onChanged(); + } + } else { + if (!other.helmInput_.isEmpty()) { + if (helmInputBuilder_.isEmpty()) { + helmInputBuilder_.dispose(); + helmInputBuilder_ = null; + helmInput_ = other.helmInput_; + bitField0_ = (bitField0_ & ~0x00000001); + helmInputBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetHelmInputFieldBuilder() + : null; + } else { + helmInputBuilder_.addAllMessages(other.helmInput_); + } + } + } + if (helmOutputBuilder_ == null) { + if (!other.helmOutput_.isEmpty()) { + if (helmOutput_.isEmpty()) { + helmOutput_ = other.helmOutput_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureHelmOutputIsMutable(); + helmOutput_.addAll(other.helmOutput_); + } + onChanged(); + } + } else { + if (!other.helmOutput_.isEmpty()) { + if (helmOutputBuilder_.isEmpty()) { + helmOutputBuilder_.dispose(); + helmOutputBuilder_ = null; + helmOutput_ = other.helmOutput_; + bitField0_ = (bitField0_ & ~0x00000002); + helmOutputBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetHelmOutputFieldBuilder() + : null; + } else { + helmOutputBuilder_.addAllMessages(other.helmOutput_); + } + } + } + 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.designcenter.v1.HelmChartInput m = + input.readMessage( + com.google.cloud.designcenter.v1.HelmChartInput.parser(), + extensionRegistry); + if (helmInputBuilder_ == null) { + ensureHelmInputIsMutable(); + helmInput_.add(m); + } else { + helmInputBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + com.google.cloud.designcenter.v1.HelmChartOutput m = + input.readMessage( + com.google.cloud.designcenter.v1.HelmChartOutput.parser(), + extensionRegistry); + if (helmOutputBuilder_ == null) { + ensureHelmOutputIsMutable(); + helmOutput_.add(m); + } else { + helmOutputBuilder_.addMessage(m); + } + 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 helmInput_ = + java.util.Collections.emptyList(); + + private void ensureHelmInputIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + helmInput_ = + new java.util.ArrayList(helmInput_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.HelmChartInput, + com.google.cloud.designcenter.v1.HelmChartInput.Builder, + com.google.cloud.designcenter.v1.HelmChartInputOrBuilder> + helmInputBuilder_; + + /** + * + * + *
+     * Output only. Helm Chart inputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.HelmChartInput helm_input = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getHelmInputList() { + if (helmInputBuilder_ == null) { + return java.util.Collections.unmodifiableList(helmInput_); + } else { + return helmInputBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Output only. Helm Chart inputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.HelmChartInput helm_input = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getHelmInputCount() { + if (helmInputBuilder_ == null) { + return helmInput_.size(); + } else { + return helmInputBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Output only. Helm Chart inputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.HelmChartInput helm_input = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.HelmChartInput getHelmInput(int index) { + if (helmInputBuilder_ == null) { + return helmInput_.get(index); + } else { + return helmInputBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Output only. Helm Chart inputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.HelmChartInput helm_input = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setHelmInput(int index, com.google.cloud.designcenter.v1.HelmChartInput value) { + if (helmInputBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHelmInputIsMutable(); + helmInput_.set(index, value); + onChanged(); + } else { + helmInputBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. Helm Chart inputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.HelmChartInput helm_input = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setHelmInput( + int index, com.google.cloud.designcenter.v1.HelmChartInput.Builder builderForValue) { + if (helmInputBuilder_ == null) { + ensureHelmInputIsMutable(); + helmInput_.set(index, builderForValue.build()); + onChanged(); + } else { + helmInputBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. Helm Chart inputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.HelmChartInput helm_input = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addHelmInput(com.google.cloud.designcenter.v1.HelmChartInput value) { + if (helmInputBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHelmInputIsMutable(); + helmInput_.add(value); + onChanged(); + } else { + helmInputBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Output only. Helm Chart inputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.HelmChartInput helm_input = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addHelmInput(int index, com.google.cloud.designcenter.v1.HelmChartInput value) { + if (helmInputBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHelmInputIsMutable(); + helmInput_.add(index, value); + onChanged(); + } else { + helmInputBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. Helm Chart inputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.HelmChartInput helm_input = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addHelmInput( + com.google.cloud.designcenter.v1.HelmChartInput.Builder builderForValue) { + if (helmInputBuilder_ == null) { + ensureHelmInputIsMutable(); + helmInput_.add(builderForValue.build()); + onChanged(); + } else { + helmInputBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. Helm Chart inputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.HelmChartInput helm_input = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addHelmInput( + int index, com.google.cloud.designcenter.v1.HelmChartInput.Builder builderForValue) { + if (helmInputBuilder_ == null) { + ensureHelmInputIsMutable(); + helmInput_.add(index, builderForValue.build()); + onChanged(); + } else { + helmInputBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. Helm Chart inputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.HelmChartInput helm_input = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllHelmInput( + java.lang.Iterable values) { + if (helmInputBuilder_ == null) { + ensureHelmInputIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, helmInput_); + onChanged(); + } else { + helmInputBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Output only. Helm Chart inputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.HelmChartInput helm_input = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearHelmInput() { + if (helmInputBuilder_ == null) { + helmInput_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + helmInputBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Output only. Helm Chart inputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.HelmChartInput helm_input = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeHelmInput(int index) { + if (helmInputBuilder_ == null) { + ensureHelmInputIsMutable(); + helmInput_.remove(index); + onChanged(); + } else { + helmInputBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Output only. Helm Chart inputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.HelmChartInput helm_input = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.HelmChartInput.Builder getHelmInputBuilder(int index) { + return internalGetHelmInputFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Output only. Helm Chart inputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.HelmChartInput helm_input = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.HelmChartInputOrBuilder getHelmInputOrBuilder( + int index) { + if (helmInputBuilder_ == null) { + return helmInput_.get(index); + } else { + return helmInputBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Output only. Helm Chart inputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.HelmChartInput helm_input = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getHelmInputOrBuilderList() { + if (helmInputBuilder_ != null) { + return helmInputBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(helmInput_); + } + } + + /** + * + * + *
+     * Output only. Helm Chart inputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.HelmChartInput helm_input = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.HelmChartInput.Builder addHelmInputBuilder() { + return internalGetHelmInputFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.HelmChartInput.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. Helm Chart inputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.HelmChartInput helm_input = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.HelmChartInput.Builder addHelmInputBuilder(int index) { + return internalGetHelmInputFieldBuilder() + .addBuilder(index, com.google.cloud.designcenter.v1.HelmChartInput.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. Helm Chart inputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.HelmChartInput helm_input = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getHelmInputBuilderList() { + return internalGetHelmInputFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.HelmChartInput, + com.google.cloud.designcenter.v1.HelmChartInput.Builder, + com.google.cloud.designcenter.v1.HelmChartInputOrBuilder> + internalGetHelmInputFieldBuilder() { + if (helmInputBuilder_ == null) { + helmInputBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.HelmChartInput, + com.google.cloud.designcenter.v1.HelmChartInput.Builder, + com.google.cloud.designcenter.v1.HelmChartInputOrBuilder>( + helmInput_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + helmInput_ = null; + } + return helmInputBuilder_; + } + + private java.util.List helmOutput_ = + java.util.Collections.emptyList(); + + private void ensureHelmOutputIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + helmOutput_ = + new java.util.ArrayList(helmOutput_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.HelmChartOutput, + com.google.cloud.designcenter.v1.HelmChartOutput.Builder, + com.google.cloud.designcenter.v1.HelmChartOutputOrBuilder> + helmOutputBuilder_; + + /** + * + * + *
+     * Output only. Helm Chart outputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.HelmChartOutput helm_output = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getHelmOutputList() { + if (helmOutputBuilder_ == null) { + return java.util.Collections.unmodifiableList(helmOutput_); + } else { + return helmOutputBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Output only. Helm Chart outputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.HelmChartOutput helm_output = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getHelmOutputCount() { + if (helmOutputBuilder_ == null) { + return helmOutput_.size(); + } else { + return helmOutputBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Output only. Helm Chart outputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.HelmChartOutput helm_output = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.HelmChartOutput getHelmOutput(int index) { + if (helmOutputBuilder_ == null) { + return helmOutput_.get(index); + } else { + return helmOutputBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Output only. Helm Chart outputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.HelmChartOutput helm_output = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setHelmOutput( + int index, com.google.cloud.designcenter.v1.HelmChartOutput value) { + if (helmOutputBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHelmOutputIsMutable(); + helmOutput_.set(index, value); + onChanged(); + } else { + helmOutputBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. Helm Chart outputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.HelmChartOutput helm_output = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setHelmOutput( + int index, com.google.cloud.designcenter.v1.HelmChartOutput.Builder builderForValue) { + if (helmOutputBuilder_ == null) { + ensureHelmOutputIsMutable(); + helmOutput_.set(index, builderForValue.build()); + onChanged(); + } else { + helmOutputBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. Helm Chart outputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.HelmChartOutput helm_output = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addHelmOutput(com.google.cloud.designcenter.v1.HelmChartOutput value) { + if (helmOutputBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHelmOutputIsMutable(); + helmOutput_.add(value); + onChanged(); + } else { + helmOutputBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Output only. Helm Chart outputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.HelmChartOutput helm_output = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addHelmOutput( + int index, com.google.cloud.designcenter.v1.HelmChartOutput value) { + if (helmOutputBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHelmOutputIsMutable(); + helmOutput_.add(index, value); + onChanged(); + } else { + helmOutputBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. Helm Chart outputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.HelmChartOutput helm_output = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addHelmOutput( + com.google.cloud.designcenter.v1.HelmChartOutput.Builder builderForValue) { + if (helmOutputBuilder_ == null) { + ensureHelmOutputIsMutable(); + helmOutput_.add(builderForValue.build()); + onChanged(); + } else { + helmOutputBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. Helm Chart outputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.HelmChartOutput helm_output = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addHelmOutput( + int index, com.google.cloud.designcenter.v1.HelmChartOutput.Builder builderForValue) { + if (helmOutputBuilder_ == null) { + ensureHelmOutputIsMutable(); + helmOutput_.add(index, builderForValue.build()); + onChanged(); + } else { + helmOutputBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. Helm Chart outputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.HelmChartOutput helm_output = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllHelmOutput( + java.lang.Iterable values) { + if (helmOutputBuilder_ == null) { + ensureHelmOutputIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, helmOutput_); + onChanged(); + } else { + helmOutputBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Output only. Helm Chart outputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.HelmChartOutput helm_output = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearHelmOutput() { + if (helmOutputBuilder_ == null) { + helmOutput_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + helmOutputBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Output only. Helm Chart outputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.HelmChartOutput helm_output = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeHelmOutput(int index) { + if (helmOutputBuilder_ == null) { + ensureHelmOutputIsMutable(); + helmOutput_.remove(index); + onChanged(); + } else { + helmOutputBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Output only. Helm Chart outputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.HelmChartOutput helm_output = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.HelmChartOutput.Builder getHelmOutputBuilder( + int index) { + return internalGetHelmOutputFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Output only. Helm Chart outputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.HelmChartOutput helm_output = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.HelmChartOutputOrBuilder getHelmOutputOrBuilder( + int index) { + if (helmOutputBuilder_ == null) { + return helmOutput_.get(index); + } else { + return helmOutputBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Output only. Helm Chart outputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.HelmChartOutput helm_output = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getHelmOutputOrBuilderList() { + if (helmOutputBuilder_ != null) { + return helmOutputBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(helmOutput_); + } + } + + /** + * + * + *
+     * Output only. Helm Chart outputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.HelmChartOutput helm_output = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.HelmChartOutput.Builder addHelmOutputBuilder() { + return internalGetHelmOutputFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.HelmChartOutput.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. Helm Chart outputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.HelmChartOutput helm_output = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.HelmChartOutput.Builder addHelmOutputBuilder( + int index) { + return internalGetHelmOutputFieldBuilder() + .addBuilder(index, com.google.cloud.designcenter.v1.HelmChartOutput.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. Helm Chart outputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.HelmChartOutput helm_output = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getHelmOutputBuilderList() { + return internalGetHelmOutputFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.HelmChartOutput, + com.google.cloud.designcenter.v1.HelmChartOutput.Builder, + com.google.cloud.designcenter.v1.HelmChartOutputOrBuilder> + internalGetHelmOutputFieldBuilder() { + if (helmOutputBuilder_ == null) { + helmOutputBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.HelmChartOutput, + com.google.cloud.designcenter.v1.HelmChartOutput.Builder, + com.google.cloud.designcenter.v1.HelmChartOutputOrBuilder>( + helmOutput_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + helmOutput_ = null; + } + return helmOutputBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.HelmChartMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.HelmChartMetadata) + private static final com.google.cloud.designcenter.v1.HelmChartMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.HelmChartMetadata(); + } + + public static com.google.cloud.designcenter.v1.HelmChartMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HelmChartMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.HelmChartMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/HelmChartMetadataOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/HelmChartMetadataOrBuilder.java new file mode 100644 index 000000000000..cdcf4d982079 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/HelmChartMetadataOrBuilder.java @@ -0,0 +1,160 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface HelmChartMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.HelmChartMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Helm Chart inputs.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.HelmChartInput helm_input = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getHelmInputList(); + + /** + * + * + *
+   * Output only. Helm Chart inputs.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.HelmChartInput helm_input = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.HelmChartInput getHelmInput(int index); + + /** + * + * + *
+   * Output only. Helm Chart inputs.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.HelmChartInput helm_input = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getHelmInputCount(); + + /** + * + * + *
+   * Output only. Helm Chart inputs.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.HelmChartInput helm_input = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getHelmInputOrBuilderList(); + + /** + * + * + *
+   * Output only. Helm Chart inputs.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.HelmChartInput helm_input = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.HelmChartInputOrBuilder getHelmInputOrBuilder(int index); + + /** + * + * + *
+   * Output only. Helm Chart outputs.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.HelmChartOutput helm_output = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getHelmOutputList(); + + /** + * + * + *
+   * Output only. Helm Chart outputs.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.HelmChartOutput helm_output = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.HelmChartOutput getHelmOutput(int index); + + /** + * + * + *
+   * Output only. Helm Chart outputs.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.HelmChartOutput helm_output = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getHelmOutputCount(); + + /** + * + * + *
+   * Output only. Helm Chart outputs.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.HelmChartOutput helm_output = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getHelmOutputOrBuilderList(); + + /** + * + * + *
+   * Output only. Helm Chart outputs.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.HelmChartOutput helm_output = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.HelmChartOutputOrBuilder getHelmOutputOrBuilder(int index); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/HelmChartOutput.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/HelmChartOutput.java new file mode 100644 index 000000000000..4da8cc1ecaa7 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/HelmChartOutput.java @@ -0,0 +1,1067 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Helm Chart outputs.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.HelmChartOutput} + */ +@com.google.protobuf.Generated +public final class HelmChartOutput extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.HelmChartOutput) + HelmChartOutputOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "HelmChartOutput"); + } + + // Use HelmChartOutput.newBuilder() to construct. + private HelmChartOutput(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private HelmChartOutput() { + helmOutputVariable_ = ""; + description_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_HelmChartOutput_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_HelmChartOutput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.HelmChartOutput.class, + com.google.cloud.designcenter.v1.HelmChartOutput.Builder.class); + } + + private int bitField0_; + public static final int VALUE_FIELD_NUMBER = 1; + private com.google.protobuf.Value value_; + + /** + * + * + *
+   * Output only. Type of output.
+   * 
+ * + * .google.protobuf.Value value = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the value field is set. + */ + @java.lang.Override + public boolean hasValue() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. Type of output.
+   * 
+ * + * .google.protobuf.Value value = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The value. + */ + @java.lang.Override + public com.google.protobuf.Value getValue() { + return value_ == null ? com.google.protobuf.Value.getDefaultInstance() : value_; + } + + /** + * + * + *
+   * Output only. Type of output.
+   * 
+ * + * .google.protobuf.Value value = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.protobuf.ValueOrBuilder getValueOrBuilder() { + return value_ == null ? com.google.protobuf.Value.getDefaultInstance() : value_; + } + + public static final int HELM_OUTPUT_VARIABLE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object helmOutputVariable_ = ""; + + /** + * + * + *
+   * Output only. Output variable name present.
+   * 
+ * + * string helm_output_variable = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The helmOutputVariable. + */ + @java.lang.Override + public java.lang.String getHelmOutputVariable() { + java.lang.Object ref = helmOutputVariable_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + helmOutputVariable_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. Output variable name present.
+   * 
+ * + * string helm_output_variable = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for helmOutputVariable. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHelmOutputVariableBytes() { + java.lang.Object ref = helmOutputVariable_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + helmOutputVariable_ = 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_ = ""; + + /** + * + * + *
+   * Output only. Description of the variable.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+   * Output only. Description of the variable.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getValue()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(helmOutputVariable_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, helmOutputVariable_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, description_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getValue()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(helmOutputVariable_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, helmOutputVariable_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, description_); + } + 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.designcenter.v1.HelmChartOutput)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.HelmChartOutput other = + (com.google.cloud.designcenter.v1.HelmChartOutput) obj; + + if (hasValue() != other.hasValue()) return false; + if (hasValue()) { + if (!getValue().equals(other.getValue())) return false; + } + if (!getHelmOutputVariable().equals(other.getHelmOutputVariable())) return false; + if (!getDescription().equals(other.getDescription())) 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 (hasValue()) { + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + } + hash = (37 * hash) + HELM_OUTPUT_VARIABLE_FIELD_NUMBER; + hash = (53 * hash) + getHelmOutputVariable().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.HelmChartOutput parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.HelmChartOutput 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.designcenter.v1.HelmChartOutput parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.HelmChartOutput parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.HelmChartOutput parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.HelmChartOutput parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.HelmChartOutput parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.HelmChartOutput parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.HelmChartOutput parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.HelmChartOutput parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.HelmChartOutput parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.HelmChartOutput parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.HelmChartOutput 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Helm Chart outputs.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.HelmChartOutput} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.HelmChartOutput) + com.google.cloud.designcenter.v1.HelmChartOutputOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_HelmChartOutput_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_HelmChartOutput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.HelmChartOutput.class, + com.google.cloud.designcenter.v1.HelmChartOutput.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.HelmChartOutput.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetValueFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + value_ = null; + if (valueBuilder_ != null) { + valueBuilder_.dispose(); + valueBuilder_ = null; + } + helmOutputVariable_ = ""; + description_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_HelmChartOutput_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.HelmChartOutput getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.HelmChartOutput.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.HelmChartOutput build() { + com.google.cloud.designcenter.v1.HelmChartOutput result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.HelmChartOutput buildPartial() { + com.google.cloud.designcenter.v1.HelmChartOutput result = + new com.google.cloud.designcenter.v1.HelmChartOutput(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.HelmChartOutput result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.value_ = valueBuilder_ == null ? value_ : valueBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.helmOutputVariable_ = helmOutputVariable_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.description_ = description_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.HelmChartOutput) { + return mergeFrom((com.google.cloud.designcenter.v1.HelmChartOutput) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.HelmChartOutput other) { + if (other == com.google.cloud.designcenter.v1.HelmChartOutput.getDefaultInstance()) + return this; + if (other.hasValue()) { + mergeValue(other.getValue()); + } + if (!other.getHelmOutputVariable().isEmpty()) { + helmOutputVariable_ = other.helmOutputVariable_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + 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: + { + input.readMessage(internalGetValueFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + helmOutputVariable_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + description_ = 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 com.google.protobuf.Value value_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder> + valueBuilder_; + + /** + * + * + *
+     * Output only. Type of output.
+     * 
+ * + * .google.protobuf.Value value = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the value field is set. + */ + public boolean hasValue() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Output only. Type of output.
+     * 
+ * + * .google.protobuf.Value value = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The value. + */ + public com.google.protobuf.Value getValue() { + if (valueBuilder_ == null) { + return value_ == null ? com.google.protobuf.Value.getDefaultInstance() : value_; + } else { + return valueBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Type of output.
+     * 
+ * + * .google.protobuf.Value value = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setValue(com.google.protobuf.Value value) { + if (valueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + } else { + valueBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Type of output.
+     * 
+ * + * .google.protobuf.Value value = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setValue(com.google.protobuf.Value.Builder builderForValue) { + if (valueBuilder_ == null) { + value_ = builderForValue.build(); + } else { + valueBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Type of output.
+     * 
+ * + * .google.protobuf.Value value = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder mergeValue(com.google.protobuf.Value value) { + if (valueBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && value_ != null + && value_ != com.google.protobuf.Value.getDefaultInstance()) { + getValueBuilder().mergeFrom(value); + } else { + value_ = value; + } + } else { + valueBuilder_.mergeFrom(value); + } + if (value_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Type of output.
+     * 
+ * + * .google.protobuf.Value value = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearValue() { + bitField0_ = (bitField0_ & ~0x00000001); + value_ = null; + if (valueBuilder_ != null) { + valueBuilder_.dispose(); + valueBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Type of output.
+     * 
+ * + * .google.protobuf.Value value = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.Value.Builder getValueBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetValueFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Type of output.
+     * 
+ * + * .google.protobuf.Value value = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.ValueOrBuilder getValueOrBuilder() { + if (valueBuilder_ != null) { + return valueBuilder_.getMessageOrBuilder(); + } else { + return value_ == null ? com.google.protobuf.Value.getDefaultInstance() : value_; + } + } + + /** + * + * + *
+     * Output only. Type of output.
+     * 
+ * + * .google.protobuf.Value value = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder> + internalGetValueFieldBuilder() { + if (valueBuilder_ == null) { + valueBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder>(getValue(), getParentForChildren(), isClean()); + value_ = null; + } + return valueBuilder_; + } + + private java.lang.Object helmOutputVariable_ = ""; + + /** + * + * + *
+     * Output only. Output variable name present.
+     * 
+ * + * string helm_output_variable = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The helmOutputVariable. + */ + public java.lang.String getHelmOutputVariable() { + java.lang.Object ref = helmOutputVariable_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + helmOutputVariable_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Output variable name present.
+     * 
+ * + * string helm_output_variable = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for helmOutputVariable. + */ + public com.google.protobuf.ByteString getHelmOutputVariableBytes() { + java.lang.Object ref = helmOutputVariable_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + helmOutputVariable_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Output variable name present.
+     * 
+ * + * string helm_output_variable = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The helmOutputVariable to set. + * @return This builder for chaining. + */ + public Builder setHelmOutputVariable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + helmOutputVariable_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Output variable name present.
+     * 
+ * + * string helm_output_variable = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearHelmOutputVariable() { + helmOutputVariable_ = getDefaultInstance().getHelmOutputVariable(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Output variable name present.
+     * 
+ * + * string helm_output_variable = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for helmOutputVariable to set. + * @return This builder for chaining. + */ + public Builder setHelmOutputVariableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + helmOutputVariable_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
+     * Output only. Description of the variable.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+     * Output only. Description of the variable.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+     * Output only. Description of the variable.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + + /** + * + * + *
+     * Output only. Description of the variable.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Description of the variable.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.HelmChartOutput) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.HelmChartOutput) + private static final com.google.cloud.designcenter.v1.HelmChartOutput DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.HelmChartOutput(); + } + + public static com.google.cloud.designcenter.v1.HelmChartOutput getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HelmChartOutput parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.HelmChartOutput getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/HelmChartOutputOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/HelmChartOutputOrBuilder.java new file mode 100644 index 000000000000..f689119d0e0d --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/HelmChartOutputOrBuilder.java @@ -0,0 +1,117 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface HelmChartOutputOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.HelmChartOutput) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Type of output.
+   * 
+ * + * .google.protobuf.Value value = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the value field is set. + */ + boolean hasValue(); + + /** + * + * + *
+   * Output only. Type of output.
+   * 
+ * + * .google.protobuf.Value value = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The value. + */ + com.google.protobuf.Value getValue(); + + /** + * + * + *
+   * Output only. Type of output.
+   * 
+ * + * .google.protobuf.Value value = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.protobuf.ValueOrBuilder getValueOrBuilder(); + + /** + * + * + *
+   * Output only. Output variable name present.
+   * 
+ * + * string helm_output_variable = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The helmOutputVariable. + */ + java.lang.String getHelmOutputVariable(); + + /** + * + * + *
+   * Output only. Output variable name present.
+   * 
+ * + * string helm_output_variable = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for helmOutputVariable. + */ + com.google.protobuf.ByteString getHelmOutputVariableBytes(); + + /** + * + * + *
+   * Output only. Description of the variable.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
+   * Output only. Description of the variable.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/IACFormat.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/IACFormat.java new file mode 100644 index 000000000000..606ab2afe711 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/IACFormat.java @@ -0,0 +1,191 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/enums.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * The IaC format to generate.
+ * 
+ * + * Protobuf enum {@code google.cloud.designcenter.v1.IACFormat} + */ +@com.google.protobuf.Generated +public enum IACFormat implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * IaC format is unspecified.
+   * 
+ * + * IAC_FORMAT_UNSPECIFIED = 0; + */ + IAC_FORMAT_UNSPECIFIED(0), + /** + * + * + *
+   * IaC format is Terraform.
+   * 
+ * + * TERRAFORM = 1; + */ + TERRAFORM(1), + /** + * + * + *
+   * IaC format is HELM.
+   * 
+ * + * HELM = 2; + */ + HELM(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "IACFormat"); + } + + /** + * + * + *
+   * IaC format is unspecified.
+   * 
+ * + * IAC_FORMAT_UNSPECIFIED = 0; + */ + public static final int IAC_FORMAT_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+   * IaC format is Terraform.
+   * 
+ * + * TERRAFORM = 1; + */ + public static final int TERRAFORM_VALUE = 1; + + /** + * + * + *
+   * IaC format is HELM.
+   * 
+ * + * HELM = 2; + */ + public static final int HELM_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 IACFormat 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 IACFormat forNumber(int value) { + switch (value) { + case 0: + return IAC_FORMAT_UNSPECIFIED; + case 1: + return TERRAFORM; + case 2: + return HELM; + 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 IACFormat findValueByNumber(int number) { + return IACFormat.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.designcenter.v1.EnumsProto.getDescriptor().getEnumTypes().get(7); + } + + private static final IACFormat[] VALUES = values(); + + public static IACFormat 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 IACFormat(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.designcenter.v1.IACFormat) +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/IACSource.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/IACSource.java new file mode 100644 index 000000000000..0863e10c8a35 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/IACSource.java @@ -0,0 +1,191 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/enums.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Enum to specify the source format of the IaC.
+ * 
+ * + * Protobuf enum {@code google.cloud.designcenter.v1.IACSource} + */ +@com.google.protobuf.Generated +public enum IACSource implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * The source is not specified.
+   * 
+ * + * IAC_SOURCE_UNSPECIFIED = 0; + */ + IAC_SOURCE_UNSPECIFIED(0), + /** + * + * + *
+   * The IaC source is SAT. This is used to generate equivalent Terraform.
+   * 
+ * + * IAC_SOURCE_SAT = 1; + */ + IAC_SOURCE_SAT(1), + /** + * + * + *
+   * The IaC source is Terraform.
+   * 
+ * + * IAC_SOURCE_TERRAFORM = 2; + */ + IAC_SOURCE_TERRAFORM(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "IACSource"); + } + + /** + * + * + *
+   * The source is not specified.
+   * 
+ * + * IAC_SOURCE_UNSPECIFIED = 0; + */ + public static final int IAC_SOURCE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+   * The IaC source is SAT. This is used to generate equivalent Terraform.
+   * 
+ * + * IAC_SOURCE_SAT = 1; + */ + public static final int IAC_SOURCE_SAT_VALUE = 1; + + /** + * + * + *
+   * The IaC source is Terraform.
+   * 
+ * + * IAC_SOURCE_TERRAFORM = 2; + */ + public static final int IAC_SOURCE_TERRAFORM_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 IACSource 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 IACSource forNumber(int value) { + switch (value) { + case 0: + return IAC_SOURCE_UNSPECIFIED; + case 1: + return IAC_SOURCE_SAT; + case 2: + return IAC_SOURCE_TERRAFORM; + 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 IACSource findValueByNumber(int number) { + return IACSource.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.designcenter.v1.EnumsProto.getDescriptor().getEnumTypes().get(9); + } + + private static final IACSource[] VALUES = values(); + + public static IACSource 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 IACSource(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.designcenter.v1.IACSource) +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/IaCFile.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/IaCFile.java new file mode 100644 index 000000000000..1f0bb4122bd9 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/IaCFile.java @@ -0,0 +1,797 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/ingestion.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * IaCFile represents a single infrastructure as code file.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.IaCFile} + */ +@com.google.protobuf.Generated +public final class IaCFile extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.IaCFile) + IaCFileOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "IaCFile"); + } + + // Use IaCFile.newBuilder() to construct. + private IaCFile(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private IaCFile() { + name_ = ""; + content_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.IngestionProto + .internal_static_google_cloud_designcenter_v1_IaCFile_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.IngestionProto + .internal_static_google_cloud_designcenter_v1_IaCFile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.IaCFile.class, + com.google.cloud.designcenter.v1.IaCFile.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The name of the file.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 file.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 CONTENT_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object content_ = ""; + + /** + * + * + *
+   * Optional. The content of the file. The content of the file can be read and
+   * passed as a string. For example, for a Terraform file, the content is the
+   * HCL content of the file.
+   * 
+ * + * 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 content of the file. The content of the file can be read and
+   * passed as a string. For example, for a Terraform file, the content is the
+   * HCL content of the file.
+   * 
+ * + * 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; + } + } + + 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(content_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, content_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(content_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, content_); + } + 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.designcenter.v1.IaCFile)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.IaCFile other = (com.google.cloud.designcenter.v1.IaCFile) obj; + + if (!getName().equals(other.getName())) return false; + if (!getContent().equals(other.getContent())) 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) + CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getContent().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.IaCFile parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.IaCFile 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.designcenter.v1.IaCFile parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.IaCFile parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.IaCFile parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.IaCFile parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.IaCFile parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.IaCFile parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.IaCFile parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.IaCFile parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.IaCFile parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.IaCFile parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.IaCFile 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * IaCFile represents a single infrastructure as code file.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.IaCFile} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.IaCFile) + com.google.cloud.designcenter.v1.IaCFileOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.IngestionProto + .internal_static_google_cloud_designcenter_v1_IaCFile_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.IngestionProto + .internal_static_google_cloud_designcenter_v1_IaCFile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.IaCFile.class, + com.google.cloud.designcenter.v1.IaCFile.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.IaCFile.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + content_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.IngestionProto + .internal_static_google_cloud_designcenter_v1_IaCFile_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.IaCFile getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.IaCFile.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.IaCFile build() { + com.google.cloud.designcenter.v1.IaCFile result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.IaCFile buildPartial() { + com.google.cloud.designcenter.v1.IaCFile result = + new com.google.cloud.designcenter.v1.IaCFile(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.IaCFile result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.content_ = content_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.IaCFile) { + return mergeFrom((com.google.cloud.designcenter.v1.IaCFile) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.IaCFile other) { + if (other == com.google.cloud.designcenter.v1.IaCFile.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getContent().isEmpty()) { + content_ = other.content_; + 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: + { + content_ = 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. The name of the file.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The name of the file.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 file.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The name of the file.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The name of the file.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object content_ = ""; + + /** + * + * + *
+     * Optional. The content of the file. The content of the file can be read and
+     * passed as a string. For example, for a Terraform file, the content is the
+     * HCL content of the file.
+     * 
+ * + * 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 content of the file. The content of the file can be read and
+     * passed as a string. For example, for a Terraform file, the content is the
+     * HCL content of the file.
+     * 
+ * + * 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 content of the file. The content of the file can be read and
+     * passed as a string. For example, for a Terraform file, the content is the
+     * HCL content of the file.
+     * 
+ * + * 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 content of the file. The content of the file can be read and
+     * passed as a string. For example, for a Terraform file, the content is the
+     * HCL content of the file.
+     * 
+ * + * 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 content of the file. The content of the file can be read and
+     * passed as a string. For example, for a Terraform file, the content is the
+     * HCL content of the file.
+     * 
+ * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.IaCFile) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.IaCFile) + private static final com.google.cloud.designcenter.v1.IaCFile DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.IaCFile(); + } + + public static com.google.cloud.designcenter.v1.IaCFile getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IaCFile parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.IaCFile getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/IaCFileOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/IaCFileOrBuilder.java new file mode 100644 index 000000000000..3ea69b1a5f9e --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/IaCFileOrBuilder.java @@ -0,0 +1,84 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/ingestion.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface IaCFileOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.IaCFile) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the file.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The name of the file.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. The content of the file. The content of the file can be read and
+   * passed as a string. For example, for a Terraform file, the content is the
+   * HCL content of the file.
+   * 
+ * + * string content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The content. + */ + java.lang.String getContent(); + + /** + * + * + *
+   * Optional. The content of the file. The content of the file can be read and
+   * passed as a string. For example, for a Terraform file, the content is the
+   * HCL content of the file.
+   * 
+ * + * string content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for content. + */ + com.google.protobuf.ByteString getContentBytes(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/IaCModule.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/IaCModule.java new file mode 100644 index 000000000000..84cdd127eff2 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/IaCModule.java @@ -0,0 +1,965 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/ingestion.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * IaCModule represents a single infrastructure as code module.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.IaCModule} + */ +@com.google.protobuf.Generated +public final class IaCModule extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.IaCModule) + IaCModuleOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "IaCModule"); + } + + // Use IaCModule.newBuilder() to construct. + private IaCModule(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private IaCModule() { + files_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.IngestionProto + .internal_static_google_cloud_designcenter_v1_IaCModule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.IngestionProto + .internal_static_google_cloud_designcenter_v1_IaCModule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.IaCModule.class, + com.google.cloud.designcenter.v1.IaCModule.Builder.class); + } + + public static final int FILES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List files_; + + /** + * + * + *
+   * Optional. The files in the module.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.IaCFile files = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getFilesList() { + return files_; + } + + /** + * + * + *
+   * Optional. The files in the module.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.IaCFile files = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getFilesOrBuilderList() { + return files_; + } + + /** + * + * + *
+   * Optional. The files in the module.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.IaCFile files = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getFilesCount() { + return files_.size(); + } + + /** + * + * + *
+   * Optional. The files in the module.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.IaCFile files = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.IaCFile getFiles(int index) { + return files_.get(index); + } + + /** + * + * + *
+   * Optional. The files in the module.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.IaCFile files = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.IaCFileOrBuilder getFilesOrBuilder(int index) { + return files_.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 < files_.size(); i++) { + output.writeMessage(1, files_.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 < files_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, files_.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.designcenter.v1.IaCModule)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.IaCModule other = + (com.google.cloud.designcenter.v1.IaCModule) obj; + + if (!getFilesList().equals(other.getFilesList())) 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 (getFilesCount() > 0) { + hash = (37 * hash) + FILES_FIELD_NUMBER; + hash = (53 * hash) + getFilesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.IaCModule parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.IaCModule 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.designcenter.v1.IaCModule parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.IaCModule parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.IaCModule parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.IaCModule parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.IaCModule parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.IaCModule parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.IaCModule parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.IaCModule parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.IaCModule parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.IaCModule parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.IaCModule 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * IaCModule represents a single infrastructure as code module.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.IaCModule} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.IaCModule) + com.google.cloud.designcenter.v1.IaCModuleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.IngestionProto + .internal_static_google_cloud_designcenter_v1_IaCModule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.IngestionProto + .internal_static_google_cloud_designcenter_v1_IaCModule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.IaCModule.class, + com.google.cloud.designcenter.v1.IaCModule.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.IaCModule.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (filesBuilder_ == null) { + files_ = java.util.Collections.emptyList(); + } else { + files_ = null; + filesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.IngestionProto + .internal_static_google_cloud_designcenter_v1_IaCModule_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.IaCModule getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.IaCModule.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.IaCModule build() { + com.google.cloud.designcenter.v1.IaCModule result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.IaCModule buildPartial() { + com.google.cloud.designcenter.v1.IaCModule result = + new com.google.cloud.designcenter.v1.IaCModule(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.designcenter.v1.IaCModule result) { + if (filesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + files_ = java.util.Collections.unmodifiableList(files_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.files_ = files_; + } else { + result.files_ = filesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.designcenter.v1.IaCModule result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.IaCModule) { + return mergeFrom((com.google.cloud.designcenter.v1.IaCModule) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.IaCModule other) { + if (other == com.google.cloud.designcenter.v1.IaCModule.getDefaultInstance()) return this; + if (filesBuilder_ == null) { + if (!other.files_.isEmpty()) { + if (files_.isEmpty()) { + files_ = other.files_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureFilesIsMutable(); + files_.addAll(other.files_); + } + onChanged(); + } + } else { + if (!other.files_.isEmpty()) { + if (filesBuilder_.isEmpty()) { + filesBuilder_.dispose(); + filesBuilder_ = null; + files_ = other.files_; + bitField0_ = (bitField0_ & ~0x00000001); + filesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetFilesFieldBuilder() + : null; + } else { + filesBuilder_.addAllMessages(other.files_); + } + } + } + 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.designcenter.v1.IaCFile m = + input.readMessage( + com.google.cloud.designcenter.v1.IaCFile.parser(), extensionRegistry); + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + files_.add(m); + } else { + filesBuilder_.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 files_ = + java.util.Collections.emptyList(); + + private void ensureFilesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + files_ = new java.util.ArrayList(files_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.IaCFile, + com.google.cloud.designcenter.v1.IaCFile.Builder, + com.google.cloud.designcenter.v1.IaCFileOrBuilder> + filesBuilder_; + + /** + * + * + *
+     * Optional. The files in the module.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.IaCFile files = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getFilesList() { + if (filesBuilder_ == null) { + return java.util.Collections.unmodifiableList(files_); + } else { + return filesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. The files in the module.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.IaCFile files = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getFilesCount() { + if (filesBuilder_ == null) { + return files_.size(); + } else { + return filesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. The files in the module.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.IaCFile files = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.IaCFile getFiles(int index) { + if (filesBuilder_ == null) { + return files_.get(index); + } else { + return filesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. The files in the module.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.IaCFile files = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFiles(int index, com.google.cloud.designcenter.v1.IaCFile value) { + if (filesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilesIsMutable(); + files_.set(index, value); + onChanged(); + } else { + filesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The files in the module.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.IaCFile files = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFiles( + int index, com.google.cloud.designcenter.v1.IaCFile.Builder builderForValue) { + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + files_.set(index, builderForValue.build()); + onChanged(); + } else { + filesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The files in the module.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.IaCFile files = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addFiles(com.google.cloud.designcenter.v1.IaCFile value) { + if (filesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilesIsMutable(); + files_.add(value); + onChanged(); + } else { + filesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. The files in the module.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.IaCFile files = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addFiles(int index, com.google.cloud.designcenter.v1.IaCFile value) { + if (filesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilesIsMutable(); + files_.add(index, value); + onChanged(); + } else { + filesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The files in the module.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.IaCFile files = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addFiles(com.google.cloud.designcenter.v1.IaCFile.Builder builderForValue) { + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + files_.add(builderForValue.build()); + onChanged(); + } else { + filesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The files in the module.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.IaCFile files = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addFiles( + int index, com.google.cloud.designcenter.v1.IaCFile.Builder builderForValue) { + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + files_.add(index, builderForValue.build()); + onChanged(); + } else { + filesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The files in the module.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.IaCFile files = 1 [(.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. The files in the module.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.IaCFile files = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearFiles() { + if (filesBuilder_ == null) { + files_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + filesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. The files in the module.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.IaCFile files = 1 [(.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. The files in the module.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.IaCFile files = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.IaCFile.Builder getFilesBuilder(int index) { + return internalGetFilesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. The files in the module.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.IaCFile files = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.IaCFileOrBuilder getFilesOrBuilder(int index) { + if (filesBuilder_ == null) { + return files_.get(index); + } else { + return filesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. The files in the module.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.IaCFile files = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getFilesOrBuilderList() { + if (filesBuilder_ != null) { + return filesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(files_); + } + } + + /** + * + * + *
+     * Optional. The files in the module.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.IaCFile files = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.IaCFile.Builder addFilesBuilder() { + return internalGetFilesFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.IaCFile.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The files in the module.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.IaCFile files = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.IaCFile.Builder addFilesBuilder(int index) { + return internalGetFilesFieldBuilder() + .addBuilder(index, com.google.cloud.designcenter.v1.IaCFile.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The files in the module.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.IaCFile files = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getFilesBuilderList() { + return internalGetFilesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.IaCFile, + com.google.cloud.designcenter.v1.IaCFile.Builder, + com.google.cloud.designcenter.v1.IaCFileOrBuilder> + internalGetFilesFieldBuilder() { + if (filesBuilder_ == null) { + filesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.IaCFile, + com.google.cloud.designcenter.v1.IaCFile.Builder, + com.google.cloud.designcenter.v1.IaCFileOrBuilder>( + files_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + files_ = null; + } + return filesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.IaCModule) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.IaCModule) + private static final com.google.cloud.designcenter.v1.IaCModule DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.IaCModule(); + } + + public static com.google.cloud.designcenter.v1.IaCModule getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IaCModule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.IaCModule getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/IaCModuleOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/IaCModuleOrBuilder.java new file mode 100644 index 000000000000..217634889517 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/IaCModuleOrBuilder.java @@ -0,0 +1,94 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/ingestion.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface IaCModuleOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.IaCModule) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The files in the module.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.IaCFile files = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getFilesList(); + + /** + * + * + *
+   * Optional. The files in the module.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.IaCFile files = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.IaCFile getFiles(int index); + + /** + * + * + *
+   * Optional. The files in the module.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.IaCFile files = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getFilesCount(); + + /** + * + * + *
+   * Optional. The files in the module.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.IaCFile files = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getFilesOrBuilderList(); + + /** + * + * + *
+   * Optional. The files in the module.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.IaCFile files = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.IaCFileOrBuilder getFilesOrBuilder(int index); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/IacFormatInfo.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/IacFormatInfo.java new file mode 100644 index 000000000000..c4f23790c6a4 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/IacFormatInfo.java @@ -0,0 +1,793 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * IacFormatInfo defines the actuation tool used to provision the
+ * Template.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.IacFormatInfo} + */ +@com.google.protobuf.Generated +public final class IacFormatInfo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.IacFormatInfo) + IacFormatInfoOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "IacFormatInfo"); + } + + // Use IacFormatInfo.newBuilder() to construct. + private IacFormatInfo(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private IacFormatInfo() { + flavor_ = ""; + version_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_IacFormatInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_IacFormatInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.IacFormatInfo.class, + com.google.cloud.designcenter.v1.IacFormatInfo.Builder.class); + } + + public static final int FLAVOR_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object flavor_ = ""; + + /** + * + * + *
+   * Required. Flavor is the type of the actuation tool.
+   * 
+ * + * string flavor = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The flavor. + */ + @java.lang.Override + public java.lang.String getFlavor() { + java.lang.Object ref = flavor_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + flavor_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Flavor is the type of the actuation tool.
+   * 
+ * + * string flavor = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for flavor. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFlavorBytes() { + java.lang.Object ref = flavor_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + flavor_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VERSION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object version_ = ""; + + /** + * + * + *
+   * Required. Required version for the actuation tool.
+   * required_version = ">= 0.13"
+   * 
+ * + * string version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + /** + * + * + *
+   * Required. Required version for the actuation tool.
+   * required_version = ">= 0.13"
+   * 
+ * + * string version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + 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.GeneratedMessage.isStringEmpty(flavor_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, flavor_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(version_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, version_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(flavor_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, flavor_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(version_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, version_); + } + 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.designcenter.v1.IacFormatInfo)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.IacFormatInfo other = + (com.google.cloud.designcenter.v1.IacFormatInfo) obj; + + if (!getFlavor().equals(other.getFlavor())) return false; + if (!getVersion().equals(other.getVersion())) 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) + FLAVOR_FIELD_NUMBER; + hash = (53 * hash) + getFlavor().hashCode(); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.IacFormatInfo parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.IacFormatInfo 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.designcenter.v1.IacFormatInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.IacFormatInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.IacFormatInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.IacFormatInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.IacFormatInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.IacFormatInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.IacFormatInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.IacFormatInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.IacFormatInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.IacFormatInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.IacFormatInfo 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * IacFormatInfo defines the actuation tool used to provision the
+   * Template.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.IacFormatInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.IacFormatInfo) + com.google.cloud.designcenter.v1.IacFormatInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_IacFormatInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_IacFormatInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.IacFormatInfo.class, + com.google.cloud.designcenter.v1.IacFormatInfo.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.IacFormatInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + flavor_ = ""; + version_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_IacFormatInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.IacFormatInfo getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.IacFormatInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.IacFormatInfo build() { + com.google.cloud.designcenter.v1.IacFormatInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.IacFormatInfo buildPartial() { + com.google.cloud.designcenter.v1.IacFormatInfo result = + new com.google.cloud.designcenter.v1.IacFormatInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.IacFormatInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.flavor_ = flavor_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.version_ = version_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.IacFormatInfo) { + return mergeFrom((com.google.cloud.designcenter.v1.IacFormatInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.IacFormatInfo other) { + if (other == com.google.cloud.designcenter.v1.IacFormatInfo.getDefaultInstance()) return this; + if (!other.getFlavor().isEmpty()) { + flavor_ = other.flavor_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + 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: + { + flavor_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + version_ = 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 flavor_ = ""; + + /** + * + * + *
+     * Required. Flavor is the type of the actuation tool.
+     * 
+ * + * string flavor = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The flavor. + */ + public java.lang.String getFlavor() { + java.lang.Object ref = flavor_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + flavor_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Flavor is the type of the actuation tool.
+     * 
+ * + * string flavor = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for flavor. + */ + public com.google.protobuf.ByteString getFlavorBytes() { + java.lang.Object ref = flavor_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + flavor_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Flavor is the type of the actuation tool.
+     * 
+ * + * string flavor = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The flavor to set. + * @return This builder for chaining. + */ + public Builder setFlavor(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + flavor_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Flavor is the type of the actuation tool.
+     * 
+ * + * string flavor = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearFlavor() { + flavor_ = getDefaultInstance().getFlavor(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Flavor is the type of the actuation tool.
+     * 
+ * + * string flavor = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for flavor to set. + * @return This builder for chaining. + */ + public Builder setFlavorBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + flavor_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object version_ = ""; + + /** + * + * + *
+     * Required. Required version for the actuation tool.
+     * required_version = ">= 0.13"
+     * 
+ * + * string version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + /** + * + * + *
+     * Required. Required version for the actuation tool.
+     * required_version = ">= 0.13"
+     * 
+ * + * string version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + /** + * + * + *
+     * Required. Required version for the actuation tool.
+     * required_version = ">= 0.13"
+     * 
+ * + * string version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Required version for the actuation tool.
+     * required_version = ">= 0.13"
+     * 
+ * + * string version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearVersion() { + version_ = getDefaultInstance().getVersion(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Required version for the actuation tool.
+     * required_version = ">= 0.13"
+     * 
+ * + * string version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.IacFormatInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.IacFormatInfo) + private static final com.google.cloud.designcenter.v1.IacFormatInfo DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.IacFormatInfo(); + } + + public static com.google.cloud.designcenter.v1.IacFormatInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IacFormatInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.IacFormatInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/IacFormatInfoOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/IacFormatInfoOrBuilder.java new file mode 100644 index 000000000000..086cec21f156 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/IacFormatInfoOrBuilder.java @@ -0,0 +1,82 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface IacFormatInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.IacFormatInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Flavor is the type of the actuation tool.
+   * 
+ * + * string flavor = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The flavor. + */ + java.lang.String getFlavor(); + + /** + * + * + *
+   * Required. Flavor is the type of the actuation tool.
+   * 
+ * + * string flavor = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for flavor. + */ + com.google.protobuf.ByteString getFlavorBytes(); + + /** + * + * + *
+   * Required. Required version for the actuation tool.
+   * required_version = ">= 0.13"
+   * 
+ * + * string version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The version. + */ + java.lang.String getVersion(); + + /** + * + * + *
+   * Required. Required version for the actuation tool.
+   * required_version = ">= 0.13"
+   * 
+ * + * string version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for version. + */ + com.google.protobuf.ByteString getVersionBytes(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/IacProto.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/IacProto.java new file mode 100644 index 000000000000..62157a78124d --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/IacProto.java @@ -0,0 +1,180 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/iac.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public final class IacProto extends com.google.protobuf.GeneratedFile { + private IacProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "IacProto"); + } + + 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_designcenter_v1_RootModulesMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_RootModulesMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_RootModule_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_RootModule_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_RootModuleDependency_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_RootModuleDependency_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_RootInputVariable_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_RootInputVariable_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_RootOutputVariable_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_RootOutputVariable_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_TerraformModule_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_TerraformModule_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_TerraformFile_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_TerraformFile_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/designcenter/v1/iac.proto" + + "\022\034google.cloud.designcenter.v1\032-google/c" + + "loud/designcenter/v1/parameters.proto\032\034g" + + "oogle/protobuf/struct.proto\"U\n\023RootModul" + + "esMetadata\022>\n\014root_modules\030\001 \003(\0132(.googl" + + "e.cloud.designcenter.v1.RootModule\"\214\002\n\nR" + + "ootModule\022\n\n\002id\030\001 \001(\t\022\022\n\ncomponents\030\002 \003(" + + "\t\022H\n\014dependencies\030\003 \003(\01322.google.cloud.d" + + "esigncenter.v1.RootModuleDependency\022H\n\017i" + + "nput_variables\030\004 \003(\0132/.google.cloud.desi" + + "gncenter.v1.RootInputVariable\022J\n\020output_" + + "variables\030\005 \003(\01320.google.cloud.designcen" + + "ter.v1.RootOutputVariable\"k\n\024RootModuleD" + + "ependency\022\026\n\016root_module_id\030\001 \001(\t\022;\n\npar" + + "ameters\030\002 \003(\0132\'.google.cloud.designcente" + + "r.v1.Parameter\"\241\001\n\021RootInputVariable\022\020\n\010" + + "variable\030\001 \001(\t\022\025\n\rvariable_type\030\002 \001(\t\022%\n" + + "\005value\030\003 \001(\0132\026.google.protobuf.Value\022-\n\r" + + "default_value\030\004 \001(\0132\026.google.protobuf.Va" + + "lue\022\r\n\005alias\030\005 \001(\t\"&\n\022RootOutputVariable" + + "\022\020\n\010variable\030\001 \001(\t\"]\n\017TerraformModule\022\016\n" + + "\006source\030\001 \001(\t\022:\n\005files\030\002 \003(\0132+.google.cl" + + "oud.designcenter.v1.TerraformFile\".\n\rTer" + + "raformFile\022\014\n\004path\030\001 \001(\t\022\017\n\007content\030\002 \001(" + + "\tB\324\001\n com.google.cloud.designcenter.v1B\010" + + "IacProtoP\001ZDcloud.google.com/go/designce" + + "nter/apiv1/designcenterpb;designcenterpb" + + "\252\002\034Google.Cloud.DesignCenter.V1\312\002\034Google" + + "\\Cloud\\DesignCenter\\V1\352\002\037Google::Cloud::" + + "DesignCenter::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.cloud.designcenter.v1.ParametersProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + }); + internal_static_google_cloud_designcenter_v1_RootModulesMetadata_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_designcenter_v1_RootModulesMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_RootModulesMetadata_descriptor, + new java.lang.String[] { + "RootModules", + }); + internal_static_google_cloud_designcenter_v1_RootModule_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_designcenter_v1_RootModule_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_RootModule_descriptor, + new java.lang.String[] { + "Id", "Components", "Dependencies", "InputVariables", "OutputVariables", + }); + internal_static_google_cloud_designcenter_v1_RootModuleDependency_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_designcenter_v1_RootModuleDependency_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_RootModuleDependency_descriptor, + new java.lang.String[] { + "RootModuleId", "Parameters", + }); + internal_static_google_cloud_designcenter_v1_RootInputVariable_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_cloud_designcenter_v1_RootInputVariable_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_RootInputVariable_descriptor, + new java.lang.String[] { + "Variable", "VariableType", "Value", "DefaultValue", "Alias", + }); + internal_static_google_cloud_designcenter_v1_RootOutputVariable_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_cloud_designcenter_v1_RootOutputVariable_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_RootOutputVariable_descriptor, + new java.lang.String[] { + "Variable", + }); + internal_static_google_cloud_designcenter_v1_TerraformModule_descriptor = + getDescriptor().getMessageType(5); + internal_static_google_cloud_designcenter_v1_TerraformModule_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_TerraformModule_descriptor, + new java.lang.String[] { + "Source", "Files", + }); + internal_static_google_cloud_designcenter_v1_TerraformFile_descriptor = + getDescriptor().getMessageType(6); + internal_static_google_cloud_designcenter_v1_TerraformFile_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_TerraformFile_descriptor, + new java.lang.String[] { + "Path", "Content", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.cloud.designcenter.v1.ParametersProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ImportApplicationIaCRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ImportApplicationIaCRequest.java new file mode 100644 index 000000000000..ac5835f8733c --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ImportApplicationIaCRequest.java @@ -0,0 +1,1477 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Request message for ImportApplicationIaC method.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ImportApplicationIaCRequest} + */ +@com.google.protobuf.Generated +public final class ImportApplicationIaCRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ImportApplicationIaCRequest) + ImportApplicationIaCRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ImportApplicationIaCRequest"); + } + + // Use ImportApplicationIaCRequest.newBuilder() to construct. + private ImportApplicationIaCRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ImportApplicationIaCRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ImportApplicationIaCRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ImportApplicationIaCRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ImportApplicationIaCRequest.class, + com.google.cloud.designcenter.v1.ImportApplicationIaCRequest.Builder.class); + } + + private int sourceCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object source_; + + public enum SourceCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + GCS_URI(2), + IAC_MODULE(5), + SOURCE_NOT_SET(0); + private final int value; + + private SourceCase(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 SourceCase valueOf(int value) { + return forNumber(value); + } + + public static SourceCase forNumber(int value) { + switch (value) { + case 2: + return GCS_URI; + case 5: + return IAC_MODULE; + case 0: + return SOURCE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); + } + + public static final int GCS_URI_FIELD_NUMBER = 2; + + /** + * + * + *
+   * Optional. The Cloud Storage URI of the terraform code.
+   * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the gcsUri field is set. + */ + public boolean hasGcsUri() { + return sourceCase_ == 2; + } + + /** + * + * + *
+   * Optional. The Cloud Storage URI of the terraform code.
+   * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The gcsUri. + */ + public java.lang.String getGcsUri() { + java.lang.Object ref = ""; + if (sourceCase_ == 2) { + ref = source_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 2) { + source_ = s; + } + return s; + } + } + + /** + * + * + *
+   * Optional. The Cloud Storage URI of the terraform code.
+   * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for gcsUri. + */ + public com.google.protobuf.ByteString getGcsUriBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 2) { + ref = source_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 2) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IAC_MODULE_FIELD_NUMBER = 5; + + /** + * + * + *
+   * Optional. The IaC module to import.
+   * 
+ * + * + * .google.cloud.designcenter.v1.IaCModule iac_module = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the iacModule field is set. + */ + @java.lang.Override + public boolean hasIacModule() { + return sourceCase_ == 5; + } + + /** + * + * + *
+   * Optional. The IaC module to import.
+   * 
+ * + * + * .google.cloud.designcenter.v1.IaCModule iac_module = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The iacModule. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.IaCModule getIacModule() { + if (sourceCase_ == 5) { + return (com.google.cloud.designcenter.v1.IaCModule) source_; + } + return com.google.cloud.designcenter.v1.IaCModule.getDefaultInstance(); + } + + /** + * + * + *
+   * Optional. The IaC module to import.
+   * 
+ * + * + * .google.cloud.designcenter.v1.IaCModule iac_module = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.IaCModuleOrBuilder getIacModuleOrBuilder() { + if (sourceCase_ == 5) { + return (com.google.cloud.designcenter.v1.IaCModule) source_; + } + return com.google.cloud.designcenter.v1.IaCModule.getDefaultInstance(); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The name of the application.
+   * 
+ * + * + * 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 application.
+   * 
+ * + * + * 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 ALLOW_PARTIAL_IMPORT_FIELD_NUMBER = 4; + private boolean allowPartialImport_ = false; + + /** + * + * + *
+   * Optional. If set to true, partially imports the valid edits in the IaC and
+   * ignores the invalid changes. Defaults to false, which means any edits which
+   * can't be imported must result in an error.
+   * 
+ * + * bool allow_partial_import = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The allowPartialImport. + */ + @java.lang.Override + public boolean getAllowPartialImport() { + return allowPartialImport_; + } + + public static final int VALIDATE_IAC_FIELD_NUMBER = 6; + private boolean validateIac_ = false; + + /** + * + * + *
+   * Optional. If set to true, the IaC is validated against the golden terraform
+   * without importing. Defaults to false.
+   * 
+ * + * bool validate_iac = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateIac. + */ + @java.lang.Override + public boolean getValidateIac() { + return validateIac_; + } + + 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (sourceCase_ == 2) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, source_); + } + if (allowPartialImport_ != false) { + output.writeBool(4, allowPartialImport_); + } + if (sourceCase_ == 5) { + output.writeMessage(5, (com.google.cloud.designcenter.v1.IaCModule) source_); + } + if (validateIac_ != false) { + output.writeBool(6, validateIac_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (sourceCase_ == 2) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, source_); + } + if (allowPartialImport_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, allowPartialImport_); + } + if (sourceCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.cloud.designcenter.v1.IaCModule) source_); + } + if (validateIac_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, validateIac_); + } + 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.designcenter.v1.ImportApplicationIaCRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ImportApplicationIaCRequest other = + (com.google.cloud.designcenter.v1.ImportApplicationIaCRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (getAllowPartialImport() != other.getAllowPartialImport()) return false; + if (getValidateIac() != other.getValidateIac()) return false; + if (!getSourceCase().equals(other.getSourceCase())) return false; + switch (sourceCase_) { + case 2: + if (!getGcsUri().equals(other.getGcsUri())) return false; + break; + case 5: + if (!getIacModule().equals(other.getIacModule())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + ALLOW_PARTIAL_IMPORT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowPartialImport()); + hash = (37 * hash) + VALIDATE_IAC_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateIac()); + switch (sourceCase_) { + case 2: + hash = (37 * hash) + GCS_URI_FIELD_NUMBER; + hash = (53 * hash) + getGcsUri().hashCode(); + break; + case 5: + hash = (37 * hash) + IAC_MODULE_FIELD_NUMBER; + hash = (53 * hash) + getIacModule().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.ImportApplicationIaCRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ImportApplicationIaCRequest 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.designcenter.v1.ImportApplicationIaCRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ImportApplicationIaCRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ImportApplicationIaCRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ImportApplicationIaCRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ImportApplicationIaCRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ImportApplicationIaCRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ImportApplicationIaCRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ImportApplicationIaCRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ImportApplicationIaCRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ImportApplicationIaCRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ImportApplicationIaCRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for ImportApplicationIaC method.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ImportApplicationIaCRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ImportApplicationIaCRequest) + com.google.cloud.designcenter.v1.ImportApplicationIaCRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ImportApplicationIaCRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ImportApplicationIaCRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ImportApplicationIaCRequest.class, + com.google.cloud.designcenter.v1.ImportApplicationIaCRequest.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.ImportApplicationIaCRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (iacModuleBuilder_ != null) { + iacModuleBuilder_.clear(); + } + name_ = ""; + allowPartialImport_ = false; + validateIac_ = false; + sourceCase_ = 0; + source_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ImportApplicationIaCRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ImportApplicationIaCRequest + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ImportApplicationIaCRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ImportApplicationIaCRequest build() { + com.google.cloud.designcenter.v1.ImportApplicationIaCRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ImportApplicationIaCRequest buildPartial() { + com.google.cloud.designcenter.v1.ImportApplicationIaCRequest result = + new com.google.cloud.designcenter.v1.ImportApplicationIaCRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.ImportApplicationIaCRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.allowPartialImport_ = allowPartialImport_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.validateIac_ = validateIac_; + } + } + + private void buildPartialOneofs( + com.google.cloud.designcenter.v1.ImportApplicationIaCRequest result) { + result.sourceCase_ = sourceCase_; + result.source_ = this.source_; + if (sourceCase_ == 5 && iacModuleBuilder_ != null) { + result.source_ = iacModuleBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.ImportApplicationIaCRequest) { + return mergeFrom((com.google.cloud.designcenter.v1.ImportApplicationIaCRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.ImportApplicationIaCRequest other) { + if (other + == com.google.cloud.designcenter.v1.ImportApplicationIaCRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.getAllowPartialImport() != false) { + setAllowPartialImport(other.getAllowPartialImport()); + } + if (other.getValidateIac() != false) { + setValidateIac(other.getValidateIac()); + } + switch (other.getSourceCase()) { + case GCS_URI: + { + sourceCase_ = 2; + source_ = other.source_; + onChanged(); + break; + } + case IAC_MODULE: + { + mergeIacModule(other.getIacModule()); + break; + } + case SOURCE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 2; + source_ = s; + break; + } // case 18 + case 32: + { + allowPartialImport_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + input.readMessage( + internalGetIacModuleFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 5; + break; + } // case 42 + case 48: + { + validateIac_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 48 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int sourceCase_ = 0; + private java.lang.Object source_; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); + } + + public Builder clearSource() { + sourceCase_ = 0; + source_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
+     * Optional. The Cloud Storage URI of the terraform code.
+     * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the gcsUri field is set. + */ + @java.lang.Override + public boolean hasGcsUri() { + return sourceCase_ == 2; + } + + /** + * + * + *
+     * Optional. The Cloud Storage URI of the terraform code.
+     * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The gcsUri. + */ + @java.lang.Override + public java.lang.String getGcsUri() { + java.lang.Object ref = ""; + if (sourceCase_ == 2) { + ref = source_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 2) { + source_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The Cloud Storage URI of the terraform code.
+     * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for gcsUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGcsUriBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 2) { + ref = source_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 2) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The Cloud Storage URI of the terraform code.
+     * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The gcsUri to set. + * @return This builder for chaining. + */ + public Builder setGcsUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceCase_ = 2; + source_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The Cloud Storage URI of the terraform code.
+     * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearGcsUri() { + if (sourceCase_ == 2) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The Cloud Storage URI of the terraform code.
+     * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for gcsUri to set. + * @return This builder for chaining. + */ + public Builder setGcsUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceCase_ = 2; + source_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.IaCModule, + com.google.cloud.designcenter.v1.IaCModule.Builder, + com.google.cloud.designcenter.v1.IaCModuleOrBuilder> + iacModuleBuilder_; + + /** + * + * + *
+     * Optional. The IaC module to import.
+     * 
+ * + * + * .google.cloud.designcenter.v1.IaCModule iac_module = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the iacModule field is set. + */ + @java.lang.Override + public boolean hasIacModule() { + return sourceCase_ == 5; + } + + /** + * + * + *
+     * Optional. The IaC module to import.
+     * 
+ * + * + * .google.cloud.designcenter.v1.IaCModule iac_module = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The iacModule. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.IaCModule getIacModule() { + if (iacModuleBuilder_ == null) { + if (sourceCase_ == 5) { + return (com.google.cloud.designcenter.v1.IaCModule) source_; + } + return com.google.cloud.designcenter.v1.IaCModule.getDefaultInstance(); + } else { + if (sourceCase_ == 5) { + return iacModuleBuilder_.getMessage(); + } + return com.google.cloud.designcenter.v1.IaCModule.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. The IaC module to import.
+     * 
+ * + * + * .google.cloud.designcenter.v1.IaCModule iac_module = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIacModule(com.google.cloud.designcenter.v1.IaCModule value) { + if (iacModuleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + iacModuleBuilder_.setMessage(value); + } + sourceCase_ = 5; + return this; + } + + /** + * + * + *
+     * Optional. The IaC module to import.
+     * 
+ * + * + * .google.cloud.designcenter.v1.IaCModule iac_module = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIacModule( + com.google.cloud.designcenter.v1.IaCModule.Builder builderForValue) { + if (iacModuleBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + iacModuleBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 5; + return this; + } + + /** + * + * + *
+     * Optional. The IaC module to import.
+     * 
+ * + * + * .google.cloud.designcenter.v1.IaCModule iac_module = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeIacModule(com.google.cloud.designcenter.v1.IaCModule value) { + if (iacModuleBuilder_ == null) { + if (sourceCase_ == 5 + && source_ != com.google.cloud.designcenter.v1.IaCModule.getDefaultInstance()) { + source_ = + com.google.cloud.designcenter.v1.IaCModule.newBuilder( + (com.google.cloud.designcenter.v1.IaCModule) source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 5) { + iacModuleBuilder_.mergeFrom(value); + } else { + iacModuleBuilder_.setMessage(value); + } + } + sourceCase_ = 5; + return this; + } + + /** + * + * + *
+     * Optional. The IaC module to import.
+     * 
+ * + * + * .google.cloud.designcenter.v1.IaCModule iac_module = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearIacModule() { + if (iacModuleBuilder_ == null) { + if (sourceCase_ == 5) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 5) { + sourceCase_ = 0; + source_ = null; + } + iacModuleBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. The IaC module to import.
+     * 
+ * + * + * .google.cloud.designcenter.v1.IaCModule iac_module = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.IaCModule.Builder getIacModuleBuilder() { + return internalGetIacModuleFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The IaC module to import.
+     * 
+ * + * + * .google.cloud.designcenter.v1.IaCModule iac_module = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.IaCModuleOrBuilder getIacModuleOrBuilder() { + if ((sourceCase_ == 5) && (iacModuleBuilder_ != null)) { + return iacModuleBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 5) { + return (com.google.cloud.designcenter.v1.IaCModule) source_; + } + return com.google.cloud.designcenter.v1.IaCModule.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. The IaC module to import.
+     * 
+ * + * + * .google.cloud.designcenter.v1.IaCModule iac_module = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.IaCModule, + com.google.cloud.designcenter.v1.IaCModule.Builder, + com.google.cloud.designcenter.v1.IaCModuleOrBuilder> + internalGetIacModuleFieldBuilder() { + if (iacModuleBuilder_ == null) { + if (!(sourceCase_ == 5)) { + source_ = com.google.cloud.designcenter.v1.IaCModule.getDefaultInstance(); + } + iacModuleBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.IaCModule, + com.google.cloud.designcenter.v1.IaCModule.Builder, + com.google.cloud.designcenter.v1.IaCModuleOrBuilder>( + (com.google.cloud.designcenter.v1.IaCModule) source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 5; + onChanged(); + return iacModuleBuilder_; + } + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The name of the application.
+     * 
+ * + * + * 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 application.
+     * 
+ * + * + * 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 application.
+     * 
+ * + * + * 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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The name of the application.
+     * 
+ * + * + * 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_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The name of the application.
+     * 
+ * + * + * 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_ |= 0x00000004; + onChanged(); + return this; + } + + private boolean allowPartialImport_; + + /** + * + * + *
+     * Optional. If set to true, partially imports the valid edits in the IaC and
+     * ignores the invalid changes. Defaults to false, which means any edits which
+     * can't be imported must result in an error.
+     * 
+ * + * bool allow_partial_import = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The allowPartialImport. + */ + @java.lang.Override + public boolean getAllowPartialImport() { + return allowPartialImport_; + } + + /** + * + * + *
+     * Optional. If set to true, partially imports the valid edits in the IaC and
+     * ignores the invalid changes. Defaults to false, which means any edits which
+     * can't be imported must result in an error.
+     * 
+ * + * bool allow_partial_import = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The allowPartialImport to set. + * @return This builder for chaining. + */ + public Builder setAllowPartialImport(boolean value) { + + allowPartialImport_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. If set to true, partially imports the valid edits in the IaC and
+     * ignores the invalid changes. Defaults to false, which means any edits which
+     * can't be imported must result in an error.
+     * 
+ * + * bool allow_partial_import = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAllowPartialImport() { + bitField0_ = (bitField0_ & ~0x00000008); + allowPartialImport_ = false; + onChanged(); + return this; + } + + private boolean validateIac_; + + /** + * + * + *
+     * Optional. If set to true, the IaC is validated against the golden terraform
+     * without importing. Defaults to false.
+     * 
+ * + * bool validate_iac = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateIac. + */ + @java.lang.Override + public boolean getValidateIac() { + return validateIac_; + } + + /** + * + * + *
+     * Optional. If set to true, the IaC is validated against the golden terraform
+     * without importing. Defaults to false.
+     * 
+ * + * bool validate_iac = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The validateIac to set. + * @return This builder for chaining. + */ + public Builder setValidateIac(boolean value) { + + validateIac_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. If set to true, the IaC is validated against the golden terraform
+     * without importing. Defaults to false.
+     * 
+ * + * bool validate_iac = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearValidateIac() { + bitField0_ = (bitField0_ & ~0x00000010); + validateIac_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ImportApplicationIaCRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ImportApplicationIaCRequest) + private static final com.google.cloud.designcenter.v1.ImportApplicationIaCRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.ImportApplicationIaCRequest(); + } + + public static com.google.cloud.designcenter.v1.ImportApplicationIaCRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportApplicationIaCRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ImportApplicationIaCRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ImportApplicationIaCRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ImportApplicationIaCRequestOrBuilder.java new file mode 100644 index 000000000000..df7c1da47a3e --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ImportApplicationIaCRequestOrBuilder.java @@ -0,0 +1,171 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ImportApplicationIaCRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ImportApplicationIaCRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The Cloud Storage URI of the terraform code.
+   * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the gcsUri field is set. + */ + boolean hasGcsUri(); + + /** + * + * + *
+   * Optional. The Cloud Storage URI of the terraform code.
+   * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The gcsUri. + */ + java.lang.String getGcsUri(); + + /** + * + * + *
+   * Optional. The Cloud Storage URI of the terraform code.
+   * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for gcsUri. + */ + com.google.protobuf.ByteString getGcsUriBytes(); + + /** + * + * + *
+   * Optional. The IaC module to import.
+   * 
+ * + * + * .google.cloud.designcenter.v1.IaCModule iac_module = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the iacModule field is set. + */ + boolean hasIacModule(); + + /** + * + * + *
+   * Optional. The IaC module to import.
+   * 
+ * + * + * .google.cloud.designcenter.v1.IaCModule iac_module = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The iacModule. + */ + com.google.cloud.designcenter.v1.IaCModule getIacModule(); + + /** + * + * + *
+   * Optional. The IaC module to import.
+   * 
+ * + * + * .google.cloud.designcenter.v1.IaCModule iac_module = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.IaCModuleOrBuilder getIacModuleOrBuilder(); + + /** + * + * + *
+   * Required. The name of the application.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The name of the application.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. If set to true, partially imports the valid edits in the IaC and
+   * ignores the invalid changes. Defaults to false, which means any edits which
+   * can't be imported must result in an error.
+   * 
+ * + * bool allow_partial_import = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The allowPartialImport. + */ + boolean getAllowPartialImport(); + + /** + * + * + *
+   * Optional. If set to true, the IaC is validated against the golden terraform
+   * without importing. Defaults to false.
+   * 
+ * + * bool validate_iac = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateIac. + */ + boolean getValidateIac(); + + com.google.cloud.designcenter.v1.ImportApplicationIaCRequest.SourceCase getSourceCase(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ImportApplicationIaCResponse.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ImportApplicationIaCResponse.java new file mode 100644 index 000000000000..c2eda80d0a34 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ImportApplicationIaCResponse.java @@ -0,0 +1,1559 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Response message for ImportApplicationIaC method.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ImportApplicationIaCResponse} + */ +@com.google.protobuf.Generated +public final class ImportApplicationIaCResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ImportApplicationIaCResponse) + ImportApplicationIaCResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ImportApplicationIaCResponse"); + } + + // Use ImportApplicationIaCResponse.newBuilder() to construct. + private ImportApplicationIaCResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ImportApplicationIaCResponse() { + errors_ = java.util.Collections.emptyList(); + state_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ImportApplicationIaCResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ImportApplicationIaCResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ImportApplicationIaCResponse.class, + com.google.cloud.designcenter.v1.ImportApplicationIaCResponse.Builder.class); + } + + /** + * + * + *
+   * State of Import.
+   * 
+ * + * Protobuf enum {@code google.cloud.designcenter.v1.ImportApplicationIaCResponse.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * The import was successful.
+     * 
+ * + * SUCCEEDED = 1; + */ + SUCCEEDED(1), + /** + * + * + *
+     * The import failed.
+     * 
+ * + * FAILED = 2; + */ + FAILED(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
+     * Default.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * The import was successful.
+     * 
+ * + * SUCCEEDED = 1; + */ + public static final int SUCCEEDED_VALUE = 1; + + /** + * + * + *
+     * The import failed.
+     * 
+ * + * FAILED = 2; + */ + public static final int FAILED_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 SUCCEEDED; + case 2: + 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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.designcenter.v1.ImportApplicationIaCResponse.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.designcenter.v1.ImportApplicationIaCResponse.State) + } + + private int bitField0_; + public static final int APPLICATION_FIELD_NUMBER = 1; + private com.google.cloud.designcenter.v1.Application application_; + + /** + * + * + *
+   * Application template corresponding to the imported IaC.
+   * 
+ * + * .google.cloud.designcenter.v1.Application application = 1; + * + * @return Whether the application field is set. + */ + @java.lang.Override + public boolean hasApplication() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Application template corresponding to the imported IaC.
+   * 
+ * + * .google.cloud.designcenter.v1.Application application = 1; + * + * @return The application. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.Application getApplication() { + return application_ == null + ? com.google.cloud.designcenter.v1.Application.getDefaultInstance() + : application_; + } + + /** + * + * + *
+   * Application template corresponding to the imported IaC.
+   * 
+ * + * .google.cloud.designcenter.v1.Application application = 1; + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ApplicationOrBuilder getApplicationOrBuilder() { + return application_ == null + ? com.google.cloud.designcenter.v1.Application.getDefaultInstance() + : application_; + } + + public static final int ERRORS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List errors_; + + /** + * + * + *
+   * Errors encountered during import.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + @java.lang.Override + public java.util.List getErrorsList() { + return errors_; + } + + /** + * + * + *
+   * Errors encountered during import.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + @java.lang.Override + public java.util.List + getErrorsOrBuilderList() { + return errors_; + } + + /** + * + * + *
+   * Errors encountered during import.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + @java.lang.Override + public int getErrorsCount() { + return errors_.size(); + } + + /** + * + * + *
+   * Errors encountered during import.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ImportIaCError getErrors(int index) { + return errors_.get(index); + } + + /** + * + * + *
+   * Errors encountered during import.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ImportIaCErrorOrBuilder getErrorsOrBuilder(int index) { + return errors_.get(index); + } + + public static final int STATE_FIELD_NUMBER = 3; + private int state_ = 0; + + /** + * + * + *
+   * The state of the import.
+   * 
+ * + * .google.cloud.designcenter.v1.ImportApplicationIaCResponse.State state = 3; + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+   * The state of the import.
+   * 
+ * + * .google.cloud.designcenter.v1.ImportApplicationIaCResponse.State state = 3; + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ImportApplicationIaCResponse.State getState() { + com.google.cloud.designcenter.v1.ImportApplicationIaCResponse.State result = + com.google.cloud.designcenter.v1.ImportApplicationIaCResponse.State.forNumber(state_); + return result == null + ? com.google.cloud.designcenter.v1.ImportApplicationIaCResponse.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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getApplication()); + } + for (int i = 0; i < errors_.size(); i++) { + output.writeMessage(2, errors_.get(i)); + } + if (state_ + != com.google.cloud.designcenter.v1.ImportApplicationIaCResponse.State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, state_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getApplication()); + } + for (int i = 0; i < errors_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, errors_.get(i)); + } + if (state_ + != com.google.cloud.designcenter.v1.ImportApplicationIaCResponse.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, 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.designcenter.v1.ImportApplicationIaCResponse)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ImportApplicationIaCResponse other = + (com.google.cloud.designcenter.v1.ImportApplicationIaCResponse) obj; + + if (hasApplication() != other.hasApplication()) return false; + if (hasApplication()) { + if (!getApplication().equals(other.getApplication())) return false; + } + if (!getErrorsList().equals(other.getErrorsList())) 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(); + if (hasApplication()) { + hash = (37 * hash) + APPLICATION_FIELD_NUMBER; + hash = (53 * hash) + getApplication().hashCode(); + } + if (getErrorsCount() > 0) { + hash = (37 * hash) + ERRORS_FIELD_NUMBER; + hash = (53 * hash) + getErrorsList().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.designcenter.v1.ImportApplicationIaCResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ImportApplicationIaCResponse 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.designcenter.v1.ImportApplicationIaCResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ImportApplicationIaCResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ImportApplicationIaCResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ImportApplicationIaCResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ImportApplicationIaCResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ImportApplicationIaCResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ImportApplicationIaCResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ImportApplicationIaCResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ImportApplicationIaCResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ImportApplicationIaCResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ImportApplicationIaCResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response message for ImportApplicationIaC method.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ImportApplicationIaCResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ImportApplicationIaCResponse) + com.google.cloud.designcenter.v1.ImportApplicationIaCResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ImportApplicationIaCResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ImportApplicationIaCResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ImportApplicationIaCResponse.class, + com.google.cloud.designcenter.v1.ImportApplicationIaCResponse.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.ImportApplicationIaCResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetApplicationFieldBuilder(); + internalGetErrorsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + application_ = null; + if (applicationBuilder_ != null) { + applicationBuilder_.dispose(); + applicationBuilder_ = null; + } + if (errorsBuilder_ == null) { + errors_ = java.util.Collections.emptyList(); + } else { + errors_ = null; + errorsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + state_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ImportApplicationIaCResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ImportApplicationIaCResponse + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ImportApplicationIaCResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ImportApplicationIaCResponse build() { + com.google.cloud.designcenter.v1.ImportApplicationIaCResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ImportApplicationIaCResponse buildPartial() { + com.google.cloud.designcenter.v1.ImportApplicationIaCResponse result = + new com.google.cloud.designcenter.v1.ImportApplicationIaCResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.designcenter.v1.ImportApplicationIaCResponse result) { + if (errorsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + errors_ = java.util.Collections.unmodifiableList(errors_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.errors_ = errors_; + } else { + result.errors_ = errorsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.ImportApplicationIaCResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.application_ = + applicationBuilder_ == null ? application_ : applicationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.state_ = state_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.ImportApplicationIaCResponse) { + return mergeFrom((com.google.cloud.designcenter.v1.ImportApplicationIaCResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.ImportApplicationIaCResponse other) { + if (other + == com.google.cloud.designcenter.v1.ImportApplicationIaCResponse.getDefaultInstance()) + return this; + if (other.hasApplication()) { + mergeApplication(other.getApplication()); + } + if (errorsBuilder_ == null) { + if (!other.errors_.isEmpty()) { + if (errors_.isEmpty()) { + errors_ = other.errors_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureErrorsIsMutable(); + errors_.addAll(other.errors_); + } + onChanged(); + } + } else { + if (!other.errors_.isEmpty()) { + if (errorsBuilder_.isEmpty()) { + errorsBuilder_.dispose(); + errorsBuilder_ = null; + errors_ = other.errors_; + bitField0_ = (bitField0_ & ~0x00000002); + errorsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetErrorsFieldBuilder() + : null; + } else { + errorsBuilder_.addAllMessages(other.errors_); + } + } + } + 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: + { + input.readMessage( + internalGetApplicationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.designcenter.v1.ImportIaCError m = + input.readMessage( + com.google.cloud.designcenter.v1.ImportIaCError.parser(), + extensionRegistry); + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.add(m); + } else { + errorsBuilder_.addMessage(m); + } + break; + } // case 18 + case 24: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + 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.designcenter.v1.Application application_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.Application, + com.google.cloud.designcenter.v1.Application.Builder, + com.google.cloud.designcenter.v1.ApplicationOrBuilder> + applicationBuilder_; + + /** + * + * + *
+     * Application template corresponding to the imported IaC.
+     * 
+ * + * .google.cloud.designcenter.v1.Application application = 1; + * + * @return Whether the application field is set. + */ + public boolean hasApplication() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Application template corresponding to the imported IaC.
+     * 
+ * + * .google.cloud.designcenter.v1.Application application = 1; + * + * @return The application. + */ + public com.google.cloud.designcenter.v1.Application getApplication() { + if (applicationBuilder_ == null) { + return application_ == null + ? com.google.cloud.designcenter.v1.Application.getDefaultInstance() + : application_; + } else { + return applicationBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Application template corresponding to the imported IaC.
+     * 
+ * + * .google.cloud.designcenter.v1.Application application = 1; + */ + public Builder setApplication(com.google.cloud.designcenter.v1.Application value) { + if (applicationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + application_ = value; + } else { + applicationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Application template corresponding to the imported IaC.
+     * 
+ * + * .google.cloud.designcenter.v1.Application application = 1; + */ + public Builder setApplication( + com.google.cloud.designcenter.v1.Application.Builder builderForValue) { + if (applicationBuilder_ == null) { + application_ = builderForValue.build(); + } else { + applicationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Application template corresponding to the imported IaC.
+     * 
+ * + * .google.cloud.designcenter.v1.Application application = 1; + */ + public Builder mergeApplication(com.google.cloud.designcenter.v1.Application value) { + if (applicationBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && application_ != null + && application_ != com.google.cloud.designcenter.v1.Application.getDefaultInstance()) { + getApplicationBuilder().mergeFrom(value); + } else { + application_ = value; + } + } else { + applicationBuilder_.mergeFrom(value); + } + if (application_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Application template corresponding to the imported IaC.
+     * 
+ * + * .google.cloud.designcenter.v1.Application application = 1; + */ + public Builder clearApplication() { + bitField0_ = (bitField0_ & ~0x00000001); + application_ = null; + if (applicationBuilder_ != null) { + applicationBuilder_.dispose(); + applicationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Application template corresponding to the imported IaC.
+     * 
+ * + * .google.cloud.designcenter.v1.Application application = 1; + */ + public com.google.cloud.designcenter.v1.Application.Builder getApplicationBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetApplicationFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Application template corresponding to the imported IaC.
+     * 
+ * + * .google.cloud.designcenter.v1.Application application = 1; + */ + public com.google.cloud.designcenter.v1.ApplicationOrBuilder getApplicationOrBuilder() { + if (applicationBuilder_ != null) { + return applicationBuilder_.getMessageOrBuilder(); + } else { + return application_ == null + ? com.google.cloud.designcenter.v1.Application.getDefaultInstance() + : application_; + } + } + + /** + * + * + *
+     * Application template corresponding to the imported IaC.
+     * 
+ * + * .google.cloud.designcenter.v1.Application application = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.Application, + com.google.cloud.designcenter.v1.Application.Builder, + com.google.cloud.designcenter.v1.ApplicationOrBuilder> + internalGetApplicationFieldBuilder() { + if (applicationBuilder_ == null) { + applicationBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.Application, + com.google.cloud.designcenter.v1.Application.Builder, + com.google.cloud.designcenter.v1.ApplicationOrBuilder>( + getApplication(), getParentForChildren(), isClean()); + application_ = null; + } + return applicationBuilder_; + } + + private java.util.List errors_ = + java.util.Collections.emptyList(); + + private void ensureErrorsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + errors_ = new java.util.ArrayList(errors_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ImportIaCError, + com.google.cloud.designcenter.v1.ImportIaCError.Builder, + com.google.cloud.designcenter.v1.ImportIaCErrorOrBuilder> + errorsBuilder_; + + /** + * + * + *
+     * Errors encountered during import.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + public java.util.List getErrorsList() { + if (errorsBuilder_ == null) { + return java.util.Collections.unmodifiableList(errors_); + } else { + return errorsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Errors encountered during import.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + public int getErrorsCount() { + if (errorsBuilder_ == null) { + return errors_.size(); + } else { + return errorsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Errors encountered during import.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + public com.google.cloud.designcenter.v1.ImportIaCError getErrors(int index) { + if (errorsBuilder_ == null) { + return errors_.get(index); + } else { + return errorsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Errors encountered during import.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + public Builder setErrors(int index, com.google.cloud.designcenter.v1.ImportIaCError value) { + if (errorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.set(index, value); + onChanged(); + } else { + errorsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Errors encountered during import.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + public Builder setErrors( + int index, com.google.cloud.designcenter.v1.ImportIaCError.Builder builderForValue) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.set(index, builderForValue.build()); + onChanged(); + } else { + errorsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Errors encountered during import.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + public Builder addErrors(com.google.cloud.designcenter.v1.ImportIaCError value) { + if (errorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.add(value); + onChanged(); + } else { + errorsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Errors encountered during import.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + public Builder addErrors(int index, com.google.cloud.designcenter.v1.ImportIaCError value) { + if (errorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.add(index, value); + onChanged(); + } else { + errorsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Errors encountered during import.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + public Builder addErrors( + com.google.cloud.designcenter.v1.ImportIaCError.Builder builderForValue) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.add(builderForValue.build()); + onChanged(); + } else { + errorsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Errors encountered during import.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + public Builder addErrors( + int index, com.google.cloud.designcenter.v1.ImportIaCError.Builder builderForValue) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.add(index, builderForValue.build()); + onChanged(); + } else { + errorsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Errors encountered during import.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + public Builder addAllErrors( + java.lang.Iterable values) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errors_); + onChanged(); + } else { + errorsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Errors encountered during import.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + public Builder clearErrors() { + if (errorsBuilder_ == null) { + errors_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + errorsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Errors encountered during import.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + public Builder removeErrors(int index) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.remove(index); + onChanged(); + } else { + errorsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Errors encountered during import.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + public com.google.cloud.designcenter.v1.ImportIaCError.Builder getErrorsBuilder(int index) { + return internalGetErrorsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Errors encountered during import.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + public com.google.cloud.designcenter.v1.ImportIaCErrorOrBuilder getErrorsOrBuilder(int index) { + if (errorsBuilder_ == null) { + return errors_.get(index); + } else { + return errorsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Errors encountered during import.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + public java.util.List + getErrorsOrBuilderList() { + if (errorsBuilder_ != null) { + return errorsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(errors_); + } + } + + /** + * + * + *
+     * Errors encountered during import.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + public com.google.cloud.designcenter.v1.ImportIaCError.Builder addErrorsBuilder() { + return internalGetErrorsFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.ImportIaCError.getDefaultInstance()); + } + + /** + * + * + *
+     * Errors encountered during import.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + public com.google.cloud.designcenter.v1.ImportIaCError.Builder addErrorsBuilder(int index) { + return internalGetErrorsFieldBuilder() + .addBuilder(index, com.google.cloud.designcenter.v1.ImportIaCError.getDefaultInstance()); + } + + /** + * + * + *
+     * Errors encountered during import.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + public java.util.List + getErrorsBuilderList() { + return internalGetErrorsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ImportIaCError, + com.google.cloud.designcenter.v1.ImportIaCError.Builder, + com.google.cloud.designcenter.v1.ImportIaCErrorOrBuilder> + internalGetErrorsFieldBuilder() { + if (errorsBuilder_ == null) { + errorsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ImportIaCError, + com.google.cloud.designcenter.v1.ImportIaCError.Builder, + com.google.cloud.designcenter.v1.ImportIaCErrorOrBuilder>( + errors_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + errors_ = null; + } + return errorsBuilder_; + } + + private int state_ = 0; + + /** + * + * + *
+     * The state of the import.
+     * 
+ * + * .google.cloud.designcenter.v1.ImportApplicationIaCResponse.State state = 3; + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+     * The state of the import.
+     * 
+ * + * .google.cloud.designcenter.v1.ImportApplicationIaCResponse.State state = 3; + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * The state of the import.
+     * 
+ * + * .google.cloud.designcenter.v1.ImportApplicationIaCResponse.State state = 3; + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ImportApplicationIaCResponse.State getState() { + com.google.cloud.designcenter.v1.ImportApplicationIaCResponse.State result = + com.google.cloud.designcenter.v1.ImportApplicationIaCResponse.State.forNumber(state_); + return result == null + ? com.google.cloud.designcenter.v1.ImportApplicationIaCResponse.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * The state of the import.
+     * 
+ * + * .google.cloud.designcenter.v1.ImportApplicationIaCResponse.State state = 3; + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState( + com.google.cloud.designcenter.v1.ImportApplicationIaCResponse.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * The state of the import.
+     * 
+ * + * .google.cloud.designcenter.v1.ImportApplicationIaCResponse.State state = 3; + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000004); + state_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ImportApplicationIaCResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ImportApplicationIaCResponse) + private static final com.google.cloud.designcenter.v1.ImportApplicationIaCResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.ImportApplicationIaCResponse(); + } + + public static com.google.cloud.designcenter.v1.ImportApplicationIaCResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportApplicationIaCResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ImportApplicationIaCResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ImportApplicationIaCResponseOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ImportApplicationIaCResponseOrBuilder.java new file mode 100644 index 000000000000..8afa66ac9572 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ImportApplicationIaCResponseOrBuilder.java @@ -0,0 +1,147 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ImportApplicationIaCResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ImportApplicationIaCResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Application template corresponding to the imported IaC.
+   * 
+ * + * .google.cloud.designcenter.v1.Application application = 1; + * + * @return Whether the application field is set. + */ + boolean hasApplication(); + + /** + * + * + *
+   * Application template corresponding to the imported IaC.
+   * 
+ * + * .google.cloud.designcenter.v1.Application application = 1; + * + * @return The application. + */ + com.google.cloud.designcenter.v1.Application getApplication(); + + /** + * + * + *
+   * Application template corresponding to the imported IaC.
+   * 
+ * + * .google.cloud.designcenter.v1.Application application = 1; + */ + com.google.cloud.designcenter.v1.ApplicationOrBuilder getApplicationOrBuilder(); + + /** + * + * + *
+   * Errors encountered during import.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + java.util.List getErrorsList(); + + /** + * + * + *
+   * Errors encountered during import.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + com.google.cloud.designcenter.v1.ImportIaCError getErrors(int index); + + /** + * + * + *
+   * Errors encountered during import.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + int getErrorsCount(); + + /** + * + * + *
+   * Errors encountered during import.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + java.util.List + getErrorsOrBuilderList(); + + /** + * + * + *
+   * Errors encountered during import.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + com.google.cloud.designcenter.v1.ImportIaCErrorOrBuilder getErrorsOrBuilder(int index); + + /** + * + * + *
+   * The state of the import.
+   * 
+ * + * .google.cloud.designcenter.v1.ImportApplicationIaCResponse.State state = 3; + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
+   * The state of the import.
+   * 
+ * + * .google.cloud.designcenter.v1.ImportApplicationIaCResponse.State state = 3; + * + * @return The state. + */ + com.google.cloud.designcenter.v1.ImportApplicationIaCResponse.State getState(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ImportApplicationTemplateIaCRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ImportApplicationTemplateIaCRequest.java new file mode 100644 index 000000000000..6307aaa19d32 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ImportApplicationTemplateIaCRequest.java @@ -0,0 +1,1842 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Request message for ImportApplicationTemplateIaC method.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ImportApplicationTemplateIaCRequest} + */ +@com.google.protobuf.Generated +public final class ImportApplicationTemplateIaCRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ImportApplicationTemplateIaCRequest) + ImportApplicationTemplateIaCRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ImportApplicationTemplateIaCRequest"); + } + + // Use ImportApplicationTemplateIaCRequest.newBuilder() to construct. + private ImportApplicationTemplateIaCRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ImportApplicationTemplateIaCRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ImportApplicationTemplateIaCRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ImportApplicationTemplateIaCRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCRequest.class, + com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCRequest.Builder.class); + } + + private int sourceCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object source_; + + public enum SourceCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + GCS_URI(2), + IAC_MODULE(5), + DEVELOPER_CONNECT_SOURCE_CONFIG(7), + SOURCE_NOT_SET(0); + private final int value; + + private SourceCase(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 SourceCase valueOf(int value) { + return forNumber(value); + } + + public static SourceCase forNumber(int value) { + switch (value) { + case 2: + return GCS_URI; + case 5: + return IAC_MODULE; + case 7: + return DEVELOPER_CONNECT_SOURCE_CONFIG; + case 0: + return SOURCE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); + } + + public static final int GCS_URI_FIELD_NUMBER = 2; + + /** + * + * + *
+   * Optional. The Cloud Storage URI of the terraform code.
+   * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the gcsUri field is set. + */ + public boolean hasGcsUri() { + return sourceCase_ == 2; + } + + /** + * + * + *
+   * Optional. The Cloud Storage URI of the terraform code.
+   * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The gcsUri. + */ + public java.lang.String getGcsUri() { + java.lang.Object ref = ""; + if (sourceCase_ == 2) { + ref = source_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 2) { + source_ = s; + } + return s; + } + } + + /** + * + * + *
+   * Optional. The Cloud Storage URI of the terraform code.
+   * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for gcsUri. + */ + public com.google.protobuf.ByteString getGcsUriBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 2) { + ref = source_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 2) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IAC_MODULE_FIELD_NUMBER = 5; + + /** + * + * + *
+   * Optional. The IaC module to import.
+   * 
+ * + * + * .google.cloud.designcenter.v1.IaCModule iac_module = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the iacModule field is set. + */ + @java.lang.Override + public boolean hasIacModule() { + return sourceCase_ == 5; + } + + /** + * + * + *
+   * Optional. The IaC module to import.
+   * 
+ * + * + * .google.cloud.designcenter.v1.IaCModule iac_module = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The iacModule. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.IaCModule getIacModule() { + if (sourceCase_ == 5) { + return (com.google.cloud.designcenter.v1.IaCModule) source_; + } + return com.google.cloud.designcenter.v1.IaCModule.getDefaultInstance(); + } + + /** + * + * + *
+   * Optional. The IaC module to import.
+   * 
+ * + * + * .google.cloud.designcenter.v1.IaCModule iac_module = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.IaCModuleOrBuilder getIacModuleOrBuilder() { + if (sourceCase_ == 5) { + return (com.google.cloud.designcenter.v1.IaCModule) source_; + } + return com.google.cloud.designcenter.v1.IaCModule.getDefaultInstance(); + } + + public static final int DEVELOPER_CONNECT_SOURCE_CONFIG_FIELD_NUMBER = 7; + + /** + * + * + *
+   * Optional. Configuration for fetching content from source code repository
+   * such as GitHub or Bitbucket through Developer Connect.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectSourceConfig developer_connect_source_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the developerConnectSourceConfig field is set. + */ + @java.lang.Override + public boolean hasDeveloperConnectSourceConfig() { + return sourceCase_ == 7; + } + + /** + * + * + *
+   * Optional. Configuration for fetching content from source code repository
+   * such as GitHub or Bitbucket through Developer Connect.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectSourceConfig developer_connect_source_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The developerConnectSourceConfig. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig + getDeveloperConnectSourceConfig() { + if (sourceCase_ == 7) { + return (com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig) source_; + } + return com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig.getDefaultInstance(); + } + + /** + * + * + *
+   * Optional. Configuration for fetching content from source code repository
+   * such as GitHub or Bitbucket through Developer Connect.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectSourceConfig developer_connect_source_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.DeveloperConnectSourceConfigOrBuilder + getDeveloperConnectSourceConfigOrBuilder() { + if (sourceCase_ == 7) { + return (com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig) source_; + } + return com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig.getDefaultInstance(); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The name of the application template.
+   * 
+ * + * + * 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 application template.
+   * 
+ * + * + * 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 ALLOW_PARTIAL_IMPORT_FIELD_NUMBER = 4; + private boolean allowPartialImport_ = false; + + /** + * + * + *
+   * Optional. If set to true, partially imports the valid edits in the IaC and
+   * ignores the invalid changes. Defaults to false, which means any edits which
+   * can't be imported must result in an error.
+   * 
+ * + * bool allow_partial_import = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The allowPartialImport. + */ + @java.lang.Override + public boolean getAllowPartialImport() { + return allowPartialImport_; + } + + public static final int VALIDATE_IAC_FIELD_NUMBER = 6; + private boolean validateIac_ = false; + + /** + * + * + *
+   * Optional. If set to true, the IaC is validated against the golden terraform
+   * without importing. Defaults to false.
+   * 
+ * + * bool validate_iac = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateIac. + */ + @java.lang.Override + public boolean getValidateIac() { + return validateIac_; + } + + 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (sourceCase_ == 2) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, source_); + } + if (allowPartialImport_ != false) { + output.writeBool(4, allowPartialImport_); + } + if (sourceCase_ == 5) { + output.writeMessage(5, (com.google.cloud.designcenter.v1.IaCModule) source_); + } + if (validateIac_ != false) { + output.writeBool(6, validateIac_); + } + if (sourceCase_ == 7) { + output.writeMessage( + 7, (com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig) source_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (sourceCase_ == 2) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, source_); + } + if (allowPartialImport_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, allowPartialImport_); + } + if (sourceCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.cloud.designcenter.v1.IaCModule) source_); + } + if (validateIac_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, validateIac_); + } + if (sourceCase_ == 7) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, (com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig) source_); + } + 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.designcenter.v1.ImportApplicationTemplateIaCRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCRequest other = + (com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (getAllowPartialImport() != other.getAllowPartialImport()) return false; + if (getValidateIac() != other.getValidateIac()) return false; + if (!getSourceCase().equals(other.getSourceCase())) return false; + switch (sourceCase_) { + case 2: + if (!getGcsUri().equals(other.getGcsUri())) return false; + break; + case 5: + if (!getIacModule().equals(other.getIacModule())) return false; + break; + case 7: + if (!getDeveloperConnectSourceConfig().equals(other.getDeveloperConnectSourceConfig())) + return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + ALLOW_PARTIAL_IMPORT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowPartialImport()); + hash = (37 * hash) + VALIDATE_IAC_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateIac()); + switch (sourceCase_) { + case 2: + hash = (37 * hash) + GCS_URI_FIELD_NUMBER; + hash = (53 * hash) + getGcsUri().hashCode(); + break; + case 5: + hash = (37 * hash) + IAC_MODULE_FIELD_NUMBER; + hash = (53 * hash) + getIacModule().hashCode(); + break; + case 7: + hash = (37 * hash) + DEVELOPER_CONNECT_SOURCE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDeveloperConnectSourceConfig().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCRequest 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.designcenter.v1.ImportApplicationTemplateIaCRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ImportApplicationTemplateIaCRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for ImportApplicationTemplateIaC method.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ImportApplicationTemplateIaCRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ImportApplicationTemplateIaCRequest) + com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ImportApplicationTemplateIaCRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ImportApplicationTemplateIaCRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCRequest.class, + com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCRequest.Builder.class); + } + + // Construct using + // com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (iacModuleBuilder_ != null) { + iacModuleBuilder_.clear(); + } + if (developerConnectSourceConfigBuilder_ != null) { + developerConnectSourceConfigBuilder_.clear(); + } + name_ = ""; + allowPartialImport_ = false; + validateIac_ = false; + sourceCase_ = 0; + source_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ImportApplicationTemplateIaCRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCRequest + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCRequest build() { + com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCRequest buildPartial() { + com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCRequest result = + new com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.allowPartialImport_ = allowPartialImport_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.validateIac_ = validateIac_; + } + } + + private void buildPartialOneofs( + com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCRequest result) { + result.sourceCase_ = sourceCase_; + result.source_ = this.source_; + if (sourceCase_ == 5 && iacModuleBuilder_ != null) { + result.source_ = iacModuleBuilder_.build(); + } + if (sourceCase_ == 7 && developerConnectSourceConfigBuilder_ != null) { + result.source_ = developerConnectSourceConfigBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCRequest) { + return mergeFrom( + (com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCRequest other) { + if (other + == com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.getAllowPartialImport() != false) { + setAllowPartialImport(other.getAllowPartialImport()); + } + if (other.getValidateIac() != false) { + setValidateIac(other.getValidateIac()); + } + switch (other.getSourceCase()) { + case GCS_URI: + { + sourceCase_ = 2; + source_ = other.source_; + onChanged(); + break; + } + case IAC_MODULE: + { + mergeIacModule(other.getIacModule()); + break; + } + case DEVELOPER_CONNECT_SOURCE_CONFIG: + { + mergeDeveloperConnectSourceConfig(other.getDeveloperConnectSourceConfig()); + break; + } + case SOURCE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 2; + source_ = s; + break; + } // case 18 + case 32: + { + allowPartialImport_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 32 + case 42: + { + input.readMessage( + internalGetIacModuleFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 5; + break; + } // case 42 + case 48: + { + validateIac_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: + { + input.readMessage( + internalGetDeveloperConnectSourceConfigFieldBuilder().getBuilder(), + extensionRegistry); + sourceCase_ = 7; + 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 sourceCase_ = 0; + private java.lang.Object source_; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); + } + + public Builder clearSource() { + sourceCase_ = 0; + source_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
+     * Optional. The Cloud Storage URI of the terraform code.
+     * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the gcsUri field is set. + */ + @java.lang.Override + public boolean hasGcsUri() { + return sourceCase_ == 2; + } + + /** + * + * + *
+     * Optional. The Cloud Storage URI of the terraform code.
+     * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The gcsUri. + */ + @java.lang.Override + public java.lang.String getGcsUri() { + java.lang.Object ref = ""; + if (sourceCase_ == 2) { + ref = source_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 2) { + source_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The Cloud Storage URI of the terraform code.
+     * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for gcsUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGcsUriBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 2) { + ref = source_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 2) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The Cloud Storage URI of the terraform code.
+     * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The gcsUri to set. + * @return This builder for chaining. + */ + public Builder setGcsUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceCase_ = 2; + source_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The Cloud Storage URI of the terraform code.
+     * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearGcsUri() { + if (sourceCase_ == 2) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The Cloud Storage URI of the terraform code.
+     * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for gcsUri to set. + * @return This builder for chaining. + */ + public Builder setGcsUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceCase_ = 2; + source_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.IaCModule, + com.google.cloud.designcenter.v1.IaCModule.Builder, + com.google.cloud.designcenter.v1.IaCModuleOrBuilder> + iacModuleBuilder_; + + /** + * + * + *
+     * Optional. The IaC module to import.
+     * 
+ * + * + * .google.cloud.designcenter.v1.IaCModule iac_module = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the iacModule field is set. + */ + @java.lang.Override + public boolean hasIacModule() { + return sourceCase_ == 5; + } + + /** + * + * + *
+     * Optional. The IaC module to import.
+     * 
+ * + * + * .google.cloud.designcenter.v1.IaCModule iac_module = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The iacModule. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.IaCModule getIacModule() { + if (iacModuleBuilder_ == null) { + if (sourceCase_ == 5) { + return (com.google.cloud.designcenter.v1.IaCModule) source_; + } + return com.google.cloud.designcenter.v1.IaCModule.getDefaultInstance(); + } else { + if (sourceCase_ == 5) { + return iacModuleBuilder_.getMessage(); + } + return com.google.cloud.designcenter.v1.IaCModule.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. The IaC module to import.
+     * 
+ * + * + * .google.cloud.designcenter.v1.IaCModule iac_module = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIacModule(com.google.cloud.designcenter.v1.IaCModule value) { + if (iacModuleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + iacModuleBuilder_.setMessage(value); + } + sourceCase_ = 5; + return this; + } + + /** + * + * + *
+     * Optional. The IaC module to import.
+     * 
+ * + * + * .google.cloud.designcenter.v1.IaCModule iac_module = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIacModule( + com.google.cloud.designcenter.v1.IaCModule.Builder builderForValue) { + if (iacModuleBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + iacModuleBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 5; + return this; + } + + /** + * + * + *
+     * Optional. The IaC module to import.
+     * 
+ * + * + * .google.cloud.designcenter.v1.IaCModule iac_module = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeIacModule(com.google.cloud.designcenter.v1.IaCModule value) { + if (iacModuleBuilder_ == null) { + if (sourceCase_ == 5 + && source_ != com.google.cloud.designcenter.v1.IaCModule.getDefaultInstance()) { + source_ = + com.google.cloud.designcenter.v1.IaCModule.newBuilder( + (com.google.cloud.designcenter.v1.IaCModule) source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 5) { + iacModuleBuilder_.mergeFrom(value); + } else { + iacModuleBuilder_.setMessage(value); + } + } + sourceCase_ = 5; + return this; + } + + /** + * + * + *
+     * Optional. The IaC module to import.
+     * 
+ * + * + * .google.cloud.designcenter.v1.IaCModule iac_module = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearIacModule() { + if (iacModuleBuilder_ == null) { + if (sourceCase_ == 5) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 5) { + sourceCase_ = 0; + source_ = null; + } + iacModuleBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. The IaC module to import.
+     * 
+ * + * + * .google.cloud.designcenter.v1.IaCModule iac_module = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.IaCModule.Builder getIacModuleBuilder() { + return internalGetIacModuleFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The IaC module to import.
+     * 
+ * + * + * .google.cloud.designcenter.v1.IaCModule iac_module = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.IaCModuleOrBuilder getIacModuleOrBuilder() { + if ((sourceCase_ == 5) && (iacModuleBuilder_ != null)) { + return iacModuleBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 5) { + return (com.google.cloud.designcenter.v1.IaCModule) source_; + } + return com.google.cloud.designcenter.v1.IaCModule.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. The IaC module to import.
+     * 
+ * + * + * .google.cloud.designcenter.v1.IaCModule iac_module = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.IaCModule, + com.google.cloud.designcenter.v1.IaCModule.Builder, + com.google.cloud.designcenter.v1.IaCModuleOrBuilder> + internalGetIacModuleFieldBuilder() { + if (iacModuleBuilder_ == null) { + if (!(sourceCase_ == 5)) { + source_ = com.google.cloud.designcenter.v1.IaCModule.getDefaultInstance(); + } + iacModuleBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.IaCModule, + com.google.cloud.designcenter.v1.IaCModule.Builder, + com.google.cloud.designcenter.v1.IaCModuleOrBuilder>( + (com.google.cloud.designcenter.v1.IaCModule) source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 5; + onChanged(); + return iacModuleBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig, + com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig.Builder, + com.google.cloud.designcenter.v1.DeveloperConnectSourceConfigOrBuilder> + developerConnectSourceConfigBuilder_; + + /** + * + * + *
+     * Optional. Configuration for fetching content from source code repository
+     * such as GitHub or Bitbucket through Developer Connect.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectSourceConfig developer_connect_source_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the developerConnectSourceConfig field is set. + */ + @java.lang.Override + public boolean hasDeveloperConnectSourceConfig() { + return sourceCase_ == 7; + } + + /** + * + * + *
+     * Optional. Configuration for fetching content from source code repository
+     * such as GitHub or Bitbucket through Developer Connect.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectSourceConfig developer_connect_source_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The developerConnectSourceConfig. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig + getDeveloperConnectSourceConfig() { + if (developerConnectSourceConfigBuilder_ == null) { + if (sourceCase_ == 7) { + return (com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig) source_; + } + return com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig.getDefaultInstance(); + } else { + if (sourceCase_ == 7) { + return developerConnectSourceConfigBuilder_.getMessage(); + } + return com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. Configuration for fetching content from source code repository
+     * such as GitHub or Bitbucket through Developer Connect.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectSourceConfig developer_connect_source_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDeveloperConnectSourceConfig( + com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig value) { + if (developerConnectSourceConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + developerConnectSourceConfigBuilder_.setMessage(value); + } + sourceCase_ = 7; + return this; + } + + /** + * + * + *
+     * Optional. Configuration for fetching content from source code repository
+     * such as GitHub or Bitbucket through Developer Connect.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectSourceConfig developer_connect_source_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDeveloperConnectSourceConfig( + com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig.Builder builderForValue) { + if (developerConnectSourceConfigBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + developerConnectSourceConfigBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 7; + return this; + } + + /** + * + * + *
+     * Optional. Configuration for fetching content from source code repository
+     * such as GitHub or Bitbucket through Developer Connect.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectSourceConfig developer_connect_source_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeDeveloperConnectSourceConfig( + com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig value) { + if (developerConnectSourceConfigBuilder_ == null) { + if (sourceCase_ == 7 + && source_ + != com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig + .getDefaultInstance()) { + source_ = + com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig.newBuilder( + (com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig) source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 7) { + developerConnectSourceConfigBuilder_.mergeFrom(value); + } else { + developerConnectSourceConfigBuilder_.setMessage(value); + } + } + sourceCase_ = 7; + return this; + } + + /** + * + * + *
+     * Optional. Configuration for fetching content from source code repository
+     * such as GitHub or Bitbucket through Developer Connect.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectSourceConfig developer_connect_source_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDeveloperConnectSourceConfig() { + if (developerConnectSourceConfigBuilder_ == null) { + if (sourceCase_ == 7) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 7) { + sourceCase_ = 0; + source_ = null; + } + developerConnectSourceConfigBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Configuration for fetching content from source code repository
+     * such as GitHub or Bitbucket through Developer Connect.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectSourceConfig developer_connect_source_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig.Builder + getDeveloperConnectSourceConfigBuilder() { + return internalGetDeveloperConnectSourceConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Configuration for fetching content from source code repository
+     * such as GitHub or Bitbucket through Developer Connect.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectSourceConfig developer_connect_source_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.DeveloperConnectSourceConfigOrBuilder + getDeveloperConnectSourceConfigOrBuilder() { + if ((sourceCase_ == 7) && (developerConnectSourceConfigBuilder_ != null)) { + return developerConnectSourceConfigBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 7) { + return (com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig) source_; + } + return com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. Configuration for fetching content from source code repository
+     * such as GitHub or Bitbucket through Developer Connect.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectSourceConfig developer_connect_source_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig, + com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig.Builder, + com.google.cloud.designcenter.v1.DeveloperConnectSourceConfigOrBuilder> + internalGetDeveloperConnectSourceConfigFieldBuilder() { + if (developerConnectSourceConfigBuilder_ == null) { + if (!(sourceCase_ == 7)) { + source_ = + com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig.getDefaultInstance(); + } + developerConnectSourceConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig, + com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig.Builder, + com.google.cloud.designcenter.v1.DeveloperConnectSourceConfigOrBuilder>( + (com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig) source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 7; + onChanged(); + return developerConnectSourceConfigBuilder_; + } + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The name of the application template.
+     * 
+ * + * + * 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 application template.
+     * 
+ * + * + * 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 application template.
+     * 
+ * + * + * 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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The name of the application template.
+     * 
+ * + * + * 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_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The name of the application template.
+     * 
+ * + * + * 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_ |= 0x00000008; + onChanged(); + return this; + } + + private boolean allowPartialImport_; + + /** + * + * + *
+     * Optional. If set to true, partially imports the valid edits in the IaC and
+     * ignores the invalid changes. Defaults to false, which means any edits which
+     * can't be imported must result in an error.
+     * 
+ * + * bool allow_partial_import = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The allowPartialImport. + */ + @java.lang.Override + public boolean getAllowPartialImport() { + return allowPartialImport_; + } + + /** + * + * + *
+     * Optional. If set to true, partially imports the valid edits in the IaC and
+     * ignores the invalid changes. Defaults to false, which means any edits which
+     * can't be imported must result in an error.
+     * 
+ * + * bool allow_partial_import = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The allowPartialImport to set. + * @return This builder for chaining. + */ + public Builder setAllowPartialImport(boolean value) { + + allowPartialImport_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. If set to true, partially imports the valid edits in the IaC and
+     * ignores the invalid changes. Defaults to false, which means any edits which
+     * can't be imported must result in an error.
+     * 
+ * + * bool allow_partial_import = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAllowPartialImport() { + bitField0_ = (bitField0_ & ~0x00000010); + allowPartialImport_ = false; + onChanged(); + return this; + } + + private boolean validateIac_; + + /** + * + * + *
+     * Optional. If set to true, the IaC is validated against the golden terraform
+     * without importing. Defaults to false.
+     * 
+ * + * bool validate_iac = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateIac. + */ + @java.lang.Override + public boolean getValidateIac() { + return validateIac_; + } + + /** + * + * + *
+     * Optional. If set to true, the IaC is validated against the golden terraform
+     * without importing. Defaults to false.
+     * 
+ * + * bool validate_iac = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The validateIac to set. + * @return This builder for chaining. + */ + public Builder setValidateIac(boolean value) { + + validateIac_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. If set to true, the IaC is validated against the golden terraform
+     * without importing. Defaults to false.
+     * 
+ * + * bool validate_iac = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearValidateIac() { + bitField0_ = (bitField0_ & ~0x00000020); + validateIac_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ImportApplicationTemplateIaCRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ImportApplicationTemplateIaCRequest) + private static final com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCRequest(); + } + + public static com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportApplicationTemplateIaCRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ImportApplicationTemplateIaCRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ImportApplicationTemplateIaCRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ImportApplicationTemplateIaCRequestOrBuilder.java new file mode 100644 index 000000000000..2d0dcd79d6db --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ImportApplicationTemplateIaCRequestOrBuilder.java @@ -0,0 +1,218 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ImportApplicationTemplateIaCRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ImportApplicationTemplateIaCRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The Cloud Storage URI of the terraform code.
+   * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the gcsUri field is set. + */ + boolean hasGcsUri(); + + /** + * + * + *
+   * Optional. The Cloud Storage URI of the terraform code.
+   * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The gcsUri. + */ + java.lang.String getGcsUri(); + + /** + * + * + *
+   * Optional. The Cloud Storage URI of the terraform code.
+   * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for gcsUri. + */ + com.google.protobuf.ByteString getGcsUriBytes(); + + /** + * + * + *
+   * Optional. The IaC module to import.
+   * 
+ * + * + * .google.cloud.designcenter.v1.IaCModule iac_module = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the iacModule field is set. + */ + boolean hasIacModule(); + + /** + * + * + *
+   * Optional. The IaC module to import.
+   * 
+ * + * + * .google.cloud.designcenter.v1.IaCModule iac_module = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The iacModule. + */ + com.google.cloud.designcenter.v1.IaCModule getIacModule(); + + /** + * + * + *
+   * Optional. The IaC module to import.
+   * 
+ * + * + * .google.cloud.designcenter.v1.IaCModule iac_module = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.IaCModuleOrBuilder getIacModuleOrBuilder(); + + /** + * + * + *
+   * Optional. Configuration for fetching content from source code repository
+   * such as GitHub or Bitbucket through Developer Connect.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectSourceConfig developer_connect_source_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the developerConnectSourceConfig field is set. + */ + boolean hasDeveloperConnectSourceConfig(); + + /** + * + * + *
+   * Optional. Configuration for fetching content from source code repository
+   * such as GitHub or Bitbucket through Developer Connect.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectSourceConfig developer_connect_source_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The developerConnectSourceConfig. + */ + com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig getDeveloperConnectSourceConfig(); + + /** + * + * + *
+   * Optional. Configuration for fetching content from source code repository
+   * such as GitHub or Bitbucket through Developer Connect.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectSourceConfig developer_connect_source_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.DeveloperConnectSourceConfigOrBuilder + getDeveloperConnectSourceConfigOrBuilder(); + + /** + * + * + *
+   * Required. The name of the application template.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The name of the application template.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. If set to true, partially imports the valid edits in the IaC and
+   * ignores the invalid changes. Defaults to false, which means any edits which
+   * can't be imported must result in an error.
+   * 
+ * + * bool allow_partial_import = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The allowPartialImport. + */ + boolean getAllowPartialImport(); + + /** + * + * + *
+   * Optional. If set to true, the IaC is validated against the golden terraform
+   * without importing. Defaults to false.
+   * 
+ * + * bool validate_iac = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateIac. + */ + boolean getValidateIac(); + + com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCRequest.SourceCase getSourceCase(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ImportApplicationTemplateIaCResponse.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ImportApplicationTemplateIaCResponse.java new file mode 100644 index 000000000000..859da48780d7 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ImportApplicationTemplateIaCResponse.java @@ -0,0 +1,1586 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Response message for ImportApplicationTemplateIaC method.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse} + */ +@com.google.protobuf.Generated +public final class ImportApplicationTemplateIaCResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse) + ImportApplicationTemplateIaCResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ImportApplicationTemplateIaCResponse"); + } + + // Use ImportApplicationTemplateIaCResponse.newBuilder() to construct. + private ImportApplicationTemplateIaCResponse( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ImportApplicationTemplateIaCResponse() { + errors_ = java.util.Collections.emptyList(); + state_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ImportApplicationTemplateIaCResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ImportApplicationTemplateIaCResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse.class, + com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse.Builder.class); + } + + /** + * + * + *
+   * State of Import.
+   * 
+ * + * Protobuf enum {@code google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * The import was successful.
+     * 
+ * + * SUCCEEDED = 1; + */ + SUCCEEDED(1), + /** + * + * + *
+     * The import failed.
+     * 
+ * + * FAILED = 2; + */ + FAILED(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
+     * Default.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * The import was successful.
+     * 
+ * + * SUCCEEDED = 1; + */ + public static final int SUCCEEDED_VALUE = 1; + + /** + * + * + *
+     * The import failed.
+     * 
+ * + * FAILED = 2; + */ + public static final int FAILED_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 SUCCEEDED; + case 2: + 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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse.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.designcenter.v1.ImportApplicationTemplateIaCResponse.State) + } + + private int bitField0_; + public static final int APPLICATION_TEMPLATE_FIELD_NUMBER = 1; + private com.google.cloud.designcenter.v1.ApplicationTemplate applicationTemplate_; + + /** + * + * + *
+   * Application template corresponding to the imported IaC.
+   * 
+ * + * .google.cloud.designcenter.v1.ApplicationTemplate application_template = 1; + * + * @return Whether the applicationTemplate field is set. + */ + @java.lang.Override + public boolean hasApplicationTemplate() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Application template corresponding to the imported IaC.
+   * 
+ * + * .google.cloud.designcenter.v1.ApplicationTemplate application_template = 1; + * + * @return The applicationTemplate. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ApplicationTemplate getApplicationTemplate() { + return applicationTemplate_ == null + ? com.google.cloud.designcenter.v1.ApplicationTemplate.getDefaultInstance() + : applicationTemplate_; + } + + /** + * + * + *
+   * Application template corresponding to the imported IaC.
+   * 
+ * + * .google.cloud.designcenter.v1.ApplicationTemplate application_template = 1; + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ApplicationTemplateOrBuilder + getApplicationTemplateOrBuilder() { + return applicationTemplate_ == null + ? com.google.cloud.designcenter.v1.ApplicationTemplate.getDefaultInstance() + : applicationTemplate_; + } + + public static final int ERRORS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List errors_; + + /** + * + * + *
+   * Errors encountered during import.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + @java.lang.Override + public java.util.List getErrorsList() { + return errors_; + } + + /** + * + * + *
+   * Errors encountered during import.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + @java.lang.Override + public java.util.List + getErrorsOrBuilderList() { + return errors_; + } + + /** + * + * + *
+   * Errors encountered during import.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + @java.lang.Override + public int getErrorsCount() { + return errors_.size(); + } + + /** + * + * + *
+   * Errors encountered during import.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ImportIaCError getErrors(int index) { + return errors_.get(index); + } + + /** + * + * + *
+   * Errors encountered during import.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ImportIaCErrorOrBuilder getErrorsOrBuilder(int index) { + return errors_.get(index); + } + + public static final int STATE_FIELD_NUMBER = 3; + private int state_ = 0; + + /** + * + * + *
+   * The state of the import.
+   * 
+ * + * .google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse.State state = 3; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+   * The state of the import.
+   * 
+ * + * .google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse.State state = 3; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse.State getState() { + com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse.State result = + com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse.State.forNumber( + state_); + return result == null + ? com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse.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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getApplicationTemplate()); + } + for (int i = 0; i < errors_.size(); i++) { + output.writeMessage(2, errors_.get(i)); + } + if (state_ + != com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse.State + .STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, state_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getApplicationTemplate()); + } + for (int i = 0; i < errors_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, errors_.get(i)); + } + if (state_ + != com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse.State + .STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, 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.designcenter.v1.ImportApplicationTemplateIaCResponse)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse other = + (com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse) obj; + + if (hasApplicationTemplate() != other.hasApplicationTemplate()) return false; + if (hasApplicationTemplate()) { + if (!getApplicationTemplate().equals(other.getApplicationTemplate())) return false; + } + if (!getErrorsList().equals(other.getErrorsList())) 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(); + if (hasApplicationTemplate()) { + hash = (37 * hash) + APPLICATION_TEMPLATE_FIELD_NUMBER; + hash = (53 * hash) + getApplicationTemplate().hashCode(); + } + if (getErrorsCount() > 0) { + hash = (37 * hash) + ERRORS_FIELD_NUMBER; + hash = (53 * hash) + getErrorsList().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.designcenter.v1.ImportApplicationTemplateIaCResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse 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.designcenter.v1.ImportApplicationTemplateIaCResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ImportApplicationTemplateIaCResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response message for ImportApplicationTemplateIaC method.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse) + com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ImportApplicationTemplateIaCResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ImportApplicationTemplateIaCResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse.class, + com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse.Builder.class); + } + + // Construct using + // com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetApplicationTemplateFieldBuilder(); + internalGetErrorsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + applicationTemplate_ = null; + if (applicationTemplateBuilder_ != null) { + applicationTemplateBuilder_.dispose(); + applicationTemplateBuilder_ = null; + } + if (errorsBuilder_ == null) { + errors_ = java.util.Collections.emptyList(); + } else { + errors_ = null; + errorsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + state_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ImportApplicationTemplateIaCResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse build() { + com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse buildPartial() { + com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse result = + new com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse result) { + if (errorsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + errors_ = java.util.Collections.unmodifiableList(errors_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.errors_ = errors_; + } else { + result.errors_ = errorsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.applicationTemplate_ = + applicationTemplateBuilder_ == null + ? applicationTemplate_ + : applicationTemplateBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.state_ = state_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse) { + return mergeFrom( + (com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse other) { + if (other + == com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse + .getDefaultInstance()) return this; + if (other.hasApplicationTemplate()) { + mergeApplicationTemplate(other.getApplicationTemplate()); + } + if (errorsBuilder_ == null) { + if (!other.errors_.isEmpty()) { + if (errors_.isEmpty()) { + errors_ = other.errors_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureErrorsIsMutable(); + errors_.addAll(other.errors_); + } + onChanged(); + } + } else { + if (!other.errors_.isEmpty()) { + if (errorsBuilder_.isEmpty()) { + errorsBuilder_.dispose(); + errorsBuilder_ = null; + errors_ = other.errors_; + bitField0_ = (bitField0_ & ~0x00000002); + errorsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetErrorsFieldBuilder() + : null; + } else { + errorsBuilder_.addAllMessages(other.errors_); + } + } + } + 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: + { + input.readMessage( + internalGetApplicationTemplateFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.designcenter.v1.ImportIaCError m = + input.readMessage( + com.google.cloud.designcenter.v1.ImportIaCError.parser(), + extensionRegistry); + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.add(m); + } else { + errorsBuilder_.addMessage(m); + } + break; + } // case 18 + case 24: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + 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.designcenter.v1.ApplicationTemplate applicationTemplate_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ApplicationTemplate, + com.google.cloud.designcenter.v1.ApplicationTemplate.Builder, + com.google.cloud.designcenter.v1.ApplicationTemplateOrBuilder> + applicationTemplateBuilder_; + + /** + * + * + *
+     * Application template corresponding to the imported IaC.
+     * 
+ * + * .google.cloud.designcenter.v1.ApplicationTemplate application_template = 1; + * + * @return Whether the applicationTemplate field is set. + */ + public boolean hasApplicationTemplate() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Application template corresponding to the imported IaC.
+     * 
+ * + * .google.cloud.designcenter.v1.ApplicationTemplate application_template = 1; + * + * @return The applicationTemplate. + */ + public com.google.cloud.designcenter.v1.ApplicationTemplate getApplicationTemplate() { + if (applicationTemplateBuilder_ == null) { + return applicationTemplate_ == null + ? com.google.cloud.designcenter.v1.ApplicationTemplate.getDefaultInstance() + : applicationTemplate_; + } else { + return applicationTemplateBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Application template corresponding to the imported IaC.
+     * 
+ * + * .google.cloud.designcenter.v1.ApplicationTemplate application_template = 1; + */ + public Builder setApplicationTemplate( + com.google.cloud.designcenter.v1.ApplicationTemplate value) { + if (applicationTemplateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + applicationTemplate_ = value; + } else { + applicationTemplateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Application template corresponding to the imported IaC.
+     * 
+ * + * .google.cloud.designcenter.v1.ApplicationTemplate application_template = 1; + */ + public Builder setApplicationTemplate( + com.google.cloud.designcenter.v1.ApplicationTemplate.Builder builderForValue) { + if (applicationTemplateBuilder_ == null) { + applicationTemplate_ = builderForValue.build(); + } else { + applicationTemplateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Application template corresponding to the imported IaC.
+     * 
+ * + * .google.cloud.designcenter.v1.ApplicationTemplate application_template = 1; + */ + public Builder mergeApplicationTemplate( + com.google.cloud.designcenter.v1.ApplicationTemplate value) { + if (applicationTemplateBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && applicationTemplate_ != null + && applicationTemplate_ + != com.google.cloud.designcenter.v1.ApplicationTemplate.getDefaultInstance()) { + getApplicationTemplateBuilder().mergeFrom(value); + } else { + applicationTemplate_ = value; + } + } else { + applicationTemplateBuilder_.mergeFrom(value); + } + if (applicationTemplate_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Application template corresponding to the imported IaC.
+     * 
+ * + * .google.cloud.designcenter.v1.ApplicationTemplate application_template = 1; + */ + public Builder clearApplicationTemplate() { + bitField0_ = (bitField0_ & ~0x00000001); + applicationTemplate_ = null; + if (applicationTemplateBuilder_ != null) { + applicationTemplateBuilder_.dispose(); + applicationTemplateBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Application template corresponding to the imported IaC.
+     * 
+ * + * .google.cloud.designcenter.v1.ApplicationTemplate application_template = 1; + */ + public com.google.cloud.designcenter.v1.ApplicationTemplate.Builder + getApplicationTemplateBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetApplicationTemplateFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Application template corresponding to the imported IaC.
+     * 
+ * + * .google.cloud.designcenter.v1.ApplicationTemplate application_template = 1; + */ + public com.google.cloud.designcenter.v1.ApplicationTemplateOrBuilder + getApplicationTemplateOrBuilder() { + if (applicationTemplateBuilder_ != null) { + return applicationTemplateBuilder_.getMessageOrBuilder(); + } else { + return applicationTemplate_ == null + ? com.google.cloud.designcenter.v1.ApplicationTemplate.getDefaultInstance() + : applicationTemplate_; + } + } + + /** + * + * + *
+     * Application template corresponding to the imported IaC.
+     * 
+ * + * .google.cloud.designcenter.v1.ApplicationTemplate application_template = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ApplicationTemplate, + com.google.cloud.designcenter.v1.ApplicationTemplate.Builder, + com.google.cloud.designcenter.v1.ApplicationTemplateOrBuilder> + internalGetApplicationTemplateFieldBuilder() { + if (applicationTemplateBuilder_ == null) { + applicationTemplateBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ApplicationTemplate, + com.google.cloud.designcenter.v1.ApplicationTemplate.Builder, + com.google.cloud.designcenter.v1.ApplicationTemplateOrBuilder>( + getApplicationTemplate(), getParentForChildren(), isClean()); + applicationTemplate_ = null; + } + return applicationTemplateBuilder_; + } + + private java.util.List errors_ = + java.util.Collections.emptyList(); + + private void ensureErrorsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + errors_ = new java.util.ArrayList(errors_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ImportIaCError, + com.google.cloud.designcenter.v1.ImportIaCError.Builder, + com.google.cloud.designcenter.v1.ImportIaCErrorOrBuilder> + errorsBuilder_; + + /** + * + * + *
+     * Errors encountered during import.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + public java.util.List getErrorsList() { + if (errorsBuilder_ == null) { + return java.util.Collections.unmodifiableList(errors_); + } else { + return errorsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Errors encountered during import.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + public int getErrorsCount() { + if (errorsBuilder_ == null) { + return errors_.size(); + } else { + return errorsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Errors encountered during import.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + public com.google.cloud.designcenter.v1.ImportIaCError getErrors(int index) { + if (errorsBuilder_ == null) { + return errors_.get(index); + } else { + return errorsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Errors encountered during import.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + public Builder setErrors(int index, com.google.cloud.designcenter.v1.ImportIaCError value) { + if (errorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.set(index, value); + onChanged(); + } else { + errorsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Errors encountered during import.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + public Builder setErrors( + int index, com.google.cloud.designcenter.v1.ImportIaCError.Builder builderForValue) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.set(index, builderForValue.build()); + onChanged(); + } else { + errorsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Errors encountered during import.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + public Builder addErrors(com.google.cloud.designcenter.v1.ImportIaCError value) { + if (errorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.add(value); + onChanged(); + } else { + errorsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Errors encountered during import.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + public Builder addErrors(int index, com.google.cloud.designcenter.v1.ImportIaCError value) { + if (errorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.add(index, value); + onChanged(); + } else { + errorsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Errors encountered during import.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + public Builder addErrors( + com.google.cloud.designcenter.v1.ImportIaCError.Builder builderForValue) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.add(builderForValue.build()); + onChanged(); + } else { + errorsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Errors encountered during import.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + public Builder addErrors( + int index, com.google.cloud.designcenter.v1.ImportIaCError.Builder builderForValue) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.add(index, builderForValue.build()); + onChanged(); + } else { + errorsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Errors encountered during import.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + public Builder addAllErrors( + java.lang.Iterable values) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errors_); + onChanged(); + } else { + errorsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Errors encountered during import.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + public Builder clearErrors() { + if (errorsBuilder_ == null) { + errors_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + errorsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Errors encountered during import.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + public Builder removeErrors(int index) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.remove(index); + onChanged(); + } else { + errorsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Errors encountered during import.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + public com.google.cloud.designcenter.v1.ImportIaCError.Builder getErrorsBuilder(int index) { + return internalGetErrorsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Errors encountered during import.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + public com.google.cloud.designcenter.v1.ImportIaCErrorOrBuilder getErrorsOrBuilder(int index) { + if (errorsBuilder_ == null) { + return errors_.get(index); + } else { + return errorsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Errors encountered during import.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + public java.util.List + getErrorsOrBuilderList() { + if (errorsBuilder_ != null) { + return errorsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(errors_); + } + } + + /** + * + * + *
+     * Errors encountered during import.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + public com.google.cloud.designcenter.v1.ImportIaCError.Builder addErrorsBuilder() { + return internalGetErrorsFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.ImportIaCError.getDefaultInstance()); + } + + /** + * + * + *
+     * Errors encountered during import.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + public com.google.cloud.designcenter.v1.ImportIaCError.Builder addErrorsBuilder(int index) { + return internalGetErrorsFieldBuilder() + .addBuilder(index, com.google.cloud.designcenter.v1.ImportIaCError.getDefaultInstance()); + } + + /** + * + * + *
+     * Errors encountered during import.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + public java.util.List + getErrorsBuilderList() { + return internalGetErrorsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ImportIaCError, + com.google.cloud.designcenter.v1.ImportIaCError.Builder, + com.google.cloud.designcenter.v1.ImportIaCErrorOrBuilder> + internalGetErrorsFieldBuilder() { + if (errorsBuilder_ == null) { + errorsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ImportIaCError, + com.google.cloud.designcenter.v1.ImportIaCError.Builder, + com.google.cloud.designcenter.v1.ImportIaCErrorOrBuilder>( + errors_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + errors_ = null; + } + return errorsBuilder_; + } + + private int state_ = 0; + + /** + * + * + *
+     * The state of the import.
+     * 
+ * + * .google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse.State state = 3; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+     * The state of the import.
+     * 
+ * + * .google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse.State state = 3; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * The state of the import.
+     * 
+ * + * .google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse.State state = 3; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse.State getState() { + com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse.State result = + com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse.State.forNumber( + state_); + return result == null + ? com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * The state of the import.
+     * 
+ * + * .google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse.State state = 3; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState( + com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * The state of the import.
+     * 
+ * + * .google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse.State state = 3; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000004); + state_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse) + private static final com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse(); + } + + public static com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportApplicationTemplateIaCResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ImportApplicationTemplateIaCResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ImportApplicationTemplateIaCResponseOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ImportApplicationTemplateIaCResponseOrBuilder.java new file mode 100644 index 000000000000..fc7625eca2c2 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ImportApplicationTemplateIaCResponseOrBuilder.java @@ -0,0 +1,149 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ImportApplicationTemplateIaCResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Application template corresponding to the imported IaC.
+   * 
+ * + * .google.cloud.designcenter.v1.ApplicationTemplate application_template = 1; + * + * @return Whether the applicationTemplate field is set. + */ + boolean hasApplicationTemplate(); + + /** + * + * + *
+   * Application template corresponding to the imported IaC.
+   * 
+ * + * .google.cloud.designcenter.v1.ApplicationTemplate application_template = 1; + * + * @return The applicationTemplate. + */ + com.google.cloud.designcenter.v1.ApplicationTemplate getApplicationTemplate(); + + /** + * + * + *
+   * Application template corresponding to the imported IaC.
+   * 
+ * + * .google.cloud.designcenter.v1.ApplicationTemplate application_template = 1; + */ + com.google.cloud.designcenter.v1.ApplicationTemplateOrBuilder getApplicationTemplateOrBuilder(); + + /** + * + * + *
+   * Errors encountered during import.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + java.util.List getErrorsList(); + + /** + * + * + *
+   * Errors encountered during import.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + com.google.cloud.designcenter.v1.ImportIaCError getErrors(int index); + + /** + * + * + *
+   * Errors encountered during import.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + int getErrorsCount(); + + /** + * + * + *
+   * Errors encountered during import.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + java.util.List + getErrorsOrBuilderList(); + + /** + * + * + *
+   * Errors encountered during import.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + com.google.cloud.designcenter.v1.ImportIaCErrorOrBuilder getErrorsOrBuilder(int index); + + /** + * + * + *
+   * The state of the import.
+   * 
+ * + * .google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse.State state = 3; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
+   * The state of the import.
+   * 
+ * + * .google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse.State state = 3; + * + * + * @return The state. + */ + com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse.State getState(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ImportApplicationTemplateRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ImportApplicationTemplateRequest.java new file mode 100644 index 000000000000..bbf8153332b9 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ImportApplicationTemplateRequest.java @@ -0,0 +1,2292 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Request message for ImportApplicationTemplate method.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ImportApplicationTemplateRequest} + */ +@com.google.protobuf.Generated +public final class ImportApplicationTemplateRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ImportApplicationTemplateRequest) + ImportApplicationTemplateRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ImportApplicationTemplateRequest"); + } + + // Use ImportApplicationTemplateRequest.newBuilder() to construct. + private ImportApplicationTemplateRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ImportApplicationTemplateRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ImportApplicationTemplateRequest_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 7: + return internalGetAnnotations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ImportApplicationTemplateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ImportApplicationTemplateRequest.class, + com.google.cloud.designcenter.v1.ImportApplicationTemplateRequest.Builder.class); + } + + private int sourceCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object source_; + + public enum SourceCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + APPLICATION_TEMPLATE_REVISION_URI(3), + SHARED_TEMPLATE_REVISION_URI(4), + SERIALIZED_APPLICATION_TEMPLATE(5), + APPLICATION_TEMPLATE_SYSTEM_REVISION(6), + SOURCE_NOT_SET(0); + private final int value; + + private SourceCase(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 SourceCase valueOf(int value) { + return forNumber(value); + } + + public static SourceCase forNumber(int value) { + switch (value) { + case 3: + return APPLICATION_TEMPLATE_REVISION_URI; + case 4: + return SHARED_TEMPLATE_REVISION_URI; + case 5: + return SERIALIZED_APPLICATION_TEMPLATE; + case 6: + return APPLICATION_TEMPLATE_SYSTEM_REVISION; + case 0: + return SOURCE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); + } + + public static final int APPLICATION_TEMPLATE_REVISION_URI_FIELD_NUMBER = 3; + + /** + * + * + *
+   * Optional. The source URI for application template revision.
+   * 
+ * + * + * string application_template_revision_uri = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the applicationTemplateRevisionUri field is set. + */ + public boolean hasApplicationTemplateRevisionUri() { + return sourceCase_ == 3; + } + + /** + * + * + *
+   * Optional. The source URI for application template revision.
+   * 
+ * + * + * string application_template_revision_uri = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The applicationTemplateRevisionUri. + */ + public java.lang.String getApplicationTemplateRevisionUri() { + java.lang.Object ref = ""; + if (sourceCase_ == 3) { + ref = source_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 3) { + source_ = s; + } + return s; + } + } + + /** + * + * + *
+   * Optional. The source URI for application template revision.
+   * 
+ * + * + * string application_template_revision_uri = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for applicationTemplateRevisionUri. + */ + public com.google.protobuf.ByteString getApplicationTemplateRevisionUriBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 3) { + ref = source_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 3) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SHARED_TEMPLATE_REVISION_URI_FIELD_NUMBER = 4; + + /** + * + * + *
+   * Optional. The source URI for catalog template.
+   * 
+ * + * + * string shared_template_revision_uri = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the sharedTemplateRevisionUri field is set. + */ + public boolean hasSharedTemplateRevisionUri() { + return sourceCase_ == 4; + } + + /** + * + * + *
+   * Optional. The source URI for catalog template.
+   * 
+ * + * + * string shared_template_revision_uri = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The sharedTemplateRevisionUri. + */ + public java.lang.String getSharedTemplateRevisionUri() { + java.lang.Object ref = ""; + if (sourceCase_ == 4) { + ref = source_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 4) { + source_ = s; + } + return s; + } + } + + /** + * + * + *
+   * Optional. The source URI for catalog template.
+   * 
+ * + * + * string shared_template_revision_uri = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for sharedTemplateRevisionUri. + */ + public com.google.protobuf.ByteString getSharedTemplateRevisionUriBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 4) { + ref = source_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 4) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SERIALIZED_APPLICATION_TEMPLATE_FIELD_NUMBER = 5; + + /** + * + * + *
+   * Optional. The serialized application template to be imported.
+   * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate serialized_application_template = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the serializedApplicationTemplate field is set. + */ + @java.lang.Override + public boolean hasSerializedApplicationTemplate() { + return sourceCase_ == 5; + } + + /** + * + * + *
+   * Optional. The serialized application template to be imported.
+   * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate serialized_application_template = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The serializedApplicationTemplate. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.SerializedApplicationTemplate + getSerializedApplicationTemplate() { + if (sourceCase_ == 5) { + return (com.google.cloud.designcenter.v1.SerializedApplicationTemplate) source_; + } + return com.google.cloud.designcenter.v1.SerializedApplicationTemplate.getDefaultInstance(); + } + + /** + * + * + *
+   * Optional. The serialized application template to be imported.
+   * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate serialized_application_template = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.SerializedApplicationTemplateOrBuilder + getSerializedApplicationTemplateOrBuilder() { + if (sourceCase_ == 5) { + return (com.google.cloud.designcenter.v1.SerializedApplicationTemplate) source_; + } + return com.google.cloud.designcenter.v1.SerializedApplicationTemplate.getDefaultInstance(); + } + + public static final int APPLICATION_TEMPLATE_SYSTEM_REVISION_FIELD_NUMBER = 6; + + /** + * + * + *
+   * Optional. The system revision to be imported. Used when user tries to
+   * Restore (rev X) or perform Undo/Redo operations.
+   * 
+ * + * + * string application_template_system_revision = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the applicationTemplateSystemRevision field is set. + */ + public boolean hasApplicationTemplateSystemRevision() { + return sourceCase_ == 6; + } + + /** + * + * + *
+   * Optional. The system revision to be imported. Used when user tries to
+   * Restore (rev X) or perform Undo/Redo operations.
+   * 
+ * + * + * string application_template_system_revision = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The applicationTemplateSystemRevision. + */ + public java.lang.String getApplicationTemplateSystemRevision() { + java.lang.Object ref = ""; + if (sourceCase_ == 6) { + ref = source_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 6) { + source_ = s; + } + return s; + } + } + + /** + * + * + *
+   * Optional. The system revision to be imported. Used when user tries to
+   * Restore (rev X) or perform Undo/Redo operations.
+   * 
+ * + * + * string application_template_system_revision = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for applicationTemplateSystemRevision. + */ + public com.google.protobuf.ByteString getApplicationTemplateSystemRevisionBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 6) { + ref = source_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 6) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The name of the application template.
+   * 
+ * + * + * 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 application template.
+   * 
+ * + * + * 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 ANNOTATIONS_FIELD_NUMBER = 7; + + private static final class AnnotationsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ImportApplicationTemplateRequest_AnnotationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField annotations_; + + private com.google.protobuf.MapField + internalGetAnnotations() { + if (annotations_ == null) { + return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry); + } + return annotations_; + } + + public int getAnnotationsCount() { + return internalGetAnnotations().getMap().size(); + } + + /** + * + * + *
+   * Optional. Annotations to be stored with the new system revision created as
+   * a result of this import. Sample annotations from agentic workflows might
+   * look like
+   * {
+   * "designcenter.googleapis.com/agent_id": "gemini-3-flash-v1",
+   * "designcenter.googleapis.com/llm_agent_summary": "Restored to revision
+   * Rev-100", "designcenter.googleapis.com/external_ref_id":
+   * "trace-uuid-88921-xyz",
+   * }
+   * 
+ * + * map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetAnnotations().getMap().containsKey(key); + } + + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAnnotations() { + return getAnnotationsMap(); + } + + /** + * + * + *
+   * Optional. Annotations to be stored with the new system revision created as
+   * a result of this import. Sample annotations from agentic workflows might
+   * look like
+   * {
+   * "designcenter.googleapis.com/agent_id": "gemini-3-flash-v1",
+   * "designcenter.googleapis.com/llm_agent_summary": "Restored to revision
+   * Rev-100", "designcenter.googleapis.com/external_ref_id":
+   * "trace-uuid-88921-xyz",
+   * }
+   * 
+ * + * map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getAnnotationsMap() { + return internalGetAnnotations().getMap(); + } + + /** + * + * + *
+   * Optional. Annotations to be stored with the new system revision created as
+   * a result of this import. Sample annotations from agentic workflows might
+   * look like
+   * {
+   * "designcenter.googleapis.com/agent_id": "gemini-3-flash-v1",
+   * "designcenter.googleapis.com/llm_agent_summary": "Restored to revision
+   * Rev-100", "designcenter.googleapis.com/external_ref_id":
+   * "trace-uuid-88921-xyz",
+   * }
+   * 
+ * + * map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+   * Optional. Annotations to be stored with the new system revision created as
+   * a result of this import. Sample annotations from agentic workflows might
+   * look like
+   * {
+   * "designcenter.googleapis.com/agent_id": "gemini-3-flash-v1",
+   * "designcenter.googleapis.com/llm_agent_summary": "Restored to revision
+   * Rev-100", "designcenter.googleapis.com/external_ref_id":
+   * "trace-uuid-88921-xyz",
+   * }
+   * 
+ * + * map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (sourceCase_ == 3) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, source_); + } + if (sourceCase_ == 4) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, source_); + } + if (sourceCase_ == 5) { + output.writeMessage( + 5, (com.google.cloud.designcenter.v1.SerializedApplicationTemplate) source_); + } + if (sourceCase_ == 6) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, source_); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 7); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (sourceCase_ == 3) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, source_); + } + if (sourceCase_ == 4) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, source_); + } + if (sourceCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.cloud.designcenter.v1.SerializedApplicationTemplate) source_); + } + if (sourceCase_ == 6) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, source_); + } + for (java.util.Map.Entry entry : + internalGetAnnotations().getMap().entrySet()) { + com.google.protobuf.MapEntry annotations__ = + AnnotationsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, annotations__); + } + 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.designcenter.v1.ImportApplicationTemplateRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ImportApplicationTemplateRequest other = + (com.google.cloud.designcenter.v1.ImportApplicationTemplateRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; + if (!getSourceCase().equals(other.getSourceCase())) return false; + switch (sourceCase_) { + case 3: + if (!getApplicationTemplateRevisionUri().equals(other.getApplicationTemplateRevisionUri())) + return false; + break; + case 4: + if (!getSharedTemplateRevisionUri().equals(other.getSharedTemplateRevisionUri())) + return false; + break; + case 5: + if (!getSerializedApplicationTemplate().equals(other.getSerializedApplicationTemplate())) + return false; + break; + case 6: + if (!getApplicationTemplateSystemRevision() + .equals(other.getApplicationTemplateSystemRevision())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (!internalGetAnnotations().getMap().isEmpty()) { + hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; + hash = (53 * hash) + internalGetAnnotations().hashCode(); + } + switch (sourceCase_) { + case 3: + hash = (37 * hash) + APPLICATION_TEMPLATE_REVISION_URI_FIELD_NUMBER; + hash = (53 * hash) + getApplicationTemplateRevisionUri().hashCode(); + break; + case 4: + hash = (37 * hash) + SHARED_TEMPLATE_REVISION_URI_FIELD_NUMBER; + hash = (53 * hash) + getSharedTemplateRevisionUri().hashCode(); + break; + case 5: + hash = (37 * hash) + SERIALIZED_APPLICATION_TEMPLATE_FIELD_NUMBER; + hash = (53 * hash) + getSerializedApplicationTemplate().hashCode(); + break; + case 6: + hash = (37 * hash) + APPLICATION_TEMPLATE_SYSTEM_REVISION_FIELD_NUMBER; + hash = (53 * hash) + getApplicationTemplateSystemRevision().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.ImportApplicationTemplateRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ImportApplicationTemplateRequest 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.designcenter.v1.ImportApplicationTemplateRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ImportApplicationTemplateRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ImportApplicationTemplateRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ImportApplicationTemplateRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ImportApplicationTemplateRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ImportApplicationTemplateRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ImportApplicationTemplateRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ImportApplicationTemplateRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ImportApplicationTemplateRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ImportApplicationTemplateRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ImportApplicationTemplateRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for ImportApplicationTemplate method.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ImportApplicationTemplateRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ImportApplicationTemplateRequest) + com.google.cloud.designcenter.v1.ImportApplicationTemplateRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ImportApplicationTemplateRequest_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 7: + return internalGetAnnotations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 7: + return internalGetMutableAnnotations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ImportApplicationTemplateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ImportApplicationTemplateRequest.class, + com.google.cloud.designcenter.v1.ImportApplicationTemplateRequest.Builder.class); + } + + // Construct using + // com.google.cloud.designcenter.v1.ImportApplicationTemplateRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (serializedApplicationTemplateBuilder_ != null) { + serializedApplicationTemplateBuilder_.clear(); + } + name_ = ""; + internalGetMutableAnnotations().clear(); + sourceCase_ = 0; + source_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ImportApplicationTemplateRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ImportApplicationTemplateRequest + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ImportApplicationTemplateRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ImportApplicationTemplateRequest build() { + com.google.cloud.designcenter.v1.ImportApplicationTemplateRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ImportApplicationTemplateRequest buildPartial() { + com.google.cloud.designcenter.v1.ImportApplicationTemplateRequest result = + new com.google.cloud.designcenter.v1.ImportApplicationTemplateRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.ImportApplicationTemplateRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.annotations_ = internalGetAnnotations(); + result.annotations_.makeImmutable(); + } + } + + private void buildPartialOneofs( + com.google.cloud.designcenter.v1.ImportApplicationTemplateRequest result) { + result.sourceCase_ = sourceCase_; + result.source_ = this.source_; + if (sourceCase_ == 5 && serializedApplicationTemplateBuilder_ != null) { + result.source_ = serializedApplicationTemplateBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.ImportApplicationTemplateRequest) { + return mergeFrom((com.google.cloud.designcenter.v1.ImportApplicationTemplateRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.designcenter.v1.ImportApplicationTemplateRequest other) { + if (other + == com.google.cloud.designcenter.v1.ImportApplicationTemplateRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000010; + onChanged(); + } + internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations()); + bitField0_ |= 0x00000020; + switch (other.getSourceCase()) { + case APPLICATION_TEMPLATE_REVISION_URI: + { + sourceCase_ = 3; + source_ = other.source_; + onChanged(); + break; + } + case SHARED_TEMPLATE_REVISION_URI: + { + sourceCase_ = 4; + source_ = other.source_; + onChanged(); + break; + } + case SERIALIZED_APPLICATION_TEMPLATE: + { + mergeSerializedApplicationTemplate(other.getSerializedApplicationTemplate()); + break; + } + case APPLICATION_TEMPLATE_SYSTEM_REVISION: + { + sourceCase_ = 6; + source_ = other.source_; + onChanged(); + break; + } + case SOURCE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 10 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 3; + source_ = s; + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 4; + source_ = s; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetSerializedApplicationTemplateFieldBuilder().getBuilder(), + extensionRegistry); + sourceCase_ = 5; + break; + } // case 42 + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 6; + source_ = s; + break; + } // case 50 + case 58: + { + com.google.protobuf.MapEntry annotations__ = + input.readMessage( + AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableAnnotations() + .getMutableMap() + .put(annotations__.getKey(), annotations__.getValue()); + bitField0_ |= 0x00000020; + 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 sourceCase_ = 0; + private java.lang.Object source_; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); + } + + public Builder clearSource() { + sourceCase_ = 0; + source_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
+     * Optional. The source URI for application template revision.
+     * 
+ * + * + * string application_template_revision_uri = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the applicationTemplateRevisionUri field is set. + */ + @java.lang.Override + public boolean hasApplicationTemplateRevisionUri() { + return sourceCase_ == 3; + } + + /** + * + * + *
+     * Optional. The source URI for application template revision.
+     * 
+ * + * + * string application_template_revision_uri = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The applicationTemplateRevisionUri. + */ + @java.lang.Override + public java.lang.String getApplicationTemplateRevisionUri() { + java.lang.Object ref = ""; + if (sourceCase_ == 3) { + ref = source_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 3) { + source_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The source URI for application template revision.
+     * 
+ * + * + * string application_template_revision_uri = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for applicationTemplateRevisionUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getApplicationTemplateRevisionUriBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 3) { + ref = source_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 3) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The source URI for application template revision.
+     * 
+ * + * + * string application_template_revision_uri = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The applicationTemplateRevisionUri to set. + * @return This builder for chaining. + */ + public Builder setApplicationTemplateRevisionUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceCase_ = 3; + source_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The source URI for application template revision.
+     * 
+ * + * + * string application_template_revision_uri = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearApplicationTemplateRevisionUri() { + if (sourceCase_ == 3) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The source URI for application template revision.
+     * 
+ * + * + * string application_template_revision_uri = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for applicationTemplateRevisionUri to set. + * @return This builder for chaining. + */ + public Builder setApplicationTemplateRevisionUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceCase_ = 3; + source_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The source URI for catalog template.
+     * 
+ * + * + * string shared_template_revision_uri = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the sharedTemplateRevisionUri field is set. + */ + @java.lang.Override + public boolean hasSharedTemplateRevisionUri() { + return sourceCase_ == 4; + } + + /** + * + * + *
+     * Optional. The source URI for catalog template.
+     * 
+ * + * + * string shared_template_revision_uri = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The sharedTemplateRevisionUri. + */ + @java.lang.Override + public java.lang.String getSharedTemplateRevisionUri() { + java.lang.Object ref = ""; + if (sourceCase_ == 4) { + ref = source_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 4) { + source_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The source URI for catalog template.
+     * 
+ * + * + * string shared_template_revision_uri = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for sharedTemplateRevisionUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSharedTemplateRevisionUriBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 4) { + ref = source_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 4) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The source URI for catalog template.
+     * 
+ * + * + * string shared_template_revision_uri = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The sharedTemplateRevisionUri to set. + * @return This builder for chaining. + */ + public Builder setSharedTemplateRevisionUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceCase_ = 4; + source_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The source URI for catalog template.
+     * 
+ * + * + * string shared_template_revision_uri = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearSharedTemplateRevisionUri() { + if (sourceCase_ == 4) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The source URI for catalog template.
+     * 
+ * + * + * string shared_template_revision_uri = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for sharedTemplateRevisionUri to set. + * @return This builder for chaining. + */ + public Builder setSharedTemplateRevisionUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceCase_ = 4; + source_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.SerializedApplicationTemplate, + com.google.cloud.designcenter.v1.SerializedApplicationTemplate.Builder, + com.google.cloud.designcenter.v1.SerializedApplicationTemplateOrBuilder> + serializedApplicationTemplateBuilder_; + + /** + * + * + *
+     * Optional. The serialized application template to be imported.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate serialized_application_template = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the serializedApplicationTemplate field is set. + */ + @java.lang.Override + public boolean hasSerializedApplicationTemplate() { + return sourceCase_ == 5; + } + + /** + * + * + *
+     * Optional. The serialized application template to be imported.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate serialized_application_template = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The serializedApplicationTemplate. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.SerializedApplicationTemplate + getSerializedApplicationTemplate() { + if (serializedApplicationTemplateBuilder_ == null) { + if (sourceCase_ == 5) { + return (com.google.cloud.designcenter.v1.SerializedApplicationTemplate) source_; + } + return com.google.cloud.designcenter.v1.SerializedApplicationTemplate.getDefaultInstance(); + } else { + if (sourceCase_ == 5) { + return serializedApplicationTemplateBuilder_.getMessage(); + } + return com.google.cloud.designcenter.v1.SerializedApplicationTemplate.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. The serialized application template to be imported.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate serialized_application_template = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSerializedApplicationTemplate( + com.google.cloud.designcenter.v1.SerializedApplicationTemplate value) { + if (serializedApplicationTemplateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + serializedApplicationTemplateBuilder_.setMessage(value); + } + sourceCase_ = 5; + return this; + } + + /** + * + * + *
+     * Optional. The serialized application template to be imported.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate serialized_application_template = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSerializedApplicationTemplate( + com.google.cloud.designcenter.v1.SerializedApplicationTemplate.Builder builderForValue) { + if (serializedApplicationTemplateBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + serializedApplicationTemplateBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 5; + return this; + } + + /** + * + * + *
+     * Optional. The serialized application template to be imported.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate serialized_application_template = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSerializedApplicationTemplate( + com.google.cloud.designcenter.v1.SerializedApplicationTemplate value) { + if (serializedApplicationTemplateBuilder_ == null) { + if (sourceCase_ == 5 + && source_ + != com.google.cloud.designcenter.v1.SerializedApplicationTemplate + .getDefaultInstance()) { + source_ = + com.google.cloud.designcenter.v1.SerializedApplicationTemplate.newBuilder( + (com.google.cloud.designcenter.v1.SerializedApplicationTemplate) source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 5) { + serializedApplicationTemplateBuilder_.mergeFrom(value); + } else { + serializedApplicationTemplateBuilder_.setMessage(value); + } + } + sourceCase_ = 5; + return this; + } + + /** + * + * + *
+     * Optional. The serialized application template to be imported.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate serialized_application_template = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSerializedApplicationTemplate() { + if (serializedApplicationTemplateBuilder_ == null) { + if (sourceCase_ == 5) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 5) { + sourceCase_ = 0; + source_ = null; + } + serializedApplicationTemplateBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. The serialized application template to be imported.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate serialized_application_template = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.SerializedApplicationTemplate.Builder + getSerializedApplicationTemplateBuilder() { + return internalGetSerializedApplicationTemplateFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The serialized application template to be imported.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate serialized_application_template = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.SerializedApplicationTemplateOrBuilder + getSerializedApplicationTemplateOrBuilder() { + if ((sourceCase_ == 5) && (serializedApplicationTemplateBuilder_ != null)) { + return serializedApplicationTemplateBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 5) { + return (com.google.cloud.designcenter.v1.SerializedApplicationTemplate) source_; + } + return com.google.cloud.designcenter.v1.SerializedApplicationTemplate.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. The serialized application template to be imported.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate serialized_application_template = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.SerializedApplicationTemplate, + com.google.cloud.designcenter.v1.SerializedApplicationTemplate.Builder, + com.google.cloud.designcenter.v1.SerializedApplicationTemplateOrBuilder> + internalGetSerializedApplicationTemplateFieldBuilder() { + if (serializedApplicationTemplateBuilder_ == null) { + if (!(sourceCase_ == 5)) { + source_ = + com.google.cloud.designcenter.v1.SerializedApplicationTemplate.getDefaultInstance(); + } + serializedApplicationTemplateBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.SerializedApplicationTemplate, + com.google.cloud.designcenter.v1.SerializedApplicationTemplate.Builder, + com.google.cloud.designcenter.v1.SerializedApplicationTemplateOrBuilder>( + (com.google.cloud.designcenter.v1.SerializedApplicationTemplate) source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 5; + onChanged(); + return serializedApplicationTemplateBuilder_; + } + + /** + * + * + *
+     * Optional. The system revision to be imported. Used when user tries to
+     * Restore (rev X) or perform Undo/Redo operations.
+     * 
+ * + * + * string application_template_system_revision = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the applicationTemplateSystemRevision field is set. + */ + @java.lang.Override + public boolean hasApplicationTemplateSystemRevision() { + return sourceCase_ == 6; + } + + /** + * + * + *
+     * Optional. The system revision to be imported. Used when user tries to
+     * Restore (rev X) or perform Undo/Redo operations.
+     * 
+ * + * + * string application_template_system_revision = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The applicationTemplateSystemRevision. + */ + @java.lang.Override + public java.lang.String getApplicationTemplateSystemRevision() { + java.lang.Object ref = ""; + if (sourceCase_ == 6) { + ref = source_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 6) { + source_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The system revision to be imported. Used when user tries to
+     * Restore (rev X) or perform Undo/Redo operations.
+     * 
+ * + * + * string application_template_system_revision = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for applicationTemplateSystemRevision. + */ + @java.lang.Override + public com.google.protobuf.ByteString getApplicationTemplateSystemRevisionBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 6) { + ref = source_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 6) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The system revision to be imported. Used when user tries to
+     * Restore (rev X) or perform Undo/Redo operations.
+     * 
+ * + * + * string application_template_system_revision = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The applicationTemplateSystemRevision to set. + * @return This builder for chaining. + */ + public Builder setApplicationTemplateSystemRevision(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceCase_ = 6; + source_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The system revision to be imported. Used when user tries to
+     * Restore (rev X) or perform Undo/Redo operations.
+     * 
+ * + * + * string application_template_system_revision = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearApplicationTemplateSystemRevision() { + if (sourceCase_ == 6) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The system revision to be imported. Used when user tries to
+     * Restore (rev X) or perform Undo/Redo operations.
+     * 
+ * + * + * string application_template_system_revision = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for applicationTemplateSystemRevision to set. + * @return This builder for chaining. + */ + public Builder setApplicationTemplateSystemRevisionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceCase_ = 6; + source_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The name of the application template.
+     * 
+ * + * + * 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 application template.
+     * 
+ * + * + * 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 application template.
+     * 
+ * + * + * 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_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The name of the application template.
+     * 
+ * + * + * 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_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The name of the application template.
+     * 
+ * + * + * 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_ |= 0x00000010; + onChanged(); + return this; + } + + private com.google.protobuf.MapField annotations_; + + private com.google.protobuf.MapField + internalGetAnnotations() { + if (annotations_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AnnotationsDefaultEntryHolder.defaultEntry); + } + return annotations_; + } + + private com.google.protobuf.MapField + internalGetMutableAnnotations() { + if (annotations_ == null) { + annotations_ = + com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry); + } + if (!annotations_.isMutable()) { + annotations_ = annotations_.copy(); + } + bitField0_ |= 0x00000020; + onChanged(); + return annotations_; + } + + public int getAnnotationsCount() { + return internalGetAnnotations().getMap().size(); + } + + /** + * + * + *
+     * Optional. Annotations to be stored with the new system revision created as
+     * a result of this import. Sample annotations from agentic workflows might
+     * look like
+     * {
+     * "designcenter.googleapis.com/agent_id": "gemini-3-flash-v1",
+     * "designcenter.googleapis.com/llm_agent_summary": "Restored to revision
+     * Rev-100", "designcenter.googleapis.com/external_ref_id":
+     * "trace-uuid-88921-xyz",
+     * }
+     * 
+ * + * map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetAnnotations().getMap().containsKey(key); + } + + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAnnotations() { + return getAnnotationsMap(); + } + + /** + * + * + *
+     * Optional. Annotations to be stored with the new system revision created as
+     * a result of this import. Sample annotations from agentic workflows might
+     * look like
+     * {
+     * "designcenter.googleapis.com/agent_id": "gemini-3-flash-v1",
+     * "designcenter.googleapis.com/llm_agent_summary": "Restored to revision
+     * Rev-100", "designcenter.googleapis.com/external_ref_id":
+     * "trace-uuid-88921-xyz",
+     * }
+     * 
+ * + * map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getAnnotationsMap() { + return internalGetAnnotations().getMap(); + } + + /** + * + * + *
+     * Optional. Annotations to be stored with the new system revision created as
+     * a result of this import. Sample annotations from agentic workflows might
+     * look like
+     * {
+     * "designcenter.googleapis.com/agent_id": "gemini-3-flash-v1",
+     * "designcenter.googleapis.com/llm_agent_summary": "Restored to revision
+     * Rev-100", "designcenter.googleapis.com/external_ref_id":
+     * "trace-uuid-88921-xyz",
+     * }
+     * 
+ * + * map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+     * Optional. Annotations to be stored with the new system revision created as
+     * a result of this import. Sample annotations from agentic workflows might
+     * look like
+     * {
+     * "designcenter.googleapis.com/agent_id": "gemini-3-flash-v1",
+     * "designcenter.googleapis.com/llm_agent_summary": "Restored to revision
+     * Rev-100", "designcenter.googleapis.com/external_ref_id":
+     * "trace-uuid-88921-xyz",
+     * }
+     * 
+ * + * map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearAnnotations() { + bitField0_ = (bitField0_ & ~0x00000020); + internalGetMutableAnnotations().getMutableMap().clear(); + return this; + } + + /** + * + * + *
+     * Optional. Annotations to be stored with the new system revision created as
+     * a result of this import. Sample annotations from agentic workflows might
+     * look like
+     * {
+     * "designcenter.googleapis.com/agent_id": "gemini-3-flash-v1",
+     * "designcenter.googleapis.com/llm_agent_summary": "Restored to revision
+     * Rev-100", "designcenter.googleapis.com/external_ref_id":
+     * "trace-uuid-88921-xyz",
+     * }
+     * 
+ * + * map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableAnnotations().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableAnnotations() { + bitField0_ |= 0x00000020; + return internalGetMutableAnnotations().getMutableMap(); + } + + /** + * + * + *
+     * Optional. Annotations to be stored with the new system revision created as
+     * a result of this import. Sample annotations from agentic workflows might
+     * look like
+     * {
+     * "designcenter.googleapis.com/agent_id": "gemini-3-flash-v1",
+     * "designcenter.googleapis.com/llm_agent_summary": "Restored to revision
+     * Rev-100", "designcenter.googleapis.com/external_ref_id":
+     * "trace-uuid-88921-xyz",
+     * }
+     * 
+ * + * map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAnnotations(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableAnnotations().getMutableMap().put(key, value); + bitField0_ |= 0x00000020; + return this; + } + + /** + * + * + *
+     * Optional. Annotations to be stored with the new system revision created as
+     * a result of this import. Sample annotations from agentic workflows might
+     * look like
+     * {
+     * "designcenter.googleapis.com/agent_id": "gemini-3-flash-v1",
+     * "designcenter.googleapis.com/llm_agent_summary": "Restored to revision
+     * Rev-100", "designcenter.googleapis.com/external_ref_id":
+     * "trace-uuid-88921-xyz",
+     * }
+     * 
+ * + * map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllAnnotations(java.util.Map values) { + internalGetMutableAnnotations().getMutableMap().putAll(values); + bitField0_ |= 0x00000020; + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ImportApplicationTemplateRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ImportApplicationTemplateRequest) + private static final com.google.cloud.designcenter.v1.ImportApplicationTemplateRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.ImportApplicationTemplateRequest(); + } + + public static com.google.cloud.designcenter.v1.ImportApplicationTemplateRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportApplicationTemplateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ImportApplicationTemplateRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ImportApplicationTemplateRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ImportApplicationTemplateRequestOrBuilder.java new file mode 100644 index 000000000000..78e0426b82dd --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ImportApplicationTemplateRequestOrBuilder.java @@ -0,0 +1,350 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ImportApplicationTemplateRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ImportApplicationTemplateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The source URI for application template revision.
+   * 
+ * + * + * string application_template_revision_uri = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the applicationTemplateRevisionUri field is set. + */ + boolean hasApplicationTemplateRevisionUri(); + + /** + * + * + *
+   * Optional. The source URI for application template revision.
+   * 
+ * + * + * string application_template_revision_uri = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The applicationTemplateRevisionUri. + */ + java.lang.String getApplicationTemplateRevisionUri(); + + /** + * + * + *
+   * Optional. The source URI for application template revision.
+   * 
+ * + * + * string application_template_revision_uri = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for applicationTemplateRevisionUri. + */ + com.google.protobuf.ByteString getApplicationTemplateRevisionUriBytes(); + + /** + * + * + *
+   * Optional. The source URI for catalog template.
+   * 
+ * + * + * string shared_template_revision_uri = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the sharedTemplateRevisionUri field is set. + */ + boolean hasSharedTemplateRevisionUri(); + + /** + * + * + *
+   * Optional. The source URI for catalog template.
+   * 
+ * + * + * string shared_template_revision_uri = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The sharedTemplateRevisionUri. + */ + java.lang.String getSharedTemplateRevisionUri(); + + /** + * + * + *
+   * Optional. The source URI for catalog template.
+   * 
+ * + * + * string shared_template_revision_uri = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for sharedTemplateRevisionUri. + */ + com.google.protobuf.ByteString getSharedTemplateRevisionUriBytes(); + + /** + * + * + *
+   * Optional. The serialized application template to be imported.
+   * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate serialized_application_template = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the serializedApplicationTemplate field is set. + */ + boolean hasSerializedApplicationTemplate(); + + /** + * + * + *
+   * Optional. The serialized application template to be imported.
+   * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate serialized_application_template = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The serializedApplicationTemplate. + */ + com.google.cloud.designcenter.v1.SerializedApplicationTemplate getSerializedApplicationTemplate(); + + /** + * + * + *
+   * Optional. The serialized application template to be imported.
+   * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate serialized_application_template = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.SerializedApplicationTemplateOrBuilder + getSerializedApplicationTemplateOrBuilder(); + + /** + * + * + *
+   * Optional. The system revision to be imported. Used when user tries to
+   * Restore (rev X) or perform Undo/Redo operations.
+   * 
+ * + * + * string application_template_system_revision = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the applicationTemplateSystemRevision field is set. + */ + boolean hasApplicationTemplateSystemRevision(); + + /** + * + * + *
+   * Optional. The system revision to be imported. Used when user tries to
+   * Restore (rev X) or perform Undo/Redo operations.
+   * 
+ * + * + * string application_template_system_revision = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The applicationTemplateSystemRevision. + */ + java.lang.String getApplicationTemplateSystemRevision(); + + /** + * + * + *
+   * Optional. The system revision to be imported. Used when user tries to
+   * Restore (rev X) or perform Undo/Redo operations.
+   * 
+ * + * + * string application_template_system_revision = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for applicationTemplateSystemRevision. + */ + com.google.protobuf.ByteString getApplicationTemplateSystemRevisionBytes(); + + /** + * + * + *
+   * Required. The name of the application template.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The name of the application template.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. Annotations to be stored with the new system revision created as
+   * a result of this import. Sample annotations from agentic workflows might
+   * look like
+   * {
+   * "designcenter.googleapis.com/agent_id": "gemini-3-flash-v1",
+   * "designcenter.googleapis.com/llm_agent_summary": "Restored to revision
+   * Rev-100", "designcenter.googleapis.com/external_ref_id":
+   * "trace-uuid-88921-xyz",
+   * }
+   * 
+ * + * map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getAnnotationsCount(); + + /** + * + * + *
+   * Optional. Annotations to be stored with the new system revision created as
+   * a result of this import. Sample annotations from agentic workflows might
+   * look like
+   * {
+   * "designcenter.googleapis.com/agent_id": "gemini-3-flash-v1",
+   * "designcenter.googleapis.com/llm_agent_summary": "Restored to revision
+   * Rev-100", "designcenter.googleapis.com/external_ref_id":
+   * "trace-uuid-88921-xyz",
+   * }
+   * 
+ * + * map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsAnnotations(java.lang.String key); + + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getAnnotations(); + + /** + * + * + *
+   * Optional. Annotations to be stored with the new system revision created as
+   * a result of this import. Sample annotations from agentic workflows might
+   * look like
+   * {
+   * "designcenter.googleapis.com/agent_id": "gemini-3-flash-v1",
+   * "designcenter.googleapis.com/llm_agent_summary": "Restored to revision
+   * Rev-100", "designcenter.googleapis.com/external_ref_id":
+   * "trace-uuid-88921-xyz",
+   * }
+   * 
+ * + * map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getAnnotationsMap(); + + /** + * + * + *
+   * Optional. Annotations to be stored with the new system revision created as
+   * a result of this import. Sample annotations from agentic workflows might
+   * look like
+   * {
+   * "designcenter.googleapis.com/agent_id": "gemini-3-flash-v1",
+   * "designcenter.googleapis.com/llm_agent_summary": "Restored to revision
+   * Rev-100", "designcenter.googleapis.com/external_ref_id":
+   * "trace-uuid-88921-xyz",
+   * }
+   * 
+ * + * map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
+   * Optional. Annotations to be stored with the new system revision created as
+   * a result of this import. Sample annotations from agentic workflows might
+   * look like
+   * {
+   * "designcenter.googleapis.com/agent_id": "gemini-3-flash-v1",
+   * "designcenter.googleapis.com/llm_agent_summary": "Restored to revision
+   * Rev-100", "designcenter.googleapis.com/external_ref_id":
+   * "trace-uuid-88921-xyz",
+   * }
+   * 
+ * + * map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getAnnotationsOrThrow(java.lang.String key); + + com.google.cloud.designcenter.v1.ImportApplicationTemplateRequest.SourceCase getSourceCase(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ImportIaCError.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ImportIaCError.java new file mode 100644 index 000000000000..8fb90180bade --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ImportIaCError.java @@ -0,0 +1,2236 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/ingestion.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message representing the error encountered during import.
+ * Example: A variable with name "name" is expected to be of type string, but is
+ * provided as number, inside a module named "my_module".
+ * {
+ * resource_address: "module.my_module.name"
+ * file: "gs://my_bucket/main.tf"
+ * range: {
+ * start: {
+ * line: 2
+ * byte_offset: 1
+ * column: 2
+ * }
+ * end: {
+ * line: 2
+ * byte_offset: 10
+ * column: 10
+ * }
+ * }
+ * description: "Error parsing field: \"name\". Expected type \"string\" but got
+ * \"number\"."
+ * type: INVALID
+ * }
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ImportIaCError} + */ +@com.google.protobuf.Generated +public final class ImportIaCError extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ImportIaCError) + ImportIaCErrorOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ImportIaCError"); + } + + // Use ImportIaCError.newBuilder() to construct. + private ImportIaCError(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ImportIaCError() { + resourceAddress_ = ""; + file_ = ""; + description_ = ""; + type_ = 0; + errorCode_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.IngestionProto + .internal_static_google_cloud_designcenter_v1_ImportIaCError_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.IngestionProto + .internal_static_google_cloud_designcenter_v1_ImportIaCError_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ImportIaCError.class, + com.google.cloud.designcenter.v1.ImportIaCError.Builder.class); + } + + /** + * + * + *
+   * The type of error.
+   * 
+ * + * Protobuf enum {@code google.cloud.designcenter.v1.ImportIaCError.Type} + */ + public enum Type implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default.
+     * 
+ * + * TYPE_UNSPECIFIED = 0; + */ + TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * The change is invalid.
+     * Example: a string value provided for a number input parameter type,
+     * which would be caught by Terraform validation.
+     * 
+ * + * INVALID = 1; + */ + INVALID(1), + /** + * + * + *
+     * The change is not supported.
+     * Example: a user directly adding a Terraform resource in main.tf
+     * that Design Center does not support importing.
+     * 
+ * + * NOT_SUPPORTED = 2; + */ + NOT_SUPPORTED(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "Type"); + } + + /** + * + * + *
+     * Default.
+     * 
+ * + * TYPE_UNSPECIFIED = 0; + */ + public static final int TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * The change is invalid.
+     * Example: a string value provided for a number input parameter type,
+     * which would be caught by Terraform validation.
+     * 
+ * + * INVALID = 1; + */ + public static final int INVALID_VALUE = 1; + + /** + * + * + *
+     * The change is not supported.
+     * Example: a user directly adding a Terraform resource in main.tf
+     * that Design Center does not support importing.
+     * 
+ * + * NOT_SUPPORTED = 2; + */ + public static final int NOT_SUPPORTED_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Type valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Type forNumber(int value) { + switch (value) { + case 0: + return TYPE_UNSPECIFIED; + case 1: + return INVALID; + case 2: + return NOT_SUPPORTED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.designcenter.v1.ImportIaCError.getDescriptor().getEnumTypes().get(0); + } + + private static final Type[] VALUES = values(); + + public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Type(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.designcenter.v1.ImportIaCError.Type) + } + + /** + * + * + *
+   * Specific error code for UI and programmatic handling.
+   * 
+ * + * Protobuf enum {@code google.cloud.designcenter.v1.ImportIaCError.ErrorCode} + */ + public enum ErrorCode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default.
+     * 
+ * + * ERROR_CODE_UNSPECIFIED = 0; + */ + ERROR_CODE_UNSPECIFIED(0), + /** + * + * + *
+     * HCL Syntax errors (e.g. unclosed blocks, bad characters)
+     * 
+ * + * ERROR_CODE_SYNTAX_ERROR = 1; + */ + ERROR_CODE_SYNTAX_ERROR(1), + /** + * + * + *
+     * Top-level block is e.g. "resource", "data", "locals"
+     * 
+ * + * ERROR_CODE_UNSUPPORTED_BLOCK_TYPE = 2; + */ + ERROR_CODE_UNSUPPORTED_BLOCK_TYPE(2), + /** + * + * + *
+     * Attributes defined outside of allowed blocks
+     * 
+ * + * ERROR_CODE_TOP_LEVEL_ATTRIBUTE = 3; + */ + ERROR_CODE_TOP_LEVEL_ATTRIBUTE(3), + /** + * + * + *
+     * Module not present in catalog
+     * 
+ * + * ERROR_CODE_UNSUPPORTED_MODULE = 4; + */ + ERROR_CODE_UNSUPPORTED_MODULE(4), + /** + * + * + *
+     * Attribute defined inside module that is not in the shared template
+     * 
+ * + * ERROR_CODE_MODULE_UNSUPPORTED_ATTRIBUTE_ADDED = 5; + */ + ERROR_CODE_MODULE_UNSUPPORTED_ATTRIBUTE_ADDED(5), + /** + * + * + *
+     * Mandatory attribute of shared template is missing in module block
+     * 
+ * + * ERROR_CODE_MODULE_REQUIRED_ATTRIBUTE_REMOVED = 6; + */ + ERROR_CODE_MODULE_REQUIRED_ATTRIBUTE_REMOVED(6), + /** + * + * + *
+     * Value fails shared template schema checks (regex, range, etc.)
+     * 
+ * + * ERROR_CODE_PARAMETER_VALUE_INVALID = 7; + */ + ERROR_CODE_PARAMETER_VALUE_INVALID(7), + /** + * + * + *
+     * Variable in variables.tf is added, removed or schema changed
+     * 
+ * + * ERROR_CODE_UNSUPPORTED_VARIABLE_CHANGE = 8; + */ + ERROR_CODE_UNSUPPORTED_VARIABLE_CHANGE(8), + /** + * + * + *
+     * Output in outputs.tf is added, removed or schema changed
+     * 
+ * + * ERROR_CODE_UNSUPPORTED_OUTPUT_CHANGE = 9; + */ + ERROR_CODE_UNSUPPORTED_OUTPUT_CHANGE(9), + /** + * + * + *
+     * Provider in providers.tf has added blocks or modified attributes
+     * 
+ * + * ERROR_CODE_UNSUPPORTED_PROVIDER_CHANGE = 10; + */ + ERROR_CODE_UNSUPPORTED_PROVIDER_CHANGE(10), + /** + * + * + *
+     * Value modified for variables defined in terraform.tfvars
+     * 
+ * + * ERROR_CODE_UNSUPPORTED_TFVAR_CHANGE = 11; + */ + ERROR_CODE_UNSUPPORTED_TFVAR_CHANGE(11), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ErrorCode"); + } + + /** + * + * + *
+     * Default.
+     * 
+ * + * ERROR_CODE_UNSPECIFIED = 0; + */ + public static final int ERROR_CODE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * HCL Syntax errors (e.g. unclosed blocks, bad characters)
+     * 
+ * + * ERROR_CODE_SYNTAX_ERROR = 1; + */ + public static final int ERROR_CODE_SYNTAX_ERROR_VALUE = 1; + + /** + * + * + *
+     * Top-level block is e.g. "resource", "data", "locals"
+     * 
+ * + * ERROR_CODE_UNSUPPORTED_BLOCK_TYPE = 2; + */ + public static final int ERROR_CODE_UNSUPPORTED_BLOCK_TYPE_VALUE = 2; + + /** + * + * + *
+     * Attributes defined outside of allowed blocks
+     * 
+ * + * ERROR_CODE_TOP_LEVEL_ATTRIBUTE = 3; + */ + public static final int ERROR_CODE_TOP_LEVEL_ATTRIBUTE_VALUE = 3; + + /** + * + * + *
+     * Module not present in catalog
+     * 
+ * + * ERROR_CODE_UNSUPPORTED_MODULE = 4; + */ + public static final int ERROR_CODE_UNSUPPORTED_MODULE_VALUE = 4; + + /** + * + * + *
+     * Attribute defined inside module that is not in the shared template
+     * 
+ * + * ERROR_CODE_MODULE_UNSUPPORTED_ATTRIBUTE_ADDED = 5; + */ + public static final int ERROR_CODE_MODULE_UNSUPPORTED_ATTRIBUTE_ADDED_VALUE = 5; + + /** + * + * + *
+     * Mandatory attribute of shared template is missing in module block
+     * 
+ * + * ERROR_CODE_MODULE_REQUIRED_ATTRIBUTE_REMOVED = 6; + */ + public static final int ERROR_CODE_MODULE_REQUIRED_ATTRIBUTE_REMOVED_VALUE = 6; + + /** + * + * + *
+     * Value fails shared template schema checks (regex, range, etc.)
+     * 
+ * + * ERROR_CODE_PARAMETER_VALUE_INVALID = 7; + */ + public static final int ERROR_CODE_PARAMETER_VALUE_INVALID_VALUE = 7; + + /** + * + * + *
+     * Variable in variables.tf is added, removed or schema changed
+     * 
+ * + * ERROR_CODE_UNSUPPORTED_VARIABLE_CHANGE = 8; + */ + public static final int ERROR_CODE_UNSUPPORTED_VARIABLE_CHANGE_VALUE = 8; + + /** + * + * + *
+     * Output in outputs.tf is added, removed or schema changed
+     * 
+ * + * ERROR_CODE_UNSUPPORTED_OUTPUT_CHANGE = 9; + */ + public static final int ERROR_CODE_UNSUPPORTED_OUTPUT_CHANGE_VALUE = 9; + + /** + * + * + *
+     * Provider in providers.tf has added blocks or modified attributes
+     * 
+ * + * ERROR_CODE_UNSUPPORTED_PROVIDER_CHANGE = 10; + */ + public static final int ERROR_CODE_UNSUPPORTED_PROVIDER_CHANGE_VALUE = 10; + + /** + * + * + *
+     * Value modified for variables defined in terraform.tfvars
+     * 
+ * + * ERROR_CODE_UNSUPPORTED_TFVAR_CHANGE = 11; + */ + public static final int ERROR_CODE_UNSUPPORTED_TFVAR_CHANGE_VALUE = 11; + + 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 ErrorCode 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 ErrorCode forNumber(int value) { + switch (value) { + case 0: + return ERROR_CODE_UNSPECIFIED; + case 1: + return ERROR_CODE_SYNTAX_ERROR; + case 2: + return ERROR_CODE_UNSUPPORTED_BLOCK_TYPE; + case 3: + return ERROR_CODE_TOP_LEVEL_ATTRIBUTE; + case 4: + return ERROR_CODE_UNSUPPORTED_MODULE; + case 5: + return ERROR_CODE_MODULE_UNSUPPORTED_ATTRIBUTE_ADDED; + case 6: + return ERROR_CODE_MODULE_REQUIRED_ATTRIBUTE_REMOVED; + case 7: + return ERROR_CODE_PARAMETER_VALUE_INVALID; + case 8: + return ERROR_CODE_UNSUPPORTED_VARIABLE_CHANGE; + case 9: + return ERROR_CODE_UNSUPPORTED_OUTPUT_CHANGE; + case 10: + return ERROR_CODE_UNSUPPORTED_PROVIDER_CHANGE; + case 11: + return ERROR_CODE_UNSUPPORTED_TFVAR_CHANGE; + 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 ErrorCode findValueByNumber(int number) { + return ErrorCode.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.designcenter.v1.ImportIaCError.getDescriptor().getEnumTypes().get(1); + } + + private static final ErrorCode[] VALUES = values(); + + public static ErrorCode 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 ErrorCode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.designcenter.v1.ImportIaCError.ErrorCode) + } + + private int bitField0_; + public static final int RESOURCE_ADDRESS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object resourceAddress_ = ""; + + /** + * + * + *
+   * Output only. The resource address of the error.
+   * 
+ * + * string resource_address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The resourceAddress. + */ + @java.lang.Override + public java.lang.String getResourceAddress() { + java.lang.Object ref = resourceAddress_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceAddress_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The resource address of the error.
+   * 
+ * + * string resource_address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for resourceAddress. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResourceAddressBytes() { + java.lang.Object ref = resourceAddress_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resourceAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object file_ = ""; + + /** + * + * + *
+   * Output only. The file where the error has occurred.
+   * 
+ * + * string file = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The file. + */ + @java.lang.Override + public java.lang.String getFile() { + java.lang.Object ref = file_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + file_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The file where the error has occurred.
+   * 
+ * + * string file = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for file. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFileBytes() { + java.lang.Object ref = file_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + file_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RANGE_FIELD_NUMBER = 3; + private com.google.cloud.designcenter.v1.CodeRange range_; + + /** + * + * + *
+   * Output only. The code portion where this error occurs.
+   * 
+ * + * + * .google.cloud.designcenter.v1.CodeRange range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the range field is set. + */ + @java.lang.Override + public boolean hasRange() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. The code portion where this error occurs.
+   * 
+ * + * + * .google.cloud.designcenter.v1.CodeRange range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The range. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.CodeRange getRange() { + return range_ == null + ? com.google.cloud.designcenter.v1.CodeRange.getDefaultInstance() + : range_; + } + + /** + * + * + *
+   * Output only. The code portion where this error occurs.
+   * 
+ * + * + * .google.cloud.designcenter.v1.CodeRange range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.CodeRangeOrBuilder getRangeOrBuilder() { + return range_ == null + ? com.google.cloud.designcenter.v1.CodeRange.getDefaultInstance() + : range_; + } + + public static final int DESCRIPTION_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
+   * Output only. The description of the error.
+   * 
+ * + * string description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+   * Output only. The description of the error.
+   * 
+ * + * string description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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 TYPE_FIELD_NUMBER = 5; + private int type_ = 0; + + /** + * + * + *
+   * Output only. The type of error.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ImportIaCError.Type type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
+   * Output only. The type of error.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ImportIaCError.Type type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ImportIaCError.Type getType() { + com.google.cloud.designcenter.v1.ImportIaCError.Type result = + com.google.cloud.designcenter.v1.ImportIaCError.Type.forNumber(type_); + return result == null + ? com.google.cloud.designcenter.v1.ImportIaCError.Type.UNRECOGNIZED + : result; + } + + public static final int ERROR_CODE_FIELD_NUMBER = 6; + private int errorCode_ = 0; + + /** + * + * + *
+   * Output only. Specific error code for the import error.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ImportIaCError.ErrorCode error_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for errorCode. + */ + @java.lang.Override + public int getErrorCodeValue() { + return errorCode_; + } + + /** + * + * + *
+   * Output only. Specific error code for the import error.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ImportIaCError.ErrorCode error_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The errorCode. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ImportIaCError.ErrorCode getErrorCode() { + com.google.cloud.designcenter.v1.ImportIaCError.ErrorCode result = + com.google.cloud.designcenter.v1.ImportIaCError.ErrorCode.forNumber(errorCode_); + return result == null + ? com.google.cloud.designcenter.v1.ImportIaCError.ErrorCode.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.GeneratedMessage.isStringEmpty(resourceAddress_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, resourceAddress_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(file_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, file_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getRange()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, description_); + } + if (type_ + != com.google.cloud.designcenter.v1.ImportIaCError.Type.TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(5, type_); + } + if (errorCode_ + != com.google.cloud.designcenter.v1.ImportIaCError.ErrorCode.ERROR_CODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(6, errorCode_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(resourceAddress_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, resourceAddress_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(file_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, file_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getRange()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, description_); + } + if (type_ + != com.google.cloud.designcenter.v1.ImportIaCError.Type.TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, type_); + } + if (errorCode_ + != com.google.cloud.designcenter.v1.ImportIaCError.ErrorCode.ERROR_CODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, errorCode_); + } + 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.designcenter.v1.ImportIaCError)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ImportIaCError other = + (com.google.cloud.designcenter.v1.ImportIaCError) obj; + + if (!getResourceAddress().equals(other.getResourceAddress())) return false; + if (!getFile().equals(other.getFile())) return false; + if (hasRange() != other.hasRange()) return false; + if (hasRange()) { + if (!getRange().equals(other.getRange())) return false; + } + if (!getDescription().equals(other.getDescription())) return false; + if (type_ != other.type_) return false; + if (errorCode_ != other.errorCode_) 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) + RESOURCE_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getResourceAddress().hashCode(); + hash = (37 * hash) + FILE_FIELD_NUMBER; + hash = (53 * hash) + getFile().hashCode(); + if (hasRange()) { + hash = (37 * hash) + RANGE_FIELD_NUMBER; + hash = (53 * hash) + getRange().hashCode(); + } + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (37 * hash) + ERROR_CODE_FIELD_NUMBER; + hash = (53 * hash) + errorCode_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.ImportIaCError parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ImportIaCError 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.designcenter.v1.ImportIaCError parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ImportIaCError parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ImportIaCError parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ImportIaCError parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ImportIaCError parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ImportIaCError parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ImportIaCError parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ImportIaCError parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ImportIaCError parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ImportIaCError parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ImportIaCError 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message representing the error encountered during import.
+   * Example: A variable with name "name" is expected to be of type string, but is
+   * provided as number, inside a module named "my_module".
+   * {
+   * resource_address: "module.my_module.name"
+   * file: "gs://my_bucket/main.tf"
+   * range: {
+   * start: {
+   * line: 2
+   * byte_offset: 1
+   * column: 2
+   * }
+   * end: {
+   * line: 2
+   * byte_offset: 10
+   * column: 10
+   * }
+   * }
+   * description: "Error parsing field: \"name\". Expected type \"string\" but got
+   * \"number\"."
+   * type: INVALID
+   * }
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ImportIaCError} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ImportIaCError) + com.google.cloud.designcenter.v1.ImportIaCErrorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.IngestionProto + .internal_static_google_cloud_designcenter_v1_ImportIaCError_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.IngestionProto + .internal_static_google_cloud_designcenter_v1_ImportIaCError_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ImportIaCError.class, + com.google.cloud.designcenter.v1.ImportIaCError.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.ImportIaCError.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetRangeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + resourceAddress_ = ""; + file_ = ""; + range_ = null; + if (rangeBuilder_ != null) { + rangeBuilder_.dispose(); + rangeBuilder_ = null; + } + description_ = ""; + type_ = 0; + errorCode_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.IngestionProto + .internal_static_google_cloud_designcenter_v1_ImportIaCError_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ImportIaCError getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ImportIaCError.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ImportIaCError build() { + com.google.cloud.designcenter.v1.ImportIaCError result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ImportIaCError buildPartial() { + com.google.cloud.designcenter.v1.ImportIaCError result = + new com.google.cloud.designcenter.v1.ImportIaCError(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.ImportIaCError result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.resourceAddress_ = resourceAddress_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.file_ = file_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.range_ = rangeBuilder_ == null ? range_ : rangeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.errorCode_ = errorCode_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.ImportIaCError) { + return mergeFrom((com.google.cloud.designcenter.v1.ImportIaCError) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.ImportIaCError other) { + if (other == com.google.cloud.designcenter.v1.ImportIaCError.getDefaultInstance()) + return this; + if (!other.getResourceAddress().isEmpty()) { + resourceAddress_ = other.resourceAddress_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getFile().isEmpty()) { + file_ = other.file_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasRange()) { + mergeRange(other.getRange()); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (other.errorCode_ != 0) { + setErrorCodeValue(other.getErrorCodeValue()); + } + 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: + { + resourceAddress_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + file_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(internalGetRangeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: + { + type_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: + { + errorCode_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 48 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object resourceAddress_ = ""; + + /** + * + * + *
+     * Output only. The resource address of the error.
+     * 
+ * + * string resource_address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The resourceAddress. + */ + public java.lang.String getResourceAddress() { + java.lang.Object ref = resourceAddress_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceAddress_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The resource address of the error.
+     * 
+ * + * string resource_address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for resourceAddress. + */ + public com.google.protobuf.ByteString getResourceAddressBytes() { + java.lang.Object ref = resourceAddress_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resourceAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The resource address of the error.
+     * 
+ * + * string resource_address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The resourceAddress to set. + * @return This builder for chaining. + */ + public Builder setResourceAddress(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + resourceAddress_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The resource address of the error.
+     * 
+ * + * string resource_address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearResourceAddress() { + resourceAddress_ = getDefaultInstance().getResourceAddress(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The resource address of the error.
+     * 
+ * + * string resource_address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for resourceAddress to set. + * @return This builder for chaining. + */ + public Builder setResourceAddressBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceAddress_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object file_ = ""; + + /** + * + * + *
+     * Output only. The file where the error has occurred.
+     * 
+ * + * string file = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The file. + */ + public java.lang.String getFile() { + java.lang.Object ref = file_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + file_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The file where the error has occurred.
+     * 
+ * + * string file = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for file. + */ + public com.google.protobuf.ByteString getFileBytes() { + java.lang.Object ref = file_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + file_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The file where the error has occurred.
+     * 
+ * + * string file = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The file to set. + * @return This builder for chaining. + */ + public Builder setFile(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + file_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The file where the error has occurred.
+     * 
+ * + * string file = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearFile() { + file_ = getDefaultInstance().getFile(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The file where the error has occurred.
+     * 
+ * + * string file = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for file to set. + * @return This builder for chaining. + */ + public Builder setFileBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + file_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.designcenter.v1.CodeRange range_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.CodeRange, + com.google.cloud.designcenter.v1.CodeRange.Builder, + com.google.cloud.designcenter.v1.CodeRangeOrBuilder> + rangeBuilder_; + + /** + * + * + *
+     * Output only. The code portion where this error occurs.
+     * 
+ * + * + * .google.cloud.designcenter.v1.CodeRange range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the range field is set. + */ + public boolean hasRange() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Output only. The code portion where this error occurs.
+     * 
+ * + * + * .google.cloud.designcenter.v1.CodeRange range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The range. + */ + public com.google.cloud.designcenter.v1.CodeRange getRange() { + if (rangeBuilder_ == null) { + return range_ == null + ? com.google.cloud.designcenter.v1.CodeRange.getDefaultInstance() + : range_; + } else { + return rangeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. The code portion where this error occurs.
+     * 
+ * + * + * .google.cloud.designcenter.v1.CodeRange range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setRange(com.google.cloud.designcenter.v1.CodeRange value) { + if (rangeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + range_ = value; + } else { + rangeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The code portion where this error occurs.
+     * 
+ * + * + * .google.cloud.designcenter.v1.CodeRange range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setRange(com.google.cloud.designcenter.v1.CodeRange.Builder builderForValue) { + if (rangeBuilder_ == null) { + range_ = builderForValue.build(); + } else { + rangeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The code portion where this error occurs.
+     * 
+ * + * + * .google.cloud.designcenter.v1.CodeRange range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeRange(com.google.cloud.designcenter.v1.CodeRange value) { + if (rangeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && range_ != null + && range_ != com.google.cloud.designcenter.v1.CodeRange.getDefaultInstance()) { + getRangeBuilder().mergeFrom(value); + } else { + range_ = value; + } + } else { + rangeBuilder_.mergeFrom(value); + } + if (range_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The code portion where this error occurs.
+     * 
+ * + * + * .google.cloud.designcenter.v1.CodeRange range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearRange() { + bitField0_ = (bitField0_ & ~0x00000004); + range_ = null; + if (rangeBuilder_ != null) { + rangeBuilder_.dispose(); + rangeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The code portion where this error occurs.
+     * 
+ * + * + * .google.cloud.designcenter.v1.CodeRange range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.CodeRange.Builder getRangeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetRangeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The code portion where this error occurs.
+     * 
+ * + * + * .google.cloud.designcenter.v1.CodeRange range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.CodeRangeOrBuilder getRangeOrBuilder() { + if (rangeBuilder_ != null) { + return rangeBuilder_.getMessageOrBuilder(); + } else { + return range_ == null + ? com.google.cloud.designcenter.v1.CodeRange.getDefaultInstance() + : range_; + } + } + + /** + * + * + *
+     * Output only. The code portion where this error occurs.
+     * 
+ * + * + * .google.cloud.designcenter.v1.CodeRange range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.CodeRange, + com.google.cloud.designcenter.v1.CodeRange.Builder, + com.google.cloud.designcenter.v1.CodeRangeOrBuilder> + internalGetRangeFieldBuilder() { + if (rangeBuilder_ == null) { + rangeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.CodeRange, + com.google.cloud.designcenter.v1.CodeRange.Builder, + com.google.cloud.designcenter.v1.CodeRangeOrBuilder>( + getRange(), getParentForChildren(), isClean()); + range_ = null; + } + return rangeBuilder_; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
+     * Output only. The description of the error.
+     * 
+ * + * string description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+     * Output only. The description of the error.
+     * 
+ * + * string description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+     * Output only. The description of the error.
+     * 
+ * + * string description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The description of the error.
+     * 
+ * + * string description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The description of the error.
+     * 
+ * + * string description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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_ |= 0x00000008; + onChanged(); + return this; + } + + private int type_ = 0; + + /** + * + * + *
+     * Output only. The type of error.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ImportIaCError.Type type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
+     * Output only. The type of error.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ImportIaCError.Type type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + type_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The type of error.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ImportIaCError.Type type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ImportIaCError.Type getType() { + com.google.cloud.designcenter.v1.ImportIaCError.Type result = + com.google.cloud.designcenter.v1.ImportIaCError.Type.forNumber(type_); + return result == null + ? com.google.cloud.designcenter.v1.ImportIaCError.Type.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Output only. The type of error.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ImportIaCError.Type type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(com.google.cloud.designcenter.v1.ImportIaCError.Type value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + type_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The type of error.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ImportIaCError.Type type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000010); + type_ = 0; + onChanged(); + return this; + } + + private int errorCode_ = 0; + + /** + * + * + *
+     * Output only. Specific error code for the import error.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ImportIaCError.ErrorCode error_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for errorCode. + */ + @java.lang.Override + public int getErrorCodeValue() { + return errorCode_; + } + + /** + * + * + *
+     * Output only. Specific error code for the import error.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ImportIaCError.ErrorCode error_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for errorCode to set. + * @return This builder for chaining. + */ + public Builder setErrorCodeValue(int value) { + errorCode_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Specific error code for the import error.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ImportIaCError.ErrorCode error_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The errorCode. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ImportIaCError.ErrorCode getErrorCode() { + com.google.cloud.designcenter.v1.ImportIaCError.ErrorCode result = + com.google.cloud.designcenter.v1.ImportIaCError.ErrorCode.forNumber(errorCode_); + return result == null + ? com.google.cloud.designcenter.v1.ImportIaCError.ErrorCode.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Output only. Specific error code for the import error.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ImportIaCError.ErrorCode error_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The errorCode to set. + * @return This builder for chaining. + */ + public Builder setErrorCode(com.google.cloud.designcenter.v1.ImportIaCError.ErrorCode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + errorCode_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Specific error code for the import error.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ImportIaCError.ErrorCode error_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearErrorCode() { + bitField0_ = (bitField0_ & ~0x00000020); + errorCode_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ImportIaCError) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ImportIaCError) + private static final com.google.cloud.designcenter.v1.ImportIaCError DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.ImportIaCError(); + } + + public static com.google.cloud.designcenter.v1.ImportIaCError getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportIaCError parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ImportIaCError getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ImportIaCErrorOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ImportIaCErrorOrBuilder.java new file mode 100644 index 000000000000..8ee71bbfb1b5 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ImportIaCErrorOrBuilder.java @@ -0,0 +1,209 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/ingestion.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ImportIaCErrorOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ImportIaCError) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The resource address of the error.
+   * 
+ * + * string resource_address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The resourceAddress. + */ + java.lang.String getResourceAddress(); + + /** + * + * + *
+   * Output only. The resource address of the error.
+   * 
+ * + * string resource_address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for resourceAddress. + */ + com.google.protobuf.ByteString getResourceAddressBytes(); + + /** + * + * + *
+   * Output only. The file where the error has occurred.
+   * 
+ * + * string file = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The file. + */ + java.lang.String getFile(); + + /** + * + * + *
+   * Output only. The file where the error has occurred.
+   * 
+ * + * string file = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for file. + */ + com.google.protobuf.ByteString getFileBytes(); + + /** + * + * + *
+   * Output only. The code portion where this error occurs.
+   * 
+ * + * + * .google.cloud.designcenter.v1.CodeRange range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the range field is set. + */ + boolean hasRange(); + + /** + * + * + *
+   * Output only. The code portion where this error occurs.
+   * 
+ * + * + * .google.cloud.designcenter.v1.CodeRange range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The range. + */ + com.google.cloud.designcenter.v1.CodeRange getRange(); + + /** + * + * + *
+   * Output only. The code portion where this error occurs.
+   * 
+ * + * + * .google.cloud.designcenter.v1.CodeRange range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.CodeRangeOrBuilder getRangeOrBuilder(); + + /** + * + * + *
+   * Output only. The description of the error.
+   * 
+ * + * string description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
+   * Output only. The description of the error.
+   * 
+ * + * string description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Output only. The type of error.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ImportIaCError.Type type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + + /** + * + * + *
+   * Output only. The type of error.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ImportIaCError.Type type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The type. + */ + com.google.cloud.designcenter.v1.ImportIaCError.Type getType(); + + /** + * + * + *
+   * Output only. Specific error code for the import error.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ImportIaCError.ErrorCode error_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for errorCode. + */ + int getErrorCodeValue(); + + /** + * + * + *
+   * Output only. Specific error code for the import error.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ImportIaCError.ErrorCode error_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The errorCode. + */ + com.google.cloud.designcenter.v1.ImportIaCError.ErrorCode getErrorCode(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ImportSerializedApplicationTemplateRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ImportSerializedApplicationTemplateRequest.java new file mode 100644 index 000000000000..2932631e95e6 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ImportSerializedApplicationTemplateRequest.java @@ -0,0 +1,974 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Request message for ImportSerializedApplicationTemplate.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ImportSerializedApplicationTemplateRequest} + */ +@com.google.protobuf.Generated +public final class ImportSerializedApplicationTemplateRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ImportSerializedApplicationTemplateRequest) + ImportSerializedApplicationTemplateRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ImportSerializedApplicationTemplateRequest"); + } + + // Use ImportSerializedApplicationTemplateRequest.newBuilder() to construct. + private ImportSerializedApplicationTemplateRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ImportSerializedApplicationTemplateRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ImportSerializedApplicationTemplateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ImportSerializedApplicationTemplateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ImportSerializedApplicationTemplateRequest.class, + com.google.cloud.designcenter.v1.ImportSerializedApplicationTemplateRequest.Builder + .class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The name of the application template.
+   * 
+ * + * + * 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 application template.
+   * 
+ * + * + * 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 SERIALIZED_APPLICATION_TEMPLATE_FIELD_NUMBER = 2; + private com.google.cloud.designcenter.v1.SerializedApplicationTemplate + serializedApplicationTemplate_; + + /** + * + * + *
+   * Required. The serialized application template to be imported.
+   * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate serialized_application_template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the serializedApplicationTemplate field is set. + */ + @java.lang.Override + public boolean hasSerializedApplicationTemplate() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The serialized application template to be imported.
+   * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate serialized_application_template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The serializedApplicationTemplate. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.SerializedApplicationTemplate + getSerializedApplicationTemplate() { + return serializedApplicationTemplate_ == null + ? com.google.cloud.designcenter.v1.SerializedApplicationTemplate.getDefaultInstance() + : serializedApplicationTemplate_; + } + + /** + * + * + *
+   * Required. The serialized application template to be imported.
+   * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate serialized_application_template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.SerializedApplicationTemplateOrBuilder + getSerializedApplicationTemplateOrBuilder() { + return serializedApplicationTemplate_ == null + ? com.google.cloud.designcenter.v1.SerializedApplicationTemplate.getDefaultInstance() + : serializedApplicationTemplate_; + } + + 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getSerializedApplicationTemplate()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, getSerializedApplicationTemplate()); + } + 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.designcenter.v1.ImportSerializedApplicationTemplateRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ImportSerializedApplicationTemplateRequest other = + (com.google.cloud.designcenter.v1.ImportSerializedApplicationTemplateRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (hasSerializedApplicationTemplate() != other.hasSerializedApplicationTemplate()) + return false; + if (hasSerializedApplicationTemplate()) { + if (!getSerializedApplicationTemplate().equals(other.getSerializedApplicationTemplate())) + 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 (hasSerializedApplicationTemplate()) { + hash = (37 * hash) + SERIALIZED_APPLICATION_TEMPLATE_FIELD_NUMBER; + hash = (53 * hash) + getSerializedApplicationTemplate().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.ImportSerializedApplicationTemplateRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ImportSerializedApplicationTemplateRequest + 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.designcenter.v1.ImportSerializedApplicationTemplateRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ImportSerializedApplicationTemplateRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ImportSerializedApplicationTemplateRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ImportSerializedApplicationTemplateRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ImportSerializedApplicationTemplateRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ImportSerializedApplicationTemplateRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ImportSerializedApplicationTemplateRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ImportSerializedApplicationTemplateRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ImportSerializedApplicationTemplateRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ImportSerializedApplicationTemplateRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ImportSerializedApplicationTemplateRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for ImportSerializedApplicationTemplate.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ImportSerializedApplicationTemplateRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ImportSerializedApplicationTemplateRequest) + com.google.cloud.designcenter.v1.ImportSerializedApplicationTemplateRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ImportSerializedApplicationTemplateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ImportSerializedApplicationTemplateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ImportSerializedApplicationTemplateRequest.class, + com.google.cloud.designcenter.v1.ImportSerializedApplicationTemplateRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.designcenter.v1.ImportSerializedApplicationTemplateRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetSerializedApplicationTemplateFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + serializedApplicationTemplate_ = null; + if (serializedApplicationTemplateBuilder_ != null) { + serializedApplicationTemplateBuilder_.dispose(); + serializedApplicationTemplateBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ImportSerializedApplicationTemplateRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ImportSerializedApplicationTemplateRequest + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ImportSerializedApplicationTemplateRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ImportSerializedApplicationTemplateRequest build() { + com.google.cloud.designcenter.v1.ImportSerializedApplicationTemplateRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ImportSerializedApplicationTemplateRequest + buildPartial() { + com.google.cloud.designcenter.v1.ImportSerializedApplicationTemplateRequest result = + new com.google.cloud.designcenter.v1.ImportSerializedApplicationTemplateRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.ImportSerializedApplicationTemplateRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.serializedApplicationTemplate_ = + serializedApplicationTemplateBuilder_ == null + ? serializedApplicationTemplate_ + : serializedApplicationTemplateBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.designcenter.v1.ImportSerializedApplicationTemplateRequest) { + return mergeFrom( + (com.google.cloud.designcenter.v1.ImportSerializedApplicationTemplateRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.designcenter.v1.ImportSerializedApplicationTemplateRequest other) { + if (other + == com.google.cloud.designcenter.v1.ImportSerializedApplicationTemplateRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasSerializedApplicationTemplate()) { + mergeSerializedApplicationTemplate(other.getSerializedApplicationTemplate()); + } + 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( + internalGetSerializedApplicationTemplateFieldBuilder().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 java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The name of the application template.
+     * 
+ * + * + * 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 application template.
+     * 
+ * + * + * 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 application template.
+     * 
+ * + * + * 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 application template.
+     * 
+ * + * + * 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 application template.
+     * 
+ * + * + * 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 com.google.cloud.designcenter.v1.SerializedApplicationTemplate + serializedApplicationTemplate_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.SerializedApplicationTemplate, + com.google.cloud.designcenter.v1.SerializedApplicationTemplate.Builder, + com.google.cloud.designcenter.v1.SerializedApplicationTemplateOrBuilder> + serializedApplicationTemplateBuilder_; + + /** + * + * + *
+     * Required. The serialized application template to be imported.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate serialized_application_template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the serializedApplicationTemplate field is set. + */ + public boolean hasSerializedApplicationTemplate() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Required. The serialized application template to be imported.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate serialized_application_template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The serializedApplicationTemplate. + */ + public com.google.cloud.designcenter.v1.SerializedApplicationTemplate + getSerializedApplicationTemplate() { + if (serializedApplicationTemplateBuilder_ == null) { + return serializedApplicationTemplate_ == null + ? com.google.cloud.designcenter.v1.SerializedApplicationTemplate.getDefaultInstance() + : serializedApplicationTemplate_; + } else { + return serializedApplicationTemplateBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The serialized application template to be imported.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate serialized_application_template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSerializedApplicationTemplate( + com.google.cloud.designcenter.v1.SerializedApplicationTemplate value) { + if (serializedApplicationTemplateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + serializedApplicationTemplate_ = value; + } else { + serializedApplicationTemplateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The serialized application template to be imported.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate serialized_application_template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSerializedApplicationTemplate( + com.google.cloud.designcenter.v1.SerializedApplicationTemplate.Builder builderForValue) { + if (serializedApplicationTemplateBuilder_ == null) { + serializedApplicationTemplate_ = builderForValue.build(); + } else { + serializedApplicationTemplateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The serialized application template to be imported.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate serialized_application_template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeSerializedApplicationTemplate( + com.google.cloud.designcenter.v1.SerializedApplicationTemplate value) { + if (serializedApplicationTemplateBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && serializedApplicationTemplate_ != null + && serializedApplicationTemplate_ + != com.google.cloud.designcenter.v1.SerializedApplicationTemplate + .getDefaultInstance()) { + getSerializedApplicationTemplateBuilder().mergeFrom(value); + } else { + serializedApplicationTemplate_ = value; + } + } else { + serializedApplicationTemplateBuilder_.mergeFrom(value); + } + if (serializedApplicationTemplate_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The serialized application template to be imported.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate serialized_application_template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearSerializedApplicationTemplate() { + bitField0_ = (bitField0_ & ~0x00000002); + serializedApplicationTemplate_ = null; + if (serializedApplicationTemplateBuilder_ != null) { + serializedApplicationTemplateBuilder_.dispose(); + serializedApplicationTemplateBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The serialized application template to be imported.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate serialized_application_template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.SerializedApplicationTemplate.Builder + getSerializedApplicationTemplateBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetSerializedApplicationTemplateFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The serialized application template to be imported.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate serialized_application_template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.SerializedApplicationTemplateOrBuilder + getSerializedApplicationTemplateOrBuilder() { + if (serializedApplicationTemplateBuilder_ != null) { + return serializedApplicationTemplateBuilder_.getMessageOrBuilder(); + } else { + return serializedApplicationTemplate_ == null + ? com.google.cloud.designcenter.v1.SerializedApplicationTemplate.getDefaultInstance() + : serializedApplicationTemplate_; + } + } + + /** + * + * + *
+     * Required. The serialized application template to be imported.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate serialized_application_template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.SerializedApplicationTemplate, + com.google.cloud.designcenter.v1.SerializedApplicationTemplate.Builder, + com.google.cloud.designcenter.v1.SerializedApplicationTemplateOrBuilder> + internalGetSerializedApplicationTemplateFieldBuilder() { + if (serializedApplicationTemplateBuilder_ == null) { + serializedApplicationTemplateBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.SerializedApplicationTemplate, + com.google.cloud.designcenter.v1.SerializedApplicationTemplate.Builder, + com.google.cloud.designcenter.v1.SerializedApplicationTemplateOrBuilder>( + getSerializedApplicationTemplate(), getParentForChildren(), isClean()); + serializedApplicationTemplate_ = null; + } + return serializedApplicationTemplateBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ImportSerializedApplicationTemplateRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ImportSerializedApplicationTemplateRequest) + private static final com.google.cloud.designcenter.v1.ImportSerializedApplicationTemplateRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.designcenter.v1.ImportSerializedApplicationTemplateRequest(); + } + + public static com.google.cloud.designcenter.v1.ImportSerializedApplicationTemplateRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportSerializedApplicationTemplateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ImportSerializedApplicationTemplateRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ImportSerializedApplicationTemplateRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ImportSerializedApplicationTemplateRequestOrBuilder.java new file mode 100644 index 000000000000..b2faf2dad995 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ImportSerializedApplicationTemplateRequestOrBuilder.java @@ -0,0 +1,102 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ImportSerializedApplicationTemplateRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ImportSerializedApplicationTemplateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the application template.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The name of the application template.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The serialized application template to be imported.
+   * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate serialized_application_template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the serializedApplicationTemplate field is set. + */ + boolean hasSerializedApplicationTemplate(); + + /** + * + * + *
+   * Required. The serialized application template to be imported.
+   * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate serialized_application_template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The serializedApplicationTemplate. + */ + com.google.cloud.designcenter.v1.SerializedApplicationTemplate getSerializedApplicationTemplate(); + + /** + * + * + *
+   * Required. The serialized application template to be imported.
+   * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate serialized_application_template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.designcenter.v1.SerializedApplicationTemplateOrBuilder + getSerializedApplicationTemplateOrBuilder(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/InferredMetadata.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/InferredMetadata.java new file mode 100644 index 000000000000..099ba1d73433 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/InferredMetadata.java @@ -0,0 +1,1527 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Inferred metadata.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.InferredMetadata} + */ +@com.google.protobuf.Generated +public final class InferredMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.InferredMetadata) + InferredMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "InferredMetadata"); + } + + // Use InferredMetadata.newBuilder() to construct. + private InferredMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private InferredMetadata() { + description_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_InferredMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_InferredMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.InferredMetadata.class, + com.google.cloud.designcenter.v1.InferredMetadata.Builder.class); + } + + private int bitField0_; + public static final int DESCRIPTION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
+   * Output only. Inferred description.
+   * 
+ * + * string description = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+   * Output only. Inferred description.
+   * 
+ * + * string description = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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 TEMPLATE_METADATA_FIELD_NUMBER = 2; + private com.google.cloud.designcenter.v1.TFBlueprintMetadata templateMetadata_; + + /** + * + * + *
+   * Output only. Inferred template metadata related to Terraform input and
+   * output.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata template_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the templateMetadata field is set. + */ + @java.lang.Override + public boolean hasTemplateMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. Inferred template metadata related to Terraform input and
+   * output.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata template_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The templateMetadata. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TFBlueprintMetadata getTemplateMetadata() { + return templateMetadata_ == null + ? com.google.cloud.designcenter.v1.TFBlueprintMetadata.getDefaultInstance() + : templateMetadata_; + } + + /** + * + * + *
+   * Output only. Inferred template metadata related to Terraform input and
+   * output.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata template_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TFBlueprintMetadataOrBuilder + getTemplateMetadataOrBuilder() { + return templateMetadata_ == null + ? com.google.cloud.designcenter.v1.TFBlueprintMetadata.getDefaultInstance() + : templateMetadata_; + } + + public static final int CREATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+   * Output only. Inferred metadata creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. Inferred metadata creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.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. Inferred metadata creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.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 = 4; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
+   * Output only. Inferred metadata update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Output only. Inferred metadata update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.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. Inferred metadata update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + 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.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, description_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getTemplateMetadata()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getCreateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(4, getUpdateTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, description_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTemplateMetadata()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); + } + 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.designcenter.v1.InferredMetadata)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.InferredMetadata other = + (com.google.cloud.designcenter.v1.InferredMetadata) obj; + + if (!getDescription().equals(other.getDescription())) return false; + if (hasTemplateMetadata() != other.hasTemplateMetadata()) return false; + if (hasTemplateMetadata()) { + if (!getTemplateMetadata().equals(other.getTemplateMetadata())) 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 (!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) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (hasTemplateMetadata()) { + hash = (37 * hash) + TEMPLATE_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getTemplateMetadata().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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.InferredMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.InferredMetadata 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.designcenter.v1.InferredMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.InferredMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.InferredMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.InferredMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.InferredMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.InferredMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.InferredMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.InferredMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.InferredMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.InferredMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.InferredMetadata 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Inferred metadata.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.InferredMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.InferredMetadata) + com.google.cloud.designcenter.v1.InferredMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_InferredMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_InferredMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.InferredMetadata.class, + com.google.cloud.designcenter.v1.InferredMetadata.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.InferredMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetTemplateMetadataFieldBuilder(); + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + description_ = ""; + templateMetadata_ = null; + if (templateMetadataBuilder_ != null) { + templateMetadataBuilder_.dispose(); + templateMetadataBuilder_ = null; + } + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_InferredMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.InferredMetadata getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.InferredMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.InferredMetadata build() { + com.google.cloud.designcenter.v1.InferredMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.InferredMetadata buildPartial() { + com.google.cloud.designcenter.v1.InferredMetadata result = + new com.google.cloud.designcenter.v1.InferredMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.InferredMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.description_ = description_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.templateMetadata_ = + templateMetadataBuilder_ == null ? templateMetadata_ : templateMetadataBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.InferredMetadata) { + return mergeFrom((com.google.cloud.designcenter.v1.InferredMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.InferredMetadata other) { + if (other == com.google.cloud.designcenter.v1.InferredMetadata.getDefaultInstance()) + return this; + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasTemplateMetadata()) { + mergeTemplateMetadata(other.getTemplateMetadata()); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + 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: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetTemplateMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().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 description_ = ""; + + /** + * + * + *
+     * Output only. Inferred description.
+     * 
+ * + * string description = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+     * Output only. Inferred description.
+     * 
+ * + * string description = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+     * Output only. Inferred description.
+     * 
+ * + * string description = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Inferred description.
+     * 
+ * + * string description = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Inferred description.
+     * 
+ * + * string description = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.designcenter.v1.TFBlueprintMetadata templateMetadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.TFBlueprintMetadata, + com.google.cloud.designcenter.v1.TFBlueprintMetadata.Builder, + com.google.cloud.designcenter.v1.TFBlueprintMetadataOrBuilder> + templateMetadataBuilder_; + + /** + * + * + *
+     * Output only. Inferred template metadata related to Terraform input and
+     * output.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata template_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the templateMetadata field is set. + */ + public boolean hasTemplateMetadata() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Output only. Inferred template metadata related to Terraform input and
+     * output.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata template_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The templateMetadata. + */ + public com.google.cloud.designcenter.v1.TFBlueprintMetadata getTemplateMetadata() { + if (templateMetadataBuilder_ == null) { + return templateMetadata_ == null + ? com.google.cloud.designcenter.v1.TFBlueprintMetadata.getDefaultInstance() + : templateMetadata_; + } else { + return templateMetadataBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Inferred template metadata related to Terraform input and
+     * output.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata template_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTemplateMetadata(com.google.cloud.designcenter.v1.TFBlueprintMetadata value) { + if (templateMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + templateMetadata_ = value; + } else { + templateMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Inferred template metadata related to Terraform input and
+     * output.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata template_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTemplateMetadata( + com.google.cloud.designcenter.v1.TFBlueprintMetadata.Builder builderForValue) { + if (templateMetadataBuilder_ == null) { + templateMetadata_ = builderForValue.build(); + } else { + templateMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Inferred template metadata related to Terraform input and
+     * output.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata template_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeTemplateMetadata( + com.google.cloud.designcenter.v1.TFBlueprintMetadata value) { + if (templateMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && templateMetadata_ != null + && templateMetadata_ + != com.google.cloud.designcenter.v1.TFBlueprintMetadata.getDefaultInstance()) { + getTemplateMetadataBuilder().mergeFrom(value); + } else { + templateMetadata_ = value; + } + } else { + templateMetadataBuilder_.mergeFrom(value); + } + if (templateMetadata_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Inferred template metadata related to Terraform input and
+     * output.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata template_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearTemplateMetadata() { + bitField0_ = (bitField0_ & ~0x00000002); + templateMetadata_ = null; + if (templateMetadataBuilder_ != null) { + templateMetadataBuilder_.dispose(); + templateMetadataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Inferred template metadata related to Terraform input and
+     * output.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata template_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.TFBlueprintMetadata.Builder + getTemplateMetadataBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetTemplateMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Inferred template metadata related to Terraform input and
+     * output.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata template_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.TFBlueprintMetadataOrBuilder + getTemplateMetadataOrBuilder() { + if (templateMetadataBuilder_ != null) { + return templateMetadataBuilder_.getMessageOrBuilder(); + } else { + return templateMetadata_ == null + ? com.google.cloud.designcenter.v1.TFBlueprintMetadata.getDefaultInstance() + : templateMetadata_; + } + } + + /** + * + * + *
+     * Output only. Inferred template metadata related to Terraform input and
+     * output.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata template_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.TFBlueprintMetadata, + com.google.cloud.designcenter.v1.TFBlueprintMetadata.Builder, + com.google.cloud.designcenter.v1.TFBlueprintMetadataOrBuilder> + internalGetTemplateMetadataFieldBuilder() { + if (templateMetadataBuilder_ == null) { + templateMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.TFBlueprintMetadata, + com.google.cloud.designcenter.v1.TFBlueprintMetadata.Builder, + com.google.cloud.designcenter.v1.TFBlueprintMetadataOrBuilder>( + getTemplateMetadata(), getParentForChildren(), isClean()); + templateMetadata_ = null; + } + return templateMetadataBuilder_; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
+     * Output only. Inferred metadata creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Output only. Inferred metadata creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.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. Inferred metadata creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.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. Inferred metadata creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.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. Inferred metadata creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.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); + } + if (createTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Inferred metadata creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.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. Inferred metadata creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Inferred metadata creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.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. Inferred metadata creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + 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.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
+     * Output only. Inferred metadata update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Output only. Inferred metadata update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.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. Inferred metadata update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.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. Inferred metadata update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.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. Inferred metadata update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.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); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Inferred metadata update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.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. Inferred metadata update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Inferred metadata update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.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. Inferred metadata update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.InferredMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.InferredMetadata) + private static final com.google.cloud.designcenter.v1.InferredMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.InferredMetadata(); + } + + public static com.google.cloud.designcenter.v1.InferredMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InferredMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.InferredMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/InferredMetadataOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/InferredMetadataOrBuilder.java new file mode 100644 index 000000000000..25cf6bb66e86 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/InferredMetadataOrBuilder.java @@ -0,0 +1,180 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface InferredMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.InferredMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Inferred description.
+   * 
+ * + * string description = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
+   * Output only. Inferred description.
+   * 
+ * + * string description = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Output only. Inferred template metadata related to Terraform input and
+   * output.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata template_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the templateMetadata field is set. + */ + boolean hasTemplateMetadata(); + + /** + * + * + *
+   * Output only. Inferred template metadata related to Terraform input and
+   * output.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata template_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The templateMetadata. + */ + com.google.cloud.designcenter.v1.TFBlueprintMetadata getTemplateMetadata(); + + /** + * + * + *
+   * Output only. Inferred template metadata related to Terraform input and
+   * output.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata template_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.TFBlueprintMetadataOrBuilder getTemplateMetadataOrBuilder(); + + /** + * + * + *
+   * Output only. Inferred metadata creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
+   * Output only. Inferred metadata creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
+   * Output only. Inferred metadata creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Inferred metadata update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
+   * Output only. Inferred metadata update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
+   * Output only. Inferred metadata update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/IngestApplicationTemplateIaCRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/IngestApplicationTemplateIaCRequest.java new file mode 100644 index 000000000000..1cbd784d5736 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/IngestApplicationTemplateIaCRequest.java @@ -0,0 +1,2173 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Request message for IngestApplicationTemplateIaC method.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.IngestApplicationTemplateIaCRequest} + */ +@com.google.protobuf.Generated +public final class IngestApplicationTemplateIaCRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.IngestApplicationTemplateIaCRequest) + IngestApplicationTemplateIaCRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "IngestApplicationTemplateIaCRequest"); + } + + // Use IngestApplicationTemplateIaCRequest.newBuilder() to construct. + private IngestApplicationTemplateIaCRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private IngestApplicationTemplateIaCRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_IngestApplicationTemplateIaCRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_IngestApplicationTemplateIaCRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCRequest.class, + com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCRequest.Builder.class); + } + + private int sourceCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object source_; + + public enum SourceCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + GCS_URI(2), + IAC_MODULE(3), + DEVCONNECT_SOURCE_CONFIG(4), + GIT_SOURCE(5), + SOURCE_NOT_SET(0); + private final int value; + + private SourceCase(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 SourceCase valueOf(int value) { + return forNumber(value); + } + + public static SourceCase forNumber(int value) { + switch (value) { + case 2: + return GCS_URI; + case 3: + return IAC_MODULE; + case 4: + return DEVCONNECT_SOURCE_CONFIG; + case 5: + return GIT_SOURCE; + case 0: + return SOURCE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); + } + + public static final int GCS_URI_FIELD_NUMBER = 2; + + /** + * + * + *
+   * Optional. The Cloud Storage URI of the terraform code.
+   * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the gcsUri field is set. + */ + public boolean hasGcsUri() { + return sourceCase_ == 2; + } + + /** + * + * + *
+   * Optional. The Cloud Storage URI of the terraform code.
+   * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The gcsUri. + */ + public java.lang.String getGcsUri() { + java.lang.Object ref = ""; + if (sourceCase_ == 2) { + ref = source_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 2) { + source_ = s; + } + return s; + } + } + + /** + * + * + *
+   * Optional. The Cloud Storage URI of the terraform code.
+   * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for gcsUri. + */ + public com.google.protobuf.ByteString getGcsUriBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 2) { + ref = source_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 2) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IAC_MODULE_FIELD_NUMBER = 3; + + /** + * + * + *
+   * Optional. The IaC configuration to import.
+   * 
+ * + * + * .google.cloud.designcenter.v1.IaCModule iac_module = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the iacModule field is set. + */ + @java.lang.Override + public boolean hasIacModule() { + return sourceCase_ == 3; + } + + /** + * + * + *
+   * Optional. The IaC configuration to import.
+   * 
+ * + * + * .google.cloud.designcenter.v1.IaCModule iac_module = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The iacModule. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.IaCModule getIacModule() { + if (sourceCase_ == 3) { + return (com.google.cloud.designcenter.v1.IaCModule) source_; + } + return com.google.cloud.designcenter.v1.IaCModule.getDefaultInstance(); + } + + /** + * + * + *
+   * Optional. The IaC configuration to import.
+   * 
+ * + * + * .google.cloud.designcenter.v1.IaCModule iac_module = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.IaCModuleOrBuilder getIacModuleOrBuilder() { + if (sourceCase_ == 3) { + return (com.google.cloud.designcenter.v1.IaCModule) source_; + } + return com.google.cloud.designcenter.v1.IaCModule.getDefaultInstance(); + } + + public static final int DEVCONNECT_SOURCE_CONFIG_FIELD_NUMBER = 4; + + /** + * + * + *
+   * Optional. Configuration for fetching content from source code repository
+   * such as GitHub or Bitbucket through Developer Connect.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectSourceConfig devconnect_source_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the devconnectSourceConfig field is set. + */ + @java.lang.Override + public boolean hasDevconnectSourceConfig() { + return sourceCase_ == 4; + } + + /** + * + * + *
+   * Optional. Configuration for fetching content from source code repository
+   * such as GitHub or Bitbucket through Developer Connect.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectSourceConfig devconnect_source_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The devconnectSourceConfig. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig getDevconnectSourceConfig() { + if (sourceCase_ == 4) { + return (com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig) source_; + } + return com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig.getDefaultInstance(); + } + + /** + * + * + *
+   * Optional. Configuration for fetching content from source code repository
+   * such as GitHub or Bitbucket through Developer Connect.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectSourceConfig devconnect_source_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.DeveloperConnectSourceConfigOrBuilder + getDevconnectSourceConfigOrBuilder() { + if (sourceCase_ == 4) { + return (com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig) source_; + } + return com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig.getDefaultInstance(); + } + + public static final int GIT_SOURCE_FIELD_NUMBER = 5; + + /** + * + * + *
+   * Optional. The git source.
+   * 
+ * + * + * .google.cloud.designcenter.v1.GitSource git_source = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the gitSource field is set. + */ + @java.lang.Override + public boolean hasGitSource() { + return sourceCase_ == 5; + } + + /** + * + * + *
+   * Optional. The git source.
+   * 
+ * + * + * .google.cloud.designcenter.v1.GitSource git_source = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The gitSource. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.GitSource getGitSource() { + if (sourceCase_ == 5) { + return (com.google.cloud.designcenter.v1.GitSource) source_; + } + return com.google.cloud.designcenter.v1.GitSource.getDefaultInstance(); + } + + /** + * + * + *
+   * Optional. The git source.
+   * 
+ * + * + * .google.cloud.designcenter.v1.GitSource git_source = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.GitSourceOrBuilder getGitSourceOrBuilder() { + if (sourceCase_ == 5) { + return (com.google.cloud.designcenter.v1.GitSource) source_; + } + return com.google.cloud.designcenter.v1.GitSource.getDefaultInstance(); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The name of the application template.
+   * 
+ * + * + * 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 application template.
+   * 
+ * + * + * 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 VALIDATE_CATALOG_COMPATIBILITY_FIELD_NUMBER = 6; + private boolean validateCatalogCompatibility_ = false; + + /** + * + * + *
+   * Optional. If set to true, validates if the imported IaC is compatible with
+   * the catalog.
+   * 
+ * + * bool validate_catalog_compatibility = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateCatalogCompatibility. + */ + @java.lang.Override + public boolean getValidateCatalogCompatibility() { + return validateCatalogCompatibility_; + } + + public static final int RAW_TERRAFORM_IMPORT_ENABLED_FIELD_NUMBER = 7; + private boolean rawTerraformImportEnabled_ = false; + + /** + * + * + *
+   * Optional. If set to true, imports the IaC as raw terraform and does not
+   * attempt SAT conversion.
+   * 
+ * + * bool raw_terraform_import_enabled = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The rawTerraformImportEnabled. + */ + @java.lang.Override + public boolean getRawTerraformImportEnabled() { + return rawTerraformImportEnabled_; + } + + 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (sourceCase_ == 2) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, source_); + } + if (sourceCase_ == 3) { + output.writeMessage(3, (com.google.cloud.designcenter.v1.IaCModule) source_); + } + if (sourceCase_ == 4) { + output.writeMessage( + 4, (com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig) source_); + } + if (sourceCase_ == 5) { + output.writeMessage(5, (com.google.cloud.designcenter.v1.GitSource) source_); + } + if (validateCatalogCompatibility_ != false) { + output.writeBool(6, validateCatalogCompatibility_); + } + if (rawTerraformImportEnabled_ != false) { + output.writeBool(7, rawTerraformImportEnabled_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (sourceCase_ == 2) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, source_); + } + if (sourceCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.designcenter.v1.IaCModule) source_); + } + if (sourceCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig) source_); + } + if (sourceCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.cloud.designcenter.v1.GitSource) source_); + } + if (validateCatalogCompatibility_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(6, validateCatalogCompatibility_); + } + if (rawTerraformImportEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, rawTerraformImportEnabled_); + } + 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.designcenter.v1.IngestApplicationTemplateIaCRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCRequest other = + (com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (getValidateCatalogCompatibility() != other.getValidateCatalogCompatibility()) return false; + if (getRawTerraformImportEnabled() != other.getRawTerraformImportEnabled()) return false; + if (!getSourceCase().equals(other.getSourceCase())) return false; + switch (sourceCase_) { + case 2: + if (!getGcsUri().equals(other.getGcsUri())) return false; + break; + case 3: + if (!getIacModule().equals(other.getIacModule())) return false; + break; + case 4: + if (!getDevconnectSourceConfig().equals(other.getDevconnectSourceConfig())) return false; + break; + case 5: + if (!getGitSource().equals(other.getGitSource())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + VALIDATE_CATALOG_COMPATIBILITY_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateCatalogCompatibility()); + hash = (37 * hash) + RAW_TERRAFORM_IMPORT_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRawTerraformImportEnabled()); + switch (sourceCase_) { + case 2: + hash = (37 * hash) + GCS_URI_FIELD_NUMBER; + hash = (53 * hash) + getGcsUri().hashCode(); + break; + case 3: + hash = (37 * hash) + IAC_MODULE_FIELD_NUMBER; + hash = (53 * hash) + getIacModule().hashCode(); + break; + case 4: + hash = (37 * hash) + DEVCONNECT_SOURCE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDevconnectSourceConfig().hashCode(); + break; + case 5: + hash = (37 * hash) + GIT_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getGitSource().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCRequest 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.designcenter.v1.IngestApplicationTemplateIaCRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.IngestApplicationTemplateIaCRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for IngestApplicationTemplateIaC method.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.IngestApplicationTemplateIaCRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.IngestApplicationTemplateIaCRequest) + com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_IngestApplicationTemplateIaCRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_IngestApplicationTemplateIaCRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCRequest.class, + com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCRequest.Builder.class); + } + + // Construct using + // com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (iacModuleBuilder_ != null) { + iacModuleBuilder_.clear(); + } + if (devconnectSourceConfigBuilder_ != null) { + devconnectSourceConfigBuilder_.clear(); + } + if (gitSourceBuilder_ != null) { + gitSourceBuilder_.clear(); + } + name_ = ""; + validateCatalogCompatibility_ = false; + rawTerraformImportEnabled_ = false; + sourceCase_ = 0; + source_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_IngestApplicationTemplateIaCRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCRequest + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCRequest build() { + com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCRequest buildPartial() { + com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCRequest result = + new com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.validateCatalogCompatibility_ = validateCatalogCompatibility_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.rawTerraformImportEnabled_ = rawTerraformImportEnabled_; + } + } + + private void buildPartialOneofs( + com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCRequest result) { + result.sourceCase_ = sourceCase_; + result.source_ = this.source_; + if (sourceCase_ == 3 && iacModuleBuilder_ != null) { + result.source_ = iacModuleBuilder_.build(); + } + if (sourceCase_ == 4 && devconnectSourceConfigBuilder_ != null) { + result.source_ = devconnectSourceConfigBuilder_.build(); + } + if (sourceCase_ == 5 && gitSourceBuilder_ != null) { + result.source_ = gitSourceBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCRequest) { + return mergeFrom( + (com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCRequest other) { + if (other + == com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.getValidateCatalogCompatibility() != false) { + setValidateCatalogCompatibility(other.getValidateCatalogCompatibility()); + } + if (other.getRawTerraformImportEnabled() != false) { + setRawTerraformImportEnabled(other.getRawTerraformImportEnabled()); + } + switch (other.getSourceCase()) { + case GCS_URI: + { + sourceCase_ = 2; + source_ = other.source_; + onChanged(); + break; + } + case IAC_MODULE: + { + mergeIacModule(other.getIacModule()); + break; + } + case DEVCONNECT_SOURCE_CONFIG: + { + mergeDevconnectSourceConfig(other.getDevconnectSourceConfig()); + break; + } + case GIT_SOURCE: + { + mergeGitSource(other.getGitSource()); + break; + } + case SOURCE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 2; + source_ = s; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetIacModuleFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetDevconnectSourceConfigFieldBuilder().getBuilder(), + extensionRegistry); + sourceCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetGitSourceFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 5; + break; + } // case 42 + case 48: + { + validateCatalogCompatibility_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: + { + rawTerraformImportEnabled_ = input.readBool(); + 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 sourceCase_ = 0; + private java.lang.Object source_; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); + } + + public Builder clearSource() { + sourceCase_ = 0; + source_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
+     * Optional. The Cloud Storage URI of the terraform code.
+     * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the gcsUri field is set. + */ + @java.lang.Override + public boolean hasGcsUri() { + return sourceCase_ == 2; + } + + /** + * + * + *
+     * Optional. The Cloud Storage URI of the terraform code.
+     * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The gcsUri. + */ + @java.lang.Override + public java.lang.String getGcsUri() { + java.lang.Object ref = ""; + if (sourceCase_ == 2) { + ref = source_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 2) { + source_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The Cloud Storage URI of the terraform code.
+     * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for gcsUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGcsUriBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 2) { + ref = source_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 2) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The Cloud Storage URI of the terraform code.
+     * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The gcsUri to set. + * @return This builder for chaining. + */ + public Builder setGcsUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceCase_ = 2; + source_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The Cloud Storage URI of the terraform code.
+     * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearGcsUri() { + if (sourceCase_ == 2) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The Cloud Storage URI of the terraform code.
+     * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for gcsUri to set. + * @return This builder for chaining. + */ + public Builder setGcsUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceCase_ = 2; + source_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.IaCModule, + com.google.cloud.designcenter.v1.IaCModule.Builder, + com.google.cloud.designcenter.v1.IaCModuleOrBuilder> + iacModuleBuilder_; + + /** + * + * + *
+     * Optional. The IaC configuration to import.
+     * 
+ * + * + * .google.cloud.designcenter.v1.IaCModule iac_module = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the iacModule field is set. + */ + @java.lang.Override + public boolean hasIacModule() { + return sourceCase_ == 3; + } + + /** + * + * + *
+     * Optional. The IaC configuration to import.
+     * 
+ * + * + * .google.cloud.designcenter.v1.IaCModule iac_module = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The iacModule. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.IaCModule getIacModule() { + if (iacModuleBuilder_ == null) { + if (sourceCase_ == 3) { + return (com.google.cloud.designcenter.v1.IaCModule) source_; + } + return com.google.cloud.designcenter.v1.IaCModule.getDefaultInstance(); + } else { + if (sourceCase_ == 3) { + return iacModuleBuilder_.getMessage(); + } + return com.google.cloud.designcenter.v1.IaCModule.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. The IaC configuration to import.
+     * 
+ * + * + * .google.cloud.designcenter.v1.IaCModule iac_module = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIacModule(com.google.cloud.designcenter.v1.IaCModule value) { + if (iacModuleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + iacModuleBuilder_.setMessage(value); + } + sourceCase_ = 3; + return this; + } + + /** + * + * + *
+     * Optional. The IaC configuration to import.
+     * 
+ * + * + * .google.cloud.designcenter.v1.IaCModule iac_module = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIacModule( + com.google.cloud.designcenter.v1.IaCModule.Builder builderForValue) { + if (iacModuleBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + iacModuleBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 3; + return this; + } + + /** + * + * + *
+     * Optional. The IaC configuration to import.
+     * 
+ * + * + * .google.cloud.designcenter.v1.IaCModule iac_module = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeIacModule(com.google.cloud.designcenter.v1.IaCModule value) { + if (iacModuleBuilder_ == null) { + if (sourceCase_ == 3 + && source_ != com.google.cloud.designcenter.v1.IaCModule.getDefaultInstance()) { + source_ = + com.google.cloud.designcenter.v1.IaCModule.newBuilder( + (com.google.cloud.designcenter.v1.IaCModule) source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 3) { + iacModuleBuilder_.mergeFrom(value); + } else { + iacModuleBuilder_.setMessage(value); + } + } + sourceCase_ = 3; + return this; + } + + /** + * + * + *
+     * Optional. The IaC configuration to import.
+     * 
+ * + * + * .google.cloud.designcenter.v1.IaCModule iac_module = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearIacModule() { + if (iacModuleBuilder_ == null) { + if (sourceCase_ == 3) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 3) { + sourceCase_ = 0; + source_ = null; + } + iacModuleBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. The IaC configuration to import.
+     * 
+ * + * + * .google.cloud.designcenter.v1.IaCModule iac_module = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.IaCModule.Builder getIacModuleBuilder() { + return internalGetIacModuleFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The IaC configuration to import.
+     * 
+ * + * + * .google.cloud.designcenter.v1.IaCModule iac_module = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.IaCModuleOrBuilder getIacModuleOrBuilder() { + if ((sourceCase_ == 3) && (iacModuleBuilder_ != null)) { + return iacModuleBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 3) { + return (com.google.cloud.designcenter.v1.IaCModule) source_; + } + return com.google.cloud.designcenter.v1.IaCModule.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. The IaC configuration to import.
+     * 
+ * + * + * .google.cloud.designcenter.v1.IaCModule iac_module = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.IaCModule, + com.google.cloud.designcenter.v1.IaCModule.Builder, + com.google.cloud.designcenter.v1.IaCModuleOrBuilder> + internalGetIacModuleFieldBuilder() { + if (iacModuleBuilder_ == null) { + if (!(sourceCase_ == 3)) { + source_ = com.google.cloud.designcenter.v1.IaCModule.getDefaultInstance(); + } + iacModuleBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.IaCModule, + com.google.cloud.designcenter.v1.IaCModule.Builder, + com.google.cloud.designcenter.v1.IaCModuleOrBuilder>( + (com.google.cloud.designcenter.v1.IaCModule) source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 3; + onChanged(); + return iacModuleBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig, + com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig.Builder, + com.google.cloud.designcenter.v1.DeveloperConnectSourceConfigOrBuilder> + devconnectSourceConfigBuilder_; + + /** + * + * + *
+     * Optional. Configuration for fetching content from source code repository
+     * such as GitHub or Bitbucket through Developer Connect.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectSourceConfig devconnect_source_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the devconnectSourceConfig field is set. + */ + @java.lang.Override + public boolean hasDevconnectSourceConfig() { + return sourceCase_ == 4; + } + + /** + * + * + *
+     * Optional. Configuration for fetching content from source code repository
+     * such as GitHub or Bitbucket through Developer Connect.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectSourceConfig devconnect_source_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The devconnectSourceConfig. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig + getDevconnectSourceConfig() { + if (devconnectSourceConfigBuilder_ == null) { + if (sourceCase_ == 4) { + return (com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig) source_; + } + return com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig.getDefaultInstance(); + } else { + if (sourceCase_ == 4) { + return devconnectSourceConfigBuilder_.getMessage(); + } + return com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. Configuration for fetching content from source code repository
+     * such as GitHub or Bitbucket through Developer Connect.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectSourceConfig devconnect_source_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDevconnectSourceConfig( + com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig value) { + if (devconnectSourceConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + devconnectSourceConfigBuilder_.setMessage(value); + } + sourceCase_ = 4; + return this; + } + + /** + * + * + *
+     * Optional. Configuration for fetching content from source code repository
+     * such as GitHub or Bitbucket through Developer Connect.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectSourceConfig devconnect_source_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDevconnectSourceConfig( + com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig.Builder builderForValue) { + if (devconnectSourceConfigBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + devconnectSourceConfigBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 4; + return this; + } + + /** + * + * + *
+     * Optional. Configuration for fetching content from source code repository
+     * such as GitHub or Bitbucket through Developer Connect.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectSourceConfig devconnect_source_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeDevconnectSourceConfig( + com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig value) { + if (devconnectSourceConfigBuilder_ == null) { + if (sourceCase_ == 4 + && source_ + != com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig + .getDefaultInstance()) { + source_ = + com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig.newBuilder( + (com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig) source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 4) { + devconnectSourceConfigBuilder_.mergeFrom(value); + } else { + devconnectSourceConfigBuilder_.setMessage(value); + } + } + sourceCase_ = 4; + return this; + } + + /** + * + * + *
+     * Optional. Configuration for fetching content from source code repository
+     * such as GitHub or Bitbucket through Developer Connect.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectSourceConfig devconnect_source_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDevconnectSourceConfig() { + if (devconnectSourceConfigBuilder_ == null) { + if (sourceCase_ == 4) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 4) { + sourceCase_ = 0; + source_ = null; + } + devconnectSourceConfigBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Configuration for fetching content from source code repository
+     * such as GitHub or Bitbucket through Developer Connect.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectSourceConfig devconnect_source_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig.Builder + getDevconnectSourceConfigBuilder() { + return internalGetDevconnectSourceConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Configuration for fetching content from source code repository
+     * such as GitHub or Bitbucket through Developer Connect.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectSourceConfig devconnect_source_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.DeveloperConnectSourceConfigOrBuilder + getDevconnectSourceConfigOrBuilder() { + if ((sourceCase_ == 4) && (devconnectSourceConfigBuilder_ != null)) { + return devconnectSourceConfigBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 4) { + return (com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig) source_; + } + return com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. Configuration for fetching content from source code repository
+     * such as GitHub or Bitbucket through Developer Connect.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectSourceConfig devconnect_source_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig, + com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig.Builder, + com.google.cloud.designcenter.v1.DeveloperConnectSourceConfigOrBuilder> + internalGetDevconnectSourceConfigFieldBuilder() { + if (devconnectSourceConfigBuilder_ == null) { + if (!(sourceCase_ == 4)) { + source_ = + com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig.getDefaultInstance(); + } + devconnectSourceConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig, + com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig.Builder, + com.google.cloud.designcenter.v1.DeveloperConnectSourceConfigOrBuilder>( + (com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig) source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 4; + onChanged(); + return devconnectSourceConfigBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.GitSource, + com.google.cloud.designcenter.v1.GitSource.Builder, + com.google.cloud.designcenter.v1.GitSourceOrBuilder> + gitSourceBuilder_; + + /** + * + * + *
+     * Optional. The git source.
+     * 
+ * + * + * .google.cloud.designcenter.v1.GitSource git_source = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the gitSource field is set. + */ + @java.lang.Override + public boolean hasGitSource() { + return sourceCase_ == 5; + } + + /** + * + * + *
+     * Optional. The git source.
+     * 
+ * + * + * .google.cloud.designcenter.v1.GitSource git_source = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The gitSource. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.GitSource getGitSource() { + if (gitSourceBuilder_ == null) { + if (sourceCase_ == 5) { + return (com.google.cloud.designcenter.v1.GitSource) source_; + } + return com.google.cloud.designcenter.v1.GitSource.getDefaultInstance(); + } else { + if (sourceCase_ == 5) { + return gitSourceBuilder_.getMessage(); + } + return com.google.cloud.designcenter.v1.GitSource.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. The git source.
+     * 
+ * + * + * .google.cloud.designcenter.v1.GitSource git_source = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGitSource(com.google.cloud.designcenter.v1.GitSource value) { + if (gitSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + gitSourceBuilder_.setMessage(value); + } + sourceCase_ = 5; + return this; + } + + /** + * + * + *
+     * Optional. The git source.
+     * 
+ * + * + * .google.cloud.designcenter.v1.GitSource git_source = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGitSource( + com.google.cloud.designcenter.v1.GitSource.Builder builderForValue) { + if (gitSourceBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + gitSourceBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 5; + return this; + } + + /** + * + * + *
+     * Optional. The git source.
+     * 
+ * + * + * .google.cloud.designcenter.v1.GitSource git_source = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeGitSource(com.google.cloud.designcenter.v1.GitSource value) { + if (gitSourceBuilder_ == null) { + if (sourceCase_ == 5 + && source_ != com.google.cloud.designcenter.v1.GitSource.getDefaultInstance()) { + source_ = + com.google.cloud.designcenter.v1.GitSource.newBuilder( + (com.google.cloud.designcenter.v1.GitSource) source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 5) { + gitSourceBuilder_.mergeFrom(value); + } else { + gitSourceBuilder_.setMessage(value); + } + } + sourceCase_ = 5; + return this; + } + + /** + * + * + *
+     * Optional. The git source.
+     * 
+ * + * + * .google.cloud.designcenter.v1.GitSource git_source = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearGitSource() { + if (gitSourceBuilder_ == null) { + if (sourceCase_ == 5) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 5) { + sourceCase_ = 0; + source_ = null; + } + gitSourceBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. The git source.
+     * 
+ * + * + * .google.cloud.designcenter.v1.GitSource git_source = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.GitSource.Builder getGitSourceBuilder() { + return internalGetGitSourceFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The git source.
+     * 
+ * + * + * .google.cloud.designcenter.v1.GitSource git_source = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.GitSourceOrBuilder getGitSourceOrBuilder() { + if ((sourceCase_ == 5) && (gitSourceBuilder_ != null)) { + return gitSourceBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 5) { + return (com.google.cloud.designcenter.v1.GitSource) source_; + } + return com.google.cloud.designcenter.v1.GitSource.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. The git source.
+     * 
+ * + * + * .google.cloud.designcenter.v1.GitSource git_source = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.GitSource, + com.google.cloud.designcenter.v1.GitSource.Builder, + com.google.cloud.designcenter.v1.GitSourceOrBuilder> + internalGetGitSourceFieldBuilder() { + if (gitSourceBuilder_ == null) { + if (!(sourceCase_ == 5)) { + source_ = com.google.cloud.designcenter.v1.GitSource.getDefaultInstance(); + } + gitSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.GitSource, + com.google.cloud.designcenter.v1.GitSource.Builder, + com.google.cloud.designcenter.v1.GitSourceOrBuilder>( + (com.google.cloud.designcenter.v1.GitSource) source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 5; + onChanged(); + return gitSourceBuilder_; + } + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The name of the application template.
+     * 
+ * + * + * 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 application template.
+     * 
+ * + * + * 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 application template.
+     * 
+ * + * + * 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_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The name of the application template.
+     * 
+ * + * + * 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_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The name of the application template.
+     * 
+ * + * + * 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_ |= 0x00000010; + onChanged(); + return this; + } + + private boolean validateCatalogCompatibility_; + + /** + * + * + *
+     * Optional. If set to true, validates if the imported IaC is compatible with
+     * the catalog.
+     * 
+ * + * bool validate_catalog_compatibility = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The validateCatalogCompatibility. + */ + @java.lang.Override + public boolean getValidateCatalogCompatibility() { + return validateCatalogCompatibility_; + } + + /** + * + * + *
+     * Optional. If set to true, validates if the imported IaC is compatible with
+     * the catalog.
+     * 
+ * + * bool validate_catalog_compatibility = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The validateCatalogCompatibility to set. + * @return This builder for chaining. + */ + public Builder setValidateCatalogCompatibility(boolean value) { + + validateCatalogCompatibility_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. If set to true, validates if the imported IaC is compatible with
+     * the catalog.
+     * 
+ * + * bool validate_catalog_compatibility = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearValidateCatalogCompatibility() { + bitField0_ = (bitField0_ & ~0x00000020); + validateCatalogCompatibility_ = false; + onChanged(); + return this; + } + + private boolean rawTerraformImportEnabled_; + + /** + * + * + *
+     * Optional. If set to true, imports the IaC as raw terraform and does not
+     * attempt SAT conversion.
+     * 
+ * + * bool raw_terraform_import_enabled = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The rawTerraformImportEnabled. + */ + @java.lang.Override + public boolean getRawTerraformImportEnabled() { + return rawTerraformImportEnabled_; + } + + /** + * + * + *
+     * Optional. If set to true, imports the IaC as raw terraform and does not
+     * attempt SAT conversion.
+     * 
+ * + * bool raw_terraform_import_enabled = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The rawTerraformImportEnabled to set. + * @return This builder for chaining. + */ + public Builder setRawTerraformImportEnabled(boolean value) { + + rawTerraformImportEnabled_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. If set to true, imports the IaC as raw terraform and does not
+     * attempt SAT conversion.
+     * 
+ * + * bool raw_terraform_import_enabled = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRawTerraformImportEnabled() { + bitField0_ = (bitField0_ & ~0x00000040); + rawTerraformImportEnabled_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.IngestApplicationTemplateIaCRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.IngestApplicationTemplateIaCRequest) + private static final com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCRequest(); + } + + public static com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IngestApplicationTemplateIaCRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.IngestApplicationTemplateIaCRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/IngestApplicationTemplateIaCRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/IngestApplicationTemplateIaCRequestOrBuilder.java new file mode 100644 index 000000000000..ba1068f99cef --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/IngestApplicationTemplateIaCRequestOrBuilder.java @@ -0,0 +1,260 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface IngestApplicationTemplateIaCRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.IngestApplicationTemplateIaCRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The Cloud Storage URI of the terraform code.
+   * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the gcsUri field is set. + */ + boolean hasGcsUri(); + + /** + * + * + *
+   * Optional. The Cloud Storage URI of the terraform code.
+   * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The gcsUri. + */ + java.lang.String getGcsUri(); + + /** + * + * + *
+   * Optional. The Cloud Storage URI of the terraform code.
+   * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for gcsUri. + */ + com.google.protobuf.ByteString getGcsUriBytes(); + + /** + * + * + *
+   * Optional. The IaC configuration to import.
+   * 
+ * + * + * .google.cloud.designcenter.v1.IaCModule iac_module = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the iacModule field is set. + */ + boolean hasIacModule(); + + /** + * + * + *
+   * Optional. The IaC configuration to import.
+   * 
+ * + * + * .google.cloud.designcenter.v1.IaCModule iac_module = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The iacModule. + */ + com.google.cloud.designcenter.v1.IaCModule getIacModule(); + + /** + * + * + *
+   * Optional. The IaC configuration to import.
+   * 
+ * + * + * .google.cloud.designcenter.v1.IaCModule iac_module = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.IaCModuleOrBuilder getIacModuleOrBuilder(); + + /** + * + * + *
+   * Optional. Configuration for fetching content from source code repository
+   * such as GitHub or Bitbucket through Developer Connect.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectSourceConfig devconnect_source_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the devconnectSourceConfig field is set. + */ + boolean hasDevconnectSourceConfig(); + + /** + * + * + *
+   * Optional. Configuration for fetching content from source code repository
+   * such as GitHub or Bitbucket through Developer Connect.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectSourceConfig devconnect_source_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The devconnectSourceConfig. + */ + com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig getDevconnectSourceConfig(); + + /** + * + * + *
+   * Optional. Configuration for fetching content from source code repository
+   * such as GitHub or Bitbucket through Developer Connect.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectSourceConfig devconnect_source_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.DeveloperConnectSourceConfigOrBuilder + getDevconnectSourceConfigOrBuilder(); + + /** + * + * + *
+   * Optional. The git source.
+   * 
+ * + * + * .google.cloud.designcenter.v1.GitSource git_source = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the gitSource field is set. + */ + boolean hasGitSource(); + + /** + * + * + *
+   * Optional. The git source.
+   * 
+ * + * + * .google.cloud.designcenter.v1.GitSource git_source = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The gitSource. + */ + com.google.cloud.designcenter.v1.GitSource getGitSource(); + + /** + * + * + *
+   * Optional. The git source.
+   * 
+ * + * + * .google.cloud.designcenter.v1.GitSource git_source = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.GitSourceOrBuilder getGitSourceOrBuilder(); + + /** + * + * + *
+   * Required. The name of the application template.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The name of the application template.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. If set to true, validates if the imported IaC is compatible with
+   * the catalog.
+   * 
+ * + * bool validate_catalog_compatibility = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateCatalogCompatibility. + */ + boolean getValidateCatalogCompatibility(); + + /** + * + * + *
+   * Optional. If set to true, imports the IaC as raw terraform and does not
+   * attempt SAT conversion.
+   * 
+ * + * bool raw_terraform_import_enabled = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The rawTerraformImportEnabled. + */ + boolean getRawTerraformImportEnabled(); + + com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCRequest.SourceCase getSourceCase(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/IngestApplicationTemplateIaCResponse.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/IngestApplicationTemplateIaCResponse.java new file mode 100644 index 000000000000..be08249332b2 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/IngestApplicationTemplateIaCResponse.java @@ -0,0 +1,1415 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Response message for IngestApplicationTemplateIaC method.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.IngestApplicationTemplateIaCResponse} + */ +@com.google.protobuf.Generated +public final class IngestApplicationTemplateIaCResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.IngestApplicationTemplateIaCResponse) + IngestApplicationTemplateIaCResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "IngestApplicationTemplateIaCResponse"); + } + + // Use IngestApplicationTemplateIaCResponse.newBuilder() to construct. + private IngestApplicationTemplateIaCResponse( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private IngestApplicationTemplateIaCResponse() { + errors_ = java.util.Collections.emptyList(); + state_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_IngestApplicationTemplateIaCResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_IngestApplicationTemplateIaCResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCResponse.class, + com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCResponse.Builder.class); + } + + private int bitField0_; + public static final int APPLICATION_TEMPLATE_FIELD_NUMBER = 1; + private com.google.cloud.designcenter.v1.ApplicationTemplate applicationTemplate_; + + /** + * + * + *
+   * Application template corresponding to the imported IaC.
+   * 
+ * + * .google.cloud.designcenter.v1.ApplicationTemplate application_template = 1; + * + * @return Whether the applicationTemplate field is set. + */ + @java.lang.Override + public boolean hasApplicationTemplate() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Application template corresponding to the imported IaC.
+   * 
+ * + * .google.cloud.designcenter.v1.ApplicationTemplate application_template = 1; + * + * @return The applicationTemplate. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ApplicationTemplate getApplicationTemplate() { + return applicationTemplate_ == null + ? com.google.cloud.designcenter.v1.ApplicationTemplate.getDefaultInstance() + : applicationTemplate_; + } + + /** + * + * + *
+   * Application template corresponding to the imported IaC.
+   * 
+ * + * .google.cloud.designcenter.v1.ApplicationTemplate application_template = 1; + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ApplicationTemplateOrBuilder + getApplicationTemplateOrBuilder() { + return applicationTemplate_ == null + ? com.google.cloud.designcenter.v1.ApplicationTemplate.getDefaultInstance() + : applicationTemplate_; + } + + public static final int ERRORS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List errors_; + + /** + * + * + *
+   * Errors encountered during import.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + @java.lang.Override + public java.util.List getErrorsList() { + return errors_; + } + + /** + * + * + *
+   * Errors encountered during import.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + @java.lang.Override + public java.util.List + getErrorsOrBuilderList() { + return errors_; + } + + /** + * + * + *
+   * Errors encountered during import.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + @java.lang.Override + public int getErrorsCount() { + return errors_.size(); + } + + /** + * + * + *
+   * Errors encountered during import.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ImportIaCError getErrors(int index) { + return errors_.get(index); + } + + /** + * + * + *
+   * Errors encountered during import.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ImportIaCErrorOrBuilder getErrorsOrBuilder(int index) { + return errors_.get(index); + } + + public static final int STATE_FIELD_NUMBER = 3; + private int state_ = 0; + + /** + * + * + *
+   * The state of the import.
+   * 
+ * + * .google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse.State state = 3; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+   * The state of the import.
+   * 
+ * + * .google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse.State state = 3; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse.State getState() { + com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse.State result = + com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse.State.forNumber( + state_); + return result == null + ? com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse.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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getApplicationTemplate()); + } + for (int i = 0; i < errors_.size(); i++) { + output.writeMessage(2, errors_.get(i)); + } + if (state_ + != com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse.State + .STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, state_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getApplicationTemplate()); + } + for (int i = 0; i < errors_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, errors_.get(i)); + } + if (state_ + != com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse.State + .STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, 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.designcenter.v1.IngestApplicationTemplateIaCResponse)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCResponse other = + (com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCResponse) obj; + + if (hasApplicationTemplate() != other.hasApplicationTemplate()) return false; + if (hasApplicationTemplate()) { + if (!getApplicationTemplate().equals(other.getApplicationTemplate())) return false; + } + if (!getErrorsList().equals(other.getErrorsList())) 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(); + if (hasApplicationTemplate()) { + hash = (37 * hash) + APPLICATION_TEMPLATE_FIELD_NUMBER; + hash = (53 * hash) + getApplicationTemplate().hashCode(); + } + if (getErrorsCount() > 0) { + hash = (37 * hash) + ERRORS_FIELD_NUMBER; + hash = (53 * hash) + getErrorsList().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.designcenter.v1.IngestApplicationTemplateIaCResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCResponse 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.designcenter.v1.IngestApplicationTemplateIaCResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.IngestApplicationTemplateIaCResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response message for IngestApplicationTemplateIaC method.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.IngestApplicationTemplateIaCResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.IngestApplicationTemplateIaCResponse) + com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_IngestApplicationTemplateIaCResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_IngestApplicationTemplateIaCResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCResponse.class, + com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCResponse.Builder.class); + } + + // Construct using + // com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetApplicationTemplateFieldBuilder(); + internalGetErrorsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + applicationTemplate_ = null; + if (applicationTemplateBuilder_ != null) { + applicationTemplateBuilder_.dispose(); + applicationTemplateBuilder_ = null; + } + if (errorsBuilder_ == null) { + errors_ = java.util.Collections.emptyList(); + } else { + errors_ = null; + errorsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + state_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_IngestApplicationTemplateIaCResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCResponse + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCResponse build() { + com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCResponse buildPartial() { + com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCResponse result = + new com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCResponse result) { + if (errorsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + errors_ = java.util.Collections.unmodifiableList(errors_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.errors_ = errors_; + } else { + result.errors_ = errorsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.applicationTemplate_ = + applicationTemplateBuilder_ == null + ? applicationTemplate_ + : applicationTemplateBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.state_ = state_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCResponse) { + return mergeFrom( + (com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCResponse other) { + if (other + == com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCResponse + .getDefaultInstance()) return this; + if (other.hasApplicationTemplate()) { + mergeApplicationTemplate(other.getApplicationTemplate()); + } + if (errorsBuilder_ == null) { + if (!other.errors_.isEmpty()) { + if (errors_.isEmpty()) { + errors_ = other.errors_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureErrorsIsMutable(); + errors_.addAll(other.errors_); + } + onChanged(); + } + } else { + if (!other.errors_.isEmpty()) { + if (errorsBuilder_.isEmpty()) { + errorsBuilder_.dispose(); + errorsBuilder_ = null; + errors_ = other.errors_; + bitField0_ = (bitField0_ & ~0x00000002); + errorsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetErrorsFieldBuilder() + : null; + } else { + errorsBuilder_.addAllMessages(other.errors_); + } + } + } + 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: + { + input.readMessage( + internalGetApplicationTemplateFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.designcenter.v1.ImportIaCError m = + input.readMessage( + com.google.cloud.designcenter.v1.ImportIaCError.parser(), + extensionRegistry); + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.add(m); + } else { + errorsBuilder_.addMessage(m); + } + break; + } // case 18 + case 24: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + 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.designcenter.v1.ApplicationTemplate applicationTemplate_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ApplicationTemplate, + com.google.cloud.designcenter.v1.ApplicationTemplate.Builder, + com.google.cloud.designcenter.v1.ApplicationTemplateOrBuilder> + applicationTemplateBuilder_; + + /** + * + * + *
+     * Application template corresponding to the imported IaC.
+     * 
+ * + * .google.cloud.designcenter.v1.ApplicationTemplate application_template = 1; + * + * @return Whether the applicationTemplate field is set. + */ + public boolean hasApplicationTemplate() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Application template corresponding to the imported IaC.
+     * 
+ * + * .google.cloud.designcenter.v1.ApplicationTemplate application_template = 1; + * + * @return The applicationTemplate. + */ + public com.google.cloud.designcenter.v1.ApplicationTemplate getApplicationTemplate() { + if (applicationTemplateBuilder_ == null) { + return applicationTemplate_ == null + ? com.google.cloud.designcenter.v1.ApplicationTemplate.getDefaultInstance() + : applicationTemplate_; + } else { + return applicationTemplateBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Application template corresponding to the imported IaC.
+     * 
+ * + * .google.cloud.designcenter.v1.ApplicationTemplate application_template = 1; + */ + public Builder setApplicationTemplate( + com.google.cloud.designcenter.v1.ApplicationTemplate value) { + if (applicationTemplateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + applicationTemplate_ = value; + } else { + applicationTemplateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Application template corresponding to the imported IaC.
+     * 
+ * + * .google.cloud.designcenter.v1.ApplicationTemplate application_template = 1; + */ + public Builder setApplicationTemplate( + com.google.cloud.designcenter.v1.ApplicationTemplate.Builder builderForValue) { + if (applicationTemplateBuilder_ == null) { + applicationTemplate_ = builderForValue.build(); + } else { + applicationTemplateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Application template corresponding to the imported IaC.
+     * 
+ * + * .google.cloud.designcenter.v1.ApplicationTemplate application_template = 1; + */ + public Builder mergeApplicationTemplate( + com.google.cloud.designcenter.v1.ApplicationTemplate value) { + if (applicationTemplateBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && applicationTemplate_ != null + && applicationTemplate_ + != com.google.cloud.designcenter.v1.ApplicationTemplate.getDefaultInstance()) { + getApplicationTemplateBuilder().mergeFrom(value); + } else { + applicationTemplate_ = value; + } + } else { + applicationTemplateBuilder_.mergeFrom(value); + } + if (applicationTemplate_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Application template corresponding to the imported IaC.
+     * 
+ * + * .google.cloud.designcenter.v1.ApplicationTemplate application_template = 1; + */ + public Builder clearApplicationTemplate() { + bitField0_ = (bitField0_ & ~0x00000001); + applicationTemplate_ = null; + if (applicationTemplateBuilder_ != null) { + applicationTemplateBuilder_.dispose(); + applicationTemplateBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Application template corresponding to the imported IaC.
+     * 
+ * + * .google.cloud.designcenter.v1.ApplicationTemplate application_template = 1; + */ + public com.google.cloud.designcenter.v1.ApplicationTemplate.Builder + getApplicationTemplateBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetApplicationTemplateFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Application template corresponding to the imported IaC.
+     * 
+ * + * .google.cloud.designcenter.v1.ApplicationTemplate application_template = 1; + */ + public com.google.cloud.designcenter.v1.ApplicationTemplateOrBuilder + getApplicationTemplateOrBuilder() { + if (applicationTemplateBuilder_ != null) { + return applicationTemplateBuilder_.getMessageOrBuilder(); + } else { + return applicationTemplate_ == null + ? com.google.cloud.designcenter.v1.ApplicationTemplate.getDefaultInstance() + : applicationTemplate_; + } + } + + /** + * + * + *
+     * Application template corresponding to the imported IaC.
+     * 
+ * + * .google.cloud.designcenter.v1.ApplicationTemplate application_template = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ApplicationTemplate, + com.google.cloud.designcenter.v1.ApplicationTemplate.Builder, + com.google.cloud.designcenter.v1.ApplicationTemplateOrBuilder> + internalGetApplicationTemplateFieldBuilder() { + if (applicationTemplateBuilder_ == null) { + applicationTemplateBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ApplicationTemplate, + com.google.cloud.designcenter.v1.ApplicationTemplate.Builder, + com.google.cloud.designcenter.v1.ApplicationTemplateOrBuilder>( + getApplicationTemplate(), getParentForChildren(), isClean()); + applicationTemplate_ = null; + } + return applicationTemplateBuilder_; + } + + private java.util.List errors_ = + java.util.Collections.emptyList(); + + private void ensureErrorsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + errors_ = new java.util.ArrayList(errors_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ImportIaCError, + com.google.cloud.designcenter.v1.ImportIaCError.Builder, + com.google.cloud.designcenter.v1.ImportIaCErrorOrBuilder> + errorsBuilder_; + + /** + * + * + *
+     * Errors encountered during import.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + public java.util.List getErrorsList() { + if (errorsBuilder_ == null) { + return java.util.Collections.unmodifiableList(errors_); + } else { + return errorsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Errors encountered during import.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + public int getErrorsCount() { + if (errorsBuilder_ == null) { + return errors_.size(); + } else { + return errorsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Errors encountered during import.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + public com.google.cloud.designcenter.v1.ImportIaCError getErrors(int index) { + if (errorsBuilder_ == null) { + return errors_.get(index); + } else { + return errorsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Errors encountered during import.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + public Builder setErrors(int index, com.google.cloud.designcenter.v1.ImportIaCError value) { + if (errorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.set(index, value); + onChanged(); + } else { + errorsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Errors encountered during import.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + public Builder setErrors( + int index, com.google.cloud.designcenter.v1.ImportIaCError.Builder builderForValue) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.set(index, builderForValue.build()); + onChanged(); + } else { + errorsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Errors encountered during import.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + public Builder addErrors(com.google.cloud.designcenter.v1.ImportIaCError value) { + if (errorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.add(value); + onChanged(); + } else { + errorsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Errors encountered during import.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + public Builder addErrors(int index, com.google.cloud.designcenter.v1.ImportIaCError value) { + if (errorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.add(index, value); + onChanged(); + } else { + errorsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Errors encountered during import.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + public Builder addErrors( + com.google.cloud.designcenter.v1.ImportIaCError.Builder builderForValue) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.add(builderForValue.build()); + onChanged(); + } else { + errorsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Errors encountered during import.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + public Builder addErrors( + int index, com.google.cloud.designcenter.v1.ImportIaCError.Builder builderForValue) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.add(index, builderForValue.build()); + onChanged(); + } else { + errorsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Errors encountered during import.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + public Builder addAllErrors( + java.lang.Iterable values) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errors_); + onChanged(); + } else { + errorsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Errors encountered during import.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + public Builder clearErrors() { + if (errorsBuilder_ == null) { + errors_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + errorsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Errors encountered during import.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + public Builder removeErrors(int index) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.remove(index); + onChanged(); + } else { + errorsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Errors encountered during import.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + public com.google.cloud.designcenter.v1.ImportIaCError.Builder getErrorsBuilder(int index) { + return internalGetErrorsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Errors encountered during import.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + public com.google.cloud.designcenter.v1.ImportIaCErrorOrBuilder getErrorsOrBuilder(int index) { + if (errorsBuilder_ == null) { + return errors_.get(index); + } else { + return errorsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Errors encountered during import.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + public java.util.List + getErrorsOrBuilderList() { + if (errorsBuilder_ != null) { + return errorsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(errors_); + } + } + + /** + * + * + *
+     * Errors encountered during import.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + public com.google.cloud.designcenter.v1.ImportIaCError.Builder addErrorsBuilder() { + return internalGetErrorsFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.ImportIaCError.getDefaultInstance()); + } + + /** + * + * + *
+     * Errors encountered during import.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + public com.google.cloud.designcenter.v1.ImportIaCError.Builder addErrorsBuilder(int index) { + return internalGetErrorsFieldBuilder() + .addBuilder(index, com.google.cloud.designcenter.v1.ImportIaCError.getDefaultInstance()); + } + + /** + * + * + *
+     * Errors encountered during import.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + public java.util.List + getErrorsBuilderList() { + return internalGetErrorsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ImportIaCError, + com.google.cloud.designcenter.v1.ImportIaCError.Builder, + com.google.cloud.designcenter.v1.ImportIaCErrorOrBuilder> + internalGetErrorsFieldBuilder() { + if (errorsBuilder_ == null) { + errorsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ImportIaCError, + com.google.cloud.designcenter.v1.ImportIaCError.Builder, + com.google.cloud.designcenter.v1.ImportIaCErrorOrBuilder>( + errors_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + errors_ = null; + } + return errorsBuilder_; + } + + private int state_ = 0; + + /** + * + * + *
+     * The state of the import.
+     * 
+ * + * .google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse.State state = 3; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+     * The state of the import.
+     * 
+ * + * .google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse.State state = 3; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * The state of the import.
+     * 
+ * + * .google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse.State state = 3; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse.State getState() { + com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse.State result = + com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse.State.forNumber( + state_); + return result == null + ? com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * The state of the import.
+     * 
+ * + * .google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse.State state = 3; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState( + com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * The state of the import.
+     * 
+ * + * .google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse.State state = 3; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000004); + state_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.IngestApplicationTemplateIaCResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.IngestApplicationTemplateIaCResponse) + private static final com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCResponse(); + } + + public static com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IngestApplicationTemplateIaCResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.IngestApplicationTemplateIaCResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/IngestApplicationTemplateIaCResponseOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/IngestApplicationTemplateIaCResponseOrBuilder.java new file mode 100644 index 000000000000..0713f49b8f7b --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/IngestApplicationTemplateIaCResponseOrBuilder.java @@ -0,0 +1,149 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface IngestApplicationTemplateIaCResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.IngestApplicationTemplateIaCResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Application template corresponding to the imported IaC.
+   * 
+ * + * .google.cloud.designcenter.v1.ApplicationTemplate application_template = 1; + * + * @return Whether the applicationTemplate field is set. + */ + boolean hasApplicationTemplate(); + + /** + * + * + *
+   * Application template corresponding to the imported IaC.
+   * 
+ * + * .google.cloud.designcenter.v1.ApplicationTemplate application_template = 1; + * + * @return The applicationTemplate. + */ + com.google.cloud.designcenter.v1.ApplicationTemplate getApplicationTemplate(); + + /** + * + * + *
+   * Application template corresponding to the imported IaC.
+   * 
+ * + * .google.cloud.designcenter.v1.ApplicationTemplate application_template = 1; + */ + com.google.cloud.designcenter.v1.ApplicationTemplateOrBuilder getApplicationTemplateOrBuilder(); + + /** + * + * + *
+   * Errors encountered during import.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + java.util.List getErrorsList(); + + /** + * + * + *
+   * Errors encountered during import.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + com.google.cloud.designcenter.v1.ImportIaCError getErrors(int index); + + /** + * + * + *
+   * Errors encountered during import.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + int getErrorsCount(); + + /** + * + * + *
+   * Errors encountered during import.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + java.util.List + getErrorsOrBuilderList(); + + /** + * + * + *
+   * Errors encountered during import.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.ImportIaCError errors = 2; + */ + com.google.cloud.designcenter.v1.ImportIaCErrorOrBuilder getErrorsOrBuilder(int index); + + /** + * + * + *
+   * The state of the import.
+   * 
+ * + * .google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse.State state = 3; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
+   * The state of the import.
+   * 
+ * + * .google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse.State state = 3; + * + * + * @return The state. + */ + com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse.State getState(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/IngestionProto.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/IngestionProto.java new file mode 100644 index 000000000000..f1296bafd544 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/IngestionProto.java @@ -0,0 +1,273 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/ingestion.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public final class IngestionProto extends com.google.protobuf.GeneratedFile { + private IngestionProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "IngestionProto"); + } + + 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_designcenter_v1_GitSource_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_GitSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_DeveloperConnectConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_DeveloperConnectConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_DeveloperConnectSourceConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_DeveloperConnectSourceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_GitReference_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_GitReference_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_OciRepo_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_OciRepo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_IaCModule_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_IaCModule_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_IaCFile_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_IaCFile_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_ImportIaCError_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ImportIaCError_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_CodeRange_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_CodeRange_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_CodePosition_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_CodePosition_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/designcenter/v1/ingestion" + + ".proto\022\034google.cloud.designcenter.v1\032\037go" + + "ogle/api/field_behavior.proto\032\031google/api/resource.proto\"\303\001\n" + + "\tGitSource\022\022\n" + + "\004repo\030\001 \001(\tB\004\342A\001\002\022\021\n" + + "\003dir\030\002 \001(\tB\004\342A\001\001\022\030\n\n" + + "commit_sha\030\003 \001(\tB\004\342A\001\003\022^\n" + + "\030developer_connect_config\030\004" + + " \001(\01324.google.cloud.designcenter.v1.DeveloperConnectConfigB\006\030\001\342A\001\001\022\025\n" + + "\007ref_tag\030\005 \001(\tB\004\342A\001\002\";\n" + + "\026DeveloperConnectConfig\022!\n" + + "\023git_repository_link\030\001 \001(\tB\004\342A\001\002\"\370\001\n" + + "\034DeveloperConnectSourceConfig\022^\n" + + "\032developer_connect_repo_uri\030\001 \001(\tB:\342A\001\002\372A3\n" + + "1developerconnect.googleapis.com/GitRepositoryLink\022C\n" + + "\treference\030\010" + + " \001(\0132*.google.cloud.designcenter.v1.GitReferenceB\004\342A\001\002\022\021\n" + + "\003dir\030\005 \001(\tB\004\342A\001\002\022 \n" + + "\022fetched_commit_sha\030\t \001(\tB\004\342A\001\003\"h\n" + + "\014GitReference\022\026\n" + + "\006branch\030\001 \001(\tB\004\342A\001\001H\000\022\027\n" + + "\007ref_tag\030\002 \001(\tB\004\342A\001\001H\000\022\032\n\n" + + "commit_sha\030\003 \001(\tB\004\342A\001\001H\000B\013\n" + + "\treference\"T\n" + + "\007OciRepo\022\021\n" + + "\003uri\030\001 \001(\tB\004\342A\001\002\022\025\n" + + "\007version\030\002 \001(\tB\004\342A\001\001\022\037\n" + + "\021module_source_uri\030\003 \001(\tB\004\342A\001\001\"G\n" + + "\tIaCModule\022:\n" + + "\005files\030\001" + + " \003(\0132%.google.cloud.designcenter.v1.IaCFileB\004\342A\001\001\"4\n" + + "\007IaCFile\022\022\n" + + "\004name\030\001 \001(\tB\004\342A\001\002\022\025\n" + + "\007content\030\002 \001(\tB\004\342A\001\001\"\341\006\n" + + "\016ImportIaCError\022\036\n" + + "\020resource_address\030\001 \001(\tB\004\342A\001\003\022\022\n" + + "\004file\030\002 \001(\tB\004\342A\001\003\022<\n" + + "\005range\030\003" + + " \001(\0132\'.google.cloud.designcenter.v1.CodeRangeB\004\342A\001\003\022\031\n" + + "\013description\030\004 \001(\tB\004\342A\001\003\022E\n" + + "\004type\030\005" + + " \001(\01621.google.cloud.designcenter.v1.ImportIaCError.TypeB\004\342A\001\003\022P\n\n" + + "error_code\030\006 \001(\01626.google.cloud.designce" + + "nter.v1.ImportIaCError.ErrorCodeB\004\342A\001\003\"<\n" + + "\004Type\022\024\n" + + "\020TYPE_UNSPECIFIED\020\000\022\013\n" + + "\007INVALID\020\001\022\021\n\r" + + "NOT_SUPPORTED\020\002\"\352\003\n" + + "\tErrorCode\022\032\n" + + "\026ERROR_CODE_UNSPECIFIED\020\000\022\033\n" + + "\027ERROR_CODE_SYNTAX_ERROR\020\001\022%\n" + + "!ERROR_CODE_UNSUPPORTED_BLOCK_TYPE\020\002\022\"\n" + + "\036ERROR_CODE_TOP_LEVEL_ATTRIBUTE\020\003\022!\n" + + "\035ERROR_CODE_UNSUPPORTED_MODULE\020\004\0221\n" + + "-ERROR_CODE_MODULE_UNSUPPORTED_ATTRIBUTE_ADDED\020\005\0220\n" + + ",ERROR_CODE_MODULE_REQUIRED_ATTRIBUTE_REMOVED\020\006\022&\n" + + "\"ERROR_CODE_PARAMETER_VALUE_INVALID\020\007\022*\n" + + "&ERROR_CODE_UNSUPPORTED_VARIABLE_CHANGE\020\010\022(\n" + + "$ERROR_CODE_UNSUPPORTED_OUTPUT_CHANGE\020\t\022*\n" + + "&ERROR_CODE_UNSUPPORTED_PROVIDER_CHANGE\020\n" + + "\022\'\n" + + "#ERROR_CODE_UNSUPPORTED_TFVAR_CHANGE\020\013\"\213\001\n" + + "\tCodeRange\022?\n" + + "\005start\030\001" + + " \001(\0132*.google.cloud.designcenter.v1.CodePositionB\004\342A\001\003\022=\n" + + "\003end\030\002" + + " \001(\0132*.google.cloud.designcenter.v1.CodePositionB\004\342A\001\003\"S\n" + + "\014CodePosition\022\022\n" + + "\004line\030\001 \001(\005B\004\342A\001\003\022\031\n" + + "\013byte_offset\030\002 \001(\005B\004\342A\001\003\022\024\n" + + "\006column\030\003 \001(\005B\004\342A\001\003B\374\002\n" + + " com.google.cloud.designcenter.v1B\016IngestionProtoP\001ZDclo" + + "ud.google.com/go/designcenter/apiv1/desi" + + "gncenterpb;designcenterpb\252\002\034Google.Cloud" + + ".DesignCenter.V1\312\002\034Google\\Cloud\\DesignCe" + + "nter\\V1\352\002\037Google::Cloud::DesignCenter::V1\352A\236\001\n" + + "1developerconnect.googleapis.com/GitRepositoryLink\022iprojects/{project}/loc" + + "ations/{location}/connections/{connection}/gitRepositoryLinks/{git_repository_li" + + "nk}b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_cloud_designcenter_v1_GitSource_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_designcenter_v1_GitSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_GitSource_descriptor, + new java.lang.String[] { + "Repo", "Dir", "CommitSha", "DeveloperConnectConfig", "RefTag", + }); + internal_static_google_cloud_designcenter_v1_DeveloperConnectConfig_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_designcenter_v1_DeveloperConnectConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_DeveloperConnectConfig_descriptor, + new java.lang.String[] { + "GitRepositoryLink", + }); + internal_static_google_cloud_designcenter_v1_DeveloperConnectSourceConfig_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_designcenter_v1_DeveloperConnectSourceConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_DeveloperConnectSourceConfig_descriptor, + new java.lang.String[] { + "DeveloperConnectRepoUri", "Reference", "Dir", "FetchedCommitSha", + }); + internal_static_google_cloud_designcenter_v1_GitReference_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_cloud_designcenter_v1_GitReference_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_GitReference_descriptor, + new java.lang.String[] { + "Branch", "RefTag", "CommitSha", "Reference", + }); + internal_static_google_cloud_designcenter_v1_OciRepo_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_cloud_designcenter_v1_OciRepo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_OciRepo_descriptor, + new java.lang.String[] { + "Uri", "Version", "ModuleSourceUri", + }); + internal_static_google_cloud_designcenter_v1_IaCModule_descriptor = + getDescriptor().getMessageType(5); + internal_static_google_cloud_designcenter_v1_IaCModule_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_IaCModule_descriptor, + new java.lang.String[] { + "Files", + }); + internal_static_google_cloud_designcenter_v1_IaCFile_descriptor = + getDescriptor().getMessageType(6); + internal_static_google_cloud_designcenter_v1_IaCFile_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_IaCFile_descriptor, + new java.lang.String[] { + "Name", "Content", + }); + internal_static_google_cloud_designcenter_v1_ImportIaCError_descriptor = + getDescriptor().getMessageType(7); + internal_static_google_cloud_designcenter_v1_ImportIaCError_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ImportIaCError_descriptor, + new java.lang.String[] { + "ResourceAddress", "File", "Range", "Description", "Type", "ErrorCode", + }); + internal_static_google_cloud_designcenter_v1_CodeRange_descriptor = + getDescriptor().getMessageType(8); + internal_static_google_cloud_designcenter_v1_CodeRange_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_CodeRange_descriptor, + new java.lang.String[] { + "Start", "End", + }); + internal_static_google_cloud_designcenter_v1_CodePosition_descriptor = + getDescriptor().getMessageType(9); + internal_static_google_cloud_designcenter_v1_CodePosition_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_CodePosition_descriptor, + new java.lang.String[] { + "Line", "ByteOffset", "Column", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/InputVariableAlias.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/InputVariableAlias.java new file mode 100644 index 000000000000..7201a3eb9644 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/InputVariableAlias.java @@ -0,0 +1,801 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Input variable alias mapping for a component in a composite application
+ * template.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.InputVariableAlias} + */ +@com.google.protobuf.Generated +public final class InputVariableAlias extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.InputVariableAlias) + InputVariableAliasOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "InputVariableAlias"); + } + + // Use InputVariableAlias.newBuilder() to construct. + private InputVariableAlias(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private InputVariableAlias() { + variable_ = ""; + alias_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringResourcesProto + .internal_static_google_cloud_designcenter_v1_InputVariableAlias_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringResourcesProto + .internal_static_google_cloud_designcenter_v1_InputVariableAlias_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.InputVariableAlias.class, + com.google.cloud.designcenter.v1.InputVariableAlias.Builder.class); + } + + public static final int VARIABLE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object variable_ = ""; + + /** + * + * + *
+   * Required. Name of the input variable inside the component's underlying
+   * template or module.
+   * 
+ * + * string variable = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The variable. + */ + @java.lang.Override + public java.lang.String getVariable() { + java.lang.Object ref = variable_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + variable_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Name of the input variable inside the component's underlying
+   * template or module.
+   * 
+ * + * string variable = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for variable. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVariableBytes() { + java.lang.Object ref = variable_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + variable_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ALIAS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object alias_ = ""; + + /** + * + * + *
+   * Required. Alias for the variable name to be exposed at the root level of
+   * the composite template.
+   * 
+ * + * string alias = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The alias. + */ + @java.lang.Override + public java.lang.String getAlias() { + java.lang.Object ref = alias_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + alias_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Alias for the variable name to be exposed at the root level of
+   * the composite template.
+   * 
+ * + * string alias = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for alias. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAliasBytes() { + java.lang.Object ref = alias_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + alias_ = 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.GeneratedMessage.isStringEmpty(variable_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, variable_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(alias_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, alias_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(variable_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, variable_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(alias_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, alias_); + } + 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.designcenter.v1.InputVariableAlias)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.InputVariableAlias other = + (com.google.cloud.designcenter.v1.InputVariableAlias) obj; + + if (!getVariable().equals(other.getVariable())) return false; + if (!getAlias().equals(other.getAlias())) 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) + VARIABLE_FIELD_NUMBER; + hash = (53 * hash) + getVariable().hashCode(); + hash = (37 * hash) + ALIAS_FIELD_NUMBER; + hash = (53 * hash) + getAlias().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.InputVariableAlias parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.InputVariableAlias 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.designcenter.v1.InputVariableAlias parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.InputVariableAlias parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.InputVariableAlias parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.InputVariableAlias parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.InputVariableAlias parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.InputVariableAlias parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.InputVariableAlias parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.InputVariableAlias parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.InputVariableAlias parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.InputVariableAlias parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.InputVariableAlias 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Input variable alias mapping for a component in a composite application
+   * template.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.InputVariableAlias} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.InputVariableAlias) + com.google.cloud.designcenter.v1.InputVariableAliasOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringResourcesProto + .internal_static_google_cloud_designcenter_v1_InputVariableAlias_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringResourcesProto + .internal_static_google_cloud_designcenter_v1_InputVariableAlias_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.InputVariableAlias.class, + com.google.cloud.designcenter.v1.InputVariableAlias.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.InputVariableAlias.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + variable_ = ""; + alias_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.AuthoringResourcesProto + .internal_static_google_cloud_designcenter_v1_InputVariableAlias_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.InputVariableAlias getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.InputVariableAlias.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.InputVariableAlias build() { + com.google.cloud.designcenter.v1.InputVariableAlias result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.InputVariableAlias buildPartial() { + com.google.cloud.designcenter.v1.InputVariableAlias result = + new com.google.cloud.designcenter.v1.InputVariableAlias(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.InputVariableAlias result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.variable_ = variable_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.alias_ = alias_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.InputVariableAlias) { + return mergeFrom((com.google.cloud.designcenter.v1.InputVariableAlias) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.InputVariableAlias other) { + if (other == com.google.cloud.designcenter.v1.InputVariableAlias.getDefaultInstance()) + return this; + if (!other.getVariable().isEmpty()) { + variable_ = other.variable_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getAlias().isEmpty()) { + alias_ = other.alias_; + 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: + { + variable_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + alias_ = 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 variable_ = ""; + + /** + * + * + *
+     * Required. Name of the input variable inside the component's underlying
+     * template or module.
+     * 
+ * + * string variable = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The variable. + */ + public java.lang.String getVariable() { + java.lang.Object ref = variable_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + variable_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Name of the input variable inside the component's underlying
+     * template or module.
+     * 
+ * + * string variable = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for variable. + */ + public com.google.protobuf.ByteString getVariableBytes() { + java.lang.Object ref = variable_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + variable_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Name of the input variable inside the component's underlying
+     * template or module.
+     * 
+ * + * string variable = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The variable to set. + * @return This builder for chaining. + */ + public Builder setVariable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + variable_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Name of the input variable inside the component's underlying
+     * template or module.
+     * 
+ * + * string variable = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearVariable() { + variable_ = getDefaultInstance().getVariable(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Name of the input variable inside the component's underlying
+     * template or module.
+     * 
+ * + * string variable = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for variable to set. + * @return This builder for chaining. + */ + public Builder setVariableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + variable_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object alias_ = ""; + + /** + * + * + *
+     * Required. Alias for the variable name to be exposed at the root level of
+     * the composite template.
+     * 
+ * + * string alias = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The alias. + */ + public java.lang.String getAlias() { + java.lang.Object ref = alias_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + alias_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Alias for the variable name to be exposed at the root level of
+     * the composite template.
+     * 
+ * + * string alias = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for alias. + */ + public com.google.protobuf.ByteString getAliasBytes() { + java.lang.Object ref = alias_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + alias_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Alias for the variable name to be exposed at the root level of
+     * the composite template.
+     * 
+ * + * string alias = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The alias to set. + * @return This builder for chaining. + */ + public Builder setAlias(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + alias_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Alias for the variable name to be exposed at the root level of
+     * the composite template.
+     * 
+ * + * string alias = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearAlias() { + alias_ = getDefaultInstance().getAlias(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Alias for the variable name to be exposed at the root level of
+     * the composite template.
+     * 
+ * + * string alias = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for alias to set. + * @return This builder for chaining. + */ + public Builder setAliasBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + alias_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.InputVariableAlias) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.InputVariableAlias) + private static final com.google.cloud.designcenter.v1.InputVariableAlias DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.InputVariableAlias(); + } + + public static com.google.cloud.designcenter.v1.InputVariableAlias getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InputVariableAlias parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.InputVariableAlias getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/InputVariableAliasOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/InputVariableAliasOrBuilder.java new file mode 100644 index 000000000000..bc23af0680b9 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/InputVariableAliasOrBuilder.java @@ -0,0 +1,84 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface InputVariableAliasOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.InputVariableAlias) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the input variable inside the component's underlying
+   * template or module.
+   * 
+ * + * string variable = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The variable. + */ + java.lang.String getVariable(); + + /** + * + * + *
+   * Required. Name of the input variable inside the component's underlying
+   * template or module.
+   * 
+ * + * string variable = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for variable. + */ + com.google.protobuf.ByteString getVariableBytes(); + + /** + * + * + *
+   * Required. Alias for the variable name to be exposed at the root level of
+   * the composite template.
+   * 
+ * + * string alias = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The alias. + */ + java.lang.String getAlias(); + + /** + * + * + *
+   * Required. Alias for the variable name to be exposed at the root level of
+   * the composite template.
+   * 
+ * + * string alias = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for alias. + */ + com.google.protobuf.ByteString getAliasBytes(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListApplicationTemplateRevisionsRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListApplicationTemplateRevisionsRequest.java new file mode 100644 index 000000000000..3759ab914e46 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListApplicationTemplateRevisionsRequest.java @@ -0,0 +1,1333 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for requesting a list of application template revisions.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ListApplicationTemplateRevisionsRequest} + */ +@com.google.protobuf.Generated +public final class ListApplicationTemplateRevisionsRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ListApplicationTemplateRevisionsRequest) + ListApplicationTemplateRevisionsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ListApplicationTemplateRevisionsRequest"); + } + + // Use ListApplicationTemplateRevisionsRequest.newBuilder() to construct. + private ListApplicationTemplateRevisionsRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListApplicationTemplateRevisionsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListApplicationTemplateRevisionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListApplicationTemplateRevisionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsRequest.class, + com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent from which to list application template revisions.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The parent from which to list application template revisions.
+   * 
+ * + * + * 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 results to return from this request.
+   * Non-positive
+   * values are ignored. The presence of nextPageToken in the response
+   * indicates that more results might be available.
+   * 
+ * + * 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. If present, then retrieve the next batch of results from the
+   * preceding call to this method. pageToken must be the value of nextPageToken
+   * from the previous response. The values of other method parameters should be
+   * identical to those in the previous call.
+   * 
+ * + * 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. If present, then retrieve the next batch of results from the
+   * preceding call to this method. pageToken must be the value of nextPageToken
+   * from the previous response. The values of other method parameters should be
+   * identical to those in the previous call.
+   * 
+ * + * 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; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
+   * Optional. A filter that chooses which application template revisions to
+   * return.
+   * 
+ * + * 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. A filter that chooses which application template revisions to
+   * return.
+   * 
+ * + * 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 ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
+   * Optional. How the results should be sorted.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+   * Optional. How the results should be sorted.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessage.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.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessage.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.designcenter.v1.ListApplicationTemplateRevisionsRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsRequest other = + (com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsRequest) 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.designcenter.v1.ListApplicationTemplateRevisionsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsRequest 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.designcenter.v1.ListApplicationTemplateRevisionsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ListApplicationTemplateRevisionsRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for requesting a list of application template revisions.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ListApplicationTemplateRevisionsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ListApplicationTemplateRevisionsRequest) + com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListApplicationTemplateRevisionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListApplicationTemplateRevisionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsRequest.class, + com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.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.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListApplicationTemplateRevisionsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsRequest + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsRequest build() { + com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsRequest buildPartial() { + com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsRequest result = + new com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsRequest 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 mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsRequest) { + return mergeFrom( + (com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsRequest other) { + if (other + == com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent from which to list application template revisions.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The parent from which to list application template revisions.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The parent from which to list application template revisions.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent from which to list application template revisions.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent from which to list application template revisions.
+     * 
+ * + * + * 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 results to return from this request.
+     * Non-positive
+     * values are ignored. The presence of nextPageToken in the response
+     * indicates that more results might be available.
+     * 
+ * + * 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 results to return from this request.
+     * Non-positive
+     * values are ignored. The presence of nextPageToken in the response
+     * indicates that more results might be available.
+     * 
+ * + * 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 results to return from this request.
+     * Non-positive
+     * values are ignored. The presence of nextPageToken in the response
+     * indicates that more results might be available.
+     * 
+ * + * 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. If present, then retrieve the next batch of results from the
+     * preceding call to this method. pageToken must be the value of nextPageToken
+     * from the previous response. The values of other method parameters should be
+     * identical to those in the previous call.
+     * 
+ * + * 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. If present, then retrieve the next batch of results from the
+     * preceding call to this method. pageToken must be the value of nextPageToken
+     * from the previous response. The values of other method parameters should be
+     * identical to those in the previous call.
+     * 
+ * + * 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. If present, then retrieve the next batch of results from the
+     * preceding call to this method. pageToken must be the value of nextPageToken
+     * from the previous response. The values of other method parameters should be
+     * identical to those in the previous call.
+     * 
+ * + * 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. If present, then retrieve the next batch of results from the
+     * preceding call to this method. pageToken must be the value of nextPageToken
+     * from the previous response. The values of other method parameters should be
+     * identical to those in the previous call.
+     * 
+ * + * 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. If present, then retrieve the next batch of results from the
+     * preceding call to this method. pageToken must be the value of nextPageToken
+     * from the previous response. The values of other method parameters should be
+     * identical to those in the previous call.
+     * 
+ * + * 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; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
+     * Optional. A filter that chooses which application template revisions to
+     * return.
+     * 
+ * + * 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. A filter that chooses which application template revisions to
+     * return.
+     * 
+ * + * 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. A filter that chooses which application template revisions to
+     * return.
+     * 
+ * + * 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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A filter that chooses which application template revisions to
+     * return.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A filter that chooses which application template revisions to
+     * return.
+     * 
+ * + * 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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
+     * Optional. How the results should be sorted.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+     * Optional. How the results should be sorted.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+     * Optional. How the results should be sorted.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + + /** + * + * + *
+     * Optional. How the results should be sorted.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. How the results should be sorted.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ListApplicationTemplateRevisionsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ListApplicationTemplateRevisionsRequest) + private static final com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsRequest(); + } + + public static com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListApplicationTemplateRevisionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ListApplicationTemplateRevisionsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListApplicationTemplateRevisionsRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListApplicationTemplateRevisionsRequestOrBuilder.java new file mode 100644 index 000000000000..24b4272bb803 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListApplicationTemplateRevisionsRequestOrBuilder.java @@ -0,0 +1,160 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ListApplicationTemplateRevisionsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ListApplicationTemplateRevisionsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent from which to list application template revisions.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent from which to list application template revisions.
+   * 
+ * + * + * 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 results to return from this request.
+   * Non-positive
+   * values are ignored. The presence of nextPageToken in the response
+   * indicates that more results might be available.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. If present, then retrieve the next batch of results from the
+   * preceding call to this method. pageToken must be the value of nextPageToken
+   * from the previous response. The values of other method parameters should be
+   * identical to those in the previous call.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * Optional. If present, then retrieve the next batch of results from the
+   * preceding call to this method. pageToken must be the value of nextPageToken
+   * from the previous response. The values of other method parameters should be
+   * identical to those in the previous call.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional. A filter that chooses which application template revisions to
+   * return.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * Optional. A filter that chooses which application template revisions to
+   * return.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional. How the results should be sorted.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
+   * Optional. How the results should be sorted.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListApplicationTemplateRevisionsResponse.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListApplicationTemplateRevisionsResponse.java new file mode 100644 index 000000000000..9911ad58e727 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListApplicationTemplateRevisionsResponse.java @@ -0,0 +1,1516 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for response to listing application template revisions.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ListApplicationTemplateRevisionsResponse} + */ +@com.google.protobuf.Generated +public final class ListApplicationTemplateRevisionsResponse + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ListApplicationTemplateRevisionsResponse) + ListApplicationTemplateRevisionsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ListApplicationTemplateRevisionsResponse"); + } + + // Use ListApplicationTemplateRevisionsResponse.newBuilder() to construct. + private ListApplicationTemplateRevisionsResponse( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListApplicationTemplateRevisionsResponse() { + applicationTemplateRevisions_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListApplicationTemplateRevisionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListApplicationTemplateRevisionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsResponse.class, + com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsResponse.Builder + .class); + } + + public static final int APPLICATION_TEMPLATE_REVISIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + applicationTemplateRevisions_; + + /** + * + * + *
+   * The list of application template revisions.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplicationTemplateRevision application_template_revisions = 1; + * + */ + @java.lang.Override + public java.util.List + getApplicationTemplateRevisionsList() { + return applicationTemplateRevisions_; + } + + /** + * + * + *
+   * The list of application template revisions.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplicationTemplateRevision application_template_revisions = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.designcenter.v1.ApplicationTemplateRevisionOrBuilder> + getApplicationTemplateRevisionsOrBuilderList() { + return applicationTemplateRevisions_; + } + + /** + * + * + *
+   * The list of application template revisions.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplicationTemplateRevision application_template_revisions = 1; + * + */ + @java.lang.Override + public int getApplicationTemplateRevisionsCount() { + return applicationTemplateRevisions_.size(); + } + + /** + * + * + *
+   * The list of application template revisions.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplicationTemplateRevision application_template_revisions = 1; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ApplicationTemplateRevision + getApplicationTemplateRevisions(int index) { + return applicationTemplateRevisions_.get(index); + } + + /** + * + * + *
+   * The list of application template revisions.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplicationTemplateRevision application_template_revisions = 1; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ApplicationTemplateRevisionOrBuilder + getApplicationTemplateRevisionsOrBuilder(int index) { + return applicationTemplateRevisions_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * If there might be more results than those appearing in this response, then
+   * nextPageToken is included. To get the next set of results, call this method
+   * again using the value of nextPageToken as pageToken.
+   * 
+ * + * 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; + } + } + + /** + * + * + *
+   * If there might be more results than those appearing in this response, then
+   * nextPageToken is included. To get the next set of results, call this method
+   * again using the value of nextPageToken as pageToken.
+   * 
+ * + * 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 < applicationTemplateRevisions_.size(); i++) { + output.writeMessage(1, applicationTemplateRevisions_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessage.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 < applicationTemplateRevisions_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, applicationTemplateRevisions_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.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.designcenter.v1.ListApplicationTemplateRevisionsResponse)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsResponse other = + (com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsResponse) obj; + + if (!getApplicationTemplateRevisionsList().equals(other.getApplicationTemplateRevisionsList())) + 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 (getApplicationTemplateRevisionsCount() > 0) { + hash = (37 * hash) + APPLICATION_TEMPLATE_REVISIONS_FIELD_NUMBER; + hash = (53 * hash) + getApplicationTemplateRevisionsList().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.designcenter.v1.ListApplicationTemplateRevisionsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsResponse 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.designcenter.v1.ListApplicationTemplateRevisionsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ListApplicationTemplateRevisionsResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for response to listing application template revisions.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ListApplicationTemplateRevisionsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ListApplicationTemplateRevisionsResponse) + com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListApplicationTemplateRevisionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListApplicationTemplateRevisionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsResponse.class, + com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (applicationTemplateRevisionsBuilder_ == null) { + applicationTemplateRevisions_ = java.util.Collections.emptyList(); + } else { + applicationTemplateRevisions_ = null; + applicationTemplateRevisionsBuilder_.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.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListApplicationTemplateRevisionsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsResponse + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsResponse build() { + com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsResponse + buildPartial() { + com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsResponse result = + new com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsResponse result) { + if (applicationTemplateRevisionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + applicationTemplateRevisions_ = + java.util.Collections.unmodifiableList(applicationTemplateRevisions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.applicationTemplateRevisions_ = applicationTemplateRevisions_; + } else { + result.applicationTemplateRevisions_ = applicationTemplateRevisionsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsResponse 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 mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsResponse) { + return mergeFrom( + (com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsResponse other) { + if (other + == com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsResponse + .getDefaultInstance()) return this; + if (applicationTemplateRevisionsBuilder_ == null) { + if (!other.applicationTemplateRevisions_.isEmpty()) { + if (applicationTemplateRevisions_.isEmpty()) { + applicationTemplateRevisions_ = other.applicationTemplateRevisions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureApplicationTemplateRevisionsIsMutable(); + applicationTemplateRevisions_.addAll(other.applicationTemplateRevisions_); + } + onChanged(); + } + } else { + if (!other.applicationTemplateRevisions_.isEmpty()) { + if (applicationTemplateRevisionsBuilder_.isEmpty()) { + applicationTemplateRevisionsBuilder_.dispose(); + applicationTemplateRevisionsBuilder_ = null; + applicationTemplateRevisions_ = other.applicationTemplateRevisions_; + bitField0_ = (bitField0_ & ~0x00000001); + applicationTemplateRevisionsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetApplicationTemplateRevisionsFieldBuilder() + : null; + } else { + applicationTemplateRevisionsBuilder_.addAllMessages( + other.applicationTemplateRevisions_); + } + } + } + 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.designcenter.v1.ApplicationTemplateRevision m = + input.readMessage( + com.google.cloud.designcenter.v1.ApplicationTemplateRevision.parser(), + extensionRegistry); + if (applicationTemplateRevisionsBuilder_ == null) { + ensureApplicationTemplateRevisionsIsMutable(); + applicationTemplateRevisions_.add(m); + } else { + applicationTemplateRevisionsBuilder_.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 + applicationTemplateRevisions_ = java.util.Collections.emptyList(); + + private void ensureApplicationTemplateRevisionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + applicationTemplateRevisions_ = + new java.util.ArrayList( + applicationTemplateRevisions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ApplicationTemplateRevision, + com.google.cloud.designcenter.v1.ApplicationTemplateRevision.Builder, + com.google.cloud.designcenter.v1.ApplicationTemplateRevisionOrBuilder> + applicationTemplateRevisionsBuilder_; + + /** + * + * + *
+     * The list of application template revisions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplicationTemplateRevision application_template_revisions = 1; + * + */ + public java.util.List + getApplicationTemplateRevisionsList() { + if (applicationTemplateRevisionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(applicationTemplateRevisions_); + } else { + return applicationTemplateRevisionsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The list of application template revisions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplicationTemplateRevision application_template_revisions = 1; + * + */ + public int getApplicationTemplateRevisionsCount() { + if (applicationTemplateRevisionsBuilder_ == null) { + return applicationTemplateRevisions_.size(); + } else { + return applicationTemplateRevisionsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The list of application template revisions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplicationTemplateRevision application_template_revisions = 1; + * + */ + public com.google.cloud.designcenter.v1.ApplicationTemplateRevision + getApplicationTemplateRevisions(int index) { + if (applicationTemplateRevisionsBuilder_ == null) { + return applicationTemplateRevisions_.get(index); + } else { + return applicationTemplateRevisionsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The list of application template revisions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplicationTemplateRevision application_template_revisions = 1; + * + */ + public Builder setApplicationTemplateRevisions( + int index, com.google.cloud.designcenter.v1.ApplicationTemplateRevision value) { + if (applicationTemplateRevisionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicationTemplateRevisionsIsMutable(); + applicationTemplateRevisions_.set(index, value); + onChanged(); + } else { + applicationTemplateRevisionsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of application template revisions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplicationTemplateRevision application_template_revisions = 1; + * + */ + public Builder setApplicationTemplateRevisions( + int index, + com.google.cloud.designcenter.v1.ApplicationTemplateRevision.Builder builderForValue) { + if (applicationTemplateRevisionsBuilder_ == null) { + ensureApplicationTemplateRevisionsIsMutable(); + applicationTemplateRevisions_.set(index, builderForValue.build()); + onChanged(); + } else { + applicationTemplateRevisionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of application template revisions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplicationTemplateRevision application_template_revisions = 1; + * + */ + public Builder addApplicationTemplateRevisions( + com.google.cloud.designcenter.v1.ApplicationTemplateRevision value) { + if (applicationTemplateRevisionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicationTemplateRevisionsIsMutable(); + applicationTemplateRevisions_.add(value); + onChanged(); + } else { + applicationTemplateRevisionsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The list of application template revisions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplicationTemplateRevision application_template_revisions = 1; + * + */ + public Builder addApplicationTemplateRevisions( + int index, com.google.cloud.designcenter.v1.ApplicationTemplateRevision value) { + if (applicationTemplateRevisionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicationTemplateRevisionsIsMutable(); + applicationTemplateRevisions_.add(index, value); + onChanged(); + } else { + applicationTemplateRevisionsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of application template revisions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplicationTemplateRevision application_template_revisions = 1; + * + */ + public Builder addApplicationTemplateRevisions( + com.google.cloud.designcenter.v1.ApplicationTemplateRevision.Builder builderForValue) { + if (applicationTemplateRevisionsBuilder_ == null) { + ensureApplicationTemplateRevisionsIsMutable(); + applicationTemplateRevisions_.add(builderForValue.build()); + onChanged(); + } else { + applicationTemplateRevisionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of application template revisions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplicationTemplateRevision application_template_revisions = 1; + * + */ + public Builder addApplicationTemplateRevisions( + int index, + com.google.cloud.designcenter.v1.ApplicationTemplateRevision.Builder builderForValue) { + if (applicationTemplateRevisionsBuilder_ == null) { + ensureApplicationTemplateRevisionsIsMutable(); + applicationTemplateRevisions_.add(index, builderForValue.build()); + onChanged(); + } else { + applicationTemplateRevisionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of application template revisions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplicationTemplateRevision application_template_revisions = 1; + * + */ + public Builder addAllApplicationTemplateRevisions( + java.lang.Iterable + values) { + if (applicationTemplateRevisionsBuilder_ == null) { + ensureApplicationTemplateRevisionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, applicationTemplateRevisions_); + onChanged(); + } else { + applicationTemplateRevisionsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The list of application template revisions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplicationTemplateRevision application_template_revisions = 1; + * + */ + public Builder clearApplicationTemplateRevisions() { + if (applicationTemplateRevisionsBuilder_ == null) { + applicationTemplateRevisions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + applicationTemplateRevisionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The list of application template revisions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplicationTemplateRevision application_template_revisions = 1; + * + */ + public Builder removeApplicationTemplateRevisions(int index) { + if (applicationTemplateRevisionsBuilder_ == null) { + ensureApplicationTemplateRevisionsIsMutable(); + applicationTemplateRevisions_.remove(index); + onChanged(); + } else { + applicationTemplateRevisionsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The list of application template revisions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplicationTemplateRevision application_template_revisions = 1; + * + */ + public com.google.cloud.designcenter.v1.ApplicationTemplateRevision.Builder + getApplicationTemplateRevisionsBuilder(int index) { + return internalGetApplicationTemplateRevisionsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The list of application template revisions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplicationTemplateRevision application_template_revisions = 1; + * + */ + public com.google.cloud.designcenter.v1.ApplicationTemplateRevisionOrBuilder + getApplicationTemplateRevisionsOrBuilder(int index) { + if (applicationTemplateRevisionsBuilder_ == null) { + return applicationTemplateRevisions_.get(index); + } else { + return applicationTemplateRevisionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The list of application template revisions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplicationTemplateRevision application_template_revisions = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.designcenter.v1.ApplicationTemplateRevisionOrBuilder> + getApplicationTemplateRevisionsOrBuilderList() { + if (applicationTemplateRevisionsBuilder_ != null) { + return applicationTemplateRevisionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(applicationTemplateRevisions_); + } + } + + /** + * + * + *
+     * The list of application template revisions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplicationTemplateRevision application_template_revisions = 1; + * + */ + public com.google.cloud.designcenter.v1.ApplicationTemplateRevision.Builder + addApplicationTemplateRevisionsBuilder() { + return internalGetApplicationTemplateRevisionsFieldBuilder() + .addBuilder( + com.google.cloud.designcenter.v1.ApplicationTemplateRevision.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of application template revisions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplicationTemplateRevision application_template_revisions = 1; + * + */ + public com.google.cloud.designcenter.v1.ApplicationTemplateRevision.Builder + addApplicationTemplateRevisionsBuilder(int index) { + return internalGetApplicationTemplateRevisionsFieldBuilder() + .addBuilder( + index, + com.google.cloud.designcenter.v1.ApplicationTemplateRevision.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of application template revisions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplicationTemplateRevision application_template_revisions = 1; + * + */ + public java.util.List + getApplicationTemplateRevisionsBuilderList() { + return internalGetApplicationTemplateRevisionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ApplicationTemplateRevision, + com.google.cloud.designcenter.v1.ApplicationTemplateRevision.Builder, + com.google.cloud.designcenter.v1.ApplicationTemplateRevisionOrBuilder> + internalGetApplicationTemplateRevisionsFieldBuilder() { + if (applicationTemplateRevisionsBuilder_ == null) { + applicationTemplateRevisionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ApplicationTemplateRevision, + com.google.cloud.designcenter.v1.ApplicationTemplateRevision.Builder, + com.google.cloud.designcenter.v1.ApplicationTemplateRevisionOrBuilder>( + applicationTemplateRevisions_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + applicationTemplateRevisions_ = null; + } + return applicationTemplateRevisionsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * If there might be more results than those appearing in this response, then
+     * nextPageToken is included. To get the next set of results, call this method
+     * again using the value of nextPageToken as pageToken.
+     * 
+ * + * 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; + } + } + + /** + * + * + *
+     * If there might be more results than those appearing in this response, then
+     * nextPageToken is included. To get the next set of results, call this method
+     * again using the value of nextPageToken as pageToken.
+     * 
+ * + * 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; + } + } + + /** + * + * + *
+     * If there might be more results than those appearing in this response, then
+     * nextPageToken is included. To get the next set of results, call this method
+     * again using the value of nextPageToken as pageToken.
+     * 
+ * + * 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; + } + + /** + * + * + *
+     * If there might be more results than those appearing in this response, then
+     * nextPageToken is included. To get the next set of results, call this method
+     * again using the value of nextPageToken as pageToken.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * If there might be more results than those appearing in this response, then
+     * nextPageToken is included. To get the next set of results, call this method
+     * again using the value of nextPageToken as pageToken.
+     * 
+ * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ListApplicationTemplateRevisionsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ListApplicationTemplateRevisionsResponse) + private static final com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsResponse(); + } + + public static com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListApplicationTemplateRevisionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ListApplicationTemplateRevisionsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListApplicationTemplateRevisionsResponseOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListApplicationTemplateRevisionsResponseOrBuilder.java new file mode 100644 index 000000000000..739c78dde7e2 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListApplicationTemplateRevisionsResponseOrBuilder.java @@ -0,0 +1,181 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ListApplicationTemplateRevisionsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ListApplicationTemplateRevisionsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of application template revisions.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplicationTemplateRevision application_template_revisions = 1; + * + */ + java.util.List + getApplicationTemplateRevisionsList(); + + /** + * + * + *
+   * The list of application template revisions.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplicationTemplateRevision application_template_revisions = 1; + * + */ + com.google.cloud.designcenter.v1.ApplicationTemplateRevision getApplicationTemplateRevisions( + int index); + + /** + * + * + *
+   * The list of application template revisions.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplicationTemplateRevision application_template_revisions = 1; + * + */ + int getApplicationTemplateRevisionsCount(); + + /** + * + * + *
+   * The list of application template revisions.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplicationTemplateRevision application_template_revisions = 1; + * + */ + java.util.List + getApplicationTemplateRevisionsOrBuilderList(); + + /** + * + * + *
+   * The list of application template revisions.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplicationTemplateRevision application_template_revisions = 1; + * + */ + com.google.cloud.designcenter.v1.ApplicationTemplateRevisionOrBuilder + getApplicationTemplateRevisionsOrBuilder(int index); + + /** + * + * + *
+   * If there might be more results than those appearing in this response, then
+   * nextPageToken is included. To get the next set of results, call this method
+   * again using the value of nextPageToken as pageToken.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * If there might be more results than those appearing in this response, then
+   * nextPageToken is included. To get the next set of results, call this method
+   * again using the value of nextPageToken as pageToken.
+   * 
+ * + * 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-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListApplicationTemplateSystemRevisionsRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListApplicationTemplateSystemRevisionsRequest.java new file mode 100644 index 000000000000..b1fcc54cd873 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListApplicationTemplateSystemRevisionsRequest.java @@ -0,0 +1,1179 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for requesting a list of application template system revisions.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsRequest} + */ +@com.google.protobuf.Generated +public final class ListApplicationTemplateSystemRevisionsRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsRequest) + ListApplicationTemplateSystemRevisionsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ListApplicationTemplateSystemRevisionsRequest"); + } + + // Use ListApplicationTemplateSystemRevisionsRequest.newBuilder() to construct. + private ListApplicationTemplateSystemRevisionsRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListApplicationTemplateSystemRevisionsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListApplicationTemplateSystemRevisionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListApplicationTemplateSystemRevisionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsRequest.class, + com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsRequest.Builder + .class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent Application Template from which to list the system
+   * revisions. Format:
+   * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The parent Application Template from which to list the system
+   * revisions. Format:
+   * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}
+   * 
+ * + * + * 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 system revisions to return. The service may
+   * return fewer than this value. If unspecified, at most 50 system revisions
+   * will be returned. The maximum value is 1000; values above 1000 will be
+   * coerced 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. If present, then retrieve the next batch of results from the
+   * preceding call to this method. pageToken must be the value of nextPageToken
+   * from the previous response. The values of other method parameters should be
+   * identical to those in the previous call.
+   * 
+ * + * 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. If present, then retrieve the next batch of results from the
+   * preceding call to this method. pageToken must be the value of nextPageToken
+   * from the previous response. The values of other method parameters should be
+   * identical to those in the previous call.
+   * 
+ * + * 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; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
+   * Optional. A filter expression that filters system revisions listed in the
+   * response. See https://google.aip.dev/160 for more information on the
+   * grammar.
+   * 
+ * + * 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. A filter expression that filters system revisions listed in the
+   * response. See https://google.aip.dev/160 for more information on the
+   * grammar.
+   * 
+ * + * 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; + } + } + + 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.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.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.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.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.designcenter.v1.ListApplicationTemplateSystemRevisionsRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsRequest other = + (com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsRequest) 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 (!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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsRequest + 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.designcenter.v1.ListApplicationTemplateSystemRevisionsRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ListApplicationTemplateSystemRevisionsRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for requesting a list of application template system revisions.
+   * 
+ * + * Protobuf type {@code + * google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsRequest) + com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListApplicationTemplateSystemRevisionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListApplicationTemplateSystemRevisionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsRequest.class, + com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListApplicationTemplateSystemRevisionsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsRequest + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsRequest build() { + com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsRequest + buildPartial() { + com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsRequest result = + new com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsRequest 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_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsRequest) { + return mergeFrom( + (com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsRequest other) { + if (other + == com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsRequest + .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(); + } + 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 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent Application Template from which to list the system
+     * revisions. Format:
+     * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The parent Application Template from which to list the system
+     * revisions. Format:
+     * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The parent Application Template from which to list the system
+     * revisions. Format:
+     * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent Application Template from which to list the system
+     * revisions. Format:
+     * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent Application Template from which to list the system
+     * revisions. Format:
+     * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}
+     * 
+ * + * + * 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 system revisions to return. The service may
+     * return fewer than this value. If unspecified, at most 50 system revisions
+     * will be returned. The maximum value is 1000; values above 1000 will be
+     * coerced 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 system revisions to return. The service may
+     * return fewer than this value. If unspecified, at most 50 system revisions
+     * will be returned. The maximum value is 1000; values above 1000 will be
+     * coerced 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 system revisions to return. The service may
+     * return fewer than this value. If unspecified, at most 50 system revisions
+     * will be returned. The maximum value is 1000; values above 1000 will be
+     * coerced 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. If present, then retrieve the next batch of results from the
+     * preceding call to this method. pageToken must be the value of nextPageToken
+     * from the previous response. The values of other method parameters should be
+     * identical to those in the previous call.
+     * 
+ * + * 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. If present, then retrieve the next batch of results from the
+     * preceding call to this method. pageToken must be the value of nextPageToken
+     * from the previous response. The values of other method parameters should be
+     * identical to those in the previous call.
+     * 
+ * + * 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. If present, then retrieve the next batch of results from the
+     * preceding call to this method. pageToken must be the value of nextPageToken
+     * from the previous response. The values of other method parameters should be
+     * identical to those in the previous call.
+     * 
+ * + * 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. If present, then retrieve the next batch of results from the
+     * preceding call to this method. pageToken must be the value of nextPageToken
+     * from the previous response. The values of other method parameters should be
+     * identical to those in the previous call.
+     * 
+ * + * 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. If present, then retrieve the next batch of results from the
+     * preceding call to this method. pageToken must be the value of nextPageToken
+     * from the previous response. The values of other method parameters should be
+     * identical to those in the previous call.
+     * 
+ * + * 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; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
+     * Optional. A filter expression that filters system revisions listed in the
+     * response. See https://google.aip.dev/160 for more information on the
+     * grammar.
+     * 
+ * + * 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. A filter expression that filters system revisions listed in the
+     * response. See https://google.aip.dev/160 for more information on the
+     * grammar.
+     * 
+ * + * 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. A filter expression that filters system revisions listed in the
+     * response. See https://google.aip.dev/160 for more information on the
+     * grammar.
+     * 
+ * + * 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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A filter expression that filters system revisions listed in the
+     * response. See https://google.aip.dev/160 for more information on the
+     * grammar.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A filter expression that filters system revisions listed in the
+     * response. See https://google.aip.dev/160 for more information on the
+     * grammar.
+     * 
+ * + * 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_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsRequest) + private static final com.google.cloud.designcenter.v1 + .ListApplicationTemplateSystemRevisionsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsRequest(); + } + + public static com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListApplicationTemplateSystemRevisionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ListApplicationTemplateSystemRevisionsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListApplicationTemplateSystemRevisionsRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListApplicationTemplateSystemRevisionsRequestOrBuilder.java new file mode 100644 index 000000000000..633fd445dd22 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListApplicationTemplateSystemRevisionsRequestOrBuilder.java @@ -0,0 +1,140 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ListApplicationTemplateSystemRevisionsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent Application Template from which to list the system
+   * revisions. Format:
+   * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent Application Template from which to list the system
+   * revisions. Format:
+   * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}
+   * 
+ * + * + * 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 system revisions to return. The service may
+   * return fewer than this value. If unspecified, at most 50 system revisions
+   * will be returned. The maximum value is 1000; values above 1000 will be
+   * coerced to 1000.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. If present, then retrieve the next batch of results from the
+   * preceding call to this method. pageToken must be the value of nextPageToken
+   * from the previous response. The values of other method parameters should be
+   * identical to those in the previous call.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * Optional. If present, then retrieve the next batch of results from the
+   * preceding call to this method. pageToken must be the value of nextPageToken
+   * from the previous response. The values of other method parameters should be
+   * identical to those in the previous call.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional. A filter expression that filters system revisions listed in the
+   * response. See https://google.aip.dev/160 for more information on the
+   * grammar.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * Optional. A filter expression that filters system revisions listed in the
+   * response. See https://google.aip.dev/160 for more information on the
+   * grammar.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListApplicationTemplateSystemRevisionsResponse.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListApplicationTemplateSystemRevisionsResponse.java new file mode 100644 index 000000000000..93edfbf972de --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListApplicationTemplateSystemRevisionsResponse.java @@ -0,0 +1,1539 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for response to listing application template system revisions.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsResponse} + */ +@com.google.protobuf.Generated +public final class ListApplicationTemplateSystemRevisionsResponse + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsResponse) + ListApplicationTemplateSystemRevisionsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ListApplicationTemplateSystemRevisionsResponse"); + } + + // Use ListApplicationTemplateSystemRevisionsResponse.newBuilder() to construct. + private ListApplicationTemplateSystemRevisionsResponse( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListApplicationTemplateSystemRevisionsResponse() { + applicationTemplateSystemRevisions_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListApplicationTemplateSystemRevisionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListApplicationTemplateSystemRevisionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsResponse.class, + com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsResponse.Builder + .class); + } + + public static final int APPLICATION_TEMPLATE_SYSTEM_REVISIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + applicationTemplateSystemRevisions_; + + /** + * + * + *
+   * The list of application template system revisions.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplicationTemplateSystemRevision application_template_system_revisions = 1; + * + */ + @java.lang.Override + public java.util.List + getApplicationTemplateSystemRevisionsList() { + return applicationTemplateSystemRevisions_; + } + + /** + * + * + *
+   * The list of application template system revisions.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplicationTemplateSystemRevision application_template_system_revisions = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevisionOrBuilder> + getApplicationTemplateSystemRevisionsOrBuilderList() { + return applicationTemplateSystemRevisions_; + } + + /** + * + * + *
+   * The list of application template system revisions.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplicationTemplateSystemRevision application_template_system_revisions = 1; + * + */ + @java.lang.Override + public int getApplicationTemplateSystemRevisionsCount() { + return applicationTemplateSystemRevisions_.size(); + } + + /** + * + * + *
+   * The list of application template system revisions.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplicationTemplateSystemRevision application_template_system_revisions = 1; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision + getApplicationTemplateSystemRevisions(int index) { + return applicationTemplateSystemRevisions_.get(index); + } + + /** + * + * + *
+   * The list of application template system revisions.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplicationTemplateSystemRevision application_template_system_revisions = 1; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevisionOrBuilder + getApplicationTemplateSystemRevisionsOrBuilder(int index) { + return applicationTemplateSystemRevisions_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * If there might be more results than those appearing in this response, then
+   * nextPageToken is included. To get the next set of results, call this method
+   * again using the value of nextPageToken as pageToken.
+   * 
+ * + * 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; + } + } + + /** + * + * + *
+   * If there might be more results than those appearing in this response, then
+   * nextPageToken is included. To get the next set of results, call this method
+   * again using the value of nextPageToken as pageToken.
+   * 
+ * + * 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(); + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @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); + } + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @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 < applicationTemplateSystemRevisions_.size(); i++) { + output.writeMessage(1, applicationTemplateSystemRevisions_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessage.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 < applicationTemplateSystemRevisions_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, applicationTemplateSystemRevisions_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.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.designcenter.v1.ListApplicationTemplateSystemRevisionsResponse)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsResponse other = + (com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsResponse) obj; + + if (!getApplicationTemplateSystemRevisionsList() + .equals(other.getApplicationTemplateSystemRevisionsList())) 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 (getApplicationTemplateSystemRevisionsCount() > 0) { + hash = (37 * hash) + APPLICATION_TEMPLATE_SYSTEM_REVISIONS_FIELD_NUMBER; + hash = (53 * hash) + getApplicationTemplateSystemRevisionsList().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.designcenter.v1.ListApplicationTemplateSystemRevisionsResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsResponse + 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.designcenter.v1.ListApplicationTemplateSystemRevisionsResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsResponse + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsResponse + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsResponse + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ListApplicationTemplateSystemRevisionsResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for response to listing application template system revisions.
+   * 
+ * + * Protobuf type {@code + * google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsResponse) + com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListApplicationTemplateSystemRevisionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListApplicationTemplateSystemRevisionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsResponse.class, + com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsResponse + .Builder.class); + } + + // Construct using + // com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (applicationTemplateSystemRevisionsBuilder_ == null) { + applicationTemplateSystemRevisions_ = java.util.Collections.emptyList(); + } else { + applicationTemplateSystemRevisions_ = null; + applicationTemplateSystemRevisionsBuilder_.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.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListApplicationTemplateSystemRevisionsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsResponse + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsResponse build() { + com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsResponse + buildPartial() { + com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsResponse result = + new com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsResponse result) { + if (applicationTemplateSystemRevisionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + applicationTemplateSystemRevisions_ = + java.util.Collections.unmodifiableList(applicationTemplateSystemRevisions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.applicationTemplateSystemRevisions_ = applicationTemplateSystemRevisions_; + } else { + result.applicationTemplateSystemRevisions_ = + applicationTemplateSystemRevisionsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsResponse 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 mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsResponse) { + return mergeFrom( + (com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsResponse) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsResponse other) { + if (other + == com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsResponse + .getDefaultInstance()) return this; + if (applicationTemplateSystemRevisionsBuilder_ == null) { + if (!other.applicationTemplateSystemRevisions_.isEmpty()) { + if (applicationTemplateSystemRevisions_.isEmpty()) { + applicationTemplateSystemRevisions_ = other.applicationTemplateSystemRevisions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureApplicationTemplateSystemRevisionsIsMutable(); + applicationTemplateSystemRevisions_.addAll(other.applicationTemplateSystemRevisions_); + } + onChanged(); + } + } else { + if (!other.applicationTemplateSystemRevisions_.isEmpty()) { + if (applicationTemplateSystemRevisionsBuilder_.isEmpty()) { + applicationTemplateSystemRevisionsBuilder_.dispose(); + applicationTemplateSystemRevisionsBuilder_ = null; + applicationTemplateSystemRevisions_ = other.applicationTemplateSystemRevisions_; + bitField0_ = (bitField0_ & ~0x00000001); + applicationTemplateSystemRevisionsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetApplicationTemplateSystemRevisionsFieldBuilder() + : null; + } else { + applicationTemplateSystemRevisionsBuilder_.addAllMessages( + other.applicationTemplateSystemRevisions_); + } + } + } + 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.designcenter.v1.ApplicationTemplateSystemRevision m = + input.readMessage( + com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision.parser(), + extensionRegistry); + if (applicationTemplateSystemRevisionsBuilder_ == null) { + ensureApplicationTemplateSystemRevisionsIsMutable(); + applicationTemplateSystemRevisions_.add(m); + } else { + applicationTemplateSystemRevisionsBuilder_.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 + applicationTemplateSystemRevisions_ = java.util.Collections.emptyList(); + + private void ensureApplicationTemplateSystemRevisionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + applicationTemplateSystemRevisions_ = + new java.util.ArrayList< + com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision>( + applicationTemplateSystemRevisions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision, + com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision.Builder, + com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevisionOrBuilder> + applicationTemplateSystemRevisionsBuilder_; + + /** + * + * + *
+     * The list of application template system revisions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplicationTemplateSystemRevision application_template_system_revisions = 1; + * + */ + public java.util.List + getApplicationTemplateSystemRevisionsList() { + if (applicationTemplateSystemRevisionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(applicationTemplateSystemRevisions_); + } else { + return applicationTemplateSystemRevisionsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The list of application template system revisions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplicationTemplateSystemRevision application_template_system_revisions = 1; + * + */ + public int getApplicationTemplateSystemRevisionsCount() { + if (applicationTemplateSystemRevisionsBuilder_ == null) { + return applicationTemplateSystemRevisions_.size(); + } else { + return applicationTemplateSystemRevisionsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The list of application template system revisions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplicationTemplateSystemRevision application_template_system_revisions = 1; + * + */ + public com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision + getApplicationTemplateSystemRevisions(int index) { + if (applicationTemplateSystemRevisionsBuilder_ == null) { + return applicationTemplateSystemRevisions_.get(index); + } else { + return applicationTemplateSystemRevisionsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The list of application template system revisions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplicationTemplateSystemRevision application_template_system_revisions = 1; + * + */ + public Builder setApplicationTemplateSystemRevisions( + int index, com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision value) { + if (applicationTemplateSystemRevisionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicationTemplateSystemRevisionsIsMutable(); + applicationTemplateSystemRevisions_.set(index, value); + onChanged(); + } else { + applicationTemplateSystemRevisionsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of application template system revisions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplicationTemplateSystemRevision application_template_system_revisions = 1; + * + */ + public Builder setApplicationTemplateSystemRevisions( + int index, + com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision.Builder + builderForValue) { + if (applicationTemplateSystemRevisionsBuilder_ == null) { + ensureApplicationTemplateSystemRevisionsIsMutable(); + applicationTemplateSystemRevisions_.set(index, builderForValue.build()); + onChanged(); + } else { + applicationTemplateSystemRevisionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of application template system revisions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplicationTemplateSystemRevision application_template_system_revisions = 1; + * + */ + public Builder addApplicationTemplateSystemRevisions( + com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision value) { + if (applicationTemplateSystemRevisionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicationTemplateSystemRevisionsIsMutable(); + applicationTemplateSystemRevisions_.add(value); + onChanged(); + } else { + applicationTemplateSystemRevisionsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The list of application template system revisions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplicationTemplateSystemRevision application_template_system_revisions = 1; + * + */ + public Builder addApplicationTemplateSystemRevisions( + int index, com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision value) { + if (applicationTemplateSystemRevisionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicationTemplateSystemRevisionsIsMutable(); + applicationTemplateSystemRevisions_.add(index, value); + onChanged(); + } else { + applicationTemplateSystemRevisionsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of application template system revisions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplicationTemplateSystemRevision application_template_system_revisions = 1; + * + */ + public Builder addApplicationTemplateSystemRevisions( + com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision.Builder + builderForValue) { + if (applicationTemplateSystemRevisionsBuilder_ == null) { + ensureApplicationTemplateSystemRevisionsIsMutable(); + applicationTemplateSystemRevisions_.add(builderForValue.build()); + onChanged(); + } else { + applicationTemplateSystemRevisionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of application template system revisions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplicationTemplateSystemRevision application_template_system_revisions = 1; + * + */ + public Builder addApplicationTemplateSystemRevisions( + int index, + com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision.Builder + builderForValue) { + if (applicationTemplateSystemRevisionsBuilder_ == null) { + ensureApplicationTemplateSystemRevisionsIsMutable(); + applicationTemplateSystemRevisions_.add(index, builderForValue.build()); + onChanged(); + } else { + applicationTemplateSystemRevisionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of application template system revisions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplicationTemplateSystemRevision application_template_system_revisions = 1; + * + */ + public Builder addAllApplicationTemplateSystemRevisions( + java.lang.Iterable< + ? extends com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision> + values) { + if (applicationTemplateSystemRevisionsBuilder_ == null) { + ensureApplicationTemplateSystemRevisionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, applicationTemplateSystemRevisions_); + onChanged(); + } else { + applicationTemplateSystemRevisionsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The list of application template system revisions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplicationTemplateSystemRevision application_template_system_revisions = 1; + * + */ + public Builder clearApplicationTemplateSystemRevisions() { + if (applicationTemplateSystemRevisionsBuilder_ == null) { + applicationTemplateSystemRevisions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + applicationTemplateSystemRevisionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The list of application template system revisions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplicationTemplateSystemRevision application_template_system_revisions = 1; + * + */ + public Builder removeApplicationTemplateSystemRevisions(int index) { + if (applicationTemplateSystemRevisionsBuilder_ == null) { + ensureApplicationTemplateSystemRevisionsIsMutable(); + applicationTemplateSystemRevisions_.remove(index); + onChanged(); + } else { + applicationTemplateSystemRevisionsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The list of application template system revisions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplicationTemplateSystemRevision application_template_system_revisions = 1; + * + */ + public com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision.Builder + getApplicationTemplateSystemRevisionsBuilder(int index) { + return internalGetApplicationTemplateSystemRevisionsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The list of application template system revisions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplicationTemplateSystemRevision application_template_system_revisions = 1; + * + */ + public com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevisionOrBuilder + getApplicationTemplateSystemRevisionsOrBuilder(int index) { + if (applicationTemplateSystemRevisionsBuilder_ == null) { + return applicationTemplateSystemRevisions_.get(index); + } else { + return applicationTemplateSystemRevisionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The list of application template system revisions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplicationTemplateSystemRevision application_template_system_revisions = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevisionOrBuilder> + getApplicationTemplateSystemRevisionsOrBuilderList() { + if (applicationTemplateSystemRevisionsBuilder_ != null) { + return applicationTemplateSystemRevisionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(applicationTemplateSystemRevisions_); + } + } + + /** + * + * + *
+     * The list of application template system revisions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplicationTemplateSystemRevision application_template_system_revisions = 1; + * + */ + public com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision.Builder + addApplicationTemplateSystemRevisionsBuilder() { + return internalGetApplicationTemplateSystemRevisionsFieldBuilder() + .addBuilder( + com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision + .getDefaultInstance()); + } + + /** + * + * + *
+     * The list of application template system revisions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplicationTemplateSystemRevision application_template_system_revisions = 1; + * + */ + public com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision.Builder + addApplicationTemplateSystemRevisionsBuilder(int index) { + return internalGetApplicationTemplateSystemRevisionsFieldBuilder() + .addBuilder( + index, + com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision + .getDefaultInstance()); + } + + /** + * + * + *
+     * The list of application template system revisions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplicationTemplateSystemRevision application_template_system_revisions = 1; + * + */ + public java.util.List< + com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision.Builder> + getApplicationTemplateSystemRevisionsBuilderList() { + return internalGetApplicationTemplateSystemRevisionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision, + com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision.Builder, + com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevisionOrBuilder> + internalGetApplicationTemplateSystemRevisionsFieldBuilder() { + if (applicationTemplateSystemRevisionsBuilder_ == null) { + applicationTemplateSystemRevisionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision, + com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision.Builder, + com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevisionOrBuilder>( + applicationTemplateSystemRevisions_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + applicationTemplateSystemRevisions_ = null; + } + return applicationTemplateSystemRevisionsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * If there might be more results than those appearing in this response, then
+     * nextPageToken is included. To get the next set of results, call this method
+     * again using the value of nextPageToken as pageToken.
+     * 
+ * + * 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; + } + } + + /** + * + * + *
+     * If there might be more results than those appearing in this response, then
+     * nextPageToken is included. To get the next set of results, call this method
+     * again using the value of nextPageToken as pageToken.
+     * 
+ * + * 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; + } + } + + /** + * + * + *
+     * If there might be more results than those appearing in this response, then
+     * nextPageToken is included. To get the next set of results, call this method
+     * again using the value of nextPageToken as pageToken.
+     * 
+ * + * 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; + } + + /** + * + * + *
+     * If there might be more results than those appearing in this response, then
+     * nextPageToken is included. To get the next set of results, call this method
+     * again using the value of nextPageToken as pageToken.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * If there might be more results than those appearing in this response, then
+     * nextPageToken is included. To get the next set of results, call this method
+     * again using the value of nextPageToken as pageToken.
+     * 
+ * + * 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; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @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); + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @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); + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @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; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @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; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @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; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsResponse) + private static final com.google.cloud.designcenter.v1 + .ListApplicationTemplateSystemRevisionsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsResponse(); + } + + public static com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListApplicationTemplateSystemRevisionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ListApplicationTemplateSystemRevisionsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListApplicationTemplateSystemRevisionsResponseOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListApplicationTemplateSystemRevisionsResponseOrBuilder.java new file mode 100644 index 000000000000..4db4ab6b363e --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListApplicationTemplateSystemRevisionsResponseOrBuilder.java @@ -0,0 +1,182 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ListApplicationTemplateSystemRevisionsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of application template system revisions.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplicationTemplateSystemRevision application_template_system_revisions = 1; + * + */ + java.util.List + getApplicationTemplateSystemRevisionsList(); + + /** + * + * + *
+   * The list of application template system revisions.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplicationTemplateSystemRevision application_template_system_revisions = 1; + * + */ + com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision + getApplicationTemplateSystemRevisions(int index); + + /** + * + * + *
+   * The list of application template system revisions.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplicationTemplateSystemRevision application_template_system_revisions = 1; + * + */ + int getApplicationTemplateSystemRevisionsCount(); + + /** + * + * + *
+   * The list of application template system revisions.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplicationTemplateSystemRevision application_template_system_revisions = 1; + * + */ + java.util.List< + ? extends com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevisionOrBuilder> + getApplicationTemplateSystemRevisionsOrBuilderList(); + + /** + * + * + *
+   * The list of application template system revisions.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplicationTemplateSystemRevision application_template_system_revisions = 1; + * + */ + com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevisionOrBuilder + getApplicationTemplateSystemRevisionsOrBuilder(int index); + + /** + * + * + *
+   * If there might be more results than those appearing in this response, then
+   * nextPageToken is included. To get the next set of results, call this method
+   * again using the value of nextPageToken as pageToken.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * If there might be more results than those appearing in this response, then
+   * nextPageToken is included. To get the next set of results, call this method
+   * again using the value of nextPageToken as pageToken.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @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-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListApplicationTemplatesRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListApplicationTemplatesRequest.java new file mode 100644 index 000000000000..2ff18beb2249 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListApplicationTemplatesRequest.java @@ -0,0 +1,1315 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for requesting a list of application templates.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ListApplicationTemplatesRequest} + */ +@com.google.protobuf.Generated +public final class ListApplicationTemplatesRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ListApplicationTemplatesRequest) + ListApplicationTemplatesRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ListApplicationTemplatesRequest"); + } + + // Use ListApplicationTemplatesRequest.newBuilder() to construct. + private ListApplicationTemplatesRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListApplicationTemplatesRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListApplicationTemplatesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListApplicationTemplatesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ListApplicationTemplatesRequest.class, + com.google.cloud.designcenter.v1.ListApplicationTemplatesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent resource from which to list application templates.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The parent resource from which to list application templates.
+   * 
+ * + * + * 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 results to return from this request.
+   * Non-positive
+   * values are ignored. The presence of nextPageToken in the response
+   * indicates that more results might be available.
+   * 
+ * + * 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. If present, then retrieve the next batch of results from the
+   * preceding call to this method. pageToken must be the value of nextPageToken
+   * from the previous response. The values of other method parameters should be
+   * identical to those in the previous call.
+   * 
+ * + * 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. If present, then retrieve the next batch of results from the
+   * preceding call to this method. pageToken must be the value of nextPageToken
+   * from the previous response. The values of other method parameters should be
+   * identical to those in the previous call.
+   * 
+ * + * 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; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
+   * Optional. A filter that chooses which shared template revisions to return.
+   * 
+ * + * 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. A filter that chooses which shared template revisions to return.
+   * 
+ * + * 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 ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
+   * Optional. How the results should be sorted.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+   * Optional. How the results should be sorted.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessage.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.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessage.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.designcenter.v1.ListApplicationTemplatesRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ListApplicationTemplatesRequest other = + (com.google.cloud.designcenter.v1.ListApplicationTemplatesRequest) 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.designcenter.v1.ListApplicationTemplatesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListApplicationTemplatesRequest 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.designcenter.v1.ListApplicationTemplatesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListApplicationTemplatesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListApplicationTemplatesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListApplicationTemplatesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListApplicationTemplatesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListApplicationTemplatesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListApplicationTemplatesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListApplicationTemplatesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListApplicationTemplatesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListApplicationTemplatesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ListApplicationTemplatesRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for requesting a list of application templates.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ListApplicationTemplatesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ListApplicationTemplatesRequest) + com.google.cloud.designcenter.v1.ListApplicationTemplatesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListApplicationTemplatesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListApplicationTemplatesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ListApplicationTemplatesRequest.class, + com.google.cloud.designcenter.v1.ListApplicationTemplatesRequest.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.ListApplicationTemplatesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.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.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListApplicationTemplatesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListApplicationTemplatesRequest + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ListApplicationTemplatesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListApplicationTemplatesRequest build() { + com.google.cloud.designcenter.v1.ListApplicationTemplatesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListApplicationTemplatesRequest buildPartial() { + com.google.cloud.designcenter.v1.ListApplicationTemplatesRequest result = + new com.google.cloud.designcenter.v1.ListApplicationTemplatesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.ListApplicationTemplatesRequest 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 mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.ListApplicationTemplatesRequest) { + return mergeFrom((com.google.cloud.designcenter.v1.ListApplicationTemplatesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.designcenter.v1.ListApplicationTemplatesRequest other) { + if (other + == com.google.cloud.designcenter.v1.ListApplicationTemplatesRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent resource from which to list application templates.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The parent resource from which to list application templates.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The parent resource from which to list application templates.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource from which to list application templates.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource from which to list application templates.
+     * 
+ * + * + * 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 results to return from this request.
+     * Non-positive
+     * values are ignored. The presence of nextPageToken in the response
+     * indicates that more results might be available.
+     * 
+ * + * 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 results to return from this request.
+     * Non-positive
+     * values are ignored. The presence of nextPageToken in the response
+     * indicates that more results might be available.
+     * 
+ * + * 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 results to return from this request.
+     * Non-positive
+     * values are ignored. The presence of nextPageToken in the response
+     * indicates that more results might be available.
+     * 
+ * + * 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. If present, then retrieve the next batch of results from the
+     * preceding call to this method. pageToken must be the value of nextPageToken
+     * from the previous response. The values of other method parameters should be
+     * identical to those in the previous call.
+     * 
+ * + * 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. If present, then retrieve the next batch of results from the
+     * preceding call to this method. pageToken must be the value of nextPageToken
+     * from the previous response. The values of other method parameters should be
+     * identical to those in the previous call.
+     * 
+ * + * 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. If present, then retrieve the next batch of results from the
+     * preceding call to this method. pageToken must be the value of nextPageToken
+     * from the previous response. The values of other method parameters should be
+     * identical to those in the previous call.
+     * 
+ * + * 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. If present, then retrieve the next batch of results from the
+     * preceding call to this method. pageToken must be the value of nextPageToken
+     * from the previous response. The values of other method parameters should be
+     * identical to those in the previous call.
+     * 
+ * + * 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. If present, then retrieve the next batch of results from the
+     * preceding call to this method. pageToken must be the value of nextPageToken
+     * from the previous response. The values of other method parameters should be
+     * identical to those in the previous call.
+     * 
+ * + * 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; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
+     * Optional. A filter that chooses which shared template revisions to return.
+     * 
+ * + * 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. A filter that chooses which shared template revisions to return.
+     * 
+ * + * 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. A filter that chooses which shared template revisions to return.
+     * 
+ * + * 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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A filter that chooses which shared template revisions to return.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A filter that chooses which shared template revisions to return.
+     * 
+ * + * 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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
+     * Optional. How the results should be sorted.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+     * Optional. How the results should be sorted.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+     * Optional. How the results should be sorted.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + + /** + * + * + *
+     * Optional. How the results should be sorted.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. How the results should be sorted.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ListApplicationTemplatesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ListApplicationTemplatesRequest) + private static final com.google.cloud.designcenter.v1.ListApplicationTemplatesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.ListApplicationTemplatesRequest(); + } + + public static com.google.cloud.designcenter.v1.ListApplicationTemplatesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListApplicationTemplatesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ListApplicationTemplatesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListApplicationTemplatesRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListApplicationTemplatesRequestOrBuilder.java new file mode 100644 index 000000000000..1b0aaafd4fd5 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListApplicationTemplatesRequestOrBuilder.java @@ -0,0 +1,158 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ListApplicationTemplatesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ListApplicationTemplatesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource from which to list application templates.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent resource from which to list application templates.
+   * 
+ * + * + * 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 results to return from this request.
+   * Non-positive
+   * values are ignored. The presence of nextPageToken in the response
+   * indicates that more results might be available.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. If present, then retrieve the next batch of results from the
+   * preceding call to this method. pageToken must be the value of nextPageToken
+   * from the previous response. The values of other method parameters should be
+   * identical to those in the previous call.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * Optional. If present, then retrieve the next batch of results from the
+   * preceding call to this method. pageToken must be the value of nextPageToken
+   * from the previous response. The values of other method parameters should be
+   * identical to those in the previous call.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional. A filter that chooses which shared template revisions to return.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * Optional. A filter that chooses which shared template revisions to return.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional. How the results should be sorted.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
+   * Optional. How the results should be sorted.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListApplicationTemplatesResponse.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListApplicationTemplatesResponse.java new file mode 100644 index 000000000000..f7eaf08f2685 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListApplicationTemplatesResponse.java @@ -0,0 +1,1469 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for response to listing application templates.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ListApplicationTemplatesResponse} + */ +@com.google.protobuf.Generated +public final class ListApplicationTemplatesResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ListApplicationTemplatesResponse) + ListApplicationTemplatesResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ListApplicationTemplatesResponse"); + } + + // Use ListApplicationTemplatesResponse.newBuilder() to construct. + private ListApplicationTemplatesResponse( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListApplicationTemplatesResponse() { + applicationTemplates_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListApplicationTemplatesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListApplicationTemplatesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ListApplicationTemplatesResponse.class, + com.google.cloud.designcenter.v1.ListApplicationTemplatesResponse.Builder.class); + } + + public static final int APPLICATION_TEMPLATES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + applicationTemplates_; + + /** + * + * + *
+   * The list of application templates.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.ApplicationTemplate application_templates = 1; + * + */ + @java.lang.Override + public java.util.List + getApplicationTemplatesList() { + return applicationTemplates_; + } + + /** + * + * + *
+   * The list of application templates.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.ApplicationTemplate application_templates = 1; + * + */ + @java.lang.Override + public java.util.List + getApplicationTemplatesOrBuilderList() { + return applicationTemplates_; + } + + /** + * + * + *
+   * The list of application templates.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.ApplicationTemplate application_templates = 1; + * + */ + @java.lang.Override + public int getApplicationTemplatesCount() { + return applicationTemplates_.size(); + } + + /** + * + * + *
+   * The list of application templates.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.ApplicationTemplate application_templates = 1; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ApplicationTemplate getApplicationTemplates(int index) { + return applicationTemplates_.get(index); + } + + /** + * + * + *
+   * The list of application templates.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.ApplicationTemplate application_templates = 1; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ApplicationTemplateOrBuilder + getApplicationTemplatesOrBuilder(int index) { + return applicationTemplates_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * If there might be more results than those appearing in this response, then
+   * nextPageToken is included. To get the next set of results, call this method
+   * again using the value of nextPageToken as pageToken.
+   * 
+ * + * 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; + } + } + + /** + * + * + *
+   * If there might be more results than those appearing in this response, then
+   * nextPageToken is included. To get the next set of results, call this method
+   * again using the value of nextPageToken as pageToken.
+   * 
+ * + * 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 < applicationTemplates_.size(); i++) { + output.writeMessage(1, applicationTemplates_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessage.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 < applicationTemplates_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, applicationTemplates_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.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.designcenter.v1.ListApplicationTemplatesResponse)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ListApplicationTemplatesResponse other = + (com.google.cloud.designcenter.v1.ListApplicationTemplatesResponse) obj; + + if (!getApplicationTemplatesList().equals(other.getApplicationTemplatesList())) 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 (getApplicationTemplatesCount() > 0) { + hash = (37 * hash) + APPLICATION_TEMPLATES_FIELD_NUMBER; + hash = (53 * hash) + getApplicationTemplatesList().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.designcenter.v1.ListApplicationTemplatesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListApplicationTemplatesResponse 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.designcenter.v1.ListApplicationTemplatesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListApplicationTemplatesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListApplicationTemplatesResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListApplicationTemplatesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListApplicationTemplatesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListApplicationTemplatesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListApplicationTemplatesResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListApplicationTemplatesResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListApplicationTemplatesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListApplicationTemplatesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ListApplicationTemplatesResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for response to listing application templates.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ListApplicationTemplatesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ListApplicationTemplatesResponse) + com.google.cloud.designcenter.v1.ListApplicationTemplatesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListApplicationTemplatesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListApplicationTemplatesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ListApplicationTemplatesResponse.class, + com.google.cloud.designcenter.v1.ListApplicationTemplatesResponse.Builder.class); + } + + // Construct using + // com.google.cloud.designcenter.v1.ListApplicationTemplatesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (applicationTemplatesBuilder_ == null) { + applicationTemplates_ = java.util.Collections.emptyList(); + } else { + applicationTemplates_ = null; + applicationTemplatesBuilder_.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.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListApplicationTemplatesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListApplicationTemplatesResponse + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ListApplicationTemplatesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListApplicationTemplatesResponse build() { + com.google.cloud.designcenter.v1.ListApplicationTemplatesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListApplicationTemplatesResponse buildPartial() { + com.google.cloud.designcenter.v1.ListApplicationTemplatesResponse result = + new com.google.cloud.designcenter.v1.ListApplicationTemplatesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.designcenter.v1.ListApplicationTemplatesResponse result) { + if (applicationTemplatesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + applicationTemplates_ = java.util.Collections.unmodifiableList(applicationTemplates_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.applicationTemplates_ = applicationTemplates_; + } else { + result.applicationTemplates_ = applicationTemplatesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.ListApplicationTemplatesResponse 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 mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.ListApplicationTemplatesResponse) { + return mergeFrom((com.google.cloud.designcenter.v1.ListApplicationTemplatesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.designcenter.v1.ListApplicationTemplatesResponse other) { + if (other + == com.google.cloud.designcenter.v1.ListApplicationTemplatesResponse.getDefaultInstance()) + return this; + if (applicationTemplatesBuilder_ == null) { + if (!other.applicationTemplates_.isEmpty()) { + if (applicationTemplates_.isEmpty()) { + applicationTemplates_ = other.applicationTemplates_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureApplicationTemplatesIsMutable(); + applicationTemplates_.addAll(other.applicationTemplates_); + } + onChanged(); + } + } else { + if (!other.applicationTemplates_.isEmpty()) { + if (applicationTemplatesBuilder_.isEmpty()) { + applicationTemplatesBuilder_.dispose(); + applicationTemplatesBuilder_ = null; + applicationTemplates_ = other.applicationTemplates_; + bitField0_ = (bitField0_ & ~0x00000001); + applicationTemplatesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetApplicationTemplatesFieldBuilder() + : null; + } else { + applicationTemplatesBuilder_.addAllMessages(other.applicationTemplates_); + } + } + } + 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.designcenter.v1.ApplicationTemplate m = + input.readMessage( + com.google.cloud.designcenter.v1.ApplicationTemplate.parser(), + extensionRegistry); + if (applicationTemplatesBuilder_ == null) { + ensureApplicationTemplatesIsMutable(); + applicationTemplates_.add(m); + } else { + applicationTemplatesBuilder_.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 + applicationTemplates_ = java.util.Collections.emptyList(); + + private void ensureApplicationTemplatesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + applicationTemplates_ = + new java.util.ArrayList( + applicationTemplates_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ApplicationTemplate, + com.google.cloud.designcenter.v1.ApplicationTemplate.Builder, + com.google.cloud.designcenter.v1.ApplicationTemplateOrBuilder> + applicationTemplatesBuilder_; + + /** + * + * + *
+     * The list of application templates.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.ApplicationTemplate application_templates = 1; + * + */ + public java.util.List + getApplicationTemplatesList() { + if (applicationTemplatesBuilder_ == null) { + return java.util.Collections.unmodifiableList(applicationTemplates_); + } else { + return applicationTemplatesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The list of application templates.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.ApplicationTemplate application_templates = 1; + * + */ + public int getApplicationTemplatesCount() { + if (applicationTemplatesBuilder_ == null) { + return applicationTemplates_.size(); + } else { + return applicationTemplatesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The list of application templates.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.ApplicationTemplate application_templates = 1; + * + */ + public com.google.cloud.designcenter.v1.ApplicationTemplate getApplicationTemplates(int index) { + if (applicationTemplatesBuilder_ == null) { + return applicationTemplates_.get(index); + } else { + return applicationTemplatesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The list of application templates.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.ApplicationTemplate application_templates = 1; + * + */ + public Builder setApplicationTemplates( + int index, com.google.cloud.designcenter.v1.ApplicationTemplate value) { + if (applicationTemplatesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicationTemplatesIsMutable(); + applicationTemplates_.set(index, value); + onChanged(); + } else { + applicationTemplatesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of application templates.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.ApplicationTemplate application_templates = 1; + * + */ + public Builder setApplicationTemplates( + int index, com.google.cloud.designcenter.v1.ApplicationTemplate.Builder builderForValue) { + if (applicationTemplatesBuilder_ == null) { + ensureApplicationTemplatesIsMutable(); + applicationTemplates_.set(index, builderForValue.build()); + onChanged(); + } else { + applicationTemplatesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of application templates.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.ApplicationTemplate application_templates = 1; + * + */ + public Builder addApplicationTemplates( + com.google.cloud.designcenter.v1.ApplicationTemplate value) { + if (applicationTemplatesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicationTemplatesIsMutable(); + applicationTemplates_.add(value); + onChanged(); + } else { + applicationTemplatesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The list of application templates.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.ApplicationTemplate application_templates = 1; + * + */ + public Builder addApplicationTemplates( + int index, com.google.cloud.designcenter.v1.ApplicationTemplate value) { + if (applicationTemplatesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicationTemplatesIsMutable(); + applicationTemplates_.add(index, value); + onChanged(); + } else { + applicationTemplatesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of application templates.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.ApplicationTemplate application_templates = 1; + * + */ + public Builder addApplicationTemplates( + com.google.cloud.designcenter.v1.ApplicationTemplate.Builder builderForValue) { + if (applicationTemplatesBuilder_ == null) { + ensureApplicationTemplatesIsMutable(); + applicationTemplates_.add(builderForValue.build()); + onChanged(); + } else { + applicationTemplatesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of application templates.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.ApplicationTemplate application_templates = 1; + * + */ + public Builder addApplicationTemplates( + int index, com.google.cloud.designcenter.v1.ApplicationTemplate.Builder builderForValue) { + if (applicationTemplatesBuilder_ == null) { + ensureApplicationTemplatesIsMutable(); + applicationTemplates_.add(index, builderForValue.build()); + onChanged(); + } else { + applicationTemplatesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of application templates.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.ApplicationTemplate application_templates = 1; + * + */ + public Builder addAllApplicationTemplates( + java.lang.Iterable values) { + if (applicationTemplatesBuilder_ == null) { + ensureApplicationTemplatesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, applicationTemplates_); + onChanged(); + } else { + applicationTemplatesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The list of application templates.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.ApplicationTemplate application_templates = 1; + * + */ + public Builder clearApplicationTemplates() { + if (applicationTemplatesBuilder_ == null) { + applicationTemplates_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + applicationTemplatesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The list of application templates.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.ApplicationTemplate application_templates = 1; + * + */ + public Builder removeApplicationTemplates(int index) { + if (applicationTemplatesBuilder_ == null) { + ensureApplicationTemplatesIsMutable(); + applicationTemplates_.remove(index); + onChanged(); + } else { + applicationTemplatesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The list of application templates.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.ApplicationTemplate application_templates = 1; + * + */ + public com.google.cloud.designcenter.v1.ApplicationTemplate.Builder + getApplicationTemplatesBuilder(int index) { + return internalGetApplicationTemplatesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The list of application templates.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.ApplicationTemplate application_templates = 1; + * + */ + public com.google.cloud.designcenter.v1.ApplicationTemplateOrBuilder + getApplicationTemplatesOrBuilder(int index) { + if (applicationTemplatesBuilder_ == null) { + return applicationTemplates_.get(index); + } else { + return applicationTemplatesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The list of application templates.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.ApplicationTemplate application_templates = 1; + * + */ + public java.util.List + getApplicationTemplatesOrBuilderList() { + if (applicationTemplatesBuilder_ != null) { + return applicationTemplatesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(applicationTemplates_); + } + } + + /** + * + * + *
+     * The list of application templates.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.ApplicationTemplate application_templates = 1; + * + */ + public com.google.cloud.designcenter.v1.ApplicationTemplate.Builder + addApplicationTemplatesBuilder() { + return internalGetApplicationTemplatesFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.ApplicationTemplate.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of application templates.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.ApplicationTemplate application_templates = 1; + * + */ + public com.google.cloud.designcenter.v1.ApplicationTemplate.Builder + addApplicationTemplatesBuilder(int index) { + return internalGetApplicationTemplatesFieldBuilder() + .addBuilder( + index, com.google.cloud.designcenter.v1.ApplicationTemplate.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of application templates.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.ApplicationTemplate application_templates = 1; + * + */ + public java.util.List + getApplicationTemplatesBuilderList() { + return internalGetApplicationTemplatesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ApplicationTemplate, + com.google.cloud.designcenter.v1.ApplicationTemplate.Builder, + com.google.cloud.designcenter.v1.ApplicationTemplateOrBuilder> + internalGetApplicationTemplatesFieldBuilder() { + if (applicationTemplatesBuilder_ == null) { + applicationTemplatesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ApplicationTemplate, + com.google.cloud.designcenter.v1.ApplicationTemplate.Builder, + com.google.cloud.designcenter.v1.ApplicationTemplateOrBuilder>( + applicationTemplates_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + applicationTemplates_ = null; + } + return applicationTemplatesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * If there might be more results than those appearing in this response, then
+     * nextPageToken is included. To get the next set of results, call this method
+     * again using the value of nextPageToken as pageToken.
+     * 
+ * + * 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; + } + } + + /** + * + * + *
+     * If there might be more results than those appearing in this response, then
+     * nextPageToken is included. To get the next set of results, call this method
+     * again using the value of nextPageToken as pageToken.
+     * 
+ * + * 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; + } + } + + /** + * + * + *
+     * If there might be more results than those appearing in this response, then
+     * nextPageToken is included. To get the next set of results, call this method
+     * again using the value of nextPageToken as pageToken.
+     * 
+ * + * 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; + } + + /** + * + * + *
+     * If there might be more results than those appearing in this response, then
+     * nextPageToken is included. To get the next set of results, call this method
+     * again using the value of nextPageToken as pageToken.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * If there might be more results than those appearing in this response, then
+     * nextPageToken is included. To get the next set of results, call this method
+     * again using the value of nextPageToken as pageToken.
+     * 
+ * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ListApplicationTemplatesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ListApplicationTemplatesResponse) + private static final com.google.cloud.designcenter.v1.ListApplicationTemplatesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.ListApplicationTemplatesResponse(); + } + + public static com.google.cloud.designcenter.v1.ListApplicationTemplatesResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListApplicationTemplatesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ListApplicationTemplatesResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListApplicationTemplatesResponseOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListApplicationTemplatesResponseOrBuilder.java new file mode 100644 index 000000000000..74241bccaff2 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListApplicationTemplatesResponseOrBuilder.java @@ -0,0 +1,175 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ListApplicationTemplatesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ListApplicationTemplatesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of application templates.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.ApplicationTemplate application_templates = 1; + * + */ + java.util.List + getApplicationTemplatesList(); + + /** + * + * + *
+   * The list of application templates.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.ApplicationTemplate application_templates = 1; + * + */ + com.google.cloud.designcenter.v1.ApplicationTemplate getApplicationTemplates(int index); + + /** + * + * + *
+   * The list of application templates.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.ApplicationTemplate application_templates = 1; + * + */ + int getApplicationTemplatesCount(); + + /** + * + * + *
+   * The list of application templates.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.ApplicationTemplate application_templates = 1; + * + */ + java.util.List + getApplicationTemplatesOrBuilderList(); + + /** + * + * + *
+   * The list of application templates.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.ApplicationTemplate application_templates = 1; + * + */ + com.google.cloud.designcenter.v1.ApplicationTemplateOrBuilder getApplicationTemplatesOrBuilder( + int index); + + /** + * + * + *
+   * If there might be more results than those appearing in this response, then
+   * nextPageToken is included. To get the next set of results, call this method
+   * again using the value of nextPageToken as pageToken.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * If there might be more results than those appearing in this response, then
+   * nextPageToken is included. To get the next set of results, call this method
+   * again using the value of nextPageToken as pageToken.
+   * 
+ * + * 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-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListApplicationsRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListApplicationsRequest.java new file mode 100644 index 000000000000..aae8de30ee9c --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListApplicationsRequest.java @@ -0,0 +1,1308 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for requesting a list of applications.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ListApplicationsRequest} + */ +@com.google.protobuf.Generated +public final class ListApplicationsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ListApplicationsRequest) + ListApplicationsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ListApplicationsRequest"); + } + + // Use ListApplicationsRequest.newBuilder() to construct. + private ListApplicationsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListApplicationsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListApplicationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListApplicationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ListApplicationsRequest.class, + com.google.cloud.designcenter.v1.ListApplicationsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent resource from which to request a list of applications.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The parent resource from which to request a list of applications.
+   * 
+ * + * + * 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 results to return from this request.
+   * Non-positive
+   * values are ignored. The presence of nextPageToken in the response
+   * indicates that more results might be available.
+   * 
+ * + * 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. If present, then retrieve the next batch of results from the
+   * preceding call to this method. pageToken must be the value of nextPageToken
+   * from the previous response. The values of other method parameters should be
+   * identical to those in the previous call.
+   * 
+ * + * 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. If present, then retrieve the next batch of results from the
+   * preceding call to this method. pageToken must be the value of nextPageToken
+   * from the previous response. The values of other method parameters should be
+   * identical to those in the previous call.
+   * 
+ * + * 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; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
+   * Optional. A filter that chooses which applications to return.
+   * 
+ * + * 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. A filter that chooses which applications to return.
+   * 
+ * + * 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 ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
+   * Optional. How the results should be sorted.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+   * Optional. How the results should be sorted.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessage.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.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessage.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.designcenter.v1.ListApplicationsRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ListApplicationsRequest other = + (com.google.cloud.designcenter.v1.ListApplicationsRequest) 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.designcenter.v1.ListApplicationsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListApplicationsRequest 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.designcenter.v1.ListApplicationsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListApplicationsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListApplicationsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListApplicationsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListApplicationsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListApplicationsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListApplicationsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListApplicationsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListApplicationsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListApplicationsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ListApplicationsRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for requesting a list of applications.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ListApplicationsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ListApplicationsRequest) + com.google.cloud.designcenter.v1.ListApplicationsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListApplicationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListApplicationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ListApplicationsRequest.class, + com.google.cloud.designcenter.v1.ListApplicationsRequest.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.ListApplicationsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.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.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListApplicationsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListApplicationsRequest getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ListApplicationsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListApplicationsRequest build() { + com.google.cloud.designcenter.v1.ListApplicationsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListApplicationsRequest buildPartial() { + com.google.cloud.designcenter.v1.ListApplicationsRequest result = + new com.google.cloud.designcenter.v1.ListApplicationsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.ListApplicationsRequest 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 mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.ListApplicationsRequest) { + return mergeFrom((com.google.cloud.designcenter.v1.ListApplicationsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.ListApplicationsRequest other) { + if (other == com.google.cloud.designcenter.v1.ListApplicationsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent resource from which to request a list of applications.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The parent resource from which to request a list of applications.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The parent resource from which to request a list of applications.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource from which to request a list of applications.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource from which to request a list of applications.
+     * 
+ * + * + * 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 results to return from this request.
+     * Non-positive
+     * values are ignored. The presence of nextPageToken in the response
+     * indicates that more results might be available.
+     * 
+ * + * 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 results to return from this request.
+     * Non-positive
+     * values are ignored. The presence of nextPageToken in the response
+     * indicates that more results might be available.
+     * 
+ * + * 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 results to return from this request.
+     * Non-positive
+     * values are ignored. The presence of nextPageToken in the response
+     * indicates that more results might be available.
+     * 
+ * + * 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. If present, then retrieve the next batch of results from the
+     * preceding call to this method. pageToken must be the value of nextPageToken
+     * from the previous response. The values of other method parameters should be
+     * identical to those in the previous call.
+     * 
+ * + * 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. If present, then retrieve the next batch of results from the
+     * preceding call to this method. pageToken must be the value of nextPageToken
+     * from the previous response. The values of other method parameters should be
+     * identical to those in the previous call.
+     * 
+ * + * 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. If present, then retrieve the next batch of results from the
+     * preceding call to this method. pageToken must be the value of nextPageToken
+     * from the previous response. The values of other method parameters should be
+     * identical to those in the previous call.
+     * 
+ * + * 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. If present, then retrieve the next batch of results from the
+     * preceding call to this method. pageToken must be the value of nextPageToken
+     * from the previous response. The values of other method parameters should be
+     * identical to those in the previous call.
+     * 
+ * + * 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. If present, then retrieve the next batch of results from the
+     * preceding call to this method. pageToken must be the value of nextPageToken
+     * from the previous response. The values of other method parameters should be
+     * identical to those in the previous call.
+     * 
+ * + * 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; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
+     * Optional. A filter that chooses which applications to return.
+     * 
+ * + * 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. A filter that chooses which applications to return.
+     * 
+ * + * 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. A filter that chooses which applications to return.
+     * 
+ * + * 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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A filter that chooses which applications to return.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A filter that chooses which applications to return.
+     * 
+ * + * 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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
+     * Optional. How the results should be sorted.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+     * Optional. How the results should be sorted.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+     * Optional. How the results should be sorted.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + + /** + * + * + *
+     * Optional. How the results should be sorted.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. How the results should be sorted.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ListApplicationsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ListApplicationsRequest) + private static final com.google.cloud.designcenter.v1.ListApplicationsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.ListApplicationsRequest(); + } + + public static com.google.cloud.designcenter.v1.ListApplicationsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListApplicationsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ListApplicationsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListApplicationsRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListApplicationsRequestOrBuilder.java new file mode 100644 index 000000000000..b0823fcf6025 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListApplicationsRequestOrBuilder.java @@ -0,0 +1,158 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ListApplicationsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ListApplicationsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource from which to request a list of applications.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent resource from which to request a list of applications.
+   * 
+ * + * + * 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 results to return from this request.
+   * Non-positive
+   * values are ignored. The presence of nextPageToken in the response
+   * indicates that more results might be available.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. If present, then retrieve the next batch of results from the
+   * preceding call to this method. pageToken must be the value of nextPageToken
+   * from the previous response. The values of other method parameters should be
+   * identical to those in the previous call.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * Optional. If present, then retrieve the next batch of results from the
+   * preceding call to this method. pageToken must be the value of nextPageToken
+   * from the previous response. The values of other method parameters should be
+   * identical to those in the previous call.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional. A filter that chooses which applications to return.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * Optional. A filter that chooses which applications to return.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional. How the results should be sorted.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
+   * Optional. How the results should be sorted.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListApplicationsResponse.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListApplicationsResponse.java new file mode 100644 index 000000000000..032a4ec49186 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListApplicationsResponse.java @@ -0,0 +1,1419 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for response to listing applications.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ListApplicationsResponse} + */ +@com.google.protobuf.Generated +public final class ListApplicationsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ListApplicationsResponse) + ListApplicationsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ListApplicationsResponse"); + } + + // Use ListApplicationsResponse.newBuilder() to construct. + private ListApplicationsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListApplicationsResponse() { + applications_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListApplicationsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListApplicationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ListApplicationsResponse.class, + com.google.cloud.designcenter.v1.ListApplicationsResponse.Builder.class); + } + + public static final int APPLICATIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List applications_; + + /** + * + * + *
+   * The list of applications.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Application applications = 1; + */ + @java.lang.Override + public java.util.List getApplicationsList() { + return applications_; + } + + /** + * + * + *
+   * The list of applications.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Application applications = 1; + */ + @java.lang.Override + public java.util.List + getApplicationsOrBuilderList() { + return applications_; + } + + /** + * + * + *
+   * The list of applications.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Application applications = 1; + */ + @java.lang.Override + public int getApplicationsCount() { + return applications_.size(); + } + + /** + * + * + *
+   * The list of applications.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Application applications = 1; + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.Application getApplications(int index) { + return applications_.get(index); + } + + /** + * + * + *
+   * The list of applications.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Application applications = 1; + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ApplicationOrBuilder getApplicationsOrBuilder(int index) { + return applications_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * If there might be more results than those appearing in this response, then
+   * nextPageToken is included. To get the next set of results, call this method
+   * again using the value of nextPageToken as pageToken.
+   * 
+ * + * 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; + } + } + + /** + * + * + *
+   * If there might be more results than those appearing in this response, then
+   * nextPageToken is included. To get the next set of results, call this method
+   * again using the value of nextPageToken as pageToken.
+   * 
+ * + * 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(); + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @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); + } + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @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 < applications_.size(); i++) { + output.writeMessage(1, applications_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessage.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 < applications_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, applications_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.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.designcenter.v1.ListApplicationsResponse)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ListApplicationsResponse other = + (com.google.cloud.designcenter.v1.ListApplicationsResponse) obj; + + if (!getApplicationsList().equals(other.getApplicationsList())) 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 (getApplicationsCount() > 0) { + hash = (37 * hash) + APPLICATIONS_FIELD_NUMBER; + hash = (53 * hash) + getApplicationsList().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.designcenter.v1.ListApplicationsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListApplicationsResponse 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.designcenter.v1.ListApplicationsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListApplicationsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListApplicationsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListApplicationsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListApplicationsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListApplicationsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListApplicationsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListApplicationsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListApplicationsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListApplicationsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ListApplicationsResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for response to listing applications.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ListApplicationsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ListApplicationsResponse) + com.google.cloud.designcenter.v1.ListApplicationsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListApplicationsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListApplicationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ListApplicationsResponse.class, + com.google.cloud.designcenter.v1.ListApplicationsResponse.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.ListApplicationsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (applicationsBuilder_ == null) { + applications_ = java.util.Collections.emptyList(); + } else { + applications_ = null; + applicationsBuilder_.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.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListApplicationsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListApplicationsResponse getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ListApplicationsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListApplicationsResponse build() { + com.google.cloud.designcenter.v1.ListApplicationsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListApplicationsResponse buildPartial() { + com.google.cloud.designcenter.v1.ListApplicationsResponse result = + new com.google.cloud.designcenter.v1.ListApplicationsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.designcenter.v1.ListApplicationsResponse result) { + if (applicationsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + applications_ = java.util.Collections.unmodifiableList(applications_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.applications_ = applications_; + } else { + result.applications_ = applicationsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.designcenter.v1.ListApplicationsResponse 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 mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.ListApplicationsResponse) { + return mergeFrom((com.google.cloud.designcenter.v1.ListApplicationsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.ListApplicationsResponse other) { + if (other == com.google.cloud.designcenter.v1.ListApplicationsResponse.getDefaultInstance()) + return this; + if (applicationsBuilder_ == null) { + if (!other.applications_.isEmpty()) { + if (applications_.isEmpty()) { + applications_ = other.applications_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureApplicationsIsMutable(); + applications_.addAll(other.applications_); + } + onChanged(); + } + } else { + if (!other.applications_.isEmpty()) { + if (applicationsBuilder_.isEmpty()) { + applicationsBuilder_.dispose(); + applicationsBuilder_ = null; + applications_ = other.applications_; + bitField0_ = (bitField0_ & ~0x00000001); + applicationsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetApplicationsFieldBuilder() + : null; + } else { + applicationsBuilder_.addAllMessages(other.applications_); + } + } + } + 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.designcenter.v1.Application m = + input.readMessage( + com.google.cloud.designcenter.v1.Application.parser(), extensionRegistry); + if (applicationsBuilder_ == null) { + ensureApplicationsIsMutable(); + applications_.add(m); + } else { + applicationsBuilder_.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 applications_ = + java.util.Collections.emptyList(); + + private void ensureApplicationsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + applications_ = + new java.util.ArrayList(applications_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Application, + com.google.cloud.designcenter.v1.Application.Builder, + com.google.cloud.designcenter.v1.ApplicationOrBuilder> + applicationsBuilder_; + + /** + * + * + *
+     * The list of applications.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Application applications = 1; + */ + public java.util.List getApplicationsList() { + if (applicationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(applications_); + } else { + return applicationsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The list of applications.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Application applications = 1; + */ + public int getApplicationsCount() { + if (applicationsBuilder_ == null) { + return applications_.size(); + } else { + return applicationsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The list of applications.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Application applications = 1; + */ + public com.google.cloud.designcenter.v1.Application getApplications(int index) { + if (applicationsBuilder_ == null) { + return applications_.get(index); + } else { + return applicationsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The list of applications.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Application applications = 1; + */ + public Builder setApplications(int index, com.google.cloud.designcenter.v1.Application value) { + if (applicationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicationsIsMutable(); + applications_.set(index, value); + onChanged(); + } else { + applicationsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of applications.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Application applications = 1; + */ + public Builder setApplications( + int index, com.google.cloud.designcenter.v1.Application.Builder builderForValue) { + if (applicationsBuilder_ == null) { + ensureApplicationsIsMutable(); + applications_.set(index, builderForValue.build()); + onChanged(); + } else { + applicationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of applications.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Application applications = 1; + */ + public Builder addApplications(com.google.cloud.designcenter.v1.Application value) { + if (applicationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicationsIsMutable(); + applications_.add(value); + onChanged(); + } else { + applicationsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The list of applications.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Application applications = 1; + */ + public Builder addApplications(int index, com.google.cloud.designcenter.v1.Application value) { + if (applicationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicationsIsMutable(); + applications_.add(index, value); + onChanged(); + } else { + applicationsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of applications.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Application applications = 1; + */ + public Builder addApplications( + com.google.cloud.designcenter.v1.Application.Builder builderForValue) { + if (applicationsBuilder_ == null) { + ensureApplicationsIsMutable(); + applications_.add(builderForValue.build()); + onChanged(); + } else { + applicationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of applications.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Application applications = 1; + */ + public Builder addApplications( + int index, com.google.cloud.designcenter.v1.Application.Builder builderForValue) { + if (applicationsBuilder_ == null) { + ensureApplicationsIsMutable(); + applications_.add(index, builderForValue.build()); + onChanged(); + } else { + applicationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of applications.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Application applications = 1; + */ + public Builder addAllApplications( + java.lang.Iterable values) { + if (applicationsBuilder_ == null) { + ensureApplicationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, applications_); + onChanged(); + } else { + applicationsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The list of applications.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Application applications = 1; + */ + public Builder clearApplications() { + if (applicationsBuilder_ == null) { + applications_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + applicationsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The list of applications.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Application applications = 1; + */ + public Builder removeApplications(int index) { + if (applicationsBuilder_ == null) { + ensureApplicationsIsMutable(); + applications_.remove(index); + onChanged(); + } else { + applicationsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The list of applications.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Application applications = 1; + */ + public com.google.cloud.designcenter.v1.Application.Builder getApplicationsBuilder(int index) { + return internalGetApplicationsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The list of applications.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Application applications = 1; + */ + public com.google.cloud.designcenter.v1.ApplicationOrBuilder getApplicationsOrBuilder( + int index) { + if (applicationsBuilder_ == null) { + return applications_.get(index); + } else { + return applicationsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The list of applications.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Application applications = 1; + */ + public java.util.List + getApplicationsOrBuilderList() { + if (applicationsBuilder_ != null) { + return applicationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(applications_); + } + } + + /** + * + * + *
+     * The list of applications.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Application applications = 1; + */ + public com.google.cloud.designcenter.v1.Application.Builder addApplicationsBuilder() { + return internalGetApplicationsFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.Application.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of applications.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Application applications = 1; + */ + public com.google.cloud.designcenter.v1.Application.Builder addApplicationsBuilder(int index) { + return internalGetApplicationsFieldBuilder() + .addBuilder(index, com.google.cloud.designcenter.v1.Application.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of applications.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Application applications = 1; + */ + public java.util.List + getApplicationsBuilderList() { + return internalGetApplicationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Application, + com.google.cloud.designcenter.v1.Application.Builder, + com.google.cloud.designcenter.v1.ApplicationOrBuilder> + internalGetApplicationsFieldBuilder() { + if (applicationsBuilder_ == null) { + applicationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Application, + com.google.cloud.designcenter.v1.Application.Builder, + com.google.cloud.designcenter.v1.ApplicationOrBuilder>( + applications_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + applications_ = null; + } + return applicationsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * If there might be more results than those appearing in this response, then
+     * nextPageToken is included. To get the next set of results, call this method
+     * again using the value of nextPageToken as pageToken.
+     * 
+ * + * 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; + } + } + + /** + * + * + *
+     * If there might be more results than those appearing in this response, then
+     * nextPageToken is included. To get the next set of results, call this method
+     * again using the value of nextPageToken as pageToken.
+     * 
+ * + * 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; + } + } + + /** + * + * + *
+     * If there might be more results than those appearing in this response, then
+     * nextPageToken is included. To get the next set of results, call this method
+     * again using the value of nextPageToken as pageToken.
+     * 
+ * + * 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; + } + + /** + * + * + *
+     * If there might be more results than those appearing in this response, then
+     * nextPageToken is included. To get the next set of results, call this method
+     * again using the value of nextPageToken as pageToken.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * If there might be more results than those appearing in this response, then
+     * nextPageToken is included. To get the next set of results, call this method
+     * again using the value of nextPageToken as pageToken.
+     * 
+ * + * 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; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @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); + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @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); + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @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; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @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; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @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; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ListApplicationsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ListApplicationsResponse) + private static final com.google.cloud.designcenter.v1.ListApplicationsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.ListApplicationsResponse(); + } + + public static com.google.cloud.designcenter.v1.ListApplicationsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListApplicationsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ListApplicationsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListApplicationsResponseOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListApplicationsResponseOrBuilder.java new file mode 100644 index 000000000000..4efe2d6f8b6f --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListApplicationsResponseOrBuilder.java @@ -0,0 +1,168 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ListApplicationsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ListApplicationsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of applications.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Application applications = 1; + */ + java.util.List getApplicationsList(); + + /** + * + * + *
+   * The list of applications.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Application applications = 1; + */ + com.google.cloud.designcenter.v1.Application getApplications(int index); + + /** + * + * + *
+   * The list of applications.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Application applications = 1; + */ + int getApplicationsCount(); + + /** + * + * + *
+   * The list of applications.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Application applications = 1; + */ + java.util.List + getApplicationsOrBuilderList(); + + /** + * + * + *
+   * The list of applications.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Application applications = 1; + */ + com.google.cloud.designcenter.v1.ApplicationOrBuilder getApplicationsOrBuilder(int index); + + /** + * + * + *
+   * If there might be more results than those appearing in this response, then
+   * nextPageToken is included. To get the next set of results, call this method
+   * again using the value of nextPageToken as pageToken.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * If there might be more results than those appearing in this response, then
+   * nextPageToken is included. To get the next set of results, call this method
+   * again using the value of nextPageToken as pageToken.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @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-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListCatalogTemplateRevisionMetadataResponse.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListCatalogTemplateRevisionMetadataResponse.java new file mode 100644 index 000000000000..46b1efab6d41 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListCatalogTemplateRevisionMetadataResponse.java @@ -0,0 +1,1528 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Response message for ListCatalogTemplateRevisionMetadata.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ListCatalogTemplateRevisionMetadataResponse} + */ +@com.google.protobuf.Generated +public final class ListCatalogTemplateRevisionMetadataResponse + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ListCatalogTemplateRevisionMetadataResponse) + ListCatalogTemplateRevisionMetadataResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ListCatalogTemplateRevisionMetadataResponse"); + } + + // Use ListCatalogTemplateRevisionMetadataResponse.newBuilder() to construct. + private ListCatalogTemplateRevisionMetadataResponse( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListCatalogTemplateRevisionMetadataResponse() { + catalogTemplateRevisionMetadata_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_ListCatalogTemplateRevisionMetadataResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_ListCatalogTemplateRevisionMetadataResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionMetadataResponse.class, + com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionMetadataResponse.Builder + .class); + } + + public static final int CATALOG_TEMPLATE_REVISION_METADATA_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + catalogTemplateRevisionMetadata_; + + /** + * + * + *
+   * List of catalog template revisions.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata catalog_template_revision_metadata = 1; + * + */ + @java.lang.Override + public java.util.List + getCatalogTemplateRevisionMetadataList() { + return catalogTemplateRevisionMetadata_; + } + + /** + * + * + *
+   * List of catalog template revisions.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata catalog_template_revision_metadata = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.designcenter.v1.CatalogTemplateRevisionMetadataOrBuilder> + getCatalogTemplateRevisionMetadataOrBuilderList() { + return catalogTemplateRevisionMetadata_; + } + + /** + * + * + *
+   * List of catalog template revisions.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata catalog_template_revision_metadata = 1; + * + */ + @java.lang.Override + public int getCatalogTemplateRevisionMetadataCount() { + return catalogTemplateRevisionMetadata_.size(); + } + + /** + * + * + *
+   * List of catalog template revisions.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata catalog_template_revision_metadata = 1; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata + getCatalogTemplateRevisionMetadata(int index) { + return catalogTemplateRevisionMetadata_.get(index); + } + + /** + * + * + *
+   * List of catalog template revisions.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata catalog_template_revision_metadata = 1; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.CatalogTemplateRevisionMetadataOrBuilder + getCatalogTemplateRevisionMetadataOrBuilder(int index) { + return catalogTemplateRevisionMetadata_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * If there might be more results than those appearing in this response, then
+   * nextPageToken is included. To get the next set of results, call this method
+   * again using the value of nextPageToken as pageToken.
+   * 
+ * + * 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; + } + } + + /** + * + * + *
+   * If there might be more results than those appearing in this response, then
+   * nextPageToken is included. To get the next set of results, call this method
+   * again using the value of nextPageToken as pageToken.
+   * 
+ * + * 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 < catalogTemplateRevisionMetadata_.size(); i++) { + output.writeMessage(1, catalogTemplateRevisionMetadata_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessage.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 < catalogTemplateRevisionMetadata_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, catalogTemplateRevisionMetadata_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.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.designcenter.v1.ListCatalogTemplateRevisionMetadataResponse)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionMetadataResponse other = + (com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionMetadataResponse) obj; + + if (!getCatalogTemplateRevisionMetadataList() + .equals(other.getCatalogTemplateRevisionMetadataList())) 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 (getCatalogTemplateRevisionMetadataCount() > 0) { + hash = (37 * hash) + CATALOG_TEMPLATE_REVISION_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getCatalogTemplateRevisionMetadataList().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.designcenter.v1.ListCatalogTemplateRevisionMetadataResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionMetadataResponse + 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.designcenter.v1.ListCatalogTemplateRevisionMetadataResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionMetadataResponse + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionMetadataResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionMetadataResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionMetadataResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionMetadataResponse + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionMetadataResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionMetadataResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionMetadataResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionMetadataResponse + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ListCatalogTemplateRevisionMetadataResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response message for ListCatalogTemplateRevisionMetadata.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ListCatalogTemplateRevisionMetadataResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ListCatalogTemplateRevisionMetadataResponse) + com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionMetadataResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_ListCatalogTemplateRevisionMetadataResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_ListCatalogTemplateRevisionMetadataResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionMetadataResponse.class, + com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionMetadataResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionMetadataResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (catalogTemplateRevisionMetadataBuilder_ == null) { + catalogTemplateRevisionMetadata_ = java.util.Collections.emptyList(); + } else { + catalogTemplateRevisionMetadata_ = null; + catalogTemplateRevisionMetadataBuilder_.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.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_ListCatalogTemplateRevisionMetadataResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionMetadataResponse + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionMetadataResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionMetadataResponse build() { + com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionMetadataResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionMetadataResponse + buildPartial() { + com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionMetadataResponse result = + new com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionMetadataResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionMetadataResponse result) { + if (catalogTemplateRevisionMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + catalogTemplateRevisionMetadata_ = + java.util.Collections.unmodifiableList(catalogTemplateRevisionMetadata_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.catalogTemplateRevisionMetadata_ = catalogTemplateRevisionMetadata_; + } else { + result.catalogTemplateRevisionMetadata_ = catalogTemplateRevisionMetadataBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionMetadataResponse 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 mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionMetadataResponse) { + return mergeFrom( + (com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionMetadataResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionMetadataResponse other) { + if (other + == com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionMetadataResponse + .getDefaultInstance()) return this; + if (catalogTemplateRevisionMetadataBuilder_ == null) { + if (!other.catalogTemplateRevisionMetadata_.isEmpty()) { + if (catalogTemplateRevisionMetadata_.isEmpty()) { + catalogTemplateRevisionMetadata_ = other.catalogTemplateRevisionMetadata_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCatalogTemplateRevisionMetadataIsMutable(); + catalogTemplateRevisionMetadata_.addAll(other.catalogTemplateRevisionMetadata_); + } + onChanged(); + } + } else { + if (!other.catalogTemplateRevisionMetadata_.isEmpty()) { + if (catalogTemplateRevisionMetadataBuilder_.isEmpty()) { + catalogTemplateRevisionMetadataBuilder_.dispose(); + catalogTemplateRevisionMetadataBuilder_ = null; + catalogTemplateRevisionMetadata_ = other.catalogTemplateRevisionMetadata_; + bitField0_ = (bitField0_ & ~0x00000001); + catalogTemplateRevisionMetadataBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetCatalogTemplateRevisionMetadataFieldBuilder() + : null; + } else { + catalogTemplateRevisionMetadataBuilder_.addAllMessages( + other.catalogTemplateRevisionMetadata_); + } + } + } + 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.designcenter.v1.CatalogTemplateRevisionMetadata m = + input.readMessage( + com.google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata.parser(), + extensionRegistry); + if (catalogTemplateRevisionMetadataBuilder_ == null) { + ensureCatalogTemplateRevisionMetadataIsMutable(); + catalogTemplateRevisionMetadata_.add(m); + } else { + catalogTemplateRevisionMetadataBuilder_.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 + catalogTemplateRevisionMetadata_ = java.util.Collections.emptyList(); + + private void ensureCatalogTemplateRevisionMetadataIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + catalogTemplateRevisionMetadata_ = + new java.util.ArrayList< + com.google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata>( + catalogTemplateRevisionMetadata_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata, + com.google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata.Builder, + com.google.cloud.designcenter.v1.CatalogTemplateRevisionMetadataOrBuilder> + catalogTemplateRevisionMetadataBuilder_; + + /** + * + * + *
+     * List of catalog template revisions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata catalog_template_revision_metadata = 1; + * + */ + public java.util.List + getCatalogTemplateRevisionMetadataList() { + if (catalogTemplateRevisionMetadataBuilder_ == null) { + return java.util.Collections.unmodifiableList(catalogTemplateRevisionMetadata_); + } else { + return catalogTemplateRevisionMetadataBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * List of catalog template revisions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata catalog_template_revision_metadata = 1; + * + */ + public int getCatalogTemplateRevisionMetadataCount() { + if (catalogTemplateRevisionMetadataBuilder_ == null) { + return catalogTemplateRevisionMetadata_.size(); + } else { + return catalogTemplateRevisionMetadataBuilder_.getCount(); + } + } + + /** + * + * + *
+     * List of catalog template revisions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata catalog_template_revision_metadata = 1; + * + */ + public com.google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata + getCatalogTemplateRevisionMetadata(int index) { + if (catalogTemplateRevisionMetadataBuilder_ == null) { + return catalogTemplateRevisionMetadata_.get(index); + } else { + return catalogTemplateRevisionMetadataBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * List of catalog template revisions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata catalog_template_revision_metadata = 1; + * + */ + public Builder setCatalogTemplateRevisionMetadata( + int index, com.google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata value) { + if (catalogTemplateRevisionMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCatalogTemplateRevisionMetadataIsMutable(); + catalogTemplateRevisionMetadata_.set(index, value); + onChanged(); + } else { + catalogTemplateRevisionMetadataBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * List of catalog template revisions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata catalog_template_revision_metadata = 1; + * + */ + public Builder setCatalogTemplateRevisionMetadata( + int index, + com.google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata.Builder builderForValue) { + if (catalogTemplateRevisionMetadataBuilder_ == null) { + ensureCatalogTemplateRevisionMetadataIsMutable(); + catalogTemplateRevisionMetadata_.set(index, builderForValue.build()); + onChanged(); + } else { + catalogTemplateRevisionMetadataBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * List of catalog template revisions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata catalog_template_revision_metadata = 1; + * + */ + public Builder addCatalogTemplateRevisionMetadata( + com.google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata value) { + if (catalogTemplateRevisionMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCatalogTemplateRevisionMetadataIsMutable(); + catalogTemplateRevisionMetadata_.add(value); + onChanged(); + } else { + catalogTemplateRevisionMetadataBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * List of catalog template revisions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata catalog_template_revision_metadata = 1; + * + */ + public Builder addCatalogTemplateRevisionMetadata( + int index, com.google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata value) { + if (catalogTemplateRevisionMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCatalogTemplateRevisionMetadataIsMutable(); + catalogTemplateRevisionMetadata_.add(index, value); + onChanged(); + } else { + catalogTemplateRevisionMetadataBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * List of catalog template revisions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata catalog_template_revision_metadata = 1; + * + */ + public Builder addCatalogTemplateRevisionMetadata( + com.google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata.Builder builderForValue) { + if (catalogTemplateRevisionMetadataBuilder_ == null) { + ensureCatalogTemplateRevisionMetadataIsMutable(); + catalogTemplateRevisionMetadata_.add(builderForValue.build()); + onChanged(); + } else { + catalogTemplateRevisionMetadataBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * List of catalog template revisions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata catalog_template_revision_metadata = 1; + * + */ + public Builder addCatalogTemplateRevisionMetadata( + int index, + com.google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata.Builder builderForValue) { + if (catalogTemplateRevisionMetadataBuilder_ == null) { + ensureCatalogTemplateRevisionMetadataIsMutable(); + catalogTemplateRevisionMetadata_.add(index, builderForValue.build()); + onChanged(); + } else { + catalogTemplateRevisionMetadataBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * List of catalog template revisions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata catalog_template_revision_metadata = 1; + * + */ + public Builder addAllCatalogTemplateRevisionMetadata( + java.lang.Iterable< + ? extends com.google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata> + values) { + if (catalogTemplateRevisionMetadataBuilder_ == null) { + ensureCatalogTemplateRevisionMetadataIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, catalogTemplateRevisionMetadata_); + onChanged(); + } else { + catalogTemplateRevisionMetadataBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * List of catalog template revisions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata catalog_template_revision_metadata = 1; + * + */ + public Builder clearCatalogTemplateRevisionMetadata() { + if (catalogTemplateRevisionMetadataBuilder_ == null) { + catalogTemplateRevisionMetadata_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + catalogTemplateRevisionMetadataBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * List of catalog template revisions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata catalog_template_revision_metadata = 1; + * + */ + public Builder removeCatalogTemplateRevisionMetadata(int index) { + if (catalogTemplateRevisionMetadataBuilder_ == null) { + ensureCatalogTemplateRevisionMetadataIsMutable(); + catalogTemplateRevisionMetadata_.remove(index); + onChanged(); + } else { + catalogTemplateRevisionMetadataBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * List of catalog template revisions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata catalog_template_revision_metadata = 1; + * + */ + public com.google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata.Builder + getCatalogTemplateRevisionMetadataBuilder(int index) { + return internalGetCatalogTemplateRevisionMetadataFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * List of catalog template revisions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata catalog_template_revision_metadata = 1; + * + */ + public com.google.cloud.designcenter.v1.CatalogTemplateRevisionMetadataOrBuilder + getCatalogTemplateRevisionMetadataOrBuilder(int index) { + if (catalogTemplateRevisionMetadataBuilder_ == null) { + return catalogTemplateRevisionMetadata_.get(index); + } else { + return catalogTemplateRevisionMetadataBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * List of catalog template revisions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata catalog_template_revision_metadata = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.designcenter.v1.CatalogTemplateRevisionMetadataOrBuilder> + getCatalogTemplateRevisionMetadataOrBuilderList() { + if (catalogTemplateRevisionMetadataBuilder_ != null) { + return catalogTemplateRevisionMetadataBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(catalogTemplateRevisionMetadata_); + } + } + + /** + * + * + *
+     * List of catalog template revisions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata catalog_template_revision_metadata = 1; + * + */ + public com.google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata.Builder + addCatalogTemplateRevisionMetadataBuilder() { + return internalGetCatalogTemplateRevisionMetadataFieldBuilder() + .addBuilder( + com.google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata + .getDefaultInstance()); + } + + /** + * + * + *
+     * List of catalog template revisions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata catalog_template_revision_metadata = 1; + * + */ + public com.google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata.Builder + addCatalogTemplateRevisionMetadataBuilder(int index) { + return internalGetCatalogTemplateRevisionMetadataFieldBuilder() + .addBuilder( + index, + com.google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata + .getDefaultInstance()); + } + + /** + * + * + *
+     * List of catalog template revisions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata catalog_template_revision_metadata = 1; + * + */ + public java.util.List + getCatalogTemplateRevisionMetadataBuilderList() { + return internalGetCatalogTemplateRevisionMetadataFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata, + com.google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata.Builder, + com.google.cloud.designcenter.v1.CatalogTemplateRevisionMetadataOrBuilder> + internalGetCatalogTemplateRevisionMetadataFieldBuilder() { + if (catalogTemplateRevisionMetadataBuilder_ == null) { + catalogTemplateRevisionMetadataBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata, + com.google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata.Builder, + com.google.cloud.designcenter.v1.CatalogTemplateRevisionMetadataOrBuilder>( + catalogTemplateRevisionMetadata_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + catalogTemplateRevisionMetadata_ = null; + } + return catalogTemplateRevisionMetadataBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * If there might be more results than those appearing in this response, then
+     * nextPageToken is included. To get the next set of results, call this method
+     * again using the value of nextPageToken as pageToken.
+     * 
+ * + * 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; + } + } + + /** + * + * + *
+     * If there might be more results than those appearing in this response, then
+     * nextPageToken is included. To get the next set of results, call this method
+     * again using the value of nextPageToken as pageToken.
+     * 
+ * + * 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; + } + } + + /** + * + * + *
+     * If there might be more results than those appearing in this response, then
+     * nextPageToken is included. To get the next set of results, call this method
+     * again using the value of nextPageToken as pageToken.
+     * 
+ * + * 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; + } + + /** + * + * + *
+     * If there might be more results than those appearing in this response, then
+     * nextPageToken is included. To get the next set of results, call this method
+     * again using the value of nextPageToken as pageToken.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * If there might be more results than those appearing in this response, then
+     * nextPageToken is included. To get the next set of results, call this method
+     * again using the value of nextPageToken as pageToken.
+     * 
+ * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ListCatalogTemplateRevisionMetadataResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ListCatalogTemplateRevisionMetadataResponse) + private static final com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionMetadataResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionMetadataResponse(); + } + + public static com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionMetadataResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCatalogTemplateRevisionMetadataResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ListCatalogTemplateRevisionMetadataResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListCatalogTemplateRevisionMetadataResponseOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListCatalogTemplateRevisionMetadataResponseOrBuilder.java new file mode 100644 index 000000000000..256ec99bb705 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListCatalogTemplateRevisionMetadataResponseOrBuilder.java @@ -0,0 +1,182 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ListCatalogTemplateRevisionMetadataResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ListCatalogTemplateRevisionMetadataResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of catalog template revisions.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata catalog_template_revision_metadata = 1; + * + */ + java.util.List + getCatalogTemplateRevisionMetadataList(); + + /** + * + * + *
+   * List of catalog template revisions.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata catalog_template_revision_metadata = 1; + * + */ + com.google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata + getCatalogTemplateRevisionMetadata(int index); + + /** + * + * + *
+   * List of catalog template revisions.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata catalog_template_revision_metadata = 1; + * + */ + int getCatalogTemplateRevisionMetadataCount(); + + /** + * + * + *
+   * List of catalog template revisions.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata catalog_template_revision_metadata = 1; + * + */ + java.util.List< + ? extends com.google.cloud.designcenter.v1.CatalogTemplateRevisionMetadataOrBuilder> + getCatalogTemplateRevisionMetadataOrBuilderList(); + + /** + * + * + *
+   * List of catalog template revisions.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata catalog_template_revision_metadata = 1; + * + */ + com.google.cloud.designcenter.v1.CatalogTemplateRevisionMetadataOrBuilder + getCatalogTemplateRevisionMetadataOrBuilder(int index); + + /** + * + * + *
+   * If there might be more results than those appearing in this response, then
+   * nextPageToken is included. To get the next set of results, call this method
+   * again using the value of nextPageToken as pageToken.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * If there might be more results than those appearing in this response, then
+   * nextPageToken is included. To get the next set of results, call this method
+   * again using the value of nextPageToken as pageToken.
+   * 
+ * + * 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-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListCatalogTemplateRevisionsRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListCatalogTemplateRevisionsRequest.java new file mode 100644 index 000000000000..419328617cd6 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListCatalogTemplateRevisionsRequest.java @@ -0,0 +1,1327 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/catalog_management_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for requesting list of template revisions.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ListCatalogTemplateRevisionsRequest} + */ +@com.google.protobuf.Generated +public final class ListCatalogTemplateRevisionsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ListCatalogTemplateRevisionsRequest) + ListCatalogTemplateRevisionsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ListCatalogTemplateRevisionsRequest"); + } + + // Use ListCatalogTemplateRevisionsRequest.newBuilder() to construct. + private ListCatalogTemplateRevisionsRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListCatalogTemplateRevisionsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListCatalogTemplateRevisionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListCatalogTemplateRevisionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsRequest.class, + com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent resource from which a list of catalog template
+   * revisions is requested.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The parent resource from which a list of catalog template
+   * revisions is requested.
+   * 
+ * + * + * 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 results to return from this request.
+   * Non-positive
+   * values are ignored. The presence of nextPageToken in the response
+   * indicates that more results might be available.
+   * 
+ * + * 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. If present, then retrieve the next batch of results from the
+   * preceding call to this method. pageToken must be the value of nextPageToken
+   * from the previous response. The values of other method parameters should be
+   * identical to those in the previous call.
+   * 
+ * + * 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. If present, then retrieve the next batch of results from the
+   * preceding call to this method. pageToken must be the value of nextPageToken
+   * from the previous response. The values of other method parameters should be
+   * identical to those in the previous call.
+   * 
+ * + * 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; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
+   * Optional. A filter that chooses which catalog template revisions to return.
+   * 
+ * + * 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. A filter that chooses which catalog template revisions to return.
+   * 
+ * + * 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 ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
+   * Optional. How the results should be sorted.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+   * Optional. How the results should be sorted.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessage.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.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessage.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.designcenter.v1.ListCatalogTemplateRevisionsRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsRequest other = + (com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsRequest) 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.designcenter.v1.ListCatalogTemplateRevisionsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsRequest 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.designcenter.v1.ListCatalogTemplateRevisionsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ListCatalogTemplateRevisionsRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for requesting list of template revisions.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ListCatalogTemplateRevisionsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ListCatalogTemplateRevisionsRequest) + com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListCatalogTemplateRevisionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListCatalogTemplateRevisionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsRequest.class, + com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsRequest.Builder.class); + } + + // Construct using + // com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.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.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListCatalogTemplateRevisionsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsRequest + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsRequest build() { + com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsRequest buildPartial() { + com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsRequest result = + new com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsRequest 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 mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsRequest) { + return mergeFrom( + (com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsRequest other) { + if (other + == com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent resource from which a list of catalog template
+     * revisions is requested.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The parent resource from which a list of catalog template
+     * revisions is requested.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The parent resource from which a list of catalog template
+     * revisions is requested.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource from which a list of catalog template
+     * revisions is requested.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource from which a list of catalog template
+     * revisions is requested.
+     * 
+ * + * + * 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 results to return from this request.
+     * Non-positive
+     * values are ignored. The presence of nextPageToken in the response
+     * indicates that more results might be available.
+     * 
+ * + * 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 results to return from this request.
+     * Non-positive
+     * values are ignored. The presence of nextPageToken in the response
+     * indicates that more results might be available.
+     * 
+ * + * 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 results to return from this request.
+     * Non-positive
+     * values are ignored. The presence of nextPageToken in the response
+     * indicates that more results might be available.
+     * 
+ * + * 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. If present, then retrieve the next batch of results from the
+     * preceding call to this method. pageToken must be the value of nextPageToken
+     * from the previous response. The values of other method parameters should be
+     * identical to those in the previous call.
+     * 
+ * + * 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. If present, then retrieve the next batch of results from the
+     * preceding call to this method. pageToken must be the value of nextPageToken
+     * from the previous response. The values of other method parameters should be
+     * identical to those in the previous call.
+     * 
+ * + * 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. If present, then retrieve the next batch of results from the
+     * preceding call to this method. pageToken must be the value of nextPageToken
+     * from the previous response. The values of other method parameters should be
+     * identical to those in the previous call.
+     * 
+ * + * 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. If present, then retrieve the next batch of results from the
+     * preceding call to this method. pageToken must be the value of nextPageToken
+     * from the previous response. The values of other method parameters should be
+     * identical to those in the previous call.
+     * 
+ * + * 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. If present, then retrieve the next batch of results from the
+     * preceding call to this method. pageToken must be the value of nextPageToken
+     * from the previous response. The values of other method parameters should be
+     * identical to those in the previous call.
+     * 
+ * + * 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; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
+     * Optional. A filter that chooses which catalog template revisions to return.
+     * 
+ * + * 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. A filter that chooses which catalog template revisions to return.
+     * 
+ * + * 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. A filter that chooses which catalog template revisions to return.
+     * 
+ * + * 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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A filter that chooses which catalog template revisions to return.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A filter that chooses which catalog template revisions to return.
+     * 
+ * + * 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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
+     * Optional. How the results should be sorted.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+     * Optional. How the results should be sorted.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+     * Optional. How the results should be sorted.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + + /** + * + * + *
+     * Optional. How the results should be sorted.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. How the results should be sorted.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ListCatalogTemplateRevisionsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ListCatalogTemplateRevisionsRequest) + private static final com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsRequest(); + } + + public static com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCatalogTemplateRevisionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ListCatalogTemplateRevisionsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListCatalogTemplateRevisionsRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListCatalogTemplateRevisionsRequestOrBuilder.java new file mode 100644 index 000000000000..915204b29dc7 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListCatalogTemplateRevisionsRequestOrBuilder.java @@ -0,0 +1,160 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/catalog_management_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ListCatalogTemplateRevisionsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ListCatalogTemplateRevisionsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource from which a list of catalog template
+   * revisions is requested.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent resource from which a list of catalog template
+   * revisions is requested.
+   * 
+ * + * + * 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 results to return from this request.
+   * Non-positive
+   * values are ignored. The presence of nextPageToken in the response
+   * indicates that more results might be available.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. If present, then retrieve the next batch of results from the
+   * preceding call to this method. pageToken must be the value of nextPageToken
+   * from the previous response. The values of other method parameters should be
+   * identical to those in the previous call.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * Optional. If present, then retrieve the next batch of results from the
+   * preceding call to this method. pageToken must be the value of nextPageToken
+   * from the previous response. The values of other method parameters should be
+   * identical to those in the previous call.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional. A filter that chooses which catalog template revisions to return.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * Optional. A filter that chooses which catalog template revisions to return.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional. How the results should be sorted.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
+   * Optional. How the results should be sorted.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListCatalogTemplateRevisionsResponse.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListCatalogTemplateRevisionsResponse.java new file mode 100644 index 000000000000..9e622b6b5efc --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListCatalogTemplateRevisionsResponse.java @@ -0,0 +1,1504 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/catalog_management_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for response to listing template revisions.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ListCatalogTemplateRevisionsResponse} + */ +@com.google.protobuf.Generated +public final class ListCatalogTemplateRevisionsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ListCatalogTemplateRevisionsResponse) + ListCatalogTemplateRevisionsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ListCatalogTemplateRevisionsResponse"); + } + + // Use ListCatalogTemplateRevisionsResponse.newBuilder() to construct. + private ListCatalogTemplateRevisionsResponse( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListCatalogTemplateRevisionsResponse() { + catalogTemplateRevisions_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListCatalogTemplateRevisionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListCatalogTemplateRevisionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsResponse.class, + com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsResponse.Builder.class); + } + + public static final int CATALOG_TEMPLATE_REVISIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + catalogTemplateRevisions_; + + /** + * + * + *
+   * The list of template revisions.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.CatalogTemplateRevision catalog_template_revisions = 1; + * + */ + @java.lang.Override + public java.util.List + getCatalogTemplateRevisionsList() { + return catalogTemplateRevisions_; + } + + /** + * + * + *
+   * The list of template revisions.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.CatalogTemplateRevision catalog_template_revisions = 1; + * + */ + @java.lang.Override + public java.util.List + getCatalogTemplateRevisionsOrBuilderList() { + return catalogTemplateRevisions_; + } + + /** + * + * + *
+   * The list of template revisions.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.CatalogTemplateRevision catalog_template_revisions = 1; + * + */ + @java.lang.Override + public int getCatalogTemplateRevisionsCount() { + return catalogTemplateRevisions_.size(); + } + + /** + * + * + *
+   * The list of template revisions.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.CatalogTemplateRevision catalog_template_revisions = 1; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.CatalogTemplateRevision getCatalogTemplateRevisions( + int index) { + return catalogTemplateRevisions_.get(index); + } + + /** + * + * + *
+   * The list of template revisions.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.CatalogTemplateRevision catalog_template_revisions = 1; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.CatalogTemplateRevisionOrBuilder + getCatalogTemplateRevisionsOrBuilder(int index) { + return catalogTemplateRevisions_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * If there might be more results than those appearing in this response, then
+   * nextPageToken is included. To get the next set of results, call this method
+   * again using the value of nextPageToken as pageToken.
+   * 
+ * + * 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; + } + } + + /** + * + * + *
+   * If there might be more results than those appearing in this response, then
+   * nextPageToken is included. To get the next set of results, call this method
+   * again using the value of nextPageToken as pageToken.
+   * 
+ * + * 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 < catalogTemplateRevisions_.size(); i++) { + output.writeMessage(1, catalogTemplateRevisions_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessage.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 < catalogTemplateRevisions_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, catalogTemplateRevisions_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.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.designcenter.v1.ListCatalogTemplateRevisionsResponse)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsResponse other = + (com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsResponse) obj; + + if (!getCatalogTemplateRevisionsList().equals(other.getCatalogTemplateRevisionsList())) + 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 (getCatalogTemplateRevisionsCount() > 0) { + hash = (37 * hash) + CATALOG_TEMPLATE_REVISIONS_FIELD_NUMBER; + hash = (53 * hash) + getCatalogTemplateRevisionsList().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.designcenter.v1.ListCatalogTemplateRevisionsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsResponse 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.designcenter.v1.ListCatalogTemplateRevisionsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ListCatalogTemplateRevisionsResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for response to listing template revisions.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ListCatalogTemplateRevisionsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ListCatalogTemplateRevisionsResponse) + com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListCatalogTemplateRevisionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListCatalogTemplateRevisionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsResponse.class, + com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsResponse.Builder.class); + } + + // Construct using + // com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (catalogTemplateRevisionsBuilder_ == null) { + catalogTemplateRevisions_ = java.util.Collections.emptyList(); + } else { + catalogTemplateRevisions_ = null; + catalogTemplateRevisionsBuilder_.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.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListCatalogTemplateRevisionsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsResponse + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsResponse build() { + com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsResponse buildPartial() { + com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsResponse result = + new com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsResponse result) { + if (catalogTemplateRevisionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + catalogTemplateRevisions_ = + java.util.Collections.unmodifiableList(catalogTemplateRevisions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.catalogTemplateRevisions_ = catalogTemplateRevisions_; + } else { + result.catalogTemplateRevisions_ = catalogTemplateRevisionsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsResponse 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 mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsResponse) { + return mergeFrom( + (com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsResponse other) { + if (other + == com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsResponse + .getDefaultInstance()) return this; + if (catalogTemplateRevisionsBuilder_ == null) { + if (!other.catalogTemplateRevisions_.isEmpty()) { + if (catalogTemplateRevisions_.isEmpty()) { + catalogTemplateRevisions_ = other.catalogTemplateRevisions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCatalogTemplateRevisionsIsMutable(); + catalogTemplateRevisions_.addAll(other.catalogTemplateRevisions_); + } + onChanged(); + } + } else { + if (!other.catalogTemplateRevisions_.isEmpty()) { + if (catalogTemplateRevisionsBuilder_.isEmpty()) { + catalogTemplateRevisionsBuilder_.dispose(); + catalogTemplateRevisionsBuilder_ = null; + catalogTemplateRevisions_ = other.catalogTemplateRevisions_; + bitField0_ = (bitField0_ & ~0x00000001); + catalogTemplateRevisionsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetCatalogTemplateRevisionsFieldBuilder() + : null; + } else { + catalogTemplateRevisionsBuilder_.addAllMessages(other.catalogTemplateRevisions_); + } + } + } + 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.designcenter.v1.CatalogTemplateRevision m = + input.readMessage( + com.google.cloud.designcenter.v1.CatalogTemplateRevision.parser(), + extensionRegistry); + if (catalogTemplateRevisionsBuilder_ == null) { + ensureCatalogTemplateRevisionsIsMutable(); + catalogTemplateRevisions_.add(m); + } else { + catalogTemplateRevisionsBuilder_.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 + catalogTemplateRevisions_ = java.util.Collections.emptyList(); + + private void ensureCatalogTemplateRevisionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + catalogTemplateRevisions_ = + new java.util.ArrayList( + catalogTemplateRevisions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.CatalogTemplateRevision, + com.google.cloud.designcenter.v1.CatalogTemplateRevision.Builder, + com.google.cloud.designcenter.v1.CatalogTemplateRevisionOrBuilder> + catalogTemplateRevisionsBuilder_; + + /** + * + * + *
+     * The list of template revisions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CatalogTemplateRevision catalog_template_revisions = 1; + * + */ + public java.util.List + getCatalogTemplateRevisionsList() { + if (catalogTemplateRevisionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(catalogTemplateRevisions_); + } else { + return catalogTemplateRevisionsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The list of template revisions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CatalogTemplateRevision catalog_template_revisions = 1; + * + */ + public int getCatalogTemplateRevisionsCount() { + if (catalogTemplateRevisionsBuilder_ == null) { + return catalogTemplateRevisions_.size(); + } else { + return catalogTemplateRevisionsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The list of template revisions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CatalogTemplateRevision catalog_template_revisions = 1; + * + */ + public com.google.cloud.designcenter.v1.CatalogTemplateRevision getCatalogTemplateRevisions( + int index) { + if (catalogTemplateRevisionsBuilder_ == null) { + return catalogTemplateRevisions_.get(index); + } else { + return catalogTemplateRevisionsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The list of template revisions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CatalogTemplateRevision catalog_template_revisions = 1; + * + */ + public Builder setCatalogTemplateRevisions( + int index, com.google.cloud.designcenter.v1.CatalogTemplateRevision value) { + if (catalogTemplateRevisionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCatalogTemplateRevisionsIsMutable(); + catalogTemplateRevisions_.set(index, value); + onChanged(); + } else { + catalogTemplateRevisionsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of template revisions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CatalogTemplateRevision catalog_template_revisions = 1; + * + */ + public Builder setCatalogTemplateRevisions( + int index, + com.google.cloud.designcenter.v1.CatalogTemplateRevision.Builder builderForValue) { + if (catalogTemplateRevisionsBuilder_ == null) { + ensureCatalogTemplateRevisionsIsMutable(); + catalogTemplateRevisions_.set(index, builderForValue.build()); + onChanged(); + } else { + catalogTemplateRevisionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of template revisions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CatalogTemplateRevision catalog_template_revisions = 1; + * + */ + public Builder addCatalogTemplateRevisions( + com.google.cloud.designcenter.v1.CatalogTemplateRevision value) { + if (catalogTemplateRevisionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCatalogTemplateRevisionsIsMutable(); + catalogTemplateRevisions_.add(value); + onChanged(); + } else { + catalogTemplateRevisionsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The list of template revisions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CatalogTemplateRevision catalog_template_revisions = 1; + * + */ + public Builder addCatalogTemplateRevisions( + int index, com.google.cloud.designcenter.v1.CatalogTemplateRevision value) { + if (catalogTemplateRevisionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCatalogTemplateRevisionsIsMutable(); + catalogTemplateRevisions_.add(index, value); + onChanged(); + } else { + catalogTemplateRevisionsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of template revisions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CatalogTemplateRevision catalog_template_revisions = 1; + * + */ + public Builder addCatalogTemplateRevisions( + com.google.cloud.designcenter.v1.CatalogTemplateRevision.Builder builderForValue) { + if (catalogTemplateRevisionsBuilder_ == null) { + ensureCatalogTemplateRevisionsIsMutable(); + catalogTemplateRevisions_.add(builderForValue.build()); + onChanged(); + } else { + catalogTemplateRevisionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of template revisions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CatalogTemplateRevision catalog_template_revisions = 1; + * + */ + public Builder addCatalogTemplateRevisions( + int index, + com.google.cloud.designcenter.v1.CatalogTemplateRevision.Builder builderForValue) { + if (catalogTemplateRevisionsBuilder_ == null) { + ensureCatalogTemplateRevisionsIsMutable(); + catalogTemplateRevisions_.add(index, builderForValue.build()); + onChanged(); + } else { + catalogTemplateRevisionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of template revisions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CatalogTemplateRevision catalog_template_revisions = 1; + * + */ + public Builder addAllCatalogTemplateRevisions( + java.lang.Iterable + values) { + if (catalogTemplateRevisionsBuilder_ == null) { + ensureCatalogTemplateRevisionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, catalogTemplateRevisions_); + onChanged(); + } else { + catalogTemplateRevisionsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The list of template revisions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CatalogTemplateRevision catalog_template_revisions = 1; + * + */ + public Builder clearCatalogTemplateRevisions() { + if (catalogTemplateRevisionsBuilder_ == null) { + catalogTemplateRevisions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + catalogTemplateRevisionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The list of template revisions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CatalogTemplateRevision catalog_template_revisions = 1; + * + */ + public Builder removeCatalogTemplateRevisions(int index) { + if (catalogTemplateRevisionsBuilder_ == null) { + ensureCatalogTemplateRevisionsIsMutable(); + catalogTemplateRevisions_.remove(index); + onChanged(); + } else { + catalogTemplateRevisionsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The list of template revisions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CatalogTemplateRevision catalog_template_revisions = 1; + * + */ + public com.google.cloud.designcenter.v1.CatalogTemplateRevision.Builder + getCatalogTemplateRevisionsBuilder(int index) { + return internalGetCatalogTemplateRevisionsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The list of template revisions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CatalogTemplateRevision catalog_template_revisions = 1; + * + */ + public com.google.cloud.designcenter.v1.CatalogTemplateRevisionOrBuilder + getCatalogTemplateRevisionsOrBuilder(int index) { + if (catalogTemplateRevisionsBuilder_ == null) { + return catalogTemplateRevisions_.get(index); + } else { + return catalogTemplateRevisionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The list of template revisions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CatalogTemplateRevision catalog_template_revisions = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.designcenter.v1.CatalogTemplateRevisionOrBuilder> + getCatalogTemplateRevisionsOrBuilderList() { + if (catalogTemplateRevisionsBuilder_ != null) { + return catalogTemplateRevisionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(catalogTemplateRevisions_); + } + } + + /** + * + * + *
+     * The list of template revisions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CatalogTemplateRevision catalog_template_revisions = 1; + * + */ + public com.google.cloud.designcenter.v1.CatalogTemplateRevision.Builder + addCatalogTemplateRevisionsBuilder() { + return internalGetCatalogTemplateRevisionsFieldBuilder() + .addBuilder( + com.google.cloud.designcenter.v1.CatalogTemplateRevision.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of template revisions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CatalogTemplateRevision catalog_template_revisions = 1; + * + */ + public com.google.cloud.designcenter.v1.CatalogTemplateRevision.Builder + addCatalogTemplateRevisionsBuilder(int index) { + return internalGetCatalogTemplateRevisionsFieldBuilder() + .addBuilder( + index, com.google.cloud.designcenter.v1.CatalogTemplateRevision.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of template revisions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CatalogTemplateRevision catalog_template_revisions = 1; + * + */ + public java.util.List + getCatalogTemplateRevisionsBuilderList() { + return internalGetCatalogTemplateRevisionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.CatalogTemplateRevision, + com.google.cloud.designcenter.v1.CatalogTemplateRevision.Builder, + com.google.cloud.designcenter.v1.CatalogTemplateRevisionOrBuilder> + internalGetCatalogTemplateRevisionsFieldBuilder() { + if (catalogTemplateRevisionsBuilder_ == null) { + catalogTemplateRevisionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.CatalogTemplateRevision, + com.google.cloud.designcenter.v1.CatalogTemplateRevision.Builder, + com.google.cloud.designcenter.v1.CatalogTemplateRevisionOrBuilder>( + catalogTemplateRevisions_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + catalogTemplateRevisions_ = null; + } + return catalogTemplateRevisionsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * If there might be more results than those appearing in this response, then
+     * nextPageToken is included. To get the next set of results, call this method
+     * again using the value of nextPageToken as pageToken.
+     * 
+ * + * 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; + } + } + + /** + * + * + *
+     * If there might be more results than those appearing in this response, then
+     * nextPageToken is included. To get the next set of results, call this method
+     * again using the value of nextPageToken as pageToken.
+     * 
+ * + * 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; + } + } + + /** + * + * + *
+     * If there might be more results than those appearing in this response, then
+     * nextPageToken is included. To get the next set of results, call this method
+     * again using the value of nextPageToken as pageToken.
+     * 
+ * + * 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; + } + + /** + * + * + *
+     * If there might be more results than those appearing in this response, then
+     * nextPageToken is included. To get the next set of results, call this method
+     * again using the value of nextPageToken as pageToken.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * If there might be more results than those appearing in this response, then
+     * nextPageToken is included. To get the next set of results, call this method
+     * again using the value of nextPageToken as pageToken.
+     * 
+ * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ListCatalogTemplateRevisionsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ListCatalogTemplateRevisionsResponse) + private static final com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsResponse(); + } + + public static com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCatalogTemplateRevisionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ListCatalogTemplateRevisionsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListCatalogTemplateRevisionsResponseOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListCatalogTemplateRevisionsResponseOrBuilder.java new file mode 100644 index 000000000000..585383cf5142 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListCatalogTemplateRevisionsResponseOrBuilder.java @@ -0,0 +1,180 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/catalog_management_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ListCatalogTemplateRevisionsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ListCatalogTemplateRevisionsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of template revisions.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.CatalogTemplateRevision catalog_template_revisions = 1; + * + */ + java.util.List + getCatalogTemplateRevisionsList(); + + /** + * + * + *
+   * The list of template revisions.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.CatalogTemplateRevision catalog_template_revisions = 1; + * + */ + com.google.cloud.designcenter.v1.CatalogTemplateRevision getCatalogTemplateRevisions(int index); + + /** + * + * + *
+   * The list of template revisions.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.CatalogTemplateRevision catalog_template_revisions = 1; + * + */ + int getCatalogTemplateRevisionsCount(); + + /** + * + * + *
+   * The list of template revisions.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.CatalogTemplateRevision catalog_template_revisions = 1; + * + */ + java.util.List + getCatalogTemplateRevisionsOrBuilderList(); + + /** + * + * + *
+   * The list of template revisions.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.CatalogTemplateRevision catalog_template_revisions = 1; + * + */ + com.google.cloud.designcenter.v1.CatalogTemplateRevisionOrBuilder + getCatalogTemplateRevisionsOrBuilder(int index); + + /** + * + * + *
+   * If there might be more results than those appearing in this response, then
+   * nextPageToken is included. To get the next set of results, call this method
+   * again using the value of nextPageToken as pageToken.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * If there might be more results than those appearing in this response, then
+   * nextPageToken is included. To get the next set of results, call this method
+   * again using the value of nextPageToken as pageToken.
+   * 
+ * + * 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-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListCatalogTemplatesRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListCatalogTemplatesRequest.java new file mode 100644 index 000000000000..af77226cd28c --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListCatalogTemplatesRequest.java @@ -0,0 +1,1326 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/catalog_management_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for requesting a list of catalog templates.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ListCatalogTemplatesRequest} + */ +@com.google.protobuf.Generated +public final class ListCatalogTemplatesRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ListCatalogTemplatesRequest) + ListCatalogTemplatesRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ListCatalogTemplatesRequest"); + } + + // Use ListCatalogTemplatesRequest.newBuilder() to construct. + private ListCatalogTemplatesRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListCatalogTemplatesRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListCatalogTemplatesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListCatalogTemplatesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ListCatalogTemplatesRequest.class, + com.google.cloud.designcenter.v1.ListCatalogTemplatesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent from which the catalog templates are listed in the
+   * following format:
+   * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The parent from which the catalog templates are listed in the
+   * following format:
+   * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog`
+   * 
+ * + * + * 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 results to return from this request.
+   * Non-positive
+   * values are ignored. The presence of nextPageToken in the response
+   * indicates that more results might be available.
+   * 
+ * + * 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. If present, then retrieve the next batch of results from the
+   * preceding call to this method. pageToken must be the value of nextPageToken
+   * from the previous response. The values of other method parameters should be
+   * identical to those in the previous call.
+   * 
+ * + * 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. If present, then retrieve the next batch of results from the
+   * preceding call to this method. pageToken must be the value of nextPageToken
+   * from the previous response. The values of other method parameters should be
+   * identical to those in the previous call.
+   * 
+ * + * 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; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
+   * Optional. A filter that chooses the catalog templates to return.
+   * 
+ * + * 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. A filter that chooses the catalog templates to return.
+   * 
+ * + * 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 ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
+   * Optional. How the results should be sorted.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+   * Optional. How the results should be sorted.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessage.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.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessage.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.designcenter.v1.ListCatalogTemplatesRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ListCatalogTemplatesRequest other = + (com.google.cloud.designcenter.v1.ListCatalogTemplatesRequest) 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.designcenter.v1.ListCatalogTemplatesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListCatalogTemplatesRequest 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.designcenter.v1.ListCatalogTemplatesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListCatalogTemplatesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListCatalogTemplatesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListCatalogTemplatesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListCatalogTemplatesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListCatalogTemplatesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListCatalogTemplatesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListCatalogTemplatesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListCatalogTemplatesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListCatalogTemplatesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ListCatalogTemplatesRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for requesting a list of catalog templates.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ListCatalogTemplatesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ListCatalogTemplatesRequest) + com.google.cloud.designcenter.v1.ListCatalogTemplatesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListCatalogTemplatesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListCatalogTemplatesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ListCatalogTemplatesRequest.class, + com.google.cloud.designcenter.v1.ListCatalogTemplatesRequest.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.ListCatalogTemplatesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.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.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListCatalogTemplatesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListCatalogTemplatesRequest + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ListCatalogTemplatesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListCatalogTemplatesRequest build() { + com.google.cloud.designcenter.v1.ListCatalogTemplatesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListCatalogTemplatesRequest buildPartial() { + com.google.cloud.designcenter.v1.ListCatalogTemplatesRequest result = + new com.google.cloud.designcenter.v1.ListCatalogTemplatesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.ListCatalogTemplatesRequest 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 mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.ListCatalogTemplatesRequest) { + return mergeFrom((com.google.cloud.designcenter.v1.ListCatalogTemplatesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.ListCatalogTemplatesRequest other) { + if (other + == com.google.cloud.designcenter.v1.ListCatalogTemplatesRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent from which the catalog templates are listed in the
+     * following format:
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The parent from which the catalog templates are listed in the
+     * following format:
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The parent from which the catalog templates are listed in the
+     * following format:
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent from which the catalog templates are listed in the
+     * following format:
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent from which the catalog templates are listed in the
+     * following format:
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog`
+     * 
+ * + * + * 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 results to return from this request.
+     * Non-positive
+     * values are ignored. The presence of nextPageToken in the response
+     * indicates that more results might be available.
+     * 
+ * + * 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 results to return from this request.
+     * Non-positive
+     * values are ignored. The presence of nextPageToken in the response
+     * indicates that more results might be available.
+     * 
+ * + * 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 results to return from this request.
+     * Non-positive
+     * values are ignored. The presence of nextPageToken in the response
+     * indicates that more results might be available.
+     * 
+ * + * 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. If present, then retrieve the next batch of results from the
+     * preceding call to this method. pageToken must be the value of nextPageToken
+     * from the previous response. The values of other method parameters should be
+     * identical to those in the previous call.
+     * 
+ * + * 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. If present, then retrieve the next batch of results from the
+     * preceding call to this method. pageToken must be the value of nextPageToken
+     * from the previous response. The values of other method parameters should be
+     * identical to those in the previous call.
+     * 
+ * + * 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. If present, then retrieve the next batch of results from the
+     * preceding call to this method. pageToken must be the value of nextPageToken
+     * from the previous response. The values of other method parameters should be
+     * identical to those in the previous call.
+     * 
+ * + * 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. If present, then retrieve the next batch of results from the
+     * preceding call to this method. pageToken must be the value of nextPageToken
+     * from the previous response. The values of other method parameters should be
+     * identical to those in the previous call.
+     * 
+ * + * 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. If present, then retrieve the next batch of results from the
+     * preceding call to this method. pageToken must be the value of nextPageToken
+     * from the previous response. The values of other method parameters should be
+     * identical to those in the previous call.
+     * 
+ * + * 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; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
+     * Optional. A filter that chooses the catalog templates to return.
+     * 
+ * + * 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. A filter that chooses the catalog templates to return.
+     * 
+ * + * 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. A filter that chooses the catalog templates to return.
+     * 
+ * + * 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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A filter that chooses the catalog templates to return.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A filter that chooses the catalog templates to return.
+     * 
+ * + * 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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
+     * Optional. How the results should be sorted.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+     * Optional. How the results should be sorted.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+     * Optional. How the results should be sorted.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + + /** + * + * + *
+     * Optional. How the results should be sorted.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. How the results should be sorted.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ListCatalogTemplatesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ListCatalogTemplatesRequest) + private static final com.google.cloud.designcenter.v1.ListCatalogTemplatesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.ListCatalogTemplatesRequest(); + } + + public static com.google.cloud.designcenter.v1.ListCatalogTemplatesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCatalogTemplatesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ListCatalogTemplatesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListCatalogTemplatesRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListCatalogTemplatesRequestOrBuilder.java new file mode 100644 index 000000000000..4f046401dcf2 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListCatalogTemplatesRequestOrBuilder.java @@ -0,0 +1,162 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/catalog_management_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ListCatalogTemplatesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ListCatalogTemplatesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent from which the catalog templates are listed in the
+   * following format:
+   * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent from which the catalog templates are listed in the
+   * following format:
+   * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog`
+   * 
+ * + * + * 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 results to return from this request.
+   * Non-positive
+   * values are ignored. The presence of nextPageToken in the response
+   * indicates that more results might be available.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. If present, then retrieve the next batch of results from the
+   * preceding call to this method. pageToken must be the value of nextPageToken
+   * from the previous response. The values of other method parameters should be
+   * identical to those in the previous call.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * Optional. If present, then retrieve the next batch of results from the
+   * preceding call to this method. pageToken must be the value of nextPageToken
+   * from the previous response. The values of other method parameters should be
+   * identical to those in the previous call.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional. A filter that chooses the catalog templates to return.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * Optional. A filter that chooses the catalog templates to return.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional. How the results should be sorted.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
+   * Optional. How the results should be sorted.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListCatalogTemplatesResponse.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListCatalogTemplatesResponse.java new file mode 100644 index 000000000000..47ed062a641d --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListCatalogTemplatesResponse.java @@ -0,0 +1,1145 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/catalog_management_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for response to listing catalog templates.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ListCatalogTemplatesResponse} + */ +@com.google.protobuf.Generated +public final class ListCatalogTemplatesResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ListCatalogTemplatesResponse) + ListCatalogTemplatesResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ListCatalogTemplatesResponse"); + } + + // Use ListCatalogTemplatesResponse.newBuilder() to construct. + private ListCatalogTemplatesResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListCatalogTemplatesResponse() { + catalogTemplates_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListCatalogTemplatesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListCatalogTemplatesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ListCatalogTemplatesResponse.class, + com.google.cloud.designcenter.v1.ListCatalogTemplatesResponse.Builder.class); + } + + public static final int CATALOG_TEMPLATES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List catalogTemplates_; + + /** + * + * + *
+   * The list of catalog templates.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.CatalogTemplate catalog_templates = 1; + */ + @java.lang.Override + public java.util.List + getCatalogTemplatesList() { + return catalogTemplates_; + } + + /** + * + * + *
+   * The list of catalog templates.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.CatalogTemplate catalog_templates = 1; + */ + @java.lang.Override + public java.util.List + getCatalogTemplatesOrBuilderList() { + return catalogTemplates_; + } + + /** + * + * + *
+   * The list of catalog templates.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.CatalogTemplate catalog_templates = 1; + */ + @java.lang.Override + public int getCatalogTemplatesCount() { + return catalogTemplates_.size(); + } + + /** + * + * + *
+   * The list of catalog templates.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.CatalogTemplate catalog_templates = 1; + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.CatalogTemplate getCatalogTemplates(int index) { + return catalogTemplates_.get(index); + } + + /** + * + * + *
+   * The list of catalog templates.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.CatalogTemplate catalog_templates = 1; + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.CatalogTemplateOrBuilder getCatalogTemplatesOrBuilder( + int index) { + return catalogTemplates_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * If there might be more results than those appearing in this response, then
+   * nextPageToken is included. To get the next set of results, call this method
+   * again using the value of nextPageToken as pageToken.
+   * 
+ * + * 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; + } + } + + /** + * + * + *
+   * If there might be more results than those appearing in this response, then
+   * nextPageToken is included. To get the next set of results, call this method
+   * again using the value of nextPageToken as pageToken.
+   * 
+ * + * 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 < catalogTemplates_.size(); i++) { + output.writeMessage(1, catalogTemplates_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.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 < catalogTemplates_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, catalogTemplates_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.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.designcenter.v1.ListCatalogTemplatesResponse)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ListCatalogTemplatesResponse other = + (com.google.cloud.designcenter.v1.ListCatalogTemplatesResponse) obj; + + if (!getCatalogTemplatesList().equals(other.getCatalogTemplatesList())) 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 (getCatalogTemplatesCount() > 0) { + hash = (37 * hash) + CATALOG_TEMPLATES_FIELD_NUMBER; + hash = (53 * hash) + getCatalogTemplatesList().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.designcenter.v1.ListCatalogTemplatesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListCatalogTemplatesResponse 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.designcenter.v1.ListCatalogTemplatesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListCatalogTemplatesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListCatalogTemplatesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListCatalogTemplatesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListCatalogTemplatesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListCatalogTemplatesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListCatalogTemplatesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListCatalogTemplatesResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListCatalogTemplatesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListCatalogTemplatesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ListCatalogTemplatesResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for response to listing catalog templates.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ListCatalogTemplatesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ListCatalogTemplatesResponse) + com.google.cloud.designcenter.v1.ListCatalogTemplatesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListCatalogTemplatesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListCatalogTemplatesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ListCatalogTemplatesResponse.class, + com.google.cloud.designcenter.v1.ListCatalogTemplatesResponse.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.ListCatalogTemplatesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (catalogTemplatesBuilder_ == null) { + catalogTemplates_ = java.util.Collections.emptyList(); + } else { + catalogTemplates_ = null; + catalogTemplatesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListCatalogTemplatesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListCatalogTemplatesResponse + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ListCatalogTemplatesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListCatalogTemplatesResponse build() { + com.google.cloud.designcenter.v1.ListCatalogTemplatesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListCatalogTemplatesResponse buildPartial() { + com.google.cloud.designcenter.v1.ListCatalogTemplatesResponse result = + new com.google.cloud.designcenter.v1.ListCatalogTemplatesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.designcenter.v1.ListCatalogTemplatesResponse result) { + if (catalogTemplatesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + catalogTemplates_ = java.util.Collections.unmodifiableList(catalogTemplates_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.catalogTemplates_ = catalogTemplates_; + } else { + result.catalogTemplates_ = catalogTemplatesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.ListCatalogTemplatesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.ListCatalogTemplatesResponse) { + return mergeFrom((com.google.cloud.designcenter.v1.ListCatalogTemplatesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.ListCatalogTemplatesResponse other) { + if (other + == com.google.cloud.designcenter.v1.ListCatalogTemplatesResponse.getDefaultInstance()) + return this; + if (catalogTemplatesBuilder_ == null) { + if (!other.catalogTemplates_.isEmpty()) { + if (catalogTemplates_.isEmpty()) { + catalogTemplates_ = other.catalogTemplates_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCatalogTemplatesIsMutable(); + catalogTemplates_.addAll(other.catalogTemplates_); + } + onChanged(); + } + } else { + if (!other.catalogTemplates_.isEmpty()) { + if (catalogTemplatesBuilder_.isEmpty()) { + catalogTemplatesBuilder_.dispose(); + catalogTemplatesBuilder_ = null; + catalogTemplates_ = other.catalogTemplates_; + bitField0_ = (bitField0_ & ~0x00000001); + catalogTemplatesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetCatalogTemplatesFieldBuilder() + : null; + } else { + catalogTemplatesBuilder_.addAllMessages(other.catalogTemplates_); + } + } + } + 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.designcenter.v1.CatalogTemplate m = + input.readMessage( + com.google.cloud.designcenter.v1.CatalogTemplate.parser(), + extensionRegistry); + if (catalogTemplatesBuilder_ == null) { + ensureCatalogTemplatesIsMutable(); + catalogTemplates_.add(m); + } else { + catalogTemplatesBuilder_.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 catalogTemplates_ = + java.util.Collections.emptyList(); + + private void ensureCatalogTemplatesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + catalogTemplates_ = + new java.util.ArrayList( + catalogTemplates_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.CatalogTemplate, + com.google.cloud.designcenter.v1.CatalogTemplate.Builder, + com.google.cloud.designcenter.v1.CatalogTemplateOrBuilder> + catalogTemplatesBuilder_; + + /** + * + * + *
+     * The list of catalog templates.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.CatalogTemplate catalog_templates = 1; + */ + public java.util.List + getCatalogTemplatesList() { + if (catalogTemplatesBuilder_ == null) { + return java.util.Collections.unmodifiableList(catalogTemplates_); + } else { + return catalogTemplatesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The list of catalog templates.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.CatalogTemplate catalog_templates = 1; + */ + public int getCatalogTemplatesCount() { + if (catalogTemplatesBuilder_ == null) { + return catalogTemplates_.size(); + } else { + return catalogTemplatesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The list of catalog templates.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.CatalogTemplate catalog_templates = 1; + */ + public com.google.cloud.designcenter.v1.CatalogTemplate getCatalogTemplates(int index) { + if (catalogTemplatesBuilder_ == null) { + return catalogTemplates_.get(index); + } else { + return catalogTemplatesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The list of catalog templates.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.CatalogTemplate catalog_templates = 1; + */ + public Builder setCatalogTemplates( + int index, com.google.cloud.designcenter.v1.CatalogTemplate value) { + if (catalogTemplatesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCatalogTemplatesIsMutable(); + catalogTemplates_.set(index, value); + onChanged(); + } else { + catalogTemplatesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of catalog templates.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.CatalogTemplate catalog_templates = 1; + */ + public Builder setCatalogTemplates( + int index, com.google.cloud.designcenter.v1.CatalogTemplate.Builder builderForValue) { + if (catalogTemplatesBuilder_ == null) { + ensureCatalogTemplatesIsMutable(); + catalogTemplates_.set(index, builderForValue.build()); + onChanged(); + } else { + catalogTemplatesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of catalog templates.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.CatalogTemplate catalog_templates = 1; + */ + public Builder addCatalogTemplates(com.google.cloud.designcenter.v1.CatalogTemplate value) { + if (catalogTemplatesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCatalogTemplatesIsMutable(); + catalogTemplates_.add(value); + onChanged(); + } else { + catalogTemplatesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The list of catalog templates.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.CatalogTemplate catalog_templates = 1; + */ + public Builder addCatalogTemplates( + int index, com.google.cloud.designcenter.v1.CatalogTemplate value) { + if (catalogTemplatesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCatalogTemplatesIsMutable(); + catalogTemplates_.add(index, value); + onChanged(); + } else { + catalogTemplatesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of catalog templates.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.CatalogTemplate catalog_templates = 1; + */ + public Builder addCatalogTemplates( + com.google.cloud.designcenter.v1.CatalogTemplate.Builder builderForValue) { + if (catalogTemplatesBuilder_ == null) { + ensureCatalogTemplatesIsMutable(); + catalogTemplates_.add(builderForValue.build()); + onChanged(); + } else { + catalogTemplatesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of catalog templates.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.CatalogTemplate catalog_templates = 1; + */ + public Builder addCatalogTemplates( + int index, com.google.cloud.designcenter.v1.CatalogTemplate.Builder builderForValue) { + if (catalogTemplatesBuilder_ == null) { + ensureCatalogTemplatesIsMutable(); + catalogTemplates_.add(index, builderForValue.build()); + onChanged(); + } else { + catalogTemplatesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of catalog templates.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.CatalogTemplate catalog_templates = 1; + */ + public Builder addAllCatalogTemplates( + java.lang.Iterable values) { + if (catalogTemplatesBuilder_ == null) { + ensureCatalogTemplatesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, catalogTemplates_); + onChanged(); + } else { + catalogTemplatesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The list of catalog templates.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.CatalogTemplate catalog_templates = 1; + */ + public Builder clearCatalogTemplates() { + if (catalogTemplatesBuilder_ == null) { + catalogTemplates_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + catalogTemplatesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The list of catalog templates.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.CatalogTemplate catalog_templates = 1; + */ + public Builder removeCatalogTemplates(int index) { + if (catalogTemplatesBuilder_ == null) { + ensureCatalogTemplatesIsMutable(); + catalogTemplates_.remove(index); + onChanged(); + } else { + catalogTemplatesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The list of catalog templates.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.CatalogTemplate catalog_templates = 1; + */ + public com.google.cloud.designcenter.v1.CatalogTemplate.Builder getCatalogTemplatesBuilder( + int index) { + return internalGetCatalogTemplatesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The list of catalog templates.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.CatalogTemplate catalog_templates = 1; + */ + public com.google.cloud.designcenter.v1.CatalogTemplateOrBuilder getCatalogTemplatesOrBuilder( + int index) { + if (catalogTemplatesBuilder_ == null) { + return catalogTemplates_.get(index); + } else { + return catalogTemplatesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The list of catalog templates.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.CatalogTemplate catalog_templates = 1; + */ + public java.util.List + getCatalogTemplatesOrBuilderList() { + if (catalogTemplatesBuilder_ != null) { + return catalogTemplatesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(catalogTemplates_); + } + } + + /** + * + * + *
+     * The list of catalog templates.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.CatalogTemplate catalog_templates = 1; + */ + public com.google.cloud.designcenter.v1.CatalogTemplate.Builder addCatalogTemplatesBuilder() { + return internalGetCatalogTemplatesFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.CatalogTemplate.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of catalog templates.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.CatalogTemplate catalog_templates = 1; + */ + public com.google.cloud.designcenter.v1.CatalogTemplate.Builder addCatalogTemplatesBuilder( + int index) { + return internalGetCatalogTemplatesFieldBuilder() + .addBuilder(index, com.google.cloud.designcenter.v1.CatalogTemplate.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of catalog templates.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.CatalogTemplate catalog_templates = 1; + */ + public java.util.List + getCatalogTemplatesBuilderList() { + return internalGetCatalogTemplatesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.CatalogTemplate, + com.google.cloud.designcenter.v1.CatalogTemplate.Builder, + com.google.cloud.designcenter.v1.CatalogTemplateOrBuilder> + internalGetCatalogTemplatesFieldBuilder() { + if (catalogTemplatesBuilder_ == null) { + catalogTemplatesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.CatalogTemplate, + com.google.cloud.designcenter.v1.CatalogTemplate.Builder, + com.google.cloud.designcenter.v1.CatalogTemplateOrBuilder>( + catalogTemplates_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + catalogTemplates_ = null; + } + return catalogTemplatesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * If there might be more results than those appearing in this response, then
+     * nextPageToken is included. To get the next set of results, call this method
+     * again using the value of nextPageToken as pageToken.
+     * 
+ * + * 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; + } + } + + /** + * + * + *
+     * If there might be more results than those appearing in this response, then
+     * nextPageToken is included. To get the next set of results, call this method
+     * again using the value of nextPageToken as pageToken.
+     * 
+ * + * 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; + } + } + + /** + * + * + *
+     * If there might be more results than those appearing in this response, then
+     * nextPageToken is included. To get the next set of results, call this method
+     * again using the value of nextPageToken as pageToken.
+     * 
+ * + * 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; + } + + /** + * + * + *
+     * If there might be more results than those appearing in this response, then
+     * nextPageToken is included. To get the next set of results, call this method
+     * again using the value of nextPageToken as pageToken.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * If there might be more results than those appearing in this response, then
+     * nextPageToken is included. To get the next set of results, call this method
+     * again using the value of nextPageToken as pageToken.
+     * 
+ * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ListCatalogTemplatesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ListCatalogTemplatesResponse) + private static final com.google.cloud.designcenter.v1.ListCatalogTemplatesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.ListCatalogTemplatesResponse(); + } + + public static com.google.cloud.designcenter.v1.ListCatalogTemplatesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCatalogTemplatesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ListCatalogTemplatesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListCatalogTemplatesResponseOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListCatalogTemplatesResponseOrBuilder.java new file mode 100644 index 000000000000..6869d9b5d3b3 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListCatalogTemplatesResponseOrBuilder.java @@ -0,0 +1,114 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/catalog_management_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ListCatalogTemplatesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ListCatalogTemplatesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of catalog templates.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.CatalogTemplate catalog_templates = 1; + */ + java.util.List getCatalogTemplatesList(); + + /** + * + * + *
+   * The list of catalog templates.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.CatalogTemplate catalog_templates = 1; + */ + com.google.cloud.designcenter.v1.CatalogTemplate getCatalogTemplates(int index); + + /** + * + * + *
+   * The list of catalog templates.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.CatalogTemplate catalog_templates = 1; + */ + int getCatalogTemplatesCount(); + + /** + * + * + *
+   * The list of catalog templates.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.CatalogTemplate catalog_templates = 1; + */ + java.util.List + getCatalogTemplatesOrBuilderList(); + + /** + * + * + *
+   * The list of catalog templates.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.CatalogTemplate catalog_templates = 1; + */ + com.google.cloud.designcenter.v1.CatalogTemplateOrBuilder getCatalogTemplatesOrBuilder(int index); + + /** + * + * + *
+   * If there might be more results than those appearing in this response, then
+   * nextPageToken is included. To get the next set of results, call this method
+   * again using the value of nextPageToken as pageToken.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * If there might be more results than those appearing in this response, then
+   * nextPageToken is included. To get the next set of results, call this method
+   * again using the value of nextPageToken as pageToken.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListCatalogsRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListCatalogsRequest.java new file mode 100644 index 000000000000..cc6ef1937dd7 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListCatalogsRequest.java @@ -0,0 +1,1310 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/catalog_management_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for requesting a list of catalogs.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ListCatalogsRequest} + */ +@com.google.protobuf.Generated +public final class ListCatalogsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ListCatalogsRequest) + ListCatalogsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ListCatalogsRequest"); + } + + // Use ListCatalogsRequest.newBuilder() to construct. + private ListCatalogsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListCatalogsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListCatalogsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListCatalogsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ListCatalogsRequest.class, + com.google.cloud.designcenter.v1.ListCatalogsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent space from which catalogs are listed.
+   * Format: `projects/$project/locations/$location/spaces/$space`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The parent space from which catalogs are listed.
+   * Format: `projects/$project/locations/$location/spaces/$space`
+   * 
+ * + * + * 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 results to return from this request.
+   * Non-positive values are ignored. The presence of nextPageToken in the
+   * response indicates that more results might be available.
+   * 
+ * + * 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. If present, retrieve the next batch of results from the preceding
+   * call to this method. pageToken must be the value of nextPageToken from the
+   * previous response. The values of other method parameters should be
+   * identical to those in the previous call.
+   * 
+ * + * 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. If present, retrieve the next batch of results from the preceding
+   * call to this method. pageToken must be the value of nextPageToken from the
+   * previous response. The values of other method parameters should be
+   * identical to those in the previous call.
+   * 
+ * + * 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; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
+   * Optional. A filter that chooses which catalogs to return.
+   * 
+ * + * 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. A filter that chooses which catalogs to return.
+   * 
+ * + * 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 ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
+   * Optional. How the results should be sorted.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+   * Optional. How the results should be sorted.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessage.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.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessage.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.designcenter.v1.ListCatalogsRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ListCatalogsRequest other = + (com.google.cloud.designcenter.v1.ListCatalogsRequest) 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.designcenter.v1.ListCatalogsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListCatalogsRequest 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.designcenter.v1.ListCatalogsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListCatalogsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListCatalogsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListCatalogsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListCatalogsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListCatalogsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListCatalogsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListCatalogsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListCatalogsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListCatalogsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ListCatalogsRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for requesting a list of catalogs.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ListCatalogsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ListCatalogsRequest) + com.google.cloud.designcenter.v1.ListCatalogsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListCatalogsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListCatalogsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ListCatalogsRequest.class, + com.google.cloud.designcenter.v1.ListCatalogsRequest.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.ListCatalogsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.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.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListCatalogsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListCatalogsRequest getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ListCatalogsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListCatalogsRequest build() { + com.google.cloud.designcenter.v1.ListCatalogsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListCatalogsRequest buildPartial() { + com.google.cloud.designcenter.v1.ListCatalogsRequest result = + new com.google.cloud.designcenter.v1.ListCatalogsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.ListCatalogsRequest 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 mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.ListCatalogsRequest) { + return mergeFrom((com.google.cloud.designcenter.v1.ListCatalogsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.ListCatalogsRequest other) { + if (other == com.google.cloud.designcenter.v1.ListCatalogsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent space from which catalogs are listed.
+     * Format: `projects/$project/locations/$location/spaces/$space`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The parent space from which catalogs are listed.
+     * Format: `projects/$project/locations/$location/spaces/$space`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The parent space from which catalogs are listed.
+     * Format: `projects/$project/locations/$location/spaces/$space`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent space from which catalogs are listed.
+     * Format: `projects/$project/locations/$location/spaces/$space`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent space from which catalogs are listed.
+     * Format: `projects/$project/locations/$location/spaces/$space`
+     * 
+ * + * + * 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 results to return from this request.
+     * Non-positive values are ignored. The presence of nextPageToken in the
+     * response indicates that more results might be available.
+     * 
+ * + * 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 results to return from this request.
+     * Non-positive values are ignored. The presence of nextPageToken in the
+     * response indicates that more results might be available.
+     * 
+ * + * 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 results to return from this request.
+     * Non-positive values are ignored. The presence of nextPageToken in the
+     * response indicates that more results might be available.
+     * 
+ * + * 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. If present, retrieve the next batch of results from the preceding
+     * call to this method. pageToken must be the value of nextPageToken from the
+     * previous response. The values of other method parameters should be
+     * identical to those in the previous call.
+     * 
+ * + * 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. If present, retrieve the next batch of results from the preceding
+     * call to this method. pageToken must be the value of nextPageToken from the
+     * previous response. The values of other method parameters should be
+     * identical to those in the previous call.
+     * 
+ * + * 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. If present, retrieve the next batch of results from the preceding
+     * call to this method. pageToken must be the value of nextPageToken from the
+     * previous response. The values of other method parameters should be
+     * identical to those in the previous call.
+     * 
+ * + * 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. If present, retrieve the next batch of results from the preceding
+     * call to this method. pageToken must be the value of nextPageToken from the
+     * previous response. The values of other method parameters should be
+     * identical to those in the previous call.
+     * 
+ * + * 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. If present, retrieve the next batch of results from the preceding
+     * call to this method. pageToken must be the value of nextPageToken from the
+     * previous response. The values of other method parameters should be
+     * identical to those in the previous call.
+     * 
+ * + * 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; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
+     * Optional. A filter that chooses which catalogs to return.
+     * 
+ * + * 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. A filter that chooses which catalogs to return.
+     * 
+ * + * 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. A filter that chooses which catalogs to return.
+     * 
+ * + * 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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A filter that chooses which catalogs to return.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A filter that chooses which catalogs to return.
+     * 
+ * + * 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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
+     * Optional. How the results should be sorted.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+     * Optional. How the results should be sorted.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+     * Optional. How the results should be sorted.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + + /** + * + * + *
+     * Optional. How the results should be sorted.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. How the results should be sorted.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ListCatalogsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ListCatalogsRequest) + private static final com.google.cloud.designcenter.v1.ListCatalogsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.ListCatalogsRequest(); + } + + public static com.google.cloud.designcenter.v1.ListCatalogsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCatalogsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ListCatalogsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListCatalogsRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListCatalogsRequestOrBuilder.java new file mode 100644 index 000000000000..8fa9e371f679 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListCatalogsRequestOrBuilder.java @@ -0,0 +1,159 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/catalog_management_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ListCatalogsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ListCatalogsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent space from which catalogs are listed.
+   * Format: `projects/$project/locations/$location/spaces/$space`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent space from which catalogs are listed.
+   * Format: `projects/$project/locations/$location/spaces/$space`
+   * 
+ * + * + * 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 results to return from this request.
+   * Non-positive values are ignored. The presence of nextPageToken in the
+   * response indicates that more results might be available.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. If present, retrieve the next batch of results from the preceding
+   * call to this method. pageToken must be the value of nextPageToken from the
+   * previous response. The values of other method parameters should be
+   * identical to those in the previous call.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * Optional. If present, retrieve the next batch of results from the preceding
+   * call to this method. pageToken must be the value of nextPageToken from the
+   * previous response. The values of other method parameters should be
+   * identical to those in the previous call.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional. A filter that chooses which catalogs to return.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * Optional. A filter that chooses which catalogs to return.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional. How the results should be sorted.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
+   * Optional. How the results should be sorted.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListCatalogsResponse.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListCatalogsResponse.java new file mode 100644 index 000000000000..edde26fa2da1 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListCatalogsResponse.java @@ -0,0 +1,1126 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/catalog_management_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Results returned from catalogs.list.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ListCatalogsResponse} + */ +@com.google.protobuf.Generated +public final class ListCatalogsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ListCatalogsResponse) + ListCatalogsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ListCatalogsResponse"); + } + + // Use ListCatalogsResponse.newBuilder() to construct. + private ListCatalogsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListCatalogsResponse() { + catalogs_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListCatalogsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListCatalogsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ListCatalogsResponse.class, + com.google.cloud.designcenter.v1.ListCatalogsResponse.Builder.class); + } + + public static final int CATALOGS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List catalogs_; + + /** + * + * + *
+   * A list of catalogs
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Catalog catalogs = 1; + */ + @java.lang.Override + public java.util.List getCatalogsList() { + return catalogs_; + } + + /** + * + * + *
+   * A list of catalogs
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Catalog catalogs = 1; + */ + @java.lang.Override + public java.util.List + getCatalogsOrBuilderList() { + return catalogs_; + } + + /** + * + * + *
+   * A list of catalogs
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Catalog catalogs = 1; + */ + @java.lang.Override + public int getCatalogsCount() { + return catalogs_.size(); + } + + /** + * + * + *
+   * A list of catalogs
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Catalog catalogs = 1; + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.Catalog getCatalogs(int index) { + return catalogs_.get(index); + } + + /** + * + * + *
+   * A list of catalogs
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Catalog catalogs = 1; + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.CatalogOrBuilder getCatalogsOrBuilder(int index) { + return catalogs_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * If there might be more results than those appearing in this response,
+   * nextPageToken is included. To get the next set of results, call this method
+   * again using the value of nextPageToken as pageToken.
+   * 
+ * + * 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; + } + } + + /** + * + * + *
+   * If there might be more results than those appearing in this response,
+   * nextPageToken is included. To get the next set of results, call this method
+   * again using the value of nextPageToken as pageToken.
+   * 
+ * + * 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 < catalogs_.size(); i++) { + output.writeMessage(1, catalogs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.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 < catalogs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, catalogs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.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.designcenter.v1.ListCatalogsResponse)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ListCatalogsResponse other = + (com.google.cloud.designcenter.v1.ListCatalogsResponse) obj; + + if (!getCatalogsList().equals(other.getCatalogsList())) 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 (getCatalogsCount() > 0) { + hash = (37 * hash) + CATALOGS_FIELD_NUMBER; + hash = (53 * hash) + getCatalogsList().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.designcenter.v1.ListCatalogsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListCatalogsResponse 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.designcenter.v1.ListCatalogsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListCatalogsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListCatalogsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListCatalogsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListCatalogsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListCatalogsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListCatalogsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListCatalogsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListCatalogsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListCatalogsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ListCatalogsResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Results returned from catalogs.list.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ListCatalogsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ListCatalogsResponse) + com.google.cloud.designcenter.v1.ListCatalogsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListCatalogsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListCatalogsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ListCatalogsResponse.class, + com.google.cloud.designcenter.v1.ListCatalogsResponse.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.ListCatalogsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (catalogsBuilder_ == null) { + catalogs_ = java.util.Collections.emptyList(); + } else { + catalogs_ = null; + catalogsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListCatalogsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListCatalogsResponse getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ListCatalogsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListCatalogsResponse build() { + com.google.cloud.designcenter.v1.ListCatalogsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListCatalogsResponse buildPartial() { + com.google.cloud.designcenter.v1.ListCatalogsResponse result = + new com.google.cloud.designcenter.v1.ListCatalogsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.designcenter.v1.ListCatalogsResponse result) { + if (catalogsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + catalogs_ = java.util.Collections.unmodifiableList(catalogs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.catalogs_ = catalogs_; + } else { + result.catalogs_ = catalogsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.designcenter.v1.ListCatalogsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.ListCatalogsResponse) { + return mergeFrom((com.google.cloud.designcenter.v1.ListCatalogsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.ListCatalogsResponse other) { + if (other == com.google.cloud.designcenter.v1.ListCatalogsResponse.getDefaultInstance()) + return this; + if (catalogsBuilder_ == null) { + if (!other.catalogs_.isEmpty()) { + if (catalogs_.isEmpty()) { + catalogs_ = other.catalogs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCatalogsIsMutable(); + catalogs_.addAll(other.catalogs_); + } + onChanged(); + } + } else { + if (!other.catalogs_.isEmpty()) { + if (catalogsBuilder_.isEmpty()) { + catalogsBuilder_.dispose(); + catalogsBuilder_ = null; + catalogs_ = other.catalogs_; + bitField0_ = (bitField0_ & ~0x00000001); + catalogsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetCatalogsFieldBuilder() + : null; + } else { + catalogsBuilder_.addAllMessages(other.catalogs_); + } + } + } + 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.designcenter.v1.Catalog m = + input.readMessage( + com.google.cloud.designcenter.v1.Catalog.parser(), extensionRegistry); + if (catalogsBuilder_ == null) { + ensureCatalogsIsMutable(); + catalogs_.add(m); + } else { + catalogsBuilder_.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 catalogs_ = + java.util.Collections.emptyList(); + + private void ensureCatalogsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + catalogs_ = new java.util.ArrayList(catalogs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Catalog, + com.google.cloud.designcenter.v1.Catalog.Builder, + com.google.cloud.designcenter.v1.CatalogOrBuilder> + catalogsBuilder_; + + /** + * + * + *
+     * A list of catalogs
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Catalog catalogs = 1; + */ + public java.util.List getCatalogsList() { + if (catalogsBuilder_ == null) { + return java.util.Collections.unmodifiableList(catalogs_); + } else { + return catalogsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * A list of catalogs
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Catalog catalogs = 1; + */ + public int getCatalogsCount() { + if (catalogsBuilder_ == null) { + return catalogs_.size(); + } else { + return catalogsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * A list of catalogs
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Catalog catalogs = 1; + */ + public com.google.cloud.designcenter.v1.Catalog getCatalogs(int index) { + if (catalogsBuilder_ == null) { + return catalogs_.get(index); + } else { + return catalogsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * A list of catalogs
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Catalog catalogs = 1; + */ + public Builder setCatalogs(int index, com.google.cloud.designcenter.v1.Catalog value) { + if (catalogsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCatalogsIsMutable(); + catalogs_.set(index, value); + onChanged(); + } else { + catalogsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * A list of catalogs
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Catalog catalogs = 1; + */ + public Builder setCatalogs( + int index, com.google.cloud.designcenter.v1.Catalog.Builder builderForValue) { + if (catalogsBuilder_ == null) { + ensureCatalogsIsMutable(); + catalogs_.set(index, builderForValue.build()); + onChanged(); + } else { + catalogsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * A list of catalogs
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Catalog catalogs = 1; + */ + public Builder addCatalogs(com.google.cloud.designcenter.v1.Catalog value) { + if (catalogsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCatalogsIsMutable(); + catalogs_.add(value); + onChanged(); + } else { + catalogsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * A list of catalogs
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Catalog catalogs = 1; + */ + public Builder addCatalogs(int index, com.google.cloud.designcenter.v1.Catalog value) { + if (catalogsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCatalogsIsMutable(); + catalogs_.add(index, value); + onChanged(); + } else { + catalogsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * A list of catalogs
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Catalog catalogs = 1; + */ + public Builder addCatalogs(com.google.cloud.designcenter.v1.Catalog.Builder builderForValue) { + if (catalogsBuilder_ == null) { + ensureCatalogsIsMutable(); + catalogs_.add(builderForValue.build()); + onChanged(); + } else { + catalogsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * A list of catalogs
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Catalog catalogs = 1; + */ + public Builder addCatalogs( + int index, com.google.cloud.designcenter.v1.Catalog.Builder builderForValue) { + if (catalogsBuilder_ == null) { + ensureCatalogsIsMutable(); + catalogs_.add(index, builderForValue.build()); + onChanged(); + } else { + catalogsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * A list of catalogs
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Catalog catalogs = 1; + */ + public Builder addAllCatalogs( + java.lang.Iterable values) { + if (catalogsBuilder_ == null) { + ensureCatalogsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, catalogs_); + onChanged(); + } else { + catalogsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * A list of catalogs
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Catalog catalogs = 1; + */ + public Builder clearCatalogs() { + if (catalogsBuilder_ == null) { + catalogs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + catalogsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * A list of catalogs
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Catalog catalogs = 1; + */ + public Builder removeCatalogs(int index) { + if (catalogsBuilder_ == null) { + ensureCatalogsIsMutable(); + catalogs_.remove(index); + onChanged(); + } else { + catalogsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * A list of catalogs
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Catalog catalogs = 1; + */ + public com.google.cloud.designcenter.v1.Catalog.Builder getCatalogsBuilder(int index) { + return internalGetCatalogsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * A list of catalogs
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Catalog catalogs = 1; + */ + public com.google.cloud.designcenter.v1.CatalogOrBuilder getCatalogsOrBuilder(int index) { + if (catalogsBuilder_ == null) { + return catalogs_.get(index); + } else { + return catalogsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * A list of catalogs
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Catalog catalogs = 1; + */ + public java.util.List + getCatalogsOrBuilderList() { + if (catalogsBuilder_ != null) { + return catalogsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(catalogs_); + } + } + + /** + * + * + *
+     * A list of catalogs
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Catalog catalogs = 1; + */ + public com.google.cloud.designcenter.v1.Catalog.Builder addCatalogsBuilder() { + return internalGetCatalogsFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.Catalog.getDefaultInstance()); + } + + /** + * + * + *
+     * A list of catalogs
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Catalog catalogs = 1; + */ + public com.google.cloud.designcenter.v1.Catalog.Builder addCatalogsBuilder(int index) { + return internalGetCatalogsFieldBuilder() + .addBuilder(index, com.google.cloud.designcenter.v1.Catalog.getDefaultInstance()); + } + + /** + * + * + *
+     * A list of catalogs
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Catalog catalogs = 1; + */ + public java.util.List + getCatalogsBuilderList() { + return internalGetCatalogsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Catalog, + com.google.cloud.designcenter.v1.Catalog.Builder, + com.google.cloud.designcenter.v1.CatalogOrBuilder> + internalGetCatalogsFieldBuilder() { + if (catalogsBuilder_ == null) { + catalogsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Catalog, + com.google.cloud.designcenter.v1.Catalog.Builder, + com.google.cloud.designcenter.v1.CatalogOrBuilder>( + catalogs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + catalogs_ = null; + } + return catalogsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * If there might be more results than those appearing in this response,
+     * nextPageToken is included. To get the next set of results, call this method
+     * again using the value of nextPageToken as pageToken.
+     * 
+ * + * 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; + } + } + + /** + * + * + *
+     * If there might be more results than those appearing in this response,
+     * nextPageToken is included. To get the next set of results, call this method
+     * again using the value of nextPageToken as pageToken.
+     * 
+ * + * 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; + } + } + + /** + * + * + *
+     * If there might be more results than those appearing in this response,
+     * nextPageToken is included. To get the next set of results, call this method
+     * again using the value of nextPageToken as pageToken.
+     * 
+ * + * 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; + } + + /** + * + * + *
+     * If there might be more results than those appearing in this response,
+     * nextPageToken is included. To get the next set of results, call this method
+     * again using the value of nextPageToken as pageToken.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * If there might be more results than those appearing in this response,
+     * nextPageToken is included. To get the next set of results, call this method
+     * again using the value of nextPageToken as pageToken.
+     * 
+ * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ListCatalogsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ListCatalogsResponse) + private static final com.google.cloud.designcenter.v1.ListCatalogsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.ListCatalogsResponse(); + } + + public static com.google.cloud.designcenter.v1.ListCatalogsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCatalogsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ListCatalogsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListCatalogsResponseOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListCatalogsResponseOrBuilder.java new file mode 100644 index 000000000000..0ef13426d825 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListCatalogsResponseOrBuilder.java @@ -0,0 +1,114 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/catalog_management_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ListCatalogsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ListCatalogsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A list of catalogs
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Catalog catalogs = 1; + */ + java.util.List getCatalogsList(); + + /** + * + * + *
+   * A list of catalogs
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Catalog catalogs = 1; + */ + com.google.cloud.designcenter.v1.Catalog getCatalogs(int index); + + /** + * + * + *
+   * A list of catalogs
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Catalog catalogs = 1; + */ + int getCatalogsCount(); + + /** + * + * + *
+   * A list of catalogs
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Catalog catalogs = 1; + */ + java.util.List + getCatalogsOrBuilderList(); + + /** + * + * + *
+   * A list of catalogs
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Catalog catalogs = 1; + */ + com.google.cloud.designcenter.v1.CatalogOrBuilder getCatalogsOrBuilder(int index); + + /** + * + * + *
+   * If there might be more results than those appearing in this response,
+   * nextPageToken is included. To get the next set of results, call this method
+   * again using the value of nextPageToken as pageToken.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * If there might be more results than those appearing in this response,
+   * nextPageToken is included. To get the next set of results, call this method
+   * again using the value of nextPageToken as pageToken.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListComponentsRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListComponentsRequest.java new file mode 100644 index 000000000000..19cc62998811 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListComponentsRequest.java @@ -0,0 +1,1315 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for requesting a list of components.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ListComponentsRequest} + */ +@com.google.protobuf.Generated +public final class ListComponentsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ListComponentsRequest) + ListComponentsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ListComponentsRequest"); + } + + // Use ListComponentsRequest.newBuilder() to construct. + private ListComponentsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListComponentsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListComponentsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListComponentsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ListComponentsRequest.class, + com.google.cloud.designcenter.v1.ListComponentsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent resource from which the list of components is
+   * requested.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The parent resource from which the list of components is
+   * requested.
+   * 
+ * + * + * 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 results to return from this request.
+   * Non-positive
+   * values are ignored. The presence of nextPageToken in the response
+   * indicates that more results might be available.
+   * 
+ * + * 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. If present, then retrieve the next batch of results from the
+   * preceding call to this method. pageToken must be the value of nextPageToken
+   * from the previous response. The values of other method parameters should be
+   * identical to those in the previous call.
+   * 
+ * + * 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. If present, then retrieve the next batch of results from the
+   * preceding call to this method. pageToken must be the value of nextPageToken
+   * from the previous response. The values of other method parameters should be
+   * identical to those in the previous call.
+   * 
+ * + * 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; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
+   * Optional. A filter that chooses which components to return.
+   * 
+ * + * 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. A filter that chooses which components to return.
+   * 
+ * + * 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 ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
+   * Optional. How the results should be sorted.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+   * Optional. How the results should be sorted.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessage.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.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessage.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.designcenter.v1.ListComponentsRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ListComponentsRequest other = + (com.google.cloud.designcenter.v1.ListComponentsRequest) 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.designcenter.v1.ListComponentsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListComponentsRequest 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.designcenter.v1.ListComponentsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListComponentsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListComponentsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListComponentsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListComponentsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListComponentsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListComponentsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListComponentsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListComponentsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListComponentsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ListComponentsRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for requesting a list of components.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ListComponentsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ListComponentsRequest) + com.google.cloud.designcenter.v1.ListComponentsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListComponentsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListComponentsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ListComponentsRequest.class, + com.google.cloud.designcenter.v1.ListComponentsRequest.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.ListComponentsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.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.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListComponentsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListComponentsRequest getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ListComponentsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListComponentsRequest build() { + com.google.cloud.designcenter.v1.ListComponentsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListComponentsRequest buildPartial() { + com.google.cloud.designcenter.v1.ListComponentsRequest result = + new com.google.cloud.designcenter.v1.ListComponentsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.ListComponentsRequest 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 mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.ListComponentsRequest) { + return mergeFrom((com.google.cloud.designcenter.v1.ListComponentsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.ListComponentsRequest other) { + if (other == com.google.cloud.designcenter.v1.ListComponentsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent resource from which the list of components is
+     * requested.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The parent resource from which the list of components is
+     * requested.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The parent resource from which the list of components is
+     * requested.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource from which the list of components is
+     * requested.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource from which the list of components is
+     * requested.
+     * 
+ * + * + * 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 results to return from this request.
+     * Non-positive
+     * values are ignored. The presence of nextPageToken in the response
+     * indicates that more results might be available.
+     * 
+ * + * 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 results to return from this request.
+     * Non-positive
+     * values are ignored. The presence of nextPageToken in the response
+     * indicates that more results might be available.
+     * 
+ * + * 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 results to return from this request.
+     * Non-positive
+     * values are ignored. The presence of nextPageToken in the response
+     * indicates that more results might be available.
+     * 
+ * + * 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. If present, then retrieve the next batch of results from the
+     * preceding call to this method. pageToken must be the value of nextPageToken
+     * from the previous response. The values of other method parameters should be
+     * identical to those in the previous call.
+     * 
+ * + * 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. If present, then retrieve the next batch of results from the
+     * preceding call to this method. pageToken must be the value of nextPageToken
+     * from the previous response. The values of other method parameters should be
+     * identical to those in the previous call.
+     * 
+ * + * 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. If present, then retrieve the next batch of results from the
+     * preceding call to this method. pageToken must be the value of nextPageToken
+     * from the previous response. The values of other method parameters should be
+     * identical to those in the previous call.
+     * 
+ * + * 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. If present, then retrieve the next batch of results from the
+     * preceding call to this method. pageToken must be the value of nextPageToken
+     * from the previous response. The values of other method parameters should be
+     * identical to those in the previous call.
+     * 
+ * + * 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. If present, then retrieve the next batch of results from the
+     * preceding call to this method. pageToken must be the value of nextPageToken
+     * from the previous response. The values of other method parameters should be
+     * identical to those in the previous call.
+     * 
+ * + * 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; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
+     * Optional. A filter that chooses which components to return.
+     * 
+ * + * 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. A filter that chooses which components to return.
+     * 
+ * + * 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. A filter that chooses which components to return.
+     * 
+ * + * 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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A filter that chooses which components to return.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A filter that chooses which components to return.
+     * 
+ * + * 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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
+     * Optional. How the results should be sorted.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+     * Optional. How the results should be sorted.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+     * Optional. How the results should be sorted.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + + /** + * + * + *
+     * Optional. How the results should be sorted.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. How the results should be sorted.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ListComponentsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ListComponentsRequest) + private static final com.google.cloud.designcenter.v1.ListComponentsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.ListComponentsRequest(); + } + + public static com.google.cloud.designcenter.v1.ListComponentsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListComponentsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ListComponentsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListComponentsRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListComponentsRequestOrBuilder.java new file mode 100644 index 000000000000..bdd24b4a2aaf --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListComponentsRequestOrBuilder.java @@ -0,0 +1,160 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ListComponentsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ListComponentsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource from which the list of components is
+   * requested.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent resource from which the list of components is
+   * requested.
+   * 
+ * + * + * 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 results to return from this request.
+   * Non-positive
+   * values are ignored. The presence of nextPageToken in the response
+   * indicates that more results might be available.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. If present, then retrieve the next batch of results from the
+   * preceding call to this method. pageToken must be the value of nextPageToken
+   * from the previous response. The values of other method parameters should be
+   * identical to those in the previous call.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * Optional. If present, then retrieve the next batch of results from the
+   * preceding call to this method. pageToken must be the value of nextPageToken
+   * from the previous response. The values of other method parameters should be
+   * identical to those in the previous call.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional. A filter that chooses which components to return.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * Optional. A filter that chooses which components to return.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional. How the results should be sorted.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
+   * Optional. How the results should be sorted.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListComponentsResponse.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListComponentsResponse.java new file mode 100644 index 000000000000..9db0a83ab1ca --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListComponentsResponse.java @@ -0,0 +1,1418 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for response to listing components.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ListComponentsResponse} + */ +@com.google.protobuf.Generated +public final class ListComponentsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ListComponentsResponse) + ListComponentsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ListComponentsResponse"); + } + + // Use ListComponentsResponse.newBuilder() to construct. + private ListComponentsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListComponentsResponse() { + components_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListComponentsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListComponentsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ListComponentsResponse.class, + com.google.cloud.designcenter.v1.ListComponentsResponse.Builder.class); + } + + public static final int COMPONENTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List components_; + + /** + * + * + *
+   * The list of components.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Component components = 1; + */ + @java.lang.Override + public java.util.List getComponentsList() { + return components_; + } + + /** + * + * + *
+   * The list of components.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Component components = 1; + */ + @java.lang.Override + public java.util.List + getComponentsOrBuilderList() { + return components_; + } + + /** + * + * + *
+   * The list of components.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Component components = 1; + */ + @java.lang.Override + public int getComponentsCount() { + return components_.size(); + } + + /** + * + * + *
+   * The list of components.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Component components = 1; + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.Component getComponents(int index) { + return components_.get(index); + } + + /** + * + * + *
+   * The list of components.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Component components = 1; + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ComponentOrBuilder getComponentsOrBuilder(int index) { + return components_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * If there might be more results than those appearing in this response, then
+   * nextPageToken is included. To get the next set of results, call this method
+   * again using the value of nextPageToken as pageToken.
+   * 
+ * + * 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; + } + } + + /** + * + * + *
+   * If there might be more results than those appearing in this response, then
+   * nextPageToken is included. To get the next set of results, call this method
+   * again using the value of nextPageToken as pageToken.
+   * 
+ * + * 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 < components_.size(); i++) { + output.writeMessage(1, components_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessage.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 < components_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, components_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.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.designcenter.v1.ListComponentsResponse)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ListComponentsResponse other = + (com.google.cloud.designcenter.v1.ListComponentsResponse) obj; + + if (!getComponentsList().equals(other.getComponentsList())) 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 (getComponentsCount() > 0) { + hash = (37 * hash) + COMPONENTS_FIELD_NUMBER; + hash = (53 * hash) + getComponentsList().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.designcenter.v1.ListComponentsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListComponentsResponse 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.designcenter.v1.ListComponentsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListComponentsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListComponentsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListComponentsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListComponentsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListComponentsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListComponentsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListComponentsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListComponentsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListComponentsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ListComponentsResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for response to listing components.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ListComponentsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ListComponentsResponse) + com.google.cloud.designcenter.v1.ListComponentsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListComponentsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListComponentsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ListComponentsResponse.class, + com.google.cloud.designcenter.v1.ListComponentsResponse.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.ListComponentsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (componentsBuilder_ == null) { + components_ = java.util.Collections.emptyList(); + } else { + components_ = null; + componentsBuilder_.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.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListComponentsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListComponentsResponse getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ListComponentsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListComponentsResponse build() { + com.google.cloud.designcenter.v1.ListComponentsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListComponentsResponse buildPartial() { + com.google.cloud.designcenter.v1.ListComponentsResponse result = + new com.google.cloud.designcenter.v1.ListComponentsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.designcenter.v1.ListComponentsResponse result) { + if (componentsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + components_ = java.util.Collections.unmodifiableList(components_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.components_ = components_; + } else { + result.components_ = componentsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.designcenter.v1.ListComponentsResponse 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 mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.ListComponentsResponse) { + return mergeFrom((com.google.cloud.designcenter.v1.ListComponentsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.ListComponentsResponse other) { + if (other == com.google.cloud.designcenter.v1.ListComponentsResponse.getDefaultInstance()) + return this; + if (componentsBuilder_ == null) { + if (!other.components_.isEmpty()) { + if (components_.isEmpty()) { + components_ = other.components_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureComponentsIsMutable(); + components_.addAll(other.components_); + } + onChanged(); + } + } else { + if (!other.components_.isEmpty()) { + if (componentsBuilder_.isEmpty()) { + componentsBuilder_.dispose(); + componentsBuilder_ = null; + components_ = other.components_; + bitField0_ = (bitField0_ & ~0x00000001); + componentsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetComponentsFieldBuilder() + : null; + } else { + componentsBuilder_.addAllMessages(other.components_); + } + } + } + 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.designcenter.v1.Component m = + input.readMessage( + com.google.cloud.designcenter.v1.Component.parser(), extensionRegistry); + if (componentsBuilder_ == null) { + ensureComponentsIsMutable(); + components_.add(m); + } else { + componentsBuilder_.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 components_ = + java.util.Collections.emptyList(); + + private void ensureComponentsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + components_ = + new java.util.ArrayList(components_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Component, + com.google.cloud.designcenter.v1.Component.Builder, + com.google.cloud.designcenter.v1.ComponentOrBuilder> + componentsBuilder_; + + /** + * + * + *
+     * The list of components.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Component components = 1; + */ + public java.util.List getComponentsList() { + if (componentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(components_); + } else { + return componentsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The list of components.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Component components = 1; + */ + public int getComponentsCount() { + if (componentsBuilder_ == null) { + return components_.size(); + } else { + return componentsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The list of components.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Component components = 1; + */ + public com.google.cloud.designcenter.v1.Component getComponents(int index) { + if (componentsBuilder_ == null) { + return components_.get(index); + } else { + return componentsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The list of components.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Component components = 1; + */ + public Builder setComponents(int index, com.google.cloud.designcenter.v1.Component value) { + if (componentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureComponentsIsMutable(); + components_.set(index, value); + onChanged(); + } else { + componentsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of components.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Component components = 1; + */ + public Builder setComponents( + int index, com.google.cloud.designcenter.v1.Component.Builder builderForValue) { + if (componentsBuilder_ == null) { + ensureComponentsIsMutable(); + components_.set(index, builderForValue.build()); + onChanged(); + } else { + componentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of components.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Component components = 1; + */ + public Builder addComponents(com.google.cloud.designcenter.v1.Component value) { + if (componentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureComponentsIsMutable(); + components_.add(value); + onChanged(); + } else { + componentsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The list of components.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Component components = 1; + */ + public Builder addComponents(int index, com.google.cloud.designcenter.v1.Component value) { + if (componentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureComponentsIsMutable(); + components_.add(index, value); + onChanged(); + } else { + componentsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of components.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Component components = 1; + */ + public Builder addComponents( + com.google.cloud.designcenter.v1.Component.Builder builderForValue) { + if (componentsBuilder_ == null) { + ensureComponentsIsMutable(); + components_.add(builderForValue.build()); + onChanged(); + } else { + componentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of components.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Component components = 1; + */ + public Builder addComponents( + int index, com.google.cloud.designcenter.v1.Component.Builder builderForValue) { + if (componentsBuilder_ == null) { + ensureComponentsIsMutable(); + components_.add(index, builderForValue.build()); + onChanged(); + } else { + componentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of components.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Component components = 1; + */ + public Builder addAllComponents( + java.lang.Iterable values) { + if (componentsBuilder_ == null) { + ensureComponentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, components_); + onChanged(); + } else { + componentsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The list of components.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Component components = 1; + */ + public Builder clearComponents() { + if (componentsBuilder_ == null) { + components_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + componentsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The list of components.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Component components = 1; + */ + public Builder removeComponents(int index) { + if (componentsBuilder_ == null) { + ensureComponentsIsMutable(); + components_.remove(index); + onChanged(); + } else { + componentsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The list of components.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Component components = 1; + */ + public com.google.cloud.designcenter.v1.Component.Builder getComponentsBuilder(int index) { + return internalGetComponentsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The list of components.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Component components = 1; + */ + public com.google.cloud.designcenter.v1.ComponentOrBuilder getComponentsOrBuilder(int index) { + if (componentsBuilder_ == null) { + return components_.get(index); + } else { + return componentsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The list of components.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Component components = 1; + */ + public java.util.List + getComponentsOrBuilderList() { + if (componentsBuilder_ != null) { + return componentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(components_); + } + } + + /** + * + * + *
+     * The list of components.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Component components = 1; + */ + public com.google.cloud.designcenter.v1.Component.Builder addComponentsBuilder() { + return internalGetComponentsFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.Component.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of components.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Component components = 1; + */ + public com.google.cloud.designcenter.v1.Component.Builder addComponentsBuilder(int index) { + return internalGetComponentsFieldBuilder() + .addBuilder(index, com.google.cloud.designcenter.v1.Component.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of components.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Component components = 1; + */ + public java.util.List + getComponentsBuilderList() { + return internalGetComponentsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Component, + com.google.cloud.designcenter.v1.Component.Builder, + com.google.cloud.designcenter.v1.ComponentOrBuilder> + internalGetComponentsFieldBuilder() { + if (componentsBuilder_ == null) { + componentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Component, + com.google.cloud.designcenter.v1.Component.Builder, + com.google.cloud.designcenter.v1.ComponentOrBuilder>( + components_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + components_ = null; + } + return componentsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * If there might be more results than those appearing in this response, then
+     * nextPageToken is included. To get the next set of results, call this method
+     * again using the value of nextPageToken as pageToken.
+     * 
+ * + * 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; + } + } + + /** + * + * + *
+     * If there might be more results than those appearing in this response, then
+     * nextPageToken is included. To get the next set of results, call this method
+     * again using the value of nextPageToken as pageToken.
+     * 
+ * + * 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; + } + } + + /** + * + * + *
+     * If there might be more results than those appearing in this response, then
+     * nextPageToken is included. To get the next set of results, call this method
+     * again using the value of nextPageToken as pageToken.
+     * 
+ * + * 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; + } + + /** + * + * + *
+     * If there might be more results than those appearing in this response, then
+     * nextPageToken is included. To get the next set of results, call this method
+     * again using the value of nextPageToken as pageToken.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * If there might be more results than those appearing in this response, then
+     * nextPageToken is included. To get the next set of results, call this method
+     * again using the value of nextPageToken as pageToken.
+     * 
+ * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ListComponentsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ListComponentsResponse) + private static final com.google.cloud.designcenter.v1.ListComponentsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.ListComponentsResponse(); + } + + public static com.google.cloud.designcenter.v1.ListComponentsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListComponentsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ListComponentsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListComponentsResponseOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListComponentsResponseOrBuilder.java new file mode 100644 index 000000000000..72cb04abdda2 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListComponentsResponseOrBuilder.java @@ -0,0 +1,168 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ListComponentsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ListComponentsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of components.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Component components = 1; + */ + java.util.List getComponentsList(); + + /** + * + * + *
+   * The list of components.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Component components = 1; + */ + com.google.cloud.designcenter.v1.Component getComponents(int index); + + /** + * + * + *
+   * The list of components.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Component components = 1; + */ + int getComponentsCount(); + + /** + * + * + *
+   * The list of components.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Component components = 1; + */ + java.util.List + getComponentsOrBuilderList(); + + /** + * + * + *
+   * The list of components.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Component components = 1; + */ + com.google.cloud.designcenter.v1.ComponentOrBuilder getComponentsOrBuilder(int index); + + /** + * + * + *
+   * If there might be more results than those appearing in this response, then
+   * nextPageToken is included. To get the next set of results, call this method
+   * again using the value of nextPageToken as pageToken.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * If there might be more results than those appearing in this response, then
+   * nextPageToken is included. To get the next set of results, call this method
+   * again using the value of nextPageToken as pageToken.
+   * 
+ * + * 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-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListConnectionsRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListConnectionsRequest.java new file mode 100644 index 000000000000..06e5fd7d5059 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListConnectionsRequest.java @@ -0,0 +1,1304 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for requesting a list of connections.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ListConnectionsRequest} + */ +@com.google.protobuf.Generated +public final class ListConnectionsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ListConnectionsRequest) + ListConnectionsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ListConnectionsRequest"); + } + + // Use ListConnectionsRequest.newBuilder() to construct. + private ListConnectionsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListConnectionsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListConnectionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListConnectionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ListConnectionsRequest.class, + com.google.cloud.designcenter.v1.ListConnectionsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent resource from which to request a list of connections.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The parent resource from which to request a list of connections.
+   * 
+ * + * + * 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 results to return from this request.
+   * Non-positive values are ignored. The presence of nextPageToken in the
+   * response indicates that more results might be available.
+   * 
+ * + * 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. If present, then retrieve the next batch of results from the
+   * preceding call to this method. pageToken must be the value of nextPageToken
+   * from the previous response. The values of other method parameters should be
+   * identical to those in the previous call.
+   * 
+ * + * 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. If present, then retrieve the next batch of results from the
+   * preceding call to this method. pageToken must be the value of nextPageToken
+   * from the previous response. The values of other method parameters should be
+   * identical to those in the previous call.
+   * 
+ * + * 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; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
+   * Optional. A filter that chooses which connections to return.
+   * 
+ * + * 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. A filter that chooses which connections to return.
+   * 
+ * + * 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 ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
+   * Optional. How the results should be sorted.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+   * Optional. How the results should be sorted.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessage.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.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessage.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.designcenter.v1.ListConnectionsRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ListConnectionsRequest other = + (com.google.cloud.designcenter.v1.ListConnectionsRequest) 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.designcenter.v1.ListConnectionsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListConnectionsRequest 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.designcenter.v1.ListConnectionsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListConnectionsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListConnectionsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListConnectionsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListConnectionsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListConnectionsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListConnectionsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListConnectionsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListConnectionsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListConnectionsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ListConnectionsRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for requesting a list of connections.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ListConnectionsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ListConnectionsRequest) + com.google.cloud.designcenter.v1.ListConnectionsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListConnectionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListConnectionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ListConnectionsRequest.class, + com.google.cloud.designcenter.v1.ListConnectionsRequest.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.ListConnectionsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.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.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListConnectionsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListConnectionsRequest getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ListConnectionsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListConnectionsRequest build() { + com.google.cloud.designcenter.v1.ListConnectionsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListConnectionsRequest buildPartial() { + com.google.cloud.designcenter.v1.ListConnectionsRequest result = + new com.google.cloud.designcenter.v1.ListConnectionsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.ListConnectionsRequest 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 mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.ListConnectionsRequest) { + return mergeFrom((com.google.cloud.designcenter.v1.ListConnectionsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.ListConnectionsRequest other) { + if (other == com.google.cloud.designcenter.v1.ListConnectionsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent resource from which to request a list of connections.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The parent resource from which to request a list of connections.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The parent resource from which to request a list of connections.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource from which to request a list of connections.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource from which to request a list of connections.
+     * 
+ * + * + * 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 results to return from this request.
+     * Non-positive values are ignored. The presence of nextPageToken in the
+     * response indicates that more results might be available.
+     * 
+ * + * 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 results to return from this request.
+     * Non-positive values are ignored. The presence of nextPageToken in the
+     * response indicates that more results might be available.
+     * 
+ * + * 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 results to return from this request.
+     * Non-positive values are ignored. The presence of nextPageToken in the
+     * response indicates that more results might be available.
+     * 
+ * + * 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. If present, then retrieve the next batch of results from the
+     * preceding call to this method. pageToken must be the value of nextPageToken
+     * from the previous response. The values of other method parameters should be
+     * identical to those in the previous call.
+     * 
+ * + * 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. If present, then retrieve the next batch of results from the
+     * preceding call to this method. pageToken must be the value of nextPageToken
+     * from the previous response. The values of other method parameters should be
+     * identical to those in the previous call.
+     * 
+ * + * 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. If present, then retrieve the next batch of results from the
+     * preceding call to this method. pageToken must be the value of nextPageToken
+     * from the previous response. The values of other method parameters should be
+     * identical to those in the previous call.
+     * 
+ * + * 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. If present, then retrieve the next batch of results from the
+     * preceding call to this method. pageToken must be the value of nextPageToken
+     * from the previous response. The values of other method parameters should be
+     * identical to those in the previous call.
+     * 
+ * + * 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. If present, then retrieve the next batch of results from the
+     * preceding call to this method. pageToken must be the value of nextPageToken
+     * from the previous response. The values of other method parameters should be
+     * identical to those in the previous call.
+     * 
+ * + * 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; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
+     * Optional. A filter that chooses which connections to return.
+     * 
+ * + * 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. A filter that chooses which connections to return.
+     * 
+ * + * 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. A filter that chooses which connections to return.
+     * 
+ * + * 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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A filter that chooses which connections to return.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A filter that chooses which connections to return.
+     * 
+ * + * 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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
+     * Optional. How the results should be sorted.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+     * Optional. How the results should be sorted.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+     * Optional. How the results should be sorted.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + + /** + * + * + *
+     * Optional. How the results should be sorted.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. How the results should be sorted.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ListConnectionsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ListConnectionsRequest) + private static final com.google.cloud.designcenter.v1.ListConnectionsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.ListConnectionsRequest(); + } + + public static com.google.cloud.designcenter.v1.ListConnectionsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListConnectionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ListConnectionsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListConnectionsRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListConnectionsRequestOrBuilder.java new file mode 100644 index 000000000000..67b3468ffbce --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListConnectionsRequestOrBuilder.java @@ -0,0 +1,157 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ListConnectionsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ListConnectionsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource from which to request a list of connections.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent resource from which to request a list of connections.
+   * 
+ * + * + * 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 results to return from this request.
+   * Non-positive values are ignored. The presence of nextPageToken in the
+   * response indicates that more results might be available.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. If present, then retrieve the next batch of results from the
+   * preceding call to this method. pageToken must be the value of nextPageToken
+   * from the previous response. The values of other method parameters should be
+   * identical to those in the previous call.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * Optional. If present, then retrieve the next batch of results from the
+   * preceding call to this method. pageToken must be the value of nextPageToken
+   * from the previous response. The values of other method parameters should be
+   * identical to those in the previous call.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional. A filter that chooses which connections to return.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * Optional. A filter that chooses which connections to return.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional. How the results should be sorted.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
+   * Optional. How the results should be sorted.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListConnectionsResponse.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListConnectionsResponse.java new file mode 100644 index 000000000000..0008062bd236 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListConnectionsResponse.java @@ -0,0 +1,1418 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for response to listing connections.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ListConnectionsResponse} + */ +@com.google.protobuf.Generated +public final class ListConnectionsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ListConnectionsResponse) + ListConnectionsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ListConnectionsResponse"); + } + + // Use ListConnectionsResponse.newBuilder() to construct. + private ListConnectionsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListConnectionsResponse() { + connections_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListConnectionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListConnectionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ListConnectionsResponse.class, + com.google.cloud.designcenter.v1.ListConnectionsResponse.Builder.class); + } + + public static final int CONNECTIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List connections_; + + /** + * + * + *
+   * The list of connections.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Connection connections = 1; + */ + @java.lang.Override + public java.util.List getConnectionsList() { + return connections_; + } + + /** + * + * + *
+   * The list of connections.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Connection connections = 1; + */ + @java.lang.Override + public java.util.List + getConnectionsOrBuilderList() { + return connections_; + } + + /** + * + * + *
+   * The list of connections.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Connection connections = 1; + */ + @java.lang.Override + public int getConnectionsCount() { + return connections_.size(); + } + + /** + * + * + *
+   * The list of connections.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Connection connections = 1; + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.Connection getConnections(int index) { + return connections_.get(index); + } + + /** + * + * + *
+   * The list of connections.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Connection connections = 1; + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ConnectionOrBuilder getConnectionsOrBuilder(int index) { + return connections_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * If there might be more results than those appearing in this response, then
+   * nextPageToken is included. To get the next set of results, call this method
+   * again using the value of nextPageToken as pageToken.
+   * 
+ * + * 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; + } + } + + /** + * + * + *
+   * If there might be more results than those appearing in this response, then
+   * nextPageToken is included. To get the next set of results, call this method
+   * again using the value of nextPageToken as pageToken.
+   * 
+ * + * 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 < connections_.size(); i++) { + output.writeMessage(1, connections_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessage.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 < connections_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, connections_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.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.designcenter.v1.ListConnectionsResponse)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ListConnectionsResponse other = + (com.google.cloud.designcenter.v1.ListConnectionsResponse) obj; + + if (!getConnectionsList().equals(other.getConnectionsList())) 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 (getConnectionsCount() > 0) { + hash = (37 * hash) + CONNECTIONS_FIELD_NUMBER; + hash = (53 * hash) + getConnectionsList().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.designcenter.v1.ListConnectionsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListConnectionsResponse 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.designcenter.v1.ListConnectionsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListConnectionsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListConnectionsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListConnectionsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListConnectionsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListConnectionsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListConnectionsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListConnectionsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListConnectionsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListConnectionsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ListConnectionsResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for response to listing connections.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ListConnectionsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ListConnectionsResponse) + com.google.cloud.designcenter.v1.ListConnectionsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListConnectionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListConnectionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ListConnectionsResponse.class, + com.google.cloud.designcenter.v1.ListConnectionsResponse.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.ListConnectionsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (connectionsBuilder_ == null) { + connections_ = java.util.Collections.emptyList(); + } else { + connections_ = null; + connectionsBuilder_.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.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListConnectionsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListConnectionsResponse getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ListConnectionsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListConnectionsResponse build() { + com.google.cloud.designcenter.v1.ListConnectionsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListConnectionsResponse buildPartial() { + com.google.cloud.designcenter.v1.ListConnectionsResponse result = + new com.google.cloud.designcenter.v1.ListConnectionsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.designcenter.v1.ListConnectionsResponse result) { + if (connectionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + connections_ = java.util.Collections.unmodifiableList(connections_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.connections_ = connections_; + } else { + result.connections_ = connectionsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.designcenter.v1.ListConnectionsResponse 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 mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.ListConnectionsResponse) { + return mergeFrom((com.google.cloud.designcenter.v1.ListConnectionsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.ListConnectionsResponse other) { + if (other == com.google.cloud.designcenter.v1.ListConnectionsResponse.getDefaultInstance()) + return this; + if (connectionsBuilder_ == null) { + if (!other.connections_.isEmpty()) { + if (connections_.isEmpty()) { + connections_ = other.connections_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureConnectionsIsMutable(); + connections_.addAll(other.connections_); + } + onChanged(); + } + } else { + if (!other.connections_.isEmpty()) { + if (connectionsBuilder_.isEmpty()) { + connectionsBuilder_.dispose(); + connectionsBuilder_ = null; + connections_ = other.connections_; + bitField0_ = (bitField0_ & ~0x00000001); + connectionsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetConnectionsFieldBuilder() + : null; + } else { + connectionsBuilder_.addAllMessages(other.connections_); + } + } + } + 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.designcenter.v1.Connection m = + input.readMessage( + com.google.cloud.designcenter.v1.Connection.parser(), extensionRegistry); + if (connectionsBuilder_ == null) { + ensureConnectionsIsMutable(); + connections_.add(m); + } else { + connectionsBuilder_.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 connections_ = + java.util.Collections.emptyList(); + + private void ensureConnectionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + connections_ = + new java.util.ArrayList(connections_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Connection, + com.google.cloud.designcenter.v1.Connection.Builder, + com.google.cloud.designcenter.v1.ConnectionOrBuilder> + connectionsBuilder_; + + /** + * + * + *
+     * The list of connections.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Connection connections = 1; + */ + public java.util.List getConnectionsList() { + if (connectionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(connections_); + } else { + return connectionsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The list of connections.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Connection connections = 1; + */ + public int getConnectionsCount() { + if (connectionsBuilder_ == null) { + return connections_.size(); + } else { + return connectionsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The list of connections.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Connection connections = 1; + */ + public com.google.cloud.designcenter.v1.Connection getConnections(int index) { + if (connectionsBuilder_ == null) { + return connections_.get(index); + } else { + return connectionsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The list of connections.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Connection connections = 1; + */ + public Builder setConnections(int index, com.google.cloud.designcenter.v1.Connection value) { + if (connectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConnectionsIsMutable(); + connections_.set(index, value); + onChanged(); + } else { + connectionsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of connections.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Connection connections = 1; + */ + public Builder setConnections( + int index, com.google.cloud.designcenter.v1.Connection.Builder builderForValue) { + if (connectionsBuilder_ == null) { + ensureConnectionsIsMutable(); + connections_.set(index, builderForValue.build()); + onChanged(); + } else { + connectionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of connections.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Connection connections = 1; + */ + public Builder addConnections(com.google.cloud.designcenter.v1.Connection value) { + if (connectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConnectionsIsMutable(); + connections_.add(value); + onChanged(); + } else { + connectionsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The list of connections.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Connection connections = 1; + */ + public Builder addConnections(int index, com.google.cloud.designcenter.v1.Connection value) { + if (connectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConnectionsIsMutable(); + connections_.add(index, value); + onChanged(); + } else { + connectionsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of connections.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Connection connections = 1; + */ + public Builder addConnections( + com.google.cloud.designcenter.v1.Connection.Builder builderForValue) { + if (connectionsBuilder_ == null) { + ensureConnectionsIsMutable(); + connections_.add(builderForValue.build()); + onChanged(); + } else { + connectionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of connections.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Connection connections = 1; + */ + public Builder addConnections( + int index, com.google.cloud.designcenter.v1.Connection.Builder builderForValue) { + if (connectionsBuilder_ == null) { + ensureConnectionsIsMutable(); + connections_.add(index, builderForValue.build()); + onChanged(); + } else { + connectionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of connections.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Connection connections = 1; + */ + public Builder addAllConnections( + java.lang.Iterable values) { + if (connectionsBuilder_ == null) { + ensureConnectionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, connections_); + onChanged(); + } else { + connectionsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The list of connections.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Connection connections = 1; + */ + public Builder clearConnections() { + if (connectionsBuilder_ == null) { + connections_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + connectionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The list of connections.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Connection connections = 1; + */ + public Builder removeConnections(int index) { + if (connectionsBuilder_ == null) { + ensureConnectionsIsMutable(); + connections_.remove(index); + onChanged(); + } else { + connectionsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The list of connections.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Connection connections = 1; + */ + public com.google.cloud.designcenter.v1.Connection.Builder getConnectionsBuilder(int index) { + return internalGetConnectionsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The list of connections.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Connection connections = 1; + */ + public com.google.cloud.designcenter.v1.ConnectionOrBuilder getConnectionsOrBuilder(int index) { + if (connectionsBuilder_ == null) { + return connections_.get(index); + } else { + return connectionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The list of connections.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Connection connections = 1; + */ + public java.util.List + getConnectionsOrBuilderList() { + if (connectionsBuilder_ != null) { + return connectionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(connections_); + } + } + + /** + * + * + *
+     * The list of connections.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Connection connections = 1; + */ + public com.google.cloud.designcenter.v1.Connection.Builder addConnectionsBuilder() { + return internalGetConnectionsFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.Connection.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of connections.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Connection connections = 1; + */ + public com.google.cloud.designcenter.v1.Connection.Builder addConnectionsBuilder(int index) { + return internalGetConnectionsFieldBuilder() + .addBuilder(index, com.google.cloud.designcenter.v1.Connection.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of connections.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Connection connections = 1; + */ + public java.util.List + getConnectionsBuilderList() { + return internalGetConnectionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Connection, + com.google.cloud.designcenter.v1.Connection.Builder, + com.google.cloud.designcenter.v1.ConnectionOrBuilder> + internalGetConnectionsFieldBuilder() { + if (connectionsBuilder_ == null) { + connectionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Connection, + com.google.cloud.designcenter.v1.Connection.Builder, + com.google.cloud.designcenter.v1.ConnectionOrBuilder>( + connections_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + connections_ = null; + } + return connectionsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * If there might be more results than those appearing in this response, then
+     * nextPageToken is included. To get the next set of results, call this method
+     * again using the value of nextPageToken as pageToken.
+     * 
+ * + * 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; + } + } + + /** + * + * + *
+     * If there might be more results than those appearing in this response, then
+     * nextPageToken is included. To get the next set of results, call this method
+     * again using the value of nextPageToken as pageToken.
+     * 
+ * + * 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; + } + } + + /** + * + * + *
+     * If there might be more results than those appearing in this response, then
+     * nextPageToken is included. To get the next set of results, call this method
+     * again using the value of nextPageToken as pageToken.
+     * 
+ * + * 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; + } + + /** + * + * + *
+     * If there might be more results than those appearing in this response, then
+     * nextPageToken is included. To get the next set of results, call this method
+     * again using the value of nextPageToken as pageToken.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * If there might be more results than those appearing in this response, then
+     * nextPageToken is included. To get the next set of results, call this method
+     * again using the value of nextPageToken as pageToken.
+     * 
+ * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ListConnectionsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ListConnectionsResponse) + private static final com.google.cloud.designcenter.v1.ListConnectionsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.ListConnectionsResponse(); + } + + public static com.google.cloud.designcenter.v1.ListConnectionsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListConnectionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ListConnectionsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListConnectionsResponseOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListConnectionsResponseOrBuilder.java new file mode 100644 index 000000000000..ab9996d4c978 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListConnectionsResponseOrBuilder.java @@ -0,0 +1,168 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ListConnectionsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ListConnectionsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of connections.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Connection connections = 1; + */ + java.util.List getConnectionsList(); + + /** + * + * + *
+   * The list of connections.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Connection connections = 1; + */ + com.google.cloud.designcenter.v1.Connection getConnections(int index); + + /** + * + * + *
+   * The list of connections.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Connection connections = 1; + */ + int getConnectionsCount(); + + /** + * + * + *
+   * The list of connections.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Connection connections = 1; + */ + java.util.List + getConnectionsOrBuilderList(); + + /** + * + * + *
+   * The list of connections.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Connection connections = 1; + */ + com.google.cloud.designcenter.v1.ConnectionOrBuilder getConnectionsOrBuilder(int index); + + /** + * + * + *
+   * If there might be more results than those appearing in this response, then
+   * nextPageToken is included. To get the next set of results, call this method
+   * again using the value of nextPageToken as pageToken.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * If there might be more results than those appearing in this response, then
+   * nextPageToken is included. To get the next set of results, call this method
+   * again using the value of nextPageToken as pageToken.
+   * 
+ * + * 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-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListPoliciesRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListPoliciesRequest.java new file mode 100644 index 000000000000..920e3a39b515 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListPoliciesRequest.java @@ -0,0 +1,1317 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/best_practices_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for requesting a list of policies.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ListPoliciesRequest} + */ +@com.google.protobuf.Generated +public final class ListPoliciesRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ListPoliciesRequest) + ListPoliciesRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ListPoliciesRequest"); + } + + // Use ListPoliciesRequest.newBuilder() to construct. + private ListPoliciesRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListPoliciesRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListPoliciesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListPoliciesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ListPoliciesRequest.class, + com.google.cloud.designcenter.v1.ListPoliciesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent application template from which policies are listed in
+   * the following format:
+   * `projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The parent application template from which policies are listed in
+   * the following format:
+   * `projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate`
+   * 
+ * + * + * 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 results to return from this request.
+   * Non-positive values are ignored. The presence of nextPageToken in the
+   * response indicates that more results might be available.
+   * 
+ * + * 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. If present, retrieve the next batch of results from the preceding
+   * call to this method. pageToken must be the value of nextPageToken from the
+   * previous response. The values of other method parameters should be
+   * identical to those in the previous call.
+   * 
+ * + * 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. If present, retrieve the next batch of results from the preceding
+   * call to this method. pageToken must be the value of nextPageToken from the
+   * previous response. The values of other method parameters should be
+   * identical to those in the previous call.
+   * 
+ * + * 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; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
+   * Optional. A filter that chooses which policies to return.
+   * 
+ * + * 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. A filter that chooses which policies to return.
+   * 
+ * + * 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 ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
+   * Optional. How the results should be sorted.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+   * Optional. How the results should be sorted.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessage.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.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessage.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.designcenter.v1.ListPoliciesRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ListPoliciesRequest other = + (com.google.cloud.designcenter.v1.ListPoliciesRequest) 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.designcenter.v1.ListPoliciesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListPoliciesRequest 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.designcenter.v1.ListPoliciesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListPoliciesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListPoliciesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListPoliciesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListPoliciesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListPoliciesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListPoliciesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListPoliciesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListPoliciesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListPoliciesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ListPoliciesRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for requesting a list of policies.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ListPoliciesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ListPoliciesRequest) + com.google.cloud.designcenter.v1.ListPoliciesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListPoliciesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListPoliciesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ListPoliciesRequest.class, + com.google.cloud.designcenter.v1.ListPoliciesRequest.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.ListPoliciesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.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.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListPoliciesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListPoliciesRequest getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ListPoliciesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListPoliciesRequest build() { + com.google.cloud.designcenter.v1.ListPoliciesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListPoliciesRequest buildPartial() { + com.google.cloud.designcenter.v1.ListPoliciesRequest result = + new com.google.cloud.designcenter.v1.ListPoliciesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.ListPoliciesRequest 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 mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.ListPoliciesRequest) { + return mergeFrom((com.google.cloud.designcenter.v1.ListPoliciesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.ListPoliciesRequest other) { + if (other == com.google.cloud.designcenter.v1.ListPoliciesRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent application template from which policies are listed in
+     * the following format:
+     * `projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The parent application template from which policies are listed in
+     * the following format:
+     * `projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The parent application template from which policies are listed in
+     * the following format:
+     * `projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent application template from which policies are listed in
+     * the following format:
+     * `projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent application template from which policies are listed in
+     * the following format:
+     * `projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate`
+     * 
+ * + * + * 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 results to return from this request.
+     * Non-positive values are ignored. The presence of nextPageToken in the
+     * response indicates that more results might be available.
+     * 
+ * + * 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 results to return from this request.
+     * Non-positive values are ignored. The presence of nextPageToken in the
+     * response indicates that more results might be available.
+     * 
+ * + * 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 results to return from this request.
+     * Non-positive values are ignored. The presence of nextPageToken in the
+     * response indicates that more results might be available.
+     * 
+ * + * 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. If present, retrieve the next batch of results from the preceding
+     * call to this method. pageToken must be the value of nextPageToken from the
+     * previous response. The values of other method parameters should be
+     * identical to those in the previous call.
+     * 
+ * + * 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. If present, retrieve the next batch of results from the preceding
+     * call to this method. pageToken must be the value of nextPageToken from the
+     * previous response. The values of other method parameters should be
+     * identical to those in the previous call.
+     * 
+ * + * 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. If present, retrieve the next batch of results from the preceding
+     * call to this method. pageToken must be the value of nextPageToken from the
+     * previous response. The values of other method parameters should be
+     * identical to those in the previous call.
+     * 
+ * + * 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. If present, retrieve the next batch of results from the preceding
+     * call to this method. pageToken must be the value of nextPageToken from the
+     * previous response. The values of other method parameters should be
+     * identical to those in the previous call.
+     * 
+ * + * 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. If present, retrieve the next batch of results from the preceding
+     * call to this method. pageToken must be the value of nextPageToken from the
+     * previous response. The values of other method parameters should be
+     * identical to those in the previous call.
+     * 
+ * + * 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; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
+     * Optional. A filter that chooses which policies to return.
+     * 
+ * + * 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. A filter that chooses which policies to return.
+     * 
+ * + * 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. A filter that chooses which policies to return.
+     * 
+ * + * 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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A filter that chooses which policies to return.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A filter that chooses which policies to return.
+     * 
+ * + * 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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
+     * Optional. How the results should be sorted.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+     * Optional. How the results should be sorted.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+     * Optional. How the results should be sorted.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + + /** + * + * + *
+     * Optional. How the results should be sorted.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. How the results should be sorted.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ListPoliciesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ListPoliciesRequest) + private static final com.google.cloud.designcenter.v1.ListPoliciesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.ListPoliciesRequest(); + } + + public static com.google.cloud.designcenter.v1.ListPoliciesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPoliciesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ListPoliciesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListPoliciesRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListPoliciesRequestOrBuilder.java new file mode 100644 index 000000000000..b986533be292 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListPoliciesRequestOrBuilder.java @@ -0,0 +1,161 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/best_practices_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ListPoliciesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ListPoliciesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent application template from which policies are listed in
+   * the following format:
+   * `projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent application template from which policies are listed in
+   * the following format:
+   * `projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate`
+   * 
+ * + * + * 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 results to return from this request.
+   * Non-positive values are ignored. The presence of nextPageToken in the
+   * response indicates that more results might be available.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. If present, retrieve the next batch of results from the preceding
+   * call to this method. pageToken must be the value of nextPageToken from the
+   * previous response. The values of other method parameters should be
+   * identical to those in the previous call.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * Optional. If present, retrieve the next batch of results from the preceding
+   * call to this method. pageToken must be the value of nextPageToken from the
+   * previous response. The values of other method parameters should be
+   * identical to those in the previous call.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional. A filter that chooses which policies to return.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * Optional. A filter that chooses which policies to return.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional. How the results should be sorted.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
+   * Optional. How the results should be sorted.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListPoliciesResponse.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListPoliciesResponse.java new file mode 100644 index 000000000000..82469adc005e --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListPoliciesResponse.java @@ -0,0 +1,1126 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/best_practices_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for response to listing policies.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ListPoliciesResponse} + */ +@com.google.protobuf.Generated +public final class ListPoliciesResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ListPoliciesResponse) + ListPoliciesResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ListPoliciesResponse"); + } + + // Use ListPoliciesResponse.newBuilder() to construct. + private ListPoliciesResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListPoliciesResponse() { + policies_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListPoliciesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListPoliciesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ListPoliciesResponse.class, + com.google.cloud.designcenter.v1.ListPoliciesResponse.Builder.class); + } + + public static final int POLICIES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List policies_; + + /** + * + * + *
+   * A list of policies.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Policy policies = 1; + */ + @java.lang.Override + public java.util.List getPoliciesList() { + return policies_; + } + + /** + * + * + *
+   * A list of policies.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Policy policies = 1; + */ + @java.lang.Override + public java.util.List + getPoliciesOrBuilderList() { + return policies_; + } + + /** + * + * + *
+   * A list of policies.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Policy policies = 1; + */ + @java.lang.Override + public int getPoliciesCount() { + return policies_.size(); + } + + /** + * + * + *
+   * A list of policies.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Policy policies = 1; + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.Policy getPolicies(int index) { + return policies_.get(index); + } + + /** + * + * + *
+   * A list of policies.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Policy policies = 1; + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.PolicyOrBuilder getPoliciesOrBuilder(int index) { + return policies_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * If there might be more results than those appearing in this response, then
+   * nextPageToken is included. To get the next set of results, call this method
+   * again using the value of nextPageToken as pageToken.
+   * 
+ * + * 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; + } + } + + /** + * + * + *
+   * If there might be more results than those appearing in this response, then
+   * nextPageToken is included. To get the next set of results, call this method
+   * again using the value of nextPageToken as pageToken.
+   * 
+ * + * 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 < policies_.size(); i++) { + output.writeMessage(1, policies_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.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 < policies_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, policies_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.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.designcenter.v1.ListPoliciesResponse)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ListPoliciesResponse other = + (com.google.cloud.designcenter.v1.ListPoliciesResponse) obj; + + if (!getPoliciesList().equals(other.getPoliciesList())) 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 (getPoliciesCount() > 0) { + hash = (37 * hash) + POLICIES_FIELD_NUMBER; + hash = (53 * hash) + getPoliciesList().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.designcenter.v1.ListPoliciesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListPoliciesResponse 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.designcenter.v1.ListPoliciesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListPoliciesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListPoliciesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListPoliciesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListPoliciesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListPoliciesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListPoliciesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListPoliciesResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListPoliciesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListPoliciesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ListPoliciesResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for response to listing policies.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ListPoliciesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ListPoliciesResponse) + com.google.cloud.designcenter.v1.ListPoliciesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListPoliciesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListPoliciesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ListPoliciesResponse.class, + com.google.cloud.designcenter.v1.ListPoliciesResponse.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.ListPoliciesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (policiesBuilder_ == null) { + policies_ = java.util.Collections.emptyList(); + } else { + policies_ = null; + policiesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListPoliciesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListPoliciesResponse getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ListPoliciesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListPoliciesResponse build() { + com.google.cloud.designcenter.v1.ListPoliciesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListPoliciesResponse buildPartial() { + com.google.cloud.designcenter.v1.ListPoliciesResponse result = + new com.google.cloud.designcenter.v1.ListPoliciesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.designcenter.v1.ListPoliciesResponse result) { + if (policiesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + policies_ = java.util.Collections.unmodifiableList(policies_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.policies_ = policies_; + } else { + result.policies_ = policiesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.designcenter.v1.ListPoliciesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.ListPoliciesResponse) { + return mergeFrom((com.google.cloud.designcenter.v1.ListPoliciesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.ListPoliciesResponse other) { + if (other == com.google.cloud.designcenter.v1.ListPoliciesResponse.getDefaultInstance()) + return this; + if (policiesBuilder_ == null) { + if (!other.policies_.isEmpty()) { + if (policies_.isEmpty()) { + policies_ = other.policies_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePoliciesIsMutable(); + policies_.addAll(other.policies_); + } + onChanged(); + } + } else { + if (!other.policies_.isEmpty()) { + if (policiesBuilder_.isEmpty()) { + policiesBuilder_.dispose(); + policiesBuilder_ = null; + policies_ = other.policies_; + bitField0_ = (bitField0_ & ~0x00000001); + policiesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetPoliciesFieldBuilder() + : null; + } else { + policiesBuilder_.addAllMessages(other.policies_); + } + } + } + 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.designcenter.v1.Policy m = + input.readMessage( + com.google.cloud.designcenter.v1.Policy.parser(), extensionRegistry); + if (policiesBuilder_ == null) { + ensurePoliciesIsMutable(); + policies_.add(m); + } else { + policiesBuilder_.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 policies_ = + java.util.Collections.emptyList(); + + private void ensurePoliciesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + policies_ = new java.util.ArrayList(policies_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Policy, + com.google.cloud.designcenter.v1.Policy.Builder, + com.google.cloud.designcenter.v1.PolicyOrBuilder> + policiesBuilder_; + + /** + * + * + *
+     * A list of policies.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Policy policies = 1; + */ + public java.util.List getPoliciesList() { + if (policiesBuilder_ == null) { + return java.util.Collections.unmodifiableList(policies_); + } else { + return policiesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * A list of policies.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Policy policies = 1; + */ + public int getPoliciesCount() { + if (policiesBuilder_ == null) { + return policies_.size(); + } else { + return policiesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * A list of policies.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Policy policies = 1; + */ + public com.google.cloud.designcenter.v1.Policy getPolicies(int index) { + if (policiesBuilder_ == null) { + return policies_.get(index); + } else { + return policiesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * A list of policies.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Policy policies = 1; + */ + public Builder setPolicies(int index, com.google.cloud.designcenter.v1.Policy value) { + if (policiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePoliciesIsMutable(); + policies_.set(index, value); + onChanged(); + } else { + policiesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * A list of policies.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Policy policies = 1; + */ + public Builder setPolicies( + int index, com.google.cloud.designcenter.v1.Policy.Builder builderForValue) { + if (policiesBuilder_ == null) { + ensurePoliciesIsMutable(); + policies_.set(index, builderForValue.build()); + onChanged(); + } else { + policiesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * A list of policies.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Policy policies = 1; + */ + public Builder addPolicies(com.google.cloud.designcenter.v1.Policy value) { + if (policiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePoliciesIsMutable(); + policies_.add(value); + onChanged(); + } else { + policiesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * A list of policies.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Policy policies = 1; + */ + public Builder addPolicies(int index, com.google.cloud.designcenter.v1.Policy value) { + if (policiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePoliciesIsMutable(); + policies_.add(index, value); + onChanged(); + } else { + policiesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * A list of policies.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Policy policies = 1; + */ + public Builder addPolicies(com.google.cloud.designcenter.v1.Policy.Builder builderForValue) { + if (policiesBuilder_ == null) { + ensurePoliciesIsMutable(); + policies_.add(builderForValue.build()); + onChanged(); + } else { + policiesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * A list of policies.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Policy policies = 1; + */ + public Builder addPolicies( + int index, com.google.cloud.designcenter.v1.Policy.Builder builderForValue) { + if (policiesBuilder_ == null) { + ensurePoliciesIsMutable(); + policies_.add(index, builderForValue.build()); + onChanged(); + } else { + policiesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * A list of policies.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Policy policies = 1; + */ + public Builder addAllPolicies( + java.lang.Iterable values) { + if (policiesBuilder_ == null) { + ensurePoliciesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, policies_); + onChanged(); + } else { + policiesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * A list of policies.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Policy policies = 1; + */ + public Builder clearPolicies() { + if (policiesBuilder_ == null) { + policies_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + policiesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * A list of policies.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Policy policies = 1; + */ + public Builder removePolicies(int index) { + if (policiesBuilder_ == null) { + ensurePoliciesIsMutable(); + policies_.remove(index); + onChanged(); + } else { + policiesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * A list of policies.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Policy policies = 1; + */ + public com.google.cloud.designcenter.v1.Policy.Builder getPoliciesBuilder(int index) { + return internalGetPoliciesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * A list of policies.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Policy policies = 1; + */ + public com.google.cloud.designcenter.v1.PolicyOrBuilder getPoliciesOrBuilder(int index) { + if (policiesBuilder_ == null) { + return policies_.get(index); + } else { + return policiesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * A list of policies.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Policy policies = 1; + */ + public java.util.List + getPoliciesOrBuilderList() { + if (policiesBuilder_ != null) { + return policiesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(policies_); + } + } + + /** + * + * + *
+     * A list of policies.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Policy policies = 1; + */ + public com.google.cloud.designcenter.v1.Policy.Builder addPoliciesBuilder() { + return internalGetPoliciesFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.Policy.getDefaultInstance()); + } + + /** + * + * + *
+     * A list of policies.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Policy policies = 1; + */ + public com.google.cloud.designcenter.v1.Policy.Builder addPoliciesBuilder(int index) { + return internalGetPoliciesFieldBuilder() + .addBuilder(index, com.google.cloud.designcenter.v1.Policy.getDefaultInstance()); + } + + /** + * + * + *
+     * A list of policies.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Policy policies = 1; + */ + public java.util.List + getPoliciesBuilderList() { + return internalGetPoliciesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Policy, + com.google.cloud.designcenter.v1.Policy.Builder, + com.google.cloud.designcenter.v1.PolicyOrBuilder> + internalGetPoliciesFieldBuilder() { + if (policiesBuilder_ == null) { + policiesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Policy, + com.google.cloud.designcenter.v1.Policy.Builder, + com.google.cloud.designcenter.v1.PolicyOrBuilder>( + policies_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + policies_ = null; + } + return policiesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * If there might be more results than those appearing in this response, then
+     * nextPageToken is included. To get the next set of results, call this method
+     * again using the value of nextPageToken as pageToken.
+     * 
+ * + * 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; + } + } + + /** + * + * + *
+     * If there might be more results than those appearing in this response, then
+     * nextPageToken is included. To get the next set of results, call this method
+     * again using the value of nextPageToken as pageToken.
+     * 
+ * + * 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; + } + } + + /** + * + * + *
+     * If there might be more results than those appearing in this response, then
+     * nextPageToken is included. To get the next set of results, call this method
+     * again using the value of nextPageToken as pageToken.
+     * 
+ * + * 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; + } + + /** + * + * + *
+     * If there might be more results than those appearing in this response, then
+     * nextPageToken is included. To get the next set of results, call this method
+     * again using the value of nextPageToken as pageToken.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * If there might be more results than those appearing in this response, then
+     * nextPageToken is included. To get the next set of results, call this method
+     * again using the value of nextPageToken as pageToken.
+     * 
+ * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ListPoliciesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ListPoliciesResponse) + private static final com.google.cloud.designcenter.v1.ListPoliciesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.ListPoliciesResponse(); + } + + public static com.google.cloud.designcenter.v1.ListPoliciesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPoliciesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ListPoliciesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListPoliciesResponseOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListPoliciesResponseOrBuilder.java new file mode 100644 index 000000000000..d1806c6d78e8 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListPoliciesResponseOrBuilder.java @@ -0,0 +1,114 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/best_practices_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ListPoliciesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ListPoliciesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A list of policies.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Policy policies = 1; + */ + java.util.List getPoliciesList(); + + /** + * + * + *
+   * A list of policies.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Policy policies = 1; + */ + com.google.cloud.designcenter.v1.Policy getPolicies(int index); + + /** + * + * + *
+   * A list of policies.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Policy policies = 1; + */ + int getPoliciesCount(); + + /** + * + * + *
+   * A list of policies.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Policy policies = 1; + */ + java.util.List + getPoliciesOrBuilderList(); + + /** + * + * + *
+   * A list of policies.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Policy policies = 1; + */ + com.google.cloud.designcenter.v1.PolicyOrBuilder getPoliciesOrBuilder(int index); + + /** + * + * + *
+   * If there might be more results than those appearing in this response, then
+   * nextPageToken is included. To get the next set of results, call this method
+   * again using the value of nextPageToken as pageToken.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * If there might be more results than those appearing in this response, then
+   * nextPageToken is included. To get the next set of results, call this method
+   * again using the value of nextPageToken as pageToken.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListSharedTemplateRevisionsRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListSharedTemplateRevisionsRequest.java new file mode 100644 index 000000000000..a75da219a14d --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListSharedTemplateRevisionsRequest.java @@ -0,0 +1,1334 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/sharing_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for requesting a list of shared template revisions.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ListSharedTemplateRevisionsRequest} + */ +@com.google.protobuf.Generated +public final class ListSharedTemplateRevisionsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ListSharedTemplateRevisionsRequest) + ListSharedTemplateRevisionsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ListSharedTemplateRevisionsRequest"); + } + + // Use ListSharedTemplateRevisionsRequest.newBuilder() to construct. + private ListSharedTemplateRevisionsRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListSharedTemplateRevisionsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_ListSharedTemplateRevisionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_ListSharedTemplateRevisionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsRequest.class, + com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent resource from which to list shared template revisions,
+   * in the following format:
+   * `projects/$project/locations/$location/spaces/$space/sharedTemplates/$sharedTemplate`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The parent resource from which to list shared template revisions,
+   * in the following format:
+   * `projects/$project/locations/$location/spaces/$space/sharedTemplates/$sharedTemplate`
+   * 
+ * + * + * 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 results to return from this request.
+   * Non-positive
+   * values are ignored. The presence of nextPageToken in the response
+   * indicates that more results might be available.
+   * 
+ * + * 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. If present, then retrieve the next batch of results from the
+   * preceding call to this method. pageToken must be the value of nextPageToken
+   * from the previous response. The values of other method parameters should be
+   * identical to those in the previous call.
+   * 
+ * + * 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. If present, then retrieve the next batch of results from the
+   * preceding call to this method. pageToken must be the value of nextPageToken
+   * from the previous response. The values of other method parameters should be
+   * identical to those in the previous call.
+   * 
+ * + * 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; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
+   * Optional. A filter that chooses which shared template revisions to return.
+   * 
+ * + * 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. A filter that chooses which shared template revisions to return.
+   * 
+ * + * 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 ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
+   * Optional. How the results should be sorted.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+   * Optional. How the results should be sorted.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessage.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.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessage.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.designcenter.v1.ListSharedTemplateRevisionsRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsRequest other = + (com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsRequest) 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.designcenter.v1.ListSharedTemplateRevisionsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsRequest 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.designcenter.v1.ListSharedTemplateRevisionsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ListSharedTemplateRevisionsRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for requesting a list of shared template revisions.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ListSharedTemplateRevisionsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ListSharedTemplateRevisionsRequest) + com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_ListSharedTemplateRevisionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_ListSharedTemplateRevisionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsRequest.class, + com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsRequest.Builder.class); + } + + // Construct using + // com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.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.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_ListSharedTemplateRevisionsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsRequest + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsRequest build() { + com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsRequest buildPartial() { + com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsRequest result = + new com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsRequest 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 mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsRequest) { + return mergeFrom( + (com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsRequest other) { + if (other + == com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent resource from which to list shared template revisions,
+     * in the following format:
+     * `projects/$project/locations/$location/spaces/$space/sharedTemplates/$sharedTemplate`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The parent resource from which to list shared template revisions,
+     * in the following format:
+     * `projects/$project/locations/$location/spaces/$space/sharedTemplates/$sharedTemplate`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The parent resource from which to list shared template revisions,
+     * in the following format:
+     * `projects/$project/locations/$location/spaces/$space/sharedTemplates/$sharedTemplate`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource from which to list shared template revisions,
+     * in the following format:
+     * `projects/$project/locations/$location/spaces/$space/sharedTemplates/$sharedTemplate`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource from which to list shared template revisions,
+     * in the following format:
+     * `projects/$project/locations/$location/spaces/$space/sharedTemplates/$sharedTemplate`
+     * 
+ * + * + * 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 results to return from this request.
+     * Non-positive
+     * values are ignored. The presence of nextPageToken in the response
+     * indicates that more results might be available.
+     * 
+ * + * 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 results to return from this request.
+     * Non-positive
+     * values are ignored. The presence of nextPageToken in the response
+     * indicates that more results might be available.
+     * 
+ * + * 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 results to return from this request.
+     * Non-positive
+     * values are ignored. The presence of nextPageToken in the response
+     * indicates that more results might be available.
+     * 
+ * + * 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. If present, then retrieve the next batch of results from the
+     * preceding call to this method. pageToken must be the value of nextPageToken
+     * from the previous response. The values of other method parameters should be
+     * identical to those in the previous call.
+     * 
+ * + * 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. If present, then retrieve the next batch of results from the
+     * preceding call to this method. pageToken must be the value of nextPageToken
+     * from the previous response. The values of other method parameters should be
+     * identical to those in the previous call.
+     * 
+ * + * 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. If present, then retrieve the next batch of results from the
+     * preceding call to this method. pageToken must be the value of nextPageToken
+     * from the previous response. The values of other method parameters should be
+     * identical to those in the previous call.
+     * 
+ * + * 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. If present, then retrieve the next batch of results from the
+     * preceding call to this method. pageToken must be the value of nextPageToken
+     * from the previous response. The values of other method parameters should be
+     * identical to those in the previous call.
+     * 
+ * + * 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. If present, then retrieve the next batch of results from the
+     * preceding call to this method. pageToken must be the value of nextPageToken
+     * from the previous response. The values of other method parameters should be
+     * identical to those in the previous call.
+     * 
+ * + * 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; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
+     * Optional. A filter that chooses which shared template revisions to return.
+     * 
+ * + * 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. A filter that chooses which shared template revisions to return.
+     * 
+ * + * 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. A filter that chooses which shared template revisions to return.
+     * 
+ * + * 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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A filter that chooses which shared template revisions to return.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A filter that chooses which shared template revisions to return.
+     * 
+ * + * 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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
+     * Optional. How the results should be sorted.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+     * Optional. How the results should be sorted.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+     * Optional. How the results should be sorted.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + + /** + * + * + *
+     * Optional. How the results should be sorted.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. How the results should be sorted.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ListSharedTemplateRevisionsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ListSharedTemplateRevisionsRequest) + private static final com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsRequest(); + } + + public static com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSharedTemplateRevisionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ListSharedTemplateRevisionsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListSharedTemplateRevisionsRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListSharedTemplateRevisionsRequestOrBuilder.java new file mode 100644 index 000000000000..b87fd0000847 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListSharedTemplateRevisionsRequestOrBuilder.java @@ -0,0 +1,162 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/sharing_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ListSharedTemplateRevisionsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ListSharedTemplateRevisionsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource from which to list shared template revisions,
+   * in the following format:
+   * `projects/$project/locations/$location/spaces/$space/sharedTemplates/$sharedTemplate`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent resource from which to list shared template revisions,
+   * in the following format:
+   * `projects/$project/locations/$location/spaces/$space/sharedTemplates/$sharedTemplate`
+   * 
+ * + * + * 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 results to return from this request.
+   * Non-positive
+   * values are ignored. The presence of nextPageToken in the response
+   * indicates that more results might be available.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. If present, then retrieve the next batch of results from the
+   * preceding call to this method. pageToken must be the value of nextPageToken
+   * from the previous response. The values of other method parameters should be
+   * identical to those in the previous call.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * Optional. If present, then retrieve the next batch of results from the
+   * preceding call to this method. pageToken must be the value of nextPageToken
+   * from the previous response. The values of other method parameters should be
+   * identical to those in the previous call.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional. A filter that chooses which shared template revisions to return.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * Optional. A filter that chooses which shared template revisions to return.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional. How the results should be sorted.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
+   * Optional. How the results should be sorted.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListSharedTemplateRevisionsResponse.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListSharedTemplateRevisionsResponse.java new file mode 100644 index 000000000000..7cbbf818339a --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListSharedTemplateRevisionsResponse.java @@ -0,0 +1,1213 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/sharing_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for response to listing shared templates.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ListSharedTemplateRevisionsResponse} + */ +@com.google.protobuf.Generated +public final class ListSharedTemplateRevisionsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ListSharedTemplateRevisionsResponse) + ListSharedTemplateRevisionsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ListSharedTemplateRevisionsResponse"); + } + + // Use ListSharedTemplateRevisionsResponse.newBuilder() to construct. + private ListSharedTemplateRevisionsResponse( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListSharedTemplateRevisionsResponse() { + sharedTemplateRevisions_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_ListSharedTemplateRevisionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_ListSharedTemplateRevisionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsResponse.class, + com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsResponse.Builder.class); + } + + public static final int SHARED_TEMPLATE_REVISIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + sharedTemplateRevisions_; + + /** + * + * + *
+   * The list of shared templates.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.SharedTemplateRevision shared_template_revisions = 1; + * + */ + @java.lang.Override + public java.util.List + getSharedTemplateRevisionsList() { + return sharedTemplateRevisions_; + } + + /** + * + * + *
+   * The list of shared templates.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.SharedTemplateRevision shared_template_revisions = 1; + * + */ + @java.lang.Override + public java.util.List + getSharedTemplateRevisionsOrBuilderList() { + return sharedTemplateRevisions_; + } + + /** + * + * + *
+   * The list of shared templates.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.SharedTemplateRevision shared_template_revisions = 1; + * + */ + @java.lang.Override + public int getSharedTemplateRevisionsCount() { + return sharedTemplateRevisions_.size(); + } + + /** + * + * + *
+   * The list of shared templates.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.SharedTemplateRevision shared_template_revisions = 1; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.SharedTemplateRevision getSharedTemplateRevisions( + int index) { + return sharedTemplateRevisions_.get(index); + } + + /** + * + * + *
+   * The list of shared templates.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.SharedTemplateRevision shared_template_revisions = 1; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.SharedTemplateRevisionOrBuilder + getSharedTemplateRevisionsOrBuilder(int index) { + return sharedTemplateRevisions_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * If there might be more results than those appearing in this response, then
+   * nextPageToken is included. To get the next set of results, call this method
+   * again using the value of nextPageToken as pageToken.
+   * 
+ * + * 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; + } + } + + /** + * + * + *
+   * If there might be more results than those appearing in this response, then
+   * nextPageToken is included. To get the next set of results, call this method
+   * again using the value of nextPageToken as pageToken.
+   * 
+ * + * 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 < sharedTemplateRevisions_.size(); i++) { + output.writeMessage(1, sharedTemplateRevisions_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.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 < sharedTemplateRevisions_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, sharedTemplateRevisions_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.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.designcenter.v1.ListSharedTemplateRevisionsResponse)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsResponse other = + (com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsResponse) obj; + + if (!getSharedTemplateRevisionsList().equals(other.getSharedTemplateRevisionsList())) + 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 (getSharedTemplateRevisionsCount() > 0) { + hash = (37 * hash) + SHARED_TEMPLATE_REVISIONS_FIELD_NUMBER; + hash = (53 * hash) + getSharedTemplateRevisionsList().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.designcenter.v1.ListSharedTemplateRevisionsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsResponse 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.designcenter.v1.ListSharedTemplateRevisionsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ListSharedTemplateRevisionsResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for response to listing shared templates.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ListSharedTemplateRevisionsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ListSharedTemplateRevisionsResponse) + com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_ListSharedTemplateRevisionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_ListSharedTemplateRevisionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsResponse.class, + com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsResponse.Builder.class); + } + + // Construct using + // com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (sharedTemplateRevisionsBuilder_ == null) { + sharedTemplateRevisions_ = java.util.Collections.emptyList(); + } else { + sharedTemplateRevisions_ = null; + sharedTemplateRevisionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_ListSharedTemplateRevisionsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsResponse + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsResponse build() { + com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsResponse buildPartial() { + com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsResponse result = + new com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsResponse result) { + if (sharedTemplateRevisionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + sharedTemplateRevisions_ = + java.util.Collections.unmodifiableList(sharedTemplateRevisions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.sharedTemplateRevisions_ = sharedTemplateRevisions_; + } else { + result.sharedTemplateRevisions_ = sharedTemplateRevisionsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsResponse) { + return mergeFrom( + (com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsResponse other) { + if (other + == com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsResponse + .getDefaultInstance()) return this; + if (sharedTemplateRevisionsBuilder_ == null) { + if (!other.sharedTemplateRevisions_.isEmpty()) { + if (sharedTemplateRevisions_.isEmpty()) { + sharedTemplateRevisions_ = other.sharedTemplateRevisions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSharedTemplateRevisionsIsMutable(); + sharedTemplateRevisions_.addAll(other.sharedTemplateRevisions_); + } + onChanged(); + } + } else { + if (!other.sharedTemplateRevisions_.isEmpty()) { + if (sharedTemplateRevisionsBuilder_.isEmpty()) { + sharedTemplateRevisionsBuilder_.dispose(); + sharedTemplateRevisionsBuilder_ = null; + sharedTemplateRevisions_ = other.sharedTemplateRevisions_; + bitField0_ = (bitField0_ & ~0x00000001); + sharedTemplateRevisionsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetSharedTemplateRevisionsFieldBuilder() + : null; + } else { + sharedTemplateRevisionsBuilder_.addAllMessages(other.sharedTemplateRevisions_); + } + } + } + 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.designcenter.v1.SharedTemplateRevision m = + input.readMessage( + com.google.cloud.designcenter.v1.SharedTemplateRevision.parser(), + extensionRegistry); + if (sharedTemplateRevisionsBuilder_ == null) { + ensureSharedTemplateRevisionsIsMutable(); + sharedTemplateRevisions_.add(m); + } else { + sharedTemplateRevisionsBuilder_.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 + sharedTemplateRevisions_ = java.util.Collections.emptyList(); + + private void ensureSharedTemplateRevisionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + sharedTemplateRevisions_ = + new java.util.ArrayList( + sharedTemplateRevisions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.SharedTemplateRevision, + com.google.cloud.designcenter.v1.SharedTemplateRevision.Builder, + com.google.cloud.designcenter.v1.SharedTemplateRevisionOrBuilder> + sharedTemplateRevisionsBuilder_; + + /** + * + * + *
+     * The list of shared templates.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SharedTemplateRevision shared_template_revisions = 1; + * + */ + public java.util.List + getSharedTemplateRevisionsList() { + if (sharedTemplateRevisionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(sharedTemplateRevisions_); + } else { + return sharedTemplateRevisionsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The list of shared templates.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SharedTemplateRevision shared_template_revisions = 1; + * + */ + public int getSharedTemplateRevisionsCount() { + if (sharedTemplateRevisionsBuilder_ == null) { + return sharedTemplateRevisions_.size(); + } else { + return sharedTemplateRevisionsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The list of shared templates.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SharedTemplateRevision shared_template_revisions = 1; + * + */ + public com.google.cloud.designcenter.v1.SharedTemplateRevision getSharedTemplateRevisions( + int index) { + if (sharedTemplateRevisionsBuilder_ == null) { + return sharedTemplateRevisions_.get(index); + } else { + return sharedTemplateRevisionsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The list of shared templates.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SharedTemplateRevision shared_template_revisions = 1; + * + */ + public Builder setSharedTemplateRevisions( + int index, com.google.cloud.designcenter.v1.SharedTemplateRevision value) { + if (sharedTemplateRevisionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSharedTemplateRevisionsIsMutable(); + sharedTemplateRevisions_.set(index, value); + onChanged(); + } else { + sharedTemplateRevisionsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of shared templates.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SharedTemplateRevision shared_template_revisions = 1; + * + */ + public Builder setSharedTemplateRevisions( + int index, + com.google.cloud.designcenter.v1.SharedTemplateRevision.Builder builderForValue) { + if (sharedTemplateRevisionsBuilder_ == null) { + ensureSharedTemplateRevisionsIsMutable(); + sharedTemplateRevisions_.set(index, builderForValue.build()); + onChanged(); + } else { + sharedTemplateRevisionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of shared templates.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SharedTemplateRevision shared_template_revisions = 1; + * + */ + public Builder addSharedTemplateRevisions( + com.google.cloud.designcenter.v1.SharedTemplateRevision value) { + if (sharedTemplateRevisionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSharedTemplateRevisionsIsMutable(); + sharedTemplateRevisions_.add(value); + onChanged(); + } else { + sharedTemplateRevisionsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The list of shared templates.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SharedTemplateRevision shared_template_revisions = 1; + * + */ + public Builder addSharedTemplateRevisions( + int index, com.google.cloud.designcenter.v1.SharedTemplateRevision value) { + if (sharedTemplateRevisionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSharedTemplateRevisionsIsMutable(); + sharedTemplateRevisions_.add(index, value); + onChanged(); + } else { + sharedTemplateRevisionsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of shared templates.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SharedTemplateRevision shared_template_revisions = 1; + * + */ + public Builder addSharedTemplateRevisions( + com.google.cloud.designcenter.v1.SharedTemplateRevision.Builder builderForValue) { + if (sharedTemplateRevisionsBuilder_ == null) { + ensureSharedTemplateRevisionsIsMutable(); + sharedTemplateRevisions_.add(builderForValue.build()); + onChanged(); + } else { + sharedTemplateRevisionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of shared templates.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SharedTemplateRevision shared_template_revisions = 1; + * + */ + public Builder addSharedTemplateRevisions( + int index, + com.google.cloud.designcenter.v1.SharedTemplateRevision.Builder builderForValue) { + if (sharedTemplateRevisionsBuilder_ == null) { + ensureSharedTemplateRevisionsIsMutable(); + sharedTemplateRevisions_.add(index, builderForValue.build()); + onChanged(); + } else { + sharedTemplateRevisionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of shared templates.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SharedTemplateRevision shared_template_revisions = 1; + * + */ + public Builder addAllSharedTemplateRevisions( + java.lang.Iterable + values) { + if (sharedTemplateRevisionsBuilder_ == null) { + ensureSharedTemplateRevisionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sharedTemplateRevisions_); + onChanged(); + } else { + sharedTemplateRevisionsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The list of shared templates.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SharedTemplateRevision shared_template_revisions = 1; + * + */ + public Builder clearSharedTemplateRevisions() { + if (sharedTemplateRevisionsBuilder_ == null) { + sharedTemplateRevisions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + sharedTemplateRevisionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The list of shared templates.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SharedTemplateRevision shared_template_revisions = 1; + * + */ + public Builder removeSharedTemplateRevisions(int index) { + if (sharedTemplateRevisionsBuilder_ == null) { + ensureSharedTemplateRevisionsIsMutable(); + sharedTemplateRevisions_.remove(index); + onChanged(); + } else { + sharedTemplateRevisionsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The list of shared templates.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SharedTemplateRevision shared_template_revisions = 1; + * + */ + public com.google.cloud.designcenter.v1.SharedTemplateRevision.Builder + getSharedTemplateRevisionsBuilder(int index) { + return internalGetSharedTemplateRevisionsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The list of shared templates.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SharedTemplateRevision shared_template_revisions = 1; + * + */ + public com.google.cloud.designcenter.v1.SharedTemplateRevisionOrBuilder + getSharedTemplateRevisionsOrBuilder(int index) { + if (sharedTemplateRevisionsBuilder_ == null) { + return sharedTemplateRevisions_.get(index); + } else { + return sharedTemplateRevisionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The list of shared templates.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SharedTemplateRevision shared_template_revisions = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.designcenter.v1.SharedTemplateRevisionOrBuilder> + getSharedTemplateRevisionsOrBuilderList() { + if (sharedTemplateRevisionsBuilder_ != null) { + return sharedTemplateRevisionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(sharedTemplateRevisions_); + } + } + + /** + * + * + *
+     * The list of shared templates.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SharedTemplateRevision shared_template_revisions = 1; + * + */ + public com.google.cloud.designcenter.v1.SharedTemplateRevision.Builder + addSharedTemplateRevisionsBuilder() { + return internalGetSharedTemplateRevisionsFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.SharedTemplateRevision.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of shared templates.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SharedTemplateRevision shared_template_revisions = 1; + * + */ + public com.google.cloud.designcenter.v1.SharedTemplateRevision.Builder + addSharedTemplateRevisionsBuilder(int index) { + return internalGetSharedTemplateRevisionsFieldBuilder() + .addBuilder( + index, com.google.cloud.designcenter.v1.SharedTemplateRevision.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of shared templates.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SharedTemplateRevision shared_template_revisions = 1; + * + */ + public java.util.List + getSharedTemplateRevisionsBuilderList() { + return internalGetSharedTemplateRevisionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.SharedTemplateRevision, + com.google.cloud.designcenter.v1.SharedTemplateRevision.Builder, + com.google.cloud.designcenter.v1.SharedTemplateRevisionOrBuilder> + internalGetSharedTemplateRevisionsFieldBuilder() { + if (sharedTemplateRevisionsBuilder_ == null) { + sharedTemplateRevisionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.SharedTemplateRevision, + com.google.cloud.designcenter.v1.SharedTemplateRevision.Builder, + com.google.cloud.designcenter.v1.SharedTemplateRevisionOrBuilder>( + sharedTemplateRevisions_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + sharedTemplateRevisions_ = null; + } + return sharedTemplateRevisionsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * If there might be more results than those appearing in this response, then
+     * nextPageToken is included. To get the next set of results, call this method
+     * again using the value of nextPageToken as pageToken.
+     * 
+ * + * 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; + } + } + + /** + * + * + *
+     * If there might be more results than those appearing in this response, then
+     * nextPageToken is included. To get the next set of results, call this method
+     * again using the value of nextPageToken as pageToken.
+     * 
+ * + * 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; + } + } + + /** + * + * + *
+     * If there might be more results than those appearing in this response, then
+     * nextPageToken is included. To get the next set of results, call this method
+     * again using the value of nextPageToken as pageToken.
+     * 
+ * + * 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; + } + + /** + * + * + *
+     * If there might be more results than those appearing in this response, then
+     * nextPageToken is included. To get the next set of results, call this method
+     * again using the value of nextPageToken as pageToken.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * If there might be more results than those appearing in this response, then
+     * nextPageToken is included. To get the next set of results, call this method
+     * again using the value of nextPageToken as pageToken.
+     * 
+ * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ListSharedTemplateRevisionsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ListSharedTemplateRevisionsResponse) + private static final com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsResponse(); + } + + public static com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSharedTemplateRevisionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ListSharedTemplateRevisionsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListSharedTemplateRevisionsResponseOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListSharedTemplateRevisionsResponseOrBuilder.java new file mode 100644 index 000000000000..9a5125c1c356 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListSharedTemplateRevisionsResponseOrBuilder.java @@ -0,0 +1,126 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/sharing_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ListSharedTemplateRevisionsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ListSharedTemplateRevisionsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of shared templates.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.SharedTemplateRevision shared_template_revisions = 1; + * + */ + java.util.List + getSharedTemplateRevisionsList(); + + /** + * + * + *
+   * The list of shared templates.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.SharedTemplateRevision shared_template_revisions = 1; + * + */ + com.google.cloud.designcenter.v1.SharedTemplateRevision getSharedTemplateRevisions(int index); + + /** + * + * + *
+   * The list of shared templates.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.SharedTemplateRevision shared_template_revisions = 1; + * + */ + int getSharedTemplateRevisionsCount(); + + /** + * + * + *
+   * The list of shared templates.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.SharedTemplateRevision shared_template_revisions = 1; + * + */ + java.util.List + getSharedTemplateRevisionsOrBuilderList(); + + /** + * + * + *
+   * The list of shared templates.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.SharedTemplateRevision shared_template_revisions = 1; + * + */ + com.google.cloud.designcenter.v1.SharedTemplateRevisionOrBuilder + getSharedTemplateRevisionsOrBuilder(int index); + + /** + * + * + *
+   * If there might be more results than those appearing in this response, then
+   * nextPageToken is included. To get the next set of results, call this method
+   * again using the value of nextPageToken as pageToken.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * If there might be more results than those appearing in this response, then
+   * nextPageToken is included. To get the next set of results, call this method
+   * again using the value of nextPageToken as pageToken.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListSharedTemplatesRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListSharedTemplatesRequest.java new file mode 100644 index 000000000000..1a9e4968db20 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListSharedTemplatesRequest.java @@ -0,0 +1,1311 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/sharing_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for requesting list of shared templates.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ListSharedTemplatesRequest} + */ +@com.google.protobuf.Generated +public final class ListSharedTemplatesRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ListSharedTemplatesRequest) + ListSharedTemplatesRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ListSharedTemplatesRequest"); + } + + // Use ListSharedTemplatesRequest.newBuilder() to construct. + private ListSharedTemplatesRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListSharedTemplatesRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_ListSharedTemplatesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_ListSharedTemplatesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ListSharedTemplatesRequest.class, + com.google.cloud.designcenter.v1.ListSharedTemplatesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent space for which shared templates are listed in the
+   * following format: `projects/$project/locations/$location/spaces/$space`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The parent space for which shared templates are listed in the
+   * following format: `projects/$project/locations/$location/spaces/$space`
+   * 
+ * + * + * 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 results to return from this request.
+   * Non-positive values are ignored. The presence of nextPageToken in the
+   * response indicates that more results might be available.
+   * 
+ * + * 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. If present, then retrieve the next batch of results from the
+   * preceding call to this method. pageToken must be the value of nextPageToken
+   * from the previous response. The values of other method parameters should be
+   * identical to those in the previous call.
+   * 
+ * + * 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. If present, then retrieve the next batch of results from the
+   * preceding call to this method. pageToken must be the value of nextPageToken
+   * from the previous response. The values of other method parameters should be
+   * identical to those in the previous call.
+   * 
+ * + * 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; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
+   * Optional. A filter that chooses which shared templates to return.
+   * 
+ * + * 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. A filter that chooses which shared templates to return.
+   * 
+ * + * 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 ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
+   * Optional. How the results should be sorted.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+   * Optional. How the results should be sorted.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessage.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.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessage.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.designcenter.v1.ListSharedTemplatesRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ListSharedTemplatesRequest other = + (com.google.cloud.designcenter.v1.ListSharedTemplatesRequest) 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.designcenter.v1.ListSharedTemplatesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListSharedTemplatesRequest 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.designcenter.v1.ListSharedTemplatesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListSharedTemplatesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListSharedTemplatesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListSharedTemplatesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListSharedTemplatesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListSharedTemplatesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListSharedTemplatesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListSharedTemplatesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListSharedTemplatesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListSharedTemplatesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ListSharedTemplatesRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for requesting list of shared templates.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ListSharedTemplatesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ListSharedTemplatesRequest) + com.google.cloud.designcenter.v1.ListSharedTemplatesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_ListSharedTemplatesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_ListSharedTemplatesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ListSharedTemplatesRequest.class, + com.google.cloud.designcenter.v1.ListSharedTemplatesRequest.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.ListSharedTemplatesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.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.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_ListSharedTemplatesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListSharedTemplatesRequest getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ListSharedTemplatesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListSharedTemplatesRequest build() { + com.google.cloud.designcenter.v1.ListSharedTemplatesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListSharedTemplatesRequest buildPartial() { + com.google.cloud.designcenter.v1.ListSharedTemplatesRequest result = + new com.google.cloud.designcenter.v1.ListSharedTemplatesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.ListSharedTemplatesRequest 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 mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.ListSharedTemplatesRequest) { + return mergeFrom((com.google.cloud.designcenter.v1.ListSharedTemplatesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.ListSharedTemplatesRequest other) { + if (other == com.google.cloud.designcenter.v1.ListSharedTemplatesRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent space for which shared templates are listed in the
+     * following format: `projects/$project/locations/$location/spaces/$space`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The parent space for which shared templates are listed in the
+     * following format: `projects/$project/locations/$location/spaces/$space`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The parent space for which shared templates are listed in the
+     * following format: `projects/$project/locations/$location/spaces/$space`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent space for which shared templates are listed in the
+     * following format: `projects/$project/locations/$location/spaces/$space`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent space for which shared templates are listed in the
+     * following format: `projects/$project/locations/$location/spaces/$space`
+     * 
+ * + * + * 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 results to return from this request.
+     * Non-positive values are ignored. The presence of nextPageToken in the
+     * response indicates that more results might be available.
+     * 
+ * + * 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 results to return from this request.
+     * Non-positive values are ignored. The presence of nextPageToken in the
+     * response indicates that more results might be available.
+     * 
+ * + * 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 results to return from this request.
+     * Non-positive values are ignored. The presence of nextPageToken in the
+     * response indicates that more results might be available.
+     * 
+ * + * 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. If present, then retrieve the next batch of results from the
+     * preceding call to this method. pageToken must be the value of nextPageToken
+     * from the previous response. The values of other method parameters should be
+     * identical to those in the previous call.
+     * 
+ * + * 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. If present, then retrieve the next batch of results from the
+     * preceding call to this method. pageToken must be the value of nextPageToken
+     * from the previous response. The values of other method parameters should be
+     * identical to those in the previous call.
+     * 
+ * + * 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. If present, then retrieve the next batch of results from the
+     * preceding call to this method. pageToken must be the value of nextPageToken
+     * from the previous response. The values of other method parameters should be
+     * identical to those in the previous call.
+     * 
+ * + * 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. If present, then retrieve the next batch of results from the
+     * preceding call to this method. pageToken must be the value of nextPageToken
+     * from the previous response. The values of other method parameters should be
+     * identical to those in the previous call.
+     * 
+ * + * 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. If present, then retrieve the next batch of results from the
+     * preceding call to this method. pageToken must be the value of nextPageToken
+     * from the previous response. The values of other method parameters should be
+     * identical to those in the previous call.
+     * 
+ * + * 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; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
+     * Optional. A filter that chooses which shared templates to return.
+     * 
+ * + * 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. A filter that chooses which shared templates to return.
+     * 
+ * + * 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. A filter that chooses which shared templates to return.
+     * 
+ * + * 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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A filter that chooses which shared templates to return.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A filter that chooses which shared templates to return.
+     * 
+ * + * 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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
+     * Optional. How the results should be sorted.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+     * Optional. How the results should be sorted.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+     * Optional. How the results should be sorted.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + + /** + * + * + *
+     * Optional. How the results should be sorted.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. How the results should be sorted.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ListSharedTemplatesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ListSharedTemplatesRequest) + private static final com.google.cloud.designcenter.v1.ListSharedTemplatesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.ListSharedTemplatesRequest(); + } + + public static com.google.cloud.designcenter.v1.ListSharedTemplatesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSharedTemplatesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ListSharedTemplatesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListSharedTemplatesRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListSharedTemplatesRequestOrBuilder.java new file mode 100644 index 000000000000..391bb9aa00cb --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListSharedTemplatesRequestOrBuilder.java @@ -0,0 +1,159 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/sharing_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ListSharedTemplatesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ListSharedTemplatesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent space for which shared templates are listed in the
+   * following format: `projects/$project/locations/$location/spaces/$space`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent space for which shared templates are listed in the
+   * following format: `projects/$project/locations/$location/spaces/$space`
+   * 
+ * + * + * 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 results to return from this request.
+   * Non-positive values are ignored. The presence of nextPageToken in the
+   * response indicates that more results might be available.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. If present, then retrieve the next batch of results from the
+   * preceding call to this method. pageToken must be the value of nextPageToken
+   * from the previous response. The values of other method parameters should be
+   * identical to those in the previous call.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * Optional. If present, then retrieve the next batch of results from the
+   * preceding call to this method. pageToken must be the value of nextPageToken
+   * from the previous response. The values of other method parameters should be
+   * identical to those in the previous call.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional. A filter that chooses which shared templates to return.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * Optional. A filter that chooses which shared templates to return.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional. How the results should be sorted.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
+   * Optional. How the results should be sorted.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListSharedTemplatesResponse.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListSharedTemplatesResponse.java new file mode 100644 index 000000000000..344775cd0742 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListSharedTemplatesResponse.java @@ -0,0 +1,1144 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/sharing_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for response to listing shared templates.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ListSharedTemplatesResponse} + */ +@com.google.protobuf.Generated +public final class ListSharedTemplatesResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ListSharedTemplatesResponse) + ListSharedTemplatesResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ListSharedTemplatesResponse"); + } + + // Use ListSharedTemplatesResponse.newBuilder() to construct. + private ListSharedTemplatesResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListSharedTemplatesResponse() { + sharedTemplates_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_ListSharedTemplatesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_ListSharedTemplatesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ListSharedTemplatesResponse.class, + com.google.cloud.designcenter.v1.ListSharedTemplatesResponse.Builder.class); + } + + public static final int SHARED_TEMPLATES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List sharedTemplates_; + + /** + * + * + *
+   * The list of shared templates.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.SharedTemplate shared_templates = 1; + */ + @java.lang.Override + public java.util.List getSharedTemplatesList() { + return sharedTemplates_; + } + + /** + * + * + *
+   * The list of shared templates.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.SharedTemplate shared_templates = 1; + */ + @java.lang.Override + public java.util.List + getSharedTemplatesOrBuilderList() { + return sharedTemplates_; + } + + /** + * + * + *
+   * The list of shared templates.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.SharedTemplate shared_templates = 1; + */ + @java.lang.Override + public int getSharedTemplatesCount() { + return sharedTemplates_.size(); + } + + /** + * + * + *
+   * The list of shared templates.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.SharedTemplate shared_templates = 1; + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.SharedTemplate getSharedTemplates(int index) { + return sharedTemplates_.get(index); + } + + /** + * + * + *
+   * The list of shared templates.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.SharedTemplate shared_templates = 1; + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.SharedTemplateOrBuilder getSharedTemplatesOrBuilder( + int index) { + return sharedTemplates_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * If there might be more results than those appearing in this response, then
+   * nextPageToken is included. To get the next set of results, call this method
+   * again using the value of nextPageToken as pageToken.
+   * 
+ * + * 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; + } + } + + /** + * + * + *
+   * If there might be more results than those appearing in this response, then
+   * nextPageToken is included. To get the next set of results, call this method
+   * again using the value of nextPageToken as pageToken.
+   * 
+ * + * 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 < sharedTemplates_.size(); i++) { + output.writeMessage(1, sharedTemplates_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.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 < sharedTemplates_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, sharedTemplates_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.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.designcenter.v1.ListSharedTemplatesResponse)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ListSharedTemplatesResponse other = + (com.google.cloud.designcenter.v1.ListSharedTemplatesResponse) obj; + + if (!getSharedTemplatesList().equals(other.getSharedTemplatesList())) 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 (getSharedTemplatesCount() > 0) { + hash = (37 * hash) + SHARED_TEMPLATES_FIELD_NUMBER; + hash = (53 * hash) + getSharedTemplatesList().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.designcenter.v1.ListSharedTemplatesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListSharedTemplatesResponse 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.designcenter.v1.ListSharedTemplatesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListSharedTemplatesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListSharedTemplatesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListSharedTemplatesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListSharedTemplatesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListSharedTemplatesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListSharedTemplatesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListSharedTemplatesResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListSharedTemplatesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListSharedTemplatesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ListSharedTemplatesResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for response to listing shared templates.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ListSharedTemplatesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ListSharedTemplatesResponse) + com.google.cloud.designcenter.v1.ListSharedTemplatesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_ListSharedTemplatesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_ListSharedTemplatesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ListSharedTemplatesResponse.class, + com.google.cloud.designcenter.v1.ListSharedTemplatesResponse.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.ListSharedTemplatesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (sharedTemplatesBuilder_ == null) { + sharedTemplates_ = java.util.Collections.emptyList(); + } else { + sharedTemplates_ = null; + sharedTemplatesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_ListSharedTemplatesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListSharedTemplatesResponse + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ListSharedTemplatesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListSharedTemplatesResponse build() { + com.google.cloud.designcenter.v1.ListSharedTemplatesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListSharedTemplatesResponse buildPartial() { + com.google.cloud.designcenter.v1.ListSharedTemplatesResponse result = + new com.google.cloud.designcenter.v1.ListSharedTemplatesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.designcenter.v1.ListSharedTemplatesResponse result) { + if (sharedTemplatesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + sharedTemplates_ = java.util.Collections.unmodifiableList(sharedTemplates_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.sharedTemplates_ = sharedTemplates_; + } else { + result.sharedTemplates_ = sharedTemplatesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.ListSharedTemplatesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.ListSharedTemplatesResponse) { + return mergeFrom((com.google.cloud.designcenter.v1.ListSharedTemplatesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.ListSharedTemplatesResponse other) { + if (other + == com.google.cloud.designcenter.v1.ListSharedTemplatesResponse.getDefaultInstance()) + return this; + if (sharedTemplatesBuilder_ == null) { + if (!other.sharedTemplates_.isEmpty()) { + if (sharedTemplates_.isEmpty()) { + sharedTemplates_ = other.sharedTemplates_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSharedTemplatesIsMutable(); + sharedTemplates_.addAll(other.sharedTemplates_); + } + onChanged(); + } + } else { + if (!other.sharedTemplates_.isEmpty()) { + if (sharedTemplatesBuilder_.isEmpty()) { + sharedTemplatesBuilder_.dispose(); + sharedTemplatesBuilder_ = null; + sharedTemplates_ = other.sharedTemplates_; + bitField0_ = (bitField0_ & ~0x00000001); + sharedTemplatesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetSharedTemplatesFieldBuilder() + : null; + } else { + sharedTemplatesBuilder_.addAllMessages(other.sharedTemplates_); + } + } + } + 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.designcenter.v1.SharedTemplate m = + input.readMessage( + com.google.cloud.designcenter.v1.SharedTemplate.parser(), + extensionRegistry); + if (sharedTemplatesBuilder_ == null) { + ensureSharedTemplatesIsMutable(); + sharedTemplates_.add(m); + } else { + sharedTemplatesBuilder_.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 sharedTemplates_ = + java.util.Collections.emptyList(); + + private void ensureSharedTemplatesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + sharedTemplates_ = + new java.util.ArrayList( + sharedTemplates_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.SharedTemplate, + com.google.cloud.designcenter.v1.SharedTemplate.Builder, + com.google.cloud.designcenter.v1.SharedTemplateOrBuilder> + sharedTemplatesBuilder_; + + /** + * + * + *
+     * The list of shared templates.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.SharedTemplate shared_templates = 1; + */ + public java.util.List + getSharedTemplatesList() { + if (sharedTemplatesBuilder_ == null) { + return java.util.Collections.unmodifiableList(sharedTemplates_); + } else { + return sharedTemplatesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The list of shared templates.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.SharedTemplate shared_templates = 1; + */ + public int getSharedTemplatesCount() { + if (sharedTemplatesBuilder_ == null) { + return sharedTemplates_.size(); + } else { + return sharedTemplatesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The list of shared templates.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.SharedTemplate shared_templates = 1; + */ + public com.google.cloud.designcenter.v1.SharedTemplate getSharedTemplates(int index) { + if (sharedTemplatesBuilder_ == null) { + return sharedTemplates_.get(index); + } else { + return sharedTemplatesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The list of shared templates.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.SharedTemplate shared_templates = 1; + */ + public Builder setSharedTemplates( + int index, com.google.cloud.designcenter.v1.SharedTemplate value) { + if (sharedTemplatesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSharedTemplatesIsMutable(); + sharedTemplates_.set(index, value); + onChanged(); + } else { + sharedTemplatesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of shared templates.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.SharedTemplate shared_templates = 1; + */ + public Builder setSharedTemplates( + int index, com.google.cloud.designcenter.v1.SharedTemplate.Builder builderForValue) { + if (sharedTemplatesBuilder_ == null) { + ensureSharedTemplatesIsMutable(); + sharedTemplates_.set(index, builderForValue.build()); + onChanged(); + } else { + sharedTemplatesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of shared templates.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.SharedTemplate shared_templates = 1; + */ + public Builder addSharedTemplates(com.google.cloud.designcenter.v1.SharedTemplate value) { + if (sharedTemplatesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSharedTemplatesIsMutable(); + sharedTemplates_.add(value); + onChanged(); + } else { + sharedTemplatesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The list of shared templates.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.SharedTemplate shared_templates = 1; + */ + public Builder addSharedTemplates( + int index, com.google.cloud.designcenter.v1.SharedTemplate value) { + if (sharedTemplatesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSharedTemplatesIsMutable(); + sharedTemplates_.add(index, value); + onChanged(); + } else { + sharedTemplatesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of shared templates.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.SharedTemplate shared_templates = 1; + */ + public Builder addSharedTemplates( + com.google.cloud.designcenter.v1.SharedTemplate.Builder builderForValue) { + if (sharedTemplatesBuilder_ == null) { + ensureSharedTemplatesIsMutable(); + sharedTemplates_.add(builderForValue.build()); + onChanged(); + } else { + sharedTemplatesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of shared templates.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.SharedTemplate shared_templates = 1; + */ + public Builder addSharedTemplates( + int index, com.google.cloud.designcenter.v1.SharedTemplate.Builder builderForValue) { + if (sharedTemplatesBuilder_ == null) { + ensureSharedTemplatesIsMutable(); + sharedTemplates_.add(index, builderForValue.build()); + onChanged(); + } else { + sharedTemplatesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of shared templates.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.SharedTemplate shared_templates = 1; + */ + public Builder addAllSharedTemplates( + java.lang.Iterable values) { + if (sharedTemplatesBuilder_ == null) { + ensureSharedTemplatesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sharedTemplates_); + onChanged(); + } else { + sharedTemplatesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The list of shared templates.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.SharedTemplate shared_templates = 1; + */ + public Builder clearSharedTemplates() { + if (sharedTemplatesBuilder_ == null) { + sharedTemplates_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + sharedTemplatesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The list of shared templates.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.SharedTemplate shared_templates = 1; + */ + public Builder removeSharedTemplates(int index) { + if (sharedTemplatesBuilder_ == null) { + ensureSharedTemplatesIsMutable(); + sharedTemplates_.remove(index); + onChanged(); + } else { + sharedTemplatesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The list of shared templates.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.SharedTemplate shared_templates = 1; + */ + public com.google.cloud.designcenter.v1.SharedTemplate.Builder getSharedTemplatesBuilder( + int index) { + return internalGetSharedTemplatesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The list of shared templates.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.SharedTemplate shared_templates = 1; + */ + public com.google.cloud.designcenter.v1.SharedTemplateOrBuilder getSharedTemplatesOrBuilder( + int index) { + if (sharedTemplatesBuilder_ == null) { + return sharedTemplates_.get(index); + } else { + return sharedTemplatesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The list of shared templates.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.SharedTemplate shared_templates = 1; + */ + public java.util.List + getSharedTemplatesOrBuilderList() { + if (sharedTemplatesBuilder_ != null) { + return sharedTemplatesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(sharedTemplates_); + } + } + + /** + * + * + *
+     * The list of shared templates.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.SharedTemplate shared_templates = 1; + */ + public com.google.cloud.designcenter.v1.SharedTemplate.Builder addSharedTemplatesBuilder() { + return internalGetSharedTemplatesFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.SharedTemplate.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of shared templates.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.SharedTemplate shared_templates = 1; + */ + public com.google.cloud.designcenter.v1.SharedTemplate.Builder addSharedTemplatesBuilder( + int index) { + return internalGetSharedTemplatesFieldBuilder() + .addBuilder(index, com.google.cloud.designcenter.v1.SharedTemplate.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of shared templates.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.SharedTemplate shared_templates = 1; + */ + public java.util.List + getSharedTemplatesBuilderList() { + return internalGetSharedTemplatesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.SharedTemplate, + com.google.cloud.designcenter.v1.SharedTemplate.Builder, + com.google.cloud.designcenter.v1.SharedTemplateOrBuilder> + internalGetSharedTemplatesFieldBuilder() { + if (sharedTemplatesBuilder_ == null) { + sharedTemplatesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.SharedTemplate, + com.google.cloud.designcenter.v1.SharedTemplate.Builder, + com.google.cloud.designcenter.v1.SharedTemplateOrBuilder>( + sharedTemplates_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + sharedTemplates_ = null; + } + return sharedTemplatesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * If there might be more results than those appearing in this response, then
+     * nextPageToken is included. To get the next set of results, call this method
+     * again using the value of nextPageToken as pageToken.
+     * 
+ * + * 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; + } + } + + /** + * + * + *
+     * If there might be more results than those appearing in this response, then
+     * nextPageToken is included. To get the next set of results, call this method
+     * again using the value of nextPageToken as pageToken.
+     * 
+ * + * 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; + } + } + + /** + * + * + *
+     * If there might be more results than those appearing in this response, then
+     * nextPageToken is included. To get the next set of results, call this method
+     * again using the value of nextPageToken as pageToken.
+     * 
+ * + * 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; + } + + /** + * + * + *
+     * If there might be more results than those appearing in this response, then
+     * nextPageToken is included. To get the next set of results, call this method
+     * again using the value of nextPageToken as pageToken.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * If there might be more results than those appearing in this response, then
+     * nextPageToken is included. To get the next set of results, call this method
+     * again using the value of nextPageToken as pageToken.
+     * 
+ * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ListSharedTemplatesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ListSharedTemplatesResponse) + private static final com.google.cloud.designcenter.v1.ListSharedTemplatesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.ListSharedTemplatesResponse(); + } + + public static com.google.cloud.designcenter.v1.ListSharedTemplatesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSharedTemplatesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ListSharedTemplatesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListSharedTemplatesResponseOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListSharedTemplatesResponseOrBuilder.java new file mode 100644 index 000000000000..f7bf45a7c382 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListSharedTemplatesResponseOrBuilder.java @@ -0,0 +1,114 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/sharing_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ListSharedTemplatesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ListSharedTemplatesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of shared templates.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.SharedTemplate shared_templates = 1; + */ + java.util.List getSharedTemplatesList(); + + /** + * + * + *
+   * The list of shared templates.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.SharedTemplate shared_templates = 1; + */ + com.google.cloud.designcenter.v1.SharedTemplate getSharedTemplates(int index); + + /** + * + * + *
+   * The list of shared templates.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.SharedTemplate shared_templates = 1; + */ + int getSharedTemplatesCount(); + + /** + * + * + *
+   * The list of shared templates.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.SharedTemplate shared_templates = 1; + */ + java.util.List + getSharedTemplatesOrBuilderList(); + + /** + * + * + *
+   * The list of shared templates.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.SharedTemplate shared_templates = 1; + */ + com.google.cloud.designcenter.v1.SharedTemplateOrBuilder getSharedTemplatesOrBuilder(int index); + + /** + * + * + *
+   * If there might be more results than those appearing in this response, then
+   * nextPageToken is included. To get the next set of results, call this method
+   * again using the value of nextPageToken as pageToken.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * If there might be more results than those appearing in this response, then
+   * nextPageToken is included. To get the next set of results, call this method
+   * again using the value of nextPageToken as pageToken.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListSharesRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListSharesRequest.java new file mode 100644 index 000000000000..fd70cd3c9303 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListSharesRequest.java @@ -0,0 +1,1118 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/sharing_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for listing shares of a catalog.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ListSharesRequest} + */ +@com.google.protobuf.Generated +public final class ListSharesRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ListSharesRequest) + ListSharesRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ListSharesRequest"); + } + + // Use ListSharesRequest.newBuilder() to construct. + private ListSharesRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListSharesRequest() { + parent_ = ""; + pageToken_ = ""; + orderBy_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_ListSharesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_ListSharesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ListSharesRequest.class, + com.google.cloud.designcenter.v1.ListSharesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent resource from which a list of shares is requested.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The parent resource from which a list of shares is requested.
+   * 
+ * + * + * 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 results to return from this request.
+   * Non-positive
+   * values are ignored. The presence of nextPageToken in the response
+   * indicates that more results might be available.
+   * 
+ * + * 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. If present, then retrieve the next batch of results from the
+   * preceding call to this method. pageToken must be the value of nextPageToken
+   * from the previous response. The values of other method parameters should be
+   * identical to those in the previous call.
+   * 
+ * + * 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. If present, then retrieve the next batch of results from the
+   * preceding call to this method. pageToken must be the value of nextPageToken
+   * from the previous response. The values of other method parameters should be
+   * identical to those in the previous call.
+   * 
+ * + * 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; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
+   * Optional. How the results should be sorted.
+   * 
+ * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+   * Optional. How the results should be sorted.
+   * 
+ * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, 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.designcenter.v1.ListSharesRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ListSharesRequest other = + (com.google.cloud.designcenter.v1.ListSharesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.ListSharesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListSharesRequest 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.designcenter.v1.ListSharesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListSharesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListSharesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListSharesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListSharesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListSharesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListSharesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListSharesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListSharesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListSharesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ListSharesRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for listing shares of a catalog.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ListSharesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ListSharesRequest) + com.google.cloud.designcenter.v1.ListSharesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_ListSharesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_ListSharesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ListSharesRequest.class, + com.google.cloud.designcenter.v1.ListSharesRequest.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.ListSharesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_ListSharesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListSharesRequest getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ListSharesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListSharesRequest build() { + com.google.cloud.designcenter.v1.ListSharesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListSharesRequest buildPartial() { + com.google.cloud.designcenter.v1.ListSharesRequest result = + new com.google.cloud.designcenter.v1.ListSharesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.ListSharesRequest 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.orderBy_ = orderBy_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.ListSharesRequest) { + return mergeFrom((com.google.cloud.designcenter.v1.ListSharesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.ListSharesRequest other) { + if (other == com.google.cloud.designcenter.v1.ListSharesRequest.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.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + 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_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent resource from which a list of shares is requested.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The parent resource from which a list of shares is requested.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The parent resource from which a list of shares is requested.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource from which a list of shares is requested.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource from which a list of shares is requested.
+     * 
+ * + * + * 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 results to return from this request.
+     * Non-positive
+     * values are ignored. The presence of nextPageToken in the response
+     * indicates that more results might be available.
+     * 
+ * + * 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 results to return from this request.
+     * Non-positive
+     * values are ignored. The presence of nextPageToken in the response
+     * indicates that more results might be available.
+     * 
+ * + * 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 results to return from this request.
+     * Non-positive
+     * values are ignored. The presence of nextPageToken in the response
+     * indicates that more results might be available.
+     * 
+ * + * 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. If present, then retrieve the next batch of results from the
+     * preceding call to this method. pageToken must be the value of nextPageToken
+     * from the previous response. The values of other method parameters should be
+     * identical to those in the previous call.
+     * 
+ * + * 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. If present, then retrieve the next batch of results from the
+     * preceding call to this method. pageToken must be the value of nextPageToken
+     * from the previous response. The values of other method parameters should be
+     * identical to those in the previous call.
+     * 
+ * + * 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. If present, then retrieve the next batch of results from the
+     * preceding call to this method. pageToken must be the value of nextPageToken
+     * from the previous response. The values of other method parameters should be
+     * identical to those in the previous call.
+     * 
+ * + * 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. If present, then retrieve the next batch of results from the
+     * preceding call to this method. pageToken must be the value of nextPageToken
+     * from the previous response. The values of other method parameters should be
+     * identical to those in the previous call.
+     * 
+ * + * 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. If present, then retrieve the next batch of results from the
+     * preceding call to this method. pageToken must be the value of nextPageToken
+     * from the previous response. The values of other method parameters should be
+     * identical to those in the previous call.
+     * 
+ * + * 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; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
+     * Optional. How the results should be sorted.
+     * 
+ * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+     * Optional. How the results should be sorted.
+     * 
+ * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+     * Optional. How the results should be sorted.
+     * 
+ * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. How the results should be sorted.
+     * 
+ * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. How the results should be sorted.
+     * 
+ * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ListSharesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ListSharesRequest) + private static final com.google.cloud.designcenter.v1.ListSharesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.ListSharesRequest(); + } + + public static com.google.cloud.designcenter.v1.ListSharesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSharesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ListSharesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListSharesRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListSharesRequestOrBuilder.java new file mode 100644 index 000000000000..ca29e10b8d65 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListSharesRequestOrBuilder.java @@ -0,0 +1,132 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/sharing_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ListSharesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ListSharesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource from which a list of shares is requested.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent resource from which a list of shares is requested.
+   * 
+ * + * + * 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 results to return from this request.
+   * Non-positive
+   * values are ignored. The presence of nextPageToken in the response
+   * indicates that more results might be available.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. If present, then retrieve the next batch of results from the
+   * preceding call to this method. pageToken must be the value of nextPageToken
+   * from the previous response. The values of other method parameters should be
+   * identical to those in the previous call.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * Optional. If present, then retrieve the next batch of results from the
+   * preceding call to this method. pageToken must be the value of nextPageToken
+   * from the previous response. The values of other method parameters should be
+   * identical to those in the previous call.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional. How the results should be sorted.
+   * 
+ * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
+   * Optional. How the results should be sorted.
+   * 
+ * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListSharesResponse.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListSharesResponse.java new file mode 100644 index 000000000000..586d9049e0b0 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListSharesResponse.java @@ -0,0 +1,1124 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/sharing_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for response to listing shares of a catalog.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ListSharesResponse} + */ +@com.google.protobuf.Generated +public final class ListSharesResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ListSharesResponse) + ListSharesResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ListSharesResponse"); + } + + // Use ListSharesResponse.newBuilder() to construct. + private ListSharesResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListSharesResponse() { + shares_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_ListSharesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_ListSharesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ListSharesResponse.class, + com.google.cloud.designcenter.v1.ListSharesResponse.Builder.class); + } + + public static final int SHARES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List shares_; + + /** + * + * + *
+   * The list of shares.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Share shares = 1; + */ + @java.lang.Override + public java.util.List getSharesList() { + return shares_; + } + + /** + * + * + *
+   * The list of shares.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Share shares = 1; + */ + @java.lang.Override + public java.util.List + getSharesOrBuilderList() { + return shares_; + } + + /** + * + * + *
+   * The list of shares.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Share shares = 1; + */ + @java.lang.Override + public int getSharesCount() { + return shares_.size(); + } + + /** + * + * + *
+   * The list of shares.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Share shares = 1; + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.Share getShares(int index) { + return shares_.get(index); + } + + /** + * + * + *
+   * The list of shares.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Share shares = 1; + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ShareOrBuilder getSharesOrBuilder(int index) { + return shares_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * If there might be more results than those appearing in this response, then
+   * nextPageToken is included. To get the next set of results, call this method
+   * again using the value of nextPageToken as pageToken.
+   * 
+ * + * 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; + } + } + + /** + * + * + *
+   * If there might be more results than those appearing in this response, then
+   * nextPageToken is included. To get the next set of results, call this method
+   * again using the value of nextPageToken as pageToken.
+   * 
+ * + * 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 < shares_.size(); i++) { + output.writeMessage(1, shares_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.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 < shares_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, shares_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.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.designcenter.v1.ListSharesResponse)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ListSharesResponse other = + (com.google.cloud.designcenter.v1.ListSharesResponse) obj; + + if (!getSharesList().equals(other.getSharesList())) 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 (getSharesCount() > 0) { + hash = (37 * hash) + SHARES_FIELD_NUMBER; + hash = (53 * hash) + getSharesList().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.designcenter.v1.ListSharesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListSharesResponse 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.designcenter.v1.ListSharesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListSharesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListSharesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListSharesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListSharesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListSharesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListSharesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListSharesResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListSharesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListSharesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ListSharesResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for response to listing shares of a catalog.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ListSharesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ListSharesResponse) + com.google.cloud.designcenter.v1.ListSharesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_ListSharesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_ListSharesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ListSharesResponse.class, + com.google.cloud.designcenter.v1.ListSharesResponse.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.ListSharesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (sharesBuilder_ == null) { + shares_ = java.util.Collections.emptyList(); + } else { + shares_ = null; + sharesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_ListSharesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListSharesResponse getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ListSharesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListSharesResponse build() { + com.google.cloud.designcenter.v1.ListSharesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListSharesResponse buildPartial() { + com.google.cloud.designcenter.v1.ListSharesResponse result = + new com.google.cloud.designcenter.v1.ListSharesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.designcenter.v1.ListSharesResponse result) { + if (sharesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + shares_ = java.util.Collections.unmodifiableList(shares_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.shares_ = shares_; + } else { + result.shares_ = sharesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.designcenter.v1.ListSharesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.ListSharesResponse) { + return mergeFrom((com.google.cloud.designcenter.v1.ListSharesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.ListSharesResponse other) { + if (other == com.google.cloud.designcenter.v1.ListSharesResponse.getDefaultInstance()) + return this; + if (sharesBuilder_ == null) { + if (!other.shares_.isEmpty()) { + if (shares_.isEmpty()) { + shares_ = other.shares_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSharesIsMutable(); + shares_.addAll(other.shares_); + } + onChanged(); + } + } else { + if (!other.shares_.isEmpty()) { + if (sharesBuilder_.isEmpty()) { + sharesBuilder_.dispose(); + sharesBuilder_ = null; + shares_ = other.shares_; + bitField0_ = (bitField0_ & ~0x00000001); + sharesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetSharesFieldBuilder() + : null; + } else { + sharesBuilder_.addAllMessages(other.shares_); + } + } + } + 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.designcenter.v1.Share m = + input.readMessage( + com.google.cloud.designcenter.v1.Share.parser(), extensionRegistry); + if (sharesBuilder_ == null) { + ensureSharesIsMutable(); + shares_.add(m); + } else { + sharesBuilder_.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 shares_ = + java.util.Collections.emptyList(); + + private void ensureSharesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + shares_ = new java.util.ArrayList(shares_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Share, + com.google.cloud.designcenter.v1.Share.Builder, + com.google.cloud.designcenter.v1.ShareOrBuilder> + sharesBuilder_; + + /** + * + * + *
+     * The list of shares.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Share shares = 1; + */ + public java.util.List getSharesList() { + if (sharesBuilder_ == null) { + return java.util.Collections.unmodifiableList(shares_); + } else { + return sharesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The list of shares.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Share shares = 1; + */ + public int getSharesCount() { + if (sharesBuilder_ == null) { + return shares_.size(); + } else { + return sharesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The list of shares.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Share shares = 1; + */ + public com.google.cloud.designcenter.v1.Share getShares(int index) { + if (sharesBuilder_ == null) { + return shares_.get(index); + } else { + return sharesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The list of shares.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Share shares = 1; + */ + public Builder setShares(int index, com.google.cloud.designcenter.v1.Share value) { + if (sharesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSharesIsMutable(); + shares_.set(index, value); + onChanged(); + } else { + sharesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of shares.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Share shares = 1; + */ + public Builder setShares( + int index, com.google.cloud.designcenter.v1.Share.Builder builderForValue) { + if (sharesBuilder_ == null) { + ensureSharesIsMutable(); + shares_.set(index, builderForValue.build()); + onChanged(); + } else { + sharesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of shares.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Share shares = 1; + */ + public Builder addShares(com.google.cloud.designcenter.v1.Share value) { + if (sharesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSharesIsMutable(); + shares_.add(value); + onChanged(); + } else { + sharesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The list of shares.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Share shares = 1; + */ + public Builder addShares(int index, com.google.cloud.designcenter.v1.Share value) { + if (sharesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSharesIsMutable(); + shares_.add(index, value); + onChanged(); + } else { + sharesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of shares.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Share shares = 1; + */ + public Builder addShares(com.google.cloud.designcenter.v1.Share.Builder builderForValue) { + if (sharesBuilder_ == null) { + ensureSharesIsMutable(); + shares_.add(builderForValue.build()); + onChanged(); + } else { + sharesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of shares.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Share shares = 1; + */ + public Builder addShares( + int index, com.google.cloud.designcenter.v1.Share.Builder builderForValue) { + if (sharesBuilder_ == null) { + ensureSharesIsMutable(); + shares_.add(index, builderForValue.build()); + onChanged(); + } else { + sharesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of shares.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Share shares = 1; + */ + public Builder addAllShares( + java.lang.Iterable values) { + if (sharesBuilder_ == null) { + ensureSharesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, shares_); + onChanged(); + } else { + sharesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The list of shares.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Share shares = 1; + */ + public Builder clearShares() { + if (sharesBuilder_ == null) { + shares_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + sharesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The list of shares.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Share shares = 1; + */ + public Builder removeShares(int index) { + if (sharesBuilder_ == null) { + ensureSharesIsMutable(); + shares_.remove(index); + onChanged(); + } else { + sharesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The list of shares.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Share shares = 1; + */ + public com.google.cloud.designcenter.v1.Share.Builder getSharesBuilder(int index) { + return internalGetSharesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The list of shares.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Share shares = 1; + */ + public com.google.cloud.designcenter.v1.ShareOrBuilder getSharesOrBuilder(int index) { + if (sharesBuilder_ == null) { + return shares_.get(index); + } else { + return sharesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The list of shares.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Share shares = 1; + */ + public java.util.List + getSharesOrBuilderList() { + if (sharesBuilder_ != null) { + return sharesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(shares_); + } + } + + /** + * + * + *
+     * The list of shares.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Share shares = 1; + */ + public com.google.cloud.designcenter.v1.Share.Builder addSharesBuilder() { + return internalGetSharesFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.Share.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of shares.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Share shares = 1; + */ + public com.google.cloud.designcenter.v1.Share.Builder addSharesBuilder(int index) { + return internalGetSharesFieldBuilder() + .addBuilder(index, com.google.cloud.designcenter.v1.Share.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of shares.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Share shares = 1; + */ + public java.util.List getSharesBuilderList() { + return internalGetSharesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Share, + com.google.cloud.designcenter.v1.Share.Builder, + com.google.cloud.designcenter.v1.ShareOrBuilder> + internalGetSharesFieldBuilder() { + if (sharesBuilder_ == null) { + sharesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Share, + com.google.cloud.designcenter.v1.Share.Builder, + com.google.cloud.designcenter.v1.ShareOrBuilder>( + shares_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + shares_ = null; + } + return sharesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * If there might be more results than those appearing in this response, then
+     * nextPageToken is included. To get the next set of results, call this method
+     * again using the value of nextPageToken as pageToken.
+     * 
+ * + * 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; + } + } + + /** + * + * + *
+     * If there might be more results than those appearing in this response, then
+     * nextPageToken is included. To get the next set of results, call this method
+     * again using the value of nextPageToken as pageToken.
+     * 
+ * + * 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; + } + } + + /** + * + * + *
+     * If there might be more results than those appearing in this response, then
+     * nextPageToken is included. To get the next set of results, call this method
+     * again using the value of nextPageToken as pageToken.
+     * 
+ * + * 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; + } + + /** + * + * + *
+     * If there might be more results than those appearing in this response, then
+     * nextPageToken is included. To get the next set of results, call this method
+     * again using the value of nextPageToken as pageToken.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * If there might be more results than those appearing in this response, then
+     * nextPageToken is included. To get the next set of results, call this method
+     * again using the value of nextPageToken as pageToken.
+     * 
+ * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ListSharesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ListSharesResponse) + private static final com.google.cloud.designcenter.v1.ListSharesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.ListSharesResponse(); + } + + public static com.google.cloud.designcenter.v1.ListSharesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSharesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ListSharesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListSharesResponseOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListSharesResponseOrBuilder.java new file mode 100644 index 000000000000..cab7efb5ca49 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListSharesResponseOrBuilder.java @@ -0,0 +1,114 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/sharing_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ListSharesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ListSharesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of shares.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Share shares = 1; + */ + java.util.List getSharesList(); + + /** + * + * + *
+   * The list of shares.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Share shares = 1; + */ + com.google.cloud.designcenter.v1.Share getShares(int index); + + /** + * + * + *
+   * The list of shares.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Share shares = 1; + */ + int getSharesCount(); + + /** + * + * + *
+   * The list of shares.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Share shares = 1; + */ + java.util.List + getSharesOrBuilderList(); + + /** + * + * + *
+   * The list of shares.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Share shares = 1; + */ + com.google.cloud.designcenter.v1.ShareOrBuilder getSharesOrBuilder(int index); + + /** + * + * + *
+   * If there might be more results than those appearing in this response, then
+   * nextPageToken is included. To get the next set of results, call this method
+   * again using the value of nextPageToken as pageToken.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * If there might be more results than those appearing in this response, then
+   * nextPageToken is included. To get the next set of results, call this method
+   * again using the value of nextPageToken as pageToken.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListSpacesRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListSpacesRequest.java new file mode 100644 index 000000000000..9a2d3d6a3ae5 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListSpacesRequest.java @@ -0,0 +1,1303 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/catalog_management_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for requesting a list of spaces.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ListSpacesRequest} + */ +@com.google.protobuf.Generated +public final class ListSpacesRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ListSpacesRequest) + ListSpacesRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ListSpacesRequest"); + } + + // Use ListSpacesRequest.newBuilder() to construct. + private ListSpacesRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListSpacesRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListSpacesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListSpacesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ListSpacesRequest.class, + com.google.cloud.designcenter.v1.ListSpacesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The name of the parent resource, for which spaces are listed.
+   * 
+ * + * + * 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 the parent resource, for which spaces are listed.
+   * 
+ * + * + * 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 pages to return from this request.
+   * If unspecified, the value automatically reflects the number of results
+   * returned.
+   * 
+ * + * 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. If present, retrieve the next batch of results from the preceding
+   * call to this method. pageToken must be the value of nextPageToken from the
+   * previous response. The values of other method parameters should be
+   * identical to those in the previous call.
+   * 
+ * + * 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. If present, retrieve the next batch of results from the preceding
+   * call to this method. pageToken must be the value of nextPageToken from the
+   * previous response. The values of other method parameters should be
+   * identical to those in the previous call.
+   * 
+ * + * 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; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
+   * Optional. A filter that chooses which spaces to return.
+   * 
+ * + * 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. A filter that chooses which spaces to return.
+   * 
+ * + * 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 ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
+   * Optional. How the results are sorted.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+   * Optional. How the results are sorted.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessage.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.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessage.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.designcenter.v1.ListSpacesRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ListSpacesRequest other = + (com.google.cloud.designcenter.v1.ListSpacesRequest) 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.designcenter.v1.ListSpacesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListSpacesRequest 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.designcenter.v1.ListSpacesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListSpacesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListSpacesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListSpacesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListSpacesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListSpacesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListSpacesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListSpacesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListSpacesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListSpacesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ListSpacesRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for requesting a list of spaces.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ListSpacesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ListSpacesRequest) + com.google.cloud.designcenter.v1.ListSpacesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListSpacesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListSpacesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ListSpacesRequest.class, + com.google.cloud.designcenter.v1.ListSpacesRequest.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.ListSpacesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.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.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListSpacesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListSpacesRequest getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ListSpacesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListSpacesRequest build() { + com.google.cloud.designcenter.v1.ListSpacesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListSpacesRequest buildPartial() { + com.google.cloud.designcenter.v1.ListSpacesRequest result = + new com.google.cloud.designcenter.v1.ListSpacesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.ListSpacesRequest 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 mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.ListSpacesRequest) { + return mergeFrom((com.google.cloud.designcenter.v1.ListSpacesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.ListSpacesRequest other) { + if (other == com.google.cloud.designcenter.v1.ListSpacesRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The name of the parent resource, for which spaces are listed.
+     * 
+ * + * + * 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 the parent resource, for which spaces are listed.
+     * 
+ * + * + * 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 the parent resource, for which spaces are listed.
+     * 
+ * + * + * 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 the parent resource, for which spaces are listed.
+     * 
+ * + * + * 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 the parent resource, for which spaces are listed.
+     * 
+ * + * + * 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 pages to return from this request.
+     * If unspecified, the value automatically reflects the number of results
+     * returned.
+     * 
+ * + * 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 pages to return from this request.
+     * If unspecified, the value automatically reflects the number of results
+     * returned.
+     * 
+ * + * 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 pages to return from this request.
+     * If unspecified, the value automatically reflects the number of results
+     * returned.
+     * 
+ * + * 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. If present, retrieve the next batch of results from the preceding
+     * call to this method. pageToken must be the value of nextPageToken from the
+     * previous response. The values of other method parameters should be
+     * identical to those in the previous call.
+     * 
+ * + * 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. If present, retrieve the next batch of results from the preceding
+     * call to this method. pageToken must be the value of nextPageToken from the
+     * previous response. The values of other method parameters should be
+     * identical to those in the previous call.
+     * 
+ * + * 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. If present, retrieve the next batch of results from the preceding
+     * call to this method. pageToken must be the value of nextPageToken from the
+     * previous response. The values of other method parameters should be
+     * identical to those in the previous call.
+     * 
+ * + * 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. If present, retrieve the next batch of results from the preceding
+     * call to this method. pageToken must be the value of nextPageToken from the
+     * previous response. The values of other method parameters should be
+     * identical to those in the previous call.
+     * 
+ * + * 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. If present, retrieve the next batch of results from the preceding
+     * call to this method. pageToken must be the value of nextPageToken from the
+     * previous response. The values of other method parameters should be
+     * identical to those in the previous call.
+     * 
+ * + * 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; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
+     * Optional. A filter that chooses which spaces to return.
+     * 
+ * + * 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. A filter that chooses which spaces to return.
+     * 
+ * + * 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. A filter that chooses which spaces to return.
+     * 
+ * + * 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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A filter that chooses which spaces to return.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A filter that chooses which spaces to return.
+     * 
+ * + * 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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
+     * Optional. How the results are sorted.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+     * Optional. How the results are sorted.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+     * Optional. How the results are sorted.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + + /** + * + * + *
+     * Optional. How the results are sorted.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. How the results are sorted.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ListSpacesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ListSpacesRequest) + private static final com.google.cloud.designcenter.v1.ListSpacesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.ListSpacesRequest(); + } + + public static com.google.cloud.designcenter.v1.ListSpacesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSpacesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ListSpacesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListSpacesRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListSpacesRequestOrBuilder.java new file mode 100644 index 000000000000..5668afe66c9f --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListSpacesRequestOrBuilder.java @@ -0,0 +1,157 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/catalog_management_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ListSpacesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ListSpacesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the parent resource, for which spaces are listed.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The name of the parent resource, for which spaces are listed.
+   * 
+ * + * + * 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 pages to return from this request.
+   * If unspecified, the value automatically reflects the number of results
+   * returned.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. If present, retrieve the next batch of results from the preceding
+   * call to this method. pageToken must be the value of nextPageToken from the
+   * previous response. The values of other method parameters should be
+   * identical to those in the previous call.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * Optional. If present, retrieve the next batch of results from the preceding
+   * call to this method. pageToken must be the value of nextPageToken from the
+   * previous response. The values of other method parameters should be
+   * identical to those in the previous call.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional. A filter that chooses which spaces to return.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * Optional. A filter that chooses which spaces to return.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional. How the results are sorted.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
+   * Optional. How the results are sorted.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListSpacesResponse.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListSpacesResponse.java new file mode 100644 index 000000000000..e76734881bdf --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListSpacesResponse.java @@ -0,0 +1,1414 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/catalog_management_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Results returned from projects.locations.spaces.list.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ListSpacesResponse} + */ +@com.google.protobuf.Generated +public final class ListSpacesResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ListSpacesResponse) + ListSpacesResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ListSpacesResponse"); + } + + // Use ListSpacesResponse.newBuilder() to construct. + private ListSpacesResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListSpacesResponse() { + spaces_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListSpacesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListSpacesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ListSpacesResponse.class, + com.google.cloud.designcenter.v1.ListSpacesResponse.Builder.class); + } + + public static final int SPACES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List spaces_; + + /** + * + * + *
+   * A list of spaces.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Space spaces = 1; + */ + @java.lang.Override + public java.util.List getSpacesList() { + return spaces_; + } + + /** + * + * + *
+   * A list of spaces.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Space spaces = 1; + */ + @java.lang.Override + public java.util.List + getSpacesOrBuilderList() { + return spaces_; + } + + /** + * + * + *
+   * A list of spaces.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Space spaces = 1; + */ + @java.lang.Override + public int getSpacesCount() { + return spaces_.size(); + } + + /** + * + * + *
+   * A list of spaces.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Space spaces = 1; + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.Space getSpaces(int index) { + return spaces_.get(index); + } + + /** + * + * + *
+   * A list of spaces.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Space spaces = 1; + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.SpaceOrBuilder getSpacesOrBuilder(int index) { + return spaces_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * If there might be more results than those appearing in this response,
+   * nextPageToken is included. To get the next set of results, call this method
+   * again using the value of nextPageToken as pageToken.
+   * 
+ * + * 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; + } + } + + /** + * + * + *
+   * If there might be more results than those appearing in this response,
+   * nextPageToken is included. To get the next set of results, call this method
+   * again using the value of nextPageToken as pageToken.
+   * 
+ * + * 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(); + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @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); + } + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @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 < spaces_.size(); i++) { + output.writeMessage(1, spaces_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessage.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 < spaces_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, spaces_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.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.designcenter.v1.ListSpacesResponse)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ListSpacesResponse other = + (com.google.cloud.designcenter.v1.ListSpacesResponse) obj; + + if (!getSpacesList().equals(other.getSpacesList())) 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 (getSpacesCount() > 0) { + hash = (37 * hash) + SPACES_FIELD_NUMBER; + hash = (53 * hash) + getSpacesList().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.designcenter.v1.ListSpacesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListSpacesResponse 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.designcenter.v1.ListSpacesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListSpacesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListSpacesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ListSpacesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListSpacesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListSpacesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListSpacesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListSpacesResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ListSpacesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ListSpacesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ListSpacesResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Results returned from projects.locations.spaces.list.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ListSpacesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ListSpacesResponse) + com.google.cloud.designcenter.v1.ListSpacesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListSpacesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListSpacesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ListSpacesResponse.class, + com.google.cloud.designcenter.v1.ListSpacesResponse.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.ListSpacesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (spacesBuilder_ == null) { + spaces_ = java.util.Collections.emptyList(); + } else { + spaces_ = null; + spacesBuilder_.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.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_ListSpacesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListSpacesResponse getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ListSpacesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListSpacesResponse build() { + com.google.cloud.designcenter.v1.ListSpacesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ListSpacesResponse buildPartial() { + com.google.cloud.designcenter.v1.ListSpacesResponse result = + new com.google.cloud.designcenter.v1.ListSpacesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.designcenter.v1.ListSpacesResponse result) { + if (spacesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + spaces_ = java.util.Collections.unmodifiableList(spaces_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.spaces_ = spaces_; + } else { + result.spaces_ = spacesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.designcenter.v1.ListSpacesResponse 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 mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.ListSpacesResponse) { + return mergeFrom((com.google.cloud.designcenter.v1.ListSpacesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.ListSpacesResponse other) { + if (other == com.google.cloud.designcenter.v1.ListSpacesResponse.getDefaultInstance()) + return this; + if (spacesBuilder_ == null) { + if (!other.spaces_.isEmpty()) { + if (spaces_.isEmpty()) { + spaces_ = other.spaces_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSpacesIsMutable(); + spaces_.addAll(other.spaces_); + } + onChanged(); + } + } else { + if (!other.spaces_.isEmpty()) { + if (spacesBuilder_.isEmpty()) { + spacesBuilder_.dispose(); + spacesBuilder_ = null; + spaces_ = other.spaces_; + bitField0_ = (bitField0_ & ~0x00000001); + spacesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetSpacesFieldBuilder() + : null; + } else { + spacesBuilder_.addAllMessages(other.spaces_); + } + } + } + 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.designcenter.v1.Space m = + input.readMessage( + com.google.cloud.designcenter.v1.Space.parser(), extensionRegistry); + if (spacesBuilder_ == null) { + ensureSpacesIsMutable(); + spaces_.add(m); + } else { + spacesBuilder_.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 spaces_ = + java.util.Collections.emptyList(); + + private void ensureSpacesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + spaces_ = new java.util.ArrayList(spaces_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Space, + com.google.cloud.designcenter.v1.Space.Builder, + com.google.cloud.designcenter.v1.SpaceOrBuilder> + spacesBuilder_; + + /** + * + * + *
+     * A list of spaces.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Space spaces = 1; + */ + public java.util.List getSpacesList() { + if (spacesBuilder_ == null) { + return java.util.Collections.unmodifiableList(spaces_); + } else { + return spacesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * A list of spaces.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Space spaces = 1; + */ + public int getSpacesCount() { + if (spacesBuilder_ == null) { + return spaces_.size(); + } else { + return spacesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * A list of spaces.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Space spaces = 1; + */ + public com.google.cloud.designcenter.v1.Space getSpaces(int index) { + if (spacesBuilder_ == null) { + return spaces_.get(index); + } else { + return spacesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * A list of spaces.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Space spaces = 1; + */ + public Builder setSpaces(int index, com.google.cloud.designcenter.v1.Space value) { + if (spacesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSpacesIsMutable(); + spaces_.set(index, value); + onChanged(); + } else { + spacesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * A list of spaces.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Space spaces = 1; + */ + public Builder setSpaces( + int index, com.google.cloud.designcenter.v1.Space.Builder builderForValue) { + if (spacesBuilder_ == null) { + ensureSpacesIsMutable(); + spaces_.set(index, builderForValue.build()); + onChanged(); + } else { + spacesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * A list of spaces.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Space spaces = 1; + */ + public Builder addSpaces(com.google.cloud.designcenter.v1.Space value) { + if (spacesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSpacesIsMutable(); + spaces_.add(value); + onChanged(); + } else { + spacesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * A list of spaces.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Space spaces = 1; + */ + public Builder addSpaces(int index, com.google.cloud.designcenter.v1.Space value) { + if (spacesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSpacesIsMutable(); + spaces_.add(index, value); + onChanged(); + } else { + spacesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * A list of spaces.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Space spaces = 1; + */ + public Builder addSpaces(com.google.cloud.designcenter.v1.Space.Builder builderForValue) { + if (spacesBuilder_ == null) { + ensureSpacesIsMutable(); + spaces_.add(builderForValue.build()); + onChanged(); + } else { + spacesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * A list of spaces.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Space spaces = 1; + */ + public Builder addSpaces( + int index, com.google.cloud.designcenter.v1.Space.Builder builderForValue) { + if (spacesBuilder_ == null) { + ensureSpacesIsMutable(); + spaces_.add(index, builderForValue.build()); + onChanged(); + } else { + spacesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * A list of spaces.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Space spaces = 1; + */ + public Builder addAllSpaces( + java.lang.Iterable values) { + if (spacesBuilder_ == null) { + ensureSpacesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, spaces_); + onChanged(); + } else { + spacesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * A list of spaces.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Space spaces = 1; + */ + public Builder clearSpaces() { + if (spacesBuilder_ == null) { + spaces_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + spacesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * A list of spaces.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Space spaces = 1; + */ + public Builder removeSpaces(int index) { + if (spacesBuilder_ == null) { + ensureSpacesIsMutable(); + spaces_.remove(index); + onChanged(); + } else { + spacesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * A list of spaces.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Space spaces = 1; + */ + public com.google.cloud.designcenter.v1.Space.Builder getSpacesBuilder(int index) { + return internalGetSpacesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * A list of spaces.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Space spaces = 1; + */ + public com.google.cloud.designcenter.v1.SpaceOrBuilder getSpacesOrBuilder(int index) { + if (spacesBuilder_ == null) { + return spaces_.get(index); + } else { + return spacesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * A list of spaces.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Space spaces = 1; + */ + public java.util.List + getSpacesOrBuilderList() { + if (spacesBuilder_ != null) { + return spacesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(spaces_); + } + } + + /** + * + * + *
+     * A list of spaces.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Space spaces = 1; + */ + public com.google.cloud.designcenter.v1.Space.Builder addSpacesBuilder() { + return internalGetSpacesFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.Space.getDefaultInstance()); + } + + /** + * + * + *
+     * A list of spaces.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Space spaces = 1; + */ + public com.google.cloud.designcenter.v1.Space.Builder addSpacesBuilder(int index) { + return internalGetSpacesFieldBuilder() + .addBuilder(index, com.google.cloud.designcenter.v1.Space.getDefaultInstance()); + } + + /** + * + * + *
+     * A list of spaces.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Space spaces = 1; + */ + public java.util.List getSpacesBuilderList() { + return internalGetSpacesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Space, + com.google.cloud.designcenter.v1.Space.Builder, + com.google.cloud.designcenter.v1.SpaceOrBuilder> + internalGetSpacesFieldBuilder() { + if (spacesBuilder_ == null) { + spacesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Space, + com.google.cloud.designcenter.v1.Space.Builder, + com.google.cloud.designcenter.v1.SpaceOrBuilder>( + spaces_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + spaces_ = null; + } + return spacesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * If there might be more results than those appearing in this response,
+     * nextPageToken is included. To get the next set of results, call this method
+     * again using the value of nextPageToken as pageToken.
+     * 
+ * + * 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; + } + } + + /** + * + * + *
+     * If there might be more results than those appearing in this response,
+     * nextPageToken is included. To get the next set of results, call this method
+     * again using the value of nextPageToken as pageToken.
+     * 
+ * + * 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; + } + } + + /** + * + * + *
+     * If there might be more results than those appearing in this response,
+     * nextPageToken is included. To get the next set of results, call this method
+     * again using the value of nextPageToken as pageToken.
+     * 
+ * + * 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; + } + + /** + * + * + *
+     * If there might be more results than those appearing in this response,
+     * nextPageToken is included. To get the next set of results, call this method
+     * again using the value of nextPageToken as pageToken.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * If there might be more results than those appearing in this response,
+     * nextPageToken is included. To get the next set of results, call this method
+     * again using the value of nextPageToken as pageToken.
+     * 
+ * + * 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; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @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); + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @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); + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @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; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @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; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @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; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ListSpacesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ListSpacesResponse) + private static final com.google.cloud.designcenter.v1.ListSpacesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.ListSpacesResponse(); + } + + public static com.google.cloud.designcenter.v1.ListSpacesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSpacesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ListSpacesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListSpacesResponseOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListSpacesResponseOrBuilder.java new file mode 100644 index 000000000000..80eacfe32839 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ListSpacesResponseOrBuilder.java @@ -0,0 +1,168 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/catalog_management_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ListSpacesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ListSpacesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A list of spaces.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Space spaces = 1; + */ + java.util.List getSpacesList(); + + /** + * + * + *
+   * A list of spaces.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Space spaces = 1; + */ + com.google.cloud.designcenter.v1.Space getSpaces(int index); + + /** + * + * + *
+   * A list of spaces.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Space spaces = 1; + */ + int getSpacesCount(); + + /** + * + * + *
+   * A list of spaces.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Space spaces = 1; + */ + java.util.List + getSpacesOrBuilderList(); + + /** + * + * + *
+   * A list of spaces.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Space spaces = 1; + */ + com.google.cloud.designcenter.v1.SpaceOrBuilder getSpacesOrBuilder(int index); + + /** + * + * + *
+   * If there might be more results than those appearing in this response,
+   * nextPageToken is included. To get the next set of results, call this method
+   * again using the value of nextPageToken as pageToken.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * If there might be more results than those appearing in this response,
+   * nextPageToken is included. To get the next set of results, call this method
+   * again using the value of nextPageToken as pageToken.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @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-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/LocationName.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/LocationName.java new file mode 100644 index 000000000000..0941316a42a0 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/LocationName.java @@ -0,0 +1,195 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.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; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked +@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 @Nullable 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<@Nullable LocationName> 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(@Nullable 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-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/LogicalProduct.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/LogicalProduct.java new file mode 100644 index 000000000000..b0d73f57c4d3 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/LogicalProduct.java @@ -0,0 +1,981 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Represents a Product Main logical product.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.LogicalProduct} + */ +@com.google.protobuf.Generated +public final class LogicalProduct extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.LogicalProduct) + LogicalProductOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "LogicalProduct"); + } + + // Use LogicalProduct.newBuilder() to construct. + private LogicalProduct(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private LogicalProduct() { + name_ = ""; + title_ = ""; + shortDescription_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_LogicalProduct_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_LogicalProduct_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.LogicalProduct.class, + com.google.cloud.designcenter.v1.LogicalProduct.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Output only. The resource name of the logical product.
+   * Format: logicalProducts/{logical_product}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The resource name of the logical product.
+   * Format: logicalProducts/{logical_product}
+   * 
+ * + * 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 TITLE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object title_ = ""; + + /** + * + * + *
+   * Output only. The display name of the logical product.
+   * 
+ * + * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The title. + */ + @java.lang.Override + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The display name of the logical product.
+   * 
+ * + * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for title. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SHORT_DESCRIPTION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object shortDescription_ = ""; + + /** + * + * + *
+   * Output only. A short description of the logical product.
+   * 
+ * + * string short_description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The shortDescription. + */ + @java.lang.Override + public java.lang.String getShortDescription() { + java.lang.Object ref = shortDescription_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + shortDescription_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. A short description of the logical product.
+   * 
+ * + * string short_description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for shortDescription. + */ + @java.lang.Override + public com.google.protobuf.ByteString getShortDescriptionBytes() { + java.lang.Object ref = shortDescription_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + shortDescription_ = 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, title_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(shortDescription_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, shortDescription_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, title_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(shortDescription_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, shortDescription_); + } + 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.designcenter.v1.LogicalProduct)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.LogicalProduct other = + (com.google.cloud.designcenter.v1.LogicalProduct) obj; + + if (!getName().equals(other.getName())) return false; + if (!getTitle().equals(other.getTitle())) return false; + if (!getShortDescription().equals(other.getShortDescription())) 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) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + hash = (37 * hash) + SHORT_DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getShortDescription().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.LogicalProduct parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.LogicalProduct 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.designcenter.v1.LogicalProduct parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.LogicalProduct parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.LogicalProduct parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.LogicalProduct parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.LogicalProduct parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.LogicalProduct parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.LogicalProduct parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.LogicalProduct parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.LogicalProduct parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.LogicalProduct parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.LogicalProduct 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Represents a Product Main logical product.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.LogicalProduct} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.LogicalProduct) + com.google.cloud.designcenter.v1.LogicalProductOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_LogicalProduct_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_LogicalProduct_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.LogicalProduct.class, + com.google.cloud.designcenter.v1.LogicalProduct.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.LogicalProduct.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + title_ = ""; + shortDescription_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_LogicalProduct_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.LogicalProduct getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.LogicalProduct.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.LogicalProduct build() { + com.google.cloud.designcenter.v1.LogicalProduct result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.LogicalProduct buildPartial() { + com.google.cloud.designcenter.v1.LogicalProduct result = + new com.google.cloud.designcenter.v1.LogicalProduct(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.LogicalProduct result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.title_ = title_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.shortDescription_ = shortDescription_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.LogicalProduct) { + return mergeFrom((com.google.cloud.designcenter.v1.LogicalProduct) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.LogicalProduct other) { + if (other == com.google.cloud.designcenter.v1.LogicalProduct.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getTitle().isEmpty()) { + title_ = other.title_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getShortDescription().isEmpty()) { + shortDescription_ = other.shortDescription_; + 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 18: + { + title_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + shortDescription_ = 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_ = ""; + + /** + * + * + *
+     * Output only. The resource name of the logical product.
+     * Format: logicalProducts/{logical_product}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The resource name of the logical product.
+     * Format: logicalProducts/{logical_product}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The resource name of the logical product.
+     * Format: logicalProducts/{logical_product}
+     * 
+ * + * 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 resource name of the logical product.
+     * Format: logicalProducts/{logical_product}
+     * 
+ * + * 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 resource name of the logical product.
+     * Format: logicalProducts/{logical_product}
+     * 
+ * + * 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 java.lang.Object title_ = ""; + + /** + * + * + *
+     * Output only. The display name of the logical product.
+     * 
+ * + * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The title. + */ + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The display name of the logical product.
+     * 
+ * + * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for title. + */ + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The display name of the logical product.
+     * 
+ * + * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The title to set. + * @return This builder for chaining. + */ + public Builder setTitle(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + title_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The display name of the logical product.
+     * 
+ * + * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearTitle() { + title_ = getDefaultInstance().getTitle(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The display name of the logical product.
+     * 
+ * + * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for title to set. + * @return This builder for chaining. + */ + public Builder setTitleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + title_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object shortDescription_ = ""; + + /** + * + * + *
+     * Output only. A short description of the logical product.
+     * 
+ * + * string short_description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The shortDescription. + */ + public java.lang.String getShortDescription() { + java.lang.Object ref = shortDescription_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + shortDescription_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. A short description of the logical product.
+     * 
+ * + * string short_description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for shortDescription. + */ + public com.google.protobuf.ByteString getShortDescriptionBytes() { + java.lang.Object ref = shortDescription_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + shortDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. A short description of the logical product.
+     * 
+ * + * string short_description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The shortDescription to set. + * @return This builder for chaining. + */ + public Builder setShortDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + shortDescription_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. A short description of the logical product.
+     * 
+ * + * string short_description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearShortDescription() { + shortDescription_ = getDefaultInstance().getShortDescription(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. A short description of the logical product.
+     * 
+ * + * string short_description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for shortDescription to set. + * @return This builder for chaining. + */ + public Builder setShortDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + shortDescription_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.LogicalProduct) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.LogicalProduct) + private static final com.google.cloud.designcenter.v1.LogicalProduct DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.LogicalProduct(); + } + + public static com.google.cloud.designcenter.v1.LogicalProduct getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LogicalProduct parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.LogicalProduct getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/LogicalProductOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/LogicalProductOrBuilder.java new file mode 100644 index 000000000000..54044c381bb4 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/LogicalProductOrBuilder.java @@ -0,0 +1,108 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface LogicalProductOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.LogicalProduct) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The resource name of the logical product.
+   * Format: logicalProducts/{logical_product}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Output only. The resource name of the logical product.
+   * Format: logicalProducts/{logical_product}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. The display name of the logical product.
+   * 
+ * + * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The title. + */ + java.lang.String getTitle(); + + /** + * + * + *
+   * Output only. The display name of the logical product.
+   * 
+ * + * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for title. + */ + com.google.protobuf.ByteString getTitleBytes(); + + /** + * + * + *
+   * Output only. A short description of the logical product.
+   * 
+ * + * string short_description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The shortDescription. + */ + java.lang.String getShortDescription(); + + /** + * + * + *
+   * Output only. A short description of the logical product.
+   * 
+ * + * string short_description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for shortDescription. + */ + com.google.protobuf.ByteString getShortDescriptionBytes(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/MetadataInput.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/MetadataInput.java new file mode 100644 index 000000000000..03355ce387ad --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/MetadataInput.java @@ -0,0 +1,721 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Metadata for the input
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.MetadataInput} + */ +@com.google.protobuf.Generated +public final class MetadataInput extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.MetadataInput) + MetadataInputOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "MetadataInput"); + } + + // Use MetadataInput.newBuilder() to construct. + private MetadataInput(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private MetadataInput() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_MetadataInput_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_MetadataInput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.MetadataInput.class, + com.google.cloud.designcenter.v1.MetadataInput.Builder.class); + } + + private int bitField0_; + public static final int SPEC_FIELD_NUMBER = 1; + private com.google.cloud.designcenter.v1.MetadataInputSpec spec_; + + /** + * + * + *
+   * Required. spec containing the metadata
+   * 
+ * + * + * .google.cloud.designcenter.v1.MetadataInputSpec spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the spec field is set. + */ + @java.lang.Override + public boolean hasSpec() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. spec containing the metadata
+   * 
+ * + * + * .google.cloud.designcenter.v1.MetadataInputSpec spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The spec. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.MetadataInputSpec getSpec() { + return spec_ == null + ? com.google.cloud.designcenter.v1.MetadataInputSpec.getDefaultInstance() + : spec_; + } + + /** + * + * + *
+   * Required. spec containing the metadata
+   * 
+ * + * + * .google.cloud.designcenter.v1.MetadataInputSpec spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.MetadataInputSpecOrBuilder getSpecOrBuilder() { + return spec_ == null + ? com.google.cloud.designcenter.v1.MetadataInputSpec.getDefaultInstance() + : spec_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getSpec()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSpec()); + } + 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.designcenter.v1.MetadataInput)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.MetadataInput other = + (com.google.cloud.designcenter.v1.MetadataInput) obj; + + if (hasSpec() != other.hasSpec()) return false; + if (hasSpec()) { + if (!getSpec().equals(other.getSpec())) 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 (hasSpec()) { + hash = (37 * hash) + SPEC_FIELD_NUMBER; + hash = (53 * hash) + getSpec().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.MetadataInput parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.MetadataInput 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.designcenter.v1.MetadataInput parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.MetadataInput parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.MetadataInput parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.MetadataInput parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.MetadataInput parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.MetadataInput parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.MetadataInput parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.MetadataInput parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.MetadataInput parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.MetadataInput parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.MetadataInput 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Metadata for the input
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.MetadataInput} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.MetadataInput) + com.google.cloud.designcenter.v1.MetadataInputOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_MetadataInput_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_MetadataInput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.MetadataInput.class, + com.google.cloud.designcenter.v1.MetadataInput.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.MetadataInput.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetSpecFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + spec_ = null; + if (specBuilder_ != null) { + specBuilder_.dispose(); + specBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_MetadataInput_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.MetadataInput getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.MetadataInput.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.MetadataInput build() { + com.google.cloud.designcenter.v1.MetadataInput result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.MetadataInput buildPartial() { + com.google.cloud.designcenter.v1.MetadataInput result = + new com.google.cloud.designcenter.v1.MetadataInput(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.MetadataInput result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.spec_ = specBuilder_ == null ? spec_ : specBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.MetadataInput) { + return mergeFrom((com.google.cloud.designcenter.v1.MetadataInput) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.MetadataInput other) { + if (other == com.google.cloud.designcenter.v1.MetadataInput.getDefaultInstance()) return this; + if (other.hasSpec()) { + mergeSpec(other.getSpec()); + } + 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(internalGetSpecFieldBuilder().getBuilder(), extensionRegistry); + 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 com.google.cloud.designcenter.v1.MetadataInputSpec spec_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.MetadataInputSpec, + com.google.cloud.designcenter.v1.MetadataInputSpec.Builder, + com.google.cloud.designcenter.v1.MetadataInputSpecOrBuilder> + specBuilder_; + + /** + * + * + *
+     * Required. spec containing the metadata
+     * 
+ * + * + * .google.cloud.designcenter.v1.MetadataInputSpec spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the spec field is set. + */ + public boolean hasSpec() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Required. spec containing the metadata
+     * 
+ * + * + * .google.cloud.designcenter.v1.MetadataInputSpec spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The spec. + */ + public com.google.cloud.designcenter.v1.MetadataInputSpec getSpec() { + if (specBuilder_ == null) { + return spec_ == null + ? com.google.cloud.designcenter.v1.MetadataInputSpec.getDefaultInstance() + : spec_; + } else { + return specBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. spec containing the metadata
+     * 
+ * + * + * .google.cloud.designcenter.v1.MetadataInputSpec spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSpec(com.google.cloud.designcenter.v1.MetadataInputSpec value) { + if (specBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + spec_ = value; + } else { + specBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. spec containing the metadata
+     * 
+ * + * + * .google.cloud.designcenter.v1.MetadataInputSpec spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSpec( + com.google.cloud.designcenter.v1.MetadataInputSpec.Builder builderForValue) { + if (specBuilder_ == null) { + spec_ = builderForValue.build(); + } else { + specBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. spec containing the metadata
+     * 
+ * + * + * .google.cloud.designcenter.v1.MetadataInputSpec spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeSpec(com.google.cloud.designcenter.v1.MetadataInputSpec value) { + if (specBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && spec_ != null + && spec_ != com.google.cloud.designcenter.v1.MetadataInputSpec.getDefaultInstance()) { + getSpecBuilder().mergeFrom(value); + } else { + spec_ = value; + } + } else { + specBuilder_.mergeFrom(value); + } + if (spec_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. spec containing the metadata
+     * 
+ * + * + * .google.cloud.designcenter.v1.MetadataInputSpec spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearSpec() { + bitField0_ = (bitField0_ & ~0x00000001); + spec_ = null; + if (specBuilder_ != null) { + specBuilder_.dispose(); + specBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. spec containing the metadata
+     * 
+ * + * + * .google.cloud.designcenter.v1.MetadataInputSpec spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.MetadataInputSpec.Builder getSpecBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetSpecFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. spec containing the metadata
+     * 
+ * + * + * .google.cloud.designcenter.v1.MetadataInputSpec spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.MetadataInputSpecOrBuilder getSpecOrBuilder() { + if (specBuilder_ != null) { + return specBuilder_.getMessageOrBuilder(); + } else { + return spec_ == null + ? com.google.cloud.designcenter.v1.MetadataInputSpec.getDefaultInstance() + : spec_; + } + } + + /** + * + * + *
+     * Required. spec containing the metadata
+     * 
+ * + * + * .google.cloud.designcenter.v1.MetadataInputSpec spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.MetadataInputSpec, + com.google.cloud.designcenter.v1.MetadataInputSpec.Builder, + com.google.cloud.designcenter.v1.MetadataInputSpecOrBuilder> + internalGetSpecFieldBuilder() { + if (specBuilder_ == null) { + specBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.MetadataInputSpec, + com.google.cloud.designcenter.v1.MetadataInputSpec.Builder, + com.google.cloud.designcenter.v1.MetadataInputSpecOrBuilder>( + getSpec(), getParentForChildren(), isClean()); + spec_ = null; + } + return specBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.MetadataInput) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.MetadataInput) + private static final com.google.cloud.designcenter.v1.MetadataInput DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.MetadataInput(); + } + + public static com.google.cloud.designcenter.v1.MetadataInput getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MetadataInput parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.MetadataInput getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/MetadataInputOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/MetadataInputOrBuilder.java new file mode 100644 index 000000000000..dd52e66a280a --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/MetadataInputOrBuilder.java @@ -0,0 +1,71 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface MetadataInputOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.MetadataInput) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. spec containing the metadata
+   * 
+ * + * + * .google.cloud.designcenter.v1.MetadataInputSpec spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the spec field is set. + */ + boolean hasSpec(); + + /** + * + * + *
+   * Required. spec containing the metadata
+   * 
+ * + * + * .google.cloud.designcenter.v1.MetadataInputSpec spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The spec. + */ + com.google.cloud.designcenter.v1.MetadataInputSpec getSpec(); + + /** + * + * + *
+   * Required. spec containing the metadata
+   * 
+ * + * + * .google.cloud.designcenter.v1.MetadataInputSpec spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.designcenter.v1.MetadataInputSpecOrBuilder getSpecOrBuilder(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/MetadataInputSpec.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/MetadataInputSpec.java new file mode 100644 index 000000000000..422aa6360bbf --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/MetadataInputSpec.java @@ -0,0 +1,1657 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Specifications for the input
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.MetadataInputSpec} + */ +@com.google.protobuf.Generated +public final class MetadataInputSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.MetadataInputSpec) + MetadataInputSpecOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "MetadataInputSpec"); + } + + // Use MetadataInputSpec.newBuilder() to construct. + private MetadataInputSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private MetadataInputSpec() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_MetadataInputSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_MetadataInputSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.MetadataInputSpec.class, + com.google.cloud.designcenter.v1.MetadataInputSpec.Builder.class); + } + + private int bitField0_; + public static final int INFO_FIELD_NUMBER = 1; + private com.google.cloud.designcenter.v1.TemplateInfo info_; + + /** + * + * + *
+   * Optional. TemplateInfo provides the actuation tool information.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TemplateInfo info = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the info field is set. + */ + @java.lang.Override + public boolean hasInfo() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. TemplateInfo provides the actuation tool information.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TemplateInfo info = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The info. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TemplateInfo getInfo() { + return info_ == null + ? com.google.cloud.designcenter.v1.TemplateInfo.getDefaultInstance() + : info_; + } + + /** + * + * + *
+   * Optional. TemplateInfo provides the actuation tool information.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TemplateInfo info = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TemplateInfoOrBuilder getInfoOrBuilder() { + return info_ == null + ? com.google.cloud.designcenter.v1.TemplateInfo.getDefaultInstance() + : info_; + } + + public static final int INTERFACES_FIELD_NUMBER = 3; + private com.google.cloud.designcenter.v1.TemplateSchema interfaces_; + + /** + * + * + *
+   * Optional. TemplateSchemas provides the input variables lists and connection
+   * information.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TemplateSchema interfaces = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the interfaces field is set. + */ + @java.lang.Override + public boolean hasInterfaces() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. TemplateSchemas provides the input variables lists and connection
+   * information.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TemplateSchema interfaces = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The interfaces. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TemplateSchema getInterfaces() { + return interfaces_ == null + ? com.google.cloud.designcenter.v1.TemplateSchema.getDefaultInstance() + : interfaces_; + } + + /** + * + * + *
+   * Optional. TemplateSchemas provides the input variables lists and connection
+   * information.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TemplateSchema interfaces = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TemplateSchemaOrBuilder getInterfacesOrBuilder() { + return interfaces_ == null + ? com.google.cloud.designcenter.v1.TemplateSchema.getDefaultInstance() + : interfaces_; + } + + public static final int REQUIREMENTS_FIELD_NUMBER = 4; + private com.google.cloud.designcenter.v1.TemplateRequirements requirements_; + + /** + * + * + *
+   * Required. TemplateRequirements defines the roles required and the provider
+   * versions.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TemplateRequirements requirements = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the requirements field is set. + */ + @java.lang.Override + public boolean hasRequirements() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Required. TemplateRequirements defines the roles required and the provider
+   * versions.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TemplateRequirements requirements = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The requirements. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TemplateRequirements getRequirements() { + return requirements_ == null + ? com.google.cloud.designcenter.v1.TemplateRequirements.getDefaultInstance() + : requirements_; + } + + /** + * + * + *
+   * Required. TemplateRequirements defines the roles required and the provider
+   * versions.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TemplateRequirements requirements = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TemplateRequirementsOrBuilder getRequirementsOrBuilder() { + return requirements_ == null + ? com.google.cloud.designcenter.v1.TemplateRequirements.getDefaultInstance() + : requirements_; + } + + public static final int UI_FIELD_NUMBER = 5; + private com.google.cloud.designcenter.v1.TemplateUi ui_; + + /** + * + * + *
+   * Optional. TemplateUi defines the UI related information for the Template.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TemplateUi ui = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the ui field is set. + */ + @java.lang.Override + public boolean hasUi() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Optional. TemplateUi defines the UI related information for the Template.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TemplateUi ui = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The ui. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TemplateUi getUi() { + return ui_ == null ? com.google.cloud.designcenter.v1.TemplateUi.getDefaultInstance() : ui_; + } + + /** + * + * + *
+   * Optional. TemplateUi defines the UI related information for the Template.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TemplateUi ui = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TemplateUiOrBuilder getUiOrBuilder() { + return ui_ == null ? com.google.cloud.designcenter.v1.TemplateUi.getDefaultInstance() : ui_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getInfo()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getInterfaces()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(4, getRequirements()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(5, getUi()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInfo()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getInterfaces()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getRequirements()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUi()); + } + 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.designcenter.v1.MetadataInputSpec)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.MetadataInputSpec other = + (com.google.cloud.designcenter.v1.MetadataInputSpec) obj; + + if (hasInfo() != other.hasInfo()) return false; + if (hasInfo()) { + if (!getInfo().equals(other.getInfo())) return false; + } + if (hasInterfaces() != other.hasInterfaces()) return false; + if (hasInterfaces()) { + if (!getInterfaces().equals(other.getInterfaces())) return false; + } + if (hasRequirements() != other.hasRequirements()) return false; + if (hasRequirements()) { + if (!getRequirements().equals(other.getRequirements())) return false; + } + if (hasUi() != other.hasUi()) return false; + if (hasUi()) { + if (!getUi().equals(other.getUi())) 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 (hasInfo()) { + hash = (37 * hash) + INFO_FIELD_NUMBER; + hash = (53 * hash) + getInfo().hashCode(); + } + if (hasInterfaces()) { + hash = (37 * hash) + INTERFACES_FIELD_NUMBER; + hash = (53 * hash) + getInterfaces().hashCode(); + } + if (hasRequirements()) { + hash = (37 * hash) + REQUIREMENTS_FIELD_NUMBER; + hash = (53 * hash) + getRequirements().hashCode(); + } + if (hasUi()) { + hash = (37 * hash) + UI_FIELD_NUMBER; + hash = (53 * hash) + getUi().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.MetadataInputSpec parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.MetadataInputSpec 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.designcenter.v1.MetadataInputSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.MetadataInputSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.MetadataInputSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.MetadataInputSpec parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.MetadataInputSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.MetadataInputSpec parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.MetadataInputSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.MetadataInputSpec parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.MetadataInputSpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.MetadataInputSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.MetadataInputSpec 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Specifications for the input
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.MetadataInputSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.MetadataInputSpec) + com.google.cloud.designcenter.v1.MetadataInputSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_MetadataInputSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_MetadataInputSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.MetadataInputSpec.class, + com.google.cloud.designcenter.v1.MetadataInputSpec.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.MetadataInputSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetInfoFieldBuilder(); + internalGetInterfacesFieldBuilder(); + internalGetRequirementsFieldBuilder(); + internalGetUiFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + info_ = null; + if (infoBuilder_ != null) { + infoBuilder_.dispose(); + infoBuilder_ = null; + } + interfaces_ = null; + if (interfacesBuilder_ != null) { + interfacesBuilder_.dispose(); + interfacesBuilder_ = null; + } + requirements_ = null; + if (requirementsBuilder_ != null) { + requirementsBuilder_.dispose(); + requirementsBuilder_ = null; + } + ui_ = null; + if (uiBuilder_ != null) { + uiBuilder_.dispose(); + uiBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_MetadataInputSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.MetadataInputSpec getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.MetadataInputSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.MetadataInputSpec build() { + com.google.cloud.designcenter.v1.MetadataInputSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.MetadataInputSpec buildPartial() { + com.google.cloud.designcenter.v1.MetadataInputSpec result = + new com.google.cloud.designcenter.v1.MetadataInputSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.MetadataInputSpec result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.info_ = infoBuilder_ == null ? info_ : infoBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.interfaces_ = interfacesBuilder_ == null ? interfaces_ : interfacesBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.requirements_ = + requirementsBuilder_ == null ? requirements_ : requirementsBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.ui_ = uiBuilder_ == null ? ui_ : uiBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.MetadataInputSpec) { + return mergeFrom((com.google.cloud.designcenter.v1.MetadataInputSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.MetadataInputSpec other) { + if (other == com.google.cloud.designcenter.v1.MetadataInputSpec.getDefaultInstance()) + return this; + if (other.hasInfo()) { + mergeInfo(other.getInfo()); + } + if (other.hasInterfaces()) { + mergeInterfaces(other.getInterfaces()); + } + if (other.hasRequirements()) { + mergeRequirements(other.getRequirements()); + } + if (other.hasUi()) { + mergeUi(other.getUi()); + } + 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(internalGetInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 26: + { + input.readMessage( + internalGetInterfacesFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetRequirementsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 42: + { + input.readMessage(internalGetUiFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + 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 com.google.cloud.designcenter.v1.TemplateInfo info_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.TemplateInfo, + com.google.cloud.designcenter.v1.TemplateInfo.Builder, + com.google.cloud.designcenter.v1.TemplateInfoOrBuilder> + infoBuilder_; + + /** + * + * + *
+     * Optional. TemplateInfo provides the actuation tool information.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateInfo info = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the info field is set. + */ + public boolean hasInfo() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Optional. TemplateInfo provides the actuation tool information.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateInfo info = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The info. + */ + public com.google.cloud.designcenter.v1.TemplateInfo getInfo() { + if (infoBuilder_ == null) { + return info_ == null + ? com.google.cloud.designcenter.v1.TemplateInfo.getDefaultInstance() + : info_; + } else { + return infoBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. TemplateInfo provides the actuation tool information.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateInfo info = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setInfo(com.google.cloud.designcenter.v1.TemplateInfo value) { + if (infoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + info_ = value; + } else { + infoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. TemplateInfo provides the actuation tool information.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateInfo info = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setInfo(com.google.cloud.designcenter.v1.TemplateInfo.Builder builderForValue) { + if (infoBuilder_ == null) { + info_ = builderForValue.build(); + } else { + infoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. TemplateInfo provides the actuation tool information.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateInfo info = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeInfo(com.google.cloud.designcenter.v1.TemplateInfo value) { + if (infoBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && info_ != null + && info_ != com.google.cloud.designcenter.v1.TemplateInfo.getDefaultInstance()) { + getInfoBuilder().mergeFrom(value); + } else { + info_ = value; + } + } else { + infoBuilder_.mergeFrom(value); + } + if (info_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. TemplateInfo provides the actuation tool information.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateInfo info = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearInfo() { + bitField0_ = (bitField0_ & ~0x00000001); + info_ = null; + if (infoBuilder_ != null) { + infoBuilder_.dispose(); + infoBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. TemplateInfo provides the actuation tool information.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateInfo info = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.TemplateInfo.Builder getInfoBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetInfoFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. TemplateInfo provides the actuation tool information.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateInfo info = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.TemplateInfoOrBuilder getInfoOrBuilder() { + if (infoBuilder_ != null) { + return infoBuilder_.getMessageOrBuilder(); + } else { + return info_ == null + ? com.google.cloud.designcenter.v1.TemplateInfo.getDefaultInstance() + : info_; + } + } + + /** + * + * + *
+     * Optional. TemplateInfo provides the actuation tool information.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateInfo info = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.TemplateInfo, + com.google.cloud.designcenter.v1.TemplateInfo.Builder, + com.google.cloud.designcenter.v1.TemplateInfoOrBuilder> + internalGetInfoFieldBuilder() { + if (infoBuilder_ == null) { + infoBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.TemplateInfo, + com.google.cloud.designcenter.v1.TemplateInfo.Builder, + com.google.cloud.designcenter.v1.TemplateInfoOrBuilder>( + getInfo(), getParentForChildren(), isClean()); + info_ = null; + } + return infoBuilder_; + } + + private com.google.cloud.designcenter.v1.TemplateSchema interfaces_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.TemplateSchema, + com.google.cloud.designcenter.v1.TemplateSchema.Builder, + com.google.cloud.designcenter.v1.TemplateSchemaOrBuilder> + interfacesBuilder_; + + /** + * + * + *
+     * Optional. TemplateSchemas provides the input variables lists and connection
+     * information.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateSchema interfaces = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the interfaces field is set. + */ + public boolean hasInterfaces() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Optional. TemplateSchemas provides the input variables lists and connection
+     * information.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateSchema interfaces = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The interfaces. + */ + public com.google.cloud.designcenter.v1.TemplateSchema getInterfaces() { + if (interfacesBuilder_ == null) { + return interfaces_ == null + ? com.google.cloud.designcenter.v1.TemplateSchema.getDefaultInstance() + : interfaces_; + } else { + return interfacesBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. TemplateSchemas provides the input variables lists and connection
+     * information.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateSchema interfaces = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setInterfaces(com.google.cloud.designcenter.v1.TemplateSchema value) { + if (interfacesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + interfaces_ = value; + } else { + interfacesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. TemplateSchemas provides the input variables lists and connection
+     * information.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateSchema interfaces = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setInterfaces( + com.google.cloud.designcenter.v1.TemplateSchema.Builder builderForValue) { + if (interfacesBuilder_ == null) { + interfaces_ = builderForValue.build(); + } else { + interfacesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. TemplateSchemas provides the input variables lists and connection
+     * information.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateSchema interfaces = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeInterfaces(com.google.cloud.designcenter.v1.TemplateSchema value) { + if (interfacesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && interfaces_ != null + && interfaces_ + != com.google.cloud.designcenter.v1.TemplateSchema.getDefaultInstance()) { + getInterfacesBuilder().mergeFrom(value); + } else { + interfaces_ = value; + } + } else { + interfacesBuilder_.mergeFrom(value); + } + if (interfaces_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. TemplateSchemas provides the input variables lists and connection
+     * information.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateSchema interfaces = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearInterfaces() { + bitField0_ = (bitField0_ & ~0x00000002); + interfaces_ = null; + if (interfacesBuilder_ != null) { + interfacesBuilder_.dispose(); + interfacesBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. TemplateSchemas provides the input variables lists and connection
+     * information.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateSchema interfaces = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.TemplateSchema.Builder getInterfacesBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetInterfacesFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. TemplateSchemas provides the input variables lists and connection
+     * information.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateSchema interfaces = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.TemplateSchemaOrBuilder getInterfacesOrBuilder() { + if (interfacesBuilder_ != null) { + return interfacesBuilder_.getMessageOrBuilder(); + } else { + return interfaces_ == null + ? com.google.cloud.designcenter.v1.TemplateSchema.getDefaultInstance() + : interfaces_; + } + } + + /** + * + * + *
+     * Optional. TemplateSchemas provides the input variables lists and connection
+     * information.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateSchema interfaces = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.TemplateSchema, + com.google.cloud.designcenter.v1.TemplateSchema.Builder, + com.google.cloud.designcenter.v1.TemplateSchemaOrBuilder> + internalGetInterfacesFieldBuilder() { + if (interfacesBuilder_ == null) { + interfacesBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.TemplateSchema, + com.google.cloud.designcenter.v1.TemplateSchema.Builder, + com.google.cloud.designcenter.v1.TemplateSchemaOrBuilder>( + getInterfaces(), getParentForChildren(), isClean()); + interfaces_ = null; + } + return interfacesBuilder_; + } + + private com.google.cloud.designcenter.v1.TemplateRequirements requirements_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.TemplateRequirements, + com.google.cloud.designcenter.v1.TemplateRequirements.Builder, + com.google.cloud.designcenter.v1.TemplateRequirementsOrBuilder> + requirementsBuilder_; + + /** + * + * + *
+     * Required. TemplateRequirements defines the roles required and the provider
+     * versions.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateRequirements requirements = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the requirements field is set. + */ + public boolean hasRequirements() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Required. TemplateRequirements defines the roles required and the provider
+     * versions.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateRequirements requirements = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The requirements. + */ + public com.google.cloud.designcenter.v1.TemplateRequirements getRequirements() { + if (requirementsBuilder_ == null) { + return requirements_ == null + ? com.google.cloud.designcenter.v1.TemplateRequirements.getDefaultInstance() + : requirements_; + } else { + return requirementsBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. TemplateRequirements defines the roles required and the provider
+     * versions.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateRequirements requirements = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRequirements(com.google.cloud.designcenter.v1.TemplateRequirements value) { + if (requirementsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + requirements_ = value; + } else { + requirementsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. TemplateRequirements defines the roles required and the provider
+     * versions.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateRequirements requirements = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRequirements( + com.google.cloud.designcenter.v1.TemplateRequirements.Builder builderForValue) { + if (requirementsBuilder_ == null) { + requirements_ = builderForValue.build(); + } else { + requirementsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. TemplateRequirements defines the roles required and the provider
+     * versions.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateRequirements requirements = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeRequirements(com.google.cloud.designcenter.v1.TemplateRequirements value) { + if (requirementsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && requirements_ != null + && requirements_ + != com.google.cloud.designcenter.v1.TemplateRequirements.getDefaultInstance()) { + getRequirementsBuilder().mergeFrom(value); + } else { + requirements_ = value; + } + } else { + requirementsBuilder_.mergeFrom(value); + } + if (requirements_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. TemplateRequirements defines the roles required and the provider
+     * versions.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateRequirements requirements = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRequirements() { + bitField0_ = (bitField0_ & ~0x00000004); + requirements_ = null; + if (requirementsBuilder_ != null) { + requirementsBuilder_.dispose(); + requirementsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. TemplateRequirements defines the roles required and the provider
+     * versions.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateRequirements requirements = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.TemplateRequirements.Builder getRequirementsBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetRequirementsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. TemplateRequirements defines the roles required and the provider
+     * versions.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateRequirements requirements = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.TemplateRequirementsOrBuilder + getRequirementsOrBuilder() { + if (requirementsBuilder_ != null) { + return requirementsBuilder_.getMessageOrBuilder(); + } else { + return requirements_ == null + ? com.google.cloud.designcenter.v1.TemplateRequirements.getDefaultInstance() + : requirements_; + } + } + + /** + * + * + *
+     * Required. TemplateRequirements defines the roles required and the provider
+     * versions.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateRequirements requirements = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.TemplateRequirements, + com.google.cloud.designcenter.v1.TemplateRequirements.Builder, + com.google.cloud.designcenter.v1.TemplateRequirementsOrBuilder> + internalGetRequirementsFieldBuilder() { + if (requirementsBuilder_ == null) { + requirementsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.TemplateRequirements, + com.google.cloud.designcenter.v1.TemplateRequirements.Builder, + com.google.cloud.designcenter.v1.TemplateRequirementsOrBuilder>( + getRequirements(), getParentForChildren(), isClean()); + requirements_ = null; + } + return requirementsBuilder_; + } + + private com.google.cloud.designcenter.v1.TemplateUi ui_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.TemplateUi, + com.google.cloud.designcenter.v1.TemplateUi.Builder, + com.google.cloud.designcenter.v1.TemplateUiOrBuilder> + uiBuilder_; + + /** + * + * + *
+     * Optional. TemplateUi defines the UI related information for the Template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateUi ui = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the ui field is set. + */ + public boolean hasUi() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Optional. TemplateUi defines the UI related information for the Template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateUi ui = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The ui. + */ + public com.google.cloud.designcenter.v1.TemplateUi getUi() { + if (uiBuilder_ == null) { + return ui_ == null ? com.google.cloud.designcenter.v1.TemplateUi.getDefaultInstance() : ui_; + } else { + return uiBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. TemplateUi defines the UI related information for the Template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateUi ui = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUi(com.google.cloud.designcenter.v1.TemplateUi value) { + if (uiBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ui_ = value; + } else { + uiBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. TemplateUi defines the UI related information for the Template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateUi ui = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUi(com.google.cloud.designcenter.v1.TemplateUi.Builder builderForValue) { + if (uiBuilder_ == null) { + ui_ = builderForValue.build(); + } else { + uiBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. TemplateUi defines the UI related information for the Template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateUi ui = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUi(com.google.cloud.designcenter.v1.TemplateUi value) { + if (uiBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && ui_ != null + && ui_ != com.google.cloud.designcenter.v1.TemplateUi.getDefaultInstance()) { + getUiBuilder().mergeFrom(value); + } else { + ui_ = value; + } + } else { + uiBuilder_.mergeFrom(value); + } + if (ui_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. TemplateUi defines the UI related information for the Template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateUi ui = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUi() { + bitField0_ = (bitField0_ & ~0x00000008); + ui_ = null; + if (uiBuilder_ != null) { + uiBuilder_.dispose(); + uiBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. TemplateUi defines the UI related information for the Template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateUi ui = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.TemplateUi.Builder getUiBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetUiFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. TemplateUi defines the UI related information for the Template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateUi ui = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.TemplateUiOrBuilder getUiOrBuilder() { + if (uiBuilder_ != null) { + return uiBuilder_.getMessageOrBuilder(); + } else { + return ui_ == null ? com.google.cloud.designcenter.v1.TemplateUi.getDefaultInstance() : ui_; + } + } + + /** + * + * + *
+     * Optional. TemplateUi defines the UI related information for the Template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateUi ui = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.TemplateUi, + com.google.cloud.designcenter.v1.TemplateUi.Builder, + com.google.cloud.designcenter.v1.TemplateUiOrBuilder> + internalGetUiFieldBuilder() { + if (uiBuilder_ == null) { + uiBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.TemplateUi, + com.google.cloud.designcenter.v1.TemplateUi.Builder, + com.google.cloud.designcenter.v1.TemplateUiOrBuilder>( + getUi(), getParentForChildren(), isClean()); + ui_ = null; + } + return uiBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.MetadataInputSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.MetadataInputSpec) + private static final com.google.cloud.designcenter.v1.MetadataInputSpec DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.MetadataInputSpec(); + } + + public static com.google.cloud.designcenter.v1.MetadataInputSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MetadataInputSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.MetadataInputSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/MetadataInputSpecOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/MetadataInputSpecOrBuilder.java new file mode 100644 index 000000000000..4132d3c4c35d --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/MetadataInputSpecOrBuilder.java @@ -0,0 +1,206 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface MetadataInputSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.MetadataInputSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. TemplateInfo provides the actuation tool information.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TemplateInfo info = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the info field is set. + */ + boolean hasInfo(); + + /** + * + * + *
+   * Optional. TemplateInfo provides the actuation tool information.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TemplateInfo info = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The info. + */ + com.google.cloud.designcenter.v1.TemplateInfo getInfo(); + + /** + * + * + *
+   * Optional. TemplateInfo provides the actuation tool information.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TemplateInfo info = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.TemplateInfoOrBuilder getInfoOrBuilder(); + + /** + * + * + *
+   * Optional. TemplateSchemas provides the input variables lists and connection
+   * information.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TemplateSchema interfaces = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the interfaces field is set. + */ + boolean hasInterfaces(); + + /** + * + * + *
+   * Optional. TemplateSchemas provides the input variables lists and connection
+   * information.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TemplateSchema interfaces = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The interfaces. + */ + com.google.cloud.designcenter.v1.TemplateSchema getInterfaces(); + + /** + * + * + *
+   * Optional. TemplateSchemas provides the input variables lists and connection
+   * information.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TemplateSchema interfaces = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.TemplateSchemaOrBuilder getInterfacesOrBuilder(); + + /** + * + * + *
+   * Required. TemplateRequirements defines the roles required and the provider
+   * versions.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TemplateRequirements requirements = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the requirements field is set. + */ + boolean hasRequirements(); + + /** + * + * + *
+   * Required. TemplateRequirements defines the roles required and the provider
+   * versions.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TemplateRequirements requirements = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The requirements. + */ + com.google.cloud.designcenter.v1.TemplateRequirements getRequirements(); + + /** + * + * + *
+   * Required. TemplateRequirements defines the roles required and the provider
+   * versions.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TemplateRequirements requirements = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.designcenter.v1.TemplateRequirementsOrBuilder getRequirementsOrBuilder(); + + /** + * + * + *
+   * Optional. TemplateUi defines the UI related information for the Template.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TemplateUi ui = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the ui field is set. + */ + boolean hasUi(); + + /** + * + * + *
+   * Optional. TemplateUi defines the UI related information for the Template.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TemplateUi ui = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The ui. + */ + com.google.cloud.designcenter.v1.TemplateUi getUi(); + + /** + * + * + *
+   * Optional. TemplateUi defines the UI related information for the Template.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TemplateUi ui = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.TemplateUiOrBuilder getUiOrBuilder(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/MetadataProto.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/MetadataProto.java new file mode 100644 index 000000000000..45d10ffdd690 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/MetadataProto.java @@ -0,0 +1,1126 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public final class MetadataProto extends com.google.protobuf.GeneratedFile { + private MetadataProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "MetadataProto"); + } + + 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_designcenter_v1_TFBlueprintMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_TFBlueprintMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_ProviderVersion_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ProviderVersion_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_TerraformInput_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_TerraformInput_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_TerraformVariableValidation_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_TerraformVariableValidation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_TerraformInputConnections_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_TerraformInputConnections_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_TerraformOutput_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_TerraformOutput_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_TerraformBlueprintUiMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_TerraformBlueprintUiMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_AlternateDefault_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_AlternateDefault_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_ValueLabel_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ValueLabel_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_DisplayVariableToggle_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_DisplayVariableToggle_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_TerraformUiInput_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_TerraformUiInput_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_TerraformUiInput_TerraformUiInputsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_TerraformUiInput_TerraformUiInputsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_TerraformUiInputDisplayVariable_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_TerraformUiInputDisplayVariable_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_TerraformUiInputDisplayVariable_PropertiesEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_TerraformUiInputDisplayVariable_PropertiesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_TerraformUiOutput_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_TerraformUiOutput_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_TerraformUiOutput_TerraformUiOutputsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_TerraformUiOutput_TerraformUiOutputsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_TerraformUiOutputDisplay_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_TerraformUiOutputDisplay_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_HelmChartMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_HelmChartMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_HelmChartInput_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_HelmChartInput_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_HelmChartInput_NestedInputsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_HelmChartInput_NestedInputsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_HelmChartOutput_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_HelmChartOutput_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_MetadataInput_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_MetadataInput_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_MetadataInputSpec_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_MetadataInputSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_TemplateInfo_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_TemplateInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_IacFormatInfo_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_IacFormatInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_TemplateSchema_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_TemplateSchema_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_TemplateVariable_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_TemplateVariable_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_TemplateConnections_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_TemplateConnections_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_ConnectionSource_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ConnectionSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_ConnectionSpec_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ConnectionSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_TemplateRequirements_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_TemplateRequirements_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_TemplateRoles_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_TemplateRoles_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_TemplateUi_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_TemplateUi_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_TemplateUiInput_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_TemplateUiInput_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_TemplateUiInput_VariablesEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_TemplateUiInput_VariablesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_TemplateUiOutput_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_TemplateUiOutput_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_TemplateUiOutput_OutputsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_TemplateUiOutput_OutputsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_TemplateUiOutputDisplayVariable_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_TemplateUiOutputDisplayVariable_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_DisplayVariable_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_DisplayVariable_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_DisplayVariable_PropertiesEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_DisplayVariable_PropertiesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_ValueLabelInput_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ValueLabelInput_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_AlternateDefaultInput_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_AlternateDefaultInput_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_LogicalProduct_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_LogicalProduct_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_InferredMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_InferredMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_ResourceType_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ResourceType_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_TerraformModuleMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_TerraformModuleMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_ModuleDetails_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ModuleDetails_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_ModuleInput_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ModuleInput_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_ModuleOutput_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ModuleOutput_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_ModuleDependency_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ModuleDependency_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_ProviderDependency_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ProviderDependency_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_ModuleResource_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ModuleResource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_ListCatalogTemplateRevisionMetadataResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ListCatalogTemplateRevisionMetadataResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_CatalogTemplateRevisionMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_CatalogTemplateRevisionMetadata_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/designcenter/v1/metadata." + + "proto\022\034google.cloud.designcenter.v1\032\037goo" + + "gle/api/field_behavior.proto\032(google/clo" + + "ud/designcenter/v1/enums.proto\032\036google/p" + + "rotobuf/duration.proto\032\034google/protobuf/" + + "struct.proto\032\037google/protobuf/timestamp.proto\"\253\004\n" + + "\023TFBlueprintMetadata\022K\n" + + "\017terraform_input\030\001" + + " \003(\0132,.google.cloud.designcenter.v1.TerraformInputB\004\342A\001\003\022M\n" + + "\020terraform_output\030\002" + + " \003(\0132-.google.cloud.designcenter.v1.TerraformOutputB\004\342A\001\003\022\022\n" + + "\004apis\030\003 \003(\tB\004\342A\001\003\022\023\n" + + "\005roles\030\004 \003(\tB\004\342A\001\003\022<\n" + + "\023deployment_duration\030\006" + + " \001(\0132\031.google.protobuf.DurationB\004\342A\001\001\022\026\n" + + "\010icon_uri\030\t \001(\tB\004\342A\001\003\022R\n" + + "\013connections\030\n" + + " \003(\01327.google.cloud.designcenter.v1.TerraformInputConnectionsB\004\342A\001\003\022U\n" + + "\013ui_metadata\030\013 \001(\0132:.google.cloud.designc" + + "enter.v1.TerraformBlueprintUiMetadataB\004\342A\001\003\022N\n" + + "\021provider_versions\030\014 \003(\0132-.google." + + "cloud.designcenter.v1.ProviderVersionB\004\342A\001\003\">\n" + + "\017ProviderVersion\022\024\n" + + "\006source\030\001 \001(\tB\004\342A\001\003\022\025\n" + + "\007version\030\002 \001(\tB\004\342A\001\003\"\377\002\n" + + "\016TerraformInput\022&\n" + + "\030terraform_input_variable\030\001 \001(\tB\004\342A\001\003\022\031\n" + + "\013description\030\002 \001(\tB\004\342A\001\003\022\022\n" + + "\004type\030\003 \001(\tB\004\342A\001\003\0223\n\r" + + "default_value\030\004 \001(\0132\026.google.protobuf.ValueB\004\342A\001\003\022R\n" + + "\013connections\030\005" + + " \003(\01327.google.cloud.designcenter.v1.TerraformInputConnectionsB\004\342A\001\003\022\031\n" + + "\013is_required\030\006 \001(\010B\004\342A\001\003\022\027\n" + + "\tsensitive\030\007 \001(\010B\004\342A\001\001\022Y\n" + + "\020validation_rules\030\010 \003(\01329.google.cl" + + "oud.designcenter.v1.TerraformVariableValidationB\004\342A\001\001\"S\n" + + "\033TerraformVariableValidation\022\027\n" + + "\tcondition\030\001 \001(\tB\004\342A\001\001\022\033\n\r" + + "error_message\030\002 \001(\tB\004\342A\001\001\"\223\001\n" + + "\031TerraformInputConnections\022\036\n" + + "\020cft_template_uri\030\001 \001(\tB\004\342A\001\003\022\"\n" + + "\024cft_template_version\030\002 \001(\tB\004\342A\001\003\022\030\n\n" + + "output_var\030\003 \001(\tB\004\342A\001\003\022\030\n\n" + + "input_path\030\004 \001(\tB\004\342A\001\003\"\201\001\n" + + "\017TerraformOutput\022*\n" + + "\004type\030\001 \001(\0132\026.google.protobuf.ValueB\004\342A\001\003\022\'\n" + + "\031terraform_output_variable\030\002 \001(\tB\004\342A\001\003\022\031\n" + + "\013description\030\003 \001(\tB\004\342A\001\003\"\304\001\n" + + "\034TerraformBlueprintUiMetadata\022P\n" + + "\022terraform_ui_input\030\001 \001(" + + "\0132..google.cloud.designcenter.v1.TerraformUiInputB\004\342A\001\003\022R\n" + + "\023terraform_ui_output\030\002" + + " \001(\0132/.google.cloud.designcenter.v1.TerraformUiOutputB\004\342A\001\003\"\217\001\n" + + "\020AlternateDefault\022N\n" + + "\004type\030\001 \001(\0162:.google.cloud.designcent" + + "er.v1.DisplayVariableAlternateTypeB\004\342A\001\003\022+\n" + + "\005value\030\002 \001(\0132\026.google.protobuf.ValueB\004\342A\001\003\"6\n\n" + + "ValueLabel\022\023\n" + + "\005value\030\001 \001(\tB\004\342A\001\003\022\023\n" + + "\005label\030\002 \001(\tB\004\342A\001\003\"\325\002\n" + + "\025DisplayVariableToggle\022\026\n" + + "\010variable\030\001 \001(\tB\004\342A\001\003\022\035\n" + + "\017variable_values\030\002 \003(\tB\004\342A\001\003\022c\n\r" + + "variable_type\030\003 \001(\0162F.google.cloud.designcenter.v1.Dis" + + "playVariableToggle.ToggleVariableTypeB\004\342A\001\003\"\237\001\n" + + "\022ToggleVariableType\022$\n" + + " TOGGLE_VARIABLE_TYPE_UNSPECIFIED\020\000\022 \n" + + "\034TOGGLE_VARIABLE_TYPE_BOOLEAN\020\001\022\037\n" + + "\033TOGGLE_VARIABLE_TYPE_STRING\020\002\022 \n" + + "\034TOGGLE_VARIABLE_TYPE_INTEGER\020\003\"\365\001\n" + + "\020TerraformUiInput\022h\n" + + "\023terraform_ui_inputs\030\001 \003(\0132E.google.cloud.designcen" + + "ter.v1.TerraformUiInput.TerraformUiInputsEntryB\004\342A\001\003\032w\n" + + "\026TerraformUiInputsEntry\022\013\n" + + "\003key\030\001 \001(\t\022L\n" + + "\005value\030\002 \001(\0132=.google.clou" + + "d.designcenter.v1.TerraformUiInputDisplayVariable:\0028\001\"\261\005\n" + + "\037TerraformUiInputDisplayVariable\022\032\n" + + "\014display_name\030\001 \001(\tB\004\342A\001\003\022\023\n" + + "\005title\030\002 \001(\tB\004\342A\001\003\022P\n" + + "\022alternate_defaults\030\003" + + " \003(\0132..google.cloud.designcenter.v1.AlternateDefaultB\004\342A\001\003\022\036\n" + + "\020regex_validation\030\005 \001(\tB\004\342A\001\003\022\021\n" + + "\003min\030\006 \001(\002B\004\342A\001\003\022\021\n" + + "\003max\030\007 \001(\002B\004\342A\001\003\022\030\n\n" + + "validation\030\010 \001(\tB\004\342A\001\003\022I\n" + + "\021enum_value_labels\030\t" + + " \003(\0132(.google.cloud.designcenter.v1.ValueLabelB\004\342A\001\003\022\023\n" + + "\005level\030\n" + + " \001(\005B\004\342A\001\003\022\025\n" + + "\007subtext\030\013 \001(\tB\004\342A\001\003\022Y\n" + + "\026toggle_using_variables\030\014 \003(\01323.google.clo" + + "ud.designcenter.v1.DisplayVariableToggleB\004\342A\001\003\022g\n\n" + + "properties\030\r" + + " \003(\0132M.google.clou" + + "d.designcenter.v1.TerraformUiInputDisplayVariable.PropertiesEntryB\004\342A\001\003\032p\n" + + "\017PropertiesEntry\022\013\n" + + "\003key\030\001 \001(\t\022L\n" + + "\005value\030\002 \001(\0132=" + + ".google.cloud.designcenter.v1.TerraformUiInputDisplayVariable:\0028\001\"\221\002\n" + + "\021TerraformUiOutput\022\034\n" + + "\016output_message\030\001 \001(\tB\004\342A\001\003\022k\n" + + "\024terraform_ui_outputs\030\002 \003(\0132G.google.clo" + + "ud.designcenter.v1.TerraformUiOutput.TerraformUiOutputsEntryB\004\342A\001\003\032q\n" + + "\027TerraformUiOutputsEntry\022\013\n" + + "\003key\030\001 \001(\t\022E\n" + + "\005value\030\002 \001(" + + "\01326.google.cloud.designcenter.v1.TerraformUiOutputDisplay:\0028\001\"m\n" + + "\030TerraformUiOutputDisplay\022Q\n\n" + + "visibility\030\001 \001(\01627.google.c" + + "loud.designcenter.v1.DisplayVariableVisibilityB\004\342A\001\003\"\245\001\n" + + "\021HelmChartMetadata\022F\n\n" + + "helm_input\030\001" + + " \003(\0132,.google.cloud.designcenter.v1.HelmChartInputB\004\342A\001\003\022H\n" + + "\013helm_output\030\002" + + " \003(\0132-.google.cloud.designcenter.v1.HelmChartOutputB\004\342A\001\003\"\362\002\n" + + "\016HelmChartInput\022!\n" + + "\023helm_input_variable\030\001 \001(\tB\004\342A\001\003\022\031\n" + + "\013description\030\002 \001(\tB\004\342A\001\003\022\022\n" + + "\004type\030\003 \001(\tB\004\342A\001\003\0223\n\r" + + "default_value\030\004 \001(\0132\026.google.protobuf.ValueB\004\342A\001\003\022\031\n" + + "\013is_required\030\006 \001(\010B\004\342A\001\003\022[\n\r" + + "nested_inputs\030\007 \003(\0132>.google.cloud." + + "designcenter.v1.HelmChartInput.NestedInputsEntryB\004\342A\001\003\032a\n" + + "\021NestedInputsEntry\022\013\n" + + "\003key\030\001 \001(\t\022;\n" + + "\005value\030\002" + + " \001(\0132,.google.cloud.designcenter.v1.HelmChartInput:\0028\001\"}\n" + + "\017HelmChartOutput\022+\n" + + "\005value\030\001 \001(\0132\026.google.protobuf.ValueB\004\342A\001\003\022\"\n" + + "\024helm_output_variable\030\002 \001(\tB\004\342A\001\003\022\031\n" + + "\013description\030\003 \001(\tB\004\342A\001\003\"T\n\r" + + "MetadataInput\022C\n" + + "\004spec\030\001 \001(\0132/.google" + + ".cloud.designcenter.v1.MetadataInputSpecB\004\342A\001\002\"\247\002\n" + + "\021MetadataInputSpec\022>\n" + + "\004info\030\001 \001" + + "(\0132*.google.cloud.designcenter.v1.TemplateInfoB\004\342A\001\001\022F\n\n" + + "interfaces\030\003 \001(\0132,.googl" + + "e.cloud.designcenter.v1.TemplateSchemaB\004\342A\001\001\022N\n" + + "\014requirements\030\004 \001(\01322.google.clou" + + "d.designcenter.v1.TemplateRequirementsB\004\342A\001\002\022:\n" + + "\002ui\030\005" + + " \001(\0132(.google.cloud.designcenter.v1.TemplateUiB\004\342A\001\001\"Y\n" + + "\014TemplateInfo\022I\n" + + "\016actuation_tool\030\001" + + " \001(\0132+.google.cloud.designcenter.v1.IacFormatInfoB\004\342A\001\002\"<\n\r" + + "IacFormatInfo\022\024\n" + + "\006flavor\030\001 \001(\tB\004\342A\001\002\022\025\n" + + "\007version\030\002 \001(\tB\004\342A\001\002\"Y\n" + + "\016TemplateSchema\022G\n" + + "\tvariables\030\001" + + " \003(\0132..google.cloud.designcenter.v1.TemplateVariableB\004\342A\001\002\"t\n" + + "\020TemplateVariable\022\022\n" + + "\004name\030\001 \001(\tB\004\342A\001\002\022L\n" + + "\013connections\030\002" + + " \003(\01321.google.cloud.designcenter.v1.TemplateConnectionsB\004\342A\001\002\"\235\001\n" + + "\023TemplateConnections\022D\n" + + "\006source\030\001 \001(\0132..google.clou" + + "d.designcenter.v1.ConnectionSourceB\004\342A\001\002\022@\n" + + "\004spec\030\002" + + " \001(\0132,.google.cloud.designcenter.v1.ConnectionSpecB\004\342A\001\002\"?\n" + + "\020ConnectionSource\022\024\n" + + "\006source\030\001 \001(\tB\004\342A\001\002\022\025\n" + + "\007version\030\002 \001(\tB\004\342A\001\002\"Y\n" + + "\016ConnectionSpec\022\031\n" + + "\013output_expr\030\001 \001(\tB\004\342A\001\002\022\035\n\n" + + "input_path\030\002 \001(\tB\004\342A\001\001H\000\210\001\001B\r\n" + + "\013_input_path\"\250\001\n" + + "\024TemplateRequirements\022@\n" + + "\005roles\030\001" + + " \003(\0132+.google.cloud.designcenter.v1.TemplateRolesB\004\342A\001\002\022N\n" + + "\021provider_versions\030\002" + + " \003(\0132-.google.cloud.designcenter.v1.ProviderVersionB\004\342A\001\002\"9\n\r" + + "TemplateRoles\022\023\n" + + "\005level\030\001 \001(\tB\004\342A\001\002\022\023\n" + + "\005roles\030\002 \003(\tB\004\342A\001\002\"\227\001\n\n" + + "TemplateUi\022B\n" + + "\005input\030\001 \001" + + "(\0132-.google.cloud.designcenter.v1.TemplateUiInputB\004\342A\001\002\022E\n" + + "\007runtime\030\002 \001(\0132..googl" + + "e.cloud.designcenter.v1.TemplateUiOutputB\004\342A\001\001\"\311\001\n" + + "\017TemplateUiInput\022U\n" + + "\tvariables\030\001" + + " \003(\0132<.google.cloud.designcenter.v1.TemplateUiInput.VariablesEntryB\004\342A\001\002\032_\n" + + "\016VariablesEntry\022\013\n" + + "\003key\030\001 \001(\t\022<\n" + + "\005value\030\002 \001(\0132" + + "-.google.cloud.designcenter.v1.DisplayVariable:\0028\001\"\363\001\n" + + "\020TemplateUiOutput\022\034\n" + + "\016output_message\030\001 \001(\tB\004\342A\001\001\022R\n" + + "\007outputs\030\002 \003(\0132;" + + ".google.cloud.designcenter.v1.TemplateUiOutput.OutputsEntryB\004\342A\001\002\032m\n" + + "\014OutputsEntry\022\013\n" + + "\003key\030\001 \001(\t\022L\n" + + "\005value\030\002 \001(\0132=.google.c" + + "loud.designcenter.v1.TemplateUiOutputDisplayVariable:\0028\001\"t\n" + + "\037TemplateUiOutputDisplayVariable\022Q\n\n" + + "visibility\030\001 \001(\01627.google" + + ".cloud.designcenter.v1.DisplayVariableVisibilityB\004\342A\001\002\"\302\004\n" + + "\017DisplayVariable\022\022\n" + + "\004name\030\001 \001(\tB\004\342A\001\002\022\023\n" + + "\005title\030\002 \001(\tB\004\342A\001\002\022U\n" + + "\022alternate_defaults\030\003 \003(\01323.google.cloud.d" + + "esigncenter.v1.AlternateDefaultInputB\004\342A\001\001\022\036\n" + + "\020regex_validation\030\004 \001(\tB\004\342A\001\001\022\026\n" + + "\003min\030\005 \001(\002B\004\342A\001\001H\000\210\001\001\022\026\n" + + "\003max\030\006 \001(\002B\004\342A\001\001H\001\210\001\001\022\030\n\n" + + "validation\030\007 \001(\tB\004\342A\001\001\022N\n" + + "\021enum_value_labels\030\010" + + " \003(\0132-.google.cloud.designcenter.v1.ValueLabelInputB\004\342A\001\001\022\023\n" + + "\005level\030\t \001(\005B\004\342A\001\001\022\025\n" + + "\007subtext\030\n" + + " \001(\tB\004\342A\001\001\022W\n\n" + + "properties\030\013 \003(\0132=.google.cloud.designcenter" + + ".v1.DisplayVariable.PropertiesEntryB\004\342A\001\001\032`\n" + + "\017PropertiesEntry\022\013\n" + + "\003key\030\001 \001(\t\022<\n" + + "\005value\030\002" + + " \001(\0132-.google.cloud.designcenter.v1.DisplayVariable:\0028\001B\006\n" + + "\004_minB\006\n" + + "\004_max\";\n" + + "\017ValueLabelInput\022\023\n" + + "\005value\030\001 \001(\tB\004\342A\001\001\022\023\n" + + "\005label\030\002 \001(\tB\004\342A\001\001\"\224\001\n" + + "\025AlternateDefaultInput\022N\n" + + "\004type\030\001 \001(\0162:.google.cloud.designce" + + "nter.v1.DisplayVariableAlternateTypeB\004\342A\001\001\022+\n" + + "\005value\030\002 \001(\0132\026.google.protobuf.ValueB\004\342A\001\001\"Z\n" + + "\016LogicalProduct\022\022\n" + + "\004name\030\001 \001(\tB\004\342A\001\003\022\023\n" + + "\005title\030\002 \001(\tB\004\342A\001\003\022\037\n" + + "\021short_description\030\003 \001(\tB\004\342A\001\003\"\357\001\n" + + "\020InferredMetadata\022\031\n" + + "\013description\030\001 \001(\tB\004\342A\001\003\022R\n" + + "\021template_metadata\030\002" + + " \001(\01321.google.cloud.designcenter.v1.TFBlueprintMetadataB\004\342A\001\003\0225\n" + + "\013create_time\030\003" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0225\n" + + "\013update_time\030\004" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\"F\n" + + "\014ResourceType\022\031\n" + + "\013tf_resource\030\001 \001(\tB\004\342A\001\003\022\033\n\r" + + "cais_resource\030\002 \001(\tB\004\342A\001\003\"\345\004\n" + + "\027TerraformModuleMetadata\022\021\n" + + "\003uri\030\001 \001(\tB\004\342A\001\001\022\020\n" + + "\002id\030\002 \001(\tB\004\342A\001\001\022\023\n" + + "\005owner\030\003 \001(\tB\004\342A\001\001\022\036\n" + + "\020module_namespace\030\004 \001(\tB\004\342A\001\001\022\022\n" + + "\004name\030\005 \001(\tB\004\342A\001\001\022\025\n" + + "\007version\030\006 \001(\tB\004\342A\001\001\022\026\n" + + "\010provider\030\007 \001(\tB\004\342A\001\001\022\031\n" + + "\013description\030\t \001(\tB\004\342A\001\001\022\024\n" + + "\006source\030\n" + + " \001(\tB\004\342A\001\001\022\021\n" + + "\003tag\030\013 \001(\tB\004\342A\001\001\022?\n" + + "\004root\030\017 \001(\013" + + "2+.google.cloud.designcenter.v1.ModuleDetailsB\004\342A\001\001\022E\n\n" + + "submodules\030\020 \003(\0132+.google" + + ".cloud.designcenter.v1.ModuleDetailsB\004\342A\001\001\022C\n" + + "\010examples\030\021" + + " \003(\0132+.google.cloud.designcenter.v1.ModuleDetailsB\004\342A\001\001\022\027\n" + + "\tproviders\030\022 \003(\tB\004\342A\001\001\022\026\n" + + "\010versions\030\023 \003(\tB\004\342A\001\001\022\027\n" + + "\trevisions\030\024 \003(\tB\004\342A\001\001\022R\n" + + "\013connections\030\025" + + " \003(\01327.google.cloud.designcenter.v1.TerraformInputConnectionsB\004\342A\001\001\"\327\003\n\r" + + "ModuleDetails\022\022\n" + + "\004path\030\001 \001(\tB\004\342A\001\001\022\022\n" + + "\004name\030\002 \001(\tB\004\342A\001\001\022\024\n" + + "\006readme\030\003 \001(\tB\004\342A\001\001\022\023\n" + + "\005empty\030\004 \001(\010B\004\342A\001\001\022?\n" + + "\006inputs\030\005" + + " \003(\0132).google.cloud.designcenter.v1.ModuleInputB\004\342A\001\001\022A\n" + + "\007outputs\030\006" + + " \003(\0132*.google.cloud.designcenter.v1.ModuleOutputB\004\342A\001\001\022Q\n" + + "\023module_dependencies\030\007" + + " \003(\0132..google.cloud.designcenter.v1.ModuleDependencyB\004\342A\001\001\022U\n" + + "\025provider_dependencies\030\010" + + " \003(\01320.google.cloud.designcenter.v1.ProviderDependencyB\004\342A\001\001\022E\n" + + "\tresources\030\t" + + " \003(\0132,.google.cloud.designcenter.v1.ModuleResourceB\004\342A\001\001\"\235\001\n" + + "\013ModuleInput\022\022\n" + + "\004name\030\001 \001(\tB\004\342A\001\001\022\022\n" + + "\004type\030\002 \001(\tB\004\342A\001\001\022\031\n" + + "\013description\030\003 \001(\tB\004\342A\001\001\0223\n\r" + + "default_value\030\004 \001(\0132\026.google.protobuf.ValueB\004\342A\001\001\022\026\n" + + "\010required\030\005 \001(\010B\004\342A\001\001\"=\n" + + "\014ModuleOutput\022\022\n" + + "\004name\030\001 \001(\tB\004\342A\001\001\022\031\n" + + "\013description\030\002 \001(\tB\004\342A\001\001\"S\n" + + "\020ModuleDependency\022\022\n" + + "\004name\030\001 \001(\tB\004\342A\001\001\022\024\n" + + "\006source\030\002 \001(\tB\004\342A\001\001\022\025\n" + + "\007version\030\003 \001(\tB\004\342A\001\001\"w\n" + + "\022ProviderDependency\022\022\n" + + "\004name\030\001 \001(\tB\004\342A\001\001\022 \n" + + "\022provider_namespace\030\002 \001(\tB\004\342A\001\001\022\024\n" + + "\006source\030\003 \001(\tB\004\342A\001\001\022\025\n" + + "\007version\030\004 \001(\tB\004\342A\001\001\"8\n" + + "\016ModuleResource\022\022\n" + + "\004name\030\001 \001(\tB\004\342A\001\001\022\022\n" + + "\004type\030\002 \001(\tB\004\342A\001\001\"\306\001\n" + + "+ListCatalogTemplateRevisionMetadataResponse\022i\n" + + "\"catalog_template_revision_metadata\030\001 \003" + + "(\0132=.google.cloud.designcenter.v1.CatalogTemplateRevisionMetadata\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\023\n" + + "\013unreachable\030\003 \003(\t\"\377\002\n" + + "\037CatalogTemplateRevisionMetadata\022\022\n" + + "\004name\030\001 \001(\tB\004\342A\001\003\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.TimestampB\004\342A\001\003\022\022\n" + + "\004uuid\030\004 \001(\tB\004\342A\001\003\022 \n" + + "\022latest_revision_id\030\005 \001(\tB\004\342A\001\003\022\032\n" + + "\014display_name\030\006 \001(\tB\004\342A\001\001\022O\n" + + "\021template_category\030\007 \001(\0162..google.clou" + + "d.designcenter.v1.TemplateCategoryB\004\342A\001\002\022\034\n" + + "\016git_source_uri\030\010 \001(\tB\004\342A\001\001\022\031\n" + + "\013description\030\t \001(\tB\004\342A\001\001B\331\001\n" + + " com.google.cloud.designcenter.v1B\r" + + "MetadataProtoP\001ZDcloud.google.com/go/designcenter/apiv1/designce" + + "nterpb;designcenterpb\252\002\034Google.Cloud.Des" + + "ignCenter.V1\312\002\034Google\\Cloud\\DesignCenter" + + "\\V1\352\002\037Google::Cloud::DesignCenter::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.cloud.designcenter.v1.EnumsProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_designcenter_v1_TFBlueprintMetadata_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_designcenter_v1_TFBlueprintMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_TFBlueprintMetadata_descriptor, + new java.lang.String[] { + "TerraformInput", + "TerraformOutput", + "Apis", + "Roles", + "DeploymentDuration", + "IconUri", + "Connections", + "UiMetadata", + "ProviderVersions", + }); + internal_static_google_cloud_designcenter_v1_ProviderVersion_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_designcenter_v1_ProviderVersion_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ProviderVersion_descriptor, + new java.lang.String[] { + "Source", "Version", + }); + internal_static_google_cloud_designcenter_v1_TerraformInput_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_designcenter_v1_TerraformInput_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_TerraformInput_descriptor, + new java.lang.String[] { + "TerraformInputVariable", + "Description", + "Type", + "DefaultValue", + "Connections", + "IsRequired", + "Sensitive", + "ValidationRules", + }); + internal_static_google_cloud_designcenter_v1_TerraformVariableValidation_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_cloud_designcenter_v1_TerraformVariableValidation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_TerraformVariableValidation_descriptor, + new java.lang.String[] { + "Condition", "ErrorMessage", + }); + internal_static_google_cloud_designcenter_v1_TerraformInputConnections_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_cloud_designcenter_v1_TerraformInputConnections_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_TerraformInputConnections_descriptor, + new java.lang.String[] { + "CftTemplateUri", "CftTemplateVersion", "OutputVar", "InputPath", + }); + internal_static_google_cloud_designcenter_v1_TerraformOutput_descriptor = + getDescriptor().getMessageType(5); + internal_static_google_cloud_designcenter_v1_TerraformOutput_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_TerraformOutput_descriptor, + new java.lang.String[] { + "Type", "TerraformOutputVariable", "Description", + }); + internal_static_google_cloud_designcenter_v1_TerraformBlueprintUiMetadata_descriptor = + getDescriptor().getMessageType(6); + internal_static_google_cloud_designcenter_v1_TerraformBlueprintUiMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_TerraformBlueprintUiMetadata_descriptor, + new java.lang.String[] { + "TerraformUiInput", "TerraformUiOutput", + }); + internal_static_google_cloud_designcenter_v1_AlternateDefault_descriptor = + getDescriptor().getMessageType(7); + internal_static_google_cloud_designcenter_v1_AlternateDefault_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_AlternateDefault_descriptor, + new java.lang.String[] { + "Type", "Value", + }); + internal_static_google_cloud_designcenter_v1_ValueLabel_descriptor = + getDescriptor().getMessageType(8); + internal_static_google_cloud_designcenter_v1_ValueLabel_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ValueLabel_descriptor, + new java.lang.String[] { + "Value", "Label", + }); + internal_static_google_cloud_designcenter_v1_DisplayVariableToggle_descriptor = + getDescriptor().getMessageType(9); + internal_static_google_cloud_designcenter_v1_DisplayVariableToggle_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_DisplayVariableToggle_descriptor, + new java.lang.String[] { + "Variable", "VariableValues", "VariableType", + }); + internal_static_google_cloud_designcenter_v1_TerraformUiInput_descriptor = + getDescriptor().getMessageType(10); + internal_static_google_cloud_designcenter_v1_TerraformUiInput_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_TerraformUiInput_descriptor, + new java.lang.String[] { + "TerraformUiInputs", + }); + internal_static_google_cloud_designcenter_v1_TerraformUiInput_TerraformUiInputsEntry_descriptor = + internal_static_google_cloud_designcenter_v1_TerraformUiInput_descriptor.getNestedType(0); + internal_static_google_cloud_designcenter_v1_TerraformUiInput_TerraformUiInputsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_TerraformUiInput_TerraformUiInputsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_designcenter_v1_TerraformUiInputDisplayVariable_descriptor = + getDescriptor().getMessageType(11); + internal_static_google_cloud_designcenter_v1_TerraformUiInputDisplayVariable_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_TerraformUiInputDisplayVariable_descriptor, + new java.lang.String[] { + "DisplayName", + "Title", + "AlternateDefaults", + "RegexValidation", + "Min", + "Max", + "Validation", + "EnumValueLabels", + "Level", + "Subtext", + "ToggleUsingVariables", + "Properties", + }); + internal_static_google_cloud_designcenter_v1_TerraformUiInputDisplayVariable_PropertiesEntry_descriptor = + internal_static_google_cloud_designcenter_v1_TerraformUiInputDisplayVariable_descriptor + .getNestedType(0); + internal_static_google_cloud_designcenter_v1_TerraformUiInputDisplayVariable_PropertiesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_TerraformUiInputDisplayVariable_PropertiesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_designcenter_v1_TerraformUiOutput_descriptor = + getDescriptor().getMessageType(12); + internal_static_google_cloud_designcenter_v1_TerraformUiOutput_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_TerraformUiOutput_descriptor, + new java.lang.String[] { + "OutputMessage", "TerraformUiOutputs", + }); + internal_static_google_cloud_designcenter_v1_TerraformUiOutput_TerraformUiOutputsEntry_descriptor = + internal_static_google_cloud_designcenter_v1_TerraformUiOutput_descriptor.getNestedType(0); + internal_static_google_cloud_designcenter_v1_TerraformUiOutput_TerraformUiOutputsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_TerraformUiOutput_TerraformUiOutputsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_designcenter_v1_TerraformUiOutputDisplay_descriptor = + getDescriptor().getMessageType(13); + internal_static_google_cloud_designcenter_v1_TerraformUiOutputDisplay_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_TerraformUiOutputDisplay_descriptor, + new java.lang.String[] { + "Visibility", + }); + internal_static_google_cloud_designcenter_v1_HelmChartMetadata_descriptor = + getDescriptor().getMessageType(14); + internal_static_google_cloud_designcenter_v1_HelmChartMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_HelmChartMetadata_descriptor, + new java.lang.String[] { + "HelmInput", "HelmOutput", + }); + internal_static_google_cloud_designcenter_v1_HelmChartInput_descriptor = + getDescriptor().getMessageType(15); + internal_static_google_cloud_designcenter_v1_HelmChartInput_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_HelmChartInput_descriptor, + new java.lang.String[] { + "HelmInputVariable", + "Description", + "Type", + "DefaultValue", + "IsRequired", + "NestedInputs", + }); + internal_static_google_cloud_designcenter_v1_HelmChartInput_NestedInputsEntry_descriptor = + internal_static_google_cloud_designcenter_v1_HelmChartInput_descriptor.getNestedType(0); + internal_static_google_cloud_designcenter_v1_HelmChartInput_NestedInputsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_HelmChartInput_NestedInputsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_designcenter_v1_HelmChartOutput_descriptor = + getDescriptor().getMessageType(16); + internal_static_google_cloud_designcenter_v1_HelmChartOutput_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_HelmChartOutput_descriptor, + new java.lang.String[] { + "Value", "HelmOutputVariable", "Description", + }); + internal_static_google_cloud_designcenter_v1_MetadataInput_descriptor = + getDescriptor().getMessageType(17); + internal_static_google_cloud_designcenter_v1_MetadataInput_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_MetadataInput_descriptor, + new java.lang.String[] { + "Spec", + }); + internal_static_google_cloud_designcenter_v1_MetadataInputSpec_descriptor = + getDescriptor().getMessageType(18); + internal_static_google_cloud_designcenter_v1_MetadataInputSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_MetadataInputSpec_descriptor, + new java.lang.String[] { + "Info", "Interfaces", "Requirements", "Ui", + }); + internal_static_google_cloud_designcenter_v1_TemplateInfo_descriptor = + getDescriptor().getMessageType(19); + internal_static_google_cloud_designcenter_v1_TemplateInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_TemplateInfo_descriptor, + new java.lang.String[] { + "ActuationTool", + }); + internal_static_google_cloud_designcenter_v1_IacFormatInfo_descriptor = + getDescriptor().getMessageType(20); + internal_static_google_cloud_designcenter_v1_IacFormatInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_IacFormatInfo_descriptor, + new java.lang.String[] { + "Flavor", "Version", + }); + internal_static_google_cloud_designcenter_v1_TemplateSchema_descriptor = + getDescriptor().getMessageType(21); + internal_static_google_cloud_designcenter_v1_TemplateSchema_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_TemplateSchema_descriptor, + new java.lang.String[] { + "Variables", + }); + internal_static_google_cloud_designcenter_v1_TemplateVariable_descriptor = + getDescriptor().getMessageType(22); + internal_static_google_cloud_designcenter_v1_TemplateVariable_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_TemplateVariable_descriptor, + new java.lang.String[] { + "Name", "Connections", + }); + internal_static_google_cloud_designcenter_v1_TemplateConnections_descriptor = + getDescriptor().getMessageType(23); + internal_static_google_cloud_designcenter_v1_TemplateConnections_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_TemplateConnections_descriptor, + new java.lang.String[] { + "Source", "Spec", + }); + internal_static_google_cloud_designcenter_v1_ConnectionSource_descriptor = + getDescriptor().getMessageType(24); + internal_static_google_cloud_designcenter_v1_ConnectionSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ConnectionSource_descriptor, + new java.lang.String[] { + "Source", "Version", + }); + internal_static_google_cloud_designcenter_v1_ConnectionSpec_descriptor = + getDescriptor().getMessageType(25); + internal_static_google_cloud_designcenter_v1_ConnectionSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ConnectionSpec_descriptor, + new java.lang.String[] { + "OutputExpr", "InputPath", + }); + internal_static_google_cloud_designcenter_v1_TemplateRequirements_descriptor = + getDescriptor().getMessageType(26); + internal_static_google_cloud_designcenter_v1_TemplateRequirements_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_TemplateRequirements_descriptor, + new java.lang.String[] { + "Roles", "ProviderVersions", + }); + internal_static_google_cloud_designcenter_v1_TemplateRoles_descriptor = + getDescriptor().getMessageType(27); + internal_static_google_cloud_designcenter_v1_TemplateRoles_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_TemplateRoles_descriptor, + new java.lang.String[] { + "Level", "Roles", + }); + internal_static_google_cloud_designcenter_v1_TemplateUi_descriptor = + getDescriptor().getMessageType(28); + internal_static_google_cloud_designcenter_v1_TemplateUi_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_TemplateUi_descriptor, + new java.lang.String[] { + "Input", "Runtime", + }); + internal_static_google_cloud_designcenter_v1_TemplateUiInput_descriptor = + getDescriptor().getMessageType(29); + internal_static_google_cloud_designcenter_v1_TemplateUiInput_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_TemplateUiInput_descriptor, + new java.lang.String[] { + "Variables", + }); + internal_static_google_cloud_designcenter_v1_TemplateUiInput_VariablesEntry_descriptor = + internal_static_google_cloud_designcenter_v1_TemplateUiInput_descriptor.getNestedType(0); + internal_static_google_cloud_designcenter_v1_TemplateUiInput_VariablesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_TemplateUiInput_VariablesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_designcenter_v1_TemplateUiOutput_descriptor = + getDescriptor().getMessageType(30); + internal_static_google_cloud_designcenter_v1_TemplateUiOutput_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_TemplateUiOutput_descriptor, + new java.lang.String[] { + "OutputMessage", "Outputs", + }); + internal_static_google_cloud_designcenter_v1_TemplateUiOutput_OutputsEntry_descriptor = + internal_static_google_cloud_designcenter_v1_TemplateUiOutput_descriptor.getNestedType(0); + internal_static_google_cloud_designcenter_v1_TemplateUiOutput_OutputsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_TemplateUiOutput_OutputsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_designcenter_v1_TemplateUiOutputDisplayVariable_descriptor = + getDescriptor().getMessageType(31); + internal_static_google_cloud_designcenter_v1_TemplateUiOutputDisplayVariable_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_TemplateUiOutputDisplayVariable_descriptor, + new java.lang.String[] { + "Visibility", + }); + internal_static_google_cloud_designcenter_v1_DisplayVariable_descriptor = + getDescriptor().getMessageType(32); + internal_static_google_cloud_designcenter_v1_DisplayVariable_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_DisplayVariable_descriptor, + new java.lang.String[] { + "Name", + "Title", + "AlternateDefaults", + "RegexValidation", + "Min", + "Max", + "Validation", + "EnumValueLabels", + "Level", + "Subtext", + "Properties", + }); + internal_static_google_cloud_designcenter_v1_DisplayVariable_PropertiesEntry_descriptor = + internal_static_google_cloud_designcenter_v1_DisplayVariable_descriptor.getNestedType(0); + internal_static_google_cloud_designcenter_v1_DisplayVariable_PropertiesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_DisplayVariable_PropertiesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_designcenter_v1_ValueLabelInput_descriptor = + getDescriptor().getMessageType(33); + internal_static_google_cloud_designcenter_v1_ValueLabelInput_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ValueLabelInput_descriptor, + new java.lang.String[] { + "Value", "Label", + }); + internal_static_google_cloud_designcenter_v1_AlternateDefaultInput_descriptor = + getDescriptor().getMessageType(34); + internal_static_google_cloud_designcenter_v1_AlternateDefaultInput_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_AlternateDefaultInput_descriptor, + new java.lang.String[] { + "Type", "Value", + }); + internal_static_google_cloud_designcenter_v1_LogicalProduct_descriptor = + getDescriptor().getMessageType(35); + internal_static_google_cloud_designcenter_v1_LogicalProduct_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_LogicalProduct_descriptor, + new java.lang.String[] { + "Name", "Title", "ShortDescription", + }); + internal_static_google_cloud_designcenter_v1_InferredMetadata_descriptor = + getDescriptor().getMessageType(36); + internal_static_google_cloud_designcenter_v1_InferredMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_InferredMetadata_descriptor, + new java.lang.String[] { + "Description", "TemplateMetadata", "CreateTime", "UpdateTime", + }); + internal_static_google_cloud_designcenter_v1_ResourceType_descriptor = + getDescriptor().getMessageType(37); + internal_static_google_cloud_designcenter_v1_ResourceType_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ResourceType_descriptor, + new java.lang.String[] { + "TfResource", "CaisResource", + }); + internal_static_google_cloud_designcenter_v1_TerraformModuleMetadata_descriptor = + getDescriptor().getMessageType(38); + internal_static_google_cloud_designcenter_v1_TerraformModuleMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_TerraformModuleMetadata_descriptor, + new java.lang.String[] { + "Uri", + "Id", + "Owner", + "ModuleNamespace", + "Name", + "Version", + "Provider", + "Description", + "Source", + "Tag", + "Root", + "Submodules", + "Examples", + "Providers", + "Versions", + "Revisions", + "Connections", + }); + internal_static_google_cloud_designcenter_v1_ModuleDetails_descriptor = + getDescriptor().getMessageType(39); + internal_static_google_cloud_designcenter_v1_ModuleDetails_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ModuleDetails_descriptor, + new java.lang.String[] { + "Path", + "Name", + "Readme", + "Empty", + "Inputs", + "Outputs", + "ModuleDependencies", + "ProviderDependencies", + "Resources", + }); + internal_static_google_cloud_designcenter_v1_ModuleInput_descriptor = + getDescriptor().getMessageType(40); + internal_static_google_cloud_designcenter_v1_ModuleInput_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ModuleInput_descriptor, + new java.lang.String[] { + "Name", "Type", "Description", "DefaultValue", "Required", + }); + internal_static_google_cloud_designcenter_v1_ModuleOutput_descriptor = + getDescriptor().getMessageType(41); + internal_static_google_cloud_designcenter_v1_ModuleOutput_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ModuleOutput_descriptor, + new java.lang.String[] { + "Name", "Description", + }); + internal_static_google_cloud_designcenter_v1_ModuleDependency_descriptor = + getDescriptor().getMessageType(42); + internal_static_google_cloud_designcenter_v1_ModuleDependency_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ModuleDependency_descriptor, + new java.lang.String[] { + "Name", "Source", "Version", + }); + internal_static_google_cloud_designcenter_v1_ProviderDependency_descriptor = + getDescriptor().getMessageType(43); + internal_static_google_cloud_designcenter_v1_ProviderDependency_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ProviderDependency_descriptor, + new java.lang.String[] { + "Name", "ProviderNamespace", "Source", "Version", + }); + internal_static_google_cloud_designcenter_v1_ModuleResource_descriptor = + getDescriptor().getMessageType(44); + internal_static_google_cloud_designcenter_v1_ModuleResource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ModuleResource_descriptor, + new java.lang.String[] { + "Name", "Type", + }); + internal_static_google_cloud_designcenter_v1_ListCatalogTemplateRevisionMetadataResponse_descriptor = + getDescriptor().getMessageType(45); + internal_static_google_cloud_designcenter_v1_ListCatalogTemplateRevisionMetadataResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ListCatalogTemplateRevisionMetadataResponse_descriptor, + new java.lang.String[] { + "CatalogTemplateRevisionMetadata", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_designcenter_v1_CatalogTemplateRevisionMetadata_descriptor = + getDescriptor().getMessageType(46); + internal_static_google_cloud_designcenter_v1_CatalogTemplateRevisionMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_CatalogTemplateRevisionMetadata_descriptor, + new java.lang.String[] { + "Name", + "CreateTime", + "UpdateTime", + "Uuid", + "LatestRevisionId", + "DisplayName", + "TemplateCategory", + "GitSourceUri", + "Description", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.cloud.designcenter.v1.EnumsProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ModuleDependency.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ModuleDependency.java new file mode 100644 index 000000000000..cb12121f8bf4 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ModuleDependency.java @@ -0,0 +1,974 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Represents a dependency on another Terraform module.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ModuleDependency} + */ +@com.google.protobuf.Generated +public final class ModuleDependency extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ModuleDependency) + ModuleDependencyOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ModuleDependency"); + } + + // Use ModuleDependency.newBuilder() to construct. + private ModuleDependency(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ModuleDependency() { + name_ = ""; + source_ = ""; + version_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_ModuleDependency_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_ModuleDependency_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ModuleDependency.class, + com.google.cloud.designcenter.v1.ModuleDependency.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Optional. Local name of the module instance.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+   * Optional. Local name of the module instance.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 SOURCE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object source_ = ""; + + /** + * + * + *
+   * Optional. Source of the module.
+   * 
+ * + * string source = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The source. + */ + @java.lang.Override + public java.lang.String getSource() { + java.lang.Object ref = source_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + source_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Source of the module.
+   * 
+ * + * string source = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for source. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSourceBytes() { + java.lang.Object ref = source_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + source_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VERSION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object version_ = ""; + + /** + * + * + *
+   * Optional. Version constraint for the module.
+   * 
+ * + * string version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+   * Optional. Version constraint for the module.
+   * 
+ * + * string version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(source_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, source_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(version_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, version_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(source_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, source_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(version_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, version_); + } + 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.designcenter.v1.ModuleDependency)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ModuleDependency other = + (com.google.cloud.designcenter.v1.ModuleDependency) obj; + + if (!getName().equals(other.getName())) return false; + if (!getSource().equals(other.getSource())) return false; + if (!getVersion().equals(other.getVersion())) 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) + SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getSource().hashCode(); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.ModuleDependency parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ModuleDependency 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.designcenter.v1.ModuleDependency parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ModuleDependency parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ModuleDependency parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ModuleDependency parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ModuleDependency parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ModuleDependency parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ModuleDependency parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ModuleDependency parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ModuleDependency parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ModuleDependency parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ModuleDependency 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Represents a dependency on another Terraform module.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ModuleDependency} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ModuleDependency) + com.google.cloud.designcenter.v1.ModuleDependencyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_ModuleDependency_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_ModuleDependency_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ModuleDependency.class, + com.google.cloud.designcenter.v1.ModuleDependency.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.ModuleDependency.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + source_ = ""; + version_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_ModuleDependency_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ModuleDependency getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ModuleDependency.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ModuleDependency build() { + com.google.cloud.designcenter.v1.ModuleDependency result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ModuleDependency buildPartial() { + com.google.cloud.designcenter.v1.ModuleDependency result = + new com.google.cloud.designcenter.v1.ModuleDependency(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.ModuleDependency result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.source_ = source_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.version_ = version_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.ModuleDependency) { + return mergeFrom((com.google.cloud.designcenter.v1.ModuleDependency) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.ModuleDependency other) { + if (other == com.google.cloud.designcenter.v1.ModuleDependency.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getSource().isEmpty()) { + source_ = other.source_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + 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 18: + { + source_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + version_ = 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_ = ""; + + /** + * + * + *
+     * Optional. Local name of the module instance.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The name. + */ + public java.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; + } + } + + /** + * + * + *
+     * Optional. Local name of the module instance.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+     * Optional. Local name of the module instance.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + + /** + * + * + *
+     * Optional. Local name of the module instance.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Local name of the module instance.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 source_ = ""; + + /** + * + * + *
+     * Optional. Source of the module.
+     * 
+ * + * string source = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The source. + */ + public java.lang.String getSource() { + java.lang.Object ref = source_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + source_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Source of the module.
+     * 
+ * + * string source = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for source. + */ + public com.google.protobuf.ByteString getSourceBytes() { + java.lang.Object ref = source_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + source_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Source of the module.
+     * 
+ * + * string source = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The source to set. + * @return This builder for chaining. + */ + public Builder setSource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Source of the module.
+     * 
+ * + * string source = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSource() { + source_ = getDefaultInstance().getSource(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Source of the module.
+     * 
+ * + * string source = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for source to set. + * @return This builder for chaining. + */ + public Builder setSourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + source_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object version_ = ""; + + /** + * + * + *
+     * Optional. Version constraint for the module.
+     * 
+ * + * string version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+     * Optional. Version constraint for the module.
+     * 
+ * + * string version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+     * Optional. Version constraint for the module.
+     * 
+ * + * string version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Version constraint for the module.
+     * 
+ * + * string version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearVersion() { + version_ = getDefaultInstance().getVersion(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Version constraint for the module.
+     * 
+ * + * string version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ModuleDependency) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ModuleDependency) + private static final com.google.cloud.designcenter.v1.ModuleDependency DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.ModuleDependency(); + } + + public static com.google.cloud.designcenter.v1.ModuleDependency getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ModuleDependency parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ModuleDependency getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ModuleDependencyOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ModuleDependencyOrBuilder.java new file mode 100644 index 000000000000..4b636ee6299c --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ModuleDependencyOrBuilder.java @@ -0,0 +1,106 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ModuleDependencyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ModuleDependency) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Local name of the module instance.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Optional. Local name of the module instance.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. Source of the module.
+   * 
+ * + * string source = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The source. + */ + java.lang.String getSource(); + + /** + * + * + *
+   * Optional. Source of the module.
+   * 
+ * + * string source = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for source. + */ + com.google.protobuf.ByteString getSourceBytes(); + + /** + * + * + *
+   * Optional. Version constraint for the module.
+   * 
+ * + * string version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The version. + */ + java.lang.String getVersion(); + + /** + * + * + *
+   * Optional. Version constraint for the module.
+   * 
+ * + * string version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for version. + */ + com.google.protobuf.ByteString getVersionBytes(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ModuleDetails.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ModuleDetails.java new file mode 100644 index 000000000000..5fb94c5067f8 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ModuleDetails.java @@ -0,0 +1,3896 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Details about a specific module, submodule, or example.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ModuleDetails} + */ +@com.google.protobuf.Generated +public final class ModuleDetails extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ModuleDetails) + ModuleDetailsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ModuleDetails"); + } + + // Use ModuleDetails.newBuilder() to construct. + private ModuleDetails(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ModuleDetails() { + path_ = ""; + name_ = ""; + readme_ = ""; + inputs_ = java.util.Collections.emptyList(); + outputs_ = java.util.Collections.emptyList(); + moduleDependencies_ = java.util.Collections.emptyList(); + providerDependencies_ = java.util.Collections.emptyList(); + resources_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_ModuleDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_ModuleDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ModuleDetails.class, + com.google.cloud.designcenter.v1.ModuleDetails.Builder.class); + } + + public static final int PATH_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object path_ = ""; + + /** + * + * + *
+   * Optional. Relative path to the module/example.
+   * 
+ * + * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+   * Optional. Relative path to the module/example.
+   * 
+ * + * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Optional. Name of the module/example.
+   * 
+ * + * string name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+   * Optional. Name of the module/example.
+   * 
+ * + * string name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 README_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object readme_ = ""; + + /** + * + * + *
+   * Optional. Content of the README file.
+   * 
+ * + * string readme = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The readme. + */ + @java.lang.Override + public java.lang.String getReadme() { + java.lang.Object ref = readme_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + readme_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Content of the README file.
+   * 
+ * + * string readme = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for readme. + */ + @java.lang.Override + public com.google.protobuf.ByteString getReadmeBytes() { + java.lang.Object ref = readme_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + readme_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EMPTY_FIELD_NUMBER = 4; + private boolean empty_ = false; + + /** + * + * + *
+   * Optional. Indicates if the module/example directory is empty of .tf files.
+   * 
+ * + * bool empty = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The empty. + */ + @java.lang.Override + public boolean getEmpty() { + return empty_; + } + + public static final int INPUTS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private java.util.List inputs_; + + /** + * + * + *
+   * Optional. List of input variables.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleInput inputs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getInputsList() { + return inputs_; + } + + /** + * + * + *
+   * Optional. List of input variables.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleInput inputs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getInputsOrBuilderList() { + return inputs_; + } + + /** + * + * + *
+   * Optional. List of input variables.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleInput inputs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getInputsCount() { + return inputs_.size(); + } + + /** + * + * + *
+   * Optional. List of input variables.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleInput inputs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ModuleInput getInputs(int index) { + return inputs_.get(index); + } + + /** + * + * + *
+   * Optional. List of input variables.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleInput inputs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ModuleInputOrBuilder getInputsOrBuilder(int index) { + return inputs_.get(index); + } + + public static final int OUTPUTS_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private java.util.List outputs_; + + /** + * + * + *
+   * Optional. List of outputs.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleOutput outputs = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getOutputsList() { + return outputs_; + } + + /** + * + * + *
+   * Optional. List of outputs.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleOutput outputs = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getOutputsOrBuilderList() { + return outputs_; + } + + /** + * + * + *
+   * Optional. List of outputs.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleOutput outputs = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getOutputsCount() { + return outputs_.size(); + } + + /** + * + * + *
+   * Optional. List of outputs.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleOutput outputs = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ModuleOutput getOutputs(int index) { + return outputs_.get(index); + } + + /** + * + * + *
+   * Optional. List of outputs.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleOutput outputs = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ModuleOutputOrBuilder getOutputsOrBuilder(int index) { + return outputs_.get(index); + } + + public static final int MODULE_DEPENDENCIES_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private java.util.List moduleDependencies_; + + /** + * + * + *
+   * Optional. List of module dependencies.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDependency module_dependencies = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getModuleDependenciesList() { + return moduleDependencies_; + } + + /** + * + * + *
+   * Optional. List of module dependencies.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDependency module_dependencies = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getModuleDependenciesOrBuilderList() { + return moduleDependencies_; + } + + /** + * + * + *
+   * Optional. List of module dependencies.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDependency module_dependencies = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getModuleDependenciesCount() { + return moduleDependencies_.size(); + } + + /** + * + * + *
+   * Optional. List of module dependencies.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDependency module_dependencies = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ModuleDependency getModuleDependencies(int index) { + return moduleDependencies_.get(index); + } + + /** + * + * + *
+   * Optional. List of module dependencies.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDependency module_dependencies = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ModuleDependencyOrBuilder getModuleDependenciesOrBuilder( + int index) { + return moduleDependencies_.get(index); + } + + public static final int PROVIDER_DEPENDENCIES_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private java.util.List providerDependencies_; + + /** + * + * + *
+   * Optional. List of provider dependencies.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderDependency provider_dependencies = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getProviderDependenciesList() { + return providerDependencies_; + } + + /** + * + * + *
+   * Optional. List of provider dependencies.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderDependency provider_dependencies = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getProviderDependenciesOrBuilderList() { + return providerDependencies_; + } + + /** + * + * + *
+   * Optional. List of provider dependencies.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderDependency provider_dependencies = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getProviderDependenciesCount() { + return providerDependencies_.size(); + } + + /** + * + * + *
+   * Optional. List of provider dependencies.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderDependency provider_dependencies = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ProviderDependency getProviderDependencies(int index) { + return providerDependencies_.get(index); + } + + /** + * + * + *
+   * Optional. List of provider dependencies.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderDependency provider_dependencies = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ProviderDependencyOrBuilder + getProviderDependenciesOrBuilder(int index) { + return providerDependencies_.get(index); + } + + public static final int RESOURCES_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private java.util.List resources_; + + /** + * + * + *
+   * Optional. List of resources defined.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleResource resources = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getResourcesList() { + return resources_; + } + + /** + * + * + *
+   * Optional. List of resources defined.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleResource resources = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getResourcesOrBuilderList() { + return resources_; + } + + /** + * + * + *
+   * Optional. List of resources defined.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleResource resources = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getResourcesCount() { + return resources_.size(); + } + + /** + * + * + *
+   * Optional. List of resources defined.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleResource resources = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ModuleResource getResources(int index) { + return resources_.get(index); + } + + /** + * + * + *
+   * Optional. List of resources defined.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleResource resources = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ModuleResourceOrBuilder getResourcesOrBuilder(int index) { + return resources_.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.GeneratedMessage.isStringEmpty(path_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, path_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(readme_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, readme_); + } + if (empty_ != false) { + output.writeBool(4, empty_); + } + for (int i = 0; i < inputs_.size(); i++) { + output.writeMessage(5, inputs_.get(i)); + } + for (int i = 0; i < outputs_.size(); i++) { + output.writeMessage(6, outputs_.get(i)); + } + for (int i = 0; i < moduleDependencies_.size(); i++) { + output.writeMessage(7, moduleDependencies_.get(i)); + } + for (int i = 0; i < providerDependencies_.size(); i++) { + output.writeMessage(8, providerDependencies_.get(i)); + } + for (int i = 0; i < resources_.size(); i++) { + output.writeMessage(9, resources_.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.GeneratedMessage.isStringEmpty(path_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, path_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(readme_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, readme_); + } + if (empty_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, empty_); + } + for (int i = 0; i < inputs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, inputs_.get(i)); + } + for (int i = 0; i < outputs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, outputs_.get(i)); + } + for (int i = 0; i < moduleDependencies_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(7, moduleDependencies_.get(i)); + } + for (int i = 0; i < providerDependencies_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(8, providerDependencies_.get(i)); + } + for (int i = 0; i < resources_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, resources_.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.designcenter.v1.ModuleDetails)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ModuleDetails other = + (com.google.cloud.designcenter.v1.ModuleDetails) obj; + + if (!getPath().equals(other.getPath())) return false; + if (!getName().equals(other.getName())) return false; + if (!getReadme().equals(other.getReadme())) return false; + if (getEmpty() != other.getEmpty()) return false; + if (!getInputsList().equals(other.getInputsList())) return false; + if (!getOutputsList().equals(other.getOutputsList())) return false; + if (!getModuleDependenciesList().equals(other.getModuleDependenciesList())) return false; + if (!getProviderDependenciesList().equals(other.getProviderDependenciesList())) return false; + if (!getResourcesList().equals(other.getResourcesList())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + README_FIELD_NUMBER; + hash = (53 * hash) + getReadme().hashCode(); + hash = (37 * hash) + EMPTY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEmpty()); + if (getInputsCount() > 0) { + hash = (37 * hash) + INPUTS_FIELD_NUMBER; + hash = (53 * hash) + getInputsList().hashCode(); + } + if (getOutputsCount() > 0) { + hash = (37 * hash) + OUTPUTS_FIELD_NUMBER; + hash = (53 * hash) + getOutputsList().hashCode(); + } + if (getModuleDependenciesCount() > 0) { + hash = (37 * hash) + MODULE_DEPENDENCIES_FIELD_NUMBER; + hash = (53 * hash) + getModuleDependenciesList().hashCode(); + } + if (getProviderDependenciesCount() > 0) { + hash = (37 * hash) + PROVIDER_DEPENDENCIES_FIELD_NUMBER; + hash = (53 * hash) + getProviderDependenciesList().hashCode(); + } + if (getResourcesCount() > 0) { + hash = (37 * hash) + RESOURCES_FIELD_NUMBER; + hash = (53 * hash) + getResourcesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.ModuleDetails parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ModuleDetails 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.designcenter.v1.ModuleDetails parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ModuleDetails parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ModuleDetails parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ModuleDetails parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ModuleDetails parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ModuleDetails parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ModuleDetails parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ModuleDetails parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ModuleDetails parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ModuleDetails parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ModuleDetails 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Details about a specific module, submodule, or example.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ModuleDetails} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ModuleDetails) + com.google.cloud.designcenter.v1.ModuleDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_ModuleDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_ModuleDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ModuleDetails.class, + com.google.cloud.designcenter.v1.ModuleDetails.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.ModuleDetails.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + path_ = ""; + name_ = ""; + readme_ = ""; + empty_ = false; + if (inputsBuilder_ == null) { + inputs_ = java.util.Collections.emptyList(); + } else { + inputs_ = null; + inputsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + if (outputsBuilder_ == null) { + outputs_ = java.util.Collections.emptyList(); + } else { + outputs_ = null; + outputsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + if (moduleDependenciesBuilder_ == null) { + moduleDependencies_ = java.util.Collections.emptyList(); + } else { + moduleDependencies_ = null; + moduleDependenciesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000040); + if (providerDependenciesBuilder_ == null) { + providerDependencies_ = java.util.Collections.emptyList(); + } else { + providerDependencies_ = null; + providerDependenciesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000080); + if (resourcesBuilder_ == null) { + resources_ = java.util.Collections.emptyList(); + } else { + resources_ = null; + resourcesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000100); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_ModuleDetails_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ModuleDetails getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ModuleDetails.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ModuleDetails build() { + com.google.cloud.designcenter.v1.ModuleDetails result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ModuleDetails buildPartial() { + com.google.cloud.designcenter.v1.ModuleDetails result = + new com.google.cloud.designcenter.v1.ModuleDetails(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.designcenter.v1.ModuleDetails result) { + if (inputsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + inputs_ = java.util.Collections.unmodifiableList(inputs_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.inputs_ = inputs_; + } else { + result.inputs_ = inputsBuilder_.build(); + } + if (outputsBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + outputs_ = java.util.Collections.unmodifiableList(outputs_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.outputs_ = outputs_; + } else { + result.outputs_ = outputsBuilder_.build(); + } + if (moduleDependenciesBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0)) { + moduleDependencies_ = java.util.Collections.unmodifiableList(moduleDependencies_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.moduleDependencies_ = moduleDependencies_; + } else { + result.moduleDependencies_ = moduleDependenciesBuilder_.build(); + } + if (providerDependenciesBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0)) { + providerDependencies_ = java.util.Collections.unmodifiableList(providerDependencies_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.providerDependencies_ = providerDependencies_; + } else { + result.providerDependencies_ = providerDependenciesBuilder_.build(); + } + if (resourcesBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0)) { + resources_ = java.util.Collections.unmodifiableList(resources_); + bitField0_ = (bitField0_ & ~0x00000100); + } + result.resources_ = resources_; + } else { + result.resources_ = resourcesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.designcenter.v1.ModuleDetails result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.path_ = path_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.readme_ = readme_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.empty_ = empty_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.ModuleDetails) { + return mergeFrom((com.google.cloud.designcenter.v1.ModuleDetails) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.ModuleDetails other) { + if (other == com.google.cloud.designcenter.v1.ModuleDetails.getDefaultInstance()) return this; + if (!other.getPath().isEmpty()) { + path_ = other.path_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getReadme().isEmpty()) { + readme_ = other.readme_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.getEmpty() != false) { + setEmpty(other.getEmpty()); + } + if (inputsBuilder_ == null) { + if (!other.inputs_.isEmpty()) { + if (inputs_.isEmpty()) { + inputs_ = other.inputs_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureInputsIsMutable(); + inputs_.addAll(other.inputs_); + } + onChanged(); + } + } else { + if (!other.inputs_.isEmpty()) { + if (inputsBuilder_.isEmpty()) { + inputsBuilder_.dispose(); + inputsBuilder_ = null; + inputs_ = other.inputs_; + bitField0_ = (bitField0_ & ~0x00000010); + inputsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetInputsFieldBuilder() + : null; + } else { + inputsBuilder_.addAllMessages(other.inputs_); + } + } + } + if (outputsBuilder_ == null) { + if (!other.outputs_.isEmpty()) { + if (outputs_.isEmpty()) { + outputs_ = other.outputs_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureOutputsIsMutable(); + outputs_.addAll(other.outputs_); + } + onChanged(); + } + } else { + if (!other.outputs_.isEmpty()) { + if (outputsBuilder_.isEmpty()) { + outputsBuilder_.dispose(); + outputsBuilder_ = null; + outputs_ = other.outputs_; + bitField0_ = (bitField0_ & ~0x00000020); + outputsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetOutputsFieldBuilder() + : null; + } else { + outputsBuilder_.addAllMessages(other.outputs_); + } + } + } + if (moduleDependenciesBuilder_ == null) { + if (!other.moduleDependencies_.isEmpty()) { + if (moduleDependencies_.isEmpty()) { + moduleDependencies_ = other.moduleDependencies_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureModuleDependenciesIsMutable(); + moduleDependencies_.addAll(other.moduleDependencies_); + } + onChanged(); + } + } else { + if (!other.moduleDependencies_.isEmpty()) { + if (moduleDependenciesBuilder_.isEmpty()) { + moduleDependenciesBuilder_.dispose(); + moduleDependenciesBuilder_ = null; + moduleDependencies_ = other.moduleDependencies_; + bitField0_ = (bitField0_ & ~0x00000040); + moduleDependenciesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetModuleDependenciesFieldBuilder() + : null; + } else { + moduleDependenciesBuilder_.addAllMessages(other.moduleDependencies_); + } + } + } + if (providerDependenciesBuilder_ == null) { + if (!other.providerDependencies_.isEmpty()) { + if (providerDependencies_.isEmpty()) { + providerDependencies_ = other.providerDependencies_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureProviderDependenciesIsMutable(); + providerDependencies_.addAll(other.providerDependencies_); + } + onChanged(); + } + } else { + if (!other.providerDependencies_.isEmpty()) { + if (providerDependenciesBuilder_.isEmpty()) { + providerDependenciesBuilder_.dispose(); + providerDependenciesBuilder_ = null; + providerDependencies_ = other.providerDependencies_; + bitField0_ = (bitField0_ & ~0x00000080); + providerDependenciesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetProviderDependenciesFieldBuilder() + : null; + } else { + providerDependenciesBuilder_.addAllMessages(other.providerDependencies_); + } + } + } + if (resourcesBuilder_ == null) { + if (!other.resources_.isEmpty()) { + if (resources_.isEmpty()) { + resources_ = other.resources_; + bitField0_ = (bitField0_ & ~0x00000100); + } else { + ensureResourcesIsMutable(); + resources_.addAll(other.resources_); + } + onChanged(); + } + } else { + if (!other.resources_.isEmpty()) { + if (resourcesBuilder_.isEmpty()) { + resourcesBuilder_.dispose(); + resourcesBuilder_ = null; + resources_ = other.resources_; + bitField0_ = (bitField0_ & ~0x00000100); + resourcesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetResourcesFieldBuilder() + : null; + } else { + resourcesBuilder_.addAllMessages(other.resources_); + } + } + } + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + readme_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + empty_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + com.google.cloud.designcenter.v1.ModuleInput m = + input.readMessage( + com.google.cloud.designcenter.v1.ModuleInput.parser(), extensionRegistry); + if (inputsBuilder_ == null) { + ensureInputsIsMutable(); + inputs_.add(m); + } else { + inputsBuilder_.addMessage(m); + } + break; + } // case 42 + case 50: + { + com.google.cloud.designcenter.v1.ModuleOutput m = + input.readMessage( + com.google.cloud.designcenter.v1.ModuleOutput.parser(), extensionRegistry); + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + outputs_.add(m); + } else { + outputsBuilder_.addMessage(m); + } + break; + } // case 50 + case 58: + { + com.google.cloud.designcenter.v1.ModuleDependency m = + input.readMessage( + com.google.cloud.designcenter.v1.ModuleDependency.parser(), + extensionRegistry); + if (moduleDependenciesBuilder_ == null) { + ensureModuleDependenciesIsMutable(); + moduleDependencies_.add(m); + } else { + moduleDependenciesBuilder_.addMessage(m); + } + break; + } // case 58 + case 66: + { + com.google.cloud.designcenter.v1.ProviderDependency m = + input.readMessage( + com.google.cloud.designcenter.v1.ProviderDependency.parser(), + extensionRegistry); + if (providerDependenciesBuilder_ == null) { + ensureProviderDependenciesIsMutable(); + providerDependencies_.add(m); + } else { + providerDependenciesBuilder_.addMessage(m); + } + break; + } // case 66 + case 74: + { + com.google.cloud.designcenter.v1.ModuleResource m = + input.readMessage( + com.google.cloud.designcenter.v1.ModuleResource.parser(), + extensionRegistry); + if (resourcesBuilder_ == null) { + ensureResourcesIsMutable(); + resources_.add(m); + } else { + resourcesBuilder_.addMessage(m); + } + break; + } // case 74 + default: + { + 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_ = ""; + + /** + * + * + *
+     * Optional. Relative path to the module/example.
+     * 
+ * + * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+     * Optional. Relative path to the module/example.
+     * 
+ * + * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+     * Optional. Relative path to the module/example.
+     * 
+ * + * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + + /** + * + * + *
+     * Optional. Relative path to the module/example.
+     * 
+ * + * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPath() { + path_ = getDefaultInstance().getPath(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Relative path to the module/example.
+     * 
+ * + * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 name_ = ""; + + /** + * + * + *
+     * Optional. Name of the module/example.
+     * 
+ * + * string name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The name. + */ + public java.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; + } + } + + /** + * + * + *
+     * Optional. Name of the module/example.
+     * 
+ * + * string name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+     * Optional. Name of the module/example.
+     * 
+ * + * string name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Name of the module/example.
+     * 
+ * + * string name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Name of the module/example.
+     * 
+ * + * string name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object readme_ = ""; + + /** + * + * + *
+     * Optional. Content of the README file.
+     * 
+ * + * string readme = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The readme. + */ + public java.lang.String getReadme() { + java.lang.Object ref = readme_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + readme_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Content of the README file.
+     * 
+ * + * string readme = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for readme. + */ + public com.google.protobuf.ByteString getReadmeBytes() { + java.lang.Object ref = readme_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + readme_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Content of the README file.
+     * 
+ * + * string readme = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The readme to set. + * @return This builder for chaining. + */ + public Builder setReadme(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + readme_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Content of the README file.
+     * 
+ * + * string readme = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearReadme() { + readme_ = getDefaultInstance().getReadme(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Content of the README file.
+     * 
+ * + * string readme = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for readme to set. + * @return This builder for chaining. + */ + public Builder setReadmeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + readme_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private boolean empty_; + + /** + * + * + *
+     * Optional. Indicates if the module/example directory is empty of .tf files.
+     * 
+ * + * bool empty = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The empty. + */ + @java.lang.Override + public boolean getEmpty() { + return empty_; + } + + /** + * + * + *
+     * Optional. Indicates if the module/example directory is empty of .tf files.
+     * 
+ * + * bool empty = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The empty to set. + * @return This builder for chaining. + */ + public Builder setEmpty(boolean value) { + + empty_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Indicates if the module/example directory is empty of .tf files.
+     * 
+ * + * bool empty = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEmpty() { + bitField0_ = (bitField0_ & ~0x00000008); + empty_ = false; + onChanged(); + return this; + } + + private java.util.List inputs_ = + java.util.Collections.emptyList(); + + private void ensureInputsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + inputs_ = new java.util.ArrayList(inputs_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ModuleInput, + com.google.cloud.designcenter.v1.ModuleInput.Builder, + com.google.cloud.designcenter.v1.ModuleInputOrBuilder> + inputsBuilder_; + + /** + * + * + *
+     * Optional. List of input variables.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleInput inputs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getInputsList() { + if (inputsBuilder_ == null) { + return java.util.Collections.unmodifiableList(inputs_); + } else { + return inputsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. List of input variables.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleInput inputs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getInputsCount() { + if (inputsBuilder_ == null) { + return inputs_.size(); + } else { + return inputsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. List of input variables.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleInput inputs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ModuleInput getInputs(int index) { + if (inputsBuilder_ == null) { + return inputs_.get(index); + } else { + return inputsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. List of input variables.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleInput inputs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setInputs(int index, com.google.cloud.designcenter.v1.ModuleInput value) { + if (inputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputsIsMutable(); + inputs_.set(index, value); + onChanged(); + } else { + inputsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. List of input variables.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleInput inputs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setInputs( + int index, com.google.cloud.designcenter.v1.ModuleInput.Builder builderForValue) { + if (inputsBuilder_ == null) { + ensureInputsIsMutable(); + inputs_.set(index, builderForValue.build()); + onChanged(); + } else { + inputsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. List of input variables.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleInput inputs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addInputs(com.google.cloud.designcenter.v1.ModuleInput value) { + if (inputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputsIsMutable(); + inputs_.add(value); + onChanged(); + } else { + inputsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. List of input variables.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleInput inputs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addInputs(int index, com.google.cloud.designcenter.v1.ModuleInput value) { + if (inputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputsIsMutable(); + inputs_.add(index, value); + onChanged(); + } else { + inputsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. List of input variables.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleInput inputs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addInputs(com.google.cloud.designcenter.v1.ModuleInput.Builder builderForValue) { + if (inputsBuilder_ == null) { + ensureInputsIsMutable(); + inputs_.add(builderForValue.build()); + onChanged(); + } else { + inputsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. List of input variables.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleInput inputs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addInputs( + int index, com.google.cloud.designcenter.v1.ModuleInput.Builder builderForValue) { + if (inputsBuilder_ == null) { + ensureInputsIsMutable(); + inputs_.add(index, builderForValue.build()); + onChanged(); + } else { + inputsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. List of input variables.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleInput inputs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllInputs( + java.lang.Iterable values) { + if (inputsBuilder_ == null) { + ensureInputsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, inputs_); + onChanged(); + } else { + inputsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. List of input variables.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleInput inputs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearInputs() { + if (inputsBuilder_ == null) { + inputs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + inputsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. List of input variables.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleInput inputs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeInputs(int index) { + if (inputsBuilder_ == null) { + ensureInputsIsMutable(); + inputs_.remove(index); + onChanged(); + } else { + inputsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. List of input variables.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleInput inputs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ModuleInput.Builder getInputsBuilder(int index) { + return internalGetInputsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. List of input variables.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleInput inputs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ModuleInputOrBuilder getInputsOrBuilder(int index) { + if (inputsBuilder_ == null) { + return inputs_.get(index); + } else { + return inputsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. List of input variables.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleInput inputs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getInputsOrBuilderList() { + if (inputsBuilder_ != null) { + return inputsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(inputs_); + } + } + + /** + * + * + *
+     * Optional. List of input variables.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleInput inputs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ModuleInput.Builder addInputsBuilder() { + return internalGetInputsFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.ModuleInput.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. List of input variables.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleInput inputs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ModuleInput.Builder addInputsBuilder(int index) { + return internalGetInputsFieldBuilder() + .addBuilder(index, com.google.cloud.designcenter.v1.ModuleInput.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. List of input variables.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleInput inputs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getInputsBuilderList() { + return internalGetInputsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ModuleInput, + com.google.cloud.designcenter.v1.ModuleInput.Builder, + com.google.cloud.designcenter.v1.ModuleInputOrBuilder> + internalGetInputsFieldBuilder() { + if (inputsBuilder_ == null) { + inputsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ModuleInput, + com.google.cloud.designcenter.v1.ModuleInput.Builder, + com.google.cloud.designcenter.v1.ModuleInputOrBuilder>( + inputs_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); + inputs_ = null; + } + return inputsBuilder_; + } + + private java.util.List outputs_ = + java.util.Collections.emptyList(); + + private void ensureOutputsIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + outputs_ = new java.util.ArrayList(outputs_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ModuleOutput, + com.google.cloud.designcenter.v1.ModuleOutput.Builder, + com.google.cloud.designcenter.v1.ModuleOutputOrBuilder> + outputsBuilder_; + + /** + * + * + *
+     * Optional. List of outputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleOutput outputs = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getOutputsList() { + if (outputsBuilder_ == null) { + return java.util.Collections.unmodifiableList(outputs_); + } else { + return outputsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. List of outputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleOutput outputs = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getOutputsCount() { + if (outputsBuilder_ == null) { + return outputs_.size(); + } else { + return outputsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. List of outputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleOutput outputs = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ModuleOutput getOutputs(int index) { + if (outputsBuilder_ == null) { + return outputs_.get(index); + } else { + return outputsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. List of outputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleOutput outputs = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOutputs(int index, com.google.cloud.designcenter.v1.ModuleOutput value) { + if (outputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputsIsMutable(); + outputs_.set(index, value); + onChanged(); + } else { + outputsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. List of outputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleOutput outputs = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOutputs( + int index, com.google.cloud.designcenter.v1.ModuleOutput.Builder builderForValue) { + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + outputs_.set(index, builderForValue.build()); + onChanged(); + } else { + outputsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. List of outputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleOutput outputs = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addOutputs(com.google.cloud.designcenter.v1.ModuleOutput value) { + if (outputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputsIsMutable(); + outputs_.add(value); + onChanged(); + } else { + outputsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. List of outputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleOutput outputs = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addOutputs(int index, com.google.cloud.designcenter.v1.ModuleOutput value) { + if (outputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputsIsMutable(); + outputs_.add(index, value); + onChanged(); + } else { + outputsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. List of outputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleOutput outputs = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addOutputs( + com.google.cloud.designcenter.v1.ModuleOutput.Builder builderForValue) { + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + outputs_.add(builderForValue.build()); + onChanged(); + } else { + outputsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. List of outputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleOutput outputs = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addOutputs( + int index, com.google.cloud.designcenter.v1.ModuleOutput.Builder builderForValue) { + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + outputs_.add(index, builderForValue.build()); + onChanged(); + } else { + outputsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. List of outputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleOutput outputs = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllOutputs( + java.lang.Iterable values) { + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, outputs_); + onChanged(); + } else { + outputsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. List of outputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleOutput outputs = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearOutputs() { + if (outputsBuilder_ == null) { + outputs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + outputsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. List of outputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleOutput outputs = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeOutputs(int index) { + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + outputs_.remove(index); + onChanged(); + } else { + outputsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. List of outputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleOutput outputs = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ModuleOutput.Builder getOutputsBuilder(int index) { + return internalGetOutputsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. List of outputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleOutput outputs = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ModuleOutputOrBuilder getOutputsOrBuilder(int index) { + if (outputsBuilder_ == null) { + return outputs_.get(index); + } else { + return outputsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. List of outputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleOutput outputs = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getOutputsOrBuilderList() { + if (outputsBuilder_ != null) { + return outputsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(outputs_); + } + } + + /** + * + * + *
+     * Optional. List of outputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleOutput outputs = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ModuleOutput.Builder addOutputsBuilder() { + return internalGetOutputsFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.ModuleOutput.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. List of outputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleOutput outputs = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ModuleOutput.Builder addOutputsBuilder(int index) { + return internalGetOutputsFieldBuilder() + .addBuilder(index, com.google.cloud.designcenter.v1.ModuleOutput.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. List of outputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleOutput outputs = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getOutputsBuilderList() { + return internalGetOutputsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ModuleOutput, + com.google.cloud.designcenter.v1.ModuleOutput.Builder, + com.google.cloud.designcenter.v1.ModuleOutputOrBuilder> + internalGetOutputsFieldBuilder() { + if (outputsBuilder_ == null) { + outputsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ModuleOutput, + com.google.cloud.designcenter.v1.ModuleOutput.Builder, + com.google.cloud.designcenter.v1.ModuleOutputOrBuilder>( + outputs_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); + outputs_ = null; + } + return outputsBuilder_; + } + + private java.util.List moduleDependencies_ = + java.util.Collections.emptyList(); + + private void ensureModuleDependenciesIsMutable() { + if (!((bitField0_ & 0x00000040) != 0)) { + moduleDependencies_ = + new java.util.ArrayList( + moduleDependencies_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ModuleDependency, + com.google.cloud.designcenter.v1.ModuleDependency.Builder, + com.google.cloud.designcenter.v1.ModuleDependencyOrBuilder> + moduleDependenciesBuilder_; + + /** + * + * + *
+     * Optional. List of module dependencies.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDependency module_dependencies = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getModuleDependenciesList() { + if (moduleDependenciesBuilder_ == null) { + return java.util.Collections.unmodifiableList(moduleDependencies_); + } else { + return moduleDependenciesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. List of module dependencies.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDependency module_dependencies = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getModuleDependenciesCount() { + if (moduleDependenciesBuilder_ == null) { + return moduleDependencies_.size(); + } else { + return moduleDependenciesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. List of module dependencies.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDependency module_dependencies = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ModuleDependency getModuleDependencies(int index) { + if (moduleDependenciesBuilder_ == null) { + return moduleDependencies_.get(index); + } else { + return moduleDependenciesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. List of module dependencies.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDependency module_dependencies = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setModuleDependencies( + int index, com.google.cloud.designcenter.v1.ModuleDependency value) { + if (moduleDependenciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureModuleDependenciesIsMutable(); + moduleDependencies_.set(index, value); + onChanged(); + } else { + moduleDependenciesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. List of module dependencies.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDependency module_dependencies = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setModuleDependencies( + int index, com.google.cloud.designcenter.v1.ModuleDependency.Builder builderForValue) { + if (moduleDependenciesBuilder_ == null) { + ensureModuleDependenciesIsMutable(); + moduleDependencies_.set(index, builderForValue.build()); + onChanged(); + } else { + moduleDependenciesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. List of module dependencies.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDependency module_dependencies = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addModuleDependencies(com.google.cloud.designcenter.v1.ModuleDependency value) { + if (moduleDependenciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureModuleDependenciesIsMutable(); + moduleDependencies_.add(value); + onChanged(); + } else { + moduleDependenciesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. List of module dependencies.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDependency module_dependencies = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addModuleDependencies( + int index, com.google.cloud.designcenter.v1.ModuleDependency value) { + if (moduleDependenciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureModuleDependenciesIsMutable(); + moduleDependencies_.add(index, value); + onChanged(); + } else { + moduleDependenciesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. List of module dependencies.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDependency module_dependencies = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addModuleDependencies( + com.google.cloud.designcenter.v1.ModuleDependency.Builder builderForValue) { + if (moduleDependenciesBuilder_ == null) { + ensureModuleDependenciesIsMutable(); + moduleDependencies_.add(builderForValue.build()); + onChanged(); + } else { + moduleDependenciesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. List of module dependencies.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDependency module_dependencies = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addModuleDependencies( + int index, com.google.cloud.designcenter.v1.ModuleDependency.Builder builderForValue) { + if (moduleDependenciesBuilder_ == null) { + ensureModuleDependenciesIsMutable(); + moduleDependencies_.add(index, builderForValue.build()); + onChanged(); + } else { + moduleDependenciesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. List of module dependencies.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDependency module_dependencies = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllModuleDependencies( + java.lang.Iterable values) { + if (moduleDependenciesBuilder_ == null) { + ensureModuleDependenciesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, moduleDependencies_); + onChanged(); + } else { + moduleDependenciesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. List of module dependencies.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDependency module_dependencies = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearModuleDependencies() { + if (moduleDependenciesBuilder_ == null) { + moduleDependencies_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + moduleDependenciesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. List of module dependencies.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDependency module_dependencies = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeModuleDependencies(int index) { + if (moduleDependenciesBuilder_ == null) { + ensureModuleDependenciesIsMutable(); + moduleDependencies_.remove(index); + onChanged(); + } else { + moduleDependenciesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. List of module dependencies.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDependency module_dependencies = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ModuleDependency.Builder getModuleDependenciesBuilder( + int index) { + return internalGetModuleDependenciesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. List of module dependencies.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDependency module_dependencies = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ModuleDependencyOrBuilder + getModuleDependenciesOrBuilder(int index) { + if (moduleDependenciesBuilder_ == null) { + return moduleDependencies_.get(index); + } else { + return moduleDependenciesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. List of module dependencies.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDependency module_dependencies = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getModuleDependenciesOrBuilderList() { + if (moduleDependenciesBuilder_ != null) { + return moduleDependenciesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(moduleDependencies_); + } + } + + /** + * + * + *
+     * Optional. List of module dependencies.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDependency module_dependencies = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ModuleDependency.Builder + addModuleDependenciesBuilder() { + return internalGetModuleDependenciesFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.ModuleDependency.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. List of module dependencies.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDependency module_dependencies = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ModuleDependency.Builder addModuleDependenciesBuilder( + int index) { + return internalGetModuleDependenciesFieldBuilder() + .addBuilder( + index, com.google.cloud.designcenter.v1.ModuleDependency.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. List of module dependencies.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDependency module_dependencies = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getModuleDependenciesBuilderList() { + return internalGetModuleDependenciesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ModuleDependency, + com.google.cloud.designcenter.v1.ModuleDependency.Builder, + com.google.cloud.designcenter.v1.ModuleDependencyOrBuilder> + internalGetModuleDependenciesFieldBuilder() { + if (moduleDependenciesBuilder_ == null) { + moduleDependenciesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ModuleDependency, + com.google.cloud.designcenter.v1.ModuleDependency.Builder, + com.google.cloud.designcenter.v1.ModuleDependencyOrBuilder>( + moduleDependencies_, + ((bitField0_ & 0x00000040) != 0), + getParentForChildren(), + isClean()); + moduleDependencies_ = null; + } + return moduleDependenciesBuilder_; + } + + private java.util.List + providerDependencies_ = java.util.Collections.emptyList(); + + private void ensureProviderDependenciesIsMutable() { + if (!((bitField0_ & 0x00000080) != 0)) { + providerDependencies_ = + new java.util.ArrayList( + providerDependencies_); + bitField0_ |= 0x00000080; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ProviderDependency, + com.google.cloud.designcenter.v1.ProviderDependency.Builder, + com.google.cloud.designcenter.v1.ProviderDependencyOrBuilder> + providerDependenciesBuilder_; + + /** + * + * + *
+     * Optional. List of provider dependencies.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderDependency provider_dependencies = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getProviderDependenciesList() { + if (providerDependenciesBuilder_ == null) { + return java.util.Collections.unmodifiableList(providerDependencies_); + } else { + return providerDependenciesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. List of provider dependencies.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderDependency provider_dependencies = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getProviderDependenciesCount() { + if (providerDependenciesBuilder_ == null) { + return providerDependencies_.size(); + } else { + return providerDependenciesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. List of provider dependencies.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderDependency provider_dependencies = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ProviderDependency getProviderDependencies(int index) { + if (providerDependenciesBuilder_ == null) { + return providerDependencies_.get(index); + } else { + return providerDependenciesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. List of provider dependencies.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderDependency provider_dependencies = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setProviderDependencies( + int index, com.google.cloud.designcenter.v1.ProviderDependency value) { + if (providerDependenciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProviderDependenciesIsMutable(); + providerDependencies_.set(index, value); + onChanged(); + } else { + providerDependenciesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. List of provider dependencies.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderDependency provider_dependencies = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setProviderDependencies( + int index, com.google.cloud.designcenter.v1.ProviderDependency.Builder builderForValue) { + if (providerDependenciesBuilder_ == null) { + ensureProviderDependenciesIsMutable(); + providerDependencies_.set(index, builderForValue.build()); + onChanged(); + } else { + providerDependenciesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. List of provider dependencies.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderDependency provider_dependencies = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addProviderDependencies( + com.google.cloud.designcenter.v1.ProviderDependency value) { + if (providerDependenciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProviderDependenciesIsMutable(); + providerDependencies_.add(value); + onChanged(); + } else { + providerDependenciesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. List of provider dependencies.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderDependency provider_dependencies = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addProviderDependencies( + int index, com.google.cloud.designcenter.v1.ProviderDependency value) { + if (providerDependenciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProviderDependenciesIsMutable(); + providerDependencies_.add(index, value); + onChanged(); + } else { + providerDependenciesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. List of provider dependencies.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderDependency provider_dependencies = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addProviderDependencies( + com.google.cloud.designcenter.v1.ProviderDependency.Builder builderForValue) { + if (providerDependenciesBuilder_ == null) { + ensureProviderDependenciesIsMutable(); + providerDependencies_.add(builderForValue.build()); + onChanged(); + } else { + providerDependenciesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. List of provider dependencies.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderDependency provider_dependencies = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addProviderDependencies( + int index, com.google.cloud.designcenter.v1.ProviderDependency.Builder builderForValue) { + if (providerDependenciesBuilder_ == null) { + ensureProviderDependenciesIsMutable(); + providerDependencies_.add(index, builderForValue.build()); + onChanged(); + } else { + providerDependenciesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. List of provider dependencies.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderDependency provider_dependencies = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllProviderDependencies( + java.lang.Iterable values) { + if (providerDependenciesBuilder_ == null) { + ensureProviderDependenciesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, providerDependencies_); + onChanged(); + } else { + providerDependenciesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. List of provider dependencies.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderDependency provider_dependencies = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearProviderDependencies() { + if (providerDependenciesBuilder_ == null) { + providerDependencies_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + } else { + providerDependenciesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. List of provider dependencies.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderDependency provider_dependencies = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeProviderDependencies(int index) { + if (providerDependenciesBuilder_ == null) { + ensureProviderDependenciesIsMutable(); + providerDependencies_.remove(index); + onChanged(); + } else { + providerDependenciesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. List of provider dependencies.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderDependency provider_dependencies = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ProviderDependency.Builder + getProviderDependenciesBuilder(int index) { + return internalGetProviderDependenciesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. List of provider dependencies.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderDependency provider_dependencies = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ProviderDependencyOrBuilder + getProviderDependenciesOrBuilder(int index) { + if (providerDependenciesBuilder_ == null) { + return providerDependencies_.get(index); + } else { + return providerDependenciesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. List of provider dependencies.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderDependency provider_dependencies = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getProviderDependenciesOrBuilderList() { + if (providerDependenciesBuilder_ != null) { + return providerDependenciesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(providerDependencies_); + } + } + + /** + * + * + *
+     * Optional. List of provider dependencies.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderDependency provider_dependencies = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ProviderDependency.Builder + addProviderDependenciesBuilder() { + return internalGetProviderDependenciesFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.ProviderDependency.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. List of provider dependencies.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderDependency provider_dependencies = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ProviderDependency.Builder + addProviderDependenciesBuilder(int index) { + return internalGetProviderDependenciesFieldBuilder() + .addBuilder( + index, com.google.cloud.designcenter.v1.ProviderDependency.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. List of provider dependencies.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderDependency provider_dependencies = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getProviderDependenciesBuilderList() { + return internalGetProviderDependenciesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ProviderDependency, + com.google.cloud.designcenter.v1.ProviderDependency.Builder, + com.google.cloud.designcenter.v1.ProviderDependencyOrBuilder> + internalGetProviderDependenciesFieldBuilder() { + if (providerDependenciesBuilder_ == null) { + providerDependenciesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ProviderDependency, + com.google.cloud.designcenter.v1.ProviderDependency.Builder, + com.google.cloud.designcenter.v1.ProviderDependencyOrBuilder>( + providerDependencies_, + ((bitField0_ & 0x00000080) != 0), + getParentForChildren(), + isClean()); + providerDependencies_ = null; + } + return providerDependenciesBuilder_; + } + + private java.util.List resources_ = + java.util.Collections.emptyList(); + + private void ensureResourcesIsMutable() { + if (!((bitField0_ & 0x00000100) != 0)) { + resources_ = + new java.util.ArrayList(resources_); + bitField0_ |= 0x00000100; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ModuleResource, + com.google.cloud.designcenter.v1.ModuleResource.Builder, + com.google.cloud.designcenter.v1.ModuleResourceOrBuilder> + resourcesBuilder_; + + /** + * + * + *
+     * Optional. List of resources defined.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleResource resources = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getResourcesList() { + if (resourcesBuilder_ == null) { + return java.util.Collections.unmodifiableList(resources_); + } else { + return resourcesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. List of resources defined.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleResource resources = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getResourcesCount() { + if (resourcesBuilder_ == null) { + return resources_.size(); + } else { + return resourcesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. List of resources defined.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleResource resources = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ModuleResource getResources(int index) { + if (resourcesBuilder_ == null) { + return resources_.get(index); + } else { + return resourcesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. List of resources defined.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleResource resources = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setResources(int index, com.google.cloud.designcenter.v1.ModuleResource value) { + if (resourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourcesIsMutable(); + resources_.set(index, value); + onChanged(); + } else { + resourcesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. List of resources defined.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleResource resources = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setResources( + int index, com.google.cloud.designcenter.v1.ModuleResource.Builder builderForValue) { + if (resourcesBuilder_ == null) { + ensureResourcesIsMutable(); + resources_.set(index, builderForValue.build()); + onChanged(); + } else { + resourcesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. List of resources defined.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleResource resources = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addResources(com.google.cloud.designcenter.v1.ModuleResource value) { + if (resourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourcesIsMutable(); + resources_.add(value); + onChanged(); + } else { + resourcesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. List of resources defined.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleResource resources = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addResources(int index, com.google.cloud.designcenter.v1.ModuleResource value) { + if (resourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourcesIsMutable(); + resources_.add(index, value); + onChanged(); + } else { + resourcesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. List of resources defined.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleResource resources = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addResources( + com.google.cloud.designcenter.v1.ModuleResource.Builder builderForValue) { + if (resourcesBuilder_ == null) { + ensureResourcesIsMutable(); + resources_.add(builderForValue.build()); + onChanged(); + } else { + resourcesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. List of resources defined.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleResource resources = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addResources( + int index, com.google.cloud.designcenter.v1.ModuleResource.Builder builderForValue) { + if (resourcesBuilder_ == null) { + ensureResourcesIsMutable(); + resources_.add(index, builderForValue.build()); + onChanged(); + } else { + resourcesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. List of resources defined.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleResource resources = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllResources( + java.lang.Iterable values) { + if (resourcesBuilder_ == null) { + ensureResourcesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resources_); + onChanged(); + } else { + resourcesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. List of resources defined.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleResource resources = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearResources() { + if (resourcesBuilder_ == null) { + resources_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + } else { + resourcesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. List of resources defined.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleResource resources = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeResources(int index) { + if (resourcesBuilder_ == null) { + ensureResourcesIsMutable(); + resources_.remove(index); + onChanged(); + } else { + resourcesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. List of resources defined.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleResource resources = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ModuleResource.Builder getResourcesBuilder(int index) { + return internalGetResourcesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. List of resources defined.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleResource resources = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ModuleResourceOrBuilder getResourcesOrBuilder( + int index) { + if (resourcesBuilder_ == null) { + return resources_.get(index); + } else { + return resourcesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. List of resources defined.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleResource resources = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getResourcesOrBuilderList() { + if (resourcesBuilder_ != null) { + return resourcesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(resources_); + } + } + + /** + * + * + *
+     * Optional. List of resources defined.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleResource resources = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ModuleResource.Builder addResourcesBuilder() { + return internalGetResourcesFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.ModuleResource.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. List of resources defined.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleResource resources = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ModuleResource.Builder addResourcesBuilder(int index) { + return internalGetResourcesFieldBuilder() + .addBuilder(index, com.google.cloud.designcenter.v1.ModuleResource.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. List of resources defined.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleResource resources = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getResourcesBuilderList() { + return internalGetResourcesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ModuleResource, + com.google.cloud.designcenter.v1.ModuleResource.Builder, + com.google.cloud.designcenter.v1.ModuleResourceOrBuilder> + internalGetResourcesFieldBuilder() { + if (resourcesBuilder_ == null) { + resourcesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ModuleResource, + com.google.cloud.designcenter.v1.ModuleResource.Builder, + com.google.cloud.designcenter.v1.ModuleResourceOrBuilder>( + resources_, ((bitField0_ & 0x00000100) != 0), getParentForChildren(), isClean()); + resources_ = null; + } + return resourcesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ModuleDetails) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ModuleDetails) + private static final com.google.cloud.designcenter.v1.ModuleDetails DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.ModuleDetails(); + } + + public static com.google.cloud.designcenter.v1.ModuleDetails getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ModuleDetails parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ModuleDetails getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ModuleDetailsOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ModuleDetailsOrBuilder.java new file mode 100644 index 000000000000..99b004937deb --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ModuleDetailsOrBuilder.java @@ -0,0 +1,451 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ModuleDetailsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ModuleDetails) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Relative path to the module/example.
+   * 
+ * + * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The path. + */ + java.lang.String getPath(); + + /** + * + * + *
+   * Optional. Relative path to the module/example.
+   * 
+ * + * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for path. + */ + com.google.protobuf.ByteString getPathBytes(); + + /** + * + * + *
+   * Optional. Name of the module/example.
+   * 
+ * + * string name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Optional. Name of the module/example.
+   * 
+ * + * string name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. Content of the README file.
+   * 
+ * + * string readme = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The readme. + */ + java.lang.String getReadme(); + + /** + * + * + *
+   * Optional. Content of the README file.
+   * 
+ * + * string readme = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for readme. + */ + com.google.protobuf.ByteString getReadmeBytes(); + + /** + * + * + *
+   * Optional. Indicates if the module/example directory is empty of .tf files.
+   * 
+ * + * bool empty = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The empty. + */ + boolean getEmpty(); + + /** + * + * + *
+   * Optional. List of input variables.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleInput inputs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getInputsList(); + + /** + * + * + *
+   * Optional. List of input variables.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleInput inputs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.ModuleInput getInputs(int index); + + /** + * + * + *
+   * Optional. List of input variables.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleInput inputs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getInputsCount(); + + /** + * + * + *
+   * Optional. List of input variables.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleInput inputs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getInputsOrBuilderList(); + + /** + * + * + *
+   * Optional. List of input variables.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleInput inputs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.ModuleInputOrBuilder getInputsOrBuilder(int index); + + /** + * + * + *
+   * Optional. List of outputs.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleOutput outputs = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getOutputsList(); + + /** + * + * + *
+   * Optional. List of outputs.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleOutput outputs = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.ModuleOutput getOutputs(int index); + + /** + * + * + *
+   * Optional. List of outputs.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleOutput outputs = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getOutputsCount(); + + /** + * + * + *
+   * Optional. List of outputs.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleOutput outputs = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getOutputsOrBuilderList(); + + /** + * + * + *
+   * Optional. List of outputs.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleOutput outputs = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.ModuleOutputOrBuilder getOutputsOrBuilder(int index); + + /** + * + * + *
+   * Optional. List of module dependencies.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDependency module_dependencies = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getModuleDependenciesList(); + + /** + * + * + *
+   * Optional. List of module dependencies.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDependency module_dependencies = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.ModuleDependency getModuleDependencies(int index); + + /** + * + * + *
+   * Optional. List of module dependencies.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDependency module_dependencies = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getModuleDependenciesCount(); + + /** + * + * + *
+   * Optional. List of module dependencies.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDependency module_dependencies = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getModuleDependenciesOrBuilderList(); + + /** + * + * + *
+   * Optional. List of module dependencies.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDependency module_dependencies = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.ModuleDependencyOrBuilder getModuleDependenciesOrBuilder( + int index); + + /** + * + * + *
+   * Optional. List of provider dependencies.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderDependency provider_dependencies = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getProviderDependenciesList(); + + /** + * + * + *
+   * Optional. List of provider dependencies.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderDependency provider_dependencies = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.ProviderDependency getProviderDependencies(int index); + + /** + * + * + *
+   * Optional. List of provider dependencies.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderDependency provider_dependencies = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getProviderDependenciesCount(); + + /** + * + * + *
+   * Optional. List of provider dependencies.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderDependency provider_dependencies = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getProviderDependenciesOrBuilderList(); + + /** + * + * + *
+   * Optional. List of provider dependencies.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderDependency provider_dependencies = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.ProviderDependencyOrBuilder getProviderDependenciesOrBuilder( + int index); + + /** + * + * + *
+   * Optional. List of resources defined.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleResource resources = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getResourcesList(); + + /** + * + * + *
+   * Optional. List of resources defined.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleResource resources = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.ModuleResource getResources(int index); + + /** + * + * + *
+   * Optional. List of resources defined.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleResource resources = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getResourcesCount(); + + /** + * + * + *
+   * Optional. List of resources defined.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleResource resources = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getResourcesOrBuilderList(); + + /** + * + * + *
+   * Optional. List of resources defined.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleResource resources = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.ModuleResourceOrBuilder getResourcesOrBuilder(int index); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ModuleInput.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ModuleInput.java new file mode 100644 index 000000000000..7b59fe1ac437 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ModuleInput.java @@ -0,0 +1,1395 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Represents an input variable for a module.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ModuleInput} + */ +@com.google.protobuf.Generated +public final class ModuleInput extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ModuleInput) + ModuleInputOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ModuleInput"); + } + + // Use ModuleInput.newBuilder() to construct. + private ModuleInput(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ModuleInput() { + name_ = ""; + type_ = ""; + description_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_ModuleInput_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_ModuleInput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ModuleInput.class, + com.google.cloud.designcenter.v1.ModuleInput.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Optional. Name of the input variable.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+   * Optional. Name of the input variable.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TYPE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object type_ = ""; + + /** + * + * + *
+   * Optional. Terraform type of the variable.
+   * 
+ * + * string type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The type. + */ + @java.lang.Override + public java.lang.String getType() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + type_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Terraform type of the variable.
+   * 
+ * + * string type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for type. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + type_ = 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_ = ""; + + /** + * + * + *
+   * Optional. Description of the variable.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Description of the variable.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEFAULT_VALUE_FIELD_NUMBER = 4; + private com.google.protobuf.Value defaultValue_; + + /** + * + * + *
+   * Optional. Default value of the variable as a string representation.
+   * Using google.protobuf.Value to allow for different types, though a string
+   * is common.
+   * 
+ * + * .google.protobuf.Value default_value = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the defaultValue field is set. + */ + @java.lang.Override + public boolean hasDefaultValue() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. Default value of the variable as a string representation.
+   * Using google.protobuf.Value to allow for different types, though a string
+   * is common.
+   * 
+ * + * .google.protobuf.Value default_value = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The defaultValue. + */ + @java.lang.Override + public com.google.protobuf.Value getDefaultValue() { + return defaultValue_ == null ? com.google.protobuf.Value.getDefaultInstance() : defaultValue_; + } + + /** + * + * + *
+   * Optional. Default value of the variable as a string representation.
+   * Using google.protobuf.Value to allow for different types, though a string
+   * is common.
+   * 
+ * + * .google.protobuf.Value default_value = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.ValueOrBuilder getDefaultValueOrBuilder() { + return defaultValue_ == null ? com.google.protobuf.Value.getDefaultInstance() : defaultValue_; + } + + public static final int REQUIRED_FIELD_NUMBER = 5; + private boolean required_ = false; + + /** + * + * + *
+   * Optional. Whether the input variable is required.
+   * 
+ * + * bool required = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The required. + */ + @java.lang.Override + public boolean getRequired() { + return required_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(type_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, type_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, description_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getDefaultValue()); + } + if (required_ != false) { + output.writeBool(5, required_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(type_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, type_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, description_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDefaultValue()); + } + if (required_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, required_); + } + 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.designcenter.v1.ModuleInput)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ModuleInput other = + (com.google.cloud.designcenter.v1.ModuleInput) obj; + + if (!getName().equals(other.getName())) return false; + if (!getType().equals(other.getType())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (hasDefaultValue() != other.hasDefaultValue()) return false; + if (hasDefaultValue()) { + if (!getDefaultValue().equals(other.getDefaultValue())) return false; + } + if (getRequired() != other.getRequired()) 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) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (hasDefaultValue()) { + hash = (37 * hash) + DEFAULT_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getDefaultValue().hashCode(); + } + hash = (37 * hash) + REQUIRED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequired()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.ModuleInput parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ModuleInput 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.designcenter.v1.ModuleInput parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ModuleInput parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ModuleInput parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ModuleInput parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ModuleInput parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ModuleInput parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ModuleInput parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ModuleInput parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ModuleInput parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ModuleInput parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ModuleInput 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Represents an input variable for a module.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ModuleInput} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ModuleInput) + com.google.cloud.designcenter.v1.ModuleInputOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_ModuleInput_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_ModuleInput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ModuleInput.class, + com.google.cloud.designcenter.v1.ModuleInput.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.ModuleInput.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetDefaultValueFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + type_ = ""; + description_ = ""; + defaultValue_ = null; + if (defaultValueBuilder_ != null) { + defaultValueBuilder_.dispose(); + defaultValueBuilder_ = null; + } + required_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_ModuleInput_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ModuleInput getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ModuleInput.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ModuleInput build() { + com.google.cloud.designcenter.v1.ModuleInput result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ModuleInput buildPartial() { + com.google.cloud.designcenter.v1.ModuleInput result = + new com.google.cloud.designcenter.v1.ModuleInput(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.ModuleInput result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.description_ = description_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.defaultValue_ = + defaultValueBuilder_ == null ? defaultValue_ : defaultValueBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.required_ = required_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.ModuleInput) { + return mergeFrom((com.google.cloud.designcenter.v1.ModuleInput) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.ModuleInput other) { + if (other == com.google.cloud.designcenter.v1.ModuleInput.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getType().isEmpty()) { + type_ = other.type_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasDefaultValue()) { + mergeDefaultValue(other.getDefaultValue()); + } + if (other.getRequired() != false) { + setRequired(other.getRequired()); + } + 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: + { + type_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetDefaultValueFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: + { + required_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + default: + { + 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_ = ""; + + /** + * + * + *
+     * Optional. Name of the input variable.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The name. + */ + public java.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; + } + } + + /** + * + * + *
+     * Optional. Name of the input variable.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+     * Optional. Name of the input variable.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + + /** + * + * + *
+     * Optional. Name of the input variable.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Name of the input variable.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 type_ = ""; + + /** + * + * + *
+     * Optional. Terraform type of the variable.
+     * 
+ * + * string type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The type. + */ + public java.lang.String getType() { + java.lang.Object ref = type_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + type_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Terraform type of the variable.
+     * 
+ * + * string type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for type. + */ + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Terraform type of the variable.
+     * 
+ * + * string type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Terraform type of the variable.
+     * 
+ * + * string type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearType() { + type_ = getDefaultInstance().getType(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Terraform type of the variable.
+     * 
+ * + * string type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for type to set. + * @return This builder for chaining. + */ + public Builder setTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + type_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
+     * Optional. Description of the variable.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Description of the variable.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Description of the variable.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Description of the variable.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Description of the variable.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.Value defaultValue_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder> + defaultValueBuilder_; + + /** + * + * + *
+     * Optional. Default value of the variable as a string representation.
+     * Using google.protobuf.Value to allow for different types, though a string
+     * is common.
+     * 
+ * + * .google.protobuf.Value default_value = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the defaultValue field is set. + */ + public boolean hasDefaultValue() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Optional. Default value of the variable as a string representation.
+     * Using google.protobuf.Value to allow for different types, though a string
+     * is common.
+     * 
+ * + * .google.protobuf.Value default_value = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The defaultValue. + */ + public com.google.protobuf.Value getDefaultValue() { + if (defaultValueBuilder_ == null) { + return defaultValue_ == null + ? com.google.protobuf.Value.getDefaultInstance() + : defaultValue_; + } else { + return defaultValueBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Default value of the variable as a string representation.
+     * Using google.protobuf.Value to allow for different types, though a string
+     * is common.
+     * 
+ * + * .google.protobuf.Value default_value = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDefaultValue(com.google.protobuf.Value value) { + if (defaultValueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + defaultValue_ = value; + } else { + defaultValueBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Default value of the variable as a string representation.
+     * Using google.protobuf.Value to allow for different types, though a string
+     * is common.
+     * 
+ * + * .google.protobuf.Value default_value = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDefaultValue(com.google.protobuf.Value.Builder builderForValue) { + if (defaultValueBuilder_ == null) { + defaultValue_ = builderForValue.build(); + } else { + defaultValueBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Default value of the variable as a string representation.
+     * Using google.protobuf.Value to allow for different types, though a string
+     * is common.
+     * 
+ * + * .google.protobuf.Value default_value = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeDefaultValue(com.google.protobuf.Value value) { + if (defaultValueBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && defaultValue_ != null + && defaultValue_ != com.google.protobuf.Value.getDefaultInstance()) { + getDefaultValueBuilder().mergeFrom(value); + } else { + defaultValue_ = value; + } + } else { + defaultValueBuilder_.mergeFrom(value); + } + if (defaultValue_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Default value of the variable as a string representation.
+     * Using google.protobuf.Value to allow for different types, though a string
+     * is common.
+     * 
+ * + * .google.protobuf.Value default_value = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDefaultValue() { + bitField0_ = (bitField0_ & ~0x00000008); + defaultValue_ = null; + if (defaultValueBuilder_ != null) { + defaultValueBuilder_.dispose(); + defaultValueBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Default value of the variable as a string representation.
+     * Using google.protobuf.Value to allow for different types, though a string
+     * is common.
+     * 
+ * + * .google.protobuf.Value default_value = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Value.Builder getDefaultValueBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetDefaultValueFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Default value of the variable as a string representation.
+     * Using google.protobuf.Value to allow for different types, though a string
+     * is common.
+     * 
+ * + * .google.protobuf.Value default_value = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.ValueOrBuilder getDefaultValueOrBuilder() { + if (defaultValueBuilder_ != null) { + return defaultValueBuilder_.getMessageOrBuilder(); + } else { + return defaultValue_ == null + ? com.google.protobuf.Value.getDefaultInstance() + : defaultValue_; + } + } + + /** + * + * + *
+     * Optional. Default value of the variable as a string representation.
+     * Using google.protobuf.Value to allow for different types, though a string
+     * is common.
+     * 
+ * + * .google.protobuf.Value default_value = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder> + internalGetDefaultValueFieldBuilder() { + if (defaultValueBuilder_ == null) { + defaultValueBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder>( + getDefaultValue(), getParentForChildren(), isClean()); + defaultValue_ = null; + } + return defaultValueBuilder_; + } + + private boolean required_; + + /** + * + * + *
+     * Optional. Whether the input variable is required.
+     * 
+ * + * bool required = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The required. + */ + @java.lang.Override + public boolean getRequired() { + return required_; + } + + /** + * + * + *
+     * Optional. Whether the input variable is required.
+     * 
+ * + * bool required = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The required to set. + * @return This builder for chaining. + */ + public Builder setRequired(boolean value) { + + required_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Whether the input variable is required.
+     * 
+ * + * bool required = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRequired() { + bitField0_ = (bitField0_ & ~0x00000010); + required_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ModuleInput) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ModuleInput) + private static final com.google.cloud.designcenter.v1.ModuleInput DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.ModuleInput(); + } + + public static com.google.cloud.designcenter.v1.ModuleInput getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ModuleInput parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ModuleInput getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ModuleInputOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ModuleInputOrBuilder.java new file mode 100644 index 000000000000..041ff85ea3f9 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ModuleInputOrBuilder.java @@ -0,0 +1,165 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ModuleInputOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ModuleInput) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Name of the input variable.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Optional. Name of the input variable.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. Terraform type of the variable.
+   * 
+ * + * string type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The type. + */ + java.lang.String getType(); + + /** + * + * + *
+   * Optional. Terraform type of the variable.
+   * 
+ * + * string type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for type. + */ + com.google.protobuf.ByteString getTypeBytes(); + + /** + * + * + *
+   * Optional. Description of the variable.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
+   * Optional. Description of the variable.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Optional. Default value of the variable as a string representation.
+   * Using google.protobuf.Value to allow for different types, though a string
+   * is common.
+   * 
+ * + * .google.protobuf.Value default_value = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the defaultValue field is set. + */ + boolean hasDefaultValue(); + + /** + * + * + *
+   * Optional. Default value of the variable as a string representation.
+   * Using google.protobuf.Value to allow for different types, though a string
+   * is common.
+   * 
+ * + * .google.protobuf.Value default_value = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The defaultValue. + */ + com.google.protobuf.Value getDefaultValue(); + + /** + * + * + *
+   * Optional. Default value of the variable as a string representation.
+   * Using google.protobuf.Value to allow for different types, though a string
+   * is common.
+   * 
+ * + * .google.protobuf.Value default_value = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.ValueOrBuilder getDefaultValueOrBuilder(); + + /** + * + * + *
+   * Optional. Whether the input variable is required.
+   * 
+ * + * bool required = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The required. + */ + boolean getRequired(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ModuleOutput.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ModuleOutput.java new file mode 100644 index 000000000000..94d806051319 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ModuleOutput.java @@ -0,0 +1,784 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Represents an output value from a module.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ModuleOutput} + */ +@com.google.protobuf.Generated +public final class ModuleOutput extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ModuleOutput) + ModuleOutputOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ModuleOutput"); + } + + // Use ModuleOutput.newBuilder() to construct. + private ModuleOutput(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ModuleOutput() { + name_ = ""; + description_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_ModuleOutput_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_ModuleOutput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ModuleOutput.class, + com.google.cloud.designcenter.v1.ModuleOutput.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Optional. Name of the output.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+   * Optional. Name of the output.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
+   * Optional. Description of the output.
+   * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Description of the output.
+   * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, description_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, description_); + } + 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.designcenter.v1.ModuleOutput)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ModuleOutput other = + (com.google.cloud.designcenter.v1.ModuleOutput) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDescription().equals(other.getDescription())) 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) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.ModuleOutput parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ModuleOutput 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.designcenter.v1.ModuleOutput parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ModuleOutput parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ModuleOutput parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ModuleOutput parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ModuleOutput parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ModuleOutput parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ModuleOutput parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ModuleOutput parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ModuleOutput parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ModuleOutput parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ModuleOutput 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Represents an output value from a module.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ModuleOutput} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ModuleOutput) + com.google.cloud.designcenter.v1.ModuleOutputOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_ModuleOutput_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_ModuleOutput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ModuleOutput.class, + com.google.cloud.designcenter.v1.ModuleOutput.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.ModuleOutput.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + description_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_ModuleOutput_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ModuleOutput getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ModuleOutput.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ModuleOutput build() { + com.google.cloud.designcenter.v1.ModuleOutput result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ModuleOutput buildPartial() { + com.google.cloud.designcenter.v1.ModuleOutput result = + new com.google.cloud.designcenter.v1.ModuleOutput(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.ModuleOutput result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.description_ = description_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.ModuleOutput) { + return mergeFrom((com.google.cloud.designcenter.v1.ModuleOutput) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.ModuleOutput other) { + if (other == com.google.cloud.designcenter.v1.ModuleOutput.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + 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: + { + description_ = 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_ = ""; + + /** + * + * + *
+     * Optional. Name of the output.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The name. + */ + public java.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; + } + } + + /** + * + * + *
+     * Optional. Name of the output.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+     * Optional. Name of the output.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + + /** + * + * + *
+     * Optional. Name of the output.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Name of the output.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 description_ = ""; + + /** + * + * + *
+     * Optional. Description of the output.
+     * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Description of the output.
+     * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Description of the output.
+     * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Description of the output.
+     * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Description of the output.
+     * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ModuleOutput) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ModuleOutput) + private static final com.google.cloud.designcenter.v1.ModuleOutput DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.ModuleOutput(); + } + + public static com.google.cloud.designcenter.v1.ModuleOutput getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ModuleOutput parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ModuleOutput getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ModuleOutputOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ModuleOutputOrBuilder.java new file mode 100644 index 000000000000..b40407f968e1 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ModuleOutputOrBuilder.java @@ -0,0 +1,80 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ModuleOutputOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ModuleOutput) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Name of the output.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Optional. Name of the output.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. Description of the output.
+   * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
+   * Optional. Description of the output.
+   * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ModuleResource.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ModuleResource.java new file mode 100644 index 000000000000..31f4669a3a8d --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ModuleResource.java @@ -0,0 +1,785 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Represents a resource declared within a module.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ModuleResource} + */ +@com.google.protobuf.Generated +public final class ModuleResource extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ModuleResource) + ModuleResourceOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ModuleResource"); + } + + // Use ModuleResource.newBuilder() to construct. + private ModuleResource(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ModuleResource() { + name_ = ""; + type_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_ModuleResource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_ModuleResource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ModuleResource.class, + com.google.cloud.designcenter.v1.ModuleResource.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Optional. Local name of the resource instance.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+   * Optional. Local name of the resource instance.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TYPE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object type_ = ""; + + /** + * + * + *
+   * Optional. Type of the resource (e.g., "google_secret_manager_secret").
+   * 
+ * + * string type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The type. + */ + @java.lang.Override + public java.lang.String getType() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + type_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Type of the resource (e.g., "google_secret_manager_secret").
+   * 
+ * + * string type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for type. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + type_ = 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(type_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, type_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(type_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, type_); + } + 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.designcenter.v1.ModuleResource)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ModuleResource other = + (com.google.cloud.designcenter.v1.ModuleResource) obj; + + if (!getName().equals(other.getName())) return false; + if (!getType().equals(other.getType())) 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) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.ModuleResource parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ModuleResource 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.designcenter.v1.ModuleResource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ModuleResource parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ModuleResource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ModuleResource parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ModuleResource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ModuleResource parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ModuleResource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ModuleResource parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ModuleResource parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ModuleResource parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ModuleResource 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Represents a resource declared within a module.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ModuleResource} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ModuleResource) + com.google.cloud.designcenter.v1.ModuleResourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_ModuleResource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_ModuleResource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ModuleResource.class, + com.google.cloud.designcenter.v1.ModuleResource.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.ModuleResource.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + type_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_ModuleResource_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ModuleResource getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ModuleResource.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ModuleResource build() { + com.google.cloud.designcenter.v1.ModuleResource result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ModuleResource buildPartial() { + com.google.cloud.designcenter.v1.ModuleResource result = + new com.google.cloud.designcenter.v1.ModuleResource(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.ModuleResource result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.type_ = type_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.ModuleResource) { + return mergeFrom((com.google.cloud.designcenter.v1.ModuleResource) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.ModuleResource other) { + if (other == com.google.cloud.designcenter.v1.ModuleResource.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getType().isEmpty()) { + type_ = other.type_; + 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: + { + type_ = 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_ = ""; + + /** + * + * + *
+     * Optional. Local name of the resource instance.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The name. + */ + public java.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; + } + } + + /** + * + * + *
+     * Optional. Local name of the resource instance.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+     * Optional. Local name of the resource instance.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + + /** + * + * + *
+     * Optional. Local name of the resource instance.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Local name of the resource instance.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 type_ = ""; + + /** + * + * + *
+     * Optional. Type of the resource (e.g., "google_secret_manager_secret").
+     * 
+ * + * string type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The type. + */ + public java.lang.String getType() { + java.lang.Object ref = type_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + type_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Type of the resource (e.g., "google_secret_manager_secret").
+     * 
+ * + * string type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for type. + */ + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Type of the resource (e.g., "google_secret_manager_secret").
+     * 
+ * + * string type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Type of the resource (e.g., "google_secret_manager_secret").
+     * 
+ * + * string type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearType() { + type_ = getDefaultInstance().getType(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Type of the resource (e.g., "google_secret_manager_secret").
+     * 
+ * + * string type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for type to set. + * @return This builder for chaining. + */ + public Builder setTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + type_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ModuleResource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ModuleResource) + private static final com.google.cloud.designcenter.v1.ModuleResource DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.ModuleResource(); + } + + public static com.google.cloud.designcenter.v1.ModuleResource getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ModuleResource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ModuleResource getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ModuleResourceOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ModuleResourceOrBuilder.java new file mode 100644 index 000000000000..4a9c411d6dab --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ModuleResourceOrBuilder.java @@ -0,0 +1,80 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ModuleResourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ModuleResource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Local name of the resource instance.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Optional. Local name of the resource instance.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. Type of the resource (e.g., "google_secret_manager_secret").
+   * 
+ * + * string type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The type. + */ + java.lang.String getType(); + + /** + * + * + *
+   * Optional. Type of the resource (e.g., "google_secret_manager_secret").
+   * 
+ * + * string type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for type. + */ + com.google.protobuf.ByteString getTypeBytes(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/OciRepo.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/OciRepo.java new file mode 100644 index 000000000000..86946c107ace --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/OciRepo.java @@ -0,0 +1,986 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/ingestion.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Open Container Initiative (OCI) repo.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.OciRepo} + */ +@com.google.protobuf.Generated +public final class OciRepo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.OciRepo) + OciRepoOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "OciRepo"); + } + + // Use OciRepo.newBuilder() to construct. + private OciRepo(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private OciRepo() { + uri_ = ""; + version_ = ""; + moduleSourceUri_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.IngestionProto + .internal_static_google_cloud_designcenter_v1_OciRepo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.IngestionProto + .internal_static_google_cloud_designcenter_v1_OciRepo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.OciRepo.class, + com.google.cloud.designcenter.v1.OciRepo.Builder.class); + } + + public static final int URI_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; + + /** + * + * + *
+   * Required. Path to Open Container Initiative (OCI) repo.
+   * Example: oci://us-west1-docker.pkg.dev/nyap-test/helm-repo/my-chart
+   * 
+ * + * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The uri. + */ + @java.lang.Override + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Path to Open Container Initiative (OCI) repo.
+   * Example: oci://us-west1-docker.pkg.dev/nyap-test/helm-repo/my-chart
+   * 
+ * + * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for uri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VERSION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object version_ = ""; + + /** + * + * + *
+   * Optional. The version of the helm chart.
+   * 
+ * + * string version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+   * Optional. The version of the helm chart.
+   * 
+ * + * string version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 MODULE_SOURCE_URI_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object moduleSourceUri_ = ""; + + /** + * + * + *
+   * Optional. Field for containing the references to the source from which the
+   * OCI repo was created.
+   * 
+ * + * string module_source_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The moduleSourceUri. + */ + @java.lang.Override + public java.lang.String getModuleSourceUri() { + java.lang.Object ref = moduleSourceUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + moduleSourceUri_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Field for containing the references to the source from which the
+   * OCI repo was created.
+   * 
+ * + * string module_source_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for moduleSourceUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getModuleSourceUriBytes() { + java.lang.Object ref = moduleSourceUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + moduleSourceUri_ = 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.GeneratedMessage.isStringEmpty(uri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, uri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(version_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, version_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(moduleSourceUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, moduleSourceUri_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, uri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(version_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, version_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(moduleSourceUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, moduleSourceUri_); + } + 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.designcenter.v1.OciRepo)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.OciRepo other = (com.google.cloud.designcenter.v1.OciRepo) obj; + + if (!getUri().equals(other.getUri())) return false; + if (!getVersion().equals(other.getVersion())) return false; + if (!getModuleSourceUri().equals(other.getModuleSourceUri())) 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) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + hash = (37 * hash) + MODULE_SOURCE_URI_FIELD_NUMBER; + hash = (53 * hash) + getModuleSourceUri().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.OciRepo parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.OciRepo 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.designcenter.v1.OciRepo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.OciRepo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.OciRepo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.OciRepo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.OciRepo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.OciRepo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.OciRepo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.OciRepo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.OciRepo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.OciRepo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.OciRepo 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Open Container Initiative (OCI) repo.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.OciRepo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.OciRepo) + com.google.cloud.designcenter.v1.OciRepoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.IngestionProto + .internal_static_google_cloud_designcenter_v1_OciRepo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.IngestionProto + .internal_static_google_cloud_designcenter_v1_OciRepo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.OciRepo.class, + com.google.cloud.designcenter.v1.OciRepo.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.OciRepo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + uri_ = ""; + version_ = ""; + moduleSourceUri_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.IngestionProto + .internal_static_google_cloud_designcenter_v1_OciRepo_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.OciRepo getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.OciRepo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.OciRepo build() { + com.google.cloud.designcenter.v1.OciRepo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.OciRepo buildPartial() { + com.google.cloud.designcenter.v1.OciRepo result = + new com.google.cloud.designcenter.v1.OciRepo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.OciRepo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.uri_ = uri_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.version_ = version_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.moduleSourceUri_ = moduleSourceUri_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.OciRepo) { + return mergeFrom((com.google.cloud.designcenter.v1.OciRepo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.OciRepo other) { + if (other == com.google.cloud.designcenter.v1.OciRepo.getDefaultInstance()) return this; + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getModuleSourceUri().isEmpty()) { + moduleSourceUri_ = other.moduleSourceUri_; + 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: + { + uri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + version_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + moduleSourceUri_ = 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 uri_ = ""; + + /** + * + * + *
+     * Required. Path to Open Container Initiative (OCI) repo.
+     * Example: oci://us-west1-docker.pkg.dev/nyap-test/helm-repo/my-chart
+     * 
+ * + * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The uri. + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Path to Open Container Initiative (OCI) repo.
+     * Example: oci://us-west1-docker.pkg.dev/nyap-test/helm-repo/my-chart
+     * 
+ * + * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for uri. + */ + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Path to Open Container Initiative (OCI) repo.
+     * Example: oci://us-west1-docker.pkg.dev/nyap-test/helm-repo/my-chart
+     * 
+ * + * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The uri to set. + * @return This builder for chaining. + */ + public Builder setUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Path to Open Container Initiative (OCI) repo.
+     * Example: oci://us-west1-docker.pkg.dev/nyap-test/helm-repo/my-chart
+     * 
+ * + * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearUri() { + uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Path to Open Container Initiative (OCI) repo.
+     * Example: oci://us-west1-docker.pkg.dev/nyap-test/helm-repo/my-chart
+     * 
+ * + * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for uri to set. + * @return This builder for chaining. + */ + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object version_ = ""; + + /** + * + * + *
+     * Optional. The version of the helm chart.
+     * 
+ * + * string version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+     * Optional. The version of the helm chart.
+     * 
+ * + * string version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+     * Optional. The version of the helm chart.
+     * 
+ * + * string version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The version of the helm chart.
+     * 
+ * + * string version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearVersion() { + version_ = getDefaultInstance().getVersion(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The version of the helm chart.
+     * 
+ * + * string version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object moduleSourceUri_ = ""; + + /** + * + * + *
+     * Optional. Field for containing the references to the source from which the
+     * OCI repo was created.
+     * 
+ * + * string module_source_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The moduleSourceUri. + */ + public java.lang.String getModuleSourceUri() { + java.lang.Object ref = moduleSourceUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + moduleSourceUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Field for containing the references to the source from which the
+     * OCI repo was created.
+     * 
+ * + * string module_source_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for moduleSourceUri. + */ + public com.google.protobuf.ByteString getModuleSourceUriBytes() { + java.lang.Object ref = moduleSourceUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + moduleSourceUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Field for containing the references to the source from which the
+     * OCI repo was created.
+     * 
+ * + * string module_source_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The moduleSourceUri to set. + * @return This builder for chaining. + */ + public Builder setModuleSourceUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + moduleSourceUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Field for containing the references to the source from which the
+     * OCI repo was created.
+     * 
+ * + * string module_source_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearModuleSourceUri() { + moduleSourceUri_ = getDefaultInstance().getModuleSourceUri(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Field for containing the references to the source from which the
+     * OCI repo was created.
+     * 
+ * + * string module_source_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for moduleSourceUri to set. + * @return This builder for chaining. + */ + public Builder setModuleSourceUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + moduleSourceUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.OciRepo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.OciRepo) + private static final com.google.cloud.designcenter.v1.OciRepo DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.OciRepo(); + } + + public static com.google.cloud.designcenter.v1.OciRepo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OciRepo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.OciRepo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/OciRepoOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/OciRepoOrBuilder.java new file mode 100644 index 000000000000..6e89021688e8 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/OciRepoOrBuilder.java @@ -0,0 +1,110 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/ingestion.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface OciRepoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.OciRepo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Path to Open Container Initiative (OCI) repo.
+   * Example: oci://us-west1-docker.pkg.dev/nyap-test/helm-repo/my-chart
+   * 
+ * + * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The uri. + */ + java.lang.String getUri(); + + /** + * + * + *
+   * Required. Path to Open Container Initiative (OCI) repo.
+   * Example: oci://us-west1-docker.pkg.dev/nyap-test/helm-repo/my-chart
+   * 
+ * + * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for uri. + */ + com.google.protobuf.ByteString getUriBytes(); + + /** + * + * + *
+   * Optional. The version of the helm chart.
+   * 
+ * + * string version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The version. + */ + java.lang.String getVersion(); + + /** + * + * + *
+   * Optional. The version of the helm chart.
+   * 
+ * + * string version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for version. + */ + com.google.protobuf.ByteString getVersionBytes(); + + /** + * + * + *
+   * Optional. Field for containing the references to the source from which the
+   * OCI repo was created.
+   * 
+ * + * string module_source_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The moduleSourceUri. + */ + java.lang.String getModuleSourceUri(); + + /** + * + * + *
+   * Optional. Field for containing the references to the source from which the
+   * OCI repo was created.
+   * 
+ * + * string module_source_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for moduleSourceUri. + */ + com.google.protobuf.ByteString getModuleSourceUriBytes(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/OperationMetadata.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/OperationMetadata.java new file mode 100644 index 000000000000..dd780e57516b --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/OperationMetadata.java @@ -0,0 +1,3767 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/designcenter.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Represents the metadata of the long-running operation.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.OperationMetadata} + */ +@com.google.protobuf.Generated +public final class OperationMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.OperationMetadata) + OperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "OperationMetadata"); + } + + // Use OperationMetadata.newBuilder() to construct. + private OperationMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private OperationMetadata() { + target_ = ""; + verb_ = ""; + statusMessage_ = ""; + apiVersion_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DesigncenterProto + .internal_static_google_cloud_designcenter_v1_OperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DesigncenterProto + .internal_static_google_cloud_designcenter_v1_OperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.OperationMetadata.class, + com.google.cloud.designcenter.v1.OperationMetadata.Builder.class); + } + + private int bitField0_; + private int resourceMetadataCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object resourceMetadata_; + + public enum ResourceMetadataCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + DEPLOYMENT_METADATA(8), + PREVIEW_METADATA(9), + APPLICATION_METADATA(10), + DEPLOYMENT_GROUP_METADATA(11), + GENERATE_ASSESSMENT_REPORT_METADATA(12), + RESOURCEMETADATA_NOT_SET(0); + private final int value; + + private ResourceMetadataCase(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 ResourceMetadataCase valueOf(int value) { + return forNumber(value); + } + + public static ResourceMetadataCase forNumber(int value) { + switch (value) { + case 8: + return DEPLOYMENT_METADATA; + case 9: + return PREVIEW_METADATA; + case 10: + return APPLICATION_METADATA; + case 11: + return DEPLOYMENT_GROUP_METADATA; + case 12: + return GENERATE_ASSESSMENT_REPORT_METADATA; + case 0: + return RESOURCEMETADATA_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ResourceMetadataCase getResourceMetadataCase() { + return ResourceMetadataCase.forNumber(resourceMetadataCase_); + } + + public static final int DEPLOYMENT_METADATA_FIELD_NUMBER = 8; + + /** + * + * + *
+   * Output only. The application deployment metadata this operation is
+   * associated with.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentOperationMetadata deployment_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the deploymentMetadata field is set. + */ + @java.lang.Override + public boolean hasDeploymentMetadata() { + return resourceMetadataCase_ == 8; + } + + /** + * + * + *
+   * Output only. The application deployment metadata this operation is
+   * associated with.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentOperationMetadata deployment_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deploymentMetadata. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.DeploymentOperationMetadata getDeploymentMetadata() { + if (resourceMetadataCase_ == 8) { + return (com.google.cloud.designcenter.v1.DeploymentOperationMetadata) resourceMetadata_; + } + return com.google.cloud.designcenter.v1.DeploymentOperationMetadata.getDefaultInstance(); + } + + /** + * + * + *
+   * Output only. The application deployment metadata this operation is
+   * associated with.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentOperationMetadata deployment_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.DeploymentOperationMetadataOrBuilder + getDeploymentMetadataOrBuilder() { + if (resourceMetadataCase_ == 8) { + return (com.google.cloud.designcenter.v1.DeploymentOperationMetadata) resourceMetadata_; + } + return com.google.cloud.designcenter.v1.DeploymentOperationMetadata.getDefaultInstance(); + } + + public static final int PREVIEW_METADATA_FIELD_NUMBER = 9; + + /** + * + * + *
+   * Output only. The application preview metadata this operation is
+   * associated with.
+   * 
+ * + * + * .google.cloud.designcenter.v1.PreviewOperationMetadata preview_metadata = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the previewMetadata field is set. + */ + @java.lang.Override + public boolean hasPreviewMetadata() { + return resourceMetadataCase_ == 9; + } + + /** + * + * + *
+   * Output only. The application preview metadata this operation is
+   * associated with.
+   * 
+ * + * + * .google.cloud.designcenter.v1.PreviewOperationMetadata preview_metadata = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The previewMetadata. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.PreviewOperationMetadata getPreviewMetadata() { + if (resourceMetadataCase_ == 9) { + return (com.google.cloud.designcenter.v1.PreviewOperationMetadata) resourceMetadata_; + } + return com.google.cloud.designcenter.v1.PreviewOperationMetadata.getDefaultInstance(); + } + + /** + * + * + *
+   * Output only. The application preview metadata this operation is
+   * associated with.
+   * 
+ * + * + * .google.cloud.designcenter.v1.PreviewOperationMetadata preview_metadata = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.PreviewOperationMetadataOrBuilder + getPreviewMetadataOrBuilder() { + if (resourceMetadataCase_ == 9) { + return (com.google.cloud.designcenter.v1.PreviewOperationMetadata) resourceMetadata_; + } + return com.google.cloud.designcenter.v1.PreviewOperationMetadata.getDefaultInstance(); + } + + public static final int APPLICATION_METADATA_FIELD_NUMBER = 10; + + /** + * + * + *
+   * Output only. The application delete metadata this operation is associated
+   * with.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationOperationMetadata application_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the applicationMetadata field is set. + */ + @java.lang.Override + public boolean hasApplicationMetadata() { + return resourceMetadataCase_ == 10; + } + + /** + * + * + *
+   * Output only. The application delete metadata this operation is associated
+   * with.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationOperationMetadata application_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The applicationMetadata. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ApplicationOperationMetadata getApplicationMetadata() { + if (resourceMetadataCase_ == 10) { + return (com.google.cloud.designcenter.v1.ApplicationOperationMetadata) resourceMetadata_; + } + return com.google.cloud.designcenter.v1.ApplicationOperationMetadata.getDefaultInstance(); + } + + /** + * + * + *
+   * Output only. The application delete metadata this operation is associated
+   * with.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationOperationMetadata application_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ApplicationOperationMetadataOrBuilder + getApplicationMetadataOrBuilder() { + if (resourceMetadataCase_ == 10) { + return (com.google.cloud.designcenter.v1.ApplicationOperationMetadata) resourceMetadata_; + } + return com.google.cloud.designcenter.v1.ApplicationOperationMetadata.getDefaultInstance(); + } + + public static final int DEPLOYMENT_GROUP_METADATA_FIELD_NUMBER = 11; + + /** + * + * + *
+   * Output only. The Provision Deployment Group Metadata this operation is
+   * associated with.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata deployment_group_metadata = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the deploymentGroupMetadata field is set. + */ + @java.lang.Override + public boolean hasDeploymentGroupMetadata() { + return resourceMetadataCase_ == 11; + } + + /** + * + * + *
+   * Output only. The Provision Deployment Group Metadata this operation is
+   * associated with.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata deployment_group_metadata = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deploymentGroupMetadata. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata + getDeploymentGroupMetadata() { + if (resourceMetadataCase_ == 11) { + return (com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata) + resourceMetadata_; + } + return com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata + .getDefaultInstance(); + } + + /** + * + * + *
+   * Output only. The Provision Deployment Group Metadata this operation is
+   * associated with.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata deployment_group_metadata = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadataOrBuilder + getDeploymentGroupMetadataOrBuilder() { + if (resourceMetadataCase_ == 11) { + return (com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata) + resourceMetadata_; + } + return com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata + .getDefaultInstance(); + } + + public static final int GENERATE_ASSESSMENT_REPORT_METADATA_FIELD_NUMBER = 12; + + /** + * + * + *
+   * Output only. The Generate Assessment Report Metadata this operation is
+   * associated with.
+   * 
+ * + * + * .google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata generate_assessment_report_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the generateAssessmentReportMetadata field is set. + */ + @java.lang.Override + public boolean hasGenerateAssessmentReportMetadata() { + return resourceMetadataCase_ == 12; + } + + /** + * + * + *
+   * Output only. The Generate Assessment Report Metadata this operation is
+   * associated with.
+   * 
+ * + * + * .google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata generate_assessment_report_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The generateAssessmentReportMetadata. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata + getGenerateAssessmentReportMetadata() { + if (resourceMetadataCase_ == 12) { + return (com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata) + resourceMetadata_; + } + return com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata + .getDefaultInstance(); + } + + /** + * + * + *
+   * Output only. The Generate Assessment Report Metadata this operation is
+   * associated with.
+   * 
+ * + * + * .google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata generate_assessment_report_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadataOrBuilder + getGenerateAssessmentReportMetadataOrBuilder() { + if (resourceMetadataCase_ == 12) { + return (com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata) + resourceMetadata_; + } + return com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata + .getDefaultInstance(); + } + + 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 ((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. + */ + @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 ((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. + */ + @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. The 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. The 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getEndTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(target_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, target_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(verb_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, verb_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(statusMessage_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, statusMessage_); + } + if (requestedCancellation_ != false) { + output.writeBool(6, requestedCancellation_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(apiVersion_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, apiVersion_); + } + if (resourceMetadataCase_ == 8) { + output.writeMessage( + 8, (com.google.cloud.designcenter.v1.DeploymentOperationMetadata) resourceMetadata_); + } + if (resourceMetadataCase_ == 9) { + output.writeMessage( + 9, (com.google.cloud.designcenter.v1.PreviewOperationMetadata) resourceMetadata_); + } + if (resourceMetadataCase_ == 10) { + output.writeMessage( + 10, (com.google.cloud.designcenter.v1.ApplicationOperationMetadata) resourceMetadata_); + } + if (resourceMetadataCase_ == 11) { + output.writeMessage( + 11, + (com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata) + resourceMetadata_); + } + if (resourceMetadataCase_ == 12) { + output.writeMessage( + 12, + (com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata) + resourceMetadata_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(target_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, target_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(verb_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, verb_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(statusMessage_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, statusMessage_); + } + if (requestedCancellation_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, requestedCancellation_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(apiVersion_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, apiVersion_); + } + if (resourceMetadataCase_ == 8) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, (com.google.cloud.designcenter.v1.DeploymentOperationMetadata) resourceMetadata_); + } + if (resourceMetadataCase_ == 9) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, (com.google.cloud.designcenter.v1.PreviewOperationMetadata) resourceMetadata_); + } + if (resourceMetadataCase_ == 10) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10, + (com.google.cloud.designcenter.v1.ApplicationOperationMetadata) resourceMetadata_); + } + if (resourceMetadataCase_ == 11) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 11, + (com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata) + resourceMetadata_); + } + if (resourceMetadataCase_ == 12) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 12, + (com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata) + resourceMetadata_); + } + 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.designcenter.v1.OperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.OperationMetadata other = + (com.google.cloud.designcenter.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 (!getResourceMetadataCase().equals(other.getResourceMetadataCase())) return false; + switch (resourceMetadataCase_) { + case 8: + if (!getDeploymentMetadata().equals(other.getDeploymentMetadata())) return false; + break; + case 9: + if (!getPreviewMetadata().equals(other.getPreviewMetadata())) return false; + break; + case 10: + if (!getApplicationMetadata().equals(other.getApplicationMetadata())) return false; + break; + case 11: + if (!getDeploymentGroupMetadata().equals(other.getDeploymentGroupMetadata())) return false; + break; + case 12: + if (!getGenerateAssessmentReportMetadata() + .equals(other.getGenerateAssessmentReportMetadata())) 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(); + 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(); + switch (resourceMetadataCase_) { + case 8: + hash = (37 * hash) + DEPLOYMENT_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getDeploymentMetadata().hashCode(); + break; + case 9: + hash = (37 * hash) + PREVIEW_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getPreviewMetadata().hashCode(); + break; + case 10: + hash = (37 * hash) + APPLICATION_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getApplicationMetadata().hashCode(); + break; + case 11: + hash = (37 * hash) + DEPLOYMENT_GROUP_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getDeploymentGroupMetadata().hashCode(); + break; + case 12: + hash = (37 * hash) + GENERATE_ASSESSMENT_REPORT_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getGenerateAssessmentReportMetadata().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.OperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.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.designcenter.v1.OperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.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.designcenter.v1.OperationMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.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.designcenter.v1.OperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.OperationMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.OperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.OperationMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.OperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.OperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Represents the metadata of the long-running operation.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.OperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.OperationMetadata) + com.google.cloud.designcenter.v1.OperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DesigncenterProto + .internal_static_google_cloud_designcenter_v1_OperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DesigncenterProto + .internal_static_google_cloud_designcenter_v1_OperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.OperationMetadata.class, + com.google.cloud.designcenter.v1.OperationMetadata.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.OperationMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetEndTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (deploymentMetadataBuilder_ != null) { + deploymentMetadataBuilder_.clear(); + } + if (previewMetadataBuilder_ != null) { + previewMetadataBuilder_.clear(); + } + if (applicationMetadataBuilder_ != null) { + applicationMetadataBuilder_.clear(); + } + if (deploymentGroupMetadataBuilder_ != null) { + deploymentGroupMetadataBuilder_.clear(); + } + if (generateAssessmentReportMetadataBuilder_ != null) { + generateAssessmentReportMetadataBuilder_.clear(); + } + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + target_ = ""; + verb_ = ""; + statusMessage_ = ""; + requestedCancellation_ = false; + apiVersion_ = ""; + resourceMetadataCase_ = 0; + resourceMetadata_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.DesigncenterProto + .internal_static_google_cloud_designcenter_v1_OperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.OperationMetadata getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.OperationMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.OperationMetadata build() { + com.google.cloud.designcenter.v1.OperationMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.OperationMetadata buildPartial() { + com.google.cloud.designcenter.v1.OperationMetadata result = + new com.google.cloud.designcenter.v1.OperationMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.OperationMetadata result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.target_ = target_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.verb_ = verb_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.statusMessage_ = statusMessage_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.requestedCancellation_ = requestedCancellation_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.apiVersion_ = apiVersion_; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.designcenter.v1.OperationMetadata result) { + result.resourceMetadataCase_ = resourceMetadataCase_; + result.resourceMetadata_ = this.resourceMetadata_; + if (resourceMetadataCase_ == 8 && deploymentMetadataBuilder_ != null) { + result.resourceMetadata_ = deploymentMetadataBuilder_.build(); + } + if (resourceMetadataCase_ == 9 && previewMetadataBuilder_ != null) { + result.resourceMetadata_ = previewMetadataBuilder_.build(); + } + if (resourceMetadataCase_ == 10 && applicationMetadataBuilder_ != null) { + result.resourceMetadata_ = applicationMetadataBuilder_.build(); + } + if (resourceMetadataCase_ == 11 && deploymentGroupMetadataBuilder_ != null) { + result.resourceMetadata_ = deploymentGroupMetadataBuilder_.build(); + } + if (resourceMetadataCase_ == 12 && generateAssessmentReportMetadataBuilder_ != null) { + result.resourceMetadata_ = generateAssessmentReportMetadataBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.OperationMetadata) { + return mergeFrom((com.google.cloud.designcenter.v1.OperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.OperationMetadata other) { + if (other == com.google.cloud.designcenter.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_ |= 0x00000080; + onChanged(); + } + if (!other.getVerb().isEmpty()) { + verb_ = other.verb_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (!other.getStatusMessage().isEmpty()) { + statusMessage_ = other.statusMessage_; + bitField0_ |= 0x00000200; + onChanged(); + } + if (other.getRequestedCancellation() != false) { + setRequestedCancellation(other.getRequestedCancellation()); + } + if (!other.getApiVersion().isEmpty()) { + apiVersion_ = other.apiVersion_; + bitField0_ |= 0x00000800; + onChanged(); + } + switch (other.getResourceMetadataCase()) { + case DEPLOYMENT_METADATA: + { + mergeDeploymentMetadata(other.getDeploymentMetadata()); + break; + } + case PREVIEW_METADATA: + { + mergePreviewMetadata(other.getPreviewMetadata()); + break; + } + case APPLICATION_METADATA: + { + mergeApplicationMetadata(other.getApplicationMetadata()); + break; + } + case DEPLOYMENT_GROUP_METADATA: + { + mergeDeploymentGroupMetadata(other.getDeploymentGroupMetadata()); + break; + } + case GENERATE_ASSESSMENT_REPORT_METADATA: + { + mergeGenerateAssessmentReportMetadata(other.getGenerateAssessmentReportMetadata()); + break; + } + case RESOURCEMETADATA_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( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 10 + case 18: + { + input.readMessage(internalGetEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 18 + case 26: + { + target_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 26 + case 34: + { + verb_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 34 + case 42: + { + statusMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 42 + case 48: + { + requestedCancellation_ = input.readBool(); + bitField0_ |= 0x00000400; + break; + } // case 48 + case 58: + { + apiVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000800; + break; + } // case 58 + case 66: + { + input.readMessage( + internalGetDeploymentMetadataFieldBuilder().getBuilder(), extensionRegistry); + resourceMetadataCase_ = 8; + break; + } // case 66 + case 74: + { + input.readMessage( + internalGetPreviewMetadataFieldBuilder().getBuilder(), extensionRegistry); + resourceMetadataCase_ = 9; + break; + } // case 74 + case 82: + { + input.readMessage( + internalGetApplicationMetadataFieldBuilder().getBuilder(), extensionRegistry); + resourceMetadataCase_ = 10; + break; + } // case 82 + case 90: + { + input.readMessage( + internalGetDeploymentGroupMetadataFieldBuilder().getBuilder(), + extensionRegistry); + resourceMetadataCase_ = 11; + break; + } // case 90 + case 98: + { + input.readMessage( + internalGetGenerateAssessmentReportMetadataFieldBuilder().getBuilder(), + extensionRegistry); + resourceMetadataCase_ = 12; + 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 resourceMetadataCase_ = 0; + private java.lang.Object resourceMetadata_; + + public ResourceMetadataCase getResourceMetadataCase() { + return ResourceMetadataCase.forNumber(resourceMetadataCase_); + } + + public Builder clearResourceMetadata() { + resourceMetadataCase_ = 0; + resourceMetadata_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.DeploymentOperationMetadata, + com.google.cloud.designcenter.v1.DeploymentOperationMetadata.Builder, + com.google.cloud.designcenter.v1.DeploymentOperationMetadataOrBuilder> + deploymentMetadataBuilder_; + + /** + * + * + *
+     * Output only. The application deployment metadata this operation is
+     * associated with.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentOperationMetadata deployment_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the deploymentMetadata field is set. + */ + @java.lang.Override + public boolean hasDeploymentMetadata() { + return resourceMetadataCase_ == 8; + } + + /** + * + * + *
+     * Output only. The application deployment metadata this operation is
+     * associated with.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentOperationMetadata deployment_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deploymentMetadata. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.DeploymentOperationMetadata getDeploymentMetadata() { + if (deploymentMetadataBuilder_ == null) { + if (resourceMetadataCase_ == 8) { + return (com.google.cloud.designcenter.v1.DeploymentOperationMetadata) resourceMetadata_; + } + return com.google.cloud.designcenter.v1.DeploymentOperationMetadata.getDefaultInstance(); + } else { + if (resourceMetadataCase_ == 8) { + return deploymentMetadataBuilder_.getMessage(); + } + return com.google.cloud.designcenter.v1.DeploymentOperationMetadata.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Output only. The application deployment metadata this operation is
+     * associated with.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentOperationMetadata deployment_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDeploymentMetadata( + com.google.cloud.designcenter.v1.DeploymentOperationMetadata value) { + if (deploymentMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resourceMetadata_ = value; + onChanged(); + } else { + deploymentMetadataBuilder_.setMessage(value); + } + resourceMetadataCase_ = 8; + return this; + } + + /** + * + * + *
+     * Output only. The application deployment metadata this operation is
+     * associated with.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentOperationMetadata deployment_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDeploymentMetadata( + com.google.cloud.designcenter.v1.DeploymentOperationMetadata.Builder builderForValue) { + if (deploymentMetadataBuilder_ == null) { + resourceMetadata_ = builderForValue.build(); + onChanged(); + } else { + deploymentMetadataBuilder_.setMessage(builderForValue.build()); + } + resourceMetadataCase_ = 8; + return this; + } + + /** + * + * + *
+     * Output only. The application deployment metadata this operation is
+     * associated with.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentOperationMetadata deployment_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeDeploymentMetadata( + com.google.cloud.designcenter.v1.DeploymentOperationMetadata value) { + if (deploymentMetadataBuilder_ == null) { + if (resourceMetadataCase_ == 8 + && resourceMetadata_ + != com.google.cloud.designcenter.v1.DeploymentOperationMetadata + .getDefaultInstance()) { + resourceMetadata_ = + com.google.cloud.designcenter.v1.DeploymentOperationMetadata.newBuilder( + (com.google.cloud.designcenter.v1.DeploymentOperationMetadata) + resourceMetadata_) + .mergeFrom(value) + .buildPartial(); + } else { + resourceMetadata_ = value; + } + onChanged(); + } else { + if (resourceMetadataCase_ == 8) { + deploymentMetadataBuilder_.mergeFrom(value); + } else { + deploymentMetadataBuilder_.setMessage(value); + } + } + resourceMetadataCase_ = 8; + return this; + } + + /** + * + * + *
+     * Output only. The application deployment metadata this operation is
+     * associated with.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentOperationMetadata deployment_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDeploymentMetadata() { + if (deploymentMetadataBuilder_ == null) { + if (resourceMetadataCase_ == 8) { + resourceMetadataCase_ = 0; + resourceMetadata_ = null; + onChanged(); + } + } else { + if (resourceMetadataCase_ == 8) { + resourceMetadataCase_ = 0; + resourceMetadata_ = null; + } + deploymentMetadataBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Output only. The application deployment metadata this operation is
+     * associated with.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentOperationMetadata deployment_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.DeploymentOperationMetadata.Builder + getDeploymentMetadataBuilder() { + return internalGetDeploymentMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The application deployment metadata this operation is
+     * associated with.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentOperationMetadata deployment_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.DeploymentOperationMetadataOrBuilder + getDeploymentMetadataOrBuilder() { + if ((resourceMetadataCase_ == 8) && (deploymentMetadataBuilder_ != null)) { + return deploymentMetadataBuilder_.getMessageOrBuilder(); + } else { + if (resourceMetadataCase_ == 8) { + return (com.google.cloud.designcenter.v1.DeploymentOperationMetadata) resourceMetadata_; + } + return com.google.cloud.designcenter.v1.DeploymentOperationMetadata.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Output only. The application deployment metadata this operation is
+     * associated with.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentOperationMetadata deployment_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.DeploymentOperationMetadata, + com.google.cloud.designcenter.v1.DeploymentOperationMetadata.Builder, + com.google.cloud.designcenter.v1.DeploymentOperationMetadataOrBuilder> + internalGetDeploymentMetadataFieldBuilder() { + if (deploymentMetadataBuilder_ == null) { + if (!(resourceMetadataCase_ == 8)) { + resourceMetadata_ = + com.google.cloud.designcenter.v1.DeploymentOperationMetadata.getDefaultInstance(); + } + deploymentMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.DeploymentOperationMetadata, + com.google.cloud.designcenter.v1.DeploymentOperationMetadata.Builder, + com.google.cloud.designcenter.v1.DeploymentOperationMetadataOrBuilder>( + (com.google.cloud.designcenter.v1.DeploymentOperationMetadata) resourceMetadata_, + getParentForChildren(), + isClean()); + resourceMetadata_ = null; + } + resourceMetadataCase_ = 8; + onChanged(); + return deploymentMetadataBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.PreviewOperationMetadata, + com.google.cloud.designcenter.v1.PreviewOperationMetadata.Builder, + com.google.cloud.designcenter.v1.PreviewOperationMetadataOrBuilder> + previewMetadataBuilder_; + + /** + * + * + *
+     * Output only. The application preview metadata this operation is
+     * associated with.
+     * 
+ * + * + * .google.cloud.designcenter.v1.PreviewOperationMetadata preview_metadata = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the previewMetadata field is set. + */ + @java.lang.Override + public boolean hasPreviewMetadata() { + return resourceMetadataCase_ == 9; + } + + /** + * + * + *
+     * Output only. The application preview metadata this operation is
+     * associated with.
+     * 
+ * + * + * .google.cloud.designcenter.v1.PreviewOperationMetadata preview_metadata = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The previewMetadata. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.PreviewOperationMetadata getPreviewMetadata() { + if (previewMetadataBuilder_ == null) { + if (resourceMetadataCase_ == 9) { + return (com.google.cloud.designcenter.v1.PreviewOperationMetadata) resourceMetadata_; + } + return com.google.cloud.designcenter.v1.PreviewOperationMetadata.getDefaultInstance(); + } else { + if (resourceMetadataCase_ == 9) { + return previewMetadataBuilder_.getMessage(); + } + return com.google.cloud.designcenter.v1.PreviewOperationMetadata.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Output only. The application preview metadata this operation is
+     * associated with.
+     * 
+ * + * + * .google.cloud.designcenter.v1.PreviewOperationMetadata preview_metadata = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPreviewMetadata( + com.google.cloud.designcenter.v1.PreviewOperationMetadata value) { + if (previewMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resourceMetadata_ = value; + onChanged(); + } else { + previewMetadataBuilder_.setMessage(value); + } + resourceMetadataCase_ = 9; + return this; + } + + /** + * + * + *
+     * Output only. The application preview metadata this operation is
+     * associated with.
+     * 
+ * + * + * .google.cloud.designcenter.v1.PreviewOperationMetadata preview_metadata = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPreviewMetadata( + com.google.cloud.designcenter.v1.PreviewOperationMetadata.Builder builderForValue) { + if (previewMetadataBuilder_ == null) { + resourceMetadata_ = builderForValue.build(); + onChanged(); + } else { + previewMetadataBuilder_.setMessage(builderForValue.build()); + } + resourceMetadataCase_ = 9; + return this; + } + + /** + * + * + *
+     * Output only. The application preview metadata this operation is
+     * associated with.
+     * 
+ * + * + * .google.cloud.designcenter.v1.PreviewOperationMetadata preview_metadata = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergePreviewMetadata( + com.google.cloud.designcenter.v1.PreviewOperationMetadata value) { + if (previewMetadataBuilder_ == null) { + if (resourceMetadataCase_ == 9 + && resourceMetadata_ + != com.google.cloud.designcenter.v1.PreviewOperationMetadata.getDefaultInstance()) { + resourceMetadata_ = + com.google.cloud.designcenter.v1.PreviewOperationMetadata.newBuilder( + (com.google.cloud.designcenter.v1.PreviewOperationMetadata) resourceMetadata_) + .mergeFrom(value) + .buildPartial(); + } else { + resourceMetadata_ = value; + } + onChanged(); + } else { + if (resourceMetadataCase_ == 9) { + previewMetadataBuilder_.mergeFrom(value); + } else { + previewMetadataBuilder_.setMessage(value); + } + } + resourceMetadataCase_ = 9; + return this; + } + + /** + * + * + *
+     * Output only. The application preview metadata this operation is
+     * associated with.
+     * 
+ * + * + * .google.cloud.designcenter.v1.PreviewOperationMetadata preview_metadata = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearPreviewMetadata() { + if (previewMetadataBuilder_ == null) { + if (resourceMetadataCase_ == 9) { + resourceMetadataCase_ = 0; + resourceMetadata_ = null; + onChanged(); + } + } else { + if (resourceMetadataCase_ == 9) { + resourceMetadataCase_ = 0; + resourceMetadata_ = null; + } + previewMetadataBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Output only. The application preview metadata this operation is
+     * associated with.
+     * 
+ * + * + * .google.cloud.designcenter.v1.PreviewOperationMetadata preview_metadata = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.PreviewOperationMetadata.Builder + getPreviewMetadataBuilder() { + return internalGetPreviewMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The application preview metadata this operation is
+     * associated with.
+     * 
+ * + * + * .google.cloud.designcenter.v1.PreviewOperationMetadata preview_metadata = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.PreviewOperationMetadataOrBuilder + getPreviewMetadataOrBuilder() { + if ((resourceMetadataCase_ == 9) && (previewMetadataBuilder_ != null)) { + return previewMetadataBuilder_.getMessageOrBuilder(); + } else { + if (resourceMetadataCase_ == 9) { + return (com.google.cloud.designcenter.v1.PreviewOperationMetadata) resourceMetadata_; + } + return com.google.cloud.designcenter.v1.PreviewOperationMetadata.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Output only. The application preview metadata this operation is
+     * associated with.
+     * 
+ * + * + * .google.cloud.designcenter.v1.PreviewOperationMetadata preview_metadata = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.PreviewOperationMetadata, + com.google.cloud.designcenter.v1.PreviewOperationMetadata.Builder, + com.google.cloud.designcenter.v1.PreviewOperationMetadataOrBuilder> + internalGetPreviewMetadataFieldBuilder() { + if (previewMetadataBuilder_ == null) { + if (!(resourceMetadataCase_ == 9)) { + resourceMetadata_ = + com.google.cloud.designcenter.v1.PreviewOperationMetadata.getDefaultInstance(); + } + previewMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.PreviewOperationMetadata, + com.google.cloud.designcenter.v1.PreviewOperationMetadata.Builder, + com.google.cloud.designcenter.v1.PreviewOperationMetadataOrBuilder>( + (com.google.cloud.designcenter.v1.PreviewOperationMetadata) resourceMetadata_, + getParentForChildren(), + isClean()); + resourceMetadata_ = null; + } + resourceMetadataCase_ = 9; + onChanged(); + return previewMetadataBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ApplicationOperationMetadata, + com.google.cloud.designcenter.v1.ApplicationOperationMetadata.Builder, + com.google.cloud.designcenter.v1.ApplicationOperationMetadataOrBuilder> + applicationMetadataBuilder_; + + /** + * + * + *
+     * Output only. The application delete metadata this operation is associated
+     * with.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationOperationMetadata application_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the applicationMetadata field is set. + */ + @java.lang.Override + public boolean hasApplicationMetadata() { + return resourceMetadataCase_ == 10; + } + + /** + * + * + *
+     * Output only. The application delete metadata this operation is associated
+     * with.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationOperationMetadata application_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The applicationMetadata. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ApplicationOperationMetadata getApplicationMetadata() { + if (applicationMetadataBuilder_ == null) { + if (resourceMetadataCase_ == 10) { + return (com.google.cloud.designcenter.v1.ApplicationOperationMetadata) resourceMetadata_; + } + return com.google.cloud.designcenter.v1.ApplicationOperationMetadata.getDefaultInstance(); + } else { + if (resourceMetadataCase_ == 10) { + return applicationMetadataBuilder_.getMessage(); + } + return com.google.cloud.designcenter.v1.ApplicationOperationMetadata.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Output only. The application delete metadata this operation is associated
+     * with.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationOperationMetadata application_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setApplicationMetadata( + com.google.cloud.designcenter.v1.ApplicationOperationMetadata value) { + if (applicationMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resourceMetadata_ = value; + onChanged(); + } else { + applicationMetadataBuilder_.setMessage(value); + } + resourceMetadataCase_ = 10; + return this; + } + + /** + * + * + *
+     * Output only. The application delete metadata this operation is associated
+     * with.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationOperationMetadata application_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setApplicationMetadata( + com.google.cloud.designcenter.v1.ApplicationOperationMetadata.Builder builderForValue) { + if (applicationMetadataBuilder_ == null) { + resourceMetadata_ = builderForValue.build(); + onChanged(); + } else { + applicationMetadataBuilder_.setMessage(builderForValue.build()); + } + resourceMetadataCase_ = 10; + return this; + } + + /** + * + * + *
+     * Output only. The application delete metadata this operation is associated
+     * with.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationOperationMetadata application_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeApplicationMetadata( + com.google.cloud.designcenter.v1.ApplicationOperationMetadata value) { + if (applicationMetadataBuilder_ == null) { + if (resourceMetadataCase_ == 10 + && resourceMetadata_ + != com.google.cloud.designcenter.v1.ApplicationOperationMetadata + .getDefaultInstance()) { + resourceMetadata_ = + com.google.cloud.designcenter.v1.ApplicationOperationMetadata.newBuilder( + (com.google.cloud.designcenter.v1.ApplicationOperationMetadata) + resourceMetadata_) + .mergeFrom(value) + .buildPartial(); + } else { + resourceMetadata_ = value; + } + onChanged(); + } else { + if (resourceMetadataCase_ == 10) { + applicationMetadataBuilder_.mergeFrom(value); + } else { + applicationMetadataBuilder_.setMessage(value); + } + } + resourceMetadataCase_ = 10; + return this; + } + + /** + * + * + *
+     * Output only. The application delete metadata this operation is associated
+     * with.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationOperationMetadata application_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearApplicationMetadata() { + if (applicationMetadataBuilder_ == null) { + if (resourceMetadataCase_ == 10) { + resourceMetadataCase_ = 0; + resourceMetadata_ = null; + onChanged(); + } + } else { + if (resourceMetadataCase_ == 10) { + resourceMetadataCase_ = 0; + resourceMetadata_ = null; + } + applicationMetadataBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Output only. The application delete metadata this operation is associated
+     * with.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationOperationMetadata application_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ApplicationOperationMetadata.Builder + getApplicationMetadataBuilder() { + return internalGetApplicationMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The application delete metadata this operation is associated
+     * with.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationOperationMetadata application_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ApplicationOperationMetadataOrBuilder + getApplicationMetadataOrBuilder() { + if ((resourceMetadataCase_ == 10) && (applicationMetadataBuilder_ != null)) { + return applicationMetadataBuilder_.getMessageOrBuilder(); + } else { + if (resourceMetadataCase_ == 10) { + return (com.google.cloud.designcenter.v1.ApplicationOperationMetadata) resourceMetadata_; + } + return com.google.cloud.designcenter.v1.ApplicationOperationMetadata.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Output only. The application delete metadata this operation is associated
+     * with.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationOperationMetadata application_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ApplicationOperationMetadata, + com.google.cloud.designcenter.v1.ApplicationOperationMetadata.Builder, + com.google.cloud.designcenter.v1.ApplicationOperationMetadataOrBuilder> + internalGetApplicationMetadataFieldBuilder() { + if (applicationMetadataBuilder_ == null) { + if (!(resourceMetadataCase_ == 10)) { + resourceMetadata_ = + com.google.cloud.designcenter.v1.ApplicationOperationMetadata.getDefaultInstance(); + } + applicationMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ApplicationOperationMetadata, + com.google.cloud.designcenter.v1.ApplicationOperationMetadata.Builder, + com.google.cloud.designcenter.v1.ApplicationOperationMetadataOrBuilder>( + (com.google.cloud.designcenter.v1.ApplicationOperationMetadata) resourceMetadata_, + getParentForChildren(), + isClean()); + resourceMetadata_ = null; + } + resourceMetadataCase_ = 10; + onChanged(); + return applicationMetadataBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata, + com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata.Builder, + com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadataOrBuilder> + deploymentGroupMetadataBuilder_; + + /** + * + * + *
+     * Output only. The Provision Deployment Group Metadata this operation is
+     * associated with.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata deployment_group_metadata = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the deploymentGroupMetadata field is set. + */ + @java.lang.Override + public boolean hasDeploymentGroupMetadata() { + return resourceMetadataCase_ == 11; + } + + /** + * + * + *
+     * Output only. The Provision Deployment Group Metadata this operation is
+     * associated with.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata deployment_group_metadata = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deploymentGroupMetadata. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata + getDeploymentGroupMetadata() { + if (deploymentGroupMetadataBuilder_ == null) { + if (resourceMetadataCase_ == 11) { + return (com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata) + resourceMetadata_; + } + return com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata + .getDefaultInstance(); + } else { + if (resourceMetadataCase_ == 11) { + return deploymentGroupMetadataBuilder_.getMessage(); + } + return com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata + .getDefaultInstance(); + } + } + + /** + * + * + *
+     * Output only. The Provision Deployment Group Metadata this operation is
+     * associated with.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata deployment_group_metadata = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDeploymentGroupMetadata( + com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata value) { + if (deploymentGroupMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resourceMetadata_ = value; + onChanged(); + } else { + deploymentGroupMetadataBuilder_.setMessage(value); + } + resourceMetadataCase_ = 11; + return this; + } + + /** + * + * + *
+     * Output only. The Provision Deployment Group Metadata this operation is
+     * associated with.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata deployment_group_metadata = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDeploymentGroupMetadata( + com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata.Builder + builderForValue) { + if (deploymentGroupMetadataBuilder_ == null) { + resourceMetadata_ = builderForValue.build(); + onChanged(); + } else { + deploymentGroupMetadataBuilder_.setMessage(builderForValue.build()); + } + resourceMetadataCase_ = 11; + return this; + } + + /** + * + * + *
+     * Output only. The Provision Deployment Group Metadata this operation is
+     * associated with.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata deployment_group_metadata = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeDeploymentGroupMetadata( + com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata value) { + if (deploymentGroupMetadataBuilder_ == null) { + if (resourceMetadataCase_ == 11 + && resourceMetadata_ + != com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata + .getDefaultInstance()) { + resourceMetadata_ = + com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata.newBuilder( + (com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata) + resourceMetadata_) + .mergeFrom(value) + .buildPartial(); + } else { + resourceMetadata_ = value; + } + onChanged(); + } else { + if (resourceMetadataCase_ == 11) { + deploymentGroupMetadataBuilder_.mergeFrom(value); + } else { + deploymentGroupMetadataBuilder_.setMessage(value); + } + } + resourceMetadataCase_ = 11; + return this; + } + + /** + * + * + *
+     * Output only. The Provision Deployment Group Metadata this operation is
+     * associated with.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata deployment_group_metadata = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDeploymentGroupMetadata() { + if (deploymentGroupMetadataBuilder_ == null) { + if (resourceMetadataCase_ == 11) { + resourceMetadataCase_ = 0; + resourceMetadata_ = null; + onChanged(); + } + } else { + if (resourceMetadataCase_ == 11) { + resourceMetadataCase_ = 0; + resourceMetadata_ = null; + } + deploymentGroupMetadataBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Output only. The Provision Deployment Group Metadata this operation is
+     * associated with.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata deployment_group_metadata = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata.Builder + getDeploymentGroupMetadataBuilder() { + return internalGetDeploymentGroupMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The Provision Deployment Group Metadata this operation is
+     * associated with.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata deployment_group_metadata = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadataOrBuilder + getDeploymentGroupMetadataOrBuilder() { + if ((resourceMetadataCase_ == 11) && (deploymentGroupMetadataBuilder_ != null)) { + return deploymentGroupMetadataBuilder_.getMessageOrBuilder(); + } else { + if (resourceMetadataCase_ == 11) { + return (com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata) + resourceMetadata_; + } + return com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata + .getDefaultInstance(); + } + } + + /** + * + * + *
+     * Output only. The Provision Deployment Group Metadata this operation is
+     * associated with.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata deployment_group_metadata = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata, + com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata.Builder, + com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadataOrBuilder> + internalGetDeploymentGroupMetadataFieldBuilder() { + if (deploymentGroupMetadataBuilder_ == null) { + if (!(resourceMetadataCase_ == 11)) { + resourceMetadata_ = + com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata + .getDefaultInstance(); + } + deploymentGroupMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata, + com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata.Builder, + com.google.cloud.designcenter.v1 + .ProvisionDeploymentGroupOperationMetadataOrBuilder>( + (com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata) + resourceMetadata_, + getParentForChildren(), + isClean()); + resourceMetadata_ = null; + } + resourceMetadataCase_ = 11; + onChanged(); + return deploymentGroupMetadataBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata, + com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata.Builder, + com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadataOrBuilder> + generateAssessmentReportMetadataBuilder_; + + /** + * + * + *
+     * Output only. The Generate Assessment Report Metadata this operation is
+     * associated with.
+     * 
+ * + * + * .google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata generate_assessment_report_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the generateAssessmentReportMetadata field is set. + */ + @java.lang.Override + public boolean hasGenerateAssessmentReportMetadata() { + return resourceMetadataCase_ == 12; + } + + /** + * + * + *
+     * Output only. The Generate Assessment Report Metadata this operation is
+     * associated with.
+     * 
+ * + * + * .google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata generate_assessment_report_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The generateAssessmentReportMetadata. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata + getGenerateAssessmentReportMetadata() { + if (generateAssessmentReportMetadataBuilder_ == null) { + if (resourceMetadataCase_ == 12) { + return (com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata) + resourceMetadata_; + } + return com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata + .getDefaultInstance(); + } else { + if (resourceMetadataCase_ == 12) { + return generateAssessmentReportMetadataBuilder_.getMessage(); + } + return com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata + .getDefaultInstance(); + } + } + + /** + * + * + *
+     * Output only. The Generate Assessment Report Metadata this operation is
+     * associated with.
+     * 
+ * + * + * .google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata generate_assessment_report_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setGenerateAssessmentReportMetadata( + com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata value) { + if (generateAssessmentReportMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resourceMetadata_ = value; + onChanged(); + } else { + generateAssessmentReportMetadataBuilder_.setMessage(value); + } + resourceMetadataCase_ = 12; + return this; + } + + /** + * + * + *
+     * Output only. The Generate Assessment Report Metadata this operation is
+     * associated with.
+     * 
+ * + * + * .google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata generate_assessment_report_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setGenerateAssessmentReportMetadata( + com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata.Builder + builderForValue) { + if (generateAssessmentReportMetadataBuilder_ == null) { + resourceMetadata_ = builderForValue.build(); + onChanged(); + } else { + generateAssessmentReportMetadataBuilder_.setMessage(builderForValue.build()); + } + resourceMetadataCase_ = 12; + return this; + } + + /** + * + * + *
+     * Output only. The Generate Assessment Report Metadata this operation is
+     * associated with.
+     * 
+ * + * + * .google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata generate_assessment_report_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeGenerateAssessmentReportMetadata( + com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata value) { + if (generateAssessmentReportMetadataBuilder_ == null) { + if (resourceMetadataCase_ == 12 + && resourceMetadata_ + != com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata + .getDefaultInstance()) { + resourceMetadata_ = + com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata.newBuilder( + (com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata) + resourceMetadata_) + .mergeFrom(value) + .buildPartial(); + } else { + resourceMetadata_ = value; + } + onChanged(); + } else { + if (resourceMetadataCase_ == 12) { + generateAssessmentReportMetadataBuilder_.mergeFrom(value); + } else { + generateAssessmentReportMetadataBuilder_.setMessage(value); + } + } + resourceMetadataCase_ = 12; + return this; + } + + /** + * + * + *
+     * Output only. The Generate Assessment Report Metadata this operation is
+     * associated with.
+     * 
+ * + * + * .google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata generate_assessment_report_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearGenerateAssessmentReportMetadata() { + if (generateAssessmentReportMetadataBuilder_ == null) { + if (resourceMetadataCase_ == 12) { + resourceMetadataCase_ = 0; + resourceMetadata_ = null; + onChanged(); + } + } else { + if (resourceMetadataCase_ == 12) { + resourceMetadataCase_ = 0; + resourceMetadata_ = null; + } + generateAssessmentReportMetadataBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Output only. The Generate Assessment Report Metadata this operation is
+     * associated with.
+     * 
+ * + * + * .google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata generate_assessment_report_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata.Builder + getGenerateAssessmentReportMetadataBuilder() { + return internalGetGenerateAssessmentReportMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The Generate Assessment Report Metadata this operation is
+     * associated with.
+     * 
+ * + * + * .google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata generate_assessment_report_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadataOrBuilder + getGenerateAssessmentReportMetadataOrBuilder() { + if ((resourceMetadataCase_ == 12) && (generateAssessmentReportMetadataBuilder_ != null)) { + return generateAssessmentReportMetadataBuilder_.getMessageOrBuilder(); + } else { + if (resourceMetadataCase_ == 12) { + return (com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata) + resourceMetadata_; + } + return com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata + .getDefaultInstance(); + } + } + + /** + * + * + *
+     * Output only. The Generate Assessment Report Metadata this operation is
+     * associated with.
+     * 
+ * + * + * .google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata generate_assessment_report_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata, + com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata.Builder, + com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadataOrBuilder> + internalGetGenerateAssessmentReportMetadataFieldBuilder() { + if (generateAssessmentReportMetadataBuilder_ == null) { + if (!(resourceMetadataCase_ == 12)) { + resourceMetadata_ = + com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata + .getDefaultInstance(); + } + generateAssessmentReportMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata, + com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata.Builder, + com.google.cloud.designcenter.v1 + .GenerateAssessmentReportOperationMetadataOrBuilder>( + (com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata) + resourceMetadata_, + getParentForChildren(), + isClean()); + resourceMetadata_ = null; + } + resourceMetadataCase_ = 12; + onChanged(); + return generateAssessmentReportMetadataBuilder_; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + 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_ & 0x00000020) != 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_ |= 0x00000020; + 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_ |= 0x00000020; + 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_ & 0x00000020) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000020; + 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_ & ~0x00000020); + 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_ |= 0x00000020; + onChanged(); + return internalGetCreateTimeFieldBuilder().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.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + 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.SingleFieldBuilder< + 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_ & 0x00000040) != 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_ |= 0x00000040; + 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_ |= 0x00000040; + 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_ & 0x00000040) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); + } else { + endTime_ = value; + } + } else { + endTimeBuilder_.mergeFrom(value); + } + if (endTime_ != null) { + bitField0_ |= 0x00000040; + 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_ & ~0x00000040); + 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_ |= 0x00000040; + onChanged(); + return internalGetEndTimeFieldBuilder().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.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + 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. The 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. The 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. The 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_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The 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_ & ~0x00000080); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The 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_ |= 0x00000080; + 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_ |= 0x00000100; + 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_ & ~0x00000100); + 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_ |= 0x00000100; + 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_ |= 0x00000200; + 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_ & ~0x00000200); + 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_ |= 0x00000200; + 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_ |= 0x00000400; + 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_ & ~0x00000400); + 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_ |= 0x00000800; + 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_ & ~0x00000800); + 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_ |= 0x00000800; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.OperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.OperationMetadata) + private static final com.google.cloud.designcenter.v1.OperationMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.OperationMetadata(); + } + + public static com.google.cloud.designcenter.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.designcenter.v1.OperationMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/OperationMetadataOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/OperationMetadataOrBuilder.java new file mode 100644 index 000000000000..2ce2237d1772 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/OperationMetadataOrBuilder.java @@ -0,0 +1,469 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/designcenter.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface OperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.OperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The application deployment metadata this operation is
+   * associated with.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentOperationMetadata deployment_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the deploymentMetadata field is set. + */ + boolean hasDeploymentMetadata(); + + /** + * + * + *
+   * Output only. The application deployment metadata this operation is
+   * associated with.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentOperationMetadata deployment_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deploymentMetadata. + */ + com.google.cloud.designcenter.v1.DeploymentOperationMetadata getDeploymentMetadata(); + + /** + * + * + *
+   * Output only. The application deployment metadata this operation is
+   * associated with.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeploymentOperationMetadata deployment_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.DeploymentOperationMetadataOrBuilder + getDeploymentMetadataOrBuilder(); + + /** + * + * + *
+   * Output only. The application preview metadata this operation is
+   * associated with.
+   * 
+ * + * + * .google.cloud.designcenter.v1.PreviewOperationMetadata preview_metadata = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the previewMetadata field is set. + */ + boolean hasPreviewMetadata(); + + /** + * + * + *
+   * Output only. The application preview metadata this operation is
+   * associated with.
+   * 
+ * + * + * .google.cloud.designcenter.v1.PreviewOperationMetadata preview_metadata = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The previewMetadata. + */ + com.google.cloud.designcenter.v1.PreviewOperationMetadata getPreviewMetadata(); + + /** + * + * + *
+   * Output only. The application preview metadata this operation is
+   * associated with.
+   * 
+ * + * + * .google.cloud.designcenter.v1.PreviewOperationMetadata preview_metadata = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.PreviewOperationMetadataOrBuilder getPreviewMetadataOrBuilder(); + + /** + * + * + *
+   * Output only. The application delete metadata this operation is associated
+   * with.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationOperationMetadata application_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the applicationMetadata field is set. + */ + boolean hasApplicationMetadata(); + + /** + * + * + *
+   * Output only. The application delete metadata this operation is associated
+   * with.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationOperationMetadata application_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The applicationMetadata. + */ + com.google.cloud.designcenter.v1.ApplicationOperationMetadata getApplicationMetadata(); + + /** + * + * + *
+   * Output only. The application delete metadata this operation is associated
+   * with.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationOperationMetadata application_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.ApplicationOperationMetadataOrBuilder + getApplicationMetadataOrBuilder(); + + /** + * + * + *
+   * Output only. The Provision Deployment Group Metadata this operation is
+   * associated with.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata deployment_group_metadata = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the deploymentGroupMetadata field is set. + */ + boolean hasDeploymentGroupMetadata(); + + /** + * + * + *
+   * Output only. The Provision Deployment Group Metadata this operation is
+   * associated with.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata deployment_group_metadata = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deploymentGroupMetadata. + */ + com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata + getDeploymentGroupMetadata(); + + /** + * + * + *
+   * Output only. The Provision Deployment Group Metadata this operation is
+   * associated with.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata deployment_group_metadata = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadataOrBuilder + getDeploymentGroupMetadataOrBuilder(); + + /** + * + * + *
+   * Output only. The Generate Assessment Report Metadata this operation is
+   * associated with.
+   * 
+ * + * + * .google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata generate_assessment_report_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the generateAssessmentReportMetadata field is set. + */ + boolean hasGenerateAssessmentReportMetadata(); + + /** + * + * + *
+   * Output only. The Generate Assessment Report Metadata this operation is
+   * associated with.
+   * 
+ * + * + * .google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata generate_assessment_report_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The generateAssessmentReportMetadata. + */ + com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata + getGenerateAssessmentReportMetadata(); + + /** + * + * + *
+   * Output only. The Generate Assessment Report Metadata this operation is
+   * associated with.
+   * 
+ * + * + * .google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadata generate_assessment_report_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.GenerateAssessmentReportOperationMetadataOrBuilder + getGenerateAssessmentReportMetadataOrBuilder(); + + /** + * + * + *
+   * 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. The 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. The 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(); + + com.google.cloud.designcenter.v1.OperationMetadata.ResourceMetadataCase getResourceMetadataCase(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/Parameter.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/Parameter.java new file mode 100644 index 000000000000..6d572176d2ea --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/Parameter.java @@ -0,0 +1,978 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/parameters.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Parameter resource.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.Parameter} + */ +@com.google.protobuf.Generated +public final class Parameter extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.Parameter) + ParameterOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "Parameter"); + } + + // Use Parameter.newBuilder() to construct. + private Parameter(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Parameter() { + key_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.ParametersProto + .internal_static_google_cloud_designcenter_v1_Parameter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.ParametersProto + .internal_static_google_cloud_designcenter_v1_Parameter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.Parameter.class, + com.google.cloud.designcenter.v1.Parameter.Builder.class); + } + + private int bitField0_; + public static final int KEY_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object key_ = ""; + + /** + * + * + *
+   * Required. The key of the parameter.
+   * 
+ * + * string key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The key. + */ + @java.lang.Override + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The key of the parameter.
+   * 
+ * + * string key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for key. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALUE_FIELD_NUMBER = 2; + private com.google.protobuf.Value value_; + + /** + * + * + *
+   * Optional. The value of the parameter.
+   * 
+ * + * .google.protobuf.Value value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the value field is set. + */ + @java.lang.Override + public boolean hasValue() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. The value of the parameter.
+   * 
+ * + * .google.protobuf.Value value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The value. + */ + @java.lang.Override + public com.google.protobuf.Value getValue() { + return value_ == null ? com.google.protobuf.Value.getDefaultInstance() : value_; + } + + /** + * + * + *
+   * Optional. The value of the parameter.
+   * 
+ * + * .google.protobuf.Value value = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.protobuf.ValueOrBuilder getValueOrBuilder() { + return value_ == null ? com.google.protobuf.Value.getDefaultInstance() : value_; + } + + public static final int READ_ONLY_FIELD_NUMBER = 4; + private boolean readOnly_ = false; + + /** + * + * + *
+   * Output only. Indicates if the parameter is read-only (driven by
+   * expression).
+   * 
+ * + * bool read_only = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The readOnly. + */ + @java.lang.Override + public boolean getReadOnly() { + return readOnly_; + } + + 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.GeneratedMessage.isStringEmpty(key_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, key_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getValue()); + } + if (readOnly_ != false) { + output.writeBool(4, readOnly_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(key_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, key_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getValue()); + } + if (readOnly_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, readOnly_); + } + 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.designcenter.v1.Parameter)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.Parameter other = + (com.google.cloud.designcenter.v1.Parameter) obj; + + if (!getKey().equals(other.getKey())) return false; + if (hasValue() != other.hasValue()) return false; + if (hasValue()) { + if (!getValue().equals(other.getValue())) return false; + } + if (getReadOnly() != other.getReadOnly()) 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) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + if (hasValue()) { + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + } + hash = (37 * hash) + READ_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReadOnly()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.Parameter parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.Parameter 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.designcenter.v1.Parameter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.Parameter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.Parameter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.Parameter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.Parameter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.Parameter parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.Parameter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.Parameter parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.Parameter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.Parameter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.Parameter 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Parameter resource.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.Parameter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.Parameter) + com.google.cloud.designcenter.v1.ParameterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.ParametersProto + .internal_static_google_cloud_designcenter_v1_Parameter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.ParametersProto + .internal_static_google_cloud_designcenter_v1_Parameter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.Parameter.class, + com.google.cloud.designcenter.v1.Parameter.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.Parameter.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetValueFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + key_ = ""; + value_ = null; + if (valueBuilder_ != null) { + valueBuilder_.dispose(); + valueBuilder_ = null; + } + readOnly_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.ParametersProto + .internal_static_google_cloud_designcenter_v1_Parameter_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.Parameter getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.Parameter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.Parameter build() { + com.google.cloud.designcenter.v1.Parameter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.Parameter buildPartial() { + com.google.cloud.designcenter.v1.Parameter result = + new com.google.cloud.designcenter.v1.Parameter(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.Parameter result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.key_ = key_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.value_ = valueBuilder_ == null ? value_ : valueBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.readOnly_ = readOnly_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.Parameter) { + return mergeFrom((com.google.cloud.designcenter.v1.Parameter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.Parameter other) { + if (other == com.google.cloud.designcenter.v1.Parameter.getDefaultInstance()) return this; + if (!other.getKey().isEmpty()) { + key_ = other.key_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasValue()) { + mergeValue(other.getValue()); + } + if (other.getReadOnly() != false) { + setReadOnly(other.getReadOnly()); + } + 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: + { + key_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(internalGetValueFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 32: + { + readOnly_ = input.readBool(); + bitField0_ |= 0x00000004; + 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 key_ = ""; + + /** + * + * + *
+     * Required. The key of the parameter.
+     * 
+ * + * string key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The key. + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The key of the parameter.
+     * 
+ * + * string key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for key. + */ + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The key of the parameter.
+     * 
+ * + * string key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The key to set. + * @return This builder for chaining. + */ + public Builder setKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + key_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The key of the parameter.
+     * 
+ * + * string key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearKey() { + key_ = getDefaultInstance().getKey(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The key of the parameter.
+     * 
+ * + * string key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for key to set. + * @return This builder for chaining. + */ + public Builder setKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + key_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Value value_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder> + valueBuilder_; + + /** + * + * + *
+     * Optional. The value of the parameter.
+     * 
+ * + * .google.protobuf.Value value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the value field is set. + */ + public boolean hasValue() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Optional. The value of the parameter.
+     * 
+ * + * .google.protobuf.Value value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The value. + */ + public com.google.protobuf.Value getValue() { + if (valueBuilder_ == null) { + return value_ == null ? com.google.protobuf.Value.getDefaultInstance() : value_; + } else { + return valueBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The value of the parameter.
+     * 
+ * + * .google.protobuf.Value value = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setValue(com.google.protobuf.Value value) { + if (valueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + } else { + valueBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The value of the parameter.
+     * 
+ * + * .google.protobuf.Value value = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setValue(com.google.protobuf.Value.Builder builderForValue) { + if (valueBuilder_ == null) { + value_ = builderForValue.build(); + } else { + valueBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The value of the parameter.
+     * 
+ * + * .google.protobuf.Value value = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder mergeValue(com.google.protobuf.Value value) { + if (valueBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && value_ != null + && value_ != com.google.protobuf.Value.getDefaultInstance()) { + getValueBuilder().mergeFrom(value); + } else { + value_ = value; + } + } else { + valueBuilder_.mergeFrom(value); + } + if (value_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The value of the parameter.
+     * 
+ * + * .google.protobuf.Value value = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearValue() { + bitField0_ = (bitField0_ & ~0x00000002); + value_ = null; + if (valueBuilder_ != null) { + valueBuilder_.dispose(); + valueBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The value of the parameter.
+     * 
+ * + * .google.protobuf.Value value = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.protobuf.Value.Builder getValueBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetValueFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The value of the parameter.
+     * 
+ * + * .google.protobuf.Value value = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.protobuf.ValueOrBuilder getValueOrBuilder() { + if (valueBuilder_ != null) { + return valueBuilder_.getMessageOrBuilder(); + } else { + return value_ == null ? com.google.protobuf.Value.getDefaultInstance() : value_; + } + } + + /** + * + * + *
+     * Optional. The value of the parameter.
+     * 
+ * + * .google.protobuf.Value value = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder> + internalGetValueFieldBuilder() { + if (valueBuilder_ == null) { + valueBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder>(getValue(), getParentForChildren(), isClean()); + value_ = null; + } + return valueBuilder_; + } + + private boolean readOnly_; + + /** + * + * + *
+     * Output only. Indicates if the parameter is read-only (driven by
+     * expression).
+     * 
+ * + * bool read_only = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The readOnly. + */ + @java.lang.Override + public boolean getReadOnly() { + return readOnly_; + } + + /** + * + * + *
+     * Output only. Indicates if the parameter is read-only (driven by
+     * expression).
+     * 
+ * + * bool read_only = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The readOnly to set. + * @return This builder for chaining. + */ + public Builder setReadOnly(boolean value) { + + readOnly_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Indicates if the parameter is read-only (driven by
+     * expression).
+     * 
+ * + * bool read_only = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearReadOnly() { + bitField0_ = (bitField0_ & ~0x00000004); + readOnly_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.Parameter) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.Parameter) + private static final com.google.cloud.designcenter.v1.Parameter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.Parameter(); + } + + public static com.google.cloud.designcenter.v1.Parameter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Parameter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.Parameter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ParameterOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ParameterOrBuilder.java new file mode 100644 index 000000000000..e8c3a3e197cd --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ParameterOrBuilder.java @@ -0,0 +1,105 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/parameters.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ParameterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.Parameter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The key of the parameter.
+   * 
+ * + * string key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The key. + */ + java.lang.String getKey(); + + /** + * + * + *
+   * Required. The key of the parameter.
+   * 
+ * + * string key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for key. + */ + com.google.protobuf.ByteString getKeyBytes(); + + /** + * + * + *
+   * Optional. The value of the parameter.
+   * 
+ * + * .google.protobuf.Value value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the value field is set. + */ + boolean hasValue(); + + /** + * + * + *
+   * Optional. The value of the parameter.
+   * 
+ * + * .google.protobuf.Value value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The value. + */ + com.google.protobuf.Value getValue(); + + /** + * + * + *
+   * Optional. The value of the parameter.
+   * 
+ * + * .google.protobuf.Value value = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.protobuf.ValueOrBuilder getValueOrBuilder(); + + /** + * + * + *
+   * Output only. Indicates if the parameter is read-only (driven by
+   * expression).
+   * 
+ * + * bool read_only = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The readOnly. + */ + boolean getReadOnly(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ParameterSpec.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ParameterSpec.java new file mode 100644 index 000000000000..f8c368d5a66f --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ParameterSpec.java @@ -0,0 +1,2419 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/assessment.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * The specification of a parameter that can be configured on a cloud control
+ * or a framework.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ParameterSpec} + */ +@com.google.protobuf.Generated +public final class ParameterSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ParameterSpec) + ParameterSpecOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ParameterSpec"); + } + + // Use ParameterSpec.newBuilder() to construct. + private ParameterSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ParameterSpec() { + key_ = ""; + displayName_ = ""; + description_ = ""; + valueType_ = 0; + subParameterSpecs_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_ParameterSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_ParameterSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ParameterSpec.class, + com.google.cloud.designcenter.v1.ParameterSpec.Builder.class); + } + + /** + * + * + *
+   * The type of value that the parameter accepts.
+   * 
+ * + * Protobuf enum {@code google.cloud.designcenter.v1.ParameterSpec.ValueType} + */ + public enum ValueType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default. This value is unused.
+     * 
+ * + * VALUE_TYPE_UNSPECIFIED = 0; + */ + VALUE_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * A string value.
+     * 
+ * + * STRING = 3; + */ + STRING(3), + /** + * + * + *
+     * A boolean value.
+     * 
+ * + * BOOLEAN = 4; + */ + BOOLEAN(4), + /** + * + * + *
+     * A list of string values.
+     * 
+ * + * STRINGLIST = 5; + */ + STRINGLIST(5), + /** + * + * + *
+     * A numeric value.
+     * 
+ * + * NUMBER = 6; + */ + NUMBER(6), + /** + * + * + *
+     * Exactly one of the sub-parameters must be provided.
+     * 
+ * + * ONEOF = 7; + */ + ONEOF(7), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ValueType"); + } + + /** + * + * + *
+     * Default. This value is unused.
+     * 
+ * + * VALUE_TYPE_UNSPECIFIED = 0; + */ + public static final int VALUE_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * A string value.
+     * 
+ * + * STRING = 3; + */ + public static final int STRING_VALUE = 3; + + /** + * + * + *
+     * A boolean value.
+     * 
+ * + * BOOLEAN = 4; + */ + public static final int BOOLEAN_VALUE = 4; + + /** + * + * + *
+     * A list of string values.
+     * 
+ * + * STRINGLIST = 5; + */ + public static final int STRINGLIST_VALUE = 5; + + /** + * + * + *
+     * A numeric value.
+     * 
+ * + * NUMBER = 6; + */ + public static final int NUMBER_VALUE = 6; + + /** + * + * + *
+     * Exactly one of the sub-parameters must be provided.
+     * 
+ * + * ONEOF = 7; + */ + public static final int ONEOF_VALUE = 7; + + 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 ValueType 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 ValueType forNumber(int value) { + switch (value) { + case 0: + return VALUE_TYPE_UNSPECIFIED; + case 3: + return STRING; + case 4: + return BOOLEAN; + case 5: + return STRINGLIST; + case 6: + return NUMBER; + case 7: + return ONEOF; + 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 ValueType findValueByNumber(int number) { + return ValueType.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.designcenter.v1.ParameterSpec.getDescriptor().getEnumTypes().get(0); + } + + private static final ValueType[] VALUES = values(); + + public static ValueType 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 ValueType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.designcenter.v1.ParameterSpec.ValueType) + } + + private int bitField0_; + public static final int KEY_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object key_ = ""; + + /** + * + * + *
+   * Required. The key of the parameter, matching
+   * [Parameter.key][google.cloud.designcenter.v1.Parameter.key] of the
+   * value supplied for it.
+   * 
+ * + * string key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The key. + */ + @java.lang.Override + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The key of the parameter, matching
+   * [Parameter.key][google.cloud.designcenter.v1.Parameter.key] of the
+   * value supplied for it.
+   * 
+ * + * string key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for key. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + key_ = 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_ = ""; + + /** + * + * + *
+   * Optional. The parameter display name, which is a user friendly name used
+   * for UI.
+   * 
+ * + * string display_name = 2 [(.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. The parameter display name, which is a user friendly name used
+   * for UI.
+   * 
+ * + * string display_name = 2 [(.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 DESCRIPTION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
+   * Optional. The parameter description.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The parameter description.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUIRED_FIELD_NUMBER = 4; + private boolean required_ = false; + + /** + * + * + *
+   * Optional. Whether a value must be provided for the parameter.
+   * 
+ * + * bool required = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The required. + */ + @java.lang.Override + public boolean getRequired() { + return required_; + } + + public static final int VALUE_TYPE_FIELD_NUMBER = 5; + private int valueType_ = 0; + + /** + * + * + *
+   * Optional. The type of value that the parameter accepts.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ParameterSpec.ValueType value_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for valueType. + */ + @java.lang.Override + public int getValueTypeValue() { + return valueType_; + } + + /** + * + * + *
+   * Optional. The type of value that the parameter accepts.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ParameterSpec.ValueType value_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The valueType. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ParameterSpec.ValueType getValueType() { + com.google.cloud.designcenter.v1.ParameterSpec.ValueType result = + com.google.cloud.designcenter.v1.ParameterSpec.ValueType.forNumber(valueType_); + return result == null + ? com.google.cloud.designcenter.v1.ParameterSpec.ValueType.UNRECOGNIZED + : result; + } + + public static final int DEFAULT_VALUE_FIELD_NUMBER = 6; + private com.google.protobuf.Value defaultValue_; + + /** + * + * + *
+   * Optional. The default value of the parameter, used when the user does not
+   * provide one.
+   * 
+ * + * .google.protobuf.Value default_value = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the defaultValue field is set. + */ + @java.lang.Override + public boolean hasDefaultValue() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. The default value of the parameter, used when the user does not
+   * provide one.
+   * 
+ * + * .google.protobuf.Value default_value = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The defaultValue. + */ + @java.lang.Override + public com.google.protobuf.Value getDefaultValue() { + return defaultValue_ == null ? com.google.protobuf.Value.getDefaultInstance() : defaultValue_; + } + + /** + * + * + *
+   * Optional. The default value of the parameter, used when the user does not
+   * provide one.
+   * 
+ * + * .google.protobuf.Value default_value = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.ValueOrBuilder getDefaultValueOrBuilder() { + return defaultValue_ == null ? com.google.protobuf.Value.getDefaultInstance() : defaultValue_; + } + + public static final int SUB_PARAMETER_SPECS_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private java.util.List subParameterSpecs_; + + /** + * + * + *
+   * Optional. The specifications of the sub-parameters. Only set when
+   * `value_type` is `ONEOF`.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ParameterSpec sub_parameter_specs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getSubParameterSpecsList() { + return subParameterSpecs_; + } + + /** + * + * + *
+   * Optional. The specifications of the sub-parameters. Only set when
+   * `value_type` is `ONEOF`.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ParameterSpec sub_parameter_specs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getSubParameterSpecsOrBuilderList() { + return subParameterSpecs_; + } + + /** + * + * + *
+   * Optional. The specifications of the sub-parameters. Only set when
+   * `value_type` is `ONEOF`.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ParameterSpec sub_parameter_specs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getSubParameterSpecsCount() { + return subParameterSpecs_.size(); + } + + /** + * + * + *
+   * Optional. The specifications of the sub-parameters. Only set when
+   * `value_type` is `ONEOF`.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ParameterSpec sub_parameter_specs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ParameterSpec getSubParameterSpecs(int index) { + return subParameterSpecs_.get(index); + } + + /** + * + * + *
+   * Optional. The specifications of the sub-parameters. Only set when
+   * `value_type` is `ONEOF`.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ParameterSpec sub_parameter_specs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ParameterSpecOrBuilder getSubParameterSpecsOrBuilder( + int index) { + return subParameterSpecs_.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.GeneratedMessage.isStringEmpty(key_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, key_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, description_); + } + if (required_ != false) { + output.writeBool(4, required_); + } + if (valueType_ + != com.google.cloud.designcenter.v1.ParameterSpec.ValueType.VALUE_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(5, valueType_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(6, getDefaultValue()); + } + for (int i = 0; i < subParameterSpecs_.size(); i++) { + output.writeMessage(8, subParameterSpecs_.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.GeneratedMessage.isStringEmpty(key_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, key_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, description_); + } + if (required_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, required_); + } + if (valueType_ + != com.google.cloud.designcenter.v1.ParameterSpec.ValueType.VALUE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, valueType_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getDefaultValue()); + } + for (int i = 0; i < subParameterSpecs_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(8, subParameterSpecs_.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.designcenter.v1.ParameterSpec)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ParameterSpec other = + (com.google.cloud.designcenter.v1.ParameterSpec) obj; + + if (!getKey().equals(other.getKey())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (getRequired() != other.getRequired()) return false; + if (valueType_ != other.valueType_) return false; + if (hasDefaultValue() != other.hasDefaultValue()) return false; + if (hasDefaultValue()) { + if (!getDefaultValue().equals(other.getDefaultValue())) return false; + } + if (!getSubParameterSpecsList().equals(other.getSubParameterSpecsList())) 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) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().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) + REQUIRED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequired()); + hash = (37 * hash) + VALUE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + valueType_; + if (hasDefaultValue()) { + hash = (37 * hash) + DEFAULT_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getDefaultValue().hashCode(); + } + if (getSubParameterSpecsCount() > 0) { + hash = (37 * hash) + SUB_PARAMETER_SPECS_FIELD_NUMBER; + hash = (53 * hash) + getSubParameterSpecsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.ParameterSpec parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ParameterSpec 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.designcenter.v1.ParameterSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ParameterSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ParameterSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ParameterSpec parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ParameterSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ParameterSpec parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ParameterSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ParameterSpec parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ParameterSpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ParameterSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ParameterSpec 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * The specification of a parameter that can be configured on a cloud control
+   * or a framework.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ParameterSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ParameterSpec) + com.google.cloud.designcenter.v1.ParameterSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_ParameterSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_ParameterSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ParameterSpec.class, + com.google.cloud.designcenter.v1.ParameterSpec.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.ParameterSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetDefaultValueFieldBuilder(); + internalGetSubParameterSpecsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + key_ = ""; + displayName_ = ""; + description_ = ""; + required_ = false; + valueType_ = 0; + defaultValue_ = null; + if (defaultValueBuilder_ != null) { + defaultValueBuilder_.dispose(); + defaultValueBuilder_ = null; + } + if (subParameterSpecsBuilder_ == null) { + subParameterSpecs_ = java.util.Collections.emptyList(); + } else { + subParameterSpecs_ = null; + subParameterSpecsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000040); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_ParameterSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ParameterSpec getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ParameterSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ParameterSpec build() { + com.google.cloud.designcenter.v1.ParameterSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ParameterSpec buildPartial() { + com.google.cloud.designcenter.v1.ParameterSpec result = + new com.google.cloud.designcenter.v1.ParameterSpec(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.designcenter.v1.ParameterSpec result) { + if (subParameterSpecsBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0)) { + subParameterSpecs_ = java.util.Collections.unmodifiableList(subParameterSpecs_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.subParameterSpecs_ = subParameterSpecs_; + } else { + result.subParameterSpecs_ = subParameterSpecsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.designcenter.v1.ParameterSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.key_ = key_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.required_ = required_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.valueType_ = valueType_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.defaultValue_ = + defaultValueBuilder_ == null ? defaultValue_ : defaultValueBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.ParameterSpec) { + return mergeFrom((com.google.cloud.designcenter.v1.ParameterSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.ParameterSpec other) { + if (other == com.google.cloud.designcenter.v1.ParameterSpec.getDefaultInstance()) return this; + if (!other.getKey().isEmpty()) { + key_ = other.key_; + 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.getRequired() != false) { + setRequired(other.getRequired()); + } + if (other.valueType_ != 0) { + setValueTypeValue(other.getValueTypeValue()); + } + if (other.hasDefaultValue()) { + mergeDefaultValue(other.getDefaultValue()); + } + if (subParameterSpecsBuilder_ == null) { + if (!other.subParameterSpecs_.isEmpty()) { + if (subParameterSpecs_.isEmpty()) { + subParameterSpecs_ = other.subParameterSpecs_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureSubParameterSpecsIsMutable(); + subParameterSpecs_.addAll(other.subParameterSpecs_); + } + onChanged(); + } + } else { + if (!other.subParameterSpecs_.isEmpty()) { + if (subParameterSpecsBuilder_.isEmpty()) { + subParameterSpecsBuilder_.dispose(); + subParameterSpecsBuilder_ = null; + subParameterSpecs_ = other.subParameterSpecs_; + bitField0_ = (bitField0_ & ~0x00000040); + subParameterSpecsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetSubParameterSpecsFieldBuilder() + : null; + } else { + subParameterSpecsBuilder_.addAllMessages(other.subParameterSpecs_); + } + } + } + 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: + { + key_ = 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: + { + required_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + valueType_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 50: + { + input.readMessage( + internalGetDefaultValueFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 66: + { + com.google.cloud.designcenter.v1.ParameterSpec m = + input.readMessage( + com.google.cloud.designcenter.v1.ParameterSpec.parser(), extensionRegistry); + if (subParameterSpecsBuilder_ == null) { + ensureSubParameterSpecsIsMutable(); + subParameterSpecs_.add(m); + } else { + subParameterSpecsBuilder_.addMessage(m); + } + 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 key_ = ""; + + /** + * + * + *
+     * Required. The key of the parameter, matching
+     * [Parameter.key][google.cloud.designcenter.v1.Parameter.key] of the
+     * value supplied for it.
+     * 
+ * + * string key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The key. + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The key of the parameter, matching
+     * [Parameter.key][google.cloud.designcenter.v1.Parameter.key] of the
+     * value supplied for it.
+     * 
+ * + * string key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for key. + */ + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The key of the parameter, matching
+     * [Parameter.key][google.cloud.designcenter.v1.Parameter.key] of the
+     * value supplied for it.
+     * 
+ * + * string key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The key to set. + * @return This builder for chaining. + */ + public Builder setKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + key_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The key of the parameter, matching
+     * [Parameter.key][google.cloud.designcenter.v1.Parameter.key] of the
+     * value supplied for it.
+     * 
+ * + * string key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearKey() { + key_ = getDefaultInstance().getKey(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The key of the parameter, matching
+     * [Parameter.key][google.cloud.designcenter.v1.Parameter.key] of the
+     * value supplied for it.
+     * 
+ * + * string key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for key to set. + * @return This builder for chaining. + */ + public Builder setKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + key_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
+     * Optional. The parameter display name, which is a user friendly name used
+     * for UI.
+     * 
+ * + * string display_name = 2 [(.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. The parameter display name, which is a user friendly name used
+     * for UI.
+     * 
+ * + * string display_name = 2 [(.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. The parameter display name, which is a user friendly name used
+     * for UI.
+     * 
+ * + * string display_name = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The parameter display name, which is a user friendly name used
+     * for UI.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The parameter display name, which is a user friendly name used
+     * for UI.
+     * 
+ * + * string display_name = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
+     * Optional. The parameter description.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The parameter description.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The parameter description.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The parameter description.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The parameter description.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private boolean required_; + + /** + * + * + *
+     * Optional. Whether a value must be provided for the parameter.
+     * 
+ * + * bool required = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The required. + */ + @java.lang.Override + public boolean getRequired() { + return required_; + } + + /** + * + * + *
+     * Optional. Whether a value must be provided for the parameter.
+     * 
+ * + * bool required = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The required to set. + * @return This builder for chaining. + */ + public Builder setRequired(boolean value) { + + required_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Whether a value must be provided for the parameter.
+     * 
+ * + * bool required = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRequired() { + bitField0_ = (bitField0_ & ~0x00000008); + required_ = false; + onChanged(); + return this; + } + + private int valueType_ = 0; + + /** + * + * + *
+     * Optional. The type of value that the parameter accepts.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ParameterSpec.ValueType value_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for valueType. + */ + @java.lang.Override + public int getValueTypeValue() { + return valueType_; + } + + /** + * + * + *
+     * Optional. The type of value that the parameter accepts.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ParameterSpec.ValueType value_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for valueType to set. + * @return This builder for chaining. + */ + public Builder setValueTypeValue(int value) { + valueType_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The type of value that the parameter accepts.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ParameterSpec.ValueType value_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The valueType. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ParameterSpec.ValueType getValueType() { + com.google.cloud.designcenter.v1.ParameterSpec.ValueType result = + com.google.cloud.designcenter.v1.ParameterSpec.ValueType.forNumber(valueType_); + return result == null + ? com.google.cloud.designcenter.v1.ParameterSpec.ValueType.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Optional. The type of value that the parameter accepts.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ParameterSpec.ValueType value_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The valueType to set. + * @return This builder for chaining. + */ + public Builder setValueType(com.google.cloud.designcenter.v1.ParameterSpec.ValueType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + valueType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The type of value that the parameter accepts.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ParameterSpec.ValueType value_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearValueType() { + bitField0_ = (bitField0_ & ~0x00000010); + valueType_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Value defaultValue_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder> + defaultValueBuilder_; + + /** + * + * + *
+     * Optional. The default value of the parameter, used when the user does not
+     * provide one.
+     * 
+ * + * .google.protobuf.Value default_value = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the defaultValue field is set. + */ + public boolean hasDefaultValue() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+     * Optional. The default value of the parameter, used when the user does not
+     * provide one.
+     * 
+ * + * .google.protobuf.Value default_value = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The defaultValue. + */ + public com.google.protobuf.Value getDefaultValue() { + if (defaultValueBuilder_ == null) { + return defaultValue_ == null + ? com.google.protobuf.Value.getDefaultInstance() + : defaultValue_; + } else { + return defaultValueBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The default value of the parameter, used when the user does not
+     * provide one.
+     * 
+ * + * .google.protobuf.Value default_value = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDefaultValue(com.google.protobuf.Value value) { + if (defaultValueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + defaultValue_ = value; + } else { + defaultValueBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The default value of the parameter, used when the user does not
+     * provide one.
+     * 
+ * + * .google.protobuf.Value default_value = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDefaultValue(com.google.protobuf.Value.Builder builderForValue) { + if (defaultValueBuilder_ == null) { + defaultValue_ = builderForValue.build(); + } else { + defaultValueBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The default value of the parameter, used when the user does not
+     * provide one.
+     * 
+ * + * .google.protobuf.Value default_value = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeDefaultValue(com.google.protobuf.Value value) { + if (defaultValueBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && defaultValue_ != null + && defaultValue_ != com.google.protobuf.Value.getDefaultInstance()) { + getDefaultValueBuilder().mergeFrom(value); + } else { + defaultValue_ = value; + } + } else { + defaultValueBuilder_.mergeFrom(value); + } + if (defaultValue_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The default value of the parameter, used when the user does not
+     * provide one.
+     * 
+ * + * .google.protobuf.Value default_value = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDefaultValue() { + bitField0_ = (bitField0_ & ~0x00000020); + defaultValue_ = null; + if (defaultValueBuilder_ != null) { + defaultValueBuilder_.dispose(); + defaultValueBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The default value of the parameter, used when the user does not
+     * provide one.
+     * 
+ * + * .google.protobuf.Value default_value = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Value.Builder getDefaultValueBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetDefaultValueFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The default value of the parameter, used when the user does not
+     * provide one.
+     * 
+ * + * .google.protobuf.Value default_value = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.ValueOrBuilder getDefaultValueOrBuilder() { + if (defaultValueBuilder_ != null) { + return defaultValueBuilder_.getMessageOrBuilder(); + } else { + return defaultValue_ == null + ? com.google.protobuf.Value.getDefaultInstance() + : defaultValue_; + } + } + + /** + * + * + *
+     * Optional. The default value of the parameter, used when the user does not
+     * provide one.
+     * 
+ * + * .google.protobuf.Value default_value = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder> + internalGetDefaultValueFieldBuilder() { + if (defaultValueBuilder_ == null) { + defaultValueBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder>( + getDefaultValue(), getParentForChildren(), isClean()); + defaultValue_ = null; + } + return defaultValueBuilder_; + } + + private java.util.List subParameterSpecs_ = + java.util.Collections.emptyList(); + + private void ensureSubParameterSpecsIsMutable() { + if (!((bitField0_ & 0x00000040) != 0)) { + subParameterSpecs_ = + new java.util.ArrayList( + subParameterSpecs_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ParameterSpec, + com.google.cloud.designcenter.v1.ParameterSpec.Builder, + com.google.cloud.designcenter.v1.ParameterSpecOrBuilder> + subParameterSpecsBuilder_; + + /** + * + * + *
+     * Optional. The specifications of the sub-parameters. Only set when
+     * `value_type` is `ONEOF`.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ParameterSpec sub_parameter_specs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getSubParameterSpecsList() { + if (subParameterSpecsBuilder_ == null) { + return java.util.Collections.unmodifiableList(subParameterSpecs_); + } else { + return subParameterSpecsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. The specifications of the sub-parameters. Only set when
+     * `value_type` is `ONEOF`.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ParameterSpec sub_parameter_specs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getSubParameterSpecsCount() { + if (subParameterSpecsBuilder_ == null) { + return subParameterSpecs_.size(); + } else { + return subParameterSpecsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. The specifications of the sub-parameters. Only set when
+     * `value_type` is `ONEOF`.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ParameterSpec sub_parameter_specs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ParameterSpec getSubParameterSpecs(int index) { + if (subParameterSpecsBuilder_ == null) { + return subParameterSpecs_.get(index); + } else { + return subParameterSpecsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. The specifications of the sub-parameters. Only set when
+     * `value_type` is `ONEOF`.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ParameterSpec sub_parameter_specs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSubParameterSpecs( + int index, com.google.cloud.designcenter.v1.ParameterSpec value) { + if (subParameterSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubParameterSpecsIsMutable(); + subParameterSpecs_.set(index, value); + onChanged(); + } else { + subParameterSpecsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The specifications of the sub-parameters. Only set when
+     * `value_type` is `ONEOF`.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ParameterSpec sub_parameter_specs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSubParameterSpecs( + int index, com.google.cloud.designcenter.v1.ParameterSpec.Builder builderForValue) { + if (subParameterSpecsBuilder_ == null) { + ensureSubParameterSpecsIsMutable(); + subParameterSpecs_.set(index, builderForValue.build()); + onChanged(); + } else { + subParameterSpecsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The specifications of the sub-parameters. Only set when
+     * `value_type` is `ONEOF`.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ParameterSpec sub_parameter_specs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSubParameterSpecs(com.google.cloud.designcenter.v1.ParameterSpec value) { + if (subParameterSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubParameterSpecsIsMutable(); + subParameterSpecs_.add(value); + onChanged(); + } else { + subParameterSpecsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. The specifications of the sub-parameters. Only set when
+     * `value_type` is `ONEOF`.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ParameterSpec sub_parameter_specs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSubParameterSpecs( + int index, com.google.cloud.designcenter.v1.ParameterSpec value) { + if (subParameterSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubParameterSpecsIsMutable(); + subParameterSpecs_.add(index, value); + onChanged(); + } else { + subParameterSpecsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The specifications of the sub-parameters. Only set when
+     * `value_type` is `ONEOF`.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ParameterSpec sub_parameter_specs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSubParameterSpecs( + com.google.cloud.designcenter.v1.ParameterSpec.Builder builderForValue) { + if (subParameterSpecsBuilder_ == null) { + ensureSubParameterSpecsIsMutable(); + subParameterSpecs_.add(builderForValue.build()); + onChanged(); + } else { + subParameterSpecsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The specifications of the sub-parameters. Only set when
+     * `value_type` is `ONEOF`.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ParameterSpec sub_parameter_specs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSubParameterSpecs( + int index, com.google.cloud.designcenter.v1.ParameterSpec.Builder builderForValue) { + if (subParameterSpecsBuilder_ == null) { + ensureSubParameterSpecsIsMutable(); + subParameterSpecs_.add(index, builderForValue.build()); + onChanged(); + } else { + subParameterSpecsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The specifications of the sub-parameters. Only set when
+     * `value_type` is `ONEOF`.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ParameterSpec sub_parameter_specs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllSubParameterSpecs( + java.lang.Iterable values) { + if (subParameterSpecsBuilder_ == null) { + ensureSubParameterSpecsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, subParameterSpecs_); + onChanged(); + } else { + subParameterSpecsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. The specifications of the sub-parameters. Only set when
+     * `value_type` is `ONEOF`.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ParameterSpec sub_parameter_specs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSubParameterSpecs() { + if (subParameterSpecsBuilder_ == null) { + subParameterSpecs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + subParameterSpecsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. The specifications of the sub-parameters. Only set when
+     * `value_type` is `ONEOF`.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ParameterSpec sub_parameter_specs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeSubParameterSpecs(int index) { + if (subParameterSpecsBuilder_ == null) { + ensureSubParameterSpecsIsMutable(); + subParameterSpecs_.remove(index); + onChanged(); + } else { + subParameterSpecsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. The specifications of the sub-parameters. Only set when
+     * `value_type` is `ONEOF`.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ParameterSpec sub_parameter_specs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ParameterSpec.Builder getSubParameterSpecsBuilder( + int index) { + return internalGetSubParameterSpecsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. The specifications of the sub-parameters. Only set when
+     * `value_type` is `ONEOF`.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ParameterSpec sub_parameter_specs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ParameterSpecOrBuilder getSubParameterSpecsOrBuilder( + int index) { + if (subParameterSpecsBuilder_ == null) { + return subParameterSpecs_.get(index); + } else { + return subParameterSpecsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. The specifications of the sub-parameters. Only set when
+     * `value_type` is `ONEOF`.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ParameterSpec sub_parameter_specs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getSubParameterSpecsOrBuilderList() { + if (subParameterSpecsBuilder_ != null) { + return subParameterSpecsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(subParameterSpecs_); + } + } + + /** + * + * + *
+     * Optional. The specifications of the sub-parameters. Only set when
+     * `value_type` is `ONEOF`.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ParameterSpec sub_parameter_specs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ParameterSpec.Builder addSubParameterSpecsBuilder() { + return internalGetSubParameterSpecsFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.ParameterSpec.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The specifications of the sub-parameters. Only set when
+     * `value_type` is `ONEOF`.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ParameterSpec sub_parameter_specs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ParameterSpec.Builder addSubParameterSpecsBuilder( + int index) { + return internalGetSubParameterSpecsFieldBuilder() + .addBuilder(index, com.google.cloud.designcenter.v1.ParameterSpec.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The specifications of the sub-parameters. Only set when
+     * `value_type` is `ONEOF`.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ParameterSpec sub_parameter_specs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getSubParameterSpecsBuilderList() { + return internalGetSubParameterSpecsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ParameterSpec, + com.google.cloud.designcenter.v1.ParameterSpec.Builder, + com.google.cloud.designcenter.v1.ParameterSpecOrBuilder> + internalGetSubParameterSpecsFieldBuilder() { + if (subParameterSpecsBuilder_ == null) { + subParameterSpecsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ParameterSpec, + com.google.cloud.designcenter.v1.ParameterSpec.Builder, + com.google.cloud.designcenter.v1.ParameterSpecOrBuilder>( + subParameterSpecs_, + ((bitField0_ & 0x00000040) != 0), + getParentForChildren(), + isClean()); + subParameterSpecs_ = null; + } + return subParameterSpecsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ParameterSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ParameterSpec) + private static final com.google.cloud.designcenter.v1.ParameterSpec DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.ParameterSpec(); + } + + public static com.google.cloud.designcenter.v1.ParameterSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ParameterSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ParameterSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ParameterSpecOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ParameterSpecOrBuilder.java new file mode 100644 index 000000000000..91d6e2c2a892 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ParameterSpecOrBuilder.java @@ -0,0 +1,269 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/assessment.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ParameterSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ParameterSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The key of the parameter, matching
+   * [Parameter.key][google.cloud.designcenter.v1.Parameter.key] of the
+   * value supplied for it.
+   * 
+ * + * string key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The key. + */ + java.lang.String getKey(); + + /** + * + * + *
+   * Required. The key of the parameter, matching
+   * [Parameter.key][google.cloud.designcenter.v1.Parameter.key] of the
+   * value supplied for it.
+   * 
+ * + * string key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for key. + */ + com.google.protobuf.ByteString getKeyBytes(); + + /** + * + * + *
+   * Optional. The parameter display name, which is a user friendly name used
+   * for UI.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
+   * Optional. The parameter display name, which is a user friendly name used
+   * for UI.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Optional. The parameter description.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
+   * Optional. The parameter description.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Optional. Whether a value must be provided for the parameter.
+   * 
+ * + * bool required = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The required. + */ + boolean getRequired(); + + /** + * + * + *
+   * Optional. The type of value that the parameter accepts.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ParameterSpec.ValueType value_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for valueType. + */ + int getValueTypeValue(); + + /** + * + * + *
+   * Optional. The type of value that the parameter accepts.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ParameterSpec.ValueType value_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The valueType. + */ + com.google.cloud.designcenter.v1.ParameterSpec.ValueType getValueType(); + + /** + * + * + *
+   * Optional. The default value of the parameter, used when the user does not
+   * provide one.
+   * 
+ * + * .google.protobuf.Value default_value = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the defaultValue field is set. + */ + boolean hasDefaultValue(); + + /** + * + * + *
+   * Optional. The default value of the parameter, used when the user does not
+   * provide one.
+   * 
+ * + * .google.protobuf.Value default_value = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The defaultValue. + */ + com.google.protobuf.Value getDefaultValue(); + + /** + * + * + *
+   * Optional. The default value of the parameter, used when the user does not
+   * provide one.
+   * 
+ * + * .google.protobuf.Value default_value = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.ValueOrBuilder getDefaultValueOrBuilder(); + + /** + * + * + *
+   * Optional. The specifications of the sub-parameters. Only set when
+   * `value_type` is `ONEOF`.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ParameterSpec sub_parameter_specs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getSubParameterSpecsList(); + + /** + * + * + *
+   * Optional. The specifications of the sub-parameters. Only set when
+   * `value_type` is `ONEOF`.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ParameterSpec sub_parameter_specs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.ParameterSpec getSubParameterSpecs(int index); + + /** + * + * + *
+   * Optional. The specifications of the sub-parameters. Only set when
+   * `value_type` is `ONEOF`.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ParameterSpec sub_parameter_specs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getSubParameterSpecsCount(); + + /** + * + * + *
+   * Optional. The specifications of the sub-parameters. Only set when
+   * `value_type` is `ONEOF`.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ParameterSpec sub_parameter_specs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getSubParameterSpecsOrBuilderList(); + + /** + * + * + *
+   * Optional. The specifications of the sub-parameters. Only set when
+   * `value_type` is `ONEOF`.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ParameterSpec sub_parameter_specs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.ParameterSpecOrBuilder getSubParameterSpecsOrBuilder(int index); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ParametersProto.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ParametersProto.java new file mode 100644 index 000000000000..753d3db37bc2 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ParametersProto.java @@ -0,0 +1,179 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/parameters.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public final class ParametersProto extends com.google.protobuf.GeneratedFile { + private ParametersProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ParametersProto"); + } + + 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_designcenter_v1_ComponentVariable_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ComponentVariable_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_SaaSRuntimeContext_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_SaaSRuntimeContext_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_ConnectionParameters_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ConnectionParameters_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_ComponentParameterSchema_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ComponentParameterSchema_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_Parameter_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_Parameter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_CloudControlConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_CloudControlConfig_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/designcenter/v1/parameter" + + "s.proto\022\034google.cloud.designcenter.v1\032\037g" + + "oogle/api/field_behavior.proto\032\031google/a" + + "pi/resource.proto\032\034google/protobuf/struct.proto\"H\n" + + "\021ComponentVariable\022\026\n" + + "\010variable\030\001 \001(\tB\004\342A\001\002\022\033\n\r" + + "component_uri\030\002 \001(\tB\004\342A\001\002\".\n" + + "\022SaaSRuntimeContext\022\030\n\n" + + "saas_names\030\001 \003(\tB\004\342A\001\001\"s\n" + + "\024ConnectionParameters\022\030\n\n" + + "connection\030\001 \001(\tB\004\342A\001\002\022A\n\n" + + "parameters\030\002 \003(\0132" + + "\'.google.cloud.designcenter.v1.ParameterB\004\342A\001\001\"\221\001\n" + + "\030ComponentParameterSchema\022\021\n" + + "\003key\030\001 \001(\tB\004\342A\001\003\0223\n\r" + + "default_value\030\002 \001(\0132\026.google.protobuf.ValueB\004\342A\001\003\022\031\n" + + "\013is_required\030\003 \001(\010B\004\342A\001\003\022\022\n" + + "\004type\030\004 \001(\tB\004\342A\001\003\"d\n" + + "\tParameter\022\021\n" + + "\003key\030\001 \001(\tB\004\342A\001\002\022+\n" + + "\005value\030\002 \001(\0132\026.google.protobuf.ValueB\004\342A\001\001\022\027\n" + + "\tread_only\030\004 \001(\010B\004\342A\001\003\"\254\001\n" + + "\022CloudControlConfig\022S\n\r" + + "cloud_control\030\001 \001(\tB<\342A\001\002\372A5\n" + + "3cloudsecuritycompliance.googleapis.com/CloudControl\022A\n\n" + + "parameters\030\002" + + " \003(\0132\'.google.cloud.designcenter.v1.ParameterB\004\342A\001\001B\333\001\n" + + " com.google.cloud.designcenter.v1B\017Parameters" + + "ProtoP\001ZDcloud.google.com/go/designcente" + + "r/apiv1/designcenterpb;designcenterpb\252\002\034" + + "Google.Cloud.DesignCenter.V1\312\002\034Google\\Cl" + + "oud\\DesignCenter\\V1\352\002\037Google::Cloud::DesignCenter::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + }); + internal_static_google_cloud_designcenter_v1_ComponentVariable_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_designcenter_v1_ComponentVariable_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ComponentVariable_descriptor, + new java.lang.String[] { + "Variable", "ComponentUri", + }); + internal_static_google_cloud_designcenter_v1_SaaSRuntimeContext_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_designcenter_v1_SaaSRuntimeContext_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_SaaSRuntimeContext_descriptor, + new java.lang.String[] { + "SaasNames", + }); + internal_static_google_cloud_designcenter_v1_ConnectionParameters_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_designcenter_v1_ConnectionParameters_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ConnectionParameters_descriptor, + new java.lang.String[] { + "Connection", "Parameters", + }); + internal_static_google_cloud_designcenter_v1_ComponentParameterSchema_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_cloud_designcenter_v1_ComponentParameterSchema_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ComponentParameterSchema_descriptor, + new java.lang.String[] { + "Key", "DefaultValue", "IsRequired", "Type", + }); + internal_static_google_cloud_designcenter_v1_Parameter_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_cloud_designcenter_v1_Parameter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_Parameter_descriptor, + new java.lang.String[] { + "Key", "Value", "ReadOnly", + }); + internal_static_google_cloud_designcenter_v1_CloudControlConfig_descriptor = + getDescriptor().getMessageType(5); + internal_static_google_cloud_designcenter_v1_CloudControlConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_CloudControlConfig_descriptor, + new java.lang.String[] { + "CloudControl", "Parameters", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/Policy.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/Policy.java new file mode 100644 index 000000000000..8fd141b23e51 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/Policy.java @@ -0,0 +1,3841 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/best_practices.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * A Policy is a resource within an Application Template that refers to a Policy
+ * that you author outside of Application Design Center and attach to an
+ * application template.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.Policy} + */ +@com.google.protobuf.Generated +public final class Policy extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.Policy) + PolicyOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "Policy"); + } + + // Use Policy.newBuilder() to construct. + private Policy(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Policy() { + name_ = ""; + displayName_ = ""; + description_ = ""; + policyType_ = 0; + applyConditions_ = java.util.Collections.emptyList(); + cloudControlConfigs_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.BestPracticesResourcesProto + .internal_static_google_cloud_designcenter_v1_Policy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.BestPracticesResourcesProto + .internal_static_google_cloud_designcenter_v1_Policy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.Policy.class, + com.google.cloud.designcenter.v1.Policy.Builder.class); + } + + /** + * + * + *
+   * The policy type.
+   * 
+ * + * Protobuf enum {@code google.cloud.designcenter.v1.Policy.PolicyType} + */ + public enum PolicyType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default.
+     * 
+ * + * POLICY_TYPE_UNSPECIFIED = 0; + */ + POLICY_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Compliance framework policy.
+     * 
+ * + * COMPLIANCE_FRAMEWORK = 1; + */ + COMPLIANCE_FRAMEWORK(1), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "PolicyType"); + } + + /** + * + * + *
+     * Default.
+     * 
+ * + * POLICY_TYPE_UNSPECIFIED = 0; + */ + public static final int POLICY_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Compliance framework policy.
+     * 
+ * + * COMPLIANCE_FRAMEWORK = 1; + */ + public static final int COMPLIANCE_FRAMEWORK_VALUE = 1; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static PolicyType 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 PolicyType forNumber(int value) { + switch (value) { + case 0: + return POLICY_TYPE_UNSPECIFIED; + case 1: + return COMPLIANCE_FRAMEWORK; + 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 PolicyType findValueByNumber(int number) { + return PolicyType.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.designcenter.v1.Policy.getDescriptor().getEnumTypes().get(0); + } + + private static final PolicyType[] VALUES = values(); + + public static PolicyType 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 PolicyType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.designcenter.v1.Policy.PolicyType) + } + + private int bitField0_; + private int uriCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object uri_; + + public enum UriCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + POLICY_URI(5), + POLICY_REVISION_URI(6), + URI_NOT_SET(0); + private final int value; + + private UriCase(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 UriCase valueOf(int value) { + return forNumber(value); + } + + public static UriCase forNumber(int value) { + switch (value) { + case 5: + return POLICY_URI; + case 6: + return POLICY_REVISION_URI; + case 0: + return URI_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public UriCase getUriCase() { + return UriCase.forNumber(uriCase_); + } + + public static final int POLICY_URI_FIELD_NUMBER = 5; + + /** + * + * + *
+   * Optional. URI of the policy.
+   * 
+ * + * string policy_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the policyUri field is set. + */ + public boolean hasPolicyUri() { + return uriCase_ == 5; + } + + /** + * + * + *
+   * Optional. URI of the policy.
+   * 
+ * + * string policy_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The policyUri. + */ + public java.lang.String getPolicyUri() { + java.lang.Object ref = ""; + if (uriCase_ == 5) { + ref = uri_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (uriCase_ == 5) { + uri_ = s; + } + return s; + } + } + + /** + * + * + *
+   * Optional. URI of the policy.
+   * 
+ * + * string policy_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for policyUri. + */ + public com.google.protobuf.ByteString getPolicyUriBytes() { + java.lang.Object ref = ""; + if (uriCase_ == 5) { + ref = uri_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (uriCase_ == 5) { + uri_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int POLICY_REVISION_URI_FIELD_NUMBER = 6; + + /** + * + * + *
+   * Optional. URI of the policy revision.
+   * 
+ * + * string policy_revision_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the policyRevisionUri field is set. + */ + public boolean hasPolicyRevisionUri() { + return uriCase_ == 6; + } + + /** + * + * + *
+   * Optional. URI of the policy revision.
+   * 
+ * + * string policy_revision_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The policyRevisionUri. + */ + public java.lang.String getPolicyRevisionUri() { + java.lang.Object ref = ""; + if (uriCase_ == 6) { + ref = uri_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (uriCase_ == 6) { + uri_ = s; + } + return s; + } + } + + /** + * + * + *
+   * Optional. URI of the policy revision.
+   * 
+ * + * string policy_revision_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for policyRevisionUri. + */ + public com.google.protobuf.ByteString getPolicyRevisionUriBytes() { + java.lang.Object ref = ""; + if (uriCase_ == 6) { + ref = uri_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (uriCase_ == 6) { + uri_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Identifier. The policy name in the following format:
+   * `projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate/policies/$policy`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + + /** + * + * + *
+   * Identifier. The policy name in the following format:
+   * `projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate/policies/$policy`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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_ = ""; + + /** + * + * + *
+   * Optional. The policy display name.
+   * 
+ * + * string display_name = 2 [(.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. The policy display name.
+   * 
+ * + * string display_name = 2 [(.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 DESCRIPTION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
+   * Optional. The policy description.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The policy description.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int POLICY_TYPE_FIELD_NUMBER = 4; + private int policyType_ = 0; + + /** + * + * + *
+   * Required. The policy type.
+   * Policy type is used to determine the domain of the policy.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Policy.PolicyType policy_type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for policyType. + */ + @java.lang.Override + public int getPolicyTypeValue() { + return policyType_; + } + + /** + * + * + *
+   * Required. The policy type.
+   * Policy type is used to determine the domain of the policy.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Policy.PolicyType policy_type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The policyType. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.Policy.PolicyType getPolicyType() { + com.google.cloud.designcenter.v1.Policy.PolicyType result = + com.google.cloud.designcenter.v1.Policy.PolicyType.forNumber(policyType_); + return result == null + ? com.google.cloud.designcenter.v1.Policy.PolicyType.UNRECOGNIZED + : result; + } + + public static final int APPLY_CONDITIONS_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private java.util.List applyConditions_; + + /** + * + * + *
+   * Optional. Conditions for applying the policy. Condition accepts the
+   * `criticality` and `environment` parameters from the application template.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplyCondition apply_conditions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getApplyConditionsList() { + return applyConditions_; + } + + /** + * + * + *
+   * Optional. Conditions for applying the policy. Condition accepts the
+   * `criticality` and `environment` parameters from the application template.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplyCondition apply_conditions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getApplyConditionsOrBuilderList() { + return applyConditions_; + } + + /** + * + * + *
+   * Optional. Conditions for applying the policy. Condition accepts the
+   * `criticality` and `environment` parameters from the application template.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplyCondition apply_conditions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getApplyConditionsCount() { + return applyConditions_.size(); + } + + /** + * + * + *
+   * Optional. Conditions for applying the policy. Condition accepts the
+   * `criticality` and `environment` parameters from the application template.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplyCondition apply_conditions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ApplyCondition getApplyConditions(int index) { + return applyConditions_.get(index); + } + + /** + * + * + *
+   * Optional. Conditions for applying the policy. Condition accepts the
+   * `criticality` and `environment` parameters from the application template.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplyCondition apply_conditions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ApplyConditionOrBuilder getApplyConditionsOrBuilder( + int index) { + return applyConditions_.get(index); + } + + public static final int CREATE_TIME_FIELD_NUMBER = 8; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+   * Output only. The policy creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. The policy creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 8 [(.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 policy creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 8 [(.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 = 9; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
+   * Output only. The policy update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. The policy update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 9 [(.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 policy update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 9 [(.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 CLOUD_CONTROL_CONFIGS_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private java.util.List cloudControlConfigs_; + + /** + * + * + *
+   * Optional. Input only. Parameter values for the cloud controls of the
+   * policy's framework, grouped by cloud control. Only honored when framework
+   * parameter support is enabled for the project; ignored otherwise.
+   *
+   * The values are saved with the application template and are not returned on
+   * the policy. On update, they replace the saved values. If they are empty,
+   * the saved values are cleared if `cloud_control_configs` is named in the
+   * update mask. Otherwise, the saved values are kept, unless the policy's
+   * framework changes.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControlConfig cloud_control_configs = 10 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getCloudControlConfigsList() { + return cloudControlConfigs_; + } + + /** + * + * + *
+   * Optional. Input only. Parameter values for the cloud controls of the
+   * policy's framework, grouped by cloud control. Only honored when framework
+   * parameter support is enabled for the project; ignored otherwise.
+   *
+   * The values are saved with the application template and are not returned on
+   * the policy. On update, they replace the saved values. If they are empty,
+   * the saved values are cleared if `cloud_control_configs` is named in the
+   * update mask. Otherwise, the saved values are kept, unless the policy's
+   * framework changes.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControlConfig cloud_control_configs = 10 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getCloudControlConfigsOrBuilderList() { + return cloudControlConfigs_; + } + + /** + * + * + *
+   * Optional. Input only. Parameter values for the cloud controls of the
+   * policy's framework, grouped by cloud control. Only honored when framework
+   * parameter support is enabled for the project; ignored otherwise.
+   *
+   * The values are saved with the application template and are not returned on
+   * the policy. On update, they replace the saved values. If they are empty,
+   * the saved values are cleared if `cloud_control_configs` is named in the
+   * update mask. Otherwise, the saved values are kept, unless the policy's
+   * framework changes.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControlConfig cloud_control_configs = 10 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getCloudControlConfigsCount() { + return cloudControlConfigs_.size(); + } + + /** + * + * + *
+   * Optional. Input only. Parameter values for the cloud controls of the
+   * policy's framework, grouped by cloud control. Only honored when framework
+   * parameter support is enabled for the project; ignored otherwise.
+   *
+   * The values are saved with the application template and are not returned on
+   * the policy. On update, they replace the saved values. If they are empty,
+   * the saved values are cleared if `cloud_control_configs` is named in the
+   * update mask. Otherwise, the saved values are kept, unless the policy's
+   * framework changes.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControlConfig cloud_control_configs = 10 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.CloudControlConfig getCloudControlConfigs(int index) { + return cloudControlConfigs_.get(index); + } + + /** + * + * + *
+   * Optional. Input only. Parameter values for the cloud controls of the
+   * policy's framework, grouped by cloud control. Only honored when framework
+   * parameter support is enabled for the project; ignored otherwise.
+   *
+   * The values are saved with the application template and are not returned on
+   * the policy. On update, they replace the saved values. If they are empty,
+   * the saved values are cleared if `cloud_control_configs` is named in the
+   * update mask. Otherwise, the saved values are kept, unless the policy's
+   * framework changes.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControlConfig cloud_control_configs = 10 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.CloudControlConfigOrBuilder + getCloudControlConfigsOrBuilder(int index) { + return cloudControlConfigs_.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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, description_); + } + if (policyType_ + != com.google.cloud.designcenter.v1.Policy.PolicyType.POLICY_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(4, policyType_); + } + if (uriCase_ == 5) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, uri_); + } + if (uriCase_ == 6) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, uri_); + } + for (int i = 0; i < applyConditions_.size(); i++) { + output.writeMessage(7, applyConditions_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(8, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(9, getUpdateTime()); + } + for (int i = 0; i < cloudControlConfigs_.size(); i++) { + output.writeMessage(10, cloudControlConfigs_.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.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, description_); + } + if (policyType_ + != com.google.cloud.designcenter.v1.Policy.PolicyType.POLICY_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, policyType_); + } + if (uriCase_ == 5) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, uri_); + } + if (uriCase_ == 6) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, uri_); + } + for (int i = 0; i < applyConditions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, applyConditions_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getUpdateTime()); + } + for (int i = 0; i < cloudControlConfigs_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(10, cloudControlConfigs_.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.designcenter.v1.Policy)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.Policy other = (com.google.cloud.designcenter.v1.Policy) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (policyType_ != other.policyType_) return false; + if (!getApplyConditionsList().equals(other.getApplyConditionsList())) 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 (!getCloudControlConfigsList().equals(other.getCloudControlConfigsList())) return false; + if (!getUriCase().equals(other.getUriCase())) return false; + switch (uriCase_) { + case 5: + if (!getPolicyUri().equals(other.getPolicyUri())) return false; + break; + case 6: + if (!getPolicyRevisionUri().equals(other.getPolicyRevisionUri())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + 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) + POLICY_TYPE_FIELD_NUMBER; + hash = (53 * hash) + policyType_; + if (getApplyConditionsCount() > 0) { + hash = (37 * hash) + APPLY_CONDITIONS_FIELD_NUMBER; + hash = (53 * hash) + getApplyConditionsList().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 (getCloudControlConfigsCount() > 0) { + hash = (37 * hash) + CLOUD_CONTROL_CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + getCloudControlConfigsList().hashCode(); + } + switch (uriCase_) { + case 5: + hash = (37 * hash) + POLICY_URI_FIELD_NUMBER; + hash = (53 * hash) + getPolicyUri().hashCode(); + break; + case 6: + hash = (37 * hash) + POLICY_REVISION_URI_FIELD_NUMBER; + hash = (53 * hash) + getPolicyRevisionUri().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.Policy parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.Policy 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.designcenter.v1.Policy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.Policy parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.Policy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.Policy parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.Policy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.Policy parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.Policy parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.Policy parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.Policy parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.Policy parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.Policy 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A Policy is a resource within an Application Template that refers to a Policy
+   * that you author outside of Application Design Center and attach to an
+   * application template.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.Policy} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.Policy) + com.google.cloud.designcenter.v1.PolicyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.BestPracticesResourcesProto + .internal_static_google_cloud_designcenter_v1_Policy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.BestPracticesResourcesProto + .internal_static_google_cloud_designcenter_v1_Policy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.Policy.class, + com.google.cloud.designcenter.v1.Policy.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.Policy.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetApplyConditionsFieldBuilder(); + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + internalGetCloudControlConfigsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + description_ = ""; + policyType_ = 0; + if (applyConditionsBuilder_ == null) { + applyConditions_ = java.util.Collections.emptyList(); + } else { + applyConditions_ = null; + applyConditionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000040); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + if (cloudControlConfigsBuilder_ == null) { + cloudControlConfigs_ = java.util.Collections.emptyList(); + } else { + cloudControlConfigs_ = null; + cloudControlConfigsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000200); + uriCase_ = 0; + uri_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.BestPracticesResourcesProto + .internal_static_google_cloud_designcenter_v1_Policy_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.Policy getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.Policy.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.Policy build() { + com.google.cloud.designcenter.v1.Policy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.Policy buildPartial() { + com.google.cloud.designcenter.v1.Policy result = + new com.google.cloud.designcenter.v1.Policy(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.designcenter.v1.Policy result) { + if (applyConditionsBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0)) { + applyConditions_ = java.util.Collections.unmodifiableList(applyConditions_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.applyConditions_ = applyConditions_; + } else { + result.applyConditions_ = applyConditionsBuilder_.build(); + } + if (cloudControlConfigsBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0)) { + cloudControlConfigs_ = java.util.Collections.unmodifiableList(cloudControlConfigs_); + bitField0_ = (bitField0_ & ~0x00000200); + } + result.cloudControlConfigs_ = cloudControlConfigs_; + } else { + result.cloudControlConfigs_ = cloudControlConfigsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.designcenter.v1.Policy result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.policyType_ = policyType_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000080) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.designcenter.v1.Policy result) { + result.uriCase_ = uriCase_; + result.uri_ = this.uri_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.Policy) { + return mergeFrom((com.google.cloud.designcenter.v1.Policy) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.Policy other) { + if (other == com.google.cloud.designcenter.v1.Policy.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.policyType_ != 0) { + setPolicyTypeValue(other.getPolicyTypeValue()); + } + if (applyConditionsBuilder_ == null) { + if (!other.applyConditions_.isEmpty()) { + if (applyConditions_.isEmpty()) { + applyConditions_ = other.applyConditions_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureApplyConditionsIsMutable(); + applyConditions_.addAll(other.applyConditions_); + } + onChanged(); + } + } else { + if (!other.applyConditions_.isEmpty()) { + if (applyConditionsBuilder_.isEmpty()) { + applyConditionsBuilder_.dispose(); + applyConditionsBuilder_ = null; + applyConditions_ = other.applyConditions_; + bitField0_ = (bitField0_ & ~0x00000040); + applyConditionsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetApplyConditionsFieldBuilder() + : null; + } else { + applyConditionsBuilder_.addAllMessages(other.applyConditions_); + } + } + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (cloudControlConfigsBuilder_ == null) { + if (!other.cloudControlConfigs_.isEmpty()) { + if (cloudControlConfigs_.isEmpty()) { + cloudControlConfigs_ = other.cloudControlConfigs_; + bitField0_ = (bitField0_ & ~0x00000200); + } else { + ensureCloudControlConfigsIsMutable(); + cloudControlConfigs_.addAll(other.cloudControlConfigs_); + } + onChanged(); + } + } else { + if (!other.cloudControlConfigs_.isEmpty()) { + if (cloudControlConfigsBuilder_.isEmpty()) { + cloudControlConfigsBuilder_.dispose(); + cloudControlConfigsBuilder_ = null; + cloudControlConfigs_ = other.cloudControlConfigs_; + bitField0_ = (bitField0_ & ~0x00000200); + cloudControlConfigsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetCloudControlConfigsFieldBuilder() + : null; + } else { + cloudControlConfigsBuilder_.addAllMessages(other.cloudControlConfigs_); + } + } + } + switch (other.getUriCase()) { + case POLICY_URI: + { + uriCase_ = 5; + uri_ = other.uri_; + onChanged(); + break; + } + case POLICY_REVISION_URI: + { + uriCase_ = 6; + uri_ = other.uri_; + onChanged(); + break; + } + case URI_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 18 + case 26: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 26 + case 32: + { + policyType_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 32 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + uriCase_ = 5; + uri_ = s; + break; + } // case 42 + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + uriCase_ = 6; + uri_ = s; + break; + } // case 50 + case 58: + { + com.google.cloud.designcenter.v1.ApplyCondition m = + input.readMessage( + com.google.cloud.designcenter.v1.ApplyCondition.parser(), + extensionRegistry); + if (applyConditionsBuilder_ == null) { + ensureApplyConditionsIsMutable(); + applyConditions_.add(m); + } else { + applyConditionsBuilder_.addMessage(m); + } + break; + } // case 58 + case 66: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: + { + com.google.cloud.designcenter.v1.CloudControlConfig m = + input.readMessage( + com.google.cloud.designcenter.v1.CloudControlConfig.parser(), + extensionRegistry); + if (cloudControlConfigsBuilder_ == null) { + ensureCloudControlConfigsIsMutable(); + cloudControlConfigs_.add(m); + } else { + cloudControlConfigsBuilder_.addMessage(m); + } + break; + } // case 82 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int uriCase_ = 0; + private java.lang.Object uri_; + + public UriCase getUriCase() { + return UriCase.forNumber(uriCase_); + } + + public Builder clearUri() { + uriCase_ = 0; + uri_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
+     * Optional. URI of the policy.
+     * 
+ * + * string policy_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the policyUri field is set. + */ + @java.lang.Override + public boolean hasPolicyUri() { + return uriCase_ == 5; + } + + /** + * + * + *
+     * Optional. URI of the policy.
+     * 
+ * + * string policy_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The policyUri. + */ + @java.lang.Override + public java.lang.String getPolicyUri() { + java.lang.Object ref = ""; + if (uriCase_ == 5) { + ref = uri_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (uriCase_ == 5) { + uri_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. URI of the policy.
+     * 
+ * + * string policy_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for policyUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPolicyUriBytes() { + java.lang.Object ref = ""; + if (uriCase_ == 5) { + ref = uri_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (uriCase_ == 5) { + uri_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. URI of the policy.
+     * 
+ * + * string policy_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The policyUri to set. + * @return This builder for chaining. + */ + public Builder setPolicyUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uriCase_ = 5; + uri_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. URI of the policy.
+     * 
+ * + * string policy_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPolicyUri() { + if (uriCase_ == 5) { + uriCase_ = 0; + uri_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. URI of the policy.
+     * 
+ * + * string policy_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for policyUri to set. + * @return This builder for chaining. + */ + public Builder setPolicyUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uriCase_ = 5; + uri_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. URI of the policy revision.
+     * 
+ * + * string policy_revision_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the policyRevisionUri field is set. + */ + @java.lang.Override + public boolean hasPolicyRevisionUri() { + return uriCase_ == 6; + } + + /** + * + * + *
+     * Optional. URI of the policy revision.
+     * 
+ * + * string policy_revision_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The policyRevisionUri. + */ + @java.lang.Override + public java.lang.String getPolicyRevisionUri() { + java.lang.Object ref = ""; + if (uriCase_ == 6) { + ref = uri_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (uriCase_ == 6) { + uri_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. URI of the policy revision.
+     * 
+ * + * string policy_revision_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for policyRevisionUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPolicyRevisionUriBytes() { + java.lang.Object ref = ""; + if (uriCase_ == 6) { + ref = uri_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (uriCase_ == 6) { + uri_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. URI of the policy revision.
+     * 
+ * + * string policy_revision_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The policyRevisionUri to set. + * @return This builder for chaining. + */ + public Builder setPolicyRevisionUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uriCase_ = 6; + uri_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. URI of the policy revision.
+     * 
+ * + * string policy_revision_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPolicyRevisionUri() { + if (uriCase_ == 6) { + uriCase_ = 0; + uri_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. URI of the policy revision.
+     * 
+ * + * string policy_revision_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for policyRevisionUri to set. + * @return This builder for chaining. + */ + public Builder setPolicyRevisionUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uriCase_ = 6; + uri_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Identifier. The policy name in the following format:
+     * `projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate/policies/$policy`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.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; + } + } + + /** + * + * + *
+     * Identifier. The policy name in the following format:
+     * `projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate/policies/$policy`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + + /** + * + * + *
+     * Identifier. The policy name in the following format:
+     * `projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate/policies/$policy`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier. The policy name in the following format:
+     * `projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate/policies/$policy`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier. The policy name in the following format:
+     * `projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate/policies/$policy`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
+     * Optional. The policy display name.
+     * 
+ * + * string display_name = 2 [(.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. The policy display name.
+     * 
+ * + * string display_name = 2 [(.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. The policy display name.
+     * 
+ * + * string display_name = 2 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The policy display name.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The policy display name.
+     * 
+ * + * string display_name = 2 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
+     * Optional. The policy description.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The policy description.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The policy description.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The policy description.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The policy description.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private int policyType_ = 0; + + /** + * + * + *
+     * Required. The policy type.
+     * Policy type is used to determine the domain of the policy.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Policy.PolicyType policy_type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for policyType. + */ + @java.lang.Override + public int getPolicyTypeValue() { + return policyType_; + } + + /** + * + * + *
+     * Required. The policy type.
+     * Policy type is used to determine the domain of the policy.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Policy.PolicyType policy_type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for policyType to set. + * @return This builder for chaining. + */ + public Builder setPolicyTypeValue(int value) { + policyType_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The policy type.
+     * Policy type is used to determine the domain of the policy.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Policy.PolicyType policy_type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The policyType. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.Policy.PolicyType getPolicyType() { + com.google.cloud.designcenter.v1.Policy.PolicyType result = + com.google.cloud.designcenter.v1.Policy.PolicyType.forNumber(policyType_); + return result == null + ? com.google.cloud.designcenter.v1.Policy.PolicyType.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Required. The policy type.
+     * Policy type is used to determine the domain of the policy.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Policy.PolicyType policy_type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The policyType to set. + * @return This builder for chaining. + */ + public Builder setPolicyType(com.google.cloud.designcenter.v1.Policy.PolicyType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + policyType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The policy type.
+     * Policy type is used to determine the domain of the policy.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Policy.PolicyType policy_type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearPolicyType() { + bitField0_ = (bitField0_ & ~0x00000020); + policyType_ = 0; + onChanged(); + return this; + } + + private java.util.List applyConditions_ = + java.util.Collections.emptyList(); + + private void ensureApplyConditionsIsMutable() { + if (!((bitField0_ & 0x00000040) != 0)) { + applyConditions_ = + new java.util.ArrayList( + applyConditions_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ApplyCondition, + com.google.cloud.designcenter.v1.ApplyCondition.Builder, + com.google.cloud.designcenter.v1.ApplyConditionOrBuilder> + applyConditionsBuilder_; + + /** + * + * + *
+     * Optional. Conditions for applying the policy. Condition accepts the
+     * `criticality` and `environment` parameters from the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplyCondition apply_conditions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getApplyConditionsList() { + if (applyConditionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(applyConditions_); + } else { + return applyConditionsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. Conditions for applying the policy. Condition accepts the
+     * `criticality` and `environment` parameters from the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplyCondition apply_conditions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getApplyConditionsCount() { + if (applyConditionsBuilder_ == null) { + return applyConditions_.size(); + } else { + return applyConditionsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. Conditions for applying the policy. Condition accepts the
+     * `criticality` and `environment` parameters from the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplyCondition apply_conditions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ApplyCondition getApplyConditions(int index) { + if (applyConditionsBuilder_ == null) { + return applyConditions_.get(index); + } else { + return applyConditionsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. Conditions for applying the policy. Condition accepts the
+     * `criticality` and `environment` parameters from the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplyCondition apply_conditions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setApplyConditions( + int index, com.google.cloud.designcenter.v1.ApplyCondition value) { + if (applyConditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplyConditionsIsMutable(); + applyConditions_.set(index, value); + onChanged(); + } else { + applyConditionsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Conditions for applying the policy. Condition accepts the
+     * `criticality` and `environment` parameters from the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplyCondition apply_conditions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setApplyConditions( + int index, com.google.cloud.designcenter.v1.ApplyCondition.Builder builderForValue) { + if (applyConditionsBuilder_ == null) { + ensureApplyConditionsIsMutable(); + applyConditions_.set(index, builderForValue.build()); + onChanged(); + } else { + applyConditionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Conditions for applying the policy. Condition accepts the
+     * `criticality` and `environment` parameters from the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplyCondition apply_conditions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addApplyConditions(com.google.cloud.designcenter.v1.ApplyCondition value) { + if (applyConditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplyConditionsIsMutable(); + applyConditions_.add(value); + onChanged(); + } else { + applyConditionsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. Conditions for applying the policy. Condition accepts the
+     * `criticality` and `environment` parameters from the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplyCondition apply_conditions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addApplyConditions( + int index, com.google.cloud.designcenter.v1.ApplyCondition value) { + if (applyConditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplyConditionsIsMutable(); + applyConditions_.add(index, value); + onChanged(); + } else { + applyConditionsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Conditions for applying the policy. Condition accepts the
+     * `criticality` and `environment` parameters from the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplyCondition apply_conditions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addApplyConditions( + com.google.cloud.designcenter.v1.ApplyCondition.Builder builderForValue) { + if (applyConditionsBuilder_ == null) { + ensureApplyConditionsIsMutable(); + applyConditions_.add(builderForValue.build()); + onChanged(); + } else { + applyConditionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Conditions for applying the policy. Condition accepts the
+     * `criticality` and `environment` parameters from the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplyCondition apply_conditions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addApplyConditions( + int index, com.google.cloud.designcenter.v1.ApplyCondition.Builder builderForValue) { + if (applyConditionsBuilder_ == null) { + ensureApplyConditionsIsMutable(); + applyConditions_.add(index, builderForValue.build()); + onChanged(); + } else { + applyConditionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Conditions for applying the policy. Condition accepts the
+     * `criticality` and `environment` parameters from the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplyCondition apply_conditions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllApplyConditions( + java.lang.Iterable values) { + if (applyConditionsBuilder_ == null) { + ensureApplyConditionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, applyConditions_); + onChanged(); + } else { + applyConditionsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. Conditions for applying the policy. Condition accepts the
+     * `criticality` and `environment` parameters from the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplyCondition apply_conditions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearApplyConditions() { + if (applyConditionsBuilder_ == null) { + applyConditions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + applyConditionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Conditions for applying the policy. Condition accepts the
+     * `criticality` and `environment` parameters from the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplyCondition apply_conditions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeApplyConditions(int index) { + if (applyConditionsBuilder_ == null) { + ensureApplyConditionsIsMutable(); + applyConditions_.remove(index); + onChanged(); + } else { + applyConditionsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. Conditions for applying the policy. Condition accepts the
+     * `criticality` and `environment` parameters from the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplyCondition apply_conditions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ApplyCondition.Builder getApplyConditionsBuilder( + int index) { + return internalGetApplyConditionsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. Conditions for applying the policy. Condition accepts the
+     * `criticality` and `environment` parameters from the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplyCondition apply_conditions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ApplyConditionOrBuilder getApplyConditionsOrBuilder( + int index) { + if (applyConditionsBuilder_ == null) { + return applyConditions_.get(index); + } else { + return applyConditionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. Conditions for applying the policy. Condition accepts the
+     * `criticality` and `environment` parameters from the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplyCondition apply_conditions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getApplyConditionsOrBuilderList() { + if (applyConditionsBuilder_ != null) { + return applyConditionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(applyConditions_); + } + } + + /** + * + * + *
+     * Optional. Conditions for applying the policy. Condition accepts the
+     * `criticality` and `environment` parameters from the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplyCondition apply_conditions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ApplyCondition.Builder addApplyConditionsBuilder() { + return internalGetApplyConditionsFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.ApplyCondition.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Conditions for applying the policy. Condition accepts the
+     * `criticality` and `environment` parameters from the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplyCondition apply_conditions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ApplyCondition.Builder addApplyConditionsBuilder( + int index) { + return internalGetApplyConditionsFieldBuilder() + .addBuilder(index, com.google.cloud.designcenter.v1.ApplyCondition.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Conditions for applying the policy. Condition accepts the
+     * `criticality` and `environment` parameters from the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplyCondition apply_conditions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getApplyConditionsBuilderList() { + return internalGetApplyConditionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ApplyCondition, + com.google.cloud.designcenter.v1.ApplyCondition.Builder, + com.google.cloud.designcenter.v1.ApplyConditionOrBuilder> + internalGetApplyConditionsFieldBuilder() { + if (applyConditionsBuilder_ == null) { + applyConditionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ApplyCondition, + com.google.cloud.designcenter.v1.ApplyCondition.Builder, + com.google.cloud.designcenter.v1.ApplyConditionOrBuilder>( + applyConditions_, + ((bitField0_ & 0x00000040) != 0), + getParentForChildren(), + isClean()); + applyConditions_ = null; + } + return applyConditionsBuilder_; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
+     * Output only. The policy creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+     * Output only. The policy creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 8 [(.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 policy creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 8 [(.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_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The policy creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 8 [(.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_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The policy creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The policy creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000080); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The policy creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The policy creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 8 [(.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 policy creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + 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.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
+     * Output only. The policy update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
+     * Output only. The policy update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 9 [(.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 policy update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 9 [(.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_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The policy update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 9 [(.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_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The policy update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The policy update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000100); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The policy update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The policy update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 9 [(.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 policy update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private java.util.List + cloudControlConfigs_ = java.util.Collections.emptyList(); + + private void ensureCloudControlConfigsIsMutable() { + if (!((bitField0_ & 0x00000200) != 0)) { + cloudControlConfigs_ = + new java.util.ArrayList( + cloudControlConfigs_); + bitField0_ |= 0x00000200; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.CloudControlConfig, + com.google.cloud.designcenter.v1.CloudControlConfig.Builder, + com.google.cloud.designcenter.v1.CloudControlConfigOrBuilder> + cloudControlConfigsBuilder_; + + /** + * + * + *
+     * Optional. Input only. Parameter values for the cloud controls of the
+     * policy's framework, grouped by cloud control. Only honored when framework
+     * parameter support is enabled for the project; ignored otherwise.
+     *
+     * The values are saved with the application template and are not returned on
+     * the policy. On update, they replace the saved values. If they are empty,
+     * the saved values are cleared if `cloud_control_configs` is named in the
+     * update mask. Otherwise, the saved values are kept, unless the policy's
+     * framework changes.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControlConfig cloud_control_configs = 10 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getCloudControlConfigsList() { + if (cloudControlConfigsBuilder_ == null) { + return java.util.Collections.unmodifiableList(cloudControlConfigs_); + } else { + return cloudControlConfigsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. Input only. Parameter values for the cloud controls of the
+     * policy's framework, grouped by cloud control. Only honored when framework
+     * parameter support is enabled for the project; ignored otherwise.
+     *
+     * The values are saved with the application template and are not returned on
+     * the policy. On update, they replace the saved values. If they are empty,
+     * the saved values are cleared if `cloud_control_configs` is named in the
+     * update mask. Otherwise, the saved values are kept, unless the policy's
+     * framework changes.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControlConfig cloud_control_configs = 10 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getCloudControlConfigsCount() { + if (cloudControlConfigsBuilder_ == null) { + return cloudControlConfigs_.size(); + } else { + return cloudControlConfigsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. Input only. Parameter values for the cloud controls of the
+     * policy's framework, grouped by cloud control. Only honored when framework
+     * parameter support is enabled for the project; ignored otherwise.
+     *
+     * The values are saved with the application template and are not returned on
+     * the policy. On update, they replace the saved values. If they are empty,
+     * the saved values are cleared if `cloud_control_configs` is named in the
+     * update mask. Otherwise, the saved values are kept, unless the policy's
+     * framework changes.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControlConfig cloud_control_configs = 10 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.CloudControlConfig getCloudControlConfigs(int index) { + if (cloudControlConfigsBuilder_ == null) { + return cloudControlConfigs_.get(index); + } else { + return cloudControlConfigsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. Input only. Parameter values for the cloud controls of the
+     * policy's framework, grouped by cloud control. Only honored when framework
+     * parameter support is enabled for the project; ignored otherwise.
+     *
+     * The values are saved with the application template and are not returned on
+     * the policy. On update, they replace the saved values. If they are empty,
+     * the saved values are cleared if `cloud_control_configs` is named in the
+     * update mask. Otherwise, the saved values are kept, unless the policy's
+     * framework changes.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControlConfig cloud_control_configs = 10 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCloudControlConfigs( + int index, com.google.cloud.designcenter.v1.CloudControlConfig value) { + if (cloudControlConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCloudControlConfigsIsMutable(); + cloudControlConfigs_.set(index, value); + onChanged(); + } else { + cloudControlConfigsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Input only. Parameter values for the cloud controls of the
+     * policy's framework, grouped by cloud control. Only honored when framework
+     * parameter support is enabled for the project; ignored otherwise.
+     *
+     * The values are saved with the application template and are not returned on
+     * the policy. On update, they replace the saved values. If they are empty,
+     * the saved values are cleared if `cloud_control_configs` is named in the
+     * update mask. Otherwise, the saved values are kept, unless the policy's
+     * framework changes.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControlConfig cloud_control_configs = 10 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCloudControlConfigs( + int index, com.google.cloud.designcenter.v1.CloudControlConfig.Builder builderForValue) { + if (cloudControlConfigsBuilder_ == null) { + ensureCloudControlConfigsIsMutable(); + cloudControlConfigs_.set(index, builderForValue.build()); + onChanged(); + } else { + cloudControlConfigsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Input only. Parameter values for the cloud controls of the
+     * policy's framework, grouped by cloud control. Only honored when framework
+     * parameter support is enabled for the project; ignored otherwise.
+     *
+     * The values are saved with the application template and are not returned on
+     * the policy. On update, they replace the saved values. If they are empty,
+     * the saved values are cleared if `cloud_control_configs` is named in the
+     * update mask. Otherwise, the saved values are kept, unless the policy's
+     * framework changes.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControlConfig cloud_control_configs = 10 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCloudControlConfigs( + com.google.cloud.designcenter.v1.CloudControlConfig value) { + if (cloudControlConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCloudControlConfigsIsMutable(); + cloudControlConfigs_.add(value); + onChanged(); + } else { + cloudControlConfigsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. Input only. Parameter values for the cloud controls of the
+     * policy's framework, grouped by cloud control. Only honored when framework
+     * parameter support is enabled for the project; ignored otherwise.
+     *
+     * The values are saved with the application template and are not returned on
+     * the policy. On update, they replace the saved values. If they are empty,
+     * the saved values are cleared if `cloud_control_configs` is named in the
+     * update mask. Otherwise, the saved values are kept, unless the policy's
+     * framework changes.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControlConfig cloud_control_configs = 10 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCloudControlConfigs( + int index, com.google.cloud.designcenter.v1.CloudControlConfig value) { + if (cloudControlConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCloudControlConfigsIsMutable(); + cloudControlConfigs_.add(index, value); + onChanged(); + } else { + cloudControlConfigsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Input only. Parameter values for the cloud controls of the
+     * policy's framework, grouped by cloud control. Only honored when framework
+     * parameter support is enabled for the project; ignored otherwise.
+     *
+     * The values are saved with the application template and are not returned on
+     * the policy. On update, they replace the saved values. If they are empty,
+     * the saved values are cleared if `cloud_control_configs` is named in the
+     * update mask. Otherwise, the saved values are kept, unless the policy's
+     * framework changes.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControlConfig cloud_control_configs = 10 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCloudControlConfigs( + com.google.cloud.designcenter.v1.CloudControlConfig.Builder builderForValue) { + if (cloudControlConfigsBuilder_ == null) { + ensureCloudControlConfigsIsMutable(); + cloudControlConfigs_.add(builderForValue.build()); + onChanged(); + } else { + cloudControlConfigsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Input only. Parameter values for the cloud controls of the
+     * policy's framework, grouped by cloud control. Only honored when framework
+     * parameter support is enabled for the project; ignored otherwise.
+     *
+     * The values are saved with the application template and are not returned on
+     * the policy. On update, they replace the saved values. If they are empty,
+     * the saved values are cleared if `cloud_control_configs` is named in the
+     * update mask. Otherwise, the saved values are kept, unless the policy's
+     * framework changes.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControlConfig cloud_control_configs = 10 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCloudControlConfigs( + int index, com.google.cloud.designcenter.v1.CloudControlConfig.Builder builderForValue) { + if (cloudControlConfigsBuilder_ == null) { + ensureCloudControlConfigsIsMutable(); + cloudControlConfigs_.add(index, builderForValue.build()); + onChanged(); + } else { + cloudControlConfigsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Input only. Parameter values for the cloud controls of the
+     * policy's framework, grouped by cloud control. Only honored when framework
+     * parameter support is enabled for the project; ignored otherwise.
+     *
+     * The values are saved with the application template and are not returned on
+     * the policy. On update, they replace the saved values. If they are empty,
+     * the saved values are cleared if `cloud_control_configs` is named in the
+     * update mask. Otherwise, the saved values are kept, unless the policy's
+     * framework changes.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControlConfig cloud_control_configs = 10 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllCloudControlConfigs( + java.lang.Iterable values) { + if (cloudControlConfigsBuilder_ == null) { + ensureCloudControlConfigsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, cloudControlConfigs_); + onChanged(); + } else { + cloudControlConfigsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. Input only. Parameter values for the cloud controls of the
+     * policy's framework, grouped by cloud control. Only honored when framework
+     * parameter support is enabled for the project; ignored otherwise.
+     *
+     * The values are saved with the application template and are not returned on
+     * the policy. On update, they replace the saved values. If they are empty,
+     * the saved values are cleared if `cloud_control_configs` is named in the
+     * update mask. Otherwise, the saved values are kept, unless the policy's
+     * framework changes.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControlConfig cloud_control_configs = 10 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCloudControlConfigs() { + if (cloudControlConfigsBuilder_ == null) { + cloudControlConfigs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + } else { + cloudControlConfigsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Input only. Parameter values for the cloud controls of the
+     * policy's framework, grouped by cloud control. Only honored when framework
+     * parameter support is enabled for the project; ignored otherwise.
+     *
+     * The values are saved with the application template and are not returned on
+     * the policy. On update, they replace the saved values. If they are empty,
+     * the saved values are cleared if `cloud_control_configs` is named in the
+     * update mask. Otherwise, the saved values are kept, unless the policy's
+     * framework changes.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControlConfig cloud_control_configs = 10 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeCloudControlConfigs(int index) { + if (cloudControlConfigsBuilder_ == null) { + ensureCloudControlConfigsIsMutable(); + cloudControlConfigs_.remove(index); + onChanged(); + } else { + cloudControlConfigsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. Input only. Parameter values for the cloud controls of the
+     * policy's framework, grouped by cloud control. Only honored when framework
+     * parameter support is enabled for the project; ignored otherwise.
+     *
+     * The values are saved with the application template and are not returned on
+     * the policy. On update, they replace the saved values. If they are empty,
+     * the saved values are cleared if `cloud_control_configs` is named in the
+     * update mask. Otherwise, the saved values are kept, unless the policy's
+     * framework changes.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControlConfig cloud_control_configs = 10 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.CloudControlConfig.Builder + getCloudControlConfigsBuilder(int index) { + return internalGetCloudControlConfigsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. Input only. Parameter values for the cloud controls of the
+     * policy's framework, grouped by cloud control. Only honored when framework
+     * parameter support is enabled for the project; ignored otherwise.
+     *
+     * The values are saved with the application template and are not returned on
+     * the policy. On update, they replace the saved values. If they are empty,
+     * the saved values are cleared if `cloud_control_configs` is named in the
+     * update mask. Otherwise, the saved values are kept, unless the policy's
+     * framework changes.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControlConfig cloud_control_configs = 10 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.CloudControlConfigOrBuilder + getCloudControlConfigsOrBuilder(int index) { + if (cloudControlConfigsBuilder_ == null) { + return cloudControlConfigs_.get(index); + } else { + return cloudControlConfigsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. Input only. Parameter values for the cloud controls of the
+     * policy's framework, grouped by cloud control. Only honored when framework
+     * parameter support is enabled for the project; ignored otherwise.
+     *
+     * The values are saved with the application template and are not returned on
+     * the policy. On update, they replace the saved values. If they are empty,
+     * the saved values are cleared if `cloud_control_configs` is named in the
+     * update mask. Otherwise, the saved values are kept, unless the policy's
+     * framework changes.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControlConfig cloud_control_configs = 10 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getCloudControlConfigsOrBuilderList() { + if (cloudControlConfigsBuilder_ != null) { + return cloudControlConfigsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(cloudControlConfigs_); + } + } + + /** + * + * + *
+     * Optional. Input only. Parameter values for the cloud controls of the
+     * policy's framework, grouped by cloud control. Only honored when framework
+     * parameter support is enabled for the project; ignored otherwise.
+     *
+     * The values are saved with the application template and are not returned on
+     * the policy. On update, they replace the saved values. If they are empty,
+     * the saved values are cleared if `cloud_control_configs` is named in the
+     * update mask. Otherwise, the saved values are kept, unless the policy's
+     * framework changes.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControlConfig cloud_control_configs = 10 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.CloudControlConfig.Builder + addCloudControlConfigsBuilder() { + return internalGetCloudControlConfigsFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.CloudControlConfig.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Input only. Parameter values for the cloud controls of the
+     * policy's framework, grouped by cloud control. Only honored when framework
+     * parameter support is enabled for the project; ignored otherwise.
+     *
+     * The values are saved with the application template and are not returned on
+     * the policy. On update, they replace the saved values. If they are empty,
+     * the saved values are cleared if `cloud_control_configs` is named in the
+     * update mask. Otherwise, the saved values are kept, unless the policy's
+     * framework changes.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControlConfig cloud_control_configs = 10 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.CloudControlConfig.Builder + addCloudControlConfigsBuilder(int index) { + return internalGetCloudControlConfigsFieldBuilder() + .addBuilder( + index, com.google.cloud.designcenter.v1.CloudControlConfig.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Input only. Parameter values for the cloud controls of the
+     * policy's framework, grouped by cloud control. Only honored when framework
+     * parameter support is enabled for the project; ignored otherwise.
+     *
+     * The values are saved with the application template and are not returned on
+     * the policy. On update, they replace the saved values. If they are empty,
+     * the saved values are cleared if `cloud_control_configs` is named in the
+     * update mask. Otherwise, the saved values are kept, unless the policy's
+     * framework changes.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControlConfig cloud_control_configs = 10 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getCloudControlConfigsBuilderList() { + return internalGetCloudControlConfigsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.CloudControlConfig, + com.google.cloud.designcenter.v1.CloudControlConfig.Builder, + com.google.cloud.designcenter.v1.CloudControlConfigOrBuilder> + internalGetCloudControlConfigsFieldBuilder() { + if (cloudControlConfigsBuilder_ == null) { + cloudControlConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.CloudControlConfig, + com.google.cloud.designcenter.v1.CloudControlConfig.Builder, + com.google.cloud.designcenter.v1.CloudControlConfigOrBuilder>( + cloudControlConfigs_, + ((bitField0_ & 0x00000200) != 0), + getParentForChildren(), + isClean()); + cloudControlConfigs_ = null; + } + return cloudControlConfigsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.Policy) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.Policy) + private static final com.google.cloud.designcenter.v1.Policy DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.Policy(); + } + + public static com.google.cloud.designcenter.v1.Policy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Policy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.Policy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/PolicyName.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/PolicyName.java new file mode 100644 index 000000000000..3f8adfbb35a0 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/PolicyName.java @@ -0,0 +1,301 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.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; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked +@Generated("by gapic-generator-java") +public class PolicyName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_SPACE_APPLICATION_TEMPLATE_POLICY = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/policies/{policy}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String space; + private final String applicationTemplate; + private final String policy; + + @Deprecated + protected PolicyName() { + project = null; + location = null; + space = null; + applicationTemplate = null; + policy = null; + } + + private PolicyName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + space = Preconditions.checkNotNull(builder.getSpace()); + applicationTemplate = Preconditions.checkNotNull(builder.getApplicationTemplate()); + policy = Preconditions.checkNotNull(builder.getPolicy()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getSpace() { + return space; + } + + public String getApplicationTemplate() { + return applicationTemplate; + } + + public String getPolicy() { + return policy; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static PolicyName of( + String project, String location, String space, String applicationTemplate, String policy) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setSpace(space) + .setApplicationTemplate(applicationTemplate) + .setPolicy(policy) + .build(); + } + + public static String format( + String project, String location, String space, String applicationTemplate, String policy) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setSpace(space) + .setApplicationTemplate(applicationTemplate) + .setPolicy(policy) + .build() + .toString(); + } + + public static @Nullable PolicyName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_SPACE_APPLICATION_TEMPLATE_POLICY.validatedMatch( + formattedString, "PolicyName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("space"), + matchMap.get("application_template"), + matchMap.get("policy")); + } + + 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<@Nullable PolicyName> values) { + List list = new ArrayList<>(values.size()); + for (PolicyName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_SPACE_APPLICATION_TEMPLATE_POLICY.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 (space != null) { + fieldMapBuilder.put("space", space); + } + if (applicationTemplate != null) { + fieldMapBuilder.put("application_template", applicationTemplate); + } + if (policy != null) { + fieldMapBuilder.put("policy", policy); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_SPACE_APPLICATION_TEMPLATE_POLICY.instantiate( + "project", + project, + "location", + location, + "space", + space, + "application_template", + applicationTemplate, + "policy", + policy); + } + + @Override + public boolean equals(@Nullable Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + PolicyName that = ((PolicyName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.space, that.space) + && Objects.equals(this.applicationTemplate, that.applicationTemplate) + && Objects.equals(this.policy, that.policy); + } + 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(space); + h *= 1000003; + h ^= Objects.hashCode(applicationTemplate); + h *= 1000003; + h ^= Objects.hashCode(policy); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/policies/{policy}. + */ + public static class Builder { + private String project; + private String location; + private String space; + private String applicationTemplate; + private String policy; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getSpace() { + return space; + } + + public String getApplicationTemplate() { + return applicationTemplate; + } + + public String getPolicy() { + return policy; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setSpace(String space) { + this.space = space; + return this; + } + + public Builder setApplicationTemplate(String applicationTemplate) { + this.applicationTemplate = applicationTemplate; + return this; + } + + public Builder setPolicy(String policy) { + this.policy = policy; + return this; + } + + private Builder(PolicyName policyName) { + this.project = policyName.project; + this.location = policyName.location; + this.space = policyName.space; + this.applicationTemplate = policyName.applicationTemplate; + this.policy = policyName.policy; + } + + public PolicyName build() { + return new PolicyName(this); + } + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/PolicyOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/PolicyOrBuilder.java new file mode 100644 index 000000000000..b1bdae01dfff --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/PolicyOrBuilder.java @@ -0,0 +1,478 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/best_practices.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface PolicyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.Policy) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. URI of the policy.
+   * 
+ * + * string policy_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the policyUri field is set. + */ + boolean hasPolicyUri(); + + /** + * + * + *
+   * Optional. URI of the policy.
+   * 
+ * + * string policy_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The policyUri. + */ + java.lang.String getPolicyUri(); + + /** + * + * + *
+   * Optional. URI of the policy.
+   * 
+ * + * string policy_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for policyUri. + */ + com.google.protobuf.ByteString getPolicyUriBytes(); + + /** + * + * + *
+   * Optional. URI of the policy revision.
+   * 
+ * + * string policy_revision_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the policyRevisionUri field is set. + */ + boolean hasPolicyRevisionUri(); + + /** + * + * + *
+   * Optional. URI of the policy revision.
+   * 
+ * + * string policy_revision_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The policyRevisionUri. + */ + java.lang.String getPolicyRevisionUri(); + + /** + * + * + *
+   * Optional. URI of the policy revision.
+   * 
+ * + * string policy_revision_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for policyRevisionUri. + */ + com.google.protobuf.ByteString getPolicyRevisionUriBytes(); + + /** + * + * + *
+   * Identifier. The policy name in the following format:
+   * `projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate/policies/$policy`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Identifier. The policy name in the following format:
+   * `projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate/policies/$policy`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. The policy display name.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
+   * Optional. The policy display name.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Optional. The policy description.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
+   * Optional. The policy description.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Required. The policy type.
+   * Policy type is used to determine the domain of the policy.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Policy.PolicyType policy_type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for policyType. + */ + int getPolicyTypeValue(); + + /** + * + * + *
+   * Required. The policy type.
+   * Policy type is used to determine the domain of the policy.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Policy.PolicyType policy_type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The policyType. + */ + com.google.cloud.designcenter.v1.Policy.PolicyType getPolicyType(); + + /** + * + * + *
+   * Optional. Conditions for applying the policy. Condition accepts the
+   * `criticality` and `environment` parameters from the application template.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplyCondition apply_conditions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getApplyConditionsList(); + + /** + * + * + *
+   * Optional. Conditions for applying the policy. Condition accepts the
+   * `criticality` and `environment` parameters from the application template.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplyCondition apply_conditions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.ApplyCondition getApplyConditions(int index); + + /** + * + * + *
+   * Optional. Conditions for applying the policy. Condition accepts the
+   * `criticality` and `environment` parameters from the application template.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplyCondition apply_conditions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getApplyConditionsCount(); + + /** + * + * + *
+   * Optional. Conditions for applying the policy. Condition accepts the
+   * `criticality` and `environment` parameters from the application template.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplyCondition apply_conditions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getApplyConditionsOrBuilderList(); + + /** + * + * + *
+   * Optional. Conditions for applying the policy. Condition accepts the
+   * `criticality` and `environment` parameters from the application template.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplyCondition apply_conditions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.ApplyConditionOrBuilder getApplyConditionsOrBuilder(int index); + + /** + * + * + *
+   * Output only. The policy creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
+   * Output only. The policy creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
+   * Output only. The policy creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The policy update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
+   * Output only. The policy update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
+   * Output only. The policy update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Optional. Input only. Parameter values for the cloud controls of the
+   * policy's framework, grouped by cloud control. Only honored when framework
+   * parameter support is enabled for the project; ignored otherwise.
+   *
+   * The values are saved with the application template and are not returned on
+   * the policy. On update, they replace the saved values. If they are empty,
+   * the saved values are cleared if `cloud_control_configs` is named in the
+   * update mask. Otherwise, the saved values are kept, unless the policy's
+   * framework changes.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControlConfig cloud_control_configs = 10 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getCloudControlConfigsList(); + + /** + * + * + *
+   * Optional. Input only. Parameter values for the cloud controls of the
+   * policy's framework, grouped by cloud control. Only honored when framework
+   * parameter support is enabled for the project; ignored otherwise.
+   *
+   * The values are saved with the application template and are not returned on
+   * the policy. On update, they replace the saved values. If they are empty,
+   * the saved values are cleared if `cloud_control_configs` is named in the
+   * update mask. Otherwise, the saved values are kept, unless the policy's
+   * framework changes.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControlConfig cloud_control_configs = 10 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.CloudControlConfig getCloudControlConfigs(int index); + + /** + * + * + *
+   * Optional. Input only. Parameter values for the cloud controls of the
+   * policy's framework, grouped by cloud control. Only honored when framework
+   * parameter support is enabled for the project; ignored otherwise.
+   *
+   * The values are saved with the application template and are not returned on
+   * the policy. On update, they replace the saved values. If they are empty,
+   * the saved values are cleared if `cloud_control_configs` is named in the
+   * update mask. Otherwise, the saved values are kept, unless the policy's
+   * framework changes.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControlConfig cloud_control_configs = 10 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + */ + int getCloudControlConfigsCount(); + + /** + * + * + *
+   * Optional. Input only. Parameter values for the cloud controls of the
+   * policy's framework, grouped by cloud control. Only honored when framework
+   * parameter support is enabled for the project; ignored otherwise.
+   *
+   * The values are saved with the application template and are not returned on
+   * the policy. On update, they replace the saved values. If they are empty,
+   * the saved values are cleared if `cloud_control_configs` is named in the
+   * update mask. Otherwise, the saved values are kept, unless the policy's
+   * framework changes.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControlConfig cloud_control_configs = 10 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getCloudControlConfigsOrBuilderList(); + + /** + * + * + *
+   * Optional. Input only. Parameter values for the cloud controls of the
+   * policy's framework, grouped by cloud control. Only honored when framework
+   * parameter support is enabled for the project; ignored otherwise.
+   *
+   * The values are saved with the application template and are not returned on
+   * the policy. On update, they replace the saved values. If they are empty,
+   * the saved values are cleared if `cloud_control_configs` is named in the
+   * update mask. Otherwise, the saved values are kept, unless the policy's
+   * framework changes.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControlConfig cloud_control_configs = 10 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.CloudControlConfigOrBuilder getCloudControlConfigsOrBuilder( + int index); + + com.google.cloud.designcenter.v1.Policy.UriCase getUriCase(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/PreviewApplicationRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/PreviewApplicationRequest.java new file mode 100644 index 000000000000..3e6cf7e4e823 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/PreviewApplicationRequest.java @@ -0,0 +1,1129 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for previewing an application.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.PreviewApplicationRequest} + */ +@com.google.protobuf.Generated +public final class PreviewApplicationRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.PreviewApplicationRequest) + PreviewApplicationRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "PreviewApplicationRequest"); + } + + // Use PreviewApplicationRequest.newBuilder() to construct. + private PreviewApplicationRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private PreviewApplicationRequest() { + name_ = ""; + workerPool_ = ""; + serviceAccount_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_PreviewApplicationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_PreviewApplicationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.PreviewApplicationRequest.class, + com.google.cloud.designcenter.v1.PreviewApplicationRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The application name in the following format:
+   * `projects/$project/locations/$location/spaces/$space/applications/$application`
+   * 
+ * + * + * 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 application name in the following format:
+   * `projects/$project/locations/$location/spaces/$space/applications/$application`
+   * 
+ * + * + * 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 WORKER_POOL_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object workerPool_ = ""; + + /** + * + * + *
+   * Optional. The user-specified Worker Pool resource in which the Cloud Build
+   * job will execute. Format:
+   * projects/{project}/locations/{location}/workerPools/{workerPoolId} If this
+   * flag is omitted, the worker pool already defined on the application will be
+   * used. If no worker pool is defined on the application, the default Cloud
+   * Build worker pool is used. The worker pool must exist in the same region as
+   * the application.
+   * 
+ * + * string worker_pool = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The workerPool. + */ + @java.lang.Override + public java.lang.String getWorkerPool() { + java.lang.Object ref = workerPool_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workerPool_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The user-specified Worker Pool resource in which the Cloud Build
+   * job will execute. Format:
+   * projects/{project}/locations/{location}/workerPools/{workerPoolId} If this
+   * flag is omitted, the worker pool already defined on the application will be
+   * used. If no worker pool is defined on the application, the default Cloud
+   * Build worker pool is used. The worker pool must exist in the same region as
+   * the application.
+   * 
+ * + * string worker_pool = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for workerPool. + */ + @java.lang.Override + public com.google.protobuf.ByteString getWorkerPoolBytes() { + java.lang.Object ref = workerPool_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + workerPool_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object serviceAccount_ = ""; + + /** + * + * + *
+   * Optional. The email address of the service account to use for this preview
+   * operation.
+   *
+   * - If provided, this service account will be used to execute the preview
+   * process, taking precedence over any service_account specified on the
+   * Application resource.
+   * - The caller must have the 'iam.serviceAccounts.actAs' permission on this
+   * service account.
+   * - If this field is omitted, the system will use the 'service_account'
+   * defined within the Application resource.
+   * - We recommend that you provide a service account here or on the
+   * Application resource. If you don't provide a service account, the preview
+   * will fail.
+   * Format: projects/{PROJECT}/serviceAccounts/{EMAIL_ADDRESS}
+   * 
+ * + * string service_account = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The serviceAccount. + */ + @java.lang.Override + public java.lang.String getServiceAccount() { + java.lang.Object ref = serviceAccount_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccount_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The email address of the service account to use for this preview
+   * operation.
+   *
+   * - If provided, this service account will be used to execute the preview
+   * process, taking precedence over any service_account specified on the
+   * Application resource.
+   * - The caller must have the 'iam.serviceAccounts.actAs' permission on this
+   * service account.
+   * - If this field is omitted, the system will use the 'service_account'
+   * defined within the Application resource.
+   * - We recommend that you provide a service account here or on the
+   * Application resource. If you don't provide a service account, the preview
+   * will fail.
+   * Format: projects/{PROJECT}/serviceAccounts/{EMAIL_ADDRESS}
+   * 
+ * + * string service_account = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for serviceAccount. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServiceAccountBytes() { + java.lang.Object ref = serviceAccount_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAccount_ = 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workerPool_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, workerPool_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(serviceAccount_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, serviceAccount_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workerPool_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, workerPool_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(serviceAccount_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, serviceAccount_); + } + 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.designcenter.v1.PreviewApplicationRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.PreviewApplicationRequest other = + (com.google.cloud.designcenter.v1.PreviewApplicationRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getWorkerPool().equals(other.getWorkerPool())) return false; + if (!getServiceAccount().equals(other.getServiceAccount())) 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) + WORKER_POOL_FIELD_NUMBER; + hash = (53 * hash) + getWorkerPool().hashCode(); + hash = (37 * hash) + SERVICE_ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getServiceAccount().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.PreviewApplicationRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.PreviewApplicationRequest 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.designcenter.v1.PreviewApplicationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.PreviewApplicationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.PreviewApplicationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.PreviewApplicationRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.PreviewApplicationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.PreviewApplicationRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.PreviewApplicationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.PreviewApplicationRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.PreviewApplicationRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.PreviewApplicationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.PreviewApplicationRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for previewing an application.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.PreviewApplicationRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.PreviewApplicationRequest) + com.google.cloud.designcenter.v1.PreviewApplicationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_PreviewApplicationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_PreviewApplicationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.PreviewApplicationRequest.class, + com.google.cloud.designcenter.v1.PreviewApplicationRequest.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.PreviewApplicationRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + workerPool_ = ""; + serviceAccount_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_PreviewApplicationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.PreviewApplicationRequest getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.PreviewApplicationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.PreviewApplicationRequest build() { + com.google.cloud.designcenter.v1.PreviewApplicationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.PreviewApplicationRequest buildPartial() { + com.google.cloud.designcenter.v1.PreviewApplicationRequest result = + new com.google.cloud.designcenter.v1.PreviewApplicationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.PreviewApplicationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.workerPool_ = workerPool_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.serviceAccount_ = serviceAccount_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.PreviewApplicationRequest) { + return mergeFrom((com.google.cloud.designcenter.v1.PreviewApplicationRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.PreviewApplicationRequest other) { + if (other == com.google.cloud.designcenter.v1.PreviewApplicationRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getWorkerPool().isEmpty()) { + workerPool_ = other.workerPool_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getServiceAccount().isEmpty()) { + serviceAccount_ = other.serviceAccount_; + 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 18: + { + workerPool_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + serviceAccount_ = 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 application name in the following format:
+     * `projects/$project/locations/$location/spaces/$space/applications/$application`
+     * 
+ * + * + * 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 application name in the following format:
+     * `projects/$project/locations/$location/spaces/$space/applications/$application`
+     * 
+ * + * + * 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 application name in the following format:
+     * `projects/$project/locations/$location/spaces/$space/applications/$application`
+     * 
+ * + * + * 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 application name in the following format:
+     * `projects/$project/locations/$location/spaces/$space/applications/$application`
+     * 
+ * + * + * 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 application name in the following format:
+     * `projects/$project/locations/$location/spaces/$space/applications/$application`
+     * 
+ * + * + * 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 workerPool_ = ""; + + /** + * + * + *
+     * Optional. The user-specified Worker Pool resource in which the Cloud Build
+     * job will execute. Format:
+     * projects/{project}/locations/{location}/workerPools/{workerPoolId} If this
+     * flag is omitted, the worker pool already defined on the application will be
+     * used. If no worker pool is defined on the application, the default Cloud
+     * Build worker pool is used. The worker pool must exist in the same region as
+     * the application.
+     * 
+ * + * string worker_pool = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The workerPool. + */ + public java.lang.String getWorkerPool() { + java.lang.Object ref = workerPool_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workerPool_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The user-specified Worker Pool resource in which the Cloud Build
+     * job will execute. Format:
+     * projects/{project}/locations/{location}/workerPools/{workerPoolId} If this
+     * flag is omitted, the worker pool already defined on the application will be
+     * used. If no worker pool is defined on the application, the default Cloud
+     * Build worker pool is used. The worker pool must exist in the same region as
+     * the application.
+     * 
+ * + * string worker_pool = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for workerPool. + */ + public com.google.protobuf.ByteString getWorkerPoolBytes() { + java.lang.Object ref = workerPool_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + workerPool_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The user-specified Worker Pool resource in which the Cloud Build
+     * job will execute. Format:
+     * projects/{project}/locations/{location}/workerPools/{workerPoolId} If this
+     * flag is omitted, the worker pool already defined on the application will be
+     * used. If no worker pool is defined on the application, the default Cloud
+     * Build worker pool is used. The worker pool must exist in the same region as
+     * the application.
+     * 
+ * + * string worker_pool = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The workerPool to set. + * @return This builder for chaining. + */ + public Builder setWorkerPool(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + workerPool_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The user-specified Worker Pool resource in which the Cloud Build
+     * job will execute. Format:
+     * projects/{project}/locations/{location}/workerPools/{workerPoolId} If this
+     * flag is omitted, the worker pool already defined on the application will be
+     * used. If no worker pool is defined on the application, the default Cloud
+     * Build worker pool is used. The worker pool must exist in the same region as
+     * the application.
+     * 
+ * + * string worker_pool = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearWorkerPool() { + workerPool_ = getDefaultInstance().getWorkerPool(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The user-specified Worker Pool resource in which the Cloud Build
+     * job will execute. Format:
+     * projects/{project}/locations/{location}/workerPools/{workerPoolId} If this
+     * flag is omitted, the worker pool already defined on the application will be
+     * used. If no worker pool is defined on the application, the default Cloud
+     * Build worker pool is used. The worker pool must exist in the same region as
+     * the application.
+     * 
+ * + * string worker_pool = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for workerPool to set. + * @return This builder for chaining. + */ + public Builder setWorkerPoolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + workerPool_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object serviceAccount_ = ""; + + /** + * + * + *
+     * Optional. The email address of the service account to use for this preview
+     * operation.
+     *
+     * - If provided, this service account will be used to execute the preview
+     * process, taking precedence over any service_account specified on the
+     * Application resource.
+     * - The caller must have the 'iam.serviceAccounts.actAs' permission on this
+     * service account.
+     * - If this field is omitted, the system will use the 'service_account'
+     * defined within the Application resource.
+     * - We recommend that you provide a service account here or on the
+     * Application resource. If you don't provide a service account, the preview
+     * will fail.
+     * Format: projects/{PROJECT}/serviceAccounts/{EMAIL_ADDRESS}
+     * 
+ * + * string service_account = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The serviceAccount. + */ + public java.lang.String getServiceAccount() { + java.lang.Object ref = serviceAccount_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccount_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The email address of the service account to use for this preview
+     * operation.
+     *
+     * - If provided, this service account will be used to execute the preview
+     * process, taking precedence over any service_account specified on the
+     * Application resource.
+     * - The caller must have the 'iam.serviceAccounts.actAs' permission on this
+     * service account.
+     * - If this field is omitted, the system will use the 'service_account'
+     * defined within the Application resource.
+     * - We recommend that you provide a service account here or on the
+     * Application resource. If you don't provide a service account, the preview
+     * will fail.
+     * Format: projects/{PROJECT}/serviceAccounts/{EMAIL_ADDRESS}
+     * 
+ * + * string service_account = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for serviceAccount. + */ + public com.google.protobuf.ByteString getServiceAccountBytes() { + java.lang.Object ref = serviceAccount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The email address of the service account to use for this preview
+     * operation.
+     *
+     * - If provided, this service account will be used to execute the preview
+     * process, taking precedence over any service_account specified on the
+     * Application resource.
+     * - The caller must have the 'iam.serviceAccounts.actAs' permission on this
+     * service account.
+     * - If this field is omitted, the system will use the 'service_account'
+     * defined within the Application resource.
+     * - We recommend that you provide a service account here or on the
+     * Application resource. If you don't provide a service account, the preview
+     * will fail.
+     * Format: projects/{PROJECT}/serviceAccounts/{EMAIL_ADDRESS}
+     * 
+ * + * string service_account = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The serviceAccount to set. + * @return This builder for chaining. + */ + public Builder setServiceAccount(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + serviceAccount_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The email address of the service account to use for this preview
+     * operation.
+     *
+     * - If provided, this service account will be used to execute the preview
+     * process, taking precedence over any service_account specified on the
+     * Application resource.
+     * - The caller must have the 'iam.serviceAccounts.actAs' permission on this
+     * service account.
+     * - If this field is omitted, the system will use the 'service_account'
+     * defined within the Application resource.
+     * - We recommend that you provide a service account here or on the
+     * Application resource. If you don't provide a service account, the preview
+     * will fail.
+     * Format: projects/{PROJECT}/serviceAccounts/{EMAIL_ADDRESS}
+     * 
+ * + * string service_account = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearServiceAccount() { + serviceAccount_ = getDefaultInstance().getServiceAccount(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The email address of the service account to use for this preview
+     * operation.
+     *
+     * - If provided, this service account will be used to execute the preview
+     * process, taking precedence over any service_account specified on the
+     * Application resource.
+     * - The caller must have the 'iam.serviceAccounts.actAs' permission on this
+     * service account.
+     * - If this field is omitted, the system will use the 'service_account'
+     * defined within the Application resource.
+     * - We recommend that you provide a service account here or on the
+     * Application resource. If you don't provide a service account, the preview
+     * will fail.
+     * Format: projects/{PROJECT}/serviceAccounts/{EMAIL_ADDRESS}
+     * 
+ * + * string service_account = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for serviceAccount to set. + * @return This builder for chaining. + */ + public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceAccount_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.PreviewApplicationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.PreviewApplicationRequest) + private static final com.google.cloud.designcenter.v1.PreviewApplicationRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.PreviewApplicationRequest(); + } + + public static com.google.cloud.designcenter.v1.PreviewApplicationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PreviewApplicationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.PreviewApplicationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/PreviewApplicationRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/PreviewApplicationRequestOrBuilder.java new file mode 100644 index 000000000000..bbbb3f416287 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/PreviewApplicationRequestOrBuilder.java @@ -0,0 +1,150 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface PreviewApplicationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.PreviewApplicationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The application name in the following format:
+   * `projects/$project/locations/$location/spaces/$space/applications/$application`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The application name in the following format:
+   * `projects/$project/locations/$location/spaces/$space/applications/$application`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. The user-specified Worker Pool resource in which the Cloud Build
+   * job will execute. Format:
+   * projects/{project}/locations/{location}/workerPools/{workerPoolId} If this
+   * flag is omitted, the worker pool already defined on the application will be
+   * used. If no worker pool is defined on the application, the default Cloud
+   * Build worker pool is used. The worker pool must exist in the same region as
+   * the application.
+   * 
+ * + * string worker_pool = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The workerPool. + */ + java.lang.String getWorkerPool(); + + /** + * + * + *
+   * Optional. The user-specified Worker Pool resource in which the Cloud Build
+   * job will execute. Format:
+   * projects/{project}/locations/{location}/workerPools/{workerPoolId} If this
+   * flag is omitted, the worker pool already defined on the application will be
+   * used. If no worker pool is defined on the application, the default Cloud
+   * Build worker pool is used. The worker pool must exist in the same region as
+   * the application.
+   * 
+ * + * string worker_pool = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for workerPool. + */ + com.google.protobuf.ByteString getWorkerPoolBytes(); + + /** + * + * + *
+   * Optional. The email address of the service account to use for this preview
+   * operation.
+   *
+   * - If provided, this service account will be used to execute the preview
+   * process, taking precedence over any service_account specified on the
+   * Application resource.
+   * - The caller must have the 'iam.serviceAccounts.actAs' permission on this
+   * service account.
+   * - If this field is omitted, the system will use the 'service_account'
+   * defined within the Application resource.
+   * - We recommend that you provide a service account here or on the
+   * Application resource. If you don't provide a service account, the preview
+   * will fail.
+   * Format: projects/{PROJECT}/serviceAccounts/{EMAIL_ADDRESS}
+   * 
+ * + * string service_account = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The serviceAccount. + */ + java.lang.String getServiceAccount(); + + /** + * + * + *
+   * Optional. The email address of the service account to use for this preview
+   * operation.
+   *
+   * - If provided, this service account will be used to execute the preview
+   * process, taking precedence over any service_account specified on the
+   * Application resource.
+   * - The caller must have the 'iam.serviceAccounts.actAs' permission on this
+   * service account.
+   * - If this field is omitted, the system will use the 'service_account'
+   * defined within the Application resource.
+   * - We recommend that you provide a service account here or on the
+   * Application resource. If you don't provide a service account, the preview
+   * will fail.
+   * Format: projects/{PROJECT}/serviceAccounts/{EMAIL_ADDRESS}
+   * 
+ * + * string service_account = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for serviceAccount. + */ + com.google.protobuf.ByteString getServiceAccountBytes(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/PreviewApplicationResponse.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/PreviewApplicationResponse.java new file mode 100644 index 000000000000..df6a83df9554 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/PreviewApplicationResponse.java @@ -0,0 +1,979 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Response for PreviewApplication.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.PreviewApplicationResponse} + */ +@com.google.protobuf.Generated +public final class PreviewApplicationResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.PreviewApplicationResponse) + PreviewApplicationResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "PreviewApplicationResponse"); + } + + // Use PreviewApplicationResponse.newBuilder() to construct. + private PreviewApplicationResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private PreviewApplicationResponse() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_PreviewApplicationResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_PreviewApplicationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.PreviewApplicationResponse.class, + com.google.cloud.designcenter.v1.PreviewApplicationResponse.Builder.class); + } + + private int bitField0_; + public static final int PREVIEW_FIELD_NUMBER = 1; + private com.google.cloud.config.v1.Preview preview_; + + /** + * + * + *
+   * Infrastructure Manager preview.
+   * 
+ * + * .google.cloud.config.v1.Preview preview = 1; + * + * @return Whether the preview field is set. + */ + @java.lang.Override + public boolean hasPreview() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Infrastructure Manager preview.
+   * 
+ * + * .google.cloud.config.v1.Preview preview = 1; + * + * @return The preview. + */ + @java.lang.Override + public com.google.cloud.config.v1.Preview getPreview() { + return preview_ == null ? com.google.cloud.config.v1.Preview.getDefaultInstance() : preview_; + } + + /** + * + * + *
+   * Infrastructure Manager preview.
+   * 
+ * + * .google.cloud.config.v1.Preview preview = 1; + */ + @java.lang.Override + public com.google.cloud.config.v1.PreviewOrBuilder getPreviewOrBuilder() { + return preview_ == null ? com.google.cloud.config.v1.Preview.getDefaultInstance() : preview_; + } + + public static final int ASSESSMENT_REPORT_FIELD_NUMBER = 2; + private com.google.cloud.designcenter.v1.AssessmentReport assessmentReport_; + + /** + * + * + *
+   * Best practices by Design Assessment report
+   * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 2; + * + * @return Whether the assessmentReport field is set. + */ + @java.lang.Override + public boolean hasAssessmentReport() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Best practices by Design Assessment report
+   * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 2; + * + * @return The assessmentReport. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.AssessmentReport getAssessmentReport() { + return assessmentReport_ == null + ? com.google.cloud.designcenter.v1.AssessmentReport.getDefaultInstance() + : assessmentReport_; + } + + /** + * + * + *
+   * Best practices by Design Assessment report
+   * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 2; + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.AssessmentReportOrBuilder getAssessmentReportOrBuilder() { + return assessmentReport_ == null + ? com.google.cloud.designcenter.v1.AssessmentReport.getDefaultInstance() + : assessmentReport_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getPreview()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getAssessmentReport()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPreview()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAssessmentReport()); + } + 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.designcenter.v1.PreviewApplicationResponse)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.PreviewApplicationResponse other = + (com.google.cloud.designcenter.v1.PreviewApplicationResponse) obj; + + if (hasPreview() != other.hasPreview()) return false; + if (hasPreview()) { + if (!getPreview().equals(other.getPreview())) return false; + } + if (hasAssessmentReport() != other.hasAssessmentReport()) return false; + if (hasAssessmentReport()) { + if (!getAssessmentReport().equals(other.getAssessmentReport())) 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 (hasPreview()) { + hash = (37 * hash) + PREVIEW_FIELD_NUMBER; + hash = (53 * hash) + getPreview().hashCode(); + } + if (hasAssessmentReport()) { + hash = (37 * hash) + ASSESSMENT_REPORT_FIELD_NUMBER; + hash = (53 * hash) + getAssessmentReport().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.PreviewApplicationResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.PreviewApplicationResponse 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.designcenter.v1.PreviewApplicationResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.PreviewApplicationResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.PreviewApplicationResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.PreviewApplicationResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.PreviewApplicationResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.PreviewApplicationResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.PreviewApplicationResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.PreviewApplicationResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.PreviewApplicationResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.PreviewApplicationResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.PreviewApplicationResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response for PreviewApplication.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.PreviewApplicationResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.PreviewApplicationResponse) + com.google.cloud.designcenter.v1.PreviewApplicationResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_PreviewApplicationResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_PreviewApplicationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.PreviewApplicationResponse.class, + com.google.cloud.designcenter.v1.PreviewApplicationResponse.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.PreviewApplicationResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetPreviewFieldBuilder(); + internalGetAssessmentReportFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + preview_ = null; + if (previewBuilder_ != null) { + previewBuilder_.dispose(); + previewBuilder_ = null; + } + assessmentReport_ = null; + if (assessmentReportBuilder_ != null) { + assessmentReportBuilder_.dispose(); + assessmentReportBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_PreviewApplicationResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.PreviewApplicationResponse getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.PreviewApplicationResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.PreviewApplicationResponse build() { + com.google.cloud.designcenter.v1.PreviewApplicationResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.PreviewApplicationResponse buildPartial() { + com.google.cloud.designcenter.v1.PreviewApplicationResponse result = + new com.google.cloud.designcenter.v1.PreviewApplicationResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.PreviewApplicationResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.preview_ = previewBuilder_ == null ? preview_ : previewBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.assessmentReport_ = + assessmentReportBuilder_ == null ? assessmentReport_ : assessmentReportBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.PreviewApplicationResponse) { + return mergeFrom((com.google.cloud.designcenter.v1.PreviewApplicationResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.PreviewApplicationResponse other) { + if (other == com.google.cloud.designcenter.v1.PreviewApplicationResponse.getDefaultInstance()) + return this; + if (other.hasPreview()) { + mergePreview(other.getPreview()); + } + if (other.hasAssessmentReport()) { + mergeAssessmentReport(other.getAssessmentReport()); + } + 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(internalGetPreviewFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetAssessmentReportFieldBuilder().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.config.v1.Preview preview_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.config.v1.Preview, + com.google.cloud.config.v1.Preview.Builder, + com.google.cloud.config.v1.PreviewOrBuilder> + previewBuilder_; + + /** + * + * + *
+     * Infrastructure Manager preview.
+     * 
+ * + * .google.cloud.config.v1.Preview preview = 1; + * + * @return Whether the preview field is set. + */ + public boolean hasPreview() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Infrastructure Manager preview.
+     * 
+ * + * .google.cloud.config.v1.Preview preview = 1; + * + * @return The preview. + */ + public com.google.cloud.config.v1.Preview getPreview() { + if (previewBuilder_ == null) { + return preview_ == null + ? com.google.cloud.config.v1.Preview.getDefaultInstance() + : preview_; + } else { + return previewBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Infrastructure Manager preview.
+     * 
+ * + * .google.cloud.config.v1.Preview preview = 1; + */ + public Builder setPreview(com.google.cloud.config.v1.Preview value) { + if (previewBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + preview_ = value; + } else { + previewBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Infrastructure Manager preview.
+     * 
+ * + * .google.cloud.config.v1.Preview preview = 1; + */ + public Builder setPreview(com.google.cloud.config.v1.Preview.Builder builderForValue) { + if (previewBuilder_ == null) { + preview_ = builderForValue.build(); + } else { + previewBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Infrastructure Manager preview.
+     * 
+ * + * .google.cloud.config.v1.Preview preview = 1; + */ + public Builder mergePreview(com.google.cloud.config.v1.Preview value) { + if (previewBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && preview_ != null + && preview_ != com.google.cloud.config.v1.Preview.getDefaultInstance()) { + getPreviewBuilder().mergeFrom(value); + } else { + preview_ = value; + } + } else { + previewBuilder_.mergeFrom(value); + } + if (preview_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Infrastructure Manager preview.
+     * 
+ * + * .google.cloud.config.v1.Preview preview = 1; + */ + public Builder clearPreview() { + bitField0_ = (bitField0_ & ~0x00000001); + preview_ = null; + if (previewBuilder_ != null) { + previewBuilder_.dispose(); + previewBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Infrastructure Manager preview.
+     * 
+ * + * .google.cloud.config.v1.Preview preview = 1; + */ + public com.google.cloud.config.v1.Preview.Builder getPreviewBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetPreviewFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Infrastructure Manager preview.
+     * 
+ * + * .google.cloud.config.v1.Preview preview = 1; + */ + public com.google.cloud.config.v1.PreviewOrBuilder getPreviewOrBuilder() { + if (previewBuilder_ != null) { + return previewBuilder_.getMessageOrBuilder(); + } else { + return preview_ == null + ? com.google.cloud.config.v1.Preview.getDefaultInstance() + : preview_; + } + } + + /** + * + * + *
+     * Infrastructure Manager preview.
+     * 
+ * + * .google.cloud.config.v1.Preview preview = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.config.v1.Preview, + com.google.cloud.config.v1.Preview.Builder, + com.google.cloud.config.v1.PreviewOrBuilder> + internalGetPreviewFieldBuilder() { + if (previewBuilder_ == null) { + previewBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.config.v1.Preview, + com.google.cloud.config.v1.Preview.Builder, + com.google.cloud.config.v1.PreviewOrBuilder>( + getPreview(), getParentForChildren(), isClean()); + preview_ = null; + } + return previewBuilder_; + } + + private com.google.cloud.designcenter.v1.AssessmentReport assessmentReport_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.AssessmentReport, + com.google.cloud.designcenter.v1.AssessmentReport.Builder, + com.google.cloud.designcenter.v1.AssessmentReportOrBuilder> + assessmentReportBuilder_; + + /** + * + * + *
+     * Best practices by Design Assessment report
+     * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 2; + * + * @return Whether the assessmentReport field is set. + */ + public boolean hasAssessmentReport() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Best practices by Design Assessment report
+     * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 2; + * + * @return The assessmentReport. + */ + public com.google.cloud.designcenter.v1.AssessmentReport getAssessmentReport() { + if (assessmentReportBuilder_ == null) { + return assessmentReport_ == null + ? com.google.cloud.designcenter.v1.AssessmentReport.getDefaultInstance() + : assessmentReport_; + } else { + return assessmentReportBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Best practices by Design Assessment report
+     * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 2; + */ + public Builder setAssessmentReport(com.google.cloud.designcenter.v1.AssessmentReport value) { + if (assessmentReportBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + assessmentReport_ = value; + } else { + assessmentReportBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Best practices by Design Assessment report
+     * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 2; + */ + public Builder setAssessmentReport( + com.google.cloud.designcenter.v1.AssessmentReport.Builder builderForValue) { + if (assessmentReportBuilder_ == null) { + assessmentReport_ = builderForValue.build(); + } else { + assessmentReportBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Best practices by Design Assessment report
+     * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 2; + */ + public Builder mergeAssessmentReport(com.google.cloud.designcenter.v1.AssessmentReport value) { + if (assessmentReportBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && assessmentReport_ != null + && assessmentReport_ + != com.google.cloud.designcenter.v1.AssessmentReport.getDefaultInstance()) { + getAssessmentReportBuilder().mergeFrom(value); + } else { + assessmentReport_ = value; + } + } else { + assessmentReportBuilder_.mergeFrom(value); + } + if (assessmentReport_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Best practices by Design Assessment report
+     * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 2; + */ + public Builder clearAssessmentReport() { + bitField0_ = (bitField0_ & ~0x00000002); + assessmentReport_ = null; + if (assessmentReportBuilder_ != null) { + assessmentReportBuilder_.dispose(); + assessmentReportBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Best practices by Design Assessment report
+     * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 2; + */ + public com.google.cloud.designcenter.v1.AssessmentReport.Builder getAssessmentReportBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetAssessmentReportFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Best practices by Design Assessment report
+     * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 2; + */ + public com.google.cloud.designcenter.v1.AssessmentReportOrBuilder + getAssessmentReportOrBuilder() { + if (assessmentReportBuilder_ != null) { + return assessmentReportBuilder_.getMessageOrBuilder(); + } else { + return assessmentReport_ == null + ? com.google.cloud.designcenter.v1.AssessmentReport.getDefaultInstance() + : assessmentReport_; + } + } + + /** + * + * + *
+     * Best practices by Design Assessment report
+     * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.AssessmentReport, + com.google.cloud.designcenter.v1.AssessmentReport.Builder, + com.google.cloud.designcenter.v1.AssessmentReportOrBuilder> + internalGetAssessmentReportFieldBuilder() { + if (assessmentReportBuilder_ == null) { + assessmentReportBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.AssessmentReport, + com.google.cloud.designcenter.v1.AssessmentReport.Builder, + com.google.cloud.designcenter.v1.AssessmentReportOrBuilder>( + getAssessmentReport(), getParentForChildren(), isClean()); + assessmentReport_ = null; + } + return assessmentReportBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.PreviewApplicationResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.PreviewApplicationResponse) + private static final com.google.cloud.designcenter.v1.PreviewApplicationResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.PreviewApplicationResponse(); + } + + public static com.google.cloud.designcenter.v1.PreviewApplicationResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PreviewApplicationResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.PreviewApplicationResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/PreviewApplicationResponseOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/PreviewApplicationResponseOrBuilder.java new file mode 100644 index 000000000000..0eae82c484c0 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/PreviewApplicationResponseOrBuilder.java @@ -0,0 +1,102 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface PreviewApplicationResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.PreviewApplicationResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Infrastructure Manager preview.
+   * 
+ * + * .google.cloud.config.v1.Preview preview = 1; + * + * @return Whether the preview field is set. + */ + boolean hasPreview(); + + /** + * + * + *
+   * Infrastructure Manager preview.
+   * 
+ * + * .google.cloud.config.v1.Preview preview = 1; + * + * @return The preview. + */ + com.google.cloud.config.v1.Preview getPreview(); + + /** + * + * + *
+   * Infrastructure Manager preview.
+   * 
+ * + * .google.cloud.config.v1.Preview preview = 1; + */ + com.google.cloud.config.v1.PreviewOrBuilder getPreviewOrBuilder(); + + /** + * + * + *
+   * Best practices by Design Assessment report
+   * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 2; + * + * @return Whether the assessmentReport field is set. + */ + boolean hasAssessmentReport(); + + /** + * + * + *
+   * Best practices by Design Assessment report
+   * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 2; + * + * @return The assessmentReport. + */ + com.google.cloud.designcenter.v1.AssessmentReport getAssessmentReport(); + + /** + * + * + *
+   * Best practices by Design Assessment report
+   * 
+ * + * .google.cloud.designcenter.v1.AssessmentReport assessment_report = 2; + */ + com.google.cloud.designcenter.v1.AssessmentReportOrBuilder getAssessmentReportOrBuilder(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/PreviewOperationMetadata.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/PreviewOperationMetadata.java new file mode 100644 index 000000000000..e2a94ba3f2d9 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/PreviewOperationMetadata.java @@ -0,0 +1,1518 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/designcenter.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Ephemeral metadata depicting the state of the preview operation.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.PreviewOperationMetadata} + */ +@com.google.protobuf.Generated +public final class PreviewOperationMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.PreviewOperationMetadata) + PreviewOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "PreviewOperationMetadata"); + } + + // Use PreviewOperationMetadata.newBuilder() to construct. + private PreviewOperationMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private PreviewOperationMetadata() { + previewStep_ = ""; + previewBuild_ = ""; + previewLogs_ = ""; + resources_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DesigncenterProto + .internal_static_google_cloud_designcenter_v1_PreviewOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DesigncenterProto + .internal_static_google_cloud_designcenter_v1_PreviewOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.PreviewOperationMetadata.class, + com.google.cloud.designcenter.v1.PreviewOperationMetadata.Builder.class); + } + + public static final int PREVIEW_STEP_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object previewStep_ = ""; + + /** + * + * + *
+   * Output only. The current step of the preview.
+   * The possible steps a preview may be running as returned by the
+   * Infrastructure. Manager.
+   * 
+ * + * string preview_step = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The previewStep. + */ + @java.lang.Override + public java.lang.String getPreviewStep() { + java.lang.Object ref = previewStep_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + previewStep_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The current step of the preview.
+   * The possible steps a preview may be running as returned by the
+   * Infrastructure. Manager.
+   * 
+ * + * string preview_step = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for previewStep. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPreviewStepBytes() { + java.lang.Object ref = previewStep_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + previewStep_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PREVIEW_BUILD_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object previewBuild_ = ""; + + /** + * + * + *
+   * Output only. Cloud Build instance UUID associated with the preview
+   * operation.
+   * 
+ * + * string preview_build = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The previewBuild. + */ + @java.lang.Override + public java.lang.String getPreviewBuild() { + java.lang.Object ref = previewBuild_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + previewBuild_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. Cloud Build instance UUID associated with the preview
+   * operation.
+   * 
+ * + * string preview_build = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for previewBuild. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPreviewBuildBytes() { + java.lang.Object ref = previewBuild_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + previewBuild_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PREVIEW_LOGS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object previewLogs_ = ""; + + /** + * + * + *
+   * Output only. Location of the preview operation logs in
+   * `gs://{bucket}/{object}` format.
+   * 
+ * + * string preview_logs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The previewLogs. + */ + @java.lang.Override + public java.lang.String getPreviewLogs() { + java.lang.Object ref = previewLogs_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + previewLogs_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. Location of the preview operation logs in
+   * `gs://{bucket}/{object}` format.
+   * 
+ * + * string preview_logs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for previewLogs. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPreviewLogsBytes() { + java.lang.Object ref = previewLogs_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + previewLogs_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCES_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private java.util.List resources_; + + /** + * + * + *
+   * Details of the [Resources][]s in the deployment.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Resource resources = 8; + */ + @java.lang.Override + public java.util.List getResourcesList() { + return resources_; + } + + /** + * + * + *
+   * Details of the [Resources][]s in the deployment.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Resource resources = 8; + */ + @java.lang.Override + public java.util.List + getResourcesOrBuilderList() { + return resources_; + } + + /** + * + * + *
+   * Details of the [Resources][]s in the deployment.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Resource resources = 8; + */ + @java.lang.Override + public int getResourcesCount() { + return resources_.size(); + } + + /** + * + * + *
+   * Details of the [Resources][]s in the deployment.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Resource resources = 8; + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.Resource getResources(int index) { + return resources_.get(index); + } + + /** + * + * + *
+   * Details of the [Resources][]s in the deployment.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Resource resources = 8; + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ResourceOrBuilder getResourcesOrBuilder(int index) { + return resources_.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.GeneratedMessage.isStringEmpty(previewStep_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, previewStep_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(previewBuild_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, previewBuild_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(previewLogs_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, previewLogs_); + } + for (int i = 0; i < resources_.size(); i++) { + output.writeMessage(8, resources_.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.GeneratedMessage.isStringEmpty(previewStep_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, previewStep_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(previewBuild_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, previewBuild_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(previewLogs_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, previewLogs_); + } + for (int i = 0; i < resources_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, resources_.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.designcenter.v1.PreviewOperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.PreviewOperationMetadata other = + (com.google.cloud.designcenter.v1.PreviewOperationMetadata) obj; + + if (!getPreviewStep().equals(other.getPreviewStep())) return false; + if (!getPreviewBuild().equals(other.getPreviewBuild())) return false; + if (!getPreviewLogs().equals(other.getPreviewLogs())) return false; + if (!getResourcesList().equals(other.getResourcesList())) 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) + PREVIEW_STEP_FIELD_NUMBER; + hash = (53 * hash) + getPreviewStep().hashCode(); + hash = (37 * hash) + PREVIEW_BUILD_FIELD_NUMBER; + hash = (53 * hash) + getPreviewBuild().hashCode(); + hash = (37 * hash) + PREVIEW_LOGS_FIELD_NUMBER; + hash = (53 * hash) + getPreviewLogs().hashCode(); + if (getResourcesCount() > 0) { + hash = (37 * hash) + RESOURCES_FIELD_NUMBER; + hash = (53 * hash) + getResourcesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.PreviewOperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.PreviewOperationMetadata 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.designcenter.v1.PreviewOperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.PreviewOperationMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.PreviewOperationMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.PreviewOperationMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.PreviewOperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.PreviewOperationMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.PreviewOperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.PreviewOperationMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.PreviewOperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.PreviewOperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.PreviewOperationMetadata 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Ephemeral metadata depicting the state of the preview operation.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.PreviewOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.PreviewOperationMetadata) + com.google.cloud.designcenter.v1.PreviewOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DesigncenterProto + .internal_static_google_cloud_designcenter_v1_PreviewOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DesigncenterProto + .internal_static_google_cloud_designcenter_v1_PreviewOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.PreviewOperationMetadata.class, + com.google.cloud.designcenter.v1.PreviewOperationMetadata.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.PreviewOperationMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + previewStep_ = ""; + previewBuild_ = ""; + previewLogs_ = ""; + if (resourcesBuilder_ == null) { + resources_ = java.util.Collections.emptyList(); + } else { + resources_ = null; + resourcesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.DesigncenterProto + .internal_static_google_cloud_designcenter_v1_PreviewOperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.PreviewOperationMetadata getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.PreviewOperationMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.PreviewOperationMetadata build() { + com.google.cloud.designcenter.v1.PreviewOperationMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.PreviewOperationMetadata buildPartial() { + com.google.cloud.designcenter.v1.PreviewOperationMetadata result = + new com.google.cloud.designcenter.v1.PreviewOperationMetadata(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.designcenter.v1.PreviewOperationMetadata result) { + if (resourcesBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + resources_ = java.util.Collections.unmodifiableList(resources_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.resources_ = resources_; + } else { + result.resources_ = resourcesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.designcenter.v1.PreviewOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.previewStep_ = previewStep_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.previewBuild_ = previewBuild_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.previewLogs_ = previewLogs_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.PreviewOperationMetadata) { + return mergeFrom((com.google.cloud.designcenter.v1.PreviewOperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.PreviewOperationMetadata other) { + if (other == com.google.cloud.designcenter.v1.PreviewOperationMetadata.getDefaultInstance()) + return this; + if (!other.getPreviewStep().isEmpty()) { + previewStep_ = other.previewStep_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getPreviewBuild().isEmpty()) { + previewBuild_ = other.previewBuild_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getPreviewLogs().isEmpty()) { + previewLogs_ = other.previewLogs_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (resourcesBuilder_ == null) { + if (!other.resources_.isEmpty()) { + if (resources_.isEmpty()) { + resources_ = other.resources_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureResourcesIsMutable(); + resources_.addAll(other.resources_); + } + onChanged(); + } + } else { + if (!other.resources_.isEmpty()) { + if (resourcesBuilder_.isEmpty()) { + resourcesBuilder_.dispose(); + resourcesBuilder_ = null; + resources_ = other.resources_; + bitField0_ = (bitField0_ & ~0x00000008); + resourcesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetResourcesFieldBuilder() + : null; + } else { + resourcesBuilder_.addAllMessages(other.resources_); + } + } + } + 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 18: + { + previewStep_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 18 + case 26: + { + previewBuild_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 26 + case 34: + { + previewLogs_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 66: + { + com.google.cloud.designcenter.v1.Resource m = + input.readMessage( + com.google.cloud.designcenter.v1.Resource.parser(), extensionRegistry); + if (resourcesBuilder_ == null) { + ensureResourcesIsMutable(); + resources_.add(m); + } else { + resourcesBuilder_.addMessage(m); + } + 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 previewStep_ = ""; + + /** + * + * + *
+     * Output only. The current step of the preview.
+     * The possible steps a preview may be running as returned by the
+     * Infrastructure. Manager.
+     * 
+ * + * string preview_step = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The previewStep. + */ + public java.lang.String getPreviewStep() { + java.lang.Object ref = previewStep_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + previewStep_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The current step of the preview.
+     * The possible steps a preview may be running as returned by the
+     * Infrastructure. Manager.
+     * 
+ * + * string preview_step = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for previewStep. + */ + public com.google.protobuf.ByteString getPreviewStepBytes() { + java.lang.Object ref = previewStep_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + previewStep_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The current step of the preview.
+     * The possible steps a preview may be running as returned by the
+     * Infrastructure. Manager.
+     * 
+ * + * string preview_step = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The previewStep to set. + * @return This builder for chaining. + */ + public Builder setPreviewStep(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + previewStep_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The current step of the preview.
+     * The possible steps a preview may be running as returned by the
+     * Infrastructure. Manager.
+     * 
+ * + * string preview_step = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearPreviewStep() { + previewStep_ = getDefaultInstance().getPreviewStep(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The current step of the preview.
+     * The possible steps a preview may be running as returned by the
+     * Infrastructure. Manager.
+     * 
+ * + * string preview_step = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for previewStep to set. + * @return This builder for chaining. + */ + public Builder setPreviewStepBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + previewStep_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object previewBuild_ = ""; + + /** + * + * + *
+     * Output only. Cloud Build instance UUID associated with the preview
+     * operation.
+     * 
+ * + * string preview_build = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The previewBuild. + */ + public java.lang.String getPreviewBuild() { + java.lang.Object ref = previewBuild_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + previewBuild_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Cloud Build instance UUID associated with the preview
+     * operation.
+     * 
+ * + * string preview_build = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for previewBuild. + */ + public com.google.protobuf.ByteString getPreviewBuildBytes() { + java.lang.Object ref = previewBuild_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + previewBuild_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Cloud Build instance UUID associated with the preview
+     * operation.
+     * 
+ * + * string preview_build = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The previewBuild to set. + * @return This builder for chaining. + */ + public Builder setPreviewBuild(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + previewBuild_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Cloud Build instance UUID associated with the preview
+     * operation.
+     * 
+ * + * string preview_build = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearPreviewBuild() { + previewBuild_ = getDefaultInstance().getPreviewBuild(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Cloud Build instance UUID associated with the preview
+     * operation.
+     * 
+ * + * string preview_build = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for previewBuild to set. + * @return This builder for chaining. + */ + public Builder setPreviewBuildBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + previewBuild_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object previewLogs_ = ""; + + /** + * + * + *
+     * Output only. Location of the preview operation logs in
+     * `gs://{bucket}/{object}` format.
+     * 
+ * + * string preview_logs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The previewLogs. + */ + public java.lang.String getPreviewLogs() { + java.lang.Object ref = previewLogs_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + previewLogs_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Location of the preview operation logs in
+     * `gs://{bucket}/{object}` format.
+     * 
+ * + * string preview_logs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for previewLogs. + */ + public com.google.protobuf.ByteString getPreviewLogsBytes() { + java.lang.Object ref = previewLogs_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + previewLogs_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Location of the preview operation logs in
+     * `gs://{bucket}/{object}` format.
+     * 
+ * + * string preview_logs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The previewLogs to set. + * @return This builder for chaining. + */ + public Builder setPreviewLogs(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + previewLogs_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Location of the preview operation logs in
+     * `gs://{bucket}/{object}` format.
+     * 
+ * + * string preview_logs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearPreviewLogs() { + previewLogs_ = getDefaultInstance().getPreviewLogs(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Location of the preview operation logs in
+     * `gs://{bucket}/{object}` format.
+     * 
+ * + * string preview_logs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for previewLogs to set. + * @return This builder for chaining. + */ + public Builder setPreviewLogsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + previewLogs_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.util.List resources_ = + java.util.Collections.emptyList(); + + private void ensureResourcesIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + resources_ = new java.util.ArrayList(resources_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Resource, + com.google.cloud.designcenter.v1.Resource.Builder, + com.google.cloud.designcenter.v1.ResourceOrBuilder> + resourcesBuilder_; + + /** + * + * + *
+     * Details of the [Resources][]s in the deployment.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Resource resources = 8; + */ + public java.util.List getResourcesList() { + if (resourcesBuilder_ == null) { + return java.util.Collections.unmodifiableList(resources_); + } else { + return resourcesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Details of the [Resources][]s in the deployment.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Resource resources = 8; + */ + public int getResourcesCount() { + if (resourcesBuilder_ == null) { + return resources_.size(); + } else { + return resourcesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Details of the [Resources][]s in the deployment.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Resource resources = 8; + */ + public com.google.cloud.designcenter.v1.Resource getResources(int index) { + if (resourcesBuilder_ == null) { + return resources_.get(index); + } else { + return resourcesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Details of the [Resources][]s in the deployment.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Resource resources = 8; + */ + public Builder setResources(int index, com.google.cloud.designcenter.v1.Resource value) { + if (resourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourcesIsMutable(); + resources_.set(index, value); + onChanged(); + } else { + resourcesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Details of the [Resources][]s in the deployment.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Resource resources = 8; + */ + public Builder setResources( + int index, com.google.cloud.designcenter.v1.Resource.Builder builderForValue) { + if (resourcesBuilder_ == null) { + ensureResourcesIsMutable(); + resources_.set(index, builderForValue.build()); + onChanged(); + } else { + resourcesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Details of the [Resources][]s in the deployment.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Resource resources = 8; + */ + public Builder addResources(com.google.cloud.designcenter.v1.Resource value) { + if (resourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourcesIsMutable(); + resources_.add(value); + onChanged(); + } else { + resourcesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Details of the [Resources][]s in the deployment.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Resource resources = 8; + */ + public Builder addResources(int index, com.google.cloud.designcenter.v1.Resource value) { + if (resourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourcesIsMutable(); + resources_.add(index, value); + onChanged(); + } else { + resourcesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Details of the [Resources][]s in the deployment.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Resource resources = 8; + */ + public Builder addResources(com.google.cloud.designcenter.v1.Resource.Builder builderForValue) { + if (resourcesBuilder_ == null) { + ensureResourcesIsMutable(); + resources_.add(builderForValue.build()); + onChanged(); + } else { + resourcesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Details of the [Resources][]s in the deployment.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Resource resources = 8; + */ + public Builder addResources( + int index, com.google.cloud.designcenter.v1.Resource.Builder builderForValue) { + if (resourcesBuilder_ == null) { + ensureResourcesIsMutable(); + resources_.add(index, builderForValue.build()); + onChanged(); + } else { + resourcesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Details of the [Resources][]s in the deployment.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Resource resources = 8; + */ + public Builder addAllResources( + java.lang.Iterable values) { + if (resourcesBuilder_ == null) { + ensureResourcesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resources_); + onChanged(); + } else { + resourcesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Details of the [Resources][]s in the deployment.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Resource resources = 8; + */ + public Builder clearResources() { + if (resourcesBuilder_ == null) { + resources_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + resourcesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Details of the [Resources][]s in the deployment.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Resource resources = 8; + */ + public Builder removeResources(int index) { + if (resourcesBuilder_ == null) { + ensureResourcesIsMutable(); + resources_.remove(index); + onChanged(); + } else { + resourcesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Details of the [Resources][]s in the deployment.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Resource resources = 8; + */ + public com.google.cloud.designcenter.v1.Resource.Builder getResourcesBuilder(int index) { + return internalGetResourcesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Details of the [Resources][]s in the deployment.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Resource resources = 8; + */ + public com.google.cloud.designcenter.v1.ResourceOrBuilder getResourcesOrBuilder(int index) { + if (resourcesBuilder_ == null) { + return resources_.get(index); + } else { + return resourcesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Details of the [Resources][]s in the deployment.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Resource resources = 8; + */ + public java.util.List + getResourcesOrBuilderList() { + if (resourcesBuilder_ != null) { + return resourcesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(resources_); + } + } + + /** + * + * + *
+     * Details of the [Resources][]s in the deployment.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Resource resources = 8; + */ + public com.google.cloud.designcenter.v1.Resource.Builder addResourcesBuilder() { + return internalGetResourcesFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.Resource.getDefaultInstance()); + } + + /** + * + * + *
+     * Details of the [Resources][]s in the deployment.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Resource resources = 8; + */ + public com.google.cloud.designcenter.v1.Resource.Builder addResourcesBuilder(int index) { + return internalGetResourcesFieldBuilder() + .addBuilder(index, com.google.cloud.designcenter.v1.Resource.getDefaultInstance()); + } + + /** + * + * + *
+     * Details of the [Resources][]s in the deployment.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Resource resources = 8; + */ + public java.util.List + getResourcesBuilderList() { + return internalGetResourcesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Resource, + com.google.cloud.designcenter.v1.Resource.Builder, + com.google.cloud.designcenter.v1.ResourceOrBuilder> + internalGetResourcesFieldBuilder() { + if (resourcesBuilder_ == null) { + resourcesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Resource, + com.google.cloud.designcenter.v1.Resource.Builder, + com.google.cloud.designcenter.v1.ResourceOrBuilder>( + resources_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); + resources_ = null; + } + return resourcesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.PreviewOperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.PreviewOperationMetadata) + private static final com.google.cloud.designcenter.v1.PreviewOperationMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.PreviewOperationMetadata(); + } + + public static com.google.cloud.designcenter.v1.PreviewOperationMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PreviewOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.PreviewOperationMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/PreviewOperationMetadataOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/PreviewOperationMetadataOrBuilder.java new file mode 100644 index 000000000000..42c6b45ce710 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/PreviewOperationMetadataOrBuilder.java @@ -0,0 +1,170 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/designcenter.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface PreviewOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.PreviewOperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The current step of the preview.
+   * The possible steps a preview may be running as returned by the
+   * Infrastructure. Manager.
+   * 
+ * + * string preview_step = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The previewStep. + */ + java.lang.String getPreviewStep(); + + /** + * + * + *
+   * Output only. The current step of the preview.
+   * The possible steps a preview may be running as returned by the
+   * Infrastructure. Manager.
+   * 
+ * + * string preview_step = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for previewStep. + */ + com.google.protobuf.ByteString getPreviewStepBytes(); + + /** + * + * + *
+   * Output only. Cloud Build instance UUID associated with the preview
+   * operation.
+   * 
+ * + * string preview_build = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The previewBuild. + */ + java.lang.String getPreviewBuild(); + + /** + * + * + *
+   * Output only. Cloud Build instance UUID associated with the preview
+   * operation.
+   * 
+ * + * string preview_build = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for previewBuild. + */ + com.google.protobuf.ByteString getPreviewBuildBytes(); + + /** + * + * + *
+   * Output only. Location of the preview operation logs in
+   * `gs://{bucket}/{object}` format.
+   * 
+ * + * string preview_logs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The previewLogs. + */ + java.lang.String getPreviewLogs(); + + /** + * + * + *
+   * Output only. Location of the preview operation logs in
+   * `gs://{bucket}/{object}` format.
+   * 
+ * + * string preview_logs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for previewLogs. + */ + com.google.protobuf.ByteString getPreviewLogsBytes(); + + /** + * + * + *
+   * Details of the [Resources][]s in the deployment.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Resource resources = 8; + */ + java.util.List getResourcesList(); + + /** + * + * + *
+   * Details of the [Resources][]s in the deployment.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Resource resources = 8; + */ + com.google.cloud.designcenter.v1.Resource getResources(int index); + + /** + * + * + *
+   * Details of the [Resources][]s in the deployment.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Resource resources = 8; + */ + int getResourcesCount(); + + /** + * + * + *
+   * Details of the [Resources][]s in the deployment.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Resource resources = 8; + */ + java.util.List + getResourcesOrBuilderList(); + + /** + * + * + *
+   * Details of the [Resources][]s in the deployment.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Resource resources = 8; + */ + com.google.cloud.designcenter.v1.ResourceOrBuilder getResourcesOrBuilder(int index); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ProjectParameters.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ProjectParameters.java new file mode 100644 index 000000000000..548ed4d14751 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ProjectParameters.java @@ -0,0 +1,1204 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * The ProjectParameters provides the parameters needed to deploy the
+ * application in the given project.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ProjectParameters} + */ +@com.google.protobuf.Generated +public final class ProjectParameters extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ProjectParameters) + ProjectParametersOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ProjectParameters"); + } + + // Use ProjectParameters.newBuilder() to construct. + private ProjectParameters(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ProjectParameters() { + projectId_ = ""; + roles_ = com.google.protobuf.LazyStringArrayList.emptyList(); + apis_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_ProjectParameters_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_ProjectParameters_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ProjectParameters.class, + com.google.cloud.designcenter.v1.ProjectParameters.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + + /** + * + * + *
+   * Output only. The project ID of the project.
+   * 
+ * + * string project_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The projectId. + */ + @java.lang.Override + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The project ID of the project.
+   * 
+ * + * string project_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for projectId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ROLES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList roles_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Output only. IAM roles required by the service account to deploy the
+   * application in given project.
+   * 
+ * + * repeated string roles = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the roles. + */ + public com.google.protobuf.ProtocolStringList getRolesList() { + return roles_; + } + + /** + * + * + *
+   * Output only. IAM roles required by the service account to deploy the
+   * application in given project.
+   * 
+ * + * repeated string roles = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of roles. + */ + public int getRolesCount() { + return roles_.size(); + } + + /** + * + * + *
+   * Output only. IAM roles required by the service account to deploy the
+   * application in given project.
+   * 
+ * + * repeated string roles = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The roles at the given index. + */ + public java.lang.String getRoles(int index) { + return roles_.get(index); + } + + /** + * + * + *
+   * Output only. IAM roles required by the service account to deploy the
+   * application in given project.
+   * 
+ * + * repeated string roles = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the roles at the given index. + */ + public com.google.protobuf.ByteString getRolesBytes(int index) { + return roles_.getByteString(index); + } + + public static final int APIS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList apis_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Output only. APIs required to be enabled to deploy the application, in the
+   * form of "*.googleapis.com".
+   * 
+ * + * repeated string apis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the apis. + */ + public com.google.protobuf.ProtocolStringList getApisList() { + return apis_; + } + + /** + * + * + *
+   * Output only. APIs required to be enabled to deploy the application, in the
+   * form of "*.googleapis.com".
+   * 
+ * + * repeated string apis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of apis. + */ + public int getApisCount() { + return apis_.size(); + } + + /** + * + * + *
+   * Output only. APIs required to be enabled to deploy the application, in the
+   * form of "*.googleapis.com".
+   * 
+ * + * repeated string apis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The apis at the given index. + */ + public java.lang.String getApis(int index) { + return apis_.get(index); + } + + /** + * + * + *
+   * Output only. APIs required to be enabled to deploy the application, in the
+   * form of "*.googleapis.com".
+   * 
+ * + * repeated string apis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the apis at the given index. + */ + public com.google.protobuf.ByteString getApisBytes(int index) { + return apis_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, projectId_); + } + for (int i = 0; i < roles_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, roles_.getRaw(i)); + } + for (int i = 0; i < apis_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, apis_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, projectId_); + } + { + int dataSize = 0; + for (int i = 0; i < roles_.size(); i++) { + dataSize += computeStringSizeNoTag(roles_.getRaw(i)); + } + size += dataSize; + size += 1 * getRolesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < apis_.size(); i++) { + dataSize += computeStringSizeNoTag(apis_.getRaw(i)); + } + size += dataSize; + size += 1 * getApisList().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.designcenter.v1.ProjectParameters)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ProjectParameters other = + (com.google.cloud.designcenter.v1.ProjectParameters) obj; + + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getRolesList().equals(other.getRolesList())) return false; + if (!getApisList().equals(other.getApisList())) 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) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + if (getRolesCount() > 0) { + hash = (37 * hash) + ROLES_FIELD_NUMBER; + hash = (53 * hash) + getRolesList().hashCode(); + } + if (getApisCount() > 0) { + hash = (37 * hash) + APIS_FIELD_NUMBER; + hash = (53 * hash) + getApisList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.ProjectParameters parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ProjectParameters 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.designcenter.v1.ProjectParameters parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ProjectParameters parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ProjectParameters parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ProjectParameters parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ProjectParameters parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ProjectParameters parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ProjectParameters parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ProjectParameters parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ProjectParameters parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ProjectParameters parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ProjectParameters 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * The ProjectParameters provides the parameters needed to deploy the
+   * application in the given project.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ProjectParameters} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ProjectParameters) + com.google.cloud.designcenter.v1.ProjectParametersOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_ProjectParameters_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_ProjectParameters_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ProjectParameters.class, + com.google.cloud.designcenter.v1.ProjectParameters.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.ProjectParameters.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + projectId_ = ""; + roles_ = com.google.protobuf.LazyStringArrayList.emptyList(); + apis_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_ProjectParameters_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ProjectParameters getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ProjectParameters.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ProjectParameters build() { + com.google.cloud.designcenter.v1.ProjectParameters result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ProjectParameters buildPartial() { + com.google.cloud.designcenter.v1.ProjectParameters result = + new com.google.cloud.designcenter.v1.ProjectParameters(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.ProjectParameters result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.projectId_ = projectId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + roles_.makeImmutable(); + result.roles_ = roles_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + apis_.makeImmutable(); + result.apis_ = apis_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.ProjectParameters) { + return mergeFrom((com.google.cloud.designcenter.v1.ProjectParameters) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.ProjectParameters other) { + if (other == com.google.cloud.designcenter.v1.ProjectParameters.getDefaultInstance()) + return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.roles_.isEmpty()) { + if (roles_.isEmpty()) { + roles_ = other.roles_; + bitField0_ |= 0x00000002; + } else { + ensureRolesIsMutable(); + roles_.addAll(other.roles_); + } + onChanged(); + } + if (!other.apis_.isEmpty()) { + if (apis_.isEmpty()) { + apis_ = other.apis_; + bitField0_ |= 0x00000004; + } else { + ensureApisIsMutable(); + apis_.addAll(other.apis_); + } + 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: + { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureRolesIsMutable(); + roles_.add(s); + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureApisIsMutable(); + apis_.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.lang.Object projectId_ = ""; + + /** + * + * + *
+     * Output only. The project ID of the project.
+     * 
+ * + * string project_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The projectId. + */ + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The project ID of the project.
+     * 
+ * + * string project_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for projectId. + */ + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The project ID of the project.
+     * 
+ * + * string project_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The projectId to set. + * @return This builder for chaining. + */ + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + projectId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The project ID of the project.
+     * 
+ * + * string project_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The project ID of the project.
+     * 
+ * + * string project_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList roles_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureRolesIsMutable() { + if (!roles_.isModifiable()) { + roles_ = new com.google.protobuf.LazyStringArrayList(roles_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
+     * Output only. IAM roles required by the service account to deploy the
+     * application in given project.
+     * 
+ * + * repeated string roles = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the roles. + */ + public com.google.protobuf.ProtocolStringList getRolesList() { + roles_.makeImmutable(); + return roles_; + } + + /** + * + * + *
+     * Output only. IAM roles required by the service account to deploy the
+     * application in given project.
+     * 
+ * + * repeated string roles = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of roles. + */ + public int getRolesCount() { + return roles_.size(); + } + + /** + * + * + *
+     * Output only. IAM roles required by the service account to deploy the
+     * application in given project.
+     * 
+ * + * repeated string roles = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The roles at the given index. + */ + public java.lang.String getRoles(int index) { + return roles_.get(index); + } + + /** + * + * + *
+     * Output only. IAM roles required by the service account to deploy the
+     * application in given project.
+     * 
+ * + * repeated string roles = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the roles at the given index. + */ + public com.google.protobuf.ByteString getRolesBytes(int index) { + return roles_.getByteString(index); + } + + /** + * + * + *
+     * Output only. IAM roles required by the service account to deploy the
+     * application in given project.
+     * 
+ * + * repeated string roles = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index to set the value at. + * @param value The roles to set. + * @return This builder for chaining. + */ + public Builder setRoles(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRolesIsMutable(); + roles_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. IAM roles required by the service account to deploy the
+     * application in given project.
+     * 
+ * + * repeated string roles = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The roles to add. + * @return This builder for chaining. + */ + public Builder addRoles(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRolesIsMutable(); + roles_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. IAM roles required by the service account to deploy the
+     * application in given project.
+     * 
+ * + * repeated string roles = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param values The roles to add. + * @return This builder for chaining. + */ + public Builder addAllRoles(java.lang.Iterable values) { + ensureRolesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, roles_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. IAM roles required by the service account to deploy the
+     * application in given project.
+     * 
+ * + * repeated string roles = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearRoles() { + roles_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. IAM roles required by the service account to deploy the
+     * application in given project.
+     * 
+ * + * repeated string roles = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes of the roles to add. + * @return This builder for chaining. + */ + public Builder addRolesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureRolesIsMutable(); + roles_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList apis_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureApisIsMutable() { + if (!apis_.isModifiable()) { + apis_ = new com.google.protobuf.LazyStringArrayList(apis_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
+     * Output only. APIs required to be enabled to deploy the application, in the
+     * form of "*.googleapis.com".
+     * 
+ * + * repeated string apis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the apis. + */ + public com.google.protobuf.ProtocolStringList getApisList() { + apis_.makeImmutable(); + return apis_; + } + + /** + * + * + *
+     * Output only. APIs required to be enabled to deploy the application, in the
+     * form of "*.googleapis.com".
+     * 
+ * + * repeated string apis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of apis. + */ + public int getApisCount() { + return apis_.size(); + } + + /** + * + * + *
+     * Output only. APIs required to be enabled to deploy the application, in the
+     * form of "*.googleapis.com".
+     * 
+ * + * repeated string apis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The apis at the given index. + */ + public java.lang.String getApis(int index) { + return apis_.get(index); + } + + /** + * + * + *
+     * Output only. APIs required to be enabled to deploy the application, in the
+     * form of "*.googleapis.com".
+     * 
+ * + * repeated string apis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the apis at the given index. + */ + public com.google.protobuf.ByteString getApisBytes(int index) { + return apis_.getByteString(index); + } + + /** + * + * + *
+     * Output only. APIs required to be enabled to deploy the application, in the
+     * form of "*.googleapis.com".
+     * 
+ * + * repeated string apis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index to set the value at. + * @param value The apis to set. + * @return This builder for chaining. + */ + public Builder setApis(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureApisIsMutable(); + apis_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. APIs required to be enabled to deploy the application, in the
+     * form of "*.googleapis.com".
+     * 
+ * + * repeated string apis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The apis to add. + * @return This builder for chaining. + */ + public Builder addApis(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureApisIsMutable(); + apis_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. APIs required to be enabled to deploy the application, in the
+     * form of "*.googleapis.com".
+     * 
+ * + * repeated string apis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param values The apis to add. + * @return This builder for chaining. + */ + public Builder addAllApis(java.lang.Iterable values) { + ensureApisIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, apis_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. APIs required to be enabled to deploy the application, in the
+     * form of "*.googleapis.com".
+     * 
+ * + * repeated string apis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearApis() { + apis_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. APIs required to be enabled to deploy the application, in the
+     * form of "*.googleapis.com".
+     * 
+ * + * repeated string apis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes of the apis to add. + * @return This builder for chaining. + */ + public Builder addApisBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureApisIsMutable(); + apis_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ProjectParameters) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ProjectParameters) + private static final com.google.cloud.designcenter.v1.ProjectParameters DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.ProjectParameters(); + } + + public static com.google.cloud.designcenter.v1.ProjectParameters getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProjectParameters parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ProjectParameters getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ProjectParametersList.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ProjectParametersList.java new file mode 100644 index 000000000000..7e39249d8859 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ProjectParametersList.java @@ -0,0 +1,987 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Provides the list of project parameters needed to deploy an application.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ProjectParametersList} + */ +@com.google.protobuf.Generated +public final class ProjectParametersList extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ProjectParametersList) + ProjectParametersListOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ProjectParametersList"); + } + + // Use ProjectParametersList.newBuilder() to construct. + private ProjectParametersList(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ProjectParametersList() { + projectParameters_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_ProjectParametersList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_ProjectParametersList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ProjectParametersList.class, + com.google.cloud.designcenter.v1.ProjectParametersList.Builder.class); + } + + public static final int PROJECT_PARAMETERS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List projectParameters_; + + /** + * + * + *
+   * Output only. List of project parameters for the application.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProjectParameters project_parameters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getProjectParametersList() { + return projectParameters_; + } + + /** + * + * + *
+   * Output only. List of project parameters for the application.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProjectParameters project_parameters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getProjectParametersOrBuilderList() { + return projectParameters_; + } + + /** + * + * + *
+   * Output only. List of project parameters for the application.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProjectParameters project_parameters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getProjectParametersCount() { + return projectParameters_.size(); + } + + /** + * + * + *
+   * Output only. List of project parameters for the application.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProjectParameters project_parameters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ProjectParameters getProjectParameters(int index) { + return projectParameters_.get(index); + } + + /** + * + * + *
+   * Output only. List of project parameters for the application.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProjectParameters project_parameters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ProjectParametersOrBuilder getProjectParametersOrBuilder( + int index) { + return projectParameters_.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 < projectParameters_.size(); i++) { + output.writeMessage(1, projectParameters_.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 < projectParameters_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, projectParameters_.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.designcenter.v1.ProjectParametersList)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ProjectParametersList other = + (com.google.cloud.designcenter.v1.ProjectParametersList) obj; + + if (!getProjectParametersList().equals(other.getProjectParametersList())) 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 (getProjectParametersCount() > 0) { + hash = (37 * hash) + PROJECT_PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getProjectParametersList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.ProjectParametersList parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ProjectParametersList 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.designcenter.v1.ProjectParametersList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ProjectParametersList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ProjectParametersList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ProjectParametersList parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ProjectParametersList parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ProjectParametersList parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ProjectParametersList parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ProjectParametersList parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ProjectParametersList parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ProjectParametersList parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ProjectParametersList 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Provides the list of project parameters needed to deploy an application.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ProjectParametersList} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ProjectParametersList) + com.google.cloud.designcenter.v1.ProjectParametersListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_ProjectParametersList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_ProjectParametersList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ProjectParametersList.class, + com.google.cloud.designcenter.v1.ProjectParametersList.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.ProjectParametersList.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (projectParametersBuilder_ == null) { + projectParameters_ = java.util.Collections.emptyList(); + } else { + projectParameters_ = null; + projectParametersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_ProjectParametersList_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ProjectParametersList getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ProjectParametersList.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ProjectParametersList build() { + com.google.cloud.designcenter.v1.ProjectParametersList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ProjectParametersList buildPartial() { + com.google.cloud.designcenter.v1.ProjectParametersList result = + new com.google.cloud.designcenter.v1.ProjectParametersList(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.designcenter.v1.ProjectParametersList result) { + if (projectParametersBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + projectParameters_ = java.util.Collections.unmodifiableList(projectParameters_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.projectParameters_ = projectParameters_; + } else { + result.projectParameters_ = projectParametersBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.designcenter.v1.ProjectParametersList result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.ProjectParametersList) { + return mergeFrom((com.google.cloud.designcenter.v1.ProjectParametersList) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.ProjectParametersList other) { + if (other == com.google.cloud.designcenter.v1.ProjectParametersList.getDefaultInstance()) + return this; + if (projectParametersBuilder_ == null) { + if (!other.projectParameters_.isEmpty()) { + if (projectParameters_.isEmpty()) { + projectParameters_ = other.projectParameters_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureProjectParametersIsMutable(); + projectParameters_.addAll(other.projectParameters_); + } + onChanged(); + } + } else { + if (!other.projectParameters_.isEmpty()) { + if (projectParametersBuilder_.isEmpty()) { + projectParametersBuilder_.dispose(); + projectParametersBuilder_ = null; + projectParameters_ = other.projectParameters_; + bitField0_ = (bitField0_ & ~0x00000001); + projectParametersBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetProjectParametersFieldBuilder() + : null; + } else { + projectParametersBuilder_.addAllMessages(other.projectParameters_); + } + } + } + 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.designcenter.v1.ProjectParameters m = + input.readMessage( + com.google.cloud.designcenter.v1.ProjectParameters.parser(), + extensionRegistry); + if (projectParametersBuilder_ == null) { + ensureProjectParametersIsMutable(); + projectParameters_.add(m); + } else { + projectParametersBuilder_.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 projectParameters_ = + java.util.Collections.emptyList(); + + private void ensureProjectParametersIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + projectParameters_ = + new java.util.ArrayList( + projectParameters_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ProjectParameters, + com.google.cloud.designcenter.v1.ProjectParameters.Builder, + com.google.cloud.designcenter.v1.ProjectParametersOrBuilder> + projectParametersBuilder_; + + /** + * + * + *
+     * Output only. List of project parameters for the application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProjectParameters project_parameters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getProjectParametersList() { + if (projectParametersBuilder_ == null) { + return java.util.Collections.unmodifiableList(projectParameters_); + } else { + return projectParametersBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Output only. List of project parameters for the application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProjectParameters project_parameters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getProjectParametersCount() { + if (projectParametersBuilder_ == null) { + return projectParameters_.size(); + } else { + return projectParametersBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Output only. List of project parameters for the application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProjectParameters project_parameters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ProjectParameters getProjectParameters(int index) { + if (projectParametersBuilder_ == null) { + return projectParameters_.get(index); + } else { + return projectParametersBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Output only. List of project parameters for the application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProjectParameters project_parameters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setProjectParameters( + int index, com.google.cloud.designcenter.v1.ProjectParameters value) { + if (projectParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProjectParametersIsMutable(); + projectParameters_.set(index, value); + onChanged(); + } else { + projectParametersBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. List of project parameters for the application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProjectParameters project_parameters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setProjectParameters( + int index, com.google.cloud.designcenter.v1.ProjectParameters.Builder builderForValue) { + if (projectParametersBuilder_ == null) { + ensureProjectParametersIsMutable(); + projectParameters_.set(index, builderForValue.build()); + onChanged(); + } else { + projectParametersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. List of project parameters for the application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProjectParameters project_parameters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addProjectParameters(com.google.cloud.designcenter.v1.ProjectParameters value) { + if (projectParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProjectParametersIsMutable(); + projectParameters_.add(value); + onChanged(); + } else { + projectParametersBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Output only. List of project parameters for the application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProjectParameters project_parameters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addProjectParameters( + int index, com.google.cloud.designcenter.v1.ProjectParameters value) { + if (projectParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProjectParametersIsMutable(); + projectParameters_.add(index, value); + onChanged(); + } else { + projectParametersBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. List of project parameters for the application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProjectParameters project_parameters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addProjectParameters( + com.google.cloud.designcenter.v1.ProjectParameters.Builder builderForValue) { + if (projectParametersBuilder_ == null) { + ensureProjectParametersIsMutable(); + projectParameters_.add(builderForValue.build()); + onChanged(); + } else { + projectParametersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. List of project parameters for the application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProjectParameters project_parameters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addProjectParameters( + int index, com.google.cloud.designcenter.v1.ProjectParameters.Builder builderForValue) { + if (projectParametersBuilder_ == null) { + ensureProjectParametersIsMutable(); + projectParameters_.add(index, builderForValue.build()); + onChanged(); + } else { + projectParametersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. List of project parameters for the application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProjectParameters project_parameters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllProjectParameters( + java.lang.Iterable values) { + if (projectParametersBuilder_ == null) { + ensureProjectParametersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, projectParameters_); + onChanged(); + } else { + projectParametersBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Output only. List of project parameters for the application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProjectParameters project_parameters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearProjectParameters() { + if (projectParametersBuilder_ == null) { + projectParameters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + projectParametersBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Output only. List of project parameters for the application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProjectParameters project_parameters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeProjectParameters(int index) { + if (projectParametersBuilder_ == null) { + ensureProjectParametersIsMutable(); + projectParameters_.remove(index); + onChanged(); + } else { + projectParametersBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Output only. List of project parameters for the application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProjectParameters project_parameters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ProjectParameters.Builder getProjectParametersBuilder( + int index) { + return internalGetProjectParametersFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Output only. List of project parameters for the application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProjectParameters project_parameters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ProjectParametersOrBuilder + getProjectParametersOrBuilder(int index) { + if (projectParametersBuilder_ == null) { + return projectParameters_.get(index); + } else { + return projectParametersBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Output only. List of project parameters for the application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProjectParameters project_parameters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getProjectParametersOrBuilderList() { + if (projectParametersBuilder_ != null) { + return projectParametersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(projectParameters_); + } + } + + /** + * + * + *
+     * Output only. List of project parameters for the application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProjectParameters project_parameters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ProjectParameters.Builder + addProjectParametersBuilder() { + return internalGetProjectParametersFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.ProjectParameters.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. List of project parameters for the application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProjectParameters project_parameters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ProjectParameters.Builder addProjectParametersBuilder( + int index) { + return internalGetProjectParametersFieldBuilder() + .addBuilder( + index, com.google.cloud.designcenter.v1.ProjectParameters.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. List of project parameters for the application.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProjectParameters project_parameters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getProjectParametersBuilderList() { + return internalGetProjectParametersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ProjectParameters, + com.google.cloud.designcenter.v1.ProjectParameters.Builder, + com.google.cloud.designcenter.v1.ProjectParametersOrBuilder> + internalGetProjectParametersFieldBuilder() { + if (projectParametersBuilder_ == null) { + projectParametersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ProjectParameters, + com.google.cloud.designcenter.v1.ProjectParameters.Builder, + com.google.cloud.designcenter.v1.ProjectParametersOrBuilder>( + projectParameters_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + projectParameters_ = null; + } + return projectParametersBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ProjectParametersList) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ProjectParametersList) + private static final com.google.cloud.designcenter.v1.ProjectParametersList DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.ProjectParametersList(); + } + + public static com.google.cloud.designcenter.v1.ProjectParametersList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProjectParametersList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ProjectParametersList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ProjectParametersListOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ProjectParametersListOrBuilder.java new file mode 100644 index 000000000000..ce28d6d77c64 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ProjectParametersListOrBuilder.java @@ -0,0 +1,95 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ProjectParametersListOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ProjectParametersList) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. List of project parameters for the application.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProjectParameters project_parameters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getProjectParametersList(); + + /** + * + * + *
+   * Output only. List of project parameters for the application.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProjectParameters project_parameters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.ProjectParameters getProjectParameters(int index); + + /** + * + * + *
+   * Output only. List of project parameters for the application.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProjectParameters project_parameters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getProjectParametersCount(); + + /** + * + * + *
+   * Output only. List of project parameters for the application.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProjectParameters project_parameters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getProjectParametersOrBuilderList(); + + /** + * + * + *
+   * Output only. List of project parameters for the application.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProjectParameters project_parameters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.ProjectParametersOrBuilder getProjectParametersOrBuilder( + int index); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ProjectParametersOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ProjectParametersOrBuilder.java new file mode 100644 index 000000000000..fbec75a51c10 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ProjectParametersOrBuilder.java @@ -0,0 +1,170 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ProjectParametersOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ProjectParameters) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The project ID of the project.
+   * 
+ * + * string project_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The projectId. + */ + java.lang.String getProjectId(); + + /** + * + * + *
+   * Output only. The project ID of the project.
+   * 
+ * + * string project_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for projectId. + */ + com.google.protobuf.ByteString getProjectIdBytes(); + + /** + * + * + *
+   * Output only. IAM roles required by the service account to deploy the
+   * application in given project.
+   * 
+ * + * repeated string roles = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the roles. + */ + java.util.List getRolesList(); + + /** + * + * + *
+   * Output only. IAM roles required by the service account to deploy the
+   * application in given project.
+   * 
+ * + * repeated string roles = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of roles. + */ + int getRolesCount(); + + /** + * + * + *
+   * Output only. IAM roles required by the service account to deploy the
+   * application in given project.
+   * 
+ * + * repeated string roles = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The roles at the given index. + */ + java.lang.String getRoles(int index); + + /** + * + * + *
+   * Output only. IAM roles required by the service account to deploy the
+   * application in given project.
+   * 
+ * + * repeated string roles = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the roles at the given index. + */ + com.google.protobuf.ByteString getRolesBytes(int index); + + /** + * + * + *
+   * Output only. APIs required to be enabled to deploy the application, in the
+   * form of "*.googleapis.com".
+   * 
+ * + * repeated string apis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the apis. + */ + java.util.List getApisList(); + + /** + * + * + *
+   * Output only. APIs required to be enabled to deploy the application, in the
+   * form of "*.googleapis.com".
+   * 
+ * + * repeated string apis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of apis. + */ + int getApisCount(); + + /** + * + * + *
+   * Output only. APIs required to be enabled to deploy the application, in the
+   * form of "*.googleapis.com".
+   * 
+ * + * repeated string apis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The apis at the given index. + */ + java.lang.String getApis(int index); + + /** + * + * + *
+   * Output only. APIs required to be enabled to deploy the application, in the
+   * form of "*.googleapis.com".
+   * 
+ * + * repeated string apis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the apis at the given index. + */ + com.google.protobuf.ByteString getApisBytes(int index); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ProviderDependency.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ProviderDependency.java new file mode 100644 index 000000000000..83fb7deadfcf --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ProviderDependency.java @@ -0,0 +1,1163 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Represents a dependency on a Terraform provider.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ProviderDependency} + */ +@com.google.protobuf.Generated +public final class ProviderDependency extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ProviderDependency) + ProviderDependencyOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ProviderDependency"); + } + + // Use ProviderDependency.newBuilder() to construct. + private ProviderDependency(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ProviderDependency() { + name_ = ""; + providerNamespace_ = ""; + source_ = ""; + version_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_ProviderDependency_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_ProviderDependency_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ProviderDependency.class, + com.google.cloud.designcenter.v1.ProviderDependency.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Optional. Name of the provider.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+   * Optional. Name of the provider.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 PROVIDER_NAMESPACE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object providerNamespace_ = ""; + + /** + * + * + *
+   * Optional. Namespace of the provider (e.g., "hashicorp").
+   * 
+ * + * string provider_namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The providerNamespace. + */ + @java.lang.Override + public java.lang.String getProviderNamespace() { + java.lang.Object ref = providerNamespace_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + providerNamespace_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Namespace of the provider (e.g., "hashicorp").
+   * 
+ * + * string provider_namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for providerNamespace. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProviderNamespaceBytes() { + java.lang.Object ref = providerNamespace_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + providerNamespace_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SOURCE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object source_ = ""; + + /** + * + * + *
+   * Optional. Source path of the provider.
+   * 
+ * + * string source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The source. + */ + @java.lang.Override + public java.lang.String getSource() { + java.lang.Object ref = source_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + source_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Source path of the provider.
+   * 
+ * + * string source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for source. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSourceBytes() { + java.lang.Object ref = source_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + source_ = 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_ = ""; + + /** + * + * + *
+   * Optional. Version constraints for the provider.
+   * 
+ * + * string version = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+   * Optional. Version constraints for the provider.
+   * 
+ * + * string version = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(providerNamespace_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, providerNamespace_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(source_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, source_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(version_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, version_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(providerNamespace_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, providerNamespace_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(source_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, source_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(version_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, version_); + } + 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.designcenter.v1.ProviderDependency)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ProviderDependency other = + (com.google.cloud.designcenter.v1.ProviderDependency) obj; + + if (!getName().equals(other.getName())) return false; + if (!getProviderNamespace().equals(other.getProviderNamespace())) return false; + if (!getSource().equals(other.getSource())) return false; + if (!getVersion().equals(other.getVersion())) 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) + PROVIDER_NAMESPACE_FIELD_NUMBER; + hash = (53 * hash) + getProviderNamespace().hashCode(); + hash = (37 * hash) + SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getSource().hashCode(); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.ProviderDependency parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ProviderDependency 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.designcenter.v1.ProviderDependency parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ProviderDependency parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ProviderDependency parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ProviderDependency parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ProviderDependency parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ProviderDependency parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ProviderDependency parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ProviderDependency parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ProviderDependency parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ProviderDependency parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ProviderDependency 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Represents a dependency on a Terraform provider.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ProviderDependency} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ProviderDependency) + com.google.cloud.designcenter.v1.ProviderDependencyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_ProviderDependency_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_ProviderDependency_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ProviderDependency.class, + com.google.cloud.designcenter.v1.ProviderDependency.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.ProviderDependency.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + providerNamespace_ = ""; + source_ = ""; + version_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_ProviderDependency_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ProviderDependency getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ProviderDependency.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ProviderDependency build() { + com.google.cloud.designcenter.v1.ProviderDependency result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ProviderDependency buildPartial() { + com.google.cloud.designcenter.v1.ProviderDependency result = + new com.google.cloud.designcenter.v1.ProviderDependency(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.ProviderDependency result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.providerNamespace_ = providerNamespace_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.source_ = source_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.version_ = version_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.ProviderDependency) { + return mergeFrom((com.google.cloud.designcenter.v1.ProviderDependency) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.ProviderDependency other) { + if (other == com.google.cloud.designcenter.v1.ProviderDependency.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getProviderNamespace().isEmpty()) { + providerNamespace_ = other.providerNamespace_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getSource().isEmpty()) { + source_ = other.source_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + 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 18: + { + providerNamespace_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + source_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + version_ = 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_ = ""; + + /** + * + * + *
+     * Optional. Name of the provider.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The name. + */ + public java.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; + } + } + + /** + * + * + *
+     * Optional. Name of the provider.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+     * Optional. Name of the provider.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + + /** + * + * + *
+     * Optional. Name of the provider.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Name of the provider.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 providerNamespace_ = ""; + + /** + * + * + *
+     * Optional. Namespace of the provider (e.g., "hashicorp").
+     * 
+ * + * string provider_namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The providerNamespace. + */ + public java.lang.String getProviderNamespace() { + java.lang.Object ref = providerNamespace_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + providerNamespace_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Namespace of the provider (e.g., "hashicorp").
+     * 
+ * + * string provider_namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for providerNamespace. + */ + public com.google.protobuf.ByteString getProviderNamespaceBytes() { + java.lang.Object ref = providerNamespace_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + providerNamespace_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Namespace of the provider (e.g., "hashicorp").
+     * 
+ * + * string provider_namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The providerNamespace to set. + * @return This builder for chaining. + */ + public Builder setProviderNamespace(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + providerNamespace_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Namespace of the provider (e.g., "hashicorp").
+     * 
+ * + * string provider_namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearProviderNamespace() { + providerNamespace_ = getDefaultInstance().getProviderNamespace(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Namespace of the provider (e.g., "hashicorp").
+     * 
+ * + * string provider_namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for providerNamespace to set. + * @return This builder for chaining. + */ + public Builder setProviderNamespaceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + providerNamespace_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object source_ = ""; + + /** + * + * + *
+     * Optional. Source path of the provider.
+     * 
+ * + * string source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The source. + */ + public java.lang.String getSource() { + java.lang.Object ref = source_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + source_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Source path of the provider.
+     * 
+ * + * string source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for source. + */ + public com.google.protobuf.ByteString getSourceBytes() { + java.lang.Object ref = source_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + source_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Source path of the provider.
+     * 
+ * + * string source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The source to set. + * @return This builder for chaining. + */ + public Builder setSource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Source path of the provider.
+     * 
+ * + * string source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSource() { + source_ = getDefaultInstance().getSource(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Source path of the provider.
+     * 
+ * + * string source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for source to set. + * @return This builder for chaining. + */ + public Builder setSourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + source_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object version_ = ""; + + /** + * + * + *
+     * Optional. Version constraints for the provider.
+     * 
+ * + * string version = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+     * Optional. Version constraints for the provider.
+     * 
+ * + * string version = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+     * Optional. Version constraints for the provider.
+     * 
+ * + * string version = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + + /** + * + * + *
+     * Optional. Version constraints for the provider.
+     * 
+ * + * string version = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearVersion() { + version_ = getDefaultInstance().getVersion(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Version constraints for the provider.
+     * 
+ * + * string version = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ProviderDependency) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ProviderDependency) + private static final com.google.cloud.designcenter.v1.ProviderDependency DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.ProviderDependency(); + } + + public static com.google.cloud.designcenter.v1.ProviderDependency getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProviderDependency parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ProviderDependency getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ProviderDependencyOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ProviderDependencyOrBuilder.java new file mode 100644 index 000000000000..461c3b073436 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ProviderDependencyOrBuilder.java @@ -0,0 +1,132 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ProviderDependencyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ProviderDependency) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Name of the provider.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Optional. Name of the provider.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. Namespace of the provider (e.g., "hashicorp").
+   * 
+ * + * string provider_namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The providerNamespace. + */ + java.lang.String getProviderNamespace(); + + /** + * + * + *
+   * Optional. Namespace of the provider (e.g., "hashicorp").
+   * 
+ * + * string provider_namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for providerNamespace. + */ + com.google.protobuf.ByteString getProviderNamespaceBytes(); + + /** + * + * + *
+   * Optional. Source path of the provider.
+   * 
+ * + * string source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The source. + */ + java.lang.String getSource(); + + /** + * + * + *
+   * Optional. Source path of the provider.
+   * 
+ * + * string source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for source. + */ + com.google.protobuf.ByteString getSourceBytes(); + + /** + * + * + *
+   * Optional. Version constraints for the provider.
+   * 
+ * + * string version = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The version. + */ + java.lang.String getVersion(); + + /** + * + * + *
+   * Optional. Version constraints for the provider.
+   * 
+ * + * string version = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for version. + */ + com.google.protobuf.ByteString getVersionBytes(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ProviderVersion.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ProviderVersion.java new file mode 100644 index 000000000000..3181d712498b --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ProviderVersion.java @@ -0,0 +1,799 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * ProviderVersion defines the required version for a provider.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ProviderVersion} + */ +@com.google.protobuf.Generated +public final class ProviderVersion extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ProviderVersion) + ProviderVersionOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ProviderVersion"); + } + + // Use ProviderVersion.newBuilder() to construct. + private ProviderVersion(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ProviderVersion() { + source_ = ""; + version_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_ProviderVersion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_ProviderVersion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ProviderVersion.class, + com.google.cloud.designcenter.v1.ProviderVersion.Builder.class); + } + + public static final int SOURCE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object source_ = ""; + + /** + * + * + *
+   * Output only. The provider source in the format:
+   * [hostname]/[namespace]/[name]. Hostname is optional, and defaults to the
+   * Terraform registry.
+   * 
+ * + * string source = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The source. + */ + @java.lang.Override + public java.lang.String getSource() { + java.lang.Object ref = source_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + source_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The provider source in the format:
+   * [hostname]/[namespace]/[name]. Hostname is optional, and defaults to the
+   * Terraform registry.
+   * 
+ * + * string source = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for source. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSourceBytes() { + java.lang.Object ref = source_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + source_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VERSION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object version_ = ""; + + /** + * + * + *
+   * Output only. Version constraint string.
+   * 
+ * + * string version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+   * Output only. Version constraint string.
+   * 
+ * + * string version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + 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.GeneratedMessage.isStringEmpty(source_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, source_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(version_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, version_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(source_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, source_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(version_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, version_); + } + 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.designcenter.v1.ProviderVersion)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ProviderVersion other = + (com.google.cloud.designcenter.v1.ProviderVersion) obj; + + if (!getSource().equals(other.getSource())) return false; + if (!getVersion().equals(other.getVersion())) 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) + SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getSource().hashCode(); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.ProviderVersion parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ProviderVersion 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.designcenter.v1.ProviderVersion parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ProviderVersion parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ProviderVersion parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ProviderVersion parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ProviderVersion parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ProviderVersion parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ProviderVersion parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ProviderVersion parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ProviderVersion parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ProviderVersion parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ProviderVersion 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * ProviderVersion defines the required version for a provider.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ProviderVersion} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ProviderVersion) + com.google.cloud.designcenter.v1.ProviderVersionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_ProviderVersion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_ProviderVersion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ProviderVersion.class, + com.google.cloud.designcenter.v1.ProviderVersion.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.ProviderVersion.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + source_ = ""; + version_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_ProviderVersion_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ProviderVersion getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ProviderVersion.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ProviderVersion build() { + com.google.cloud.designcenter.v1.ProviderVersion result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ProviderVersion buildPartial() { + com.google.cloud.designcenter.v1.ProviderVersion result = + new com.google.cloud.designcenter.v1.ProviderVersion(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.ProviderVersion result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.source_ = source_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.version_ = version_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.ProviderVersion) { + return mergeFrom((com.google.cloud.designcenter.v1.ProviderVersion) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.ProviderVersion other) { + if (other == com.google.cloud.designcenter.v1.ProviderVersion.getDefaultInstance()) + return this; + if (!other.getSource().isEmpty()) { + source_ = other.source_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + 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: + { + source_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + version_ = 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 source_ = ""; + + /** + * + * + *
+     * Output only. The provider source in the format:
+     * [hostname]/[namespace]/[name]. Hostname is optional, and defaults to the
+     * Terraform registry.
+     * 
+ * + * string source = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The source. + */ + public java.lang.String getSource() { + java.lang.Object ref = source_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + source_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The provider source in the format:
+     * [hostname]/[namespace]/[name]. Hostname is optional, and defaults to the
+     * Terraform registry.
+     * 
+ * + * string source = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for source. + */ + public com.google.protobuf.ByteString getSourceBytes() { + java.lang.Object ref = source_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + source_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The provider source in the format:
+     * [hostname]/[namespace]/[name]. Hostname is optional, and defaults to the
+     * Terraform registry.
+     * 
+ * + * string source = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The source to set. + * @return This builder for chaining. + */ + public Builder setSource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The provider source in the format:
+     * [hostname]/[namespace]/[name]. Hostname is optional, and defaults to the
+     * Terraform registry.
+     * 
+ * + * string source = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSource() { + source_ = getDefaultInstance().getSource(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The provider source in the format:
+     * [hostname]/[namespace]/[name]. Hostname is optional, and defaults to the
+     * Terraform registry.
+     * 
+ * + * string source = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for source to set. + * @return This builder for chaining. + */ + public Builder setSourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + source_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object version_ = ""; + + /** + * + * + *
+     * Output only. Version constraint string.
+     * 
+ * + * string version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+     * Output only. Version constraint string.
+     * 
+ * + * string version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+     * Output only. Version constraint string.
+     * 
+ * + * string version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Version constraint string.
+     * 
+ * + * string version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearVersion() { + version_ = getDefaultInstance().getVersion(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Version constraint string.
+     * 
+ * + * string version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ProviderVersion) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ProviderVersion) + private static final com.google.cloud.designcenter.v1.ProviderVersion DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.ProviderVersion(); + } + + public static com.google.cloud.designcenter.v1.ProviderVersion getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProviderVersion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ProviderVersion getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ProviderVersionOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ProviderVersionOrBuilder.java new file mode 100644 index 000000000000..367d300a65ce --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ProviderVersionOrBuilder.java @@ -0,0 +1,84 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ProviderVersionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ProviderVersion) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The provider source in the format:
+   * [hostname]/[namespace]/[name]. Hostname is optional, and defaults to the
+   * Terraform registry.
+   * 
+ * + * string source = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The source. + */ + java.lang.String getSource(); + + /** + * + * + *
+   * Output only. The provider source in the format:
+   * [hostname]/[namespace]/[name]. Hostname is optional, and defaults to the
+   * Terraform registry.
+   * 
+ * + * string source = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for source. + */ + com.google.protobuf.ByteString getSourceBytes(); + + /** + * + * + *
+   * Output only. Version constraint string.
+   * 
+ * + * string version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The version. + */ + java.lang.String getVersion(); + + /** + * + * + *
+   * Output only. Version constraint string.
+   * 
+ * + * string version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for version. + */ + com.google.protobuf.ByteString getVersionBytes(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ProvisionDeploymentGroupOperationMetadata.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ProvisionDeploymentGroupOperationMetadata.java new file mode 100644 index 000000000000..e98b8ee239e7 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ProvisionDeploymentGroupOperationMetadata.java @@ -0,0 +1,1432 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/designcenter.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Represents the Provision Deployment Group operation metadata.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata} + */ +@com.google.protobuf.Generated +public final class ProvisionDeploymentGroupOperationMetadata + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata) + ProvisionDeploymentGroupOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ProvisionDeploymentGroupOperationMetadata"); + } + + // Use ProvisionDeploymentGroupOperationMetadata.newBuilder() to construct. + private ProvisionDeploymentGroupOperationMetadata( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ProvisionDeploymentGroupOperationMetadata() { + deploymentStep_ = 0; + deploymentUnitProgress_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DesigncenterProto + .internal_static_google_cloud_designcenter_v1_ProvisionDeploymentGroupOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DesigncenterProto + .internal_static_google_cloud_designcenter_v1_ProvisionDeploymentGroupOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata.class, + com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata.Builder + .class); + } + + /** + * + * + *
+   * Current Deployment Operation Step
+   * 
+ * + * Protobuf enum {@code + * google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata.DeploymentStep} + */ + public enum DeploymentStep implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified deployment step.
+     * 
+ * + * DEPLOYMENT_STEP_UNSPECIFIED = 0; + */ + DEPLOYMENT_STEP_UNSPECIFIED(0), + /** + * + * + *
+     * Generating Terraform content for the application.
+     * 
+ * + * GENERATING_TERRAFORM_CONTENT = 1; + */ + GENERATING_TERRAFORM_CONTENT(1), + /** + * + * + *
+     * Deploying the application.
+     * 
+ * + * DEPLOYING = 2; + */ + DEPLOYING(2), + /** + * + * + *
+     * Operation was successful.
+     * 
+ * + * SUCCEEDED = 3; + */ + SUCCEEDED(3), + /** + * + * + *
+     * Operation failed.
+     * 
+ * + * FAILED = 4; + */ + FAILED(4), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DeploymentStep"); + } + + /** + * + * + *
+     * Unspecified deployment step.
+     * 
+ * + * DEPLOYMENT_STEP_UNSPECIFIED = 0; + */ + public static final int DEPLOYMENT_STEP_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Generating Terraform content for the application.
+     * 
+ * + * GENERATING_TERRAFORM_CONTENT = 1; + */ + public static final int GENERATING_TERRAFORM_CONTENT_VALUE = 1; + + /** + * + * + *
+     * Deploying the application.
+     * 
+ * + * DEPLOYING = 2; + */ + public static final int DEPLOYING_VALUE = 2; + + /** + * + * + *
+     * Operation was successful.
+     * 
+ * + * SUCCEEDED = 3; + */ + public static final int SUCCEEDED_VALUE = 3; + + /** + * + * + *
+     * Operation failed.
+     * 
+ * + * 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 DeploymentStep 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 DeploymentStep forNumber(int value) { + switch (value) { + case 0: + return DEPLOYMENT_STEP_UNSPECIFIED; + case 1: + return GENERATING_TERRAFORM_CONTENT; + case 2: + return DEPLOYING; + case 3: + return SUCCEEDED; + 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 DeploymentStep findValueByNumber(int number) { + return DeploymentStep.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata + .getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final DeploymentStep[] VALUES = values(); + + public static DeploymentStep 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 DeploymentStep(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata.DeploymentStep) + } + + public static final int DEPLOYMENT_STEP_FIELD_NUMBER = 1; + private int deploymentStep_ = 0; + + /** + * + * + *
+   * Output only. Current step of deploying composite application
+   * 
+ * + * + * .google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata.DeploymentStep deployment_step = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for deploymentStep. + */ + @java.lang.Override + public int getDeploymentStepValue() { + return deploymentStep_; + } + + /** + * + * + *
+   * Output only. Current step of deploying composite application
+   * 
+ * + * + * .google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata.DeploymentStep deployment_step = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deploymentStep. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata.DeploymentStep + getDeploymentStep() { + com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata.DeploymentStep + result = + com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata + .DeploymentStep.forNumber(deploymentStep_); + return result == null + ? com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata.DeploymentStep + .UNRECOGNIZED + : result; + } + + public static final int DEPLOYMENT_UNIT_PROGRESS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List + deploymentUnitProgress_; + + /** + * + * + *
+   * Output only. List of deployment unit deployment progress
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.DeploymentUnitProgress deployment_unit_progress = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getDeploymentUnitProgressList() { + return deploymentUnitProgress_; + } + + /** + * + * + *
+   * Output only. List of deployment unit deployment progress
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.DeploymentUnitProgress deployment_unit_progress = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getDeploymentUnitProgressOrBuilderList() { + return deploymentUnitProgress_; + } + + /** + * + * + *
+   * Output only. List of deployment unit deployment progress
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.DeploymentUnitProgress deployment_unit_progress = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getDeploymentUnitProgressCount() { + return deploymentUnitProgress_.size(); + } + + /** + * + * + *
+   * Output only. List of deployment unit deployment progress
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.DeploymentUnitProgress deployment_unit_progress = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.DeploymentUnitProgress getDeploymentUnitProgress( + int index) { + return deploymentUnitProgress_.get(index); + } + + /** + * + * + *
+   * Output only. List of deployment unit deployment progress
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.DeploymentUnitProgress deployment_unit_progress = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.DeploymentUnitProgressOrBuilder + getDeploymentUnitProgressOrBuilder(int index) { + return deploymentUnitProgress_.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 (deploymentStep_ + != com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata.DeploymentStep + .DEPLOYMENT_STEP_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, deploymentStep_); + } + for (int i = 0; i < deploymentUnitProgress_.size(); i++) { + output.writeMessage(2, deploymentUnitProgress_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (deploymentStep_ + != com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata.DeploymentStep + .DEPLOYMENT_STEP_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, deploymentStep_); + } + for (int i = 0; i < deploymentUnitProgress_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, deploymentUnitProgress_.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.designcenter.v1.ProvisionDeploymentGroupOperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata other = + (com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata) obj; + + if (deploymentStep_ != other.deploymentStep_) return false; + if (!getDeploymentUnitProgressList().equals(other.getDeploymentUnitProgressList())) + 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) + DEPLOYMENT_STEP_FIELD_NUMBER; + hash = (53 * hash) + deploymentStep_; + if (getDeploymentUnitProgressCount() > 0) { + hash = (37 * hash) + DEPLOYMENT_UNIT_PROGRESS_FIELD_NUMBER; + hash = (53 * hash) + getDeploymentUnitProgressList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata + 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.designcenter.v1.ProvisionDeploymentGroupOperationMetadata + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ProvisionDeploymentGroupOperationMetadata 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Represents the Provision Deployment Group operation metadata.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata) + com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DesigncenterProto + .internal_static_google_cloud_designcenter_v1_ProvisionDeploymentGroupOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DesigncenterProto + .internal_static_google_cloud_designcenter_v1_ProvisionDeploymentGroupOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata.class, + com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata.Builder + .class); + } + + // Construct using + // com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + deploymentStep_ = 0; + if (deploymentUnitProgressBuilder_ == null) { + deploymentUnitProgress_ = java.util.Collections.emptyList(); + } else { + deploymentUnitProgress_ = null; + deploymentUnitProgressBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.DesigncenterProto + .internal_static_google_cloud_designcenter_v1_ProvisionDeploymentGroupOperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata build() { + com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata + buildPartial() { + com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata result = + new com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata result) { + if (deploymentUnitProgressBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + deploymentUnitProgress_ = java.util.Collections.unmodifiableList(deploymentUnitProgress_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.deploymentUnitProgress_ = deploymentUnitProgress_; + } else { + result.deploymentUnitProgress_ = deploymentUnitProgressBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.deploymentStep_ = deploymentStep_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata) { + return mergeFrom( + (com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata other) { + if (other + == com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata + .getDefaultInstance()) return this; + if (other.deploymentStep_ != 0) { + setDeploymentStepValue(other.getDeploymentStepValue()); + } + if (deploymentUnitProgressBuilder_ == null) { + if (!other.deploymentUnitProgress_.isEmpty()) { + if (deploymentUnitProgress_.isEmpty()) { + deploymentUnitProgress_ = other.deploymentUnitProgress_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureDeploymentUnitProgressIsMutable(); + deploymentUnitProgress_.addAll(other.deploymentUnitProgress_); + } + onChanged(); + } + } else { + if (!other.deploymentUnitProgress_.isEmpty()) { + if (deploymentUnitProgressBuilder_.isEmpty()) { + deploymentUnitProgressBuilder_.dispose(); + deploymentUnitProgressBuilder_ = null; + deploymentUnitProgress_ = other.deploymentUnitProgress_; + bitField0_ = (bitField0_ & ~0x00000002); + deploymentUnitProgressBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetDeploymentUnitProgressFieldBuilder() + : null; + } else { + deploymentUnitProgressBuilder_.addAllMessages(other.deploymentUnitProgress_); + } + } + } + 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: + { + deploymentStep_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + com.google.cloud.designcenter.v1.DeploymentUnitProgress m = + input.readMessage( + com.google.cloud.designcenter.v1.DeploymentUnitProgress.parser(), + extensionRegistry); + if (deploymentUnitProgressBuilder_ == null) { + ensureDeploymentUnitProgressIsMutable(); + deploymentUnitProgress_.add(m); + } else { + deploymentUnitProgressBuilder_.addMessage(m); + } + 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 int deploymentStep_ = 0; + + /** + * + * + *
+     * Output only. Current step of deploying composite application
+     * 
+ * + * + * .google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata.DeploymentStep deployment_step = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for deploymentStep. + */ + @java.lang.Override + public int getDeploymentStepValue() { + return deploymentStep_; + } + + /** + * + * + *
+     * Output only. Current step of deploying composite application
+     * 
+ * + * + * .google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata.DeploymentStep deployment_step = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for deploymentStep to set. + * @return This builder for chaining. + */ + public Builder setDeploymentStepValue(int value) { + deploymentStep_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Current step of deploying composite application
+     * 
+ * + * + * .google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata.DeploymentStep deployment_step = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deploymentStep. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata.DeploymentStep + getDeploymentStep() { + com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata.DeploymentStep + result = + com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata + .DeploymentStep.forNumber(deploymentStep_); + return result == null + ? com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata + .DeploymentStep.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Output only. Current step of deploying composite application
+     * 
+ * + * + * .google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata.DeploymentStep deployment_step = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The deploymentStep to set. + * @return This builder for chaining. + */ + public Builder setDeploymentStep( + com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata.DeploymentStep + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + deploymentStep_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Current step of deploying composite application
+     * 
+ * + * + * .google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata.DeploymentStep deployment_step = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearDeploymentStep() { + bitField0_ = (bitField0_ & ~0x00000001); + deploymentStep_ = 0; + onChanged(); + return this; + } + + private java.util.List + deploymentUnitProgress_ = java.util.Collections.emptyList(); + + private void ensureDeploymentUnitProgressIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + deploymentUnitProgress_ = + new java.util.ArrayList( + deploymentUnitProgress_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.DeploymentUnitProgress, + com.google.cloud.designcenter.v1.DeploymentUnitProgress.Builder, + com.google.cloud.designcenter.v1.DeploymentUnitProgressOrBuilder> + deploymentUnitProgressBuilder_; + + /** + * + * + *
+     * Output only. List of deployment unit deployment progress
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.DeploymentUnitProgress deployment_unit_progress = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getDeploymentUnitProgressList() { + if (deploymentUnitProgressBuilder_ == null) { + return java.util.Collections.unmodifiableList(deploymentUnitProgress_); + } else { + return deploymentUnitProgressBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Output only. List of deployment unit deployment progress
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.DeploymentUnitProgress deployment_unit_progress = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getDeploymentUnitProgressCount() { + if (deploymentUnitProgressBuilder_ == null) { + return deploymentUnitProgress_.size(); + } else { + return deploymentUnitProgressBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Output only. List of deployment unit deployment progress
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.DeploymentUnitProgress deployment_unit_progress = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.DeploymentUnitProgress getDeploymentUnitProgress( + int index) { + if (deploymentUnitProgressBuilder_ == null) { + return deploymentUnitProgress_.get(index); + } else { + return deploymentUnitProgressBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Output only. List of deployment unit deployment progress
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.DeploymentUnitProgress deployment_unit_progress = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDeploymentUnitProgress( + int index, com.google.cloud.designcenter.v1.DeploymentUnitProgress value) { + if (deploymentUnitProgressBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeploymentUnitProgressIsMutable(); + deploymentUnitProgress_.set(index, value); + onChanged(); + } else { + deploymentUnitProgressBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. List of deployment unit deployment progress
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.DeploymentUnitProgress deployment_unit_progress = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDeploymentUnitProgress( + int index, + com.google.cloud.designcenter.v1.DeploymentUnitProgress.Builder builderForValue) { + if (deploymentUnitProgressBuilder_ == null) { + ensureDeploymentUnitProgressIsMutable(); + deploymentUnitProgress_.set(index, builderForValue.build()); + onChanged(); + } else { + deploymentUnitProgressBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. List of deployment unit deployment progress
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.DeploymentUnitProgress deployment_unit_progress = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDeploymentUnitProgress( + com.google.cloud.designcenter.v1.DeploymentUnitProgress value) { + if (deploymentUnitProgressBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeploymentUnitProgressIsMutable(); + deploymentUnitProgress_.add(value); + onChanged(); + } else { + deploymentUnitProgressBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Output only. List of deployment unit deployment progress
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.DeploymentUnitProgress deployment_unit_progress = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDeploymentUnitProgress( + int index, com.google.cloud.designcenter.v1.DeploymentUnitProgress value) { + if (deploymentUnitProgressBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeploymentUnitProgressIsMutable(); + deploymentUnitProgress_.add(index, value); + onChanged(); + } else { + deploymentUnitProgressBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. List of deployment unit deployment progress
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.DeploymentUnitProgress deployment_unit_progress = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDeploymentUnitProgress( + com.google.cloud.designcenter.v1.DeploymentUnitProgress.Builder builderForValue) { + if (deploymentUnitProgressBuilder_ == null) { + ensureDeploymentUnitProgressIsMutable(); + deploymentUnitProgress_.add(builderForValue.build()); + onChanged(); + } else { + deploymentUnitProgressBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. List of deployment unit deployment progress
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.DeploymentUnitProgress deployment_unit_progress = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDeploymentUnitProgress( + int index, + com.google.cloud.designcenter.v1.DeploymentUnitProgress.Builder builderForValue) { + if (deploymentUnitProgressBuilder_ == null) { + ensureDeploymentUnitProgressIsMutable(); + deploymentUnitProgress_.add(index, builderForValue.build()); + onChanged(); + } else { + deploymentUnitProgressBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. List of deployment unit deployment progress
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.DeploymentUnitProgress deployment_unit_progress = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllDeploymentUnitProgress( + java.lang.Iterable + values) { + if (deploymentUnitProgressBuilder_ == null) { + ensureDeploymentUnitProgressIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, deploymentUnitProgress_); + onChanged(); + } else { + deploymentUnitProgressBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Output only. List of deployment unit deployment progress
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.DeploymentUnitProgress deployment_unit_progress = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDeploymentUnitProgress() { + if (deploymentUnitProgressBuilder_ == null) { + deploymentUnitProgress_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + deploymentUnitProgressBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Output only. List of deployment unit deployment progress
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.DeploymentUnitProgress deployment_unit_progress = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeDeploymentUnitProgress(int index) { + if (deploymentUnitProgressBuilder_ == null) { + ensureDeploymentUnitProgressIsMutable(); + deploymentUnitProgress_.remove(index); + onChanged(); + } else { + deploymentUnitProgressBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Output only. List of deployment unit deployment progress
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.DeploymentUnitProgress deployment_unit_progress = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.DeploymentUnitProgress.Builder + getDeploymentUnitProgressBuilder(int index) { + return internalGetDeploymentUnitProgressFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Output only. List of deployment unit deployment progress
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.DeploymentUnitProgress deployment_unit_progress = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.DeploymentUnitProgressOrBuilder + getDeploymentUnitProgressOrBuilder(int index) { + if (deploymentUnitProgressBuilder_ == null) { + return deploymentUnitProgress_.get(index); + } else { + return deploymentUnitProgressBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Output only. List of deployment unit deployment progress
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.DeploymentUnitProgress deployment_unit_progress = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends com.google.cloud.designcenter.v1.DeploymentUnitProgressOrBuilder> + getDeploymentUnitProgressOrBuilderList() { + if (deploymentUnitProgressBuilder_ != null) { + return deploymentUnitProgressBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(deploymentUnitProgress_); + } + } + + /** + * + * + *
+     * Output only. List of deployment unit deployment progress
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.DeploymentUnitProgress deployment_unit_progress = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.DeploymentUnitProgress.Builder + addDeploymentUnitProgressBuilder() { + return internalGetDeploymentUnitProgressFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.DeploymentUnitProgress.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. List of deployment unit deployment progress
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.DeploymentUnitProgress deployment_unit_progress = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.DeploymentUnitProgress.Builder + addDeploymentUnitProgressBuilder(int index) { + return internalGetDeploymentUnitProgressFieldBuilder() + .addBuilder( + index, com.google.cloud.designcenter.v1.DeploymentUnitProgress.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. List of deployment unit deployment progress
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.DeploymentUnitProgress deployment_unit_progress = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getDeploymentUnitProgressBuilderList() { + return internalGetDeploymentUnitProgressFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.DeploymentUnitProgress, + com.google.cloud.designcenter.v1.DeploymentUnitProgress.Builder, + com.google.cloud.designcenter.v1.DeploymentUnitProgressOrBuilder> + internalGetDeploymentUnitProgressFieldBuilder() { + if (deploymentUnitProgressBuilder_ == null) { + deploymentUnitProgressBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.DeploymentUnitProgress, + com.google.cloud.designcenter.v1.DeploymentUnitProgress.Builder, + com.google.cloud.designcenter.v1.DeploymentUnitProgressOrBuilder>( + deploymentUnitProgress_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + deploymentUnitProgress_ = null; + } + return deploymentUnitProgressBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata) + private static final com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata(); + } + + public static com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProvisionDeploymentGroupOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ProvisionDeploymentGroupOperationMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ProvisionDeploymentGroupOperationMetadataOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ProvisionDeploymentGroupOperationMetadataOrBuilder.java new file mode 100644 index 000000000000..0b19e407b183 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ProvisionDeploymentGroupOperationMetadataOrBuilder.java @@ -0,0 +1,127 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/designcenter.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ProvisionDeploymentGroupOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Current step of deploying composite application
+   * 
+ * + * + * .google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata.DeploymentStep deployment_step = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for deploymentStep. + */ + int getDeploymentStepValue(); + + /** + * + * + *
+   * Output only. Current step of deploying composite application
+   * 
+ * + * + * .google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata.DeploymentStep deployment_step = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deploymentStep. + */ + com.google.cloud.designcenter.v1.ProvisionDeploymentGroupOperationMetadata.DeploymentStep + getDeploymentStep(); + + /** + * + * + *
+   * Output only. List of deployment unit deployment progress
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.DeploymentUnitProgress deployment_unit_progress = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getDeploymentUnitProgressList(); + + /** + * + * + *
+   * Output only. List of deployment unit deployment progress
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.DeploymentUnitProgress deployment_unit_progress = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.DeploymentUnitProgress getDeploymentUnitProgress(int index); + + /** + * + * + *
+   * Output only. List of deployment unit deployment progress
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.DeploymentUnitProgress deployment_unit_progress = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getDeploymentUnitProgressCount(); + + /** + * + * + *
+   * Output only. List of deployment unit deployment progress
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.DeploymentUnitProgress deployment_unit_progress = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getDeploymentUnitProgressOrBuilderList(); + + /** + * + * + *
+   * Output only. List of deployment unit deployment progress
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.DeploymentUnitProgress deployment_unit_progress = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.DeploymentUnitProgressOrBuilder + getDeploymentUnitProgressOrBuilder(int index); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RecommendIAMRolesRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RecommendIAMRolesRequest.java new file mode 100644 index 000000000000..de3354884cac --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RecommendIAMRolesRequest.java @@ -0,0 +1,625 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Request message for `RecommendIAMRoles`.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.RecommendIAMRolesRequest} + */ +@com.google.protobuf.Generated +public final class RecommendIAMRolesRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.RecommendIAMRolesRequest) + RecommendIAMRolesRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "RecommendIAMRolesRequest"); + } + + // Use RecommendIAMRolesRequest.newBuilder() to construct. + private RecommendIAMRolesRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RecommendIAMRolesRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_RecommendIAMRolesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_RecommendIAMRolesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.RecommendIAMRolesRequest.class, + com.google.cloud.designcenter.v1.RecommendIAMRolesRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The name of the application resource for which to recommend IAM
+   * roles. Format:
+   * projects/$project/locations/$location/spaces/$space/applications/$application
+   * 
+ * + * + * 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 application resource for which to recommend IAM
+   * roles. Format:
+   * projects/$project/locations/$location/spaces/$space/applications/$application
+   * 
+ * + * + * 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.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.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.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.designcenter.v1.RecommendIAMRolesRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.RecommendIAMRolesRequest other = + (com.google.cloud.designcenter.v1.RecommendIAMRolesRequest) 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.designcenter.v1.RecommendIAMRolesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.RecommendIAMRolesRequest 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.designcenter.v1.RecommendIAMRolesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.RecommendIAMRolesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.RecommendIAMRolesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.RecommendIAMRolesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.RecommendIAMRolesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.RecommendIAMRolesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.RecommendIAMRolesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.RecommendIAMRolesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.RecommendIAMRolesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.RecommendIAMRolesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.RecommendIAMRolesRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for `RecommendIAMRoles`.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.RecommendIAMRolesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.RecommendIAMRolesRequest) + com.google.cloud.designcenter.v1.RecommendIAMRolesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_RecommendIAMRolesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_RecommendIAMRolesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.RecommendIAMRolesRequest.class, + com.google.cloud.designcenter.v1.RecommendIAMRolesRequest.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.RecommendIAMRolesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.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.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_RecommendIAMRolesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.RecommendIAMRolesRequest getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.RecommendIAMRolesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.RecommendIAMRolesRequest build() { + com.google.cloud.designcenter.v1.RecommendIAMRolesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.RecommendIAMRolesRequest buildPartial() { + com.google.cloud.designcenter.v1.RecommendIAMRolesRequest result = + new com.google.cloud.designcenter.v1.RecommendIAMRolesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.RecommendIAMRolesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.RecommendIAMRolesRequest) { + return mergeFrom((com.google.cloud.designcenter.v1.RecommendIAMRolesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.RecommendIAMRolesRequest other) { + if (other == com.google.cloud.designcenter.v1.RecommendIAMRolesRequest.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 application resource for which to recommend IAM
+     * roles. Format:
+     * projects/$project/locations/$location/spaces/$space/applications/$application
+     * 
+ * + * + * 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 application resource for which to recommend IAM
+     * roles. Format:
+     * projects/$project/locations/$location/spaces/$space/applications/$application
+     * 
+ * + * + * 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 application resource for which to recommend IAM
+     * roles. Format:
+     * projects/$project/locations/$location/spaces/$space/applications/$application
+     * 
+ * + * + * 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 application resource for which to recommend IAM
+     * roles. Format:
+     * projects/$project/locations/$location/spaces/$space/applications/$application
+     * 
+ * + * + * 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 application resource for which to recommend IAM
+     * roles. Format:
+     * projects/$project/locations/$location/spaces/$space/applications/$application
+     * 
+ * + * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.RecommendIAMRolesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.RecommendIAMRolesRequest) + private static final com.google.cloud.designcenter.v1.RecommendIAMRolesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.RecommendIAMRolesRequest(); + } + + public static com.google.cloud.designcenter.v1.RecommendIAMRolesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecommendIAMRolesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.RecommendIAMRolesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RecommendIAMRolesRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RecommendIAMRolesRequestOrBuilder.java new file mode 100644 index 000000000000..c4f36dfbb45f --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RecommendIAMRolesRequestOrBuilder.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface RecommendIAMRolesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.RecommendIAMRolesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the application resource for which to recommend IAM
+   * roles. Format:
+   * projects/$project/locations/$location/spaces/$space/applications/$application
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The name of the application resource for which to recommend IAM
+   * roles. Format:
+   * projects/$project/locations/$location/spaces/$space/applications/$application
+   * 
+ * + * + * 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-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RecommendIAMRolesResponse.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RecommendIAMRolesResponse.java new file mode 100644 index 000000000000..88e577cf65b3 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RecommendIAMRolesResponse.java @@ -0,0 +1,1013 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Response message for `RecommendIAMRoles`.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.RecommendIAMRolesResponse} + */ +@com.google.protobuf.Generated +public final class RecommendIAMRolesResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.RecommendIAMRolesResponse) + RecommendIAMRolesResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "RecommendIAMRolesResponse"); + } + + // Use RecommendIAMRolesResponse.newBuilder() to construct. + private RecommendIAMRolesResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RecommendIAMRolesResponse() { + projectConfigurations_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_RecommendIAMRolesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_RecommendIAMRolesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.RecommendIAMRolesResponse.class, + com.google.cloud.designcenter.v1.RecommendIAMRolesResponse.Builder.class); + } + + public static final int PROJECT_CONFIGURATIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + projectConfigurations_; + + /** + * + * + *
+   * A list of project configurations containing recommended IAM roles and
+   * required APIs for each target Google Cloud project in the application
+   * infrastructure.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.RolesAndApisConfig project_configurations = 1; + * + */ + @java.lang.Override + public java.util.List + getProjectConfigurationsList() { + return projectConfigurations_; + } + + /** + * + * + *
+   * A list of project configurations containing recommended IAM roles and
+   * required APIs for each target Google Cloud project in the application
+   * infrastructure.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.RolesAndApisConfig project_configurations = 1; + * + */ + @java.lang.Override + public java.util.List + getProjectConfigurationsOrBuilderList() { + return projectConfigurations_; + } + + /** + * + * + *
+   * A list of project configurations containing recommended IAM roles and
+   * required APIs for each target Google Cloud project in the application
+   * infrastructure.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.RolesAndApisConfig project_configurations = 1; + * + */ + @java.lang.Override + public int getProjectConfigurationsCount() { + return projectConfigurations_.size(); + } + + /** + * + * + *
+   * A list of project configurations containing recommended IAM roles and
+   * required APIs for each target Google Cloud project in the application
+   * infrastructure.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.RolesAndApisConfig project_configurations = 1; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.RolesAndApisConfig getProjectConfigurations(int index) { + return projectConfigurations_.get(index); + } + + /** + * + * + *
+   * A list of project configurations containing recommended IAM roles and
+   * required APIs for each target Google Cloud project in the application
+   * infrastructure.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.RolesAndApisConfig project_configurations = 1; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.RolesAndApisConfigOrBuilder + getProjectConfigurationsOrBuilder(int index) { + return projectConfigurations_.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 < projectConfigurations_.size(); i++) { + output.writeMessage(1, projectConfigurations_.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 < projectConfigurations_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, projectConfigurations_.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.designcenter.v1.RecommendIAMRolesResponse)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.RecommendIAMRolesResponse other = + (com.google.cloud.designcenter.v1.RecommendIAMRolesResponse) obj; + + if (!getProjectConfigurationsList().equals(other.getProjectConfigurationsList())) 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 (getProjectConfigurationsCount() > 0) { + hash = (37 * hash) + PROJECT_CONFIGURATIONS_FIELD_NUMBER; + hash = (53 * hash) + getProjectConfigurationsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.RecommendIAMRolesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.RecommendIAMRolesResponse 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.designcenter.v1.RecommendIAMRolesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.RecommendIAMRolesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.RecommendIAMRolesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.RecommendIAMRolesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.RecommendIAMRolesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.RecommendIAMRolesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.RecommendIAMRolesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.RecommendIAMRolesResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.RecommendIAMRolesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.RecommendIAMRolesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.RecommendIAMRolesResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response message for `RecommendIAMRoles`.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.RecommendIAMRolesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.RecommendIAMRolesResponse) + com.google.cloud.designcenter.v1.RecommendIAMRolesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_RecommendIAMRolesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_RecommendIAMRolesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.RecommendIAMRolesResponse.class, + com.google.cloud.designcenter.v1.RecommendIAMRolesResponse.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.RecommendIAMRolesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (projectConfigurationsBuilder_ == null) { + projectConfigurations_ = java.util.Collections.emptyList(); + } else { + projectConfigurations_ = null; + projectConfigurationsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_RecommendIAMRolesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.RecommendIAMRolesResponse getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.RecommendIAMRolesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.RecommendIAMRolesResponse build() { + com.google.cloud.designcenter.v1.RecommendIAMRolesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.RecommendIAMRolesResponse buildPartial() { + com.google.cloud.designcenter.v1.RecommendIAMRolesResponse result = + new com.google.cloud.designcenter.v1.RecommendIAMRolesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.designcenter.v1.RecommendIAMRolesResponse result) { + if (projectConfigurationsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + projectConfigurations_ = java.util.Collections.unmodifiableList(projectConfigurations_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.projectConfigurations_ = projectConfigurations_; + } else { + result.projectConfigurations_ = projectConfigurationsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.designcenter.v1.RecommendIAMRolesResponse result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.RecommendIAMRolesResponse) { + return mergeFrom((com.google.cloud.designcenter.v1.RecommendIAMRolesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.RecommendIAMRolesResponse other) { + if (other == com.google.cloud.designcenter.v1.RecommendIAMRolesResponse.getDefaultInstance()) + return this; + if (projectConfigurationsBuilder_ == null) { + if (!other.projectConfigurations_.isEmpty()) { + if (projectConfigurations_.isEmpty()) { + projectConfigurations_ = other.projectConfigurations_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureProjectConfigurationsIsMutable(); + projectConfigurations_.addAll(other.projectConfigurations_); + } + onChanged(); + } + } else { + if (!other.projectConfigurations_.isEmpty()) { + if (projectConfigurationsBuilder_.isEmpty()) { + projectConfigurationsBuilder_.dispose(); + projectConfigurationsBuilder_ = null; + projectConfigurations_ = other.projectConfigurations_; + bitField0_ = (bitField0_ & ~0x00000001); + projectConfigurationsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetProjectConfigurationsFieldBuilder() + : null; + } else { + projectConfigurationsBuilder_.addAllMessages(other.projectConfigurations_); + } + } + } + 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.designcenter.v1.RolesAndApisConfig m = + input.readMessage( + com.google.cloud.designcenter.v1.RolesAndApisConfig.parser(), + extensionRegistry); + if (projectConfigurationsBuilder_ == null) { + ensureProjectConfigurationsIsMutable(); + projectConfigurations_.add(m); + } else { + projectConfigurationsBuilder_.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 + projectConfigurations_ = java.util.Collections.emptyList(); + + private void ensureProjectConfigurationsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + projectConfigurations_ = + new java.util.ArrayList( + projectConfigurations_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.RolesAndApisConfig, + com.google.cloud.designcenter.v1.RolesAndApisConfig.Builder, + com.google.cloud.designcenter.v1.RolesAndApisConfigOrBuilder> + projectConfigurationsBuilder_; + + /** + * + * + *
+     * A list of project configurations containing recommended IAM roles and
+     * required APIs for each target Google Cloud project in the application
+     * infrastructure.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RolesAndApisConfig project_configurations = 1; + * + */ + public java.util.List + getProjectConfigurationsList() { + if (projectConfigurationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(projectConfigurations_); + } else { + return projectConfigurationsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * A list of project configurations containing recommended IAM roles and
+     * required APIs for each target Google Cloud project in the application
+     * infrastructure.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RolesAndApisConfig project_configurations = 1; + * + */ + public int getProjectConfigurationsCount() { + if (projectConfigurationsBuilder_ == null) { + return projectConfigurations_.size(); + } else { + return projectConfigurationsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * A list of project configurations containing recommended IAM roles and
+     * required APIs for each target Google Cloud project in the application
+     * infrastructure.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RolesAndApisConfig project_configurations = 1; + * + */ + public com.google.cloud.designcenter.v1.RolesAndApisConfig getProjectConfigurations(int index) { + if (projectConfigurationsBuilder_ == null) { + return projectConfigurations_.get(index); + } else { + return projectConfigurationsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * A list of project configurations containing recommended IAM roles and
+     * required APIs for each target Google Cloud project in the application
+     * infrastructure.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RolesAndApisConfig project_configurations = 1; + * + */ + public Builder setProjectConfigurations( + int index, com.google.cloud.designcenter.v1.RolesAndApisConfig value) { + if (projectConfigurationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProjectConfigurationsIsMutable(); + projectConfigurations_.set(index, value); + onChanged(); + } else { + projectConfigurationsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * A list of project configurations containing recommended IAM roles and
+     * required APIs for each target Google Cloud project in the application
+     * infrastructure.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RolesAndApisConfig project_configurations = 1; + * + */ + public Builder setProjectConfigurations( + int index, com.google.cloud.designcenter.v1.RolesAndApisConfig.Builder builderForValue) { + if (projectConfigurationsBuilder_ == null) { + ensureProjectConfigurationsIsMutable(); + projectConfigurations_.set(index, builderForValue.build()); + onChanged(); + } else { + projectConfigurationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * A list of project configurations containing recommended IAM roles and
+     * required APIs for each target Google Cloud project in the application
+     * infrastructure.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RolesAndApisConfig project_configurations = 1; + * + */ + public Builder addProjectConfigurations( + com.google.cloud.designcenter.v1.RolesAndApisConfig value) { + if (projectConfigurationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProjectConfigurationsIsMutable(); + projectConfigurations_.add(value); + onChanged(); + } else { + projectConfigurationsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * A list of project configurations containing recommended IAM roles and
+     * required APIs for each target Google Cloud project in the application
+     * infrastructure.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RolesAndApisConfig project_configurations = 1; + * + */ + public Builder addProjectConfigurations( + int index, com.google.cloud.designcenter.v1.RolesAndApisConfig value) { + if (projectConfigurationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProjectConfigurationsIsMutable(); + projectConfigurations_.add(index, value); + onChanged(); + } else { + projectConfigurationsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * A list of project configurations containing recommended IAM roles and
+     * required APIs for each target Google Cloud project in the application
+     * infrastructure.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RolesAndApisConfig project_configurations = 1; + * + */ + public Builder addProjectConfigurations( + com.google.cloud.designcenter.v1.RolesAndApisConfig.Builder builderForValue) { + if (projectConfigurationsBuilder_ == null) { + ensureProjectConfigurationsIsMutable(); + projectConfigurations_.add(builderForValue.build()); + onChanged(); + } else { + projectConfigurationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * A list of project configurations containing recommended IAM roles and
+     * required APIs for each target Google Cloud project in the application
+     * infrastructure.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RolesAndApisConfig project_configurations = 1; + * + */ + public Builder addProjectConfigurations( + int index, com.google.cloud.designcenter.v1.RolesAndApisConfig.Builder builderForValue) { + if (projectConfigurationsBuilder_ == null) { + ensureProjectConfigurationsIsMutable(); + projectConfigurations_.add(index, builderForValue.build()); + onChanged(); + } else { + projectConfigurationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * A list of project configurations containing recommended IAM roles and
+     * required APIs for each target Google Cloud project in the application
+     * infrastructure.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RolesAndApisConfig project_configurations = 1; + * + */ + public Builder addAllProjectConfigurations( + java.lang.Iterable values) { + if (projectConfigurationsBuilder_ == null) { + ensureProjectConfigurationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, projectConfigurations_); + onChanged(); + } else { + projectConfigurationsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * A list of project configurations containing recommended IAM roles and
+     * required APIs for each target Google Cloud project in the application
+     * infrastructure.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RolesAndApisConfig project_configurations = 1; + * + */ + public Builder clearProjectConfigurations() { + if (projectConfigurationsBuilder_ == null) { + projectConfigurations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + projectConfigurationsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * A list of project configurations containing recommended IAM roles and
+     * required APIs for each target Google Cloud project in the application
+     * infrastructure.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RolesAndApisConfig project_configurations = 1; + * + */ + public Builder removeProjectConfigurations(int index) { + if (projectConfigurationsBuilder_ == null) { + ensureProjectConfigurationsIsMutable(); + projectConfigurations_.remove(index); + onChanged(); + } else { + projectConfigurationsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * A list of project configurations containing recommended IAM roles and
+     * required APIs for each target Google Cloud project in the application
+     * infrastructure.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RolesAndApisConfig project_configurations = 1; + * + */ + public com.google.cloud.designcenter.v1.RolesAndApisConfig.Builder + getProjectConfigurationsBuilder(int index) { + return internalGetProjectConfigurationsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * A list of project configurations containing recommended IAM roles and
+     * required APIs for each target Google Cloud project in the application
+     * infrastructure.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RolesAndApisConfig project_configurations = 1; + * + */ + public com.google.cloud.designcenter.v1.RolesAndApisConfigOrBuilder + getProjectConfigurationsOrBuilder(int index) { + if (projectConfigurationsBuilder_ == null) { + return projectConfigurations_.get(index); + } else { + return projectConfigurationsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * A list of project configurations containing recommended IAM roles and
+     * required APIs for each target Google Cloud project in the application
+     * infrastructure.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RolesAndApisConfig project_configurations = 1; + * + */ + public java.util.List + getProjectConfigurationsOrBuilderList() { + if (projectConfigurationsBuilder_ != null) { + return projectConfigurationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(projectConfigurations_); + } + } + + /** + * + * + *
+     * A list of project configurations containing recommended IAM roles and
+     * required APIs for each target Google Cloud project in the application
+     * infrastructure.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RolesAndApisConfig project_configurations = 1; + * + */ + public com.google.cloud.designcenter.v1.RolesAndApisConfig.Builder + addProjectConfigurationsBuilder() { + return internalGetProjectConfigurationsFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.RolesAndApisConfig.getDefaultInstance()); + } + + /** + * + * + *
+     * A list of project configurations containing recommended IAM roles and
+     * required APIs for each target Google Cloud project in the application
+     * infrastructure.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RolesAndApisConfig project_configurations = 1; + * + */ + public com.google.cloud.designcenter.v1.RolesAndApisConfig.Builder + addProjectConfigurationsBuilder(int index) { + return internalGetProjectConfigurationsFieldBuilder() + .addBuilder( + index, com.google.cloud.designcenter.v1.RolesAndApisConfig.getDefaultInstance()); + } + + /** + * + * + *
+     * A list of project configurations containing recommended IAM roles and
+     * required APIs for each target Google Cloud project in the application
+     * infrastructure.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RolesAndApisConfig project_configurations = 1; + * + */ + public java.util.List + getProjectConfigurationsBuilderList() { + return internalGetProjectConfigurationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.RolesAndApisConfig, + com.google.cloud.designcenter.v1.RolesAndApisConfig.Builder, + com.google.cloud.designcenter.v1.RolesAndApisConfigOrBuilder> + internalGetProjectConfigurationsFieldBuilder() { + if (projectConfigurationsBuilder_ == null) { + projectConfigurationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.RolesAndApisConfig, + com.google.cloud.designcenter.v1.RolesAndApisConfig.Builder, + com.google.cloud.designcenter.v1.RolesAndApisConfigOrBuilder>( + projectConfigurations_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + projectConfigurations_ = null; + } + return projectConfigurationsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.RecommendIAMRolesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.RecommendIAMRolesResponse) + private static final com.google.cloud.designcenter.v1.RecommendIAMRolesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.RecommendIAMRolesResponse(); + } + + public static com.google.cloud.designcenter.v1.RecommendIAMRolesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecommendIAMRolesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.RecommendIAMRolesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RecommendIAMRolesResponseOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RecommendIAMRolesResponseOrBuilder.java new file mode 100644 index 000000000000..a4e34cdce9f0 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RecommendIAMRolesResponseOrBuilder.java @@ -0,0 +1,101 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface RecommendIAMRolesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.RecommendIAMRolesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A list of project configurations containing recommended IAM roles and
+   * required APIs for each target Google Cloud project in the application
+   * infrastructure.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.RolesAndApisConfig project_configurations = 1; + * + */ + java.util.List + getProjectConfigurationsList(); + + /** + * + * + *
+   * A list of project configurations containing recommended IAM roles and
+   * required APIs for each target Google Cloud project in the application
+   * infrastructure.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.RolesAndApisConfig project_configurations = 1; + * + */ + com.google.cloud.designcenter.v1.RolesAndApisConfig getProjectConfigurations(int index); + + /** + * + * + *
+   * A list of project configurations containing recommended IAM roles and
+   * required APIs for each target Google Cloud project in the application
+   * infrastructure.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.RolesAndApisConfig project_configurations = 1; + * + */ + int getProjectConfigurationsCount(); + + /** + * + * + *
+   * A list of project configurations containing recommended IAM roles and
+   * required APIs for each target Google Cloud project in the application
+   * infrastructure.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.RolesAndApisConfig project_configurations = 1; + * + */ + java.util.List + getProjectConfigurationsOrBuilderList(); + + /** + * + * + *
+   * A list of project configurations containing recommended IAM roles and
+   * required APIs for each target Google Cloud project in the application
+   * infrastructure.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.RolesAndApisConfig project_configurations = 1; + * + */ + com.google.cloud.designcenter.v1.RolesAndApisConfigOrBuilder getProjectConfigurationsOrBuilder( + int index); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RegisterAppHubApplicationResourcesRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RegisterAppHubApplicationResourcesRequest.java new file mode 100644 index 000000000000..6baae4ee1f33 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RegisterAppHubApplicationResourcesRequest.java @@ -0,0 +1,1459 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/apphub_integration_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Request message for RegisterAppHubApplicationResources method.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesRequest} + */ +@com.google.protobuf.Generated +public final class RegisterAppHubApplicationResourcesRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesRequest) + RegisterAppHubApplicationResourcesRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "RegisterAppHubApplicationResourcesRequest"); + } + + // Use RegisterAppHubApplicationResourcesRequest.newBuilder() to construct. + private RegisterAppHubApplicationResourcesRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RegisterAppHubApplicationResourcesRequest() { + parent_ = ""; + apphubApplication_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.ApphubIntegrationRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_RegisterAppHubApplicationResourcesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.ApphubIntegrationRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_RegisterAppHubApplicationResourcesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesRequest.class, + com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesRequest.Builder + .class); + } + + private int tfstateSourceCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object tfstateSource_; + + public enum TfstateSourceCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + TFSTATE_CONTENT(2), + TFSTATE_SIGNED_GCS_URI(3), + TFSTATESOURCE_NOT_SET(0); + private final int value; + + private TfstateSourceCase(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 TfstateSourceCase valueOf(int value) { + return forNumber(value); + } + + public static TfstateSourceCase forNumber(int value) { + switch (value) { + case 2: + return TFSTATE_CONTENT; + case 3: + return TFSTATE_SIGNED_GCS_URI; + case 0: + return TFSTATESOURCE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public TfstateSourceCase getTfstateSourceCase() { + return TfstateSourceCase.forNumber(tfstateSourceCase_); + } + + public static final int TFSTATE_CONTENT_FIELD_NUMBER = 2; + + /** + * + * + *
+   * Optional. The Terraform state (tfstate) content as a raw string.
+   * For large state files exceeding 10MB, use the 'tfstate_signed_gcs_uri'
+   * field instead.
+   * 
+ * + * string tfstate_content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the tfstateContent field is set. + */ + public boolean hasTfstateContent() { + return tfstateSourceCase_ == 2; + } + + /** + * + * + *
+   * Optional. The Terraform state (tfstate) content as a raw string.
+   * For large state files exceeding 10MB, use the 'tfstate_signed_gcs_uri'
+   * field instead.
+   * 
+ * + * string tfstate_content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The tfstateContent. + */ + public java.lang.String getTfstateContent() { + java.lang.Object ref = ""; + if (tfstateSourceCase_ == 2) { + ref = tfstateSource_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (tfstateSourceCase_ == 2) { + tfstateSource_ = s; + } + return s; + } + } + + /** + * + * + *
+   * Optional. The Terraform state (tfstate) content as a raw string.
+   * For large state files exceeding 10MB, use the 'tfstate_signed_gcs_uri'
+   * field instead.
+   * 
+ * + * string tfstate_content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for tfstateContent. + */ + public com.google.protobuf.ByteString getTfstateContentBytes() { + java.lang.Object ref = ""; + if (tfstateSourceCase_ == 2) { + ref = tfstateSource_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (tfstateSourceCase_ == 2) { + tfstateSource_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TFSTATE_SIGNED_GCS_URI_FIELD_NUMBER = 3; + + /** + * + * + *
+   * Optional. A securely signed Cloud Storage URI pointing to the tfstate
+   * file. The URI must be signed to grant the service temporary read access
+   * to the state file. Application Design Center imposes a limit on the
+   * maximum size of the state file accessed via this URI.
+   * 
+ * + * string tfstate_signed_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the tfstateSignedGcsUri field is set. + */ + public boolean hasTfstateSignedGcsUri() { + return tfstateSourceCase_ == 3; + } + + /** + * + * + *
+   * Optional. A securely signed Cloud Storage URI pointing to the tfstate
+   * file. The URI must be signed to grant the service temporary read access
+   * to the state file. Application Design Center imposes a limit on the
+   * maximum size of the state file accessed via this URI.
+   * 
+ * + * string tfstate_signed_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The tfstateSignedGcsUri. + */ + public java.lang.String getTfstateSignedGcsUri() { + java.lang.Object ref = ""; + if (tfstateSourceCase_ == 3) { + ref = tfstateSource_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (tfstateSourceCase_ == 3) { + tfstateSource_ = s; + } + return s; + } + } + + /** + * + * + *
+   * Optional. A securely signed Cloud Storage URI pointing to the tfstate
+   * file. The URI must be signed to grant the service temporary read access
+   * to the state file. Application Design Center imposes a limit on the
+   * maximum size of the state file accessed via this URI.
+   * 
+ * + * string tfstate_signed_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for tfstateSignedGcsUri. + */ + public com.google.protobuf.ByteString getTfstateSignedGcsUriBytes() { + java.lang.Object ref = ""; + if (tfstateSourceCase_ == 3) { + ref = tfstateSource_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (tfstateSourceCase_ == 3) { + tfstateSource_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent location.
+   * Format: projects/{project}/locations/{location}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The parent location.
+   * Format: projects/{project}/locations/{location}
+   * 
+ * + * + * 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 APPHUB_APPLICATION_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object apphubApplication_ = ""; + + /** + * + * + *
+   * Required. The name of the AppHub Application.
+   * Format:
+   * projects/{project}/locations/{location}/applications/{application}
+   * 
+ * + * string apphub_application = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The apphubApplication. + */ + @java.lang.Override + public java.lang.String getApphubApplication() { + java.lang.Object ref = apphubApplication_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + apphubApplication_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The name of the AppHub Application.
+   * Format:
+   * projects/{project}/locations/{location}/applications/{application}
+   * 
+ * + * string apphub_application = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for apphubApplication. + */ + @java.lang.Override + public com.google.protobuf.ByteString getApphubApplicationBytes() { + java.lang.Object ref = apphubApplication_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + apphubApplication_ = 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.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (tfstateSourceCase_ == 2) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, tfstateSource_); + } + if (tfstateSourceCase_ == 3) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, tfstateSource_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(apphubApplication_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, apphubApplication_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (tfstateSourceCase_ == 2) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, tfstateSource_); + } + if (tfstateSourceCase_ == 3) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, tfstateSource_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(apphubApplication_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, apphubApplication_); + } + 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.designcenter.v1.RegisterAppHubApplicationResourcesRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesRequest other = + (com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getApphubApplication().equals(other.getApphubApplication())) return false; + if (!getTfstateSourceCase().equals(other.getTfstateSourceCase())) return false; + switch (tfstateSourceCase_) { + case 2: + if (!getTfstateContent().equals(other.getTfstateContent())) return false; + break; + case 3: + if (!getTfstateSignedGcsUri().equals(other.getTfstateSignedGcsUri())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + APPHUB_APPLICATION_FIELD_NUMBER; + hash = (53 * hash) + getApphubApplication().hashCode(); + switch (tfstateSourceCase_) { + case 2: + hash = (37 * hash) + TFSTATE_CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getTfstateContent().hashCode(); + break; + case 3: + hash = (37 * hash) + TFSTATE_SIGNED_GCS_URI_FIELD_NUMBER; + hash = (53 * hash) + getTfstateSignedGcsUri().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesRequest + 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.designcenter.v1.RegisterAppHubApplicationResourcesRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.RegisterAppHubApplicationResourcesRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for RegisterAppHubApplicationResources method.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesRequest) + com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.ApphubIntegrationRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_RegisterAppHubApplicationResourcesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.ApphubIntegrationRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_RegisterAppHubApplicationResourcesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesRequest.class, + com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + apphubApplication_ = ""; + tfstateSourceCase_ = 0; + tfstateSource_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.ApphubIntegrationRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_RegisterAppHubApplicationResourcesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesRequest + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesRequest build() { + com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesRequest + buildPartial() { + com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesRequest result = + new com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.apphubApplication_ = apphubApplication_; + } + } + + private void buildPartialOneofs( + com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesRequest result) { + result.tfstateSourceCase_ = tfstateSourceCase_; + result.tfstateSource_ = this.tfstateSource_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesRequest) { + return mergeFrom( + (com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesRequest other) { + if (other + == com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getApphubApplication().isEmpty()) { + apphubApplication_ = other.apphubApplication_; + bitField0_ |= 0x00000008; + onChanged(); + } + switch (other.getTfstateSourceCase()) { + case TFSTATE_CONTENT: + { + tfstateSourceCase_ = 2; + tfstateSource_ = other.tfstateSource_; + onChanged(); + break; + } + case TFSTATE_SIGNED_GCS_URI: + { + tfstateSourceCase_ = 3; + tfstateSource_ = other.tfstateSource_; + onChanged(); + break; + } + case TFSTATESOURCE_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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + tfstateSourceCase_ = 2; + tfstateSource_ = s; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + tfstateSourceCase_ = 3; + tfstateSource_ = s; + break; + } // case 26 + case 34: + { + apphubApplication_ = 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 tfstateSourceCase_ = 0; + private java.lang.Object tfstateSource_; + + public TfstateSourceCase getTfstateSourceCase() { + return TfstateSourceCase.forNumber(tfstateSourceCase_); + } + + public Builder clearTfstateSource() { + tfstateSourceCase_ = 0; + tfstateSource_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
+     * Optional. The Terraform state (tfstate) content as a raw string.
+     * For large state files exceeding 10MB, use the 'tfstate_signed_gcs_uri'
+     * field instead.
+     * 
+ * + * string tfstate_content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the tfstateContent field is set. + */ + @java.lang.Override + public boolean hasTfstateContent() { + return tfstateSourceCase_ == 2; + } + + /** + * + * + *
+     * Optional. The Terraform state (tfstate) content as a raw string.
+     * For large state files exceeding 10MB, use the 'tfstate_signed_gcs_uri'
+     * field instead.
+     * 
+ * + * string tfstate_content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The tfstateContent. + */ + @java.lang.Override + public java.lang.String getTfstateContent() { + java.lang.Object ref = ""; + if (tfstateSourceCase_ == 2) { + ref = tfstateSource_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (tfstateSourceCase_ == 2) { + tfstateSource_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The Terraform state (tfstate) content as a raw string.
+     * For large state files exceeding 10MB, use the 'tfstate_signed_gcs_uri'
+     * field instead.
+     * 
+ * + * string tfstate_content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for tfstateContent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTfstateContentBytes() { + java.lang.Object ref = ""; + if (tfstateSourceCase_ == 2) { + ref = tfstateSource_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (tfstateSourceCase_ == 2) { + tfstateSource_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The Terraform state (tfstate) content as a raw string.
+     * For large state files exceeding 10MB, use the 'tfstate_signed_gcs_uri'
+     * field instead.
+     * 
+ * + * string tfstate_content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The tfstateContent to set. + * @return This builder for chaining. + */ + public Builder setTfstateContent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + tfstateSourceCase_ = 2; + tfstateSource_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The Terraform state (tfstate) content as a raw string.
+     * For large state files exceeding 10MB, use the 'tfstate_signed_gcs_uri'
+     * field instead.
+     * 
+ * + * string tfstate_content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearTfstateContent() { + if (tfstateSourceCase_ == 2) { + tfstateSourceCase_ = 0; + tfstateSource_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The Terraform state (tfstate) content as a raw string.
+     * For large state files exceeding 10MB, use the 'tfstate_signed_gcs_uri'
+     * field instead.
+     * 
+ * + * string tfstate_content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for tfstateContent to set. + * @return This builder for chaining. + */ + public Builder setTfstateContentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tfstateSourceCase_ = 2; + tfstateSource_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A securely signed Cloud Storage URI pointing to the tfstate
+     * file. The URI must be signed to grant the service temporary read access
+     * to the state file. Application Design Center imposes a limit on the
+     * maximum size of the state file accessed via this URI.
+     * 
+ * + * string tfstate_signed_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the tfstateSignedGcsUri field is set. + */ + @java.lang.Override + public boolean hasTfstateSignedGcsUri() { + return tfstateSourceCase_ == 3; + } + + /** + * + * + *
+     * Optional. A securely signed Cloud Storage URI pointing to the tfstate
+     * file. The URI must be signed to grant the service temporary read access
+     * to the state file. Application Design Center imposes a limit on the
+     * maximum size of the state file accessed via this URI.
+     * 
+ * + * string tfstate_signed_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The tfstateSignedGcsUri. + */ + @java.lang.Override + public java.lang.String getTfstateSignedGcsUri() { + java.lang.Object ref = ""; + if (tfstateSourceCase_ == 3) { + ref = tfstateSource_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (tfstateSourceCase_ == 3) { + tfstateSource_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. A securely signed Cloud Storage URI pointing to the tfstate
+     * file. The URI must be signed to grant the service temporary read access
+     * to the state file. Application Design Center imposes a limit on the
+     * maximum size of the state file accessed via this URI.
+     * 
+ * + * string tfstate_signed_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for tfstateSignedGcsUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTfstateSignedGcsUriBytes() { + java.lang.Object ref = ""; + if (tfstateSourceCase_ == 3) { + ref = tfstateSource_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (tfstateSourceCase_ == 3) { + tfstateSource_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. A securely signed Cloud Storage URI pointing to the tfstate
+     * file. The URI must be signed to grant the service temporary read access
+     * to the state file. Application Design Center imposes a limit on the
+     * maximum size of the state file accessed via this URI.
+     * 
+ * + * string tfstate_signed_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The tfstateSignedGcsUri to set. + * @return This builder for chaining. + */ + public Builder setTfstateSignedGcsUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + tfstateSourceCase_ = 3; + tfstateSource_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A securely signed Cloud Storage URI pointing to the tfstate
+     * file. The URI must be signed to grant the service temporary read access
+     * to the state file. Application Design Center imposes a limit on the
+     * maximum size of the state file accessed via this URI.
+     * 
+ * + * string tfstate_signed_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearTfstateSignedGcsUri() { + if (tfstateSourceCase_ == 3) { + tfstateSourceCase_ = 0; + tfstateSource_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. A securely signed Cloud Storage URI pointing to the tfstate
+     * file. The URI must be signed to grant the service temporary read access
+     * to the state file. Application Design Center imposes a limit on the
+     * maximum size of the state file accessed via this URI.
+     * 
+ * + * string tfstate_signed_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for tfstateSignedGcsUri to set. + * @return This builder for chaining. + */ + public Builder setTfstateSignedGcsUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tfstateSourceCase_ = 3; + tfstateSource_ = value; + onChanged(); + return this; + } + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent location.
+     * Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The parent location.
+     * Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The parent location.
+     * Format: projects/{project}/locations/{location}
+     * 
+ * + * + * 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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent location.
+     * Format: projects/{project}/locations/{location}
+     * 
+ * + * + * 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_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent location.
+     * Format: projects/{project}/locations/{location}
+     * 
+ * + * + * 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_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object apphubApplication_ = ""; + + /** + * + * + *
+     * Required. The name of the AppHub Application.
+     * Format:
+     * projects/{project}/locations/{location}/applications/{application}
+     * 
+ * + * string apphub_application = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The apphubApplication. + */ + public java.lang.String getApphubApplication() { + java.lang.Object ref = apphubApplication_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + apphubApplication_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The name of the AppHub Application.
+     * Format:
+     * projects/{project}/locations/{location}/applications/{application}
+     * 
+ * + * string apphub_application = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for apphubApplication. + */ + public com.google.protobuf.ByteString getApphubApplicationBytes() { + java.lang.Object ref = apphubApplication_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + apphubApplication_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The name of the AppHub Application.
+     * Format:
+     * projects/{project}/locations/{location}/applications/{application}
+     * 
+ * + * string apphub_application = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The apphubApplication to set. + * @return This builder for chaining. + */ + public Builder setApphubApplication(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + apphubApplication_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The name of the AppHub Application.
+     * Format:
+     * projects/{project}/locations/{location}/applications/{application}
+     * 
+ * + * string apphub_application = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearApphubApplication() { + apphubApplication_ = getDefaultInstance().getApphubApplication(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The name of the AppHub Application.
+     * Format:
+     * projects/{project}/locations/{location}/applications/{application}
+     * 
+ * + * string apphub_application = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for apphubApplication to set. + * @return This builder for chaining. + */ + public Builder setApphubApplicationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apphubApplication_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesRequest) + private static final com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesRequest(); + } + + public static com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RegisterAppHubApplicationResourcesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.RegisterAppHubApplicationResourcesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RegisterAppHubApplicationResourcesRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RegisterAppHubApplicationResourcesRequestOrBuilder.java new file mode 100644 index 000000000000..a24b0d404685 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RegisterAppHubApplicationResourcesRequestOrBuilder.java @@ -0,0 +1,186 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/apphub_integration_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface RegisterAppHubApplicationResourcesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The Terraform state (tfstate) content as a raw string.
+   * For large state files exceeding 10MB, use the 'tfstate_signed_gcs_uri'
+   * field instead.
+   * 
+ * + * string tfstate_content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the tfstateContent field is set. + */ + boolean hasTfstateContent(); + + /** + * + * + *
+   * Optional. The Terraform state (tfstate) content as a raw string.
+   * For large state files exceeding 10MB, use the 'tfstate_signed_gcs_uri'
+   * field instead.
+   * 
+ * + * string tfstate_content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The tfstateContent. + */ + java.lang.String getTfstateContent(); + + /** + * + * + *
+   * Optional. The Terraform state (tfstate) content as a raw string.
+   * For large state files exceeding 10MB, use the 'tfstate_signed_gcs_uri'
+   * field instead.
+   * 
+ * + * string tfstate_content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for tfstateContent. + */ + com.google.protobuf.ByteString getTfstateContentBytes(); + + /** + * + * + *
+   * Optional. A securely signed Cloud Storage URI pointing to the tfstate
+   * file. The URI must be signed to grant the service temporary read access
+   * to the state file. Application Design Center imposes a limit on the
+   * maximum size of the state file accessed via this URI.
+   * 
+ * + * string tfstate_signed_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the tfstateSignedGcsUri field is set. + */ + boolean hasTfstateSignedGcsUri(); + + /** + * + * + *
+   * Optional. A securely signed Cloud Storage URI pointing to the tfstate
+   * file. The URI must be signed to grant the service temporary read access
+   * to the state file. Application Design Center imposes a limit on the
+   * maximum size of the state file accessed via this URI.
+   * 
+ * + * string tfstate_signed_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The tfstateSignedGcsUri. + */ + java.lang.String getTfstateSignedGcsUri(); + + /** + * + * + *
+   * Optional. A securely signed Cloud Storage URI pointing to the tfstate
+   * file. The URI must be signed to grant the service temporary read access
+   * to the state file. Application Design Center imposes a limit on the
+   * maximum size of the state file accessed via this URI.
+   * 
+ * + * string tfstate_signed_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for tfstateSignedGcsUri. + */ + com.google.protobuf.ByteString getTfstateSignedGcsUriBytes(); + + /** + * + * + *
+   * Required. The parent location.
+   * Format: projects/{project}/locations/{location}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent location.
+   * Format: projects/{project}/locations/{location}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The name of the AppHub Application.
+   * Format:
+   * projects/{project}/locations/{location}/applications/{application}
+   * 
+ * + * string apphub_application = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The apphubApplication. + */ + java.lang.String getApphubApplication(); + + /** + * + * + *
+   * Required. The name of the AppHub Application.
+   * Format:
+   * projects/{project}/locations/{location}/applications/{application}
+   * 
+ * + * string apphub_application = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for apphubApplication. + */ + com.google.protobuf.ByteString getApphubApplicationBytes(); + + com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesRequest.TfstateSourceCase + getTfstateSourceCase(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RegisterAppHubApplicationResourcesResponse.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RegisterAppHubApplicationResourcesResponse.java new file mode 100644 index 000000000000..ac5a291b4c27 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RegisterAppHubApplicationResourcesResponse.java @@ -0,0 +1,741 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/apphub_integration_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Response message for RegisterAppHubApplicationResources method.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesResponse} + */ +@com.google.protobuf.Generated +public final class RegisterAppHubApplicationResourcesResponse + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesResponse) + RegisterAppHubApplicationResourcesResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "RegisterAppHubApplicationResourcesResponse"); + } + + // Use RegisterAppHubApplicationResourcesResponse.newBuilder() to construct. + private RegisterAppHubApplicationResourcesResponse( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RegisterAppHubApplicationResourcesResponse() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.ApphubIntegrationRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_RegisterAppHubApplicationResourcesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.ApphubIntegrationRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_RegisterAppHubApplicationResourcesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesResponse.class, + com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesResponse.Builder + .class); + } + + private int bitField0_; + public static final int RESPONSE_FIELD_NUMBER = 1; + private com.google.cloud.designcenter.v1.DeployedResourceResponse response_; + + /** + * + * + *
+   * The response for the registration of deployed resources of a given AppHub
+   * application.
+   * 
+ * + * .google.cloud.designcenter.v1.DeployedResourceResponse response = 1; + * + * @return Whether the response field is set. + */ + @java.lang.Override + public boolean hasResponse() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * The response for the registration of deployed resources of a given AppHub
+   * application.
+   * 
+ * + * .google.cloud.designcenter.v1.DeployedResourceResponse response = 1; + * + * @return The response. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.DeployedResourceResponse getResponse() { + return response_ == null + ? com.google.cloud.designcenter.v1.DeployedResourceResponse.getDefaultInstance() + : response_; + } + + /** + * + * + *
+   * The response for the registration of deployed resources of a given AppHub
+   * application.
+   * 
+ * + * .google.cloud.designcenter.v1.DeployedResourceResponse response = 1; + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.DeployedResourceResponseOrBuilder getResponseOrBuilder() { + return response_ == null + ? com.google.cloud.designcenter.v1.DeployedResourceResponse.getDefaultInstance() + : response_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getResponse()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getResponse()); + } + 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.designcenter.v1.RegisterAppHubApplicationResourcesResponse)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesResponse other = + (com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse().equals(other.getResponse())) 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 (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesResponse + 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.designcenter.v1.RegisterAppHubApplicationResourcesResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesResponse + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesResponse + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesResponse + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.RegisterAppHubApplicationResourcesResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response message for RegisterAppHubApplicationResources method.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesResponse) + com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.ApphubIntegrationRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_RegisterAppHubApplicationResourcesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.ApphubIntegrationRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_RegisterAppHubApplicationResourcesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesResponse.class, + com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetResponseFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + response_ = null; + if (responseBuilder_ != null) { + responseBuilder_.dispose(); + responseBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.ApphubIntegrationRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_RegisterAppHubApplicationResourcesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesResponse + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesResponse build() { + com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesResponse + buildPartial() { + com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesResponse result = + new com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.response_ = responseBuilder_ == null ? response_ : responseBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesResponse) { + return mergeFrom( + (com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesResponse other) { + if (other + == com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesResponse + .getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + 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( + internalGetResponseFieldBuilder().getBuilder(), extensionRegistry); + 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 com.google.cloud.designcenter.v1.DeployedResourceResponse response_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.DeployedResourceResponse, + com.google.cloud.designcenter.v1.DeployedResourceResponse.Builder, + com.google.cloud.designcenter.v1.DeployedResourceResponseOrBuilder> + responseBuilder_; + + /** + * + * + *
+     * The response for the registration of deployed resources of a given AppHub
+     * application.
+     * 
+ * + * .google.cloud.designcenter.v1.DeployedResourceResponse response = 1; + * + * @return Whether the response field is set. + */ + public boolean hasResponse() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * The response for the registration of deployed resources of a given AppHub
+     * application.
+     * 
+ * + * .google.cloud.designcenter.v1.DeployedResourceResponse response = 1; + * + * @return The response. + */ + public com.google.cloud.designcenter.v1.DeployedResourceResponse getResponse() { + if (responseBuilder_ == null) { + return response_ == null + ? com.google.cloud.designcenter.v1.DeployedResourceResponse.getDefaultInstance() + : response_; + } else { + return responseBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * The response for the registration of deployed resources of a given AppHub
+     * application.
+     * 
+ * + * .google.cloud.designcenter.v1.DeployedResourceResponse response = 1; + */ + public Builder setResponse(com.google.cloud.designcenter.v1.DeployedResourceResponse value) { + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + } else { + responseBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The response for the registration of deployed resources of a given AppHub
+     * application.
+     * 
+ * + * .google.cloud.designcenter.v1.DeployedResourceResponse response = 1; + */ + public Builder setResponse( + com.google.cloud.designcenter.v1.DeployedResourceResponse.Builder builderForValue) { + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The response for the registration of deployed resources of a given AppHub
+     * application.
+     * 
+ * + * .google.cloud.designcenter.v1.DeployedResourceResponse response = 1; + */ + public Builder mergeResponse(com.google.cloud.designcenter.v1.DeployedResourceResponse value) { + if (responseBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && response_ != null + && response_ + != com.google.cloud.designcenter.v1.DeployedResourceResponse.getDefaultInstance()) { + getResponseBuilder().mergeFrom(value); + } else { + response_ = value; + } + } else { + responseBuilder_.mergeFrom(value); + } + if (response_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The response for the registration of deployed resources of a given AppHub
+     * application.
+     * 
+ * + * .google.cloud.designcenter.v1.DeployedResourceResponse response = 1; + */ + public Builder clearResponse() { + bitField0_ = (bitField0_ & ~0x00000001); + response_ = null; + if (responseBuilder_ != null) { + responseBuilder_.dispose(); + responseBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * The response for the registration of deployed resources of a given AppHub
+     * application.
+     * 
+ * + * .google.cloud.designcenter.v1.DeployedResourceResponse response = 1; + */ + public com.google.cloud.designcenter.v1.DeployedResourceResponse.Builder getResponseBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetResponseFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * The response for the registration of deployed resources of a given AppHub
+     * application.
+     * 
+ * + * .google.cloud.designcenter.v1.DeployedResourceResponse response = 1; + */ + public com.google.cloud.designcenter.v1.DeployedResourceResponseOrBuilder + getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null + ? com.google.cloud.designcenter.v1.DeployedResourceResponse.getDefaultInstance() + : response_; + } + } + + /** + * + * + *
+     * The response for the registration of deployed resources of a given AppHub
+     * application.
+     * 
+ * + * .google.cloud.designcenter.v1.DeployedResourceResponse response = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.DeployedResourceResponse, + com.google.cloud.designcenter.v1.DeployedResourceResponse.Builder, + com.google.cloud.designcenter.v1.DeployedResourceResponseOrBuilder> + internalGetResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.DeployedResourceResponse, + com.google.cloud.designcenter.v1.DeployedResourceResponse.Builder, + com.google.cloud.designcenter.v1.DeployedResourceResponseOrBuilder>( + getResponse(), getParentForChildren(), isClean()); + response_ = null; + } + return responseBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesResponse) + private static final com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesResponse(); + } + + public static com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RegisterAppHubApplicationResourcesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.RegisterAppHubApplicationResourcesResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RegisterAppHubApplicationResourcesResponseOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RegisterAppHubApplicationResourcesResponseOrBuilder.java new file mode 100644 index 000000000000..d2a501e30968 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RegisterAppHubApplicationResourcesResponseOrBuilder.java @@ -0,0 +1,68 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/apphub_integration_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface RegisterAppHubApplicationResourcesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The response for the registration of deployed resources of a given AppHub
+   * application.
+   * 
+ * + * .google.cloud.designcenter.v1.DeployedResourceResponse response = 1; + * + * @return Whether the response field is set. + */ + boolean hasResponse(); + + /** + * + * + *
+   * The response for the registration of deployed resources of a given AppHub
+   * application.
+   * 
+ * + * .google.cloud.designcenter.v1.DeployedResourceResponse response = 1; + * + * @return The response. + */ + com.google.cloud.designcenter.v1.DeployedResourceResponse getResponse(); + + /** + * + * + *
+   * The response for the registration of deployed resources of a given AppHub
+   * application.
+   * 
+ * + * .google.cloud.designcenter.v1.DeployedResourceResponse response = 1; + */ + com.google.cloud.designcenter.v1.DeployedResourceResponseOrBuilder getResponseOrBuilder(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RemediationStep.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RemediationStep.java new file mode 100644 index 000000000000..a394ff1a1c4e --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RemediationStep.java @@ -0,0 +1,1097 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/assessment.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Remediation steps that can be taken to rectify the finding.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.RemediationStep} + */ +@com.google.protobuf.Generated +public final class RemediationStep extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.RemediationStep) + RemediationStepOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "RemediationStep"); + } + + // Use RemediationStep.newBuilder() to construct. + private RemediationStep(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RemediationStep() { + remediationSteps_ = com.google.protobuf.LazyStringArrayList.emptyList(); + remediationDocumentationUrl_ = ""; + note_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_RemediationStep_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_RemediationStep_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.RemediationStep.class, + com.google.cloud.designcenter.v1.RemediationStep.Builder.class); + } + + public static final int REMEDIATION_STEPS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList remediationSteps_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Required. A description of the steps that users can take to remediate the
+   * findings.
+   * 
+ * + * repeated string remediation_steps = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the remediationSteps. + */ + public com.google.protobuf.ProtocolStringList getRemediationStepsList() { + return remediationSteps_; + } + + /** + * + * + *
+   * Required. A description of the steps that users can take to remediate the
+   * findings.
+   * 
+ * + * repeated string remediation_steps = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of remediationSteps. + */ + public int getRemediationStepsCount() { + return remediationSteps_.size(); + } + + /** + * + * + *
+   * Required. A description of the steps that users can take to remediate the
+   * findings.
+   * 
+ * + * repeated string remediation_steps = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The remediationSteps at the given index. + */ + public java.lang.String getRemediationSteps(int index) { + return remediationSteps_.get(index); + } + + /** + * + * + *
+   * Required. A description of the steps that users can take to remediate the
+   * findings.
+   * 
+ * + * repeated string remediation_steps = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the remediationSteps at the given index. + */ + public com.google.protobuf.ByteString getRemediationStepsBytes(int index) { + return remediationSteps_.getByteString(index); + } + + public static final int REMEDIATION_DOCUMENTATION_URL_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object remediationDocumentationUrl_ = ""; + + /** + * + * + *
+   * Optional. Remediation documentation URL.
+   * 
+ * + * string remediation_documentation_url = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The remediationDocumentationUrl. + */ + @java.lang.Override + public java.lang.String getRemediationDocumentationUrl() { + java.lang.Object ref = remediationDocumentationUrl_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + remediationDocumentationUrl_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Remediation documentation URL.
+   * 
+ * + * string remediation_documentation_url = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for remediationDocumentationUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRemediationDocumentationUrlBytes() { + java.lang.Object ref = remediationDocumentationUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + remediationDocumentationUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NOTE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object note_ = ""; + + /** + * + * + *
+   * Optional. Any other note related to the remediation.
+   * 
+ * + * string note = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The note. + */ + @java.lang.Override + public java.lang.String getNote() { + java.lang.Object ref = note_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + note_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Any other note related to the remediation.
+   * 
+ * + * string note = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for note. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNoteBytes() { + java.lang.Object ref = note_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + note_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < remediationSteps_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, remediationSteps_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(remediationDocumentationUrl_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, remediationDocumentationUrl_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(note_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, note_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < remediationSteps_.size(); i++) { + dataSize += computeStringSizeNoTag(remediationSteps_.getRaw(i)); + } + size += dataSize; + size += 1 * getRemediationStepsList().size(); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(remediationDocumentationUrl_)) { + size += + com.google.protobuf.GeneratedMessage.computeStringSize(2, remediationDocumentationUrl_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(note_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, note_); + } + 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.designcenter.v1.RemediationStep)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.RemediationStep other = + (com.google.cloud.designcenter.v1.RemediationStep) obj; + + if (!getRemediationStepsList().equals(other.getRemediationStepsList())) return false; + if (!getRemediationDocumentationUrl().equals(other.getRemediationDocumentationUrl())) + return false; + if (!getNote().equals(other.getNote())) 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 (getRemediationStepsCount() > 0) { + hash = (37 * hash) + REMEDIATION_STEPS_FIELD_NUMBER; + hash = (53 * hash) + getRemediationStepsList().hashCode(); + } + hash = (37 * hash) + REMEDIATION_DOCUMENTATION_URL_FIELD_NUMBER; + hash = (53 * hash) + getRemediationDocumentationUrl().hashCode(); + hash = (37 * hash) + NOTE_FIELD_NUMBER; + hash = (53 * hash) + getNote().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.RemediationStep parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.RemediationStep 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.designcenter.v1.RemediationStep parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.RemediationStep parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.RemediationStep parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.RemediationStep parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.RemediationStep parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.RemediationStep parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.RemediationStep parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.RemediationStep parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.RemediationStep parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.RemediationStep parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.RemediationStep 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Remediation steps that can be taken to rectify the finding.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.RemediationStep} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.RemediationStep) + com.google.cloud.designcenter.v1.RemediationStepOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_RemediationStep_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_RemediationStep_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.RemediationStep.class, + com.google.cloud.designcenter.v1.RemediationStep.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.RemediationStep.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + remediationSteps_ = com.google.protobuf.LazyStringArrayList.emptyList(); + remediationDocumentationUrl_ = ""; + note_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_RemediationStep_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.RemediationStep getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.RemediationStep.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.RemediationStep build() { + com.google.cloud.designcenter.v1.RemediationStep result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.RemediationStep buildPartial() { + com.google.cloud.designcenter.v1.RemediationStep result = + new com.google.cloud.designcenter.v1.RemediationStep(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.RemediationStep result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + remediationSteps_.makeImmutable(); + result.remediationSteps_ = remediationSteps_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.remediationDocumentationUrl_ = remediationDocumentationUrl_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.note_ = note_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.RemediationStep) { + return mergeFrom((com.google.cloud.designcenter.v1.RemediationStep) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.RemediationStep other) { + if (other == com.google.cloud.designcenter.v1.RemediationStep.getDefaultInstance()) + return this; + if (!other.remediationSteps_.isEmpty()) { + if (remediationSteps_.isEmpty()) { + remediationSteps_ = other.remediationSteps_; + bitField0_ |= 0x00000001; + } else { + ensureRemediationStepsIsMutable(); + remediationSteps_.addAll(other.remediationSteps_); + } + onChanged(); + } + if (!other.getRemediationDocumentationUrl().isEmpty()) { + remediationDocumentationUrl_ = other.remediationDocumentationUrl_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getNote().isEmpty()) { + note_ = other.note_; + 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: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureRemediationStepsIsMutable(); + remediationSteps_.add(s); + break; + } // case 10 + case 18: + { + remediationDocumentationUrl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + note_ = 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 com.google.protobuf.LazyStringArrayList remediationSteps_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureRemediationStepsIsMutable() { + if (!remediationSteps_.isModifiable()) { + remediationSteps_ = new com.google.protobuf.LazyStringArrayList(remediationSteps_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
+     * Required. A description of the steps that users can take to remediate the
+     * findings.
+     * 
+ * + * repeated string remediation_steps = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the remediationSteps. + */ + public com.google.protobuf.ProtocolStringList getRemediationStepsList() { + remediationSteps_.makeImmutable(); + return remediationSteps_; + } + + /** + * + * + *
+     * Required. A description of the steps that users can take to remediate the
+     * findings.
+     * 
+ * + * repeated string remediation_steps = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of remediationSteps. + */ + public int getRemediationStepsCount() { + return remediationSteps_.size(); + } + + /** + * + * + *
+     * Required. A description of the steps that users can take to remediate the
+     * findings.
+     * 
+ * + * repeated string remediation_steps = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The remediationSteps at the given index. + */ + public java.lang.String getRemediationSteps(int index) { + return remediationSteps_.get(index); + } + + /** + * + * + *
+     * Required. A description of the steps that users can take to remediate the
+     * findings.
+     * 
+ * + * repeated string remediation_steps = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the remediationSteps at the given index. + */ + public com.google.protobuf.ByteString getRemediationStepsBytes(int index) { + return remediationSteps_.getByteString(index); + } + + /** + * + * + *
+     * Required. A description of the steps that users can take to remediate the
+     * findings.
+     * 
+ * + * repeated string remediation_steps = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index to set the value at. + * @param value The remediationSteps to set. + * @return This builder for chaining. + */ + public Builder setRemediationSteps(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRemediationStepsIsMutable(); + remediationSteps_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. A description of the steps that users can take to remediate the
+     * findings.
+     * 
+ * + * repeated string remediation_steps = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The remediationSteps to add. + * @return This builder for chaining. + */ + public Builder addRemediationSteps(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRemediationStepsIsMutable(); + remediationSteps_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. A description of the steps that users can take to remediate the
+     * findings.
+     * 
+ * + * repeated string remediation_steps = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param values The remediationSteps to add. + * @return This builder for chaining. + */ + public Builder addAllRemediationSteps(java.lang.Iterable values) { + ensureRemediationStepsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, remediationSteps_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. A description of the steps that users can take to remediate the
+     * findings.
+     * 
+ * + * repeated string remediation_steps = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearRemediationSteps() { + remediationSteps_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. A description of the steps that users can take to remediate the
+     * findings.
+     * 
+ * + * repeated string remediation_steps = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes of the remediationSteps to add. + * @return This builder for chaining. + */ + public Builder addRemediationStepsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureRemediationStepsIsMutable(); + remediationSteps_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object remediationDocumentationUrl_ = ""; + + /** + * + * + *
+     * Optional. Remediation documentation URL.
+     * 
+ * + * string remediation_documentation_url = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The remediationDocumentationUrl. + */ + public java.lang.String getRemediationDocumentationUrl() { + java.lang.Object ref = remediationDocumentationUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + remediationDocumentationUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Remediation documentation URL.
+     * 
+ * + * string remediation_documentation_url = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for remediationDocumentationUrl. + */ + public com.google.protobuf.ByteString getRemediationDocumentationUrlBytes() { + java.lang.Object ref = remediationDocumentationUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + remediationDocumentationUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Remediation documentation URL.
+     * 
+ * + * string remediation_documentation_url = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The remediationDocumentationUrl to set. + * @return This builder for chaining. + */ + public Builder setRemediationDocumentationUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + remediationDocumentationUrl_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Remediation documentation URL.
+     * 
+ * + * string remediation_documentation_url = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearRemediationDocumentationUrl() { + remediationDocumentationUrl_ = getDefaultInstance().getRemediationDocumentationUrl(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Remediation documentation URL.
+     * 
+ * + * string remediation_documentation_url = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes for remediationDocumentationUrl to set. + * @return This builder for chaining. + */ + public Builder setRemediationDocumentationUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + remediationDocumentationUrl_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object note_ = ""; + + /** + * + * + *
+     * Optional. Any other note related to the remediation.
+     * 
+ * + * string note = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The note. + */ + public java.lang.String getNote() { + java.lang.Object ref = note_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + note_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Any other note related to the remediation.
+     * 
+ * + * string note = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for note. + */ + public com.google.protobuf.ByteString getNoteBytes() { + java.lang.Object ref = note_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + note_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Any other note related to the remediation.
+     * 
+ * + * string note = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The note to set. + * @return This builder for chaining. + */ + public Builder setNote(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + note_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Any other note related to the remediation.
+     * 
+ * + * string note = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearNote() { + note_ = getDefaultInstance().getNote(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Any other note related to the remediation.
+     * 
+ * + * string note = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for note to set. + * @return This builder for chaining. + */ + public Builder setNoteBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + note_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.RemediationStep) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.RemediationStep) + private static final com.google.cloud.designcenter.v1.RemediationStep DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.RemediationStep(); + } + + public static com.google.cloud.designcenter.v1.RemediationStep getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RemediationStep parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.RemediationStep getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RemediationStepOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RemediationStepOrBuilder.java new file mode 100644 index 000000000000..5eece1b50c11 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RemediationStepOrBuilder.java @@ -0,0 +1,140 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/assessment.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface RemediationStepOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.RemediationStep) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. A description of the steps that users can take to remediate the
+   * findings.
+   * 
+ * + * repeated string remediation_steps = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the remediationSteps. + */ + java.util.List getRemediationStepsList(); + + /** + * + * + *
+   * Required. A description of the steps that users can take to remediate the
+   * findings.
+   * 
+ * + * repeated string remediation_steps = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of remediationSteps. + */ + int getRemediationStepsCount(); + + /** + * + * + *
+   * Required. A description of the steps that users can take to remediate the
+   * findings.
+   * 
+ * + * repeated string remediation_steps = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The remediationSteps at the given index. + */ + java.lang.String getRemediationSteps(int index); + + /** + * + * + *
+   * Required. A description of the steps that users can take to remediate the
+   * findings.
+   * 
+ * + * repeated string remediation_steps = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the remediationSteps at the given index. + */ + com.google.protobuf.ByteString getRemediationStepsBytes(int index); + + /** + * + * + *
+   * Optional. Remediation documentation URL.
+   * 
+ * + * string remediation_documentation_url = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The remediationDocumentationUrl. + */ + java.lang.String getRemediationDocumentationUrl(); + + /** + * + * + *
+   * Optional. Remediation documentation URL.
+   * 
+ * + * string remediation_documentation_url = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for remediationDocumentationUrl. + */ + com.google.protobuf.ByteString getRemediationDocumentationUrlBytes(); + + /** + * + * + *
+   * Optional. Any other note related to the remediation.
+   * 
+ * + * string note = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The note. + */ + java.lang.String getNote(); + + /** + * + * + *
+   * Optional. Any other note related to the remediation.
+   * 
+ * + * string note = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for note. + */ + com.google.protobuf.ByteString getNoteBytes(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/Resource.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/Resource.java new file mode 100644 index 000000000000..6304f695b782 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/Resource.java @@ -0,0 +1,1228 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Status of the [Resources][]s in the deployment.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.Resource} + */ +@com.google.protobuf.Generated +public final class Resource extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.Resource) + ResourceOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "Resource"); + } + + // Use Resource.newBuilder() to construct. + private Resource(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Resource() { + name_ = ""; + type_ = ""; + state_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_Resource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_Resource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.Resource.class, + com.google.cloud.designcenter.v1.Resource.Builder.class); + } + + /** + * + * + *
+   * Possible states of a resource.
+   * 
+ * + * Protobuf enum {@code google.cloud.designcenter.v1.Resource.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * The default value. This value is used if the state is omitted.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * Resource has been planned for reconcile.
+     * 
+ * + * PLANNED = 1; + */ + PLANNED(1), + /** + * + * + *
+     * Resource is actively reconciling into the intended state.
+     * 
+ * + * IN_PROGRESS = 2; + */ + IN_PROGRESS(2), + /** + * + * + *
+     * Resource has reconciled to intended state.
+     * 
+ * + * RECONCILED = 3; + */ + RECONCILED(3), + /** + * + * + *
+     * Resource failed to reconcile.
+     * 
+ * + * FAILED = 4; + */ + FAILED(4), + /** + * + * + *
+     * Drift is detected in the resourece state.
+     * 
+ * + * DRIFTED = 5; + */ + DRIFTED(5), + /** + * + * + *
+     * Resource is intended state.
+     * 
+ * + * INTENDED = 6; + */ + INTENDED(6), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
+     * The default value. This value is used if the state is omitted.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Resource has been planned for reconcile.
+     * 
+ * + * PLANNED = 1; + */ + public static final int PLANNED_VALUE = 1; + + /** + * + * + *
+     * Resource is actively reconciling into the intended state.
+     * 
+ * + * IN_PROGRESS = 2; + */ + public static final int IN_PROGRESS_VALUE = 2; + + /** + * + * + *
+     * Resource has reconciled to intended state.
+     * 
+ * + * RECONCILED = 3; + */ + public static final int RECONCILED_VALUE = 3; + + /** + * + * + *
+     * Resource failed to reconcile.
+     * 
+ * + * FAILED = 4; + */ + public static final int FAILED_VALUE = 4; + + /** + * + * + *
+     * Drift is detected in the resourece state.
+     * 
+ * + * DRIFTED = 5; + */ + public static final int DRIFTED_VALUE = 5; + + /** + * + * + *
+     * Resource is intended state.
+     * 
+ * + * INTENDED = 6; + */ + public static final int INTENDED_VALUE = 6; + + 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 PLANNED; + case 2: + return IN_PROGRESS; + case 3: + return RECONCILED; + case 4: + return FAILED; + case 5: + return DRIFTED; + case 6: + return INTENDED; + 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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.designcenter.v1.Resource.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.designcenter.v1.Resource.State) + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Output only. Identifier. The name of the resource.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @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. Identifier. The name of the resource.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TYPE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object type_ = ""; + + /** + * + * + *
+   * Output only. The type of the resource.
+   * 
+ * + * string type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The type. + */ + @java.lang.Override + public java.lang.String getType() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + type_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The type of the resource.
+   * 
+ * + * string type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for type. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 3; + private int state_ = 0; + + /** + * + * + *
+   * Output only. Current state of the resource.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Resource.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+   * Output only. Current state of the resource.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Resource.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.Resource.State getState() { + com.google.cloud.designcenter.v1.Resource.State result = + com.google.cloud.designcenter.v1.Resource.State.forNumber(state_); + return result == null ? com.google.cloud.designcenter.v1.Resource.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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(type_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, type_); + } + if (state_ != com.google.cloud.designcenter.v1.Resource.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(3, state_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(type_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, type_); + } + if (state_ != com.google.cloud.designcenter.v1.Resource.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, 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.designcenter.v1.Resource)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.Resource other = + (com.google.cloud.designcenter.v1.Resource) obj; + + if (!getName().equals(other.getName())) return false; + if (!getType().equals(other.getType())) 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(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().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.designcenter.v1.Resource parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.Resource 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.designcenter.v1.Resource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.Resource parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.Resource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.Resource parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.Resource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.Resource parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.Resource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.Resource parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.Resource parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.Resource parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.Resource 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Status of the [Resources][]s in the deployment.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.Resource} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.Resource) + com.google.cloud.designcenter.v1.ResourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_Resource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_Resource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.Resource.class, + com.google.cloud.designcenter.v1.Resource.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.Resource.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + type_ = ""; + state_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_Resource_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.Resource getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.Resource.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.Resource build() { + com.google.cloud.designcenter.v1.Resource result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.Resource buildPartial() { + com.google.cloud.designcenter.v1.Resource result = + new com.google.cloud.designcenter.v1.Resource(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.Resource result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.state_ = state_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.Resource) { + return mergeFrom((com.google.cloud.designcenter.v1.Resource) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.Resource other) { + if (other == com.google.cloud.designcenter.v1.Resource.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getType().isEmpty()) { + type_ = other.type_; + bitField0_ |= 0x00000002; + 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: + { + type_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + 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. Identifier. The name of the resource.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The name. + */ + public java.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. Identifier. The name of the resource.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @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. Identifier. The name of the resource.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @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. Identifier. The name of the resource.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Identifier. The name of the resource.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @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 type_ = ""; + + /** + * + * + *
+     * Output only. The type of the resource.
+     * 
+ * + * string type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The type. + */ + public java.lang.String getType() { + java.lang.Object ref = type_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + type_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The type of the resource.
+     * 
+ * + * string type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for type. + */ + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The type of the resource.
+     * 
+ * + * string type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The type of the resource.
+     * 
+ * + * string type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearType() { + type_ = getDefaultInstance().getType(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The type of the resource.
+     * 
+ * + * string type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for type to set. + * @return This builder for chaining. + */ + public Builder setTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + type_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int state_ = 0; + + /** + * + * + *
+     * Output only. Current state of the resource.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Resource.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+     * Output only. Current state of the resource.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Resource.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Current state of the resource.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Resource.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.Resource.State getState() { + com.google.cloud.designcenter.v1.Resource.State result = + com.google.cloud.designcenter.v1.Resource.State.forNumber(state_); + return result == null ? com.google.cloud.designcenter.v1.Resource.State.UNRECOGNIZED : result; + } + + /** + * + * + *
+     * Output only. Current state of the resource.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Resource.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.designcenter.v1.Resource.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Current state of the resource.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Resource.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000004); + state_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.Resource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.Resource) + private static final com.google.cloud.designcenter.v1.Resource DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.Resource(); + } + + public static com.google.cloud.designcenter.v1.Resource getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Resource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.Resource getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ResourceOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ResourceOrBuilder.java new file mode 100644 index 000000000000..2e829a149d8c --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ResourceOrBuilder.java @@ -0,0 +1,114 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ResourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.Resource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Identifier. The name of the resource.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Output only. Identifier. The name of the resource.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. The type of the resource.
+   * 
+ * + * string type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The type. + */ + java.lang.String getType(); + + /** + * + * + *
+   * Output only. The type of the resource.
+   * 
+ * + * string type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for type. + */ + com.google.protobuf.ByteString getTypeBytes(); + + /** + * + * + *
+   * Output only. Current state of the resource.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Resource.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
+   * Output only. Current state of the resource.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Resource.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.designcenter.v1.Resource.State getState(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ResourceType.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ResourceType.java new file mode 100644 index 000000000000..a3ea32426a42 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ResourceType.java @@ -0,0 +1,791 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Represents the type of a resource within a component template.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ResourceType} + */ +@com.google.protobuf.Generated +public final class ResourceType extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ResourceType) + ResourceTypeOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ResourceType"); + } + + // Use ResourceType.newBuilder() to construct. + private ResourceType(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ResourceType() { + tfResource_ = ""; + caisResource_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_ResourceType_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_ResourceType_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ResourceType.class, + com.google.cloud.designcenter.v1.ResourceType.Builder.class); + } + + public static final int TF_RESOURCE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object tfResource_ = ""; + + /** + * + * + *
+   * Output only. The Terraform resource type. For example:
+   * "google_compute_instance".
+   * 
+ * + * string tf_resource = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The tfResource. + */ + @java.lang.Override + public java.lang.String getTfResource() { + java.lang.Object ref = tfResource_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tfResource_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The Terraform resource type. For example:
+   * "google_compute_instance".
+   * 
+ * + * string tf_resource = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for tfResource. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTfResourceBytes() { + java.lang.Object ref = tfResource_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tfResource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CAIS_RESOURCE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object caisResource_ = ""; + + /** + * + * + *
+   * Output only. The CAIS resource type.
+   * 
+ * + * string cais_resource = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The caisResource. + */ + @java.lang.Override + public java.lang.String getCaisResource() { + java.lang.Object ref = caisResource_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + caisResource_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The CAIS resource type.
+   * 
+ * + * string cais_resource = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for caisResource. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCaisResourceBytes() { + java.lang.Object ref = caisResource_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + caisResource_ = 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.GeneratedMessage.isStringEmpty(tfResource_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, tfResource_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(caisResource_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, caisResource_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tfResource_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, tfResource_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(caisResource_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, caisResource_); + } + 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.designcenter.v1.ResourceType)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ResourceType other = + (com.google.cloud.designcenter.v1.ResourceType) obj; + + if (!getTfResource().equals(other.getTfResource())) return false; + if (!getCaisResource().equals(other.getCaisResource())) 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) + TF_RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getTfResource().hashCode(); + hash = (37 * hash) + CAIS_RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getCaisResource().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.ResourceType parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ResourceType 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.designcenter.v1.ResourceType parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ResourceType parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ResourceType parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ResourceType parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ResourceType parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ResourceType parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ResourceType parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ResourceType parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ResourceType parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ResourceType parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ResourceType 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Represents the type of a resource within a component template.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ResourceType} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ResourceType) + com.google.cloud.designcenter.v1.ResourceTypeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_ResourceType_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_ResourceType_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ResourceType.class, + com.google.cloud.designcenter.v1.ResourceType.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.ResourceType.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + tfResource_ = ""; + caisResource_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_ResourceType_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ResourceType getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ResourceType.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ResourceType build() { + com.google.cloud.designcenter.v1.ResourceType result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ResourceType buildPartial() { + com.google.cloud.designcenter.v1.ResourceType result = + new com.google.cloud.designcenter.v1.ResourceType(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.ResourceType result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.tfResource_ = tfResource_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.caisResource_ = caisResource_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.ResourceType) { + return mergeFrom((com.google.cloud.designcenter.v1.ResourceType) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.ResourceType other) { + if (other == com.google.cloud.designcenter.v1.ResourceType.getDefaultInstance()) return this; + if (!other.getTfResource().isEmpty()) { + tfResource_ = other.tfResource_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getCaisResource().isEmpty()) { + caisResource_ = other.caisResource_; + 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: + { + tfResource_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + caisResource_ = 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 tfResource_ = ""; + + /** + * + * + *
+     * Output only. The Terraform resource type. For example:
+     * "google_compute_instance".
+     * 
+ * + * string tf_resource = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The tfResource. + */ + public java.lang.String getTfResource() { + java.lang.Object ref = tfResource_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tfResource_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The Terraform resource type. For example:
+     * "google_compute_instance".
+     * 
+ * + * string tf_resource = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for tfResource. + */ + public com.google.protobuf.ByteString getTfResourceBytes() { + java.lang.Object ref = tfResource_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tfResource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The Terraform resource type. For example:
+     * "google_compute_instance".
+     * 
+ * + * string tf_resource = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The tfResource to set. + * @return This builder for chaining. + */ + public Builder setTfResource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + tfResource_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The Terraform resource type. For example:
+     * "google_compute_instance".
+     * 
+ * + * string tf_resource = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearTfResource() { + tfResource_ = getDefaultInstance().getTfResource(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The Terraform resource type. For example:
+     * "google_compute_instance".
+     * 
+ * + * string tf_resource = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for tfResource to set. + * @return This builder for chaining. + */ + public Builder setTfResourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tfResource_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object caisResource_ = ""; + + /** + * + * + *
+     * Output only. The CAIS resource type.
+     * 
+ * + * string cais_resource = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The caisResource. + */ + public java.lang.String getCaisResource() { + java.lang.Object ref = caisResource_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + caisResource_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The CAIS resource type.
+     * 
+ * + * string cais_resource = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for caisResource. + */ + public com.google.protobuf.ByteString getCaisResourceBytes() { + java.lang.Object ref = caisResource_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + caisResource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The CAIS resource type.
+     * 
+ * + * string cais_resource = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The caisResource to set. + * @return This builder for chaining. + */ + public Builder setCaisResource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + caisResource_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The CAIS resource type.
+     * 
+ * + * string cais_resource = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearCaisResource() { + caisResource_ = getDefaultInstance().getCaisResource(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The CAIS resource type.
+     * 
+ * + * string cais_resource = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for caisResource to set. + * @return This builder for chaining. + */ + public Builder setCaisResourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + caisResource_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ResourceType) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ResourceType) + private static final com.google.cloud.designcenter.v1.ResourceType DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.ResourceType(); + } + + public static com.google.cloud.designcenter.v1.ResourceType getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceType parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ResourceType getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ResourceTypeOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ResourceTypeOrBuilder.java new file mode 100644 index 000000000000..92def059473e --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ResourceTypeOrBuilder.java @@ -0,0 +1,82 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ResourceTypeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ResourceType) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The Terraform resource type. For example:
+   * "google_compute_instance".
+   * 
+ * + * string tf_resource = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The tfResource. + */ + java.lang.String getTfResource(); + + /** + * + * + *
+   * Output only. The Terraform resource type. For example:
+   * "google_compute_instance".
+   * 
+ * + * string tf_resource = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for tfResource. + */ + com.google.protobuf.ByteString getTfResourceBytes(); + + /** + * + * + *
+   * Output only. The CAIS resource type.
+   * 
+ * + * string cais_resource = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The caisResource. + */ + java.lang.String getCaisResource(); + + /** + * + * + *
+   * Output only. The CAIS resource type.
+   * 
+ * + * string cais_resource = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for caisResource. + */ + com.google.protobuf.ByteString getCaisResourceBytes(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RoleInfo.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RoleInfo.java new file mode 100644 index 000000000000..a801b2f6ea6d --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RoleInfo.java @@ -0,0 +1,1030 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * RoleInfo represents an IAM role along with its origin.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.RoleInfo} + */ +@com.google.protobuf.Generated +public final class RoleInfo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.RoleInfo) + RoleInfoOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "RoleInfo"); + } + + // Use RoleInfo.newBuilder() to construct. + private RoleInfo(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RoleInfo() { + role_ = ""; + permissions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_RoleInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_RoleInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.RoleInfo.class, + com.google.cloud.designcenter.v1.RoleInfo.Builder.class); + } + + public static final int ROLE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object role_ = ""; + + /** + * + * + *
+   * Required. IAM role name, such as `roles/editor`.
+   * 
+ * + * + * string role = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The role. + */ + @java.lang.Override + public java.lang.String getRole() { + java.lang.Object ref = role_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + role_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. IAM role name, such as `roles/editor`.
+   * 
+ * + * + * string role = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for role. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRoleBytes() { + java.lang.Object ref = role_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + role_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SYSTEM_PROVIDED_FIELD_NUMBER = 2; + private boolean systemProvided_ = false; + + /** + * + * + *
+   * Output only. When `true`, indicates that this role is automatically added
+   * by Application Design Center. When you provide a role, this field is set to
+   * `false`.
+   * 
+ * + * bool system_provided = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The systemProvided. + */ + @java.lang.Override + public boolean getSystemProvided() { + return systemProvided_; + } + + public static final int PERMISSIONS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList permissions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Output only. The list of permissions that this role is recommended for.
+   * This includes only the permissions of this role that are part of the
+   * recommendation.
+   * 
+ * + * repeated string permissions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the permissions. + */ + public com.google.protobuf.ProtocolStringList getPermissionsList() { + return permissions_; + } + + /** + * + * + *
+   * Output only. The list of permissions that this role is recommended for.
+   * This includes only the permissions of this role that are part of the
+   * recommendation.
+   * 
+ * + * repeated string permissions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of permissions. + */ + public int getPermissionsCount() { + return permissions_.size(); + } + + /** + * + * + *
+   * Output only. The list of permissions that this role is recommended for.
+   * This includes only the permissions of this role that are part of the
+   * recommendation.
+   * 
+ * + * repeated string permissions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The permissions at the given index. + */ + public java.lang.String getPermissions(int index) { + return permissions_.get(index); + } + + /** + * + * + *
+   * Output only. The list of permissions that this role is recommended for.
+   * This includes only the permissions of this role that are part of the
+   * recommendation.
+   * 
+ * + * repeated string permissions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the permissions at the given index. + */ + public com.google.protobuf.ByteString getPermissionsBytes(int index) { + return permissions_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(role_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, role_); + } + if (systemProvided_ != false) { + output.writeBool(2, systemProvided_); + } + for (int i = 0; i < permissions_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, permissions_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(role_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, role_); + } + if (systemProvided_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, systemProvided_); + } + { + int dataSize = 0; + for (int i = 0; i < permissions_.size(); i++) { + dataSize += computeStringSizeNoTag(permissions_.getRaw(i)); + } + size += dataSize; + size += 1 * getPermissionsList().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.designcenter.v1.RoleInfo)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.RoleInfo other = + (com.google.cloud.designcenter.v1.RoleInfo) obj; + + if (!getRole().equals(other.getRole())) return false; + if (getSystemProvided() != other.getSystemProvided()) return false; + if (!getPermissionsList().equals(other.getPermissionsList())) 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) + ROLE_FIELD_NUMBER; + hash = (53 * hash) + getRole().hashCode(); + hash = (37 * hash) + SYSTEM_PROVIDED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSystemProvided()); + if (getPermissionsCount() > 0) { + hash = (37 * hash) + PERMISSIONS_FIELD_NUMBER; + hash = (53 * hash) + getPermissionsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.RoleInfo parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.RoleInfo 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.designcenter.v1.RoleInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.RoleInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.RoleInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.RoleInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.RoleInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.RoleInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.RoleInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.RoleInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.RoleInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.RoleInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.RoleInfo 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * RoleInfo represents an IAM role along with its origin.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.RoleInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.RoleInfo) + com.google.cloud.designcenter.v1.RoleInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_RoleInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_RoleInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.RoleInfo.class, + com.google.cloud.designcenter.v1.RoleInfo.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.RoleInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + role_ = ""; + systemProvided_ = false; + permissions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_RoleInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.RoleInfo getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.RoleInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.RoleInfo build() { + com.google.cloud.designcenter.v1.RoleInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.RoleInfo buildPartial() { + com.google.cloud.designcenter.v1.RoleInfo result = + new com.google.cloud.designcenter.v1.RoleInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.RoleInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.role_ = role_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.systemProvided_ = systemProvided_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + permissions_.makeImmutable(); + result.permissions_ = permissions_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.RoleInfo) { + return mergeFrom((com.google.cloud.designcenter.v1.RoleInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.RoleInfo other) { + if (other == com.google.cloud.designcenter.v1.RoleInfo.getDefaultInstance()) return this; + if (!other.getRole().isEmpty()) { + role_ = other.role_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getSystemProvided() != false) { + setSystemProvided(other.getSystemProvided()); + } + if (!other.permissions_.isEmpty()) { + if (permissions_.isEmpty()) { + permissions_ = other.permissions_; + bitField0_ |= 0x00000004; + } else { + ensurePermissionsIsMutable(); + permissions_.addAll(other.permissions_); + } + 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: + { + role_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + systemProvided_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensurePermissionsIsMutable(); + permissions_.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.lang.Object role_ = ""; + + /** + * + * + *
+     * Required. IAM role name, such as `roles/editor`.
+     * 
+ * + * + * string role = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The role. + */ + public java.lang.String getRole() { + java.lang.Object ref = role_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + role_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. IAM role name, such as `roles/editor`.
+     * 
+ * + * + * string role = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for role. + */ + public com.google.protobuf.ByteString getRoleBytes() { + java.lang.Object ref = role_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + role_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. IAM role name, such as `roles/editor`.
+     * 
+ * + * + * string role = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The role to set. + * @return This builder for chaining. + */ + public Builder setRole(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + role_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. IAM role name, such as `roles/editor`.
+     * 
+ * + * + * string role = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRole() { + role_ = getDefaultInstance().getRole(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. IAM role name, such as `roles/editor`.
+     * 
+ * + * + * string role = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for role to set. + * @return This builder for chaining. + */ + public Builder setRoleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + role_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private boolean systemProvided_; + + /** + * + * + *
+     * Output only. When `true`, indicates that this role is automatically added
+     * by Application Design Center. When you provide a role, this field is set to
+     * `false`.
+     * 
+ * + * bool system_provided = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The systemProvided. + */ + @java.lang.Override + public boolean getSystemProvided() { + return systemProvided_; + } + + /** + * + * + *
+     * Output only. When `true`, indicates that this role is automatically added
+     * by Application Design Center. When you provide a role, this field is set to
+     * `false`.
+     * 
+ * + * bool system_provided = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The systemProvided to set. + * @return This builder for chaining. + */ + public Builder setSystemProvided(boolean value) { + + systemProvided_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. When `true`, indicates that this role is automatically added
+     * by Application Design Center. When you provide a role, this field is set to
+     * `false`.
+     * 
+ * + * bool system_provided = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSystemProvided() { + bitField0_ = (bitField0_ & ~0x00000002); + systemProvided_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList permissions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensurePermissionsIsMutable() { + if (!permissions_.isModifiable()) { + permissions_ = new com.google.protobuf.LazyStringArrayList(permissions_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
+     * Output only. The list of permissions that this role is recommended for.
+     * This includes only the permissions of this role that are part of the
+     * recommendation.
+     * 
+ * + * repeated string permissions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the permissions. + */ + public com.google.protobuf.ProtocolStringList getPermissionsList() { + permissions_.makeImmutable(); + return permissions_; + } + + /** + * + * + *
+     * Output only. The list of permissions that this role is recommended for.
+     * This includes only the permissions of this role that are part of the
+     * recommendation.
+     * 
+ * + * repeated string permissions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of permissions. + */ + public int getPermissionsCount() { + return permissions_.size(); + } + + /** + * + * + *
+     * Output only. The list of permissions that this role is recommended for.
+     * This includes only the permissions of this role that are part of the
+     * recommendation.
+     * 
+ * + * repeated string permissions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The permissions at the given index. + */ + public java.lang.String getPermissions(int index) { + return permissions_.get(index); + } + + /** + * + * + *
+     * Output only. The list of permissions that this role is recommended for.
+     * This includes only the permissions of this role that are part of the
+     * recommendation.
+     * 
+ * + * repeated string permissions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the permissions at the given index. + */ + public com.google.protobuf.ByteString getPermissionsBytes(int index) { + return permissions_.getByteString(index); + } + + /** + * + * + *
+     * Output only. The list of permissions that this role is recommended for.
+     * This includes only the permissions of this role that are part of the
+     * recommendation.
+     * 
+ * + * repeated string permissions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index to set the value at. + * @param value The permissions to set. + * @return This builder for chaining. + */ + public Builder setPermissions(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePermissionsIsMutable(); + permissions_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The list of permissions that this role is recommended for.
+     * This includes only the permissions of this role that are part of the
+     * recommendation.
+     * 
+ * + * repeated string permissions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The permissions to add. + * @return This builder for chaining. + */ + public Builder addPermissions(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePermissionsIsMutable(); + permissions_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The list of permissions that this role is recommended for.
+     * This includes only the permissions of this role that are part of the
+     * recommendation.
+     * 
+ * + * repeated string permissions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param values The permissions to add. + * @return This builder for chaining. + */ + public Builder addAllPermissions(java.lang.Iterable values) { + ensurePermissionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, permissions_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The list of permissions that this role is recommended for.
+     * This includes only the permissions of this role that are part of the
+     * recommendation.
+     * 
+ * + * repeated string permissions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearPermissions() { + permissions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The list of permissions that this role is recommended for.
+     * This includes only the permissions of this role that are part of the
+     * recommendation.
+     * 
+ * + * repeated string permissions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes of the permissions to add. + * @return This builder for chaining. + */ + public Builder addPermissionsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensurePermissionsIsMutable(); + permissions_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.RoleInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.RoleInfo) + private static final com.google.cloud.designcenter.v1.RoleInfo DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.RoleInfo(); + } + + public static com.google.cloud.designcenter.v1.RoleInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RoleInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.RoleInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RoleInfoOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RoleInfoOrBuilder.java new file mode 100644 index 000000000000..559c0e37ebf9 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RoleInfoOrBuilder.java @@ -0,0 +1,135 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface RoleInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.RoleInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. IAM role name, such as `roles/editor`.
+   * 
+ * + * + * string role = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The role. + */ + java.lang.String getRole(); + + /** + * + * + *
+   * Required. IAM role name, such as `roles/editor`.
+   * 
+ * + * + * string role = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for role. + */ + com.google.protobuf.ByteString getRoleBytes(); + + /** + * + * + *
+   * Output only. When `true`, indicates that this role is automatically added
+   * by Application Design Center. When you provide a role, this field is set to
+   * `false`.
+   * 
+ * + * bool system_provided = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The systemProvided. + */ + boolean getSystemProvided(); + + /** + * + * + *
+   * Output only. The list of permissions that this role is recommended for.
+   * This includes only the permissions of this role that are part of the
+   * recommendation.
+   * 
+ * + * repeated string permissions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the permissions. + */ + java.util.List getPermissionsList(); + + /** + * + * + *
+   * Output only. The list of permissions that this role is recommended for.
+   * This includes only the permissions of this role that are part of the
+   * recommendation.
+   * 
+ * + * repeated string permissions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of permissions. + */ + int getPermissionsCount(); + + /** + * + * + *
+   * Output only. The list of permissions that this role is recommended for.
+   * This includes only the permissions of this role that are part of the
+   * recommendation.
+   * 
+ * + * repeated string permissions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The permissions at the given index. + */ + java.lang.String getPermissions(int index); + + /** + * + * + *
+   * Output only. The list of permissions that this role is recommended for.
+   * This includes only the permissions of this role that are part of the
+   * recommendation.
+   * 
+ * + * repeated string permissions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the permissions at the given index. + */ + com.google.protobuf.ByteString getPermissionsBytes(int index); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RolesAndApisConfig.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RolesAndApisConfig.java new file mode 100644 index 000000000000..7ca211c23a24 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RolesAndApisConfig.java @@ -0,0 +1,1828 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Represents configurations required within a specific project to deploy the
+ * application.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.RolesAndApisConfig} + */ +@com.google.protobuf.Generated +public final class RolesAndApisConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.RolesAndApisConfig) + RolesAndApisConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "RolesAndApisConfig"); + } + + // Use RolesAndApisConfig.newBuilder() to construct. + private RolesAndApisConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RolesAndApisConfig() { + projectId_ = ""; + roles_ = java.util.Collections.emptyList(); + apis_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_RolesAndApisConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_RolesAndApisConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.RolesAndApisConfig.class, + com.google.cloud.designcenter.v1.RolesAndApisConfig.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + + /** + * + * + *
+   * Required. The project ID to which these configurations apply.
+   * 
+ * + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The projectId. + */ + @java.lang.Override + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The project ID to which these configurations apply.
+   * 
+ * + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for projectId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ROLES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List roles_; + + /** + * + * + *
+   * Optional. IAM roles that the deployment service account needs to deploy
+   * the application within this project.
+   * Each role must be a valid IAM role name, such as `roles/editor`.
+   * The maximum number of roles allowed is 500.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.RoleInfo roles = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getRolesList() { + return roles_; + } + + /** + * + * + *
+   * Optional. IAM roles that the deployment service account needs to deploy
+   * the application within this project.
+   * Each role must be a valid IAM role name, such as `roles/editor`.
+   * The maximum number of roles allowed is 500.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.RoleInfo roles = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getRolesOrBuilderList() { + return roles_; + } + + /** + * + * + *
+   * Optional. IAM roles that the deployment service account needs to deploy
+   * the application within this project.
+   * Each role must be a valid IAM role name, such as `roles/editor`.
+   * The maximum number of roles allowed is 500.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.RoleInfo roles = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getRolesCount() { + return roles_.size(); + } + + /** + * + * + *
+   * Optional. IAM roles that the deployment service account needs to deploy
+   * the application within this project.
+   * Each role must be a valid IAM role name, such as `roles/editor`.
+   * The maximum number of roles allowed is 500.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.RoleInfo roles = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.RoleInfo getRoles(int index) { + return roles_.get(index); + } + + /** + * + * + *
+   * Optional. IAM roles that the deployment service account needs to deploy
+   * the application within this project.
+   * Each role must be a valid IAM role name, such as `roles/editor`.
+   * The maximum number of roles allowed is 500.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.RoleInfo roles = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.RoleInfoOrBuilder getRolesOrBuilder(int index) { + return roles_.get(index); + } + + public static final int APIS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List apis_; + + /** + * + * + *
+   * Optional. APIs that you must enable in this project before you deploy the
+   * application, in the form of "*.googleapis.com". The maximum number of APIs
+   * allowed is 500.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApiInfo apis = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getApisList() { + return apis_; + } + + /** + * + * + *
+   * Optional. APIs that you must enable in this project before you deploy the
+   * application, in the form of "*.googleapis.com". The maximum number of APIs
+   * allowed is 500.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApiInfo apis = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getApisOrBuilderList() { + return apis_; + } + + /** + * + * + *
+   * Optional. APIs that you must enable in this project before you deploy the
+   * application, in the form of "*.googleapis.com". The maximum number of APIs
+   * allowed is 500.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApiInfo apis = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getApisCount() { + return apis_.size(); + } + + /** + * + * + *
+   * Optional. APIs that you must enable in this project before you deploy the
+   * application, in the form of "*.googleapis.com". The maximum number of APIs
+   * allowed is 500.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApiInfo apis = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ApiInfo getApis(int index) { + return apis_.get(index); + } + + /** + * + * + *
+   * Optional. APIs that you must enable in this project before you deploy the
+   * application, in the form of "*.googleapis.com". The maximum number of APIs
+   * allowed is 500.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApiInfo apis = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ApiInfoOrBuilder getApisOrBuilder(int index) { + return apis_.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.GeneratedMessage.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, projectId_); + } + for (int i = 0; i < roles_.size(); i++) { + output.writeMessage(2, roles_.get(i)); + } + for (int i = 0; i < apis_.size(); i++) { + output.writeMessage(3, apis_.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.GeneratedMessage.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, projectId_); + } + for (int i = 0; i < roles_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, roles_.get(i)); + } + for (int i = 0; i < apis_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, apis_.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.designcenter.v1.RolesAndApisConfig)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.RolesAndApisConfig other = + (com.google.cloud.designcenter.v1.RolesAndApisConfig) obj; + + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getRolesList().equals(other.getRolesList())) return false; + if (!getApisList().equals(other.getApisList())) 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) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + if (getRolesCount() > 0) { + hash = (37 * hash) + ROLES_FIELD_NUMBER; + hash = (53 * hash) + getRolesList().hashCode(); + } + if (getApisCount() > 0) { + hash = (37 * hash) + APIS_FIELD_NUMBER; + hash = (53 * hash) + getApisList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.RolesAndApisConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.RolesAndApisConfig 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.designcenter.v1.RolesAndApisConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.RolesAndApisConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.RolesAndApisConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.RolesAndApisConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.RolesAndApisConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.RolesAndApisConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.RolesAndApisConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.RolesAndApisConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.RolesAndApisConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.RolesAndApisConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.RolesAndApisConfig 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Represents configurations required within a specific project to deploy the
+   * application.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.RolesAndApisConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.RolesAndApisConfig) + com.google.cloud.designcenter.v1.RolesAndApisConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_RolesAndApisConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_RolesAndApisConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.RolesAndApisConfig.class, + com.google.cloud.designcenter.v1.RolesAndApisConfig.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.RolesAndApisConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + projectId_ = ""; + if (rolesBuilder_ == null) { + roles_ = java.util.Collections.emptyList(); + } else { + roles_ = null; + rolesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + if (apisBuilder_ == null) { + apis_ = java.util.Collections.emptyList(); + } else { + apis_ = null; + apisBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_RolesAndApisConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.RolesAndApisConfig getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.RolesAndApisConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.RolesAndApisConfig build() { + com.google.cloud.designcenter.v1.RolesAndApisConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.RolesAndApisConfig buildPartial() { + com.google.cloud.designcenter.v1.RolesAndApisConfig result = + new com.google.cloud.designcenter.v1.RolesAndApisConfig(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.designcenter.v1.RolesAndApisConfig result) { + if (rolesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + roles_ = java.util.Collections.unmodifiableList(roles_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.roles_ = roles_; + } else { + result.roles_ = rolesBuilder_.build(); + } + if (apisBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + apis_ = java.util.Collections.unmodifiableList(apis_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.apis_ = apis_; + } else { + result.apis_ = apisBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.designcenter.v1.RolesAndApisConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.projectId_ = projectId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.RolesAndApisConfig) { + return mergeFrom((com.google.cloud.designcenter.v1.RolesAndApisConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.RolesAndApisConfig other) { + if (other == com.google.cloud.designcenter.v1.RolesAndApisConfig.getDefaultInstance()) + return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (rolesBuilder_ == null) { + if (!other.roles_.isEmpty()) { + if (roles_.isEmpty()) { + roles_ = other.roles_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureRolesIsMutable(); + roles_.addAll(other.roles_); + } + onChanged(); + } + } else { + if (!other.roles_.isEmpty()) { + if (rolesBuilder_.isEmpty()) { + rolesBuilder_.dispose(); + rolesBuilder_ = null; + roles_ = other.roles_; + bitField0_ = (bitField0_ & ~0x00000002); + rolesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetRolesFieldBuilder() + : null; + } else { + rolesBuilder_.addAllMessages(other.roles_); + } + } + } + if (apisBuilder_ == null) { + if (!other.apis_.isEmpty()) { + if (apis_.isEmpty()) { + apis_ = other.apis_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureApisIsMutable(); + apis_.addAll(other.apis_); + } + onChanged(); + } + } else { + if (!other.apis_.isEmpty()) { + if (apisBuilder_.isEmpty()) { + apisBuilder_.dispose(); + apisBuilder_ = null; + apis_ = other.apis_; + bitField0_ = (bitField0_ & ~0x00000004); + apisBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetApisFieldBuilder() + : null; + } else { + apisBuilder_.addAllMessages(other.apis_); + } + } + } + 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: + { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.designcenter.v1.RoleInfo m = + input.readMessage( + com.google.cloud.designcenter.v1.RoleInfo.parser(), extensionRegistry); + if (rolesBuilder_ == null) { + ensureRolesIsMutable(); + roles_.add(m); + } else { + rolesBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: + { + com.google.cloud.designcenter.v1.ApiInfo m = + input.readMessage( + com.google.cloud.designcenter.v1.ApiInfo.parser(), extensionRegistry); + if (apisBuilder_ == null) { + ensureApisIsMutable(); + apis_.add(m); + } else { + apisBuilder_.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 projectId_ = ""; + + /** + * + * + *
+     * Required. The project ID to which these configurations apply.
+     * 
+ * + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The projectId. + */ + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The project ID to which these configurations apply.
+     * 
+ * + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for projectId. + */ + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The project ID to which these configurations apply.
+     * 
+ * + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The projectId to set. + * @return This builder for chaining. + */ + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + projectId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The project ID to which these configurations apply.
+     * 
+ * + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The project ID to which these configurations apply.
+     * 
+ * + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List roles_ = + java.util.Collections.emptyList(); + + private void ensureRolesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + roles_ = new java.util.ArrayList(roles_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.RoleInfo, + com.google.cloud.designcenter.v1.RoleInfo.Builder, + com.google.cloud.designcenter.v1.RoleInfoOrBuilder> + rolesBuilder_; + + /** + * + * + *
+     * Optional. IAM roles that the deployment service account needs to deploy
+     * the application within this project.
+     * Each role must be a valid IAM role name, such as `roles/editor`.
+     * The maximum number of roles allowed is 500.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.RoleInfo roles = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getRolesList() { + if (rolesBuilder_ == null) { + return java.util.Collections.unmodifiableList(roles_); + } else { + return rolesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. IAM roles that the deployment service account needs to deploy
+     * the application within this project.
+     * Each role must be a valid IAM role name, such as `roles/editor`.
+     * The maximum number of roles allowed is 500.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.RoleInfo roles = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getRolesCount() { + if (rolesBuilder_ == null) { + return roles_.size(); + } else { + return rolesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. IAM roles that the deployment service account needs to deploy
+     * the application within this project.
+     * Each role must be a valid IAM role name, such as `roles/editor`.
+     * The maximum number of roles allowed is 500.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.RoleInfo roles = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.RoleInfo getRoles(int index) { + if (rolesBuilder_ == null) { + return roles_.get(index); + } else { + return rolesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. IAM roles that the deployment service account needs to deploy
+     * the application within this project.
+     * Each role must be a valid IAM role name, such as `roles/editor`.
+     * The maximum number of roles allowed is 500.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.RoleInfo roles = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRoles(int index, com.google.cloud.designcenter.v1.RoleInfo value) { + if (rolesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRolesIsMutable(); + roles_.set(index, value); + onChanged(); + } else { + rolesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. IAM roles that the deployment service account needs to deploy
+     * the application within this project.
+     * Each role must be a valid IAM role name, such as `roles/editor`.
+     * The maximum number of roles allowed is 500.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.RoleInfo roles = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRoles( + int index, com.google.cloud.designcenter.v1.RoleInfo.Builder builderForValue) { + if (rolesBuilder_ == null) { + ensureRolesIsMutable(); + roles_.set(index, builderForValue.build()); + onChanged(); + } else { + rolesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. IAM roles that the deployment service account needs to deploy
+     * the application within this project.
+     * Each role must be a valid IAM role name, such as `roles/editor`.
+     * The maximum number of roles allowed is 500.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.RoleInfo roles = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addRoles(com.google.cloud.designcenter.v1.RoleInfo value) { + if (rolesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRolesIsMutable(); + roles_.add(value); + onChanged(); + } else { + rolesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. IAM roles that the deployment service account needs to deploy
+     * the application within this project.
+     * Each role must be a valid IAM role name, such as `roles/editor`.
+     * The maximum number of roles allowed is 500.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.RoleInfo roles = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addRoles(int index, com.google.cloud.designcenter.v1.RoleInfo value) { + if (rolesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRolesIsMutable(); + roles_.add(index, value); + onChanged(); + } else { + rolesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. IAM roles that the deployment service account needs to deploy
+     * the application within this project.
+     * Each role must be a valid IAM role name, such as `roles/editor`.
+     * The maximum number of roles allowed is 500.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.RoleInfo roles = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addRoles(com.google.cloud.designcenter.v1.RoleInfo.Builder builderForValue) { + if (rolesBuilder_ == null) { + ensureRolesIsMutable(); + roles_.add(builderForValue.build()); + onChanged(); + } else { + rolesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. IAM roles that the deployment service account needs to deploy
+     * the application within this project.
+     * Each role must be a valid IAM role name, such as `roles/editor`.
+     * The maximum number of roles allowed is 500.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.RoleInfo roles = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addRoles( + int index, com.google.cloud.designcenter.v1.RoleInfo.Builder builderForValue) { + if (rolesBuilder_ == null) { + ensureRolesIsMutable(); + roles_.add(index, builderForValue.build()); + onChanged(); + } else { + rolesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. IAM roles that the deployment service account needs to deploy
+     * the application within this project.
+     * Each role must be a valid IAM role name, such as `roles/editor`.
+     * The maximum number of roles allowed is 500.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.RoleInfo roles = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllRoles( + java.lang.Iterable values) { + if (rolesBuilder_ == null) { + ensureRolesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, roles_); + onChanged(); + } else { + rolesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. IAM roles that the deployment service account needs to deploy
+     * the application within this project.
+     * Each role must be a valid IAM role name, such as `roles/editor`.
+     * The maximum number of roles allowed is 500.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.RoleInfo roles = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearRoles() { + if (rolesBuilder_ == null) { + roles_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + rolesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. IAM roles that the deployment service account needs to deploy
+     * the application within this project.
+     * Each role must be a valid IAM role name, such as `roles/editor`.
+     * The maximum number of roles allowed is 500.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.RoleInfo roles = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeRoles(int index) { + if (rolesBuilder_ == null) { + ensureRolesIsMutable(); + roles_.remove(index); + onChanged(); + } else { + rolesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. IAM roles that the deployment service account needs to deploy
+     * the application within this project.
+     * Each role must be a valid IAM role name, such as `roles/editor`.
+     * The maximum number of roles allowed is 500.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.RoleInfo roles = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.RoleInfo.Builder getRolesBuilder(int index) { + return internalGetRolesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. IAM roles that the deployment service account needs to deploy
+     * the application within this project.
+     * Each role must be a valid IAM role name, such as `roles/editor`.
+     * The maximum number of roles allowed is 500.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.RoleInfo roles = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.RoleInfoOrBuilder getRolesOrBuilder(int index) { + if (rolesBuilder_ == null) { + return roles_.get(index); + } else { + return rolesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. IAM roles that the deployment service account needs to deploy
+     * the application within this project.
+     * Each role must be a valid IAM role name, such as `roles/editor`.
+     * The maximum number of roles allowed is 500.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.RoleInfo roles = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getRolesOrBuilderList() { + if (rolesBuilder_ != null) { + return rolesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(roles_); + } + } + + /** + * + * + *
+     * Optional. IAM roles that the deployment service account needs to deploy
+     * the application within this project.
+     * Each role must be a valid IAM role name, such as `roles/editor`.
+     * The maximum number of roles allowed is 500.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.RoleInfo roles = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.RoleInfo.Builder addRolesBuilder() { + return internalGetRolesFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.RoleInfo.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. IAM roles that the deployment service account needs to deploy
+     * the application within this project.
+     * Each role must be a valid IAM role name, such as `roles/editor`.
+     * The maximum number of roles allowed is 500.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.RoleInfo roles = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.RoleInfo.Builder addRolesBuilder(int index) { + return internalGetRolesFieldBuilder() + .addBuilder(index, com.google.cloud.designcenter.v1.RoleInfo.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. IAM roles that the deployment service account needs to deploy
+     * the application within this project.
+     * Each role must be a valid IAM role name, such as `roles/editor`.
+     * The maximum number of roles allowed is 500.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.RoleInfo roles = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getRolesBuilderList() { + return internalGetRolesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.RoleInfo, + com.google.cloud.designcenter.v1.RoleInfo.Builder, + com.google.cloud.designcenter.v1.RoleInfoOrBuilder> + internalGetRolesFieldBuilder() { + if (rolesBuilder_ == null) { + rolesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.RoleInfo, + com.google.cloud.designcenter.v1.RoleInfo.Builder, + com.google.cloud.designcenter.v1.RoleInfoOrBuilder>( + roles_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + roles_ = null; + } + return rolesBuilder_; + } + + private java.util.List apis_ = + java.util.Collections.emptyList(); + + private void ensureApisIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + apis_ = new java.util.ArrayList(apis_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ApiInfo, + com.google.cloud.designcenter.v1.ApiInfo.Builder, + com.google.cloud.designcenter.v1.ApiInfoOrBuilder> + apisBuilder_; + + /** + * + * + *
+     * Optional. APIs that you must enable in this project before you deploy the
+     * application, in the form of "*.googleapis.com". The maximum number of APIs
+     * allowed is 500.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApiInfo apis = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getApisList() { + if (apisBuilder_ == null) { + return java.util.Collections.unmodifiableList(apis_); + } else { + return apisBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. APIs that you must enable in this project before you deploy the
+     * application, in the form of "*.googleapis.com". The maximum number of APIs
+     * allowed is 500.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApiInfo apis = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getApisCount() { + if (apisBuilder_ == null) { + return apis_.size(); + } else { + return apisBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. APIs that you must enable in this project before you deploy the
+     * application, in the form of "*.googleapis.com". The maximum number of APIs
+     * allowed is 500.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApiInfo apis = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ApiInfo getApis(int index) { + if (apisBuilder_ == null) { + return apis_.get(index); + } else { + return apisBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. APIs that you must enable in this project before you deploy the
+     * application, in the form of "*.googleapis.com". The maximum number of APIs
+     * allowed is 500.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApiInfo apis = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setApis(int index, com.google.cloud.designcenter.v1.ApiInfo value) { + if (apisBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApisIsMutable(); + apis_.set(index, value); + onChanged(); + } else { + apisBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. APIs that you must enable in this project before you deploy the
+     * application, in the form of "*.googleapis.com". The maximum number of APIs
+     * allowed is 500.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApiInfo apis = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setApis( + int index, com.google.cloud.designcenter.v1.ApiInfo.Builder builderForValue) { + if (apisBuilder_ == null) { + ensureApisIsMutable(); + apis_.set(index, builderForValue.build()); + onChanged(); + } else { + apisBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. APIs that you must enable in this project before you deploy the
+     * application, in the form of "*.googleapis.com". The maximum number of APIs
+     * allowed is 500.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApiInfo apis = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addApis(com.google.cloud.designcenter.v1.ApiInfo value) { + if (apisBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApisIsMutable(); + apis_.add(value); + onChanged(); + } else { + apisBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. APIs that you must enable in this project before you deploy the
+     * application, in the form of "*.googleapis.com". The maximum number of APIs
+     * allowed is 500.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApiInfo apis = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addApis(int index, com.google.cloud.designcenter.v1.ApiInfo value) { + if (apisBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApisIsMutable(); + apis_.add(index, value); + onChanged(); + } else { + apisBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. APIs that you must enable in this project before you deploy the
+     * application, in the form of "*.googleapis.com". The maximum number of APIs
+     * allowed is 500.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApiInfo apis = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addApis(com.google.cloud.designcenter.v1.ApiInfo.Builder builderForValue) { + if (apisBuilder_ == null) { + ensureApisIsMutable(); + apis_.add(builderForValue.build()); + onChanged(); + } else { + apisBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. APIs that you must enable in this project before you deploy the
+     * application, in the form of "*.googleapis.com". The maximum number of APIs
+     * allowed is 500.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApiInfo apis = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addApis( + int index, com.google.cloud.designcenter.v1.ApiInfo.Builder builderForValue) { + if (apisBuilder_ == null) { + ensureApisIsMutable(); + apis_.add(index, builderForValue.build()); + onChanged(); + } else { + apisBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. APIs that you must enable in this project before you deploy the
+     * application, in the form of "*.googleapis.com". The maximum number of APIs
+     * allowed is 500.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApiInfo apis = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllApis( + java.lang.Iterable values) { + if (apisBuilder_ == null) { + ensureApisIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, apis_); + onChanged(); + } else { + apisBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. APIs that you must enable in this project before you deploy the
+     * application, in the form of "*.googleapis.com". The maximum number of APIs
+     * allowed is 500.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApiInfo apis = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearApis() { + if (apisBuilder_ == null) { + apis_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + apisBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. APIs that you must enable in this project before you deploy the
+     * application, in the form of "*.googleapis.com". The maximum number of APIs
+     * allowed is 500.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApiInfo apis = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeApis(int index) { + if (apisBuilder_ == null) { + ensureApisIsMutable(); + apis_.remove(index); + onChanged(); + } else { + apisBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. APIs that you must enable in this project before you deploy the
+     * application, in the form of "*.googleapis.com". The maximum number of APIs
+     * allowed is 500.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApiInfo apis = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ApiInfo.Builder getApisBuilder(int index) { + return internalGetApisFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. APIs that you must enable in this project before you deploy the
+     * application, in the form of "*.googleapis.com". The maximum number of APIs
+     * allowed is 500.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApiInfo apis = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ApiInfoOrBuilder getApisOrBuilder(int index) { + if (apisBuilder_ == null) { + return apis_.get(index); + } else { + return apisBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. APIs that you must enable in this project before you deploy the
+     * application, in the form of "*.googleapis.com". The maximum number of APIs
+     * allowed is 500.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApiInfo apis = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getApisOrBuilderList() { + if (apisBuilder_ != null) { + return apisBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(apis_); + } + } + + /** + * + * + *
+     * Optional. APIs that you must enable in this project before you deploy the
+     * application, in the form of "*.googleapis.com". The maximum number of APIs
+     * allowed is 500.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApiInfo apis = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ApiInfo.Builder addApisBuilder() { + return internalGetApisFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.ApiInfo.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. APIs that you must enable in this project before you deploy the
+     * application, in the form of "*.googleapis.com". The maximum number of APIs
+     * allowed is 500.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApiInfo apis = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ApiInfo.Builder addApisBuilder(int index) { + return internalGetApisFieldBuilder() + .addBuilder(index, com.google.cloud.designcenter.v1.ApiInfo.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. APIs that you must enable in this project before you deploy the
+     * application, in the form of "*.googleapis.com". The maximum number of APIs
+     * allowed is 500.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApiInfo apis = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getApisBuilderList() { + return internalGetApisFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ApiInfo, + com.google.cloud.designcenter.v1.ApiInfo.Builder, + com.google.cloud.designcenter.v1.ApiInfoOrBuilder> + internalGetApisFieldBuilder() { + if (apisBuilder_ == null) { + apisBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ApiInfo, + com.google.cloud.designcenter.v1.ApiInfo.Builder, + com.google.cloud.designcenter.v1.ApiInfoOrBuilder>( + apis_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + apis_ = null; + } + return apisBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.RolesAndApisConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.RolesAndApisConfig) + private static final com.google.cloud.designcenter.v1.RolesAndApisConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.RolesAndApisConfig(); + } + + public static com.google.cloud.designcenter.v1.RolesAndApisConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RolesAndApisConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.RolesAndApisConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RolesAndApisConfigOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RolesAndApisConfigOrBuilder.java new file mode 100644 index 000000000000..5100c4f4f941 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RolesAndApisConfigOrBuilder.java @@ -0,0 +1,211 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface RolesAndApisConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.RolesAndApisConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The project ID to which these configurations apply.
+   * 
+ * + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The projectId. + */ + java.lang.String getProjectId(); + + /** + * + * + *
+   * Required. The project ID to which these configurations apply.
+   * 
+ * + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for projectId. + */ + com.google.protobuf.ByteString getProjectIdBytes(); + + /** + * + * + *
+   * Optional. IAM roles that the deployment service account needs to deploy
+   * the application within this project.
+   * Each role must be a valid IAM role name, such as `roles/editor`.
+   * The maximum number of roles allowed is 500.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.RoleInfo roles = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getRolesList(); + + /** + * + * + *
+   * Optional. IAM roles that the deployment service account needs to deploy
+   * the application within this project.
+   * Each role must be a valid IAM role name, such as `roles/editor`.
+   * The maximum number of roles allowed is 500.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.RoleInfo roles = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.RoleInfo getRoles(int index); + + /** + * + * + *
+   * Optional. IAM roles that the deployment service account needs to deploy
+   * the application within this project.
+   * Each role must be a valid IAM role name, such as `roles/editor`.
+   * The maximum number of roles allowed is 500.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.RoleInfo roles = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getRolesCount(); + + /** + * + * + *
+   * Optional. IAM roles that the deployment service account needs to deploy
+   * the application within this project.
+   * Each role must be a valid IAM role name, such as `roles/editor`.
+   * The maximum number of roles allowed is 500.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.RoleInfo roles = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getRolesOrBuilderList(); + + /** + * + * + *
+   * Optional. IAM roles that the deployment service account needs to deploy
+   * the application within this project.
+   * Each role must be a valid IAM role name, such as `roles/editor`.
+   * The maximum number of roles allowed is 500.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.RoleInfo roles = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.RoleInfoOrBuilder getRolesOrBuilder(int index); + + /** + * + * + *
+   * Optional. APIs that you must enable in this project before you deploy the
+   * application, in the form of "*.googleapis.com". The maximum number of APIs
+   * allowed is 500.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApiInfo apis = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getApisList(); + + /** + * + * + *
+   * Optional. APIs that you must enable in this project before you deploy the
+   * application, in the form of "*.googleapis.com". The maximum number of APIs
+   * allowed is 500.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApiInfo apis = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.ApiInfo getApis(int index); + + /** + * + * + *
+   * Optional. APIs that you must enable in this project before you deploy the
+   * application, in the form of "*.googleapis.com". The maximum number of APIs
+   * allowed is 500.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApiInfo apis = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getApisCount(); + + /** + * + * + *
+   * Optional. APIs that you must enable in this project before you deploy the
+   * application, in the form of "*.googleapis.com". The maximum number of APIs
+   * allowed is 500.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApiInfo apis = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getApisOrBuilderList(); + + /** + * + * + *
+   * Optional. APIs that you must enable in this project before you deploy the
+   * application, in the form of "*.googleapis.com". The maximum number of APIs
+   * allowed is 500.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApiInfo apis = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.ApiInfoOrBuilder getApisOrBuilder(int index); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RootInputVariable.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RootInputVariable.java new file mode 100644 index 000000000000..7a49c6660554 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RootInputVariable.java @@ -0,0 +1,1534 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/iac.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Input variable of a root module.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.RootInputVariable} + */ +@com.google.protobuf.Generated +public final class RootInputVariable extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.RootInputVariable) + RootInputVariableOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "RootInputVariable"); + } + + // Use RootInputVariable.newBuilder() to construct. + private RootInputVariable(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RootInputVariable() { + variable_ = ""; + variableType_ = ""; + alias_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.IacProto + .internal_static_google_cloud_designcenter_v1_RootInputVariable_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.IacProto + .internal_static_google_cloud_designcenter_v1_RootInputVariable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.RootInputVariable.class, + com.google.cloud.designcenter.v1.RootInputVariable.Builder.class); + } + + private int bitField0_; + public static final int VARIABLE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object variable_ = ""; + + /** + * + * + *
+   * Name of the input variable.
+   * 
+ * + * string variable = 1; + * + * @return The variable. + */ + @java.lang.Override + public java.lang.String getVariable() { + java.lang.Object ref = variable_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + variable_ = s; + return s; + } + } + + /** + * + * + *
+   * Name of the input variable.
+   * 
+ * + * string variable = 1; + * + * @return The bytes for variable. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVariableBytes() { + java.lang.Object ref = variable_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + variable_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VARIABLE_TYPE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object variableType_ = ""; + + /** + * + * + *
+   * Type of the input variable.
+   * 
+ * + * string variable_type = 2; + * + * @return The variableType. + */ + @java.lang.Override + public java.lang.String getVariableType() { + java.lang.Object ref = variableType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + variableType_ = s; + return s; + } + } + + /** + * + * + *
+   * Type of the input variable.
+   * 
+ * + * string variable_type = 2; + * + * @return The bytes for variableType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVariableTypeBytes() { + java.lang.Object ref = variableType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + variableType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALUE_FIELD_NUMBER = 3; + private com.google.protobuf.Value value_; + + /** + * + * + *
+   * Value for the input variable.
+   * 
+ * + * .google.protobuf.Value value = 3; + * + * @return Whether the value field is set. + */ + @java.lang.Override + public boolean hasValue() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Value for the input variable.
+   * 
+ * + * .google.protobuf.Value value = 3; + * + * @return The value. + */ + @java.lang.Override + public com.google.protobuf.Value getValue() { + return value_ == null ? com.google.protobuf.Value.getDefaultInstance() : value_; + } + + /** + * + * + *
+   * Value for the input variable.
+   * 
+ * + * .google.protobuf.Value value = 3; + */ + @java.lang.Override + public com.google.protobuf.ValueOrBuilder getValueOrBuilder() { + return value_ == null ? com.google.protobuf.Value.getDefaultInstance() : value_; + } + + public static final int DEFAULT_VALUE_FIELD_NUMBER = 4; + private com.google.protobuf.Value defaultValue_; + + /** + * + * + *
+   * Default value of the input variable.
+   * 
+ * + * .google.protobuf.Value default_value = 4; + * + * @return Whether the defaultValue field is set. + */ + @java.lang.Override + public boolean hasDefaultValue() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Default value of the input variable.
+   * 
+ * + * .google.protobuf.Value default_value = 4; + * + * @return The defaultValue. + */ + @java.lang.Override + public com.google.protobuf.Value getDefaultValue() { + return defaultValue_ == null ? com.google.protobuf.Value.getDefaultInstance() : defaultValue_; + } + + /** + * + * + *
+   * Default value of the input variable.
+   * 
+ * + * .google.protobuf.Value default_value = 4; + */ + @java.lang.Override + public com.google.protobuf.ValueOrBuilder getDefaultValueOrBuilder() { + return defaultValue_ == null ? com.google.protobuf.Value.getDefaultInstance() : defaultValue_; + } + + public static final int ALIAS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object alias_ = ""; + + /** + * + * + *
+   * Alias for the variable name.
+   * 
+ * + * string alias = 5; + * + * @return The alias. + */ + @java.lang.Override + public java.lang.String getAlias() { + java.lang.Object ref = alias_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + alias_ = s; + return s; + } + } + + /** + * + * + *
+   * Alias for the variable name.
+   * 
+ * + * string alias = 5; + * + * @return The bytes for alias. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAliasBytes() { + java.lang.Object ref = alias_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + alias_ = 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.GeneratedMessage.isStringEmpty(variable_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, variable_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(variableType_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, variableType_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getValue()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getDefaultValue()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(alias_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, alias_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(variable_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, variable_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(variableType_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, variableType_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getValue()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDefaultValue()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(alias_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, alias_); + } + 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.designcenter.v1.RootInputVariable)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.RootInputVariable other = + (com.google.cloud.designcenter.v1.RootInputVariable) obj; + + if (!getVariable().equals(other.getVariable())) return false; + if (!getVariableType().equals(other.getVariableType())) return false; + if (hasValue() != other.hasValue()) return false; + if (hasValue()) { + if (!getValue().equals(other.getValue())) return false; + } + if (hasDefaultValue() != other.hasDefaultValue()) return false; + if (hasDefaultValue()) { + if (!getDefaultValue().equals(other.getDefaultValue())) return false; + } + if (!getAlias().equals(other.getAlias())) 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) + VARIABLE_FIELD_NUMBER; + hash = (53 * hash) + getVariable().hashCode(); + hash = (37 * hash) + VARIABLE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getVariableType().hashCode(); + if (hasValue()) { + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + } + if (hasDefaultValue()) { + hash = (37 * hash) + DEFAULT_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getDefaultValue().hashCode(); + } + hash = (37 * hash) + ALIAS_FIELD_NUMBER; + hash = (53 * hash) + getAlias().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.RootInputVariable parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.RootInputVariable 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.designcenter.v1.RootInputVariable parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.RootInputVariable parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.RootInputVariable parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.RootInputVariable parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.RootInputVariable parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.RootInputVariable parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.RootInputVariable parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.RootInputVariable parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.RootInputVariable parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.RootInputVariable parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.RootInputVariable 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Input variable of a root module.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.RootInputVariable} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.RootInputVariable) + com.google.cloud.designcenter.v1.RootInputVariableOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.IacProto + .internal_static_google_cloud_designcenter_v1_RootInputVariable_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.IacProto + .internal_static_google_cloud_designcenter_v1_RootInputVariable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.RootInputVariable.class, + com.google.cloud.designcenter.v1.RootInputVariable.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.RootInputVariable.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetValueFieldBuilder(); + internalGetDefaultValueFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + variable_ = ""; + variableType_ = ""; + value_ = null; + if (valueBuilder_ != null) { + valueBuilder_.dispose(); + valueBuilder_ = null; + } + defaultValue_ = null; + if (defaultValueBuilder_ != null) { + defaultValueBuilder_.dispose(); + defaultValueBuilder_ = null; + } + alias_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.IacProto + .internal_static_google_cloud_designcenter_v1_RootInputVariable_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.RootInputVariable getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.RootInputVariable.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.RootInputVariable build() { + com.google.cloud.designcenter.v1.RootInputVariable result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.RootInputVariable buildPartial() { + com.google.cloud.designcenter.v1.RootInputVariable result = + new com.google.cloud.designcenter.v1.RootInputVariable(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.RootInputVariable result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.variable_ = variable_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.variableType_ = variableType_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.value_ = valueBuilder_ == null ? value_ : valueBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.defaultValue_ = + defaultValueBuilder_ == null ? defaultValue_ : defaultValueBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.alias_ = alias_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.RootInputVariable) { + return mergeFrom((com.google.cloud.designcenter.v1.RootInputVariable) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.RootInputVariable other) { + if (other == com.google.cloud.designcenter.v1.RootInputVariable.getDefaultInstance()) + return this; + if (!other.getVariable().isEmpty()) { + variable_ = other.variable_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getVariableType().isEmpty()) { + variableType_ = other.variableType_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasValue()) { + mergeValue(other.getValue()); + } + if (other.hasDefaultValue()) { + mergeDefaultValue(other.getDefaultValue()); + } + if (!other.getAlias().isEmpty()) { + alias_ = other.alias_; + 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: + { + variable_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + variableType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(internalGetValueFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetDefaultValueFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + alias_ = 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 variable_ = ""; + + /** + * + * + *
+     * Name of the input variable.
+     * 
+ * + * string variable = 1; + * + * @return The variable. + */ + public java.lang.String getVariable() { + java.lang.Object ref = variable_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + variable_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Name of the input variable.
+     * 
+ * + * string variable = 1; + * + * @return The bytes for variable. + */ + public com.google.protobuf.ByteString getVariableBytes() { + java.lang.Object ref = variable_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + variable_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Name of the input variable.
+     * 
+ * + * string variable = 1; + * + * @param value The variable to set. + * @return This builder for chaining. + */ + public Builder setVariable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + variable_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the input variable.
+     * 
+ * + * string variable = 1; + * + * @return This builder for chaining. + */ + public Builder clearVariable() { + variable_ = getDefaultInstance().getVariable(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the input variable.
+     * 
+ * + * string variable = 1; + * + * @param value The bytes for variable to set. + * @return This builder for chaining. + */ + public Builder setVariableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + variable_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object variableType_ = ""; + + /** + * + * + *
+     * Type of the input variable.
+     * 
+ * + * string variable_type = 2; + * + * @return The variableType. + */ + public java.lang.String getVariableType() { + java.lang.Object ref = variableType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + variableType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Type of the input variable.
+     * 
+ * + * string variable_type = 2; + * + * @return The bytes for variableType. + */ + public com.google.protobuf.ByteString getVariableTypeBytes() { + java.lang.Object ref = variableType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + variableType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Type of the input variable.
+     * 
+ * + * string variable_type = 2; + * + * @param value The variableType to set. + * @return This builder for chaining. + */ + public Builder setVariableType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + variableType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Type of the input variable.
+     * 
+ * + * string variable_type = 2; + * + * @return This builder for chaining. + */ + public Builder clearVariableType() { + variableType_ = getDefaultInstance().getVariableType(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Type of the input variable.
+     * 
+ * + * string variable_type = 2; + * + * @param value The bytes for variableType to set. + * @return This builder for chaining. + */ + public Builder setVariableTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + variableType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.Value value_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder> + valueBuilder_; + + /** + * + * + *
+     * Value for the input variable.
+     * 
+ * + * .google.protobuf.Value value = 3; + * + * @return Whether the value field is set. + */ + public boolean hasValue() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Value for the input variable.
+     * 
+ * + * .google.protobuf.Value value = 3; + * + * @return The value. + */ + public com.google.protobuf.Value getValue() { + if (valueBuilder_ == null) { + return value_ == null ? com.google.protobuf.Value.getDefaultInstance() : value_; + } else { + return valueBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Value for the input variable.
+     * 
+ * + * .google.protobuf.Value value = 3; + */ + public Builder setValue(com.google.protobuf.Value value) { + if (valueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + } else { + valueBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Value for the input variable.
+     * 
+ * + * .google.protobuf.Value value = 3; + */ + public Builder setValue(com.google.protobuf.Value.Builder builderForValue) { + if (valueBuilder_ == null) { + value_ = builderForValue.build(); + } else { + valueBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Value for the input variable.
+     * 
+ * + * .google.protobuf.Value value = 3; + */ + public Builder mergeValue(com.google.protobuf.Value value) { + if (valueBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && value_ != null + && value_ != com.google.protobuf.Value.getDefaultInstance()) { + getValueBuilder().mergeFrom(value); + } else { + value_ = value; + } + } else { + valueBuilder_.mergeFrom(value); + } + if (value_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Value for the input variable.
+     * 
+ * + * .google.protobuf.Value value = 3; + */ + public Builder clearValue() { + bitField0_ = (bitField0_ & ~0x00000004); + value_ = null; + if (valueBuilder_ != null) { + valueBuilder_.dispose(); + valueBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Value for the input variable.
+     * 
+ * + * .google.protobuf.Value value = 3; + */ + public com.google.protobuf.Value.Builder getValueBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetValueFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Value for the input variable.
+     * 
+ * + * .google.protobuf.Value value = 3; + */ + public com.google.protobuf.ValueOrBuilder getValueOrBuilder() { + if (valueBuilder_ != null) { + return valueBuilder_.getMessageOrBuilder(); + } else { + return value_ == null ? com.google.protobuf.Value.getDefaultInstance() : value_; + } + } + + /** + * + * + *
+     * Value for the input variable.
+     * 
+ * + * .google.protobuf.Value value = 3; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder> + internalGetValueFieldBuilder() { + if (valueBuilder_ == null) { + valueBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder>(getValue(), getParentForChildren(), isClean()); + value_ = null; + } + return valueBuilder_; + } + + private com.google.protobuf.Value defaultValue_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder> + defaultValueBuilder_; + + /** + * + * + *
+     * Default value of the input variable.
+     * 
+ * + * .google.protobuf.Value default_value = 4; + * + * @return Whether the defaultValue field is set. + */ + public boolean hasDefaultValue() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Default value of the input variable.
+     * 
+ * + * .google.protobuf.Value default_value = 4; + * + * @return The defaultValue. + */ + public com.google.protobuf.Value getDefaultValue() { + if (defaultValueBuilder_ == null) { + return defaultValue_ == null + ? com.google.protobuf.Value.getDefaultInstance() + : defaultValue_; + } else { + return defaultValueBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Default value of the input variable.
+     * 
+ * + * .google.protobuf.Value default_value = 4; + */ + public Builder setDefaultValue(com.google.protobuf.Value value) { + if (defaultValueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + defaultValue_ = value; + } else { + defaultValueBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Default value of the input variable.
+     * 
+ * + * .google.protobuf.Value default_value = 4; + */ + public Builder setDefaultValue(com.google.protobuf.Value.Builder builderForValue) { + if (defaultValueBuilder_ == null) { + defaultValue_ = builderForValue.build(); + } else { + defaultValueBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Default value of the input variable.
+     * 
+ * + * .google.protobuf.Value default_value = 4; + */ + public Builder mergeDefaultValue(com.google.protobuf.Value value) { + if (defaultValueBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && defaultValue_ != null + && defaultValue_ != com.google.protobuf.Value.getDefaultInstance()) { + getDefaultValueBuilder().mergeFrom(value); + } else { + defaultValue_ = value; + } + } else { + defaultValueBuilder_.mergeFrom(value); + } + if (defaultValue_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Default value of the input variable.
+     * 
+ * + * .google.protobuf.Value default_value = 4; + */ + public Builder clearDefaultValue() { + bitField0_ = (bitField0_ & ~0x00000008); + defaultValue_ = null; + if (defaultValueBuilder_ != null) { + defaultValueBuilder_.dispose(); + defaultValueBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Default value of the input variable.
+     * 
+ * + * .google.protobuf.Value default_value = 4; + */ + public com.google.protobuf.Value.Builder getDefaultValueBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetDefaultValueFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Default value of the input variable.
+     * 
+ * + * .google.protobuf.Value default_value = 4; + */ + public com.google.protobuf.ValueOrBuilder getDefaultValueOrBuilder() { + if (defaultValueBuilder_ != null) { + return defaultValueBuilder_.getMessageOrBuilder(); + } else { + return defaultValue_ == null + ? com.google.protobuf.Value.getDefaultInstance() + : defaultValue_; + } + } + + /** + * + * + *
+     * Default value of the input variable.
+     * 
+ * + * .google.protobuf.Value default_value = 4; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder> + internalGetDefaultValueFieldBuilder() { + if (defaultValueBuilder_ == null) { + defaultValueBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder>( + getDefaultValue(), getParentForChildren(), isClean()); + defaultValue_ = null; + } + return defaultValueBuilder_; + } + + private java.lang.Object alias_ = ""; + + /** + * + * + *
+     * Alias for the variable name.
+     * 
+ * + * string alias = 5; + * + * @return The alias. + */ + public java.lang.String getAlias() { + java.lang.Object ref = alias_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + alias_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Alias for the variable name.
+     * 
+ * + * string alias = 5; + * + * @return The bytes for alias. + */ + public com.google.protobuf.ByteString getAliasBytes() { + java.lang.Object ref = alias_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + alias_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Alias for the variable name.
+     * 
+ * + * string alias = 5; + * + * @param value The alias to set. + * @return This builder for chaining. + */ + public Builder setAlias(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + alias_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Alias for the variable name.
+     * 
+ * + * string alias = 5; + * + * @return This builder for chaining. + */ + public Builder clearAlias() { + alias_ = getDefaultInstance().getAlias(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Alias for the variable name.
+     * 
+ * + * string alias = 5; + * + * @param value The bytes for alias to set. + * @return This builder for chaining. + */ + public Builder setAliasBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + alias_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.RootInputVariable) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.RootInputVariable) + private static final com.google.cloud.designcenter.v1.RootInputVariable DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.RootInputVariable(); + } + + public static com.google.cloud.designcenter.v1.RootInputVariable getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RootInputVariable parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.RootInputVariable getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RootInputVariableOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RootInputVariableOrBuilder.java new file mode 100644 index 000000000000..1fca31289372 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RootInputVariableOrBuilder.java @@ -0,0 +1,180 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/iac.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface RootInputVariableOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.RootInputVariable) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Name of the input variable.
+   * 
+ * + * string variable = 1; + * + * @return The variable. + */ + java.lang.String getVariable(); + + /** + * + * + *
+   * Name of the input variable.
+   * 
+ * + * string variable = 1; + * + * @return The bytes for variable. + */ + com.google.protobuf.ByteString getVariableBytes(); + + /** + * + * + *
+   * Type of the input variable.
+   * 
+ * + * string variable_type = 2; + * + * @return The variableType. + */ + java.lang.String getVariableType(); + + /** + * + * + *
+   * Type of the input variable.
+   * 
+ * + * string variable_type = 2; + * + * @return The bytes for variableType. + */ + com.google.protobuf.ByteString getVariableTypeBytes(); + + /** + * + * + *
+   * Value for the input variable.
+   * 
+ * + * .google.protobuf.Value value = 3; + * + * @return Whether the value field is set. + */ + boolean hasValue(); + + /** + * + * + *
+   * Value for the input variable.
+   * 
+ * + * .google.protobuf.Value value = 3; + * + * @return The value. + */ + com.google.protobuf.Value getValue(); + + /** + * + * + *
+   * Value for the input variable.
+   * 
+ * + * .google.protobuf.Value value = 3; + */ + com.google.protobuf.ValueOrBuilder getValueOrBuilder(); + + /** + * + * + *
+   * Default value of the input variable.
+   * 
+ * + * .google.protobuf.Value default_value = 4; + * + * @return Whether the defaultValue field is set. + */ + boolean hasDefaultValue(); + + /** + * + * + *
+   * Default value of the input variable.
+   * 
+ * + * .google.protobuf.Value default_value = 4; + * + * @return The defaultValue. + */ + com.google.protobuf.Value getDefaultValue(); + + /** + * + * + *
+   * Default value of the input variable.
+   * 
+ * + * .google.protobuf.Value default_value = 4; + */ + com.google.protobuf.ValueOrBuilder getDefaultValueOrBuilder(); + + /** + * + * + *
+   * Alias for the variable name.
+   * 
+ * + * string alias = 5; + * + * @return The alias. + */ + java.lang.String getAlias(); + + /** + * + * + *
+   * Alias for the variable name.
+   * 
+ * + * string alias = 5; + * + * @return The bytes for alias. + */ + com.google.protobuf.ByteString getAliasBytes(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RootModule.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RootModule.java new file mode 100644 index 000000000000..89e1f760748d --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RootModule.java @@ -0,0 +1,2541 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/iac.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Metadata for a root module.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.RootModule} + */ +@com.google.protobuf.Generated +public final class RootModule extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.RootModule) + RootModuleOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "RootModule"); + } + + // Use RootModule.newBuilder() to construct. + private RootModule(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RootModule() { + id_ = ""; + components_ = com.google.protobuf.LazyStringArrayList.emptyList(); + dependencies_ = java.util.Collections.emptyList(); + inputVariables_ = java.util.Collections.emptyList(); + outputVariables_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.IacProto + .internal_static_google_cloud_designcenter_v1_RootModule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.IacProto + .internal_static_google_cloud_designcenter_v1_RootModule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.RootModule.class, + com.google.cloud.designcenter.v1.RootModule.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + + /** + * + * + *
+   * Identifier of the root module. This is the directory name of the root
+   * module in the generated terraform which is also same as the corresponding
+   * component ID.
+   * 
+ * + * string id = 1; + * + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } + } + + /** + * + * + *
+   * Identifier of the root module. This is the directory name of the root
+   * module in the generated terraform which is also same as the corresponding
+   * component ID.
+   * 
+ * + * string id = 1; + * + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COMPONENTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList components_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * List of Application Design Center component names associated with this root
+   * module. For standard app template type components, this list will have a
+   * single element. For service / workload / asset components, this list will
+   * contain all such component names.
+   * 
+ * + * repeated string components = 2; + * + * @return A list containing the components. + */ + public com.google.protobuf.ProtocolStringList getComponentsList() { + return components_; + } + + /** + * + * + *
+   * List of Application Design Center component names associated with this root
+   * module. For standard app template type components, this list will have a
+   * single element. For service / workload / asset components, this list will
+   * contain all such component names.
+   * 
+ * + * repeated string components = 2; + * + * @return The count of components. + */ + public int getComponentsCount() { + return components_.size(); + } + + /** + * + * + *
+   * List of Application Design Center component names associated with this root
+   * module. For standard app template type components, this list will have a
+   * single element. For service / workload / asset components, this list will
+   * contain all such component names.
+   * 
+ * + * repeated string components = 2; + * + * @param index The index of the element to return. + * @return The components at the given index. + */ + public java.lang.String getComponents(int index) { + return components_.get(index); + } + + /** + * + * + *
+   * List of Application Design Center component names associated with this root
+   * module. For standard app template type components, this list will have a
+   * single element. For service / workload / asset components, this list will
+   * contain all such component names.
+   * 
+ * + * repeated string components = 2; + * + * @param index The index of the value to return. + * @return The bytes of the components at the given index. + */ + public com.google.protobuf.ByteString getComponentsBytes(int index) { + return components_.getByteString(index); + } + + public static final int DEPENDENCIES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List dependencies_; + + /** + * + * + *
+   * Dependencies of this root module. The dependency graph of root modules
+   * must be acyclic.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.RootModuleDependency dependencies = 3; + */ + @java.lang.Override + public java.util.List + getDependenciesList() { + return dependencies_; + } + + /** + * + * + *
+   * Dependencies of this root module. The dependency graph of root modules
+   * must be acyclic.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.RootModuleDependency dependencies = 3; + */ + @java.lang.Override + public java.util.List + getDependenciesOrBuilderList() { + return dependencies_; + } + + /** + * + * + *
+   * Dependencies of this root module. The dependency graph of root modules
+   * must be acyclic.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.RootModuleDependency dependencies = 3; + */ + @java.lang.Override + public int getDependenciesCount() { + return dependencies_.size(); + } + + /** + * + * + *
+   * Dependencies of this root module. The dependency graph of root modules
+   * must be acyclic.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.RootModuleDependency dependencies = 3; + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.RootModuleDependency getDependencies(int index) { + return dependencies_.get(index); + } + + /** + * + * + *
+   * Dependencies of this root module. The dependency graph of root modules
+   * must be acyclic.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.RootModuleDependency dependencies = 3; + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.RootModuleDependencyOrBuilder getDependenciesOrBuilder( + int index) { + return dependencies_.get(index); + } + + public static final int INPUT_VARIABLES_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private java.util.List inputVariables_; + + /** + * + * + *
+   * List of input variables of this root module.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.RootInputVariable input_variables = 4; + */ + @java.lang.Override + public java.util.List + getInputVariablesList() { + return inputVariables_; + } + + /** + * + * + *
+   * List of input variables of this root module.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.RootInputVariable input_variables = 4; + */ + @java.lang.Override + public java.util.List + getInputVariablesOrBuilderList() { + return inputVariables_; + } + + /** + * + * + *
+   * List of input variables of this root module.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.RootInputVariable input_variables = 4; + */ + @java.lang.Override + public int getInputVariablesCount() { + return inputVariables_.size(); + } + + /** + * + * + *
+   * List of input variables of this root module.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.RootInputVariable input_variables = 4; + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.RootInputVariable getInputVariables(int index) { + return inputVariables_.get(index); + } + + /** + * + * + *
+   * List of input variables of this root module.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.RootInputVariable input_variables = 4; + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.RootInputVariableOrBuilder getInputVariablesOrBuilder( + int index) { + return inputVariables_.get(index); + } + + public static final int OUTPUT_VARIABLES_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private java.util.List outputVariables_; + + /** + * + * + *
+   * List of output variables of this root module.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.RootOutputVariable output_variables = 5; + */ + @java.lang.Override + public java.util.List + getOutputVariablesList() { + return outputVariables_; + } + + /** + * + * + *
+   * List of output variables of this root module.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.RootOutputVariable output_variables = 5; + */ + @java.lang.Override + public java.util.List + getOutputVariablesOrBuilderList() { + return outputVariables_; + } + + /** + * + * + *
+   * List of output variables of this root module.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.RootOutputVariable output_variables = 5; + */ + @java.lang.Override + public int getOutputVariablesCount() { + return outputVariables_.size(); + } + + /** + * + * + *
+   * List of output variables of this root module.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.RootOutputVariable output_variables = 5; + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.RootOutputVariable getOutputVariables(int index) { + return outputVariables_.get(index); + } + + /** + * + * + *
+   * List of output variables of this root module.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.RootOutputVariable output_variables = 5; + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.RootOutputVariableOrBuilder getOutputVariablesOrBuilder( + int index) { + return outputVariables_.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.GeneratedMessage.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, id_); + } + for (int i = 0; i < components_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, components_.getRaw(i)); + } + for (int i = 0; i < dependencies_.size(); i++) { + output.writeMessage(3, dependencies_.get(i)); + } + for (int i = 0; i < inputVariables_.size(); i++) { + output.writeMessage(4, inputVariables_.get(i)); + } + for (int i = 0; i < outputVariables_.size(); i++) { + output.writeMessage(5, outputVariables_.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.GeneratedMessage.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_); + } + { + int dataSize = 0; + for (int i = 0; i < components_.size(); i++) { + dataSize += computeStringSizeNoTag(components_.getRaw(i)); + } + size += dataSize; + size += 1 * getComponentsList().size(); + } + for (int i = 0; i < dependencies_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, dependencies_.get(i)); + } + for (int i = 0; i < inputVariables_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, inputVariables_.get(i)); + } + for (int i = 0; i < outputVariables_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, outputVariables_.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.designcenter.v1.RootModule)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.RootModule other = + (com.google.cloud.designcenter.v1.RootModule) obj; + + if (!getId().equals(other.getId())) return false; + if (!getComponentsList().equals(other.getComponentsList())) return false; + if (!getDependenciesList().equals(other.getDependenciesList())) return false; + if (!getInputVariablesList().equals(other.getInputVariablesList())) return false; + if (!getOutputVariablesList().equals(other.getOutputVariablesList())) 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) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + if (getComponentsCount() > 0) { + hash = (37 * hash) + COMPONENTS_FIELD_NUMBER; + hash = (53 * hash) + getComponentsList().hashCode(); + } + if (getDependenciesCount() > 0) { + hash = (37 * hash) + DEPENDENCIES_FIELD_NUMBER; + hash = (53 * hash) + getDependenciesList().hashCode(); + } + if (getInputVariablesCount() > 0) { + hash = (37 * hash) + INPUT_VARIABLES_FIELD_NUMBER; + hash = (53 * hash) + getInputVariablesList().hashCode(); + } + if (getOutputVariablesCount() > 0) { + hash = (37 * hash) + OUTPUT_VARIABLES_FIELD_NUMBER; + hash = (53 * hash) + getOutputVariablesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.RootModule parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.RootModule 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.designcenter.v1.RootModule parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.RootModule parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.RootModule parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.RootModule parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.RootModule parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.RootModule parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.RootModule parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.RootModule parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.RootModule parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.RootModule parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.RootModule 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Metadata for a root module.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.RootModule} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.RootModule) + com.google.cloud.designcenter.v1.RootModuleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.IacProto + .internal_static_google_cloud_designcenter_v1_RootModule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.IacProto + .internal_static_google_cloud_designcenter_v1_RootModule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.RootModule.class, + com.google.cloud.designcenter.v1.RootModule.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.RootModule.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + components_ = com.google.protobuf.LazyStringArrayList.emptyList(); + if (dependenciesBuilder_ == null) { + dependencies_ = java.util.Collections.emptyList(); + } else { + dependencies_ = null; + dependenciesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + if (inputVariablesBuilder_ == null) { + inputVariables_ = java.util.Collections.emptyList(); + } else { + inputVariables_ = null; + inputVariablesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + if (outputVariablesBuilder_ == null) { + outputVariables_ = java.util.Collections.emptyList(); + } else { + outputVariables_ = null; + outputVariablesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.IacProto + .internal_static_google_cloud_designcenter_v1_RootModule_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.RootModule getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.RootModule.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.RootModule build() { + com.google.cloud.designcenter.v1.RootModule result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.RootModule buildPartial() { + com.google.cloud.designcenter.v1.RootModule result = + new com.google.cloud.designcenter.v1.RootModule(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.designcenter.v1.RootModule result) { + if (dependenciesBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + dependencies_ = java.util.Collections.unmodifiableList(dependencies_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.dependencies_ = dependencies_; + } else { + result.dependencies_ = dependenciesBuilder_.build(); + } + if (inputVariablesBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + inputVariables_ = java.util.Collections.unmodifiableList(inputVariables_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.inputVariables_ = inputVariables_; + } else { + result.inputVariables_ = inputVariablesBuilder_.build(); + } + if (outputVariablesBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + outputVariables_ = java.util.Collections.unmodifiableList(outputVariables_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.outputVariables_ = outputVariables_; + } else { + result.outputVariables_ = outputVariablesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.designcenter.v1.RootModule result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + components_.makeImmutable(); + result.components_ = components_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.RootModule) { + return mergeFrom((com.google.cloud.designcenter.v1.RootModule) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.RootModule other) { + if (other == com.google.cloud.designcenter.v1.RootModule.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.components_.isEmpty()) { + if (components_.isEmpty()) { + components_ = other.components_; + bitField0_ |= 0x00000002; + } else { + ensureComponentsIsMutable(); + components_.addAll(other.components_); + } + onChanged(); + } + if (dependenciesBuilder_ == null) { + if (!other.dependencies_.isEmpty()) { + if (dependencies_.isEmpty()) { + dependencies_ = other.dependencies_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureDependenciesIsMutable(); + dependencies_.addAll(other.dependencies_); + } + onChanged(); + } + } else { + if (!other.dependencies_.isEmpty()) { + if (dependenciesBuilder_.isEmpty()) { + dependenciesBuilder_.dispose(); + dependenciesBuilder_ = null; + dependencies_ = other.dependencies_; + bitField0_ = (bitField0_ & ~0x00000004); + dependenciesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetDependenciesFieldBuilder() + : null; + } else { + dependenciesBuilder_.addAllMessages(other.dependencies_); + } + } + } + if (inputVariablesBuilder_ == null) { + if (!other.inputVariables_.isEmpty()) { + if (inputVariables_.isEmpty()) { + inputVariables_ = other.inputVariables_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureInputVariablesIsMutable(); + inputVariables_.addAll(other.inputVariables_); + } + onChanged(); + } + } else { + if (!other.inputVariables_.isEmpty()) { + if (inputVariablesBuilder_.isEmpty()) { + inputVariablesBuilder_.dispose(); + inputVariablesBuilder_ = null; + inputVariables_ = other.inputVariables_; + bitField0_ = (bitField0_ & ~0x00000008); + inputVariablesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetInputVariablesFieldBuilder() + : null; + } else { + inputVariablesBuilder_.addAllMessages(other.inputVariables_); + } + } + } + if (outputVariablesBuilder_ == null) { + if (!other.outputVariables_.isEmpty()) { + if (outputVariables_.isEmpty()) { + outputVariables_ = other.outputVariables_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureOutputVariablesIsMutable(); + outputVariables_.addAll(other.outputVariables_); + } + onChanged(); + } + } else { + if (!other.outputVariables_.isEmpty()) { + if (outputVariablesBuilder_.isEmpty()) { + outputVariablesBuilder_.dispose(); + outputVariablesBuilder_ = null; + outputVariables_ = other.outputVariables_; + bitField0_ = (bitField0_ & ~0x00000010); + outputVariablesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetOutputVariablesFieldBuilder() + : null; + } else { + outputVariablesBuilder_.addAllMessages(other.outputVariables_); + } + } + } + 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: + { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureComponentsIsMutable(); + components_.add(s); + break; + } // case 18 + case 26: + { + com.google.cloud.designcenter.v1.RootModuleDependency m = + input.readMessage( + com.google.cloud.designcenter.v1.RootModuleDependency.parser(), + extensionRegistry); + if (dependenciesBuilder_ == null) { + ensureDependenciesIsMutable(); + dependencies_.add(m); + } else { + dependenciesBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: + { + com.google.cloud.designcenter.v1.RootInputVariable m = + input.readMessage( + com.google.cloud.designcenter.v1.RootInputVariable.parser(), + extensionRegistry); + if (inputVariablesBuilder_ == null) { + ensureInputVariablesIsMutable(); + inputVariables_.add(m); + } else { + inputVariablesBuilder_.addMessage(m); + } + break; + } // case 34 + case 42: + { + com.google.cloud.designcenter.v1.RootOutputVariable m = + input.readMessage( + com.google.cloud.designcenter.v1.RootOutputVariable.parser(), + extensionRegistry); + if (outputVariablesBuilder_ == null) { + ensureOutputVariablesIsMutable(); + outputVariables_.add(m); + } else { + outputVariablesBuilder_.addMessage(m); + } + 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 id_ = ""; + + /** + * + * + *
+     * Identifier of the root module. This is the directory name of the root
+     * module in the generated terraform which is also same as the corresponding
+     * component ID.
+     * 
+ * + * string id = 1; + * + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Identifier of the root module. This is the directory name of the root
+     * module in the generated terraform which is also same as the corresponding
+     * component ID.
+     * 
+ * + * string id = 1; + * + * @return The bytes for id. + */ + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Identifier of the root module. This is the directory name of the root
+     * module in the generated terraform which is also same as the corresponding
+     * component ID.
+     * 
+ * + * string id = 1; + * + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier of the root module. This is the directory name of the root
+     * module in the generated terraform which is also same as the corresponding
+     * component ID.
+     * 
+ * + * string id = 1; + * + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier of the root module. This is the directory name of the root
+     * module in the generated terraform which is also same as the corresponding
+     * component ID.
+     * 
+ * + * string id = 1; + * + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList components_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureComponentsIsMutable() { + if (!components_.isModifiable()) { + components_ = new com.google.protobuf.LazyStringArrayList(components_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
+     * List of Application Design Center component names associated with this root
+     * module. For standard app template type components, this list will have a
+     * single element. For service / workload / asset components, this list will
+     * contain all such component names.
+     * 
+ * + * repeated string components = 2; + * + * @return A list containing the components. + */ + public com.google.protobuf.ProtocolStringList getComponentsList() { + components_.makeImmutable(); + return components_; + } + + /** + * + * + *
+     * List of Application Design Center component names associated with this root
+     * module. For standard app template type components, this list will have a
+     * single element. For service / workload / asset components, this list will
+     * contain all such component names.
+     * 
+ * + * repeated string components = 2; + * + * @return The count of components. + */ + public int getComponentsCount() { + return components_.size(); + } + + /** + * + * + *
+     * List of Application Design Center component names associated with this root
+     * module. For standard app template type components, this list will have a
+     * single element. For service / workload / asset components, this list will
+     * contain all such component names.
+     * 
+ * + * repeated string components = 2; + * + * @param index The index of the element to return. + * @return The components at the given index. + */ + public java.lang.String getComponents(int index) { + return components_.get(index); + } + + /** + * + * + *
+     * List of Application Design Center component names associated with this root
+     * module. For standard app template type components, this list will have a
+     * single element. For service / workload / asset components, this list will
+     * contain all such component names.
+     * 
+ * + * repeated string components = 2; + * + * @param index The index of the value to return. + * @return The bytes of the components at the given index. + */ + public com.google.protobuf.ByteString getComponentsBytes(int index) { + return components_.getByteString(index); + } + + /** + * + * + *
+     * List of Application Design Center component names associated with this root
+     * module. For standard app template type components, this list will have a
+     * single element. For service / workload / asset components, this list will
+     * contain all such component names.
+     * 
+ * + * repeated string components = 2; + * + * @param index The index to set the value at. + * @param value The components to set. + * @return This builder for chaining. + */ + public Builder setComponents(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureComponentsIsMutable(); + components_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * List of Application Design Center component names associated with this root
+     * module. For standard app template type components, this list will have a
+     * single element. For service / workload / asset components, this list will
+     * contain all such component names.
+     * 
+ * + * repeated string components = 2; + * + * @param value The components to add. + * @return This builder for chaining. + */ + public Builder addComponents(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureComponentsIsMutable(); + components_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * List of Application Design Center component names associated with this root
+     * module. For standard app template type components, this list will have a
+     * single element. For service / workload / asset components, this list will
+     * contain all such component names.
+     * 
+ * + * repeated string components = 2; + * + * @param values The components to add. + * @return This builder for chaining. + */ + public Builder addAllComponents(java.lang.Iterable values) { + ensureComponentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, components_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * List of Application Design Center component names associated with this root
+     * module. For standard app template type components, this list will have a
+     * single element. For service / workload / asset components, this list will
+     * contain all such component names.
+     * 
+ * + * repeated string components = 2; + * + * @return This builder for chaining. + */ + public Builder clearComponents() { + components_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * List of Application Design Center component names associated with this root
+     * module. For standard app template type components, this list will have a
+     * single element. For service / workload / asset components, this list will
+     * contain all such component names.
+     * 
+ * + * repeated string components = 2; + * + * @param value The bytes of the components to add. + * @return This builder for chaining. + */ + public Builder addComponentsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureComponentsIsMutable(); + components_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.util.List dependencies_ = + java.util.Collections.emptyList(); + + private void ensureDependenciesIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + dependencies_ = + new java.util.ArrayList( + dependencies_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.RootModuleDependency, + com.google.cloud.designcenter.v1.RootModuleDependency.Builder, + com.google.cloud.designcenter.v1.RootModuleDependencyOrBuilder> + dependenciesBuilder_; + + /** + * + * + *
+     * Dependencies of this root module. The dependency graph of root modules
+     * must be acyclic.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RootModuleDependency dependencies = 3; + */ + public java.util.List + getDependenciesList() { + if (dependenciesBuilder_ == null) { + return java.util.Collections.unmodifiableList(dependencies_); + } else { + return dependenciesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Dependencies of this root module. The dependency graph of root modules
+     * must be acyclic.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RootModuleDependency dependencies = 3; + */ + public int getDependenciesCount() { + if (dependenciesBuilder_ == null) { + return dependencies_.size(); + } else { + return dependenciesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Dependencies of this root module. The dependency graph of root modules
+     * must be acyclic.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RootModuleDependency dependencies = 3; + */ + public com.google.cloud.designcenter.v1.RootModuleDependency getDependencies(int index) { + if (dependenciesBuilder_ == null) { + return dependencies_.get(index); + } else { + return dependenciesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Dependencies of this root module. The dependency graph of root modules
+     * must be acyclic.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RootModuleDependency dependencies = 3; + */ + public Builder setDependencies( + int index, com.google.cloud.designcenter.v1.RootModuleDependency value) { + if (dependenciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDependenciesIsMutable(); + dependencies_.set(index, value); + onChanged(); + } else { + dependenciesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Dependencies of this root module. The dependency graph of root modules
+     * must be acyclic.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RootModuleDependency dependencies = 3; + */ + public Builder setDependencies( + int index, com.google.cloud.designcenter.v1.RootModuleDependency.Builder builderForValue) { + if (dependenciesBuilder_ == null) { + ensureDependenciesIsMutable(); + dependencies_.set(index, builderForValue.build()); + onChanged(); + } else { + dependenciesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Dependencies of this root module. The dependency graph of root modules
+     * must be acyclic.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RootModuleDependency dependencies = 3; + */ + public Builder addDependencies(com.google.cloud.designcenter.v1.RootModuleDependency value) { + if (dependenciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDependenciesIsMutable(); + dependencies_.add(value); + onChanged(); + } else { + dependenciesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Dependencies of this root module. The dependency graph of root modules
+     * must be acyclic.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RootModuleDependency dependencies = 3; + */ + public Builder addDependencies( + int index, com.google.cloud.designcenter.v1.RootModuleDependency value) { + if (dependenciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDependenciesIsMutable(); + dependencies_.add(index, value); + onChanged(); + } else { + dependenciesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Dependencies of this root module. The dependency graph of root modules
+     * must be acyclic.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RootModuleDependency dependencies = 3; + */ + public Builder addDependencies( + com.google.cloud.designcenter.v1.RootModuleDependency.Builder builderForValue) { + if (dependenciesBuilder_ == null) { + ensureDependenciesIsMutable(); + dependencies_.add(builderForValue.build()); + onChanged(); + } else { + dependenciesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Dependencies of this root module. The dependency graph of root modules
+     * must be acyclic.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RootModuleDependency dependencies = 3; + */ + public Builder addDependencies( + int index, com.google.cloud.designcenter.v1.RootModuleDependency.Builder builderForValue) { + if (dependenciesBuilder_ == null) { + ensureDependenciesIsMutable(); + dependencies_.add(index, builderForValue.build()); + onChanged(); + } else { + dependenciesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Dependencies of this root module. The dependency graph of root modules
+     * must be acyclic.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RootModuleDependency dependencies = 3; + */ + public Builder addAllDependencies( + java.lang.Iterable + values) { + if (dependenciesBuilder_ == null) { + ensureDependenciesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dependencies_); + onChanged(); + } else { + dependenciesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Dependencies of this root module. The dependency graph of root modules
+     * must be acyclic.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RootModuleDependency dependencies = 3; + */ + public Builder clearDependencies() { + if (dependenciesBuilder_ == null) { + dependencies_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + dependenciesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Dependencies of this root module. The dependency graph of root modules
+     * must be acyclic.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RootModuleDependency dependencies = 3; + */ + public Builder removeDependencies(int index) { + if (dependenciesBuilder_ == null) { + ensureDependenciesIsMutable(); + dependencies_.remove(index); + onChanged(); + } else { + dependenciesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Dependencies of this root module. The dependency graph of root modules
+     * must be acyclic.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RootModuleDependency dependencies = 3; + */ + public com.google.cloud.designcenter.v1.RootModuleDependency.Builder getDependenciesBuilder( + int index) { + return internalGetDependenciesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Dependencies of this root module. The dependency graph of root modules
+     * must be acyclic.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RootModuleDependency dependencies = 3; + */ + public com.google.cloud.designcenter.v1.RootModuleDependencyOrBuilder getDependenciesOrBuilder( + int index) { + if (dependenciesBuilder_ == null) { + return dependencies_.get(index); + } else { + return dependenciesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Dependencies of this root module. The dependency graph of root modules
+     * must be acyclic.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RootModuleDependency dependencies = 3; + */ + public java.util.List + getDependenciesOrBuilderList() { + if (dependenciesBuilder_ != null) { + return dependenciesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dependencies_); + } + } + + /** + * + * + *
+     * Dependencies of this root module. The dependency graph of root modules
+     * must be acyclic.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RootModuleDependency dependencies = 3; + */ + public com.google.cloud.designcenter.v1.RootModuleDependency.Builder addDependenciesBuilder() { + return internalGetDependenciesFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.RootModuleDependency.getDefaultInstance()); + } + + /** + * + * + *
+     * Dependencies of this root module. The dependency graph of root modules
+     * must be acyclic.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RootModuleDependency dependencies = 3; + */ + public com.google.cloud.designcenter.v1.RootModuleDependency.Builder addDependenciesBuilder( + int index) { + return internalGetDependenciesFieldBuilder() + .addBuilder( + index, com.google.cloud.designcenter.v1.RootModuleDependency.getDefaultInstance()); + } + + /** + * + * + *
+     * Dependencies of this root module. The dependency graph of root modules
+     * must be acyclic.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RootModuleDependency dependencies = 3; + */ + public java.util.List + getDependenciesBuilderList() { + return internalGetDependenciesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.RootModuleDependency, + com.google.cloud.designcenter.v1.RootModuleDependency.Builder, + com.google.cloud.designcenter.v1.RootModuleDependencyOrBuilder> + internalGetDependenciesFieldBuilder() { + if (dependenciesBuilder_ == null) { + dependenciesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.RootModuleDependency, + com.google.cloud.designcenter.v1.RootModuleDependency.Builder, + com.google.cloud.designcenter.v1.RootModuleDependencyOrBuilder>( + dependencies_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + dependencies_ = null; + } + return dependenciesBuilder_; + } + + private java.util.List inputVariables_ = + java.util.Collections.emptyList(); + + private void ensureInputVariablesIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + inputVariables_ = + new java.util.ArrayList( + inputVariables_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.RootInputVariable, + com.google.cloud.designcenter.v1.RootInputVariable.Builder, + com.google.cloud.designcenter.v1.RootInputVariableOrBuilder> + inputVariablesBuilder_; + + /** + * + * + *
+     * List of input variables of this root module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RootInputVariable input_variables = 4; + */ + public java.util.List + getInputVariablesList() { + if (inputVariablesBuilder_ == null) { + return java.util.Collections.unmodifiableList(inputVariables_); + } else { + return inputVariablesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * List of input variables of this root module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RootInputVariable input_variables = 4; + */ + public int getInputVariablesCount() { + if (inputVariablesBuilder_ == null) { + return inputVariables_.size(); + } else { + return inputVariablesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * List of input variables of this root module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RootInputVariable input_variables = 4; + */ + public com.google.cloud.designcenter.v1.RootInputVariable getInputVariables(int index) { + if (inputVariablesBuilder_ == null) { + return inputVariables_.get(index); + } else { + return inputVariablesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * List of input variables of this root module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RootInputVariable input_variables = 4; + */ + public Builder setInputVariables( + int index, com.google.cloud.designcenter.v1.RootInputVariable value) { + if (inputVariablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputVariablesIsMutable(); + inputVariables_.set(index, value); + onChanged(); + } else { + inputVariablesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * List of input variables of this root module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RootInputVariable input_variables = 4; + */ + public Builder setInputVariables( + int index, com.google.cloud.designcenter.v1.RootInputVariable.Builder builderForValue) { + if (inputVariablesBuilder_ == null) { + ensureInputVariablesIsMutable(); + inputVariables_.set(index, builderForValue.build()); + onChanged(); + } else { + inputVariablesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * List of input variables of this root module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RootInputVariable input_variables = 4; + */ + public Builder addInputVariables(com.google.cloud.designcenter.v1.RootInputVariable value) { + if (inputVariablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputVariablesIsMutable(); + inputVariables_.add(value); + onChanged(); + } else { + inputVariablesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * List of input variables of this root module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RootInputVariable input_variables = 4; + */ + public Builder addInputVariables( + int index, com.google.cloud.designcenter.v1.RootInputVariable value) { + if (inputVariablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputVariablesIsMutable(); + inputVariables_.add(index, value); + onChanged(); + } else { + inputVariablesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * List of input variables of this root module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RootInputVariable input_variables = 4; + */ + public Builder addInputVariables( + com.google.cloud.designcenter.v1.RootInputVariable.Builder builderForValue) { + if (inputVariablesBuilder_ == null) { + ensureInputVariablesIsMutable(); + inputVariables_.add(builderForValue.build()); + onChanged(); + } else { + inputVariablesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * List of input variables of this root module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RootInputVariable input_variables = 4; + */ + public Builder addInputVariables( + int index, com.google.cloud.designcenter.v1.RootInputVariable.Builder builderForValue) { + if (inputVariablesBuilder_ == null) { + ensureInputVariablesIsMutable(); + inputVariables_.add(index, builderForValue.build()); + onChanged(); + } else { + inputVariablesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * List of input variables of this root module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RootInputVariable input_variables = 4; + */ + public Builder addAllInputVariables( + java.lang.Iterable values) { + if (inputVariablesBuilder_ == null) { + ensureInputVariablesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, inputVariables_); + onChanged(); + } else { + inputVariablesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * List of input variables of this root module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RootInputVariable input_variables = 4; + */ + public Builder clearInputVariables() { + if (inputVariablesBuilder_ == null) { + inputVariables_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + inputVariablesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * List of input variables of this root module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RootInputVariable input_variables = 4; + */ + public Builder removeInputVariables(int index) { + if (inputVariablesBuilder_ == null) { + ensureInputVariablesIsMutable(); + inputVariables_.remove(index); + onChanged(); + } else { + inputVariablesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * List of input variables of this root module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RootInputVariable input_variables = 4; + */ + public com.google.cloud.designcenter.v1.RootInputVariable.Builder getInputVariablesBuilder( + int index) { + return internalGetInputVariablesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * List of input variables of this root module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RootInputVariable input_variables = 4; + */ + public com.google.cloud.designcenter.v1.RootInputVariableOrBuilder getInputVariablesOrBuilder( + int index) { + if (inputVariablesBuilder_ == null) { + return inputVariables_.get(index); + } else { + return inputVariablesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * List of input variables of this root module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RootInputVariable input_variables = 4; + */ + public java.util.List + getInputVariablesOrBuilderList() { + if (inputVariablesBuilder_ != null) { + return inputVariablesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(inputVariables_); + } + } + + /** + * + * + *
+     * List of input variables of this root module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RootInputVariable input_variables = 4; + */ + public com.google.cloud.designcenter.v1.RootInputVariable.Builder addInputVariablesBuilder() { + return internalGetInputVariablesFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.RootInputVariable.getDefaultInstance()); + } + + /** + * + * + *
+     * List of input variables of this root module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RootInputVariable input_variables = 4; + */ + public com.google.cloud.designcenter.v1.RootInputVariable.Builder addInputVariablesBuilder( + int index) { + return internalGetInputVariablesFieldBuilder() + .addBuilder( + index, com.google.cloud.designcenter.v1.RootInputVariable.getDefaultInstance()); + } + + /** + * + * + *
+     * List of input variables of this root module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RootInputVariable input_variables = 4; + */ + public java.util.List + getInputVariablesBuilderList() { + return internalGetInputVariablesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.RootInputVariable, + com.google.cloud.designcenter.v1.RootInputVariable.Builder, + com.google.cloud.designcenter.v1.RootInputVariableOrBuilder> + internalGetInputVariablesFieldBuilder() { + if (inputVariablesBuilder_ == null) { + inputVariablesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.RootInputVariable, + com.google.cloud.designcenter.v1.RootInputVariable.Builder, + com.google.cloud.designcenter.v1.RootInputVariableOrBuilder>( + inputVariables_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + inputVariables_ = null; + } + return inputVariablesBuilder_; + } + + private java.util.List outputVariables_ = + java.util.Collections.emptyList(); + + private void ensureOutputVariablesIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + outputVariables_ = + new java.util.ArrayList( + outputVariables_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.RootOutputVariable, + com.google.cloud.designcenter.v1.RootOutputVariable.Builder, + com.google.cloud.designcenter.v1.RootOutputVariableOrBuilder> + outputVariablesBuilder_; + + /** + * + * + *
+     * List of output variables of this root module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RootOutputVariable output_variables = 5; + */ + public java.util.List + getOutputVariablesList() { + if (outputVariablesBuilder_ == null) { + return java.util.Collections.unmodifiableList(outputVariables_); + } else { + return outputVariablesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * List of output variables of this root module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RootOutputVariable output_variables = 5; + */ + public int getOutputVariablesCount() { + if (outputVariablesBuilder_ == null) { + return outputVariables_.size(); + } else { + return outputVariablesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * List of output variables of this root module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RootOutputVariable output_variables = 5; + */ + public com.google.cloud.designcenter.v1.RootOutputVariable getOutputVariables(int index) { + if (outputVariablesBuilder_ == null) { + return outputVariables_.get(index); + } else { + return outputVariablesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * List of output variables of this root module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RootOutputVariable output_variables = 5; + */ + public Builder setOutputVariables( + int index, com.google.cloud.designcenter.v1.RootOutputVariable value) { + if (outputVariablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputVariablesIsMutable(); + outputVariables_.set(index, value); + onChanged(); + } else { + outputVariablesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * List of output variables of this root module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RootOutputVariable output_variables = 5; + */ + public Builder setOutputVariables( + int index, com.google.cloud.designcenter.v1.RootOutputVariable.Builder builderForValue) { + if (outputVariablesBuilder_ == null) { + ensureOutputVariablesIsMutable(); + outputVariables_.set(index, builderForValue.build()); + onChanged(); + } else { + outputVariablesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * List of output variables of this root module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RootOutputVariable output_variables = 5; + */ + public Builder addOutputVariables(com.google.cloud.designcenter.v1.RootOutputVariable value) { + if (outputVariablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputVariablesIsMutable(); + outputVariables_.add(value); + onChanged(); + } else { + outputVariablesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * List of output variables of this root module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RootOutputVariable output_variables = 5; + */ + public Builder addOutputVariables( + int index, com.google.cloud.designcenter.v1.RootOutputVariable value) { + if (outputVariablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputVariablesIsMutable(); + outputVariables_.add(index, value); + onChanged(); + } else { + outputVariablesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * List of output variables of this root module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RootOutputVariable output_variables = 5; + */ + public Builder addOutputVariables( + com.google.cloud.designcenter.v1.RootOutputVariable.Builder builderForValue) { + if (outputVariablesBuilder_ == null) { + ensureOutputVariablesIsMutable(); + outputVariables_.add(builderForValue.build()); + onChanged(); + } else { + outputVariablesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * List of output variables of this root module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RootOutputVariable output_variables = 5; + */ + public Builder addOutputVariables( + int index, com.google.cloud.designcenter.v1.RootOutputVariable.Builder builderForValue) { + if (outputVariablesBuilder_ == null) { + ensureOutputVariablesIsMutable(); + outputVariables_.add(index, builderForValue.build()); + onChanged(); + } else { + outputVariablesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * List of output variables of this root module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RootOutputVariable output_variables = 5; + */ + public Builder addAllOutputVariables( + java.lang.Iterable values) { + if (outputVariablesBuilder_ == null) { + ensureOutputVariablesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, outputVariables_); + onChanged(); + } else { + outputVariablesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * List of output variables of this root module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RootOutputVariable output_variables = 5; + */ + public Builder clearOutputVariables() { + if (outputVariablesBuilder_ == null) { + outputVariables_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + outputVariablesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * List of output variables of this root module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RootOutputVariable output_variables = 5; + */ + public Builder removeOutputVariables(int index) { + if (outputVariablesBuilder_ == null) { + ensureOutputVariablesIsMutable(); + outputVariables_.remove(index); + onChanged(); + } else { + outputVariablesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * List of output variables of this root module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RootOutputVariable output_variables = 5; + */ + public com.google.cloud.designcenter.v1.RootOutputVariable.Builder getOutputVariablesBuilder( + int index) { + return internalGetOutputVariablesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * List of output variables of this root module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RootOutputVariable output_variables = 5; + */ + public com.google.cloud.designcenter.v1.RootOutputVariableOrBuilder getOutputVariablesOrBuilder( + int index) { + if (outputVariablesBuilder_ == null) { + return outputVariables_.get(index); + } else { + return outputVariablesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * List of output variables of this root module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RootOutputVariable output_variables = 5; + */ + public java.util.List + getOutputVariablesOrBuilderList() { + if (outputVariablesBuilder_ != null) { + return outputVariablesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(outputVariables_); + } + } + + /** + * + * + *
+     * List of output variables of this root module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RootOutputVariable output_variables = 5; + */ + public com.google.cloud.designcenter.v1.RootOutputVariable.Builder addOutputVariablesBuilder() { + return internalGetOutputVariablesFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.RootOutputVariable.getDefaultInstance()); + } + + /** + * + * + *
+     * List of output variables of this root module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RootOutputVariable output_variables = 5; + */ + public com.google.cloud.designcenter.v1.RootOutputVariable.Builder addOutputVariablesBuilder( + int index) { + return internalGetOutputVariablesFieldBuilder() + .addBuilder( + index, com.google.cloud.designcenter.v1.RootOutputVariable.getDefaultInstance()); + } + + /** + * + * + *
+     * List of output variables of this root module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RootOutputVariable output_variables = 5; + */ + public java.util.List + getOutputVariablesBuilderList() { + return internalGetOutputVariablesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.RootOutputVariable, + com.google.cloud.designcenter.v1.RootOutputVariable.Builder, + com.google.cloud.designcenter.v1.RootOutputVariableOrBuilder> + internalGetOutputVariablesFieldBuilder() { + if (outputVariablesBuilder_ == null) { + outputVariablesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.RootOutputVariable, + com.google.cloud.designcenter.v1.RootOutputVariable.Builder, + com.google.cloud.designcenter.v1.RootOutputVariableOrBuilder>( + outputVariables_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + outputVariables_ = null; + } + return outputVariablesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.RootModule) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.RootModule) + private static final com.google.cloud.designcenter.v1.RootModule DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.RootModule(); + } + + public static com.google.cloud.designcenter.v1.RootModule getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RootModule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.RootModule getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RootModuleDependency.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RootModuleDependency.java new file mode 100644 index 000000000000..be2fa268d56c --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RootModuleDependency.java @@ -0,0 +1,1114 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/iac.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Root module dependency.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.RootModuleDependency} + */ +@com.google.protobuf.Generated +public final class RootModuleDependency extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.RootModuleDependency) + RootModuleDependencyOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "RootModuleDependency"); + } + + // Use RootModuleDependency.newBuilder() to construct. + private RootModuleDependency(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RootModuleDependency() { + rootModuleId_ = ""; + parameters_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.IacProto + .internal_static_google_cloud_designcenter_v1_RootModuleDependency_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.IacProto + .internal_static_google_cloud_designcenter_v1_RootModuleDependency_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.RootModuleDependency.class, + com.google.cloud.designcenter.v1.RootModuleDependency.Builder.class); + } + + public static final int ROOT_MODULE_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object rootModuleId_ = ""; + + /** + * + * + *
+   * Identifier of the root module.
+   * 
+ * + * string root_module_id = 1; + * + * @return The rootModuleId. + */ + @java.lang.Override + public java.lang.String getRootModuleId() { + java.lang.Object ref = rootModuleId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rootModuleId_ = s; + return s; + } + } + + /** + * + * + *
+   * Identifier of the root module.
+   * 
+ * + * string root_module_id = 1; + * + * @return The bytes for rootModuleId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRootModuleIdBytes() { + java.lang.Object ref = rootModuleId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rootModuleId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARAMETERS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List parameters_; + + /** + * + * + *
+   * Parameters associated with this dependency.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2; + */ + @java.lang.Override + public java.util.List getParametersList() { + return parameters_; + } + + /** + * + * + *
+   * Parameters associated with this dependency.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2; + */ + @java.lang.Override + public java.util.List + getParametersOrBuilderList() { + return parameters_; + } + + /** + * + * + *
+   * Parameters associated with this dependency.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2; + */ + @java.lang.Override + public int getParametersCount() { + return parameters_.size(); + } + + /** + * + * + *
+   * Parameters associated with this dependency.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2; + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.Parameter getParameters(int index) { + return parameters_.get(index); + } + + /** + * + * + *
+   * Parameters associated with this dependency.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2; + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ParameterOrBuilder getParametersOrBuilder(int index) { + return parameters_.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.GeneratedMessage.isStringEmpty(rootModuleId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, rootModuleId_); + } + for (int i = 0; i < parameters_.size(); i++) { + output.writeMessage(2, parameters_.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.GeneratedMessage.isStringEmpty(rootModuleId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, rootModuleId_); + } + for (int i = 0; i < parameters_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, parameters_.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.designcenter.v1.RootModuleDependency)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.RootModuleDependency other = + (com.google.cloud.designcenter.v1.RootModuleDependency) obj; + + if (!getRootModuleId().equals(other.getRootModuleId())) return false; + if (!getParametersList().equals(other.getParametersList())) 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) + ROOT_MODULE_ID_FIELD_NUMBER; + hash = (53 * hash) + getRootModuleId().hashCode(); + if (getParametersCount() > 0) { + hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getParametersList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.RootModuleDependency parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.RootModuleDependency 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.designcenter.v1.RootModuleDependency parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.RootModuleDependency parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.RootModuleDependency parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.RootModuleDependency parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.RootModuleDependency parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.RootModuleDependency parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.RootModuleDependency parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.RootModuleDependency parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.RootModuleDependency parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.RootModuleDependency parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.RootModuleDependency 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Root module dependency.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.RootModuleDependency} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.RootModuleDependency) + com.google.cloud.designcenter.v1.RootModuleDependencyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.IacProto + .internal_static_google_cloud_designcenter_v1_RootModuleDependency_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.IacProto + .internal_static_google_cloud_designcenter_v1_RootModuleDependency_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.RootModuleDependency.class, + com.google.cloud.designcenter.v1.RootModuleDependency.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.RootModuleDependency.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + rootModuleId_ = ""; + if (parametersBuilder_ == null) { + parameters_ = java.util.Collections.emptyList(); + } else { + parameters_ = null; + parametersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.IacProto + .internal_static_google_cloud_designcenter_v1_RootModuleDependency_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.RootModuleDependency getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.RootModuleDependency.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.RootModuleDependency build() { + com.google.cloud.designcenter.v1.RootModuleDependency result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.RootModuleDependency buildPartial() { + com.google.cloud.designcenter.v1.RootModuleDependency result = + new com.google.cloud.designcenter.v1.RootModuleDependency(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.designcenter.v1.RootModuleDependency result) { + if (parametersBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + parameters_ = java.util.Collections.unmodifiableList(parameters_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.parameters_ = parameters_; + } else { + result.parameters_ = parametersBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.designcenter.v1.RootModuleDependency result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.rootModuleId_ = rootModuleId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.RootModuleDependency) { + return mergeFrom((com.google.cloud.designcenter.v1.RootModuleDependency) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.RootModuleDependency other) { + if (other == com.google.cloud.designcenter.v1.RootModuleDependency.getDefaultInstance()) + return this; + if (!other.getRootModuleId().isEmpty()) { + rootModuleId_ = other.rootModuleId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (parametersBuilder_ == null) { + if (!other.parameters_.isEmpty()) { + if (parameters_.isEmpty()) { + parameters_ = other.parameters_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureParametersIsMutable(); + parameters_.addAll(other.parameters_); + } + onChanged(); + } + } else { + if (!other.parameters_.isEmpty()) { + if (parametersBuilder_.isEmpty()) { + parametersBuilder_.dispose(); + parametersBuilder_ = null; + parameters_ = other.parameters_; + bitField0_ = (bitField0_ & ~0x00000002); + parametersBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetParametersFieldBuilder() + : null; + } else { + parametersBuilder_.addAllMessages(other.parameters_); + } + } + } + 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: + { + rootModuleId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.designcenter.v1.Parameter m = + input.readMessage( + com.google.cloud.designcenter.v1.Parameter.parser(), extensionRegistry); + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + parameters_.add(m); + } else { + parametersBuilder_.addMessage(m); + } + 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 rootModuleId_ = ""; + + /** + * + * + *
+     * Identifier of the root module.
+     * 
+ * + * string root_module_id = 1; + * + * @return The rootModuleId. + */ + public java.lang.String getRootModuleId() { + java.lang.Object ref = rootModuleId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rootModuleId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Identifier of the root module.
+     * 
+ * + * string root_module_id = 1; + * + * @return The bytes for rootModuleId. + */ + public com.google.protobuf.ByteString getRootModuleIdBytes() { + java.lang.Object ref = rootModuleId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rootModuleId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Identifier of the root module.
+     * 
+ * + * string root_module_id = 1; + * + * @param value The rootModuleId to set. + * @return This builder for chaining. + */ + public Builder setRootModuleId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + rootModuleId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier of the root module.
+     * 
+ * + * string root_module_id = 1; + * + * @return This builder for chaining. + */ + public Builder clearRootModuleId() { + rootModuleId_ = getDefaultInstance().getRootModuleId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier of the root module.
+     * 
+ * + * string root_module_id = 1; + * + * @param value The bytes for rootModuleId to set. + * @return This builder for chaining. + */ + public Builder setRootModuleIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + rootModuleId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List parameters_ = + java.util.Collections.emptyList(); + + private void ensureParametersIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + parameters_ = + new java.util.ArrayList(parameters_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Parameter, + com.google.cloud.designcenter.v1.Parameter.Builder, + com.google.cloud.designcenter.v1.ParameterOrBuilder> + parametersBuilder_; + + /** + * + * + *
+     * Parameters associated with this dependency.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2; + */ + public java.util.List getParametersList() { + if (parametersBuilder_ == null) { + return java.util.Collections.unmodifiableList(parameters_); + } else { + return parametersBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Parameters associated with this dependency.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2; + */ + public int getParametersCount() { + if (parametersBuilder_ == null) { + return parameters_.size(); + } else { + return parametersBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Parameters associated with this dependency.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2; + */ + public com.google.cloud.designcenter.v1.Parameter getParameters(int index) { + if (parametersBuilder_ == null) { + return parameters_.get(index); + } else { + return parametersBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Parameters associated with this dependency.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2; + */ + public Builder setParameters(int index, com.google.cloud.designcenter.v1.Parameter value) { + if (parametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureParametersIsMutable(); + parameters_.set(index, value); + onChanged(); + } else { + parametersBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Parameters associated with this dependency.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2; + */ + public Builder setParameters( + int index, com.google.cloud.designcenter.v1.Parameter.Builder builderForValue) { + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + parameters_.set(index, builderForValue.build()); + onChanged(); + } else { + parametersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Parameters associated with this dependency.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2; + */ + public Builder addParameters(com.google.cloud.designcenter.v1.Parameter value) { + if (parametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureParametersIsMutable(); + parameters_.add(value); + onChanged(); + } else { + parametersBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Parameters associated with this dependency.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2; + */ + public Builder addParameters(int index, com.google.cloud.designcenter.v1.Parameter value) { + if (parametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureParametersIsMutable(); + parameters_.add(index, value); + onChanged(); + } else { + parametersBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Parameters associated with this dependency.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2; + */ + public Builder addParameters( + com.google.cloud.designcenter.v1.Parameter.Builder builderForValue) { + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + parameters_.add(builderForValue.build()); + onChanged(); + } else { + parametersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Parameters associated with this dependency.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2; + */ + public Builder addParameters( + int index, com.google.cloud.designcenter.v1.Parameter.Builder builderForValue) { + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + parameters_.add(index, builderForValue.build()); + onChanged(); + } else { + parametersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Parameters associated with this dependency.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2; + */ + public Builder addAllParameters( + java.lang.Iterable values) { + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, parameters_); + onChanged(); + } else { + parametersBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Parameters associated with this dependency.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2; + */ + public Builder clearParameters() { + if (parametersBuilder_ == null) { + parameters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + parametersBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Parameters associated with this dependency.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2; + */ + public Builder removeParameters(int index) { + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + parameters_.remove(index); + onChanged(); + } else { + parametersBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Parameters associated with this dependency.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2; + */ + public com.google.cloud.designcenter.v1.Parameter.Builder getParametersBuilder(int index) { + return internalGetParametersFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Parameters associated with this dependency.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2; + */ + public com.google.cloud.designcenter.v1.ParameterOrBuilder getParametersOrBuilder(int index) { + if (parametersBuilder_ == null) { + return parameters_.get(index); + } else { + return parametersBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Parameters associated with this dependency.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2; + */ + public java.util.List + getParametersOrBuilderList() { + if (parametersBuilder_ != null) { + return parametersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(parameters_); + } + } + + /** + * + * + *
+     * Parameters associated with this dependency.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2; + */ + public com.google.cloud.designcenter.v1.Parameter.Builder addParametersBuilder() { + return internalGetParametersFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.Parameter.getDefaultInstance()); + } + + /** + * + * + *
+     * Parameters associated with this dependency.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2; + */ + public com.google.cloud.designcenter.v1.Parameter.Builder addParametersBuilder(int index) { + return internalGetParametersFieldBuilder() + .addBuilder(index, com.google.cloud.designcenter.v1.Parameter.getDefaultInstance()); + } + + /** + * + * + *
+     * Parameters associated with this dependency.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2; + */ + public java.util.List + getParametersBuilderList() { + return internalGetParametersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Parameter, + com.google.cloud.designcenter.v1.Parameter.Builder, + com.google.cloud.designcenter.v1.ParameterOrBuilder> + internalGetParametersFieldBuilder() { + if (parametersBuilder_ == null) { + parametersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Parameter, + com.google.cloud.designcenter.v1.Parameter.Builder, + com.google.cloud.designcenter.v1.ParameterOrBuilder>( + parameters_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + parameters_ = null; + } + return parametersBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.RootModuleDependency) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.RootModuleDependency) + private static final com.google.cloud.designcenter.v1.RootModuleDependency DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.RootModuleDependency(); + } + + public static com.google.cloud.designcenter.v1.RootModuleDependency getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RootModuleDependency parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.RootModuleDependency getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RootModuleDependencyOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RootModuleDependencyOrBuilder.java new file mode 100644 index 000000000000..749ced4eb09b --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RootModuleDependencyOrBuilder.java @@ -0,0 +1,110 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/iac.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface RootModuleDependencyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.RootModuleDependency) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier of the root module.
+   * 
+ * + * string root_module_id = 1; + * + * @return The rootModuleId. + */ + java.lang.String getRootModuleId(); + + /** + * + * + *
+   * Identifier of the root module.
+   * 
+ * + * string root_module_id = 1; + * + * @return The bytes for rootModuleId. + */ + com.google.protobuf.ByteString getRootModuleIdBytes(); + + /** + * + * + *
+   * Parameters associated with this dependency.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2; + */ + java.util.List getParametersList(); + + /** + * + * + *
+   * Parameters associated with this dependency.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2; + */ + com.google.cloud.designcenter.v1.Parameter getParameters(int index); + + /** + * + * + *
+   * Parameters associated with this dependency.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2; + */ + int getParametersCount(); + + /** + * + * + *
+   * Parameters associated with this dependency.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2; + */ + java.util.List + getParametersOrBuilderList(); + + /** + * + * + *
+   * Parameters associated with this dependency.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 2; + */ + com.google.cloud.designcenter.v1.ParameterOrBuilder getParametersOrBuilder(int index); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RootModuleOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RootModuleOrBuilder.java new file mode 100644 index 000000000000..4328d4648da9 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RootModuleOrBuilder.java @@ -0,0 +1,299 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/iac.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface RootModuleOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.RootModule) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier of the root module. This is the directory name of the root
+   * module in the generated terraform which is also same as the corresponding
+   * component ID.
+   * 
+ * + * string id = 1; + * + * @return The id. + */ + java.lang.String getId(); + + /** + * + * + *
+   * Identifier of the root module. This is the directory name of the root
+   * module in the generated terraform which is also same as the corresponding
+   * component ID.
+   * 
+ * + * string id = 1; + * + * @return The bytes for id. + */ + com.google.protobuf.ByteString getIdBytes(); + + /** + * + * + *
+   * List of Application Design Center component names associated with this root
+   * module. For standard app template type components, this list will have a
+   * single element. For service / workload / asset components, this list will
+   * contain all such component names.
+   * 
+ * + * repeated string components = 2; + * + * @return A list containing the components. + */ + java.util.List getComponentsList(); + + /** + * + * + *
+   * List of Application Design Center component names associated with this root
+   * module. For standard app template type components, this list will have a
+   * single element. For service / workload / asset components, this list will
+   * contain all such component names.
+   * 
+ * + * repeated string components = 2; + * + * @return The count of components. + */ + int getComponentsCount(); + + /** + * + * + *
+   * List of Application Design Center component names associated with this root
+   * module. For standard app template type components, this list will have a
+   * single element. For service / workload / asset components, this list will
+   * contain all such component names.
+   * 
+ * + * repeated string components = 2; + * + * @param index The index of the element to return. + * @return The components at the given index. + */ + java.lang.String getComponents(int index); + + /** + * + * + *
+   * List of Application Design Center component names associated with this root
+   * module. For standard app template type components, this list will have a
+   * single element. For service / workload / asset components, this list will
+   * contain all such component names.
+   * 
+ * + * repeated string components = 2; + * + * @param index The index of the value to return. + * @return The bytes of the components at the given index. + */ + com.google.protobuf.ByteString getComponentsBytes(int index); + + /** + * + * + *
+   * Dependencies of this root module. The dependency graph of root modules
+   * must be acyclic.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.RootModuleDependency dependencies = 3; + */ + java.util.List getDependenciesList(); + + /** + * + * + *
+   * Dependencies of this root module. The dependency graph of root modules
+   * must be acyclic.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.RootModuleDependency dependencies = 3; + */ + com.google.cloud.designcenter.v1.RootModuleDependency getDependencies(int index); + + /** + * + * + *
+   * Dependencies of this root module. The dependency graph of root modules
+   * must be acyclic.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.RootModuleDependency dependencies = 3; + */ + int getDependenciesCount(); + + /** + * + * + *
+   * Dependencies of this root module. The dependency graph of root modules
+   * must be acyclic.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.RootModuleDependency dependencies = 3; + */ + java.util.List + getDependenciesOrBuilderList(); + + /** + * + * + *
+   * Dependencies of this root module. The dependency graph of root modules
+   * must be acyclic.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.RootModuleDependency dependencies = 3; + */ + com.google.cloud.designcenter.v1.RootModuleDependencyOrBuilder getDependenciesOrBuilder( + int index); + + /** + * + * + *
+   * List of input variables of this root module.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.RootInputVariable input_variables = 4; + */ + java.util.List getInputVariablesList(); + + /** + * + * + *
+   * List of input variables of this root module.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.RootInputVariable input_variables = 4; + */ + com.google.cloud.designcenter.v1.RootInputVariable getInputVariables(int index); + + /** + * + * + *
+   * List of input variables of this root module.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.RootInputVariable input_variables = 4; + */ + int getInputVariablesCount(); + + /** + * + * + *
+   * List of input variables of this root module.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.RootInputVariable input_variables = 4; + */ + java.util.List + getInputVariablesOrBuilderList(); + + /** + * + * + *
+   * List of input variables of this root module.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.RootInputVariable input_variables = 4; + */ + com.google.cloud.designcenter.v1.RootInputVariableOrBuilder getInputVariablesOrBuilder(int index); + + /** + * + * + *
+   * List of output variables of this root module.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.RootOutputVariable output_variables = 5; + */ + java.util.List getOutputVariablesList(); + + /** + * + * + *
+   * List of output variables of this root module.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.RootOutputVariable output_variables = 5; + */ + com.google.cloud.designcenter.v1.RootOutputVariable getOutputVariables(int index); + + /** + * + * + *
+   * List of output variables of this root module.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.RootOutputVariable output_variables = 5; + */ + int getOutputVariablesCount(); + + /** + * + * + *
+   * List of output variables of this root module.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.RootOutputVariable output_variables = 5; + */ + java.util.List + getOutputVariablesOrBuilderList(); + + /** + * + * + *
+   * List of output variables of this root module.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.RootOutputVariable output_variables = 5; + */ + com.google.cloud.designcenter.v1.RootOutputVariableOrBuilder getOutputVariablesOrBuilder( + int index); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RootModulesMetadata.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RootModulesMetadata.java new file mode 100644 index 000000000000..56113214e5b8 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RootModulesMetadata.java @@ -0,0 +1,924 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/iac.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Root modules metadata.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.RootModulesMetadata} + */ +@com.google.protobuf.Generated +public final class RootModulesMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.RootModulesMetadata) + RootModulesMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "RootModulesMetadata"); + } + + // Use RootModulesMetadata.newBuilder() to construct. + private RootModulesMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RootModulesMetadata() { + rootModules_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.IacProto + .internal_static_google_cloud_designcenter_v1_RootModulesMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.IacProto + .internal_static_google_cloud_designcenter_v1_RootModulesMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.RootModulesMetadata.class, + com.google.cloud.designcenter.v1.RootModulesMetadata.Builder.class); + } + + public static final int ROOT_MODULES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List rootModules_; + + /** + * + * + *
+   * List of terraform root modules.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.RootModule root_modules = 1; + */ + @java.lang.Override + public java.util.List getRootModulesList() { + return rootModules_; + } + + /** + * + * + *
+   * List of terraform root modules.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.RootModule root_modules = 1; + */ + @java.lang.Override + public java.util.List + getRootModulesOrBuilderList() { + return rootModules_; + } + + /** + * + * + *
+   * List of terraform root modules.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.RootModule root_modules = 1; + */ + @java.lang.Override + public int getRootModulesCount() { + return rootModules_.size(); + } + + /** + * + * + *
+   * List of terraform root modules.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.RootModule root_modules = 1; + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.RootModule getRootModules(int index) { + return rootModules_.get(index); + } + + /** + * + * + *
+   * List of terraform root modules.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.RootModule root_modules = 1; + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.RootModuleOrBuilder getRootModulesOrBuilder(int index) { + return rootModules_.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 < rootModules_.size(); i++) { + output.writeMessage(1, rootModules_.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 < rootModules_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, rootModules_.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.designcenter.v1.RootModulesMetadata)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.RootModulesMetadata other = + (com.google.cloud.designcenter.v1.RootModulesMetadata) obj; + + if (!getRootModulesList().equals(other.getRootModulesList())) 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 (getRootModulesCount() > 0) { + hash = (37 * hash) + ROOT_MODULES_FIELD_NUMBER; + hash = (53 * hash) + getRootModulesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.RootModulesMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.RootModulesMetadata 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.designcenter.v1.RootModulesMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.RootModulesMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.RootModulesMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.RootModulesMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.RootModulesMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.RootModulesMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.RootModulesMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.RootModulesMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.RootModulesMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.RootModulesMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.RootModulesMetadata 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Root modules metadata.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.RootModulesMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.RootModulesMetadata) + com.google.cloud.designcenter.v1.RootModulesMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.IacProto + .internal_static_google_cloud_designcenter_v1_RootModulesMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.IacProto + .internal_static_google_cloud_designcenter_v1_RootModulesMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.RootModulesMetadata.class, + com.google.cloud.designcenter.v1.RootModulesMetadata.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.RootModulesMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (rootModulesBuilder_ == null) { + rootModules_ = java.util.Collections.emptyList(); + } else { + rootModules_ = null; + rootModulesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.IacProto + .internal_static_google_cloud_designcenter_v1_RootModulesMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.RootModulesMetadata getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.RootModulesMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.RootModulesMetadata build() { + com.google.cloud.designcenter.v1.RootModulesMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.RootModulesMetadata buildPartial() { + com.google.cloud.designcenter.v1.RootModulesMetadata result = + new com.google.cloud.designcenter.v1.RootModulesMetadata(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.designcenter.v1.RootModulesMetadata result) { + if (rootModulesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + rootModules_ = java.util.Collections.unmodifiableList(rootModules_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.rootModules_ = rootModules_; + } else { + result.rootModules_ = rootModulesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.designcenter.v1.RootModulesMetadata result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.RootModulesMetadata) { + return mergeFrom((com.google.cloud.designcenter.v1.RootModulesMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.RootModulesMetadata other) { + if (other == com.google.cloud.designcenter.v1.RootModulesMetadata.getDefaultInstance()) + return this; + if (rootModulesBuilder_ == null) { + if (!other.rootModules_.isEmpty()) { + if (rootModules_.isEmpty()) { + rootModules_ = other.rootModules_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRootModulesIsMutable(); + rootModules_.addAll(other.rootModules_); + } + onChanged(); + } + } else { + if (!other.rootModules_.isEmpty()) { + if (rootModulesBuilder_.isEmpty()) { + rootModulesBuilder_.dispose(); + rootModulesBuilder_ = null; + rootModules_ = other.rootModules_; + bitField0_ = (bitField0_ & ~0x00000001); + rootModulesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetRootModulesFieldBuilder() + : null; + } else { + rootModulesBuilder_.addAllMessages(other.rootModules_); + } + } + } + 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.designcenter.v1.RootModule m = + input.readMessage( + com.google.cloud.designcenter.v1.RootModule.parser(), extensionRegistry); + if (rootModulesBuilder_ == null) { + ensureRootModulesIsMutable(); + rootModules_.add(m); + } else { + rootModulesBuilder_.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 rootModules_ = + java.util.Collections.emptyList(); + + private void ensureRootModulesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + rootModules_ = + new java.util.ArrayList(rootModules_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.RootModule, + com.google.cloud.designcenter.v1.RootModule.Builder, + com.google.cloud.designcenter.v1.RootModuleOrBuilder> + rootModulesBuilder_; + + /** + * + * + *
+     * List of terraform root modules.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RootModule root_modules = 1; + */ + public java.util.List getRootModulesList() { + if (rootModulesBuilder_ == null) { + return java.util.Collections.unmodifiableList(rootModules_); + } else { + return rootModulesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * List of terraform root modules.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RootModule root_modules = 1; + */ + public int getRootModulesCount() { + if (rootModulesBuilder_ == null) { + return rootModules_.size(); + } else { + return rootModulesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * List of terraform root modules.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RootModule root_modules = 1; + */ + public com.google.cloud.designcenter.v1.RootModule getRootModules(int index) { + if (rootModulesBuilder_ == null) { + return rootModules_.get(index); + } else { + return rootModulesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * List of terraform root modules.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RootModule root_modules = 1; + */ + public Builder setRootModules(int index, com.google.cloud.designcenter.v1.RootModule value) { + if (rootModulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRootModulesIsMutable(); + rootModules_.set(index, value); + onChanged(); + } else { + rootModulesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * List of terraform root modules.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RootModule root_modules = 1; + */ + public Builder setRootModules( + int index, com.google.cloud.designcenter.v1.RootModule.Builder builderForValue) { + if (rootModulesBuilder_ == null) { + ensureRootModulesIsMutable(); + rootModules_.set(index, builderForValue.build()); + onChanged(); + } else { + rootModulesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * List of terraform root modules.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RootModule root_modules = 1; + */ + public Builder addRootModules(com.google.cloud.designcenter.v1.RootModule value) { + if (rootModulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRootModulesIsMutable(); + rootModules_.add(value); + onChanged(); + } else { + rootModulesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * List of terraform root modules.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RootModule root_modules = 1; + */ + public Builder addRootModules(int index, com.google.cloud.designcenter.v1.RootModule value) { + if (rootModulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRootModulesIsMutable(); + rootModules_.add(index, value); + onChanged(); + } else { + rootModulesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * List of terraform root modules.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RootModule root_modules = 1; + */ + public Builder addRootModules( + com.google.cloud.designcenter.v1.RootModule.Builder builderForValue) { + if (rootModulesBuilder_ == null) { + ensureRootModulesIsMutable(); + rootModules_.add(builderForValue.build()); + onChanged(); + } else { + rootModulesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * List of terraform root modules.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RootModule root_modules = 1; + */ + public Builder addRootModules( + int index, com.google.cloud.designcenter.v1.RootModule.Builder builderForValue) { + if (rootModulesBuilder_ == null) { + ensureRootModulesIsMutable(); + rootModules_.add(index, builderForValue.build()); + onChanged(); + } else { + rootModulesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * List of terraform root modules.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RootModule root_modules = 1; + */ + public Builder addAllRootModules( + java.lang.Iterable values) { + if (rootModulesBuilder_ == null) { + ensureRootModulesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rootModules_); + onChanged(); + } else { + rootModulesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * List of terraform root modules.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RootModule root_modules = 1; + */ + public Builder clearRootModules() { + if (rootModulesBuilder_ == null) { + rootModules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + rootModulesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * List of terraform root modules.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RootModule root_modules = 1; + */ + public Builder removeRootModules(int index) { + if (rootModulesBuilder_ == null) { + ensureRootModulesIsMutable(); + rootModules_.remove(index); + onChanged(); + } else { + rootModulesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * List of terraform root modules.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RootModule root_modules = 1; + */ + public com.google.cloud.designcenter.v1.RootModule.Builder getRootModulesBuilder(int index) { + return internalGetRootModulesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * List of terraform root modules.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RootModule root_modules = 1; + */ + public com.google.cloud.designcenter.v1.RootModuleOrBuilder getRootModulesOrBuilder(int index) { + if (rootModulesBuilder_ == null) { + return rootModules_.get(index); + } else { + return rootModulesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * List of terraform root modules.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RootModule root_modules = 1; + */ + public java.util.List + getRootModulesOrBuilderList() { + if (rootModulesBuilder_ != null) { + return rootModulesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(rootModules_); + } + } + + /** + * + * + *
+     * List of terraform root modules.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RootModule root_modules = 1; + */ + public com.google.cloud.designcenter.v1.RootModule.Builder addRootModulesBuilder() { + return internalGetRootModulesFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.RootModule.getDefaultInstance()); + } + + /** + * + * + *
+     * List of terraform root modules.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RootModule root_modules = 1; + */ + public com.google.cloud.designcenter.v1.RootModule.Builder addRootModulesBuilder(int index) { + return internalGetRootModulesFieldBuilder() + .addBuilder(index, com.google.cloud.designcenter.v1.RootModule.getDefaultInstance()); + } + + /** + * + * + *
+     * List of terraform root modules.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.RootModule root_modules = 1; + */ + public java.util.List + getRootModulesBuilderList() { + return internalGetRootModulesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.RootModule, + com.google.cloud.designcenter.v1.RootModule.Builder, + com.google.cloud.designcenter.v1.RootModuleOrBuilder> + internalGetRootModulesFieldBuilder() { + if (rootModulesBuilder_ == null) { + rootModulesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.RootModule, + com.google.cloud.designcenter.v1.RootModule.Builder, + com.google.cloud.designcenter.v1.RootModuleOrBuilder>( + rootModules_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + rootModules_ = null; + } + return rootModulesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.RootModulesMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.RootModulesMetadata) + private static final com.google.cloud.designcenter.v1.RootModulesMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.RootModulesMetadata(); + } + + public static com.google.cloud.designcenter.v1.RootModulesMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RootModulesMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.RootModulesMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RootModulesMetadataOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RootModulesMetadataOrBuilder.java new file mode 100644 index 000000000000..68234533028d --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RootModulesMetadataOrBuilder.java @@ -0,0 +1,84 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/iac.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface RootModulesMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.RootModulesMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of terraform root modules.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.RootModule root_modules = 1; + */ + java.util.List getRootModulesList(); + + /** + * + * + *
+   * List of terraform root modules.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.RootModule root_modules = 1; + */ + com.google.cloud.designcenter.v1.RootModule getRootModules(int index); + + /** + * + * + *
+   * List of terraform root modules.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.RootModule root_modules = 1; + */ + int getRootModulesCount(); + + /** + * + * + *
+   * List of terraform root modules.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.RootModule root_modules = 1; + */ + java.util.List + getRootModulesOrBuilderList(); + + /** + * + * + *
+   * List of terraform root modules.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.RootModule root_modules = 1; + */ + com.google.cloud.designcenter.v1.RootModuleOrBuilder getRootModulesOrBuilder(int index); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RootOutputVariable.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RootOutputVariable.java new file mode 100644 index 000000000000..9dedd03779fc --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RootOutputVariable.java @@ -0,0 +1,596 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/iac.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Output variable of a root module.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.RootOutputVariable} + */ +@com.google.protobuf.Generated +public final class RootOutputVariable extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.RootOutputVariable) + RootOutputVariableOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "RootOutputVariable"); + } + + // Use RootOutputVariable.newBuilder() to construct. + private RootOutputVariable(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RootOutputVariable() { + variable_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.IacProto + .internal_static_google_cloud_designcenter_v1_RootOutputVariable_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.IacProto + .internal_static_google_cloud_designcenter_v1_RootOutputVariable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.RootOutputVariable.class, + com.google.cloud.designcenter.v1.RootOutputVariable.Builder.class); + } + + public static final int VARIABLE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object variable_ = ""; + + /** + * + * + *
+   * Name of the output variable.
+   * 
+ * + * string variable = 1; + * + * @return The variable. + */ + @java.lang.Override + public java.lang.String getVariable() { + java.lang.Object ref = variable_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + variable_ = s; + return s; + } + } + + /** + * + * + *
+   * Name of the output variable.
+   * 
+ * + * string variable = 1; + * + * @return The bytes for variable. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVariableBytes() { + java.lang.Object ref = variable_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + variable_ = 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.GeneratedMessage.isStringEmpty(variable_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, variable_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(variable_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, variable_); + } + 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.designcenter.v1.RootOutputVariable)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.RootOutputVariable other = + (com.google.cloud.designcenter.v1.RootOutputVariable) obj; + + if (!getVariable().equals(other.getVariable())) 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) + VARIABLE_FIELD_NUMBER; + hash = (53 * hash) + getVariable().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.RootOutputVariable parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.RootOutputVariable 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.designcenter.v1.RootOutputVariable parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.RootOutputVariable parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.RootOutputVariable parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.RootOutputVariable parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.RootOutputVariable parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.RootOutputVariable parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.RootOutputVariable parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.RootOutputVariable parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.RootOutputVariable parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.RootOutputVariable parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.RootOutputVariable 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Output variable of a root module.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.RootOutputVariable} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.RootOutputVariable) + com.google.cloud.designcenter.v1.RootOutputVariableOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.IacProto + .internal_static_google_cloud_designcenter_v1_RootOutputVariable_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.IacProto + .internal_static_google_cloud_designcenter_v1_RootOutputVariable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.RootOutputVariable.class, + com.google.cloud.designcenter.v1.RootOutputVariable.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.RootOutputVariable.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + variable_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.IacProto + .internal_static_google_cloud_designcenter_v1_RootOutputVariable_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.RootOutputVariable getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.RootOutputVariable.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.RootOutputVariable build() { + com.google.cloud.designcenter.v1.RootOutputVariable result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.RootOutputVariable buildPartial() { + com.google.cloud.designcenter.v1.RootOutputVariable result = + new com.google.cloud.designcenter.v1.RootOutputVariable(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.RootOutputVariable result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.variable_ = variable_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.RootOutputVariable) { + return mergeFrom((com.google.cloud.designcenter.v1.RootOutputVariable) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.RootOutputVariable other) { + if (other == com.google.cloud.designcenter.v1.RootOutputVariable.getDefaultInstance()) + return this; + if (!other.getVariable().isEmpty()) { + variable_ = other.variable_; + 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: + { + variable_ = 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 variable_ = ""; + + /** + * + * + *
+     * Name of the output variable.
+     * 
+ * + * string variable = 1; + * + * @return The variable. + */ + public java.lang.String getVariable() { + java.lang.Object ref = variable_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + variable_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Name of the output variable.
+     * 
+ * + * string variable = 1; + * + * @return The bytes for variable. + */ + public com.google.protobuf.ByteString getVariableBytes() { + java.lang.Object ref = variable_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + variable_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Name of the output variable.
+     * 
+ * + * string variable = 1; + * + * @param value The variable to set. + * @return This builder for chaining. + */ + public Builder setVariable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + variable_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the output variable.
+     * 
+ * + * string variable = 1; + * + * @return This builder for chaining. + */ + public Builder clearVariable() { + variable_ = getDefaultInstance().getVariable(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the output variable.
+     * 
+ * + * string variable = 1; + * + * @param value The bytes for variable to set. + * @return This builder for chaining. + */ + public Builder setVariableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + variable_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.RootOutputVariable) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.RootOutputVariable) + private static final com.google.cloud.designcenter.v1.RootOutputVariable DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.RootOutputVariable(); + } + + public static com.google.cloud.designcenter.v1.RootOutputVariable getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RootOutputVariable parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.RootOutputVariable getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RootOutputVariableOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RootOutputVariableOrBuilder.java new file mode 100644 index 000000000000..55ed67bb59bf --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/RootOutputVariableOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/iac.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface RootOutputVariableOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.RootOutputVariable) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Name of the output variable.
+   * 
+ * + * string variable = 1; + * + * @return The variable. + */ + java.lang.String getVariable(); + + /** + * + * + *
+   * Name of the output variable.
+   * 
+ * + * string variable = 1; + * + * @return The bytes for variable. + */ + com.google.protobuf.ByteString getVariableBytes(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SCCMetadata.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SCCMetadata.java new file mode 100644 index 000000000000..dc5bb5e860b1 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SCCMetadata.java @@ -0,0 +1,784 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/assessment.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * SCC metadata for the assessment finding.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.SCCMetadata} + */ +@com.google.protobuf.Generated +public final class SCCMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.SCCMetadata) + SCCMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "SCCMetadata"); + } + + // Use SCCMetadata.newBuilder() to construct. + private SCCMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SCCMetadata() { + findingClass_ = ""; + findingType_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_SCCMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_SCCMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.SCCMetadata.class, + com.google.cloud.designcenter.v1.SCCMetadata.Builder.class); + } + + public static final int FINDING_CLASS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object findingClass_ = ""; + + /** + * + * + *
+   * Optional. The SCC finding class. Also known as category.
+   * 
+ * + * string finding_class = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The findingClass. + */ + @java.lang.Override + public java.lang.String getFindingClass() { + java.lang.Object ref = findingClass_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + findingClass_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The SCC finding class. Also known as category.
+   * 
+ * + * string finding_class = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for findingClass. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFindingClassBytes() { + java.lang.Object ref = findingClass_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + findingClass_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FINDING_TYPE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object findingType_ = ""; + + /** + * + * + *
+   * Optional. The SCC finding type.
+   * 
+ * + * string finding_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The findingType. + */ + @java.lang.Override + public java.lang.String getFindingType() { + java.lang.Object ref = findingType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + findingType_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The SCC finding type.
+   * 
+ * + * string finding_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for findingType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFindingTypeBytes() { + java.lang.Object ref = findingType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + findingType_ = 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.GeneratedMessage.isStringEmpty(findingClass_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, findingClass_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(findingType_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, findingType_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(findingClass_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, findingClass_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(findingType_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, findingType_); + } + 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.designcenter.v1.SCCMetadata)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.SCCMetadata other = + (com.google.cloud.designcenter.v1.SCCMetadata) obj; + + if (!getFindingClass().equals(other.getFindingClass())) return false; + if (!getFindingType().equals(other.getFindingType())) 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) + FINDING_CLASS_FIELD_NUMBER; + hash = (53 * hash) + getFindingClass().hashCode(); + hash = (37 * hash) + FINDING_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getFindingType().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.SCCMetadata parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.SCCMetadata 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.designcenter.v1.SCCMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.SCCMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.SCCMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.SCCMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.SCCMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.SCCMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.SCCMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.SCCMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.SCCMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.SCCMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.SCCMetadata 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * SCC metadata for the assessment finding.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.SCCMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.SCCMetadata) + com.google.cloud.designcenter.v1.SCCMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_SCCMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_SCCMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.SCCMetadata.class, + com.google.cloud.designcenter.v1.SCCMetadata.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.SCCMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + findingClass_ = ""; + findingType_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_SCCMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.SCCMetadata getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.SCCMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.SCCMetadata build() { + com.google.cloud.designcenter.v1.SCCMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.SCCMetadata buildPartial() { + com.google.cloud.designcenter.v1.SCCMetadata result = + new com.google.cloud.designcenter.v1.SCCMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.SCCMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.findingClass_ = findingClass_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.findingType_ = findingType_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.SCCMetadata) { + return mergeFrom((com.google.cloud.designcenter.v1.SCCMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.SCCMetadata other) { + if (other == com.google.cloud.designcenter.v1.SCCMetadata.getDefaultInstance()) return this; + if (!other.getFindingClass().isEmpty()) { + findingClass_ = other.findingClass_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getFindingType().isEmpty()) { + findingType_ = other.findingType_; + 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: + { + findingClass_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + findingType_ = 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 findingClass_ = ""; + + /** + * + * + *
+     * Optional. The SCC finding class. Also known as category.
+     * 
+ * + * string finding_class = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The findingClass. + */ + public java.lang.String getFindingClass() { + java.lang.Object ref = findingClass_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + findingClass_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The SCC finding class. Also known as category.
+     * 
+ * + * string finding_class = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for findingClass. + */ + public com.google.protobuf.ByteString getFindingClassBytes() { + java.lang.Object ref = findingClass_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + findingClass_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The SCC finding class. Also known as category.
+     * 
+ * + * string finding_class = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The findingClass to set. + * @return This builder for chaining. + */ + public Builder setFindingClass(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + findingClass_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The SCC finding class. Also known as category.
+     * 
+ * + * string finding_class = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFindingClass() { + findingClass_ = getDefaultInstance().getFindingClass(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The SCC finding class. Also known as category.
+     * 
+ * + * string finding_class = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for findingClass to set. + * @return This builder for chaining. + */ + public Builder setFindingClassBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + findingClass_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object findingType_ = ""; + + /** + * + * + *
+     * Optional. The SCC finding type.
+     * 
+ * + * string finding_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The findingType. + */ + public java.lang.String getFindingType() { + java.lang.Object ref = findingType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + findingType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The SCC finding type.
+     * 
+ * + * string finding_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for findingType. + */ + public com.google.protobuf.ByteString getFindingTypeBytes() { + java.lang.Object ref = findingType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + findingType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The SCC finding type.
+     * 
+ * + * string finding_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The findingType to set. + * @return This builder for chaining. + */ + public Builder setFindingType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + findingType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The SCC finding type.
+     * 
+ * + * string finding_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFindingType() { + findingType_ = getDefaultInstance().getFindingType(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The SCC finding type.
+     * 
+ * + * string finding_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for findingType to set. + * @return This builder for chaining. + */ + public Builder setFindingTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + findingType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.SCCMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.SCCMetadata) + private static final com.google.cloud.designcenter.v1.SCCMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.SCCMetadata(); + } + + public static com.google.cloud.designcenter.v1.SCCMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SCCMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.SCCMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SCCMetadataOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SCCMetadataOrBuilder.java new file mode 100644 index 000000000000..b0c8b56f6ae3 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SCCMetadataOrBuilder.java @@ -0,0 +1,80 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/assessment.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface SCCMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.SCCMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The SCC finding class. Also known as category.
+   * 
+ * + * string finding_class = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The findingClass. + */ + java.lang.String getFindingClass(); + + /** + * + * + *
+   * Optional. The SCC finding class. Also known as category.
+   * 
+ * + * string finding_class = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for findingClass. + */ + com.google.protobuf.ByteString getFindingClassBytes(); + + /** + * + * + *
+   * Optional. The SCC finding type.
+   * 
+ * + * string finding_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The findingType. + */ + java.lang.String getFindingType(); + + /** + * + * + *
+   * Optional. The SCC finding type.
+   * 
+ * + * string finding_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for findingType. + */ + com.google.protobuf.ByteString getFindingTypeBytes(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SaaSRuntimeContext.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SaaSRuntimeContext.java new file mode 100644 index 000000000000..36149a317517 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SaaSRuntimeContext.java @@ -0,0 +1,710 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/parameters.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * SaaS runtime context.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.SaaSRuntimeContext} + */ +@com.google.protobuf.Generated +public final class SaaSRuntimeContext extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.SaaSRuntimeContext) + SaaSRuntimeContextOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "SaaSRuntimeContext"); + } + + // Use SaaSRuntimeContext.newBuilder() to construct. + private SaaSRuntimeContext(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SaaSRuntimeContext() { + saasNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.ParametersProto + .internal_static_google_cloud_designcenter_v1_SaaSRuntimeContext_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.ParametersProto + .internal_static_google_cloud_designcenter_v1_SaaSRuntimeContext_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.SaaSRuntimeContext.class, + com.google.cloud.designcenter.v1.SaaSRuntimeContext.Builder.class); + } + + public static final int SAAS_NAMES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList saasNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Optional. The SaaS names. Format for each SaaS:
+   * projects/{project}/locations/{location}/saas/{saas}
+   * 
+ * + * repeated string saas_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the saasNames. + */ + public com.google.protobuf.ProtocolStringList getSaasNamesList() { + return saasNames_; + } + + /** + * + * + *
+   * Optional. The SaaS names. Format for each SaaS:
+   * projects/{project}/locations/{location}/saas/{saas}
+   * 
+ * + * repeated string saas_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of saasNames. + */ + public int getSaasNamesCount() { + return saasNames_.size(); + } + + /** + * + * + *
+   * Optional. The SaaS names. Format for each SaaS:
+   * projects/{project}/locations/{location}/saas/{saas}
+   * 
+ * + * repeated string saas_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The saasNames at the given index. + */ + public java.lang.String getSaasNames(int index) { + return saasNames_.get(index); + } + + /** + * + * + *
+   * Optional. The SaaS names. Format for each SaaS:
+   * projects/{project}/locations/{location}/saas/{saas}
+   * 
+ * + * repeated string saas_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the saasNames at the given index. + */ + public com.google.protobuf.ByteString getSaasNamesBytes(int index) { + return saasNames_.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 < saasNames_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, saasNames_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < saasNames_.size(); i++) { + dataSize += computeStringSizeNoTag(saasNames_.getRaw(i)); + } + size += dataSize; + size += 1 * getSaasNamesList().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.designcenter.v1.SaaSRuntimeContext)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.SaaSRuntimeContext other = + (com.google.cloud.designcenter.v1.SaaSRuntimeContext) obj; + + if (!getSaasNamesList().equals(other.getSaasNamesList())) 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 (getSaasNamesCount() > 0) { + hash = (37 * hash) + SAAS_NAMES_FIELD_NUMBER; + hash = (53 * hash) + getSaasNamesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.SaaSRuntimeContext parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.SaaSRuntimeContext 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.designcenter.v1.SaaSRuntimeContext parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.SaaSRuntimeContext parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.SaaSRuntimeContext parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.SaaSRuntimeContext parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.SaaSRuntimeContext parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.SaaSRuntimeContext parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.SaaSRuntimeContext parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.SaaSRuntimeContext parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.SaaSRuntimeContext parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.SaaSRuntimeContext parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.SaaSRuntimeContext 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * SaaS runtime context.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.SaaSRuntimeContext} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.SaaSRuntimeContext) + com.google.cloud.designcenter.v1.SaaSRuntimeContextOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.ParametersProto + .internal_static_google_cloud_designcenter_v1_SaaSRuntimeContext_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.ParametersProto + .internal_static_google_cloud_designcenter_v1_SaaSRuntimeContext_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.SaaSRuntimeContext.class, + com.google.cloud.designcenter.v1.SaaSRuntimeContext.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.SaaSRuntimeContext.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + saasNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.ParametersProto + .internal_static_google_cloud_designcenter_v1_SaaSRuntimeContext_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.SaaSRuntimeContext getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.SaaSRuntimeContext.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.SaaSRuntimeContext build() { + com.google.cloud.designcenter.v1.SaaSRuntimeContext result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.SaaSRuntimeContext buildPartial() { + com.google.cloud.designcenter.v1.SaaSRuntimeContext result = + new com.google.cloud.designcenter.v1.SaaSRuntimeContext(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.SaaSRuntimeContext result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + saasNames_.makeImmutable(); + result.saasNames_ = saasNames_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.SaaSRuntimeContext) { + return mergeFrom((com.google.cloud.designcenter.v1.SaaSRuntimeContext) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.SaaSRuntimeContext other) { + if (other == com.google.cloud.designcenter.v1.SaaSRuntimeContext.getDefaultInstance()) + return this; + if (!other.saasNames_.isEmpty()) { + if (saasNames_.isEmpty()) { + saasNames_ = other.saasNames_; + bitField0_ |= 0x00000001; + } else { + ensureSaasNamesIsMutable(); + saasNames_.addAll(other.saasNames_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureSaasNamesIsMutable(); + saasNames_.add(s); + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList saasNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureSaasNamesIsMutable() { + if (!saasNames_.isModifiable()) { + saasNames_ = new com.google.protobuf.LazyStringArrayList(saasNames_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
+     * Optional. The SaaS names. Format for each SaaS:
+     * projects/{project}/locations/{location}/saas/{saas}
+     * 
+ * + * repeated string saas_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the saasNames. + */ + public com.google.protobuf.ProtocolStringList getSaasNamesList() { + saasNames_.makeImmutable(); + return saasNames_; + } + + /** + * + * + *
+     * Optional. The SaaS names. Format for each SaaS:
+     * projects/{project}/locations/{location}/saas/{saas}
+     * 
+ * + * repeated string saas_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of saasNames. + */ + public int getSaasNamesCount() { + return saasNames_.size(); + } + + /** + * + * + *
+     * Optional. The SaaS names. Format for each SaaS:
+     * projects/{project}/locations/{location}/saas/{saas}
+     * 
+ * + * repeated string saas_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The saasNames at the given index. + */ + public java.lang.String getSaasNames(int index) { + return saasNames_.get(index); + } + + /** + * + * + *
+     * Optional. The SaaS names. Format for each SaaS:
+     * projects/{project}/locations/{location}/saas/{saas}
+     * 
+ * + * repeated string saas_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the saasNames at the given index. + */ + public com.google.protobuf.ByteString getSaasNamesBytes(int index) { + return saasNames_.getByteString(index); + } + + /** + * + * + *
+     * Optional. The SaaS names. Format for each SaaS:
+     * projects/{project}/locations/{location}/saas/{saas}
+     * 
+ * + * repeated string saas_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The saasNames to set. + * @return This builder for chaining. + */ + public Builder setSaasNames(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSaasNamesIsMutable(); + saasNames_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The SaaS names. Format for each SaaS:
+     * projects/{project}/locations/{location}/saas/{saas}
+     * 
+ * + * repeated string saas_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The saasNames to add. + * @return This builder for chaining. + */ + public Builder addSaasNames(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSaasNamesIsMutable(); + saasNames_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The SaaS names. Format for each SaaS:
+     * projects/{project}/locations/{location}/saas/{saas}
+     * 
+ * + * repeated string saas_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The saasNames to add. + * @return This builder for chaining. + */ + public Builder addAllSaasNames(java.lang.Iterable values) { + ensureSaasNamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, saasNames_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The SaaS names. Format for each SaaS:
+     * projects/{project}/locations/{location}/saas/{saas}
+     * 
+ * + * repeated string saas_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSaasNames() { + saasNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The SaaS names. Format for each SaaS:
+     * projects/{project}/locations/{location}/saas/{saas}
+     * 
+ * + * repeated string saas_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the saasNames to add. + * @return This builder for chaining. + */ + public Builder addSaasNamesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureSaasNamesIsMutable(); + saasNames_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.SaaSRuntimeContext) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.SaaSRuntimeContext) + private static final com.google.cloud.designcenter.v1.SaaSRuntimeContext DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.SaaSRuntimeContext(); + } + + public static com.google.cloud.designcenter.v1.SaaSRuntimeContext getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SaaSRuntimeContext parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.SaaSRuntimeContext getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SaaSRuntimeContextOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SaaSRuntimeContextOrBuilder.java new file mode 100644 index 000000000000..120b6faddd89 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SaaSRuntimeContextOrBuilder.java @@ -0,0 +1,86 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/parameters.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface SaaSRuntimeContextOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.SaaSRuntimeContext) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The SaaS names. Format for each SaaS:
+   * projects/{project}/locations/{location}/saas/{saas}
+   * 
+ * + * repeated string saas_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the saasNames. + */ + java.util.List getSaasNamesList(); + + /** + * + * + *
+   * Optional. The SaaS names. Format for each SaaS:
+   * projects/{project}/locations/{location}/saas/{saas}
+   * 
+ * + * repeated string saas_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of saasNames. + */ + int getSaasNamesCount(); + + /** + * + * + *
+   * Optional. The SaaS names. Format for each SaaS:
+   * projects/{project}/locations/{location}/saas/{saas}
+   * 
+ * + * repeated string saas_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The saasNames at the given index. + */ + java.lang.String getSaasNames(int index); + + /** + * + * + *
+   * Optional. The SaaS names. Format for each SaaS:
+   * projects/{project}/locations/{location}/saas/{saas}
+   * 
+ * + * repeated string saas_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the saasNames at the given index. + */ + com.google.protobuf.ByteString getSaasNamesBytes(int index); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ScoreCard.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ScoreCard.java new file mode 100644 index 000000000000..13ee305aa6ea --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ScoreCard.java @@ -0,0 +1,801 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/assessment.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Score card associated with the report.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ScoreCard} + */ +@com.google.protobuf.Generated +public final class ScoreCard extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ScoreCard) + ScoreCardOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ScoreCard"); + } + + // Use ScoreCard.newBuilder() to construct. + private ScoreCard(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ScoreCard() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_ScoreCard_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_ScoreCard_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ScoreCard.class, + com.google.cloud.designcenter.v1.ScoreCard.Builder.class); + } + + public static final int REPORT_SCORE_FIELD_NUMBER = 1; + private int reportScore_ = 0; + + /** + * + * + *
+   * Required. Calculated score of the report.
+   * 
+ * + * int32 report_score = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The reportScore. + */ + @java.lang.Override + public int getReportScore() { + return reportScore_; + } + + public static final int MAX_SCORE_FIELD_NUMBER = 2; + private int maxScore_ = 0; + + /** + * + * + *
+   * Required. Maximum score of the report.
+   * For example, for a score of 75/100, report_score is 75 and max_score is
+   * 100.
+   * 
+ * + * int32 max_score = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The maxScore. + */ + @java.lang.Override + public int getMaxScore() { + return maxScore_; + } + + public static final int MIN_SCORE_REQUIRED_FIELD_NUMBER = 3; + private int minScoreRequired_ = 0; + + /** + * + * + *
+   * Optional. Minimum score required to pass assessment.
+   * 
+ * + * int32 min_score_required = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The minScoreRequired. + */ + @java.lang.Override + public int getMinScoreRequired() { + return minScoreRequired_; + } + + public static final int AVERAGE_SCORE_FIELD_NUMBER = 4; + private int averageScore_ = 0; + + /** + * + * + *
+   * Optional. Average score for similar reports.
+   * 
+ * + * int32 average_score = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The averageScore. + */ + @java.lang.Override + public int getAverageScore() { + return averageScore_; + } + + 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 (reportScore_ != 0) { + output.writeInt32(1, reportScore_); + } + if (maxScore_ != 0) { + output.writeInt32(2, maxScore_); + } + if (minScoreRequired_ != 0) { + output.writeInt32(3, minScoreRequired_); + } + if (averageScore_ != 0) { + output.writeInt32(4, averageScore_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (reportScore_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, reportScore_); + } + if (maxScore_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, maxScore_); + } + if (minScoreRequired_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, minScoreRequired_); + } + if (averageScore_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, averageScore_); + } + 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.designcenter.v1.ScoreCard)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ScoreCard other = + (com.google.cloud.designcenter.v1.ScoreCard) obj; + + if (getReportScore() != other.getReportScore()) return false; + if (getMaxScore() != other.getMaxScore()) return false; + if (getMinScoreRequired() != other.getMinScoreRequired()) return false; + if (getAverageScore() != other.getAverageScore()) 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) + REPORT_SCORE_FIELD_NUMBER; + hash = (53 * hash) + getReportScore(); + hash = (37 * hash) + MAX_SCORE_FIELD_NUMBER; + hash = (53 * hash) + getMaxScore(); + hash = (37 * hash) + MIN_SCORE_REQUIRED_FIELD_NUMBER; + hash = (53 * hash) + getMinScoreRequired(); + hash = (37 * hash) + AVERAGE_SCORE_FIELD_NUMBER; + hash = (53 * hash) + getAverageScore(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.ScoreCard parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ScoreCard 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.designcenter.v1.ScoreCard parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ScoreCard parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ScoreCard parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ScoreCard parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ScoreCard parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ScoreCard parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ScoreCard parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ScoreCard parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ScoreCard parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ScoreCard parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ScoreCard 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Score card associated with the report.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ScoreCard} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ScoreCard) + com.google.cloud.designcenter.v1.ScoreCardOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_ScoreCard_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_ScoreCard_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ScoreCard.class, + com.google.cloud.designcenter.v1.ScoreCard.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.ScoreCard.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + reportScore_ = 0; + maxScore_ = 0; + minScoreRequired_ = 0; + averageScore_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_ScoreCard_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ScoreCard getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ScoreCard.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ScoreCard build() { + com.google.cloud.designcenter.v1.ScoreCard result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ScoreCard buildPartial() { + com.google.cloud.designcenter.v1.ScoreCard result = + new com.google.cloud.designcenter.v1.ScoreCard(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.ScoreCard result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.reportScore_ = reportScore_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.maxScore_ = maxScore_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.minScoreRequired_ = minScoreRequired_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.averageScore_ = averageScore_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.ScoreCard) { + return mergeFrom((com.google.cloud.designcenter.v1.ScoreCard) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.ScoreCard other) { + if (other == com.google.cloud.designcenter.v1.ScoreCard.getDefaultInstance()) return this; + if (other.getReportScore() != 0) { + setReportScore(other.getReportScore()); + } + if (other.getMaxScore() != 0) { + setMaxScore(other.getMaxScore()); + } + if (other.getMinScoreRequired() != 0) { + setMinScoreRequired(other.getMinScoreRequired()); + } + if (other.getAverageScore() != 0) { + setAverageScore(other.getAverageScore()); + } + 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: + { + reportScore_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + maxScore_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + minScoreRequired_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + averageScore_ = input.readInt32(); + 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 int reportScore_; + + /** + * + * + *
+     * Required. Calculated score of the report.
+     * 
+ * + * int32 report_score = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The reportScore. + */ + @java.lang.Override + public int getReportScore() { + return reportScore_; + } + + /** + * + * + *
+     * Required. Calculated score of the report.
+     * 
+ * + * int32 report_score = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The reportScore to set. + * @return This builder for chaining. + */ + public Builder setReportScore(int value) { + + reportScore_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Calculated score of the report.
+     * 
+ * + * int32 report_score = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearReportScore() { + bitField0_ = (bitField0_ & ~0x00000001); + reportScore_ = 0; + onChanged(); + return this; + } + + private int maxScore_; + + /** + * + * + *
+     * Required. Maximum score of the report.
+     * For example, for a score of 75/100, report_score is 75 and max_score is
+     * 100.
+     * 
+ * + * int32 max_score = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The maxScore. + */ + @java.lang.Override + public int getMaxScore() { + return maxScore_; + } + + /** + * + * + *
+     * Required. Maximum score of the report.
+     * For example, for a score of 75/100, report_score is 75 and max_score is
+     * 100.
+     * 
+ * + * int32 max_score = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The maxScore to set. + * @return This builder for chaining. + */ + public Builder setMaxScore(int value) { + + maxScore_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Maximum score of the report.
+     * For example, for a score of 75/100, report_score is 75 and max_score is
+     * 100.
+     * 
+ * + * int32 max_score = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearMaxScore() { + bitField0_ = (bitField0_ & ~0x00000002); + maxScore_ = 0; + onChanged(); + return this; + } + + private int minScoreRequired_; + + /** + * + * + *
+     * Optional. Minimum score required to pass assessment.
+     * 
+ * + * int32 min_score_required = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The minScoreRequired. + */ + @java.lang.Override + public int getMinScoreRequired() { + return minScoreRequired_; + } + + /** + * + * + *
+     * Optional. Minimum score required to pass assessment.
+     * 
+ * + * int32 min_score_required = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The minScoreRequired to set. + * @return This builder for chaining. + */ + public Builder setMinScoreRequired(int value) { + + minScoreRequired_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Minimum score required to pass assessment.
+     * 
+ * + * int32 min_score_required = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMinScoreRequired() { + bitField0_ = (bitField0_ & ~0x00000004); + minScoreRequired_ = 0; + onChanged(); + return this; + } + + private int averageScore_; + + /** + * + * + *
+     * Optional. Average score for similar reports.
+     * 
+ * + * int32 average_score = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The averageScore. + */ + @java.lang.Override + public int getAverageScore() { + return averageScore_; + } + + /** + * + * + *
+     * Optional. Average score for similar reports.
+     * 
+ * + * int32 average_score = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The averageScore to set. + * @return This builder for chaining. + */ + public Builder setAverageScore(int value) { + + averageScore_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Average score for similar reports.
+     * 
+ * + * int32 average_score = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAverageScore() { + bitField0_ = (bitField0_ & ~0x00000008); + averageScore_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ScoreCard) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ScoreCard) + private static final com.google.cloud.designcenter.v1.ScoreCard DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.ScoreCard(); + } + + public static com.google.cloud.designcenter.v1.ScoreCard getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ScoreCard parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ScoreCard getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ScoreCardOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ScoreCardOrBuilder.java new file mode 100644 index 000000000000..d3e2c5a0f837 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ScoreCardOrBuilder.java @@ -0,0 +1,82 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/assessment.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ScoreCardOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ScoreCard) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Calculated score of the report.
+   * 
+ * + * int32 report_score = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The reportScore. + */ + int getReportScore(); + + /** + * + * + *
+   * Required. Maximum score of the report.
+   * For example, for a score of 75/100, report_score is 75 and max_score is
+   * 100.
+   * 
+ * + * int32 max_score = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The maxScore. + */ + int getMaxScore(); + + /** + * + * + *
+   * Optional. Minimum score required to pass assessment.
+   * 
+ * + * int32 min_score_required = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The minScoreRequired. + */ + int getMinScoreRequired(); + + /** + * + * + *
+   * Optional. Average score for similar reports.
+   * 
+ * + * int32 average_score = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The averageScore. + */ + int getAverageScore(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SerializedApplicationTemplate.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SerializedApplicationTemplate.java new file mode 100644 index 000000000000..ecbd56388a3f --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SerializedApplicationTemplate.java @@ -0,0 +1,6795 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Serialized application template.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.SerializedApplicationTemplate} + */ +@com.google.protobuf.Generated +public final class SerializedApplicationTemplate extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.SerializedApplicationTemplate) + SerializedApplicationTemplateOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "SerializedApplicationTemplate"); + } + + // Use SerializedApplicationTemplate.newBuilder() to construct. + private SerializedApplicationTemplate(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SerializedApplicationTemplate() { + uri_ = ""; + displayName_ = ""; + description_ = ""; + applicationParameters_ = java.util.Collections.emptyList(); + iacFormat_ = 0; + components_ = java.util.Collections.emptyList(); + compositionType_ = 0; + rootInputVariables_ = java.util.Collections.emptyList(); + rootOutputVariables_ = java.util.Collections.emptyList(); + serializedPolicies_ = java.util.Collections.emptyList(); + providers_ = java.util.Collections.emptyList(); + customVariables_ = java.util.Collections.emptyList(); + customTfvars_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringResourcesProto + .internal_static_google_cloud_designcenter_v1_SerializedApplicationTemplate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringResourcesProto + .internal_static_google_cloud_designcenter_v1_SerializedApplicationTemplate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.SerializedApplicationTemplate.class, + com.google.cloud.designcenter.v1.SerializedApplicationTemplate.Builder.class); + } + + private int bitField0_; + public static final int URI_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; + + /** + * + * + *
+   * Optional. The application template URI.
+   * 
+ * + * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The uri. + */ + @java.lang.Override + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The application template URI.
+   * 
+ * + * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for uri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = 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_ = ""; + + /** + * + * + *
+   * Optional. The application template display name.
+   * 
+ * + * string display_name = 2 [(.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. The application template display name.
+   * 
+ * + * string display_name = 2 [(.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 DESCRIPTION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
+   * Optional. The application template description.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The application template description.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int APPLICATION_PARAMETERS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private java.util.List applicationParameters_; + + /** + * + * + *
+   * Optional. Parameters to apply to all components in the application
+   * template.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getApplicationParametersList() { + return applicationParameters_; + } + + /** + * + * + *
+   * Optional. Parameters to apply to all components in the application
+   * template.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getApplicationParametersOrBuilderList() { + return applicationParameters_; + } + + /** + * + * + *
+   * Optional. Parameters to apply to all components in the application
+   * template.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getApplicationParametersCount() { + return applicationParameters_.size(); + } + + /** + * + * + *
+   * Optional. Parameters to apply to all components in the application
+   * template.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.Parameter getApplicationParameters(int index) { + return applicationParameters_.get(index); + } + + /** + * + * + *
+   * Optional. Parameters to apply to all components in the application
+   * template.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ParameterOrBuilder getApplicationParametersOrBuilder( + int index) { + return applicationParameters_.get(index); + } + + public static final int IAC_FORMAT_FIELD_NUMBER = 7; + private int iacFormat_ = 0; + + /** + * + * + *
+   * Optional. The IaC format of the application template.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationTemplate.IACFormat iac_format = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for iacFormat. + */ + @java.lang.Override + public int getIacFormatValue() { + return iacFormat_; + } + + /** + * + * + *
+   * Optional. The IaC format of the application template.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationTemplate.IACFormat iac_format = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The iacFormat. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ApplicationTemplate.IACFormat getIacFormat() { + com.google.cloud.designcenter.v1.ApplicationTemplate.IACFormat result = + com.google.cloud.designcenter.v1.ApplicationTemplate.IACFormat.forNumber(iacFormat_); + return result == null + ? com.google.cloud.designcenter.v1.ApplicationTemplate.IACFormat.UNRECOGNIZED + : result; + } + + public static final int COMPONENTS_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private java.util.List components_; + + /** + * + * + *
+   * Optional. The application template components.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedComponent components = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getComponentsList() { + return components_; + } + + /** + * + * + *
+   * Optional. The application template components.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedComponent components = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getComponentsOrBuilderList() { + return components_; + } + + /** + * + * + *
+   * Optional. The application template components.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedComponent components = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getComponentsCount() { + return components_.size(); + } + + /** + * + * + *
+   * Optional. The application template components.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedComponent components = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.SerializedComponent getComponents(int index) { + return components_.get(index); + } + + /** + * + * + *
+   * Optional. The application template components.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedComponent components = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.SerializedComponentOrBuilder getComponentsOrBuilder( + int index) { + return components_.get(index); + } + + public static final int APPHUB_APPLICATION_PARAMETERS_FIELD_NUMBER = 10; + private com.google.cloud.designcenter.v1.AppHubApplicationParameters apphubApplicationParameters_; + + /** + * + * + *
+   * Optional. The App Hub application parameters.
+   * 
+ * + * + * .google.cloud.designcenter.v1.AppHubApplicationParameters apphub_application_parameters = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the apphubApplicationParameters field is set. + */ + @java.lang.Override + public boolean hasApphubApplicationParameters() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. The App Hub application parameters.
+   * 
+ * + * + * .google.cloud.designcenter.v1.AppHubApplicationParameters apphub_application_parameters = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The apphubApplicationParameters. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.AppHubApplicationParameters + getApphubApplicationParameters() { + return apphubApplicationParameters_ == null + ? com.google.cloud.designcenter.v1.AppHubApplicationParameters.getDefaultInstance() + : apphubApplicationParameters_; + } + + /** + * + * + *
+   * Optional. The App Hub application parameters.
+   * 
+ * + * + * .google.cloud.designcenter.v1.AppHubApplicationParameters apphub_application_parameters = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.AppHubApplicationParametersOrBuilder + getApphubApplicationParametersOrBuilder() { + return apphubApplicationParameters_ == null + ? com.google.cloud.designcenter.v1.AppHubApplicationParameters.getDefaultInstance() + : apphubApplicationParameters_; + } + + public static final int HAS_GLOBAL_RESOURCE_FIELD_NUMBER = 11; + private boolean hasGlobalResource_ = false; + + /** + * + * + *
+   * Output only. Whether the application template is compatible with regional
+   * scope.
+   * 
+ * + * bool has_global_resource = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The hasGlobalResource. + */ + @java.lang.Override + public boolean getHasGlobalResource() { + return hasGlobalResource_; + } + + public static final int COMPOSITION_TYPE_FIELD_NUMBER = 12; + private int compositionType_ = 0; + + /** + * + * + *
+   * Output only. The composition type of the applicationTemplate: STANDARD OR
+   * COMPOSITE.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationCompositionType composition_type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for compositionType. + */ + @java.lang.Override + public int getCompositionTypeValue() { + return compositionType_; + } + + /** + * + * + *
+   * Output only. The composition type of the applicationTemplate: STANDARD OR
+   * COMPOSITE.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationCompositionType composition_type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The compositionType. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ApplicationCompositionType getCompositionType() { + com.google.cloud.designcenter.v1.ApplicationCompositionType result = + com.google.cloud.designcenter.v1.ApplicationCompositionType.forNumber(compositionType_); + return result == null + ? com.google.cloud.designcenter.v1.ApplicationCompositionType.UNRECOGNIZED + : result; + } + + public static final int ROOT_INPUT_VARIABLES_FIELD_NUMBER = 13; + + @SuppressWarnings("serial") + private java.util.List rootInputVariables_; + + /** + * + * + *
+   * Output only. Root level input variables of the application template.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_input_variables = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getRootInputVariablesList() { + return rootInputVariables_; + } + + /** + * + * + *
+   * Output only. Root level input variables of the application template.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_input_variables = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getRootInputVariablesOrBuilderList() { + return rootInputVariables_; + } + + /** + * + * + *
+   * Output only. Root level input variables of the application template.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_input_variables = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getRootInputVariablesCount() { + return rootInputVariables_.size(); + } + + /** + * + * + *
+   * Output only. Root level input variables of the application template.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_input_variables = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ComponentVariable getRootInputVariables(int index) { + return rootInputVariables_.get(index); + } + + /** + * + * + *
+   * Output only. Root level input variables of the application template.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_input_variables = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ComponentVariableOrBuilder getRootInputVariablesOrBuilder( + int index) { + return rootInputVariables_.get(index); + } + + public static final int ROOT_OUTPUT_VARIABLES_FIELD_NUMBER = 14; + + @SuppressWarnings("serial") + private java.util.List rootOutputVariables_; + + /** + * + * + *
+   * Output only. Root level output variables of the application template.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_output_variables = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getRootOutputVariablesList() { + return rootOutputVariables_; + } + + /** + * + * + *
+   * Output only. Root level output variables of the application template.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_output_variables = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getRootOutputVariablesOrBuilderList() { + return rootOutputVariables_; + } + + /** + * + * + *
+   * Output only. Root level output variables of the application template.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_output_variables = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getRootOutputVariablesCount() { + return rootOutputVariables_.size(); + } + + /** + * + * + *
+   * Output only. Root level output variables of the application template.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_output_variables = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ComponentVariable getRootOutputVariables(int index) { + return rootOutputVariables_.get(index); + } + + /** + * + * + *
+   * Output only. Root level output variables of the application template.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_output_variables = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ComponentVariableOrBuilder + getRootOutputVariablesOrBuilder(int index) { + return rootOutputVariables_.get(index); + } + + public static final int SAAS_RUNTIME_CONTEXT_FIELD_NUMBER = 15; + private com.google.cloud.designcenter.v1.SaaSRuntimeContext saasRuntimeContext_; + + /** + * + * + *
+   * Optional. SaaS runtime context for the application template.
+   * 
+ * + * + * .google.cloud.designcenter.v1.SaaSRuntimeContext saas_runtime_context = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the saasRuntimeContext field is set. + */ + @java.lang.Override + public boolean hasSaasRuntimeContext() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. SaaS runtime context for the application template.
+   * 
+ * + * + * .google.cloud.designcenter.v1.SaaSRuntimeContext saas_runtime_context = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The saasRuntimeContext. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.SaaSRuntimeContext getSaasRuntimeContext() { + return saasRuntimeContext_ == null + ? com.google.cloud.designcenter.v1.SaaSRuntimeContext.getDefaultInstance() + : saasRuntimeContext_; + } + + /** + * + * + *
+   * Optional. SaaS runtime context for the application template.
+   * 
+ * + * + * .google.cloud.designcenter.v1.SaaSRuntimeContext saas_runtime_context = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.SaaSRuntimeContextOrBuilder + getSaasRuntimeContextOrBuilder() { + return saasRuntimeContext_ == null + ? com.google.cloud.designcenter.v1.SaaSRuntimeContext.getDefaultInstance() + : saasRuntimeContext_; + } + + public static final int SERIALIZED_POLICIES_FIELD_NUMBER = 16; + + @SuppressWarnings("serial") + private java.util.List serializedPolicies_; + + /** + * + * + *
+   * Output only. Policies of the application template.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedPolicy serialized_policies = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getSerializedPoliciesList() { + return serializedPolicies_; + } + + /** + * + * + *
+   * Output only. Policies of the application template.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedPolicy serialized_policies = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getSerializedPoliciesOrBuilderList() { + return serializedPolicies_; + } + + /** + * + * + *
+   * Output only. Policies of the application template.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedPolicy serialized_policies = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getSerializedPoliciesCount() { + return serializedPolicies_.size(); + } + + /** + * + * + *
+   * Output only. Policies of the application template.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedPolicy serialized_policies = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.SerializedPolicy getSerializedPolicies(int index) { + return serializedPolicies_.get(index); + } + + /** + * + * + *
+   * Output only. Policies of the application template.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedPolicy serialized_policies = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.SerializedPolicyOrBuilder getSerializedPoliciesOrBuilder( + int index) { + return serializedPolicies_.get(index); + } + + public static final int PROVIDERS_FIELD_NUMBER = 17; + + @SuppressWarnings("serial") + private java.util.List providers_; + + /** + * + * + *
+   * Optional. Custom provider configurations imported from IaC.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedProvider providers = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getProvidersList() { + return providers_; + } + + /** + * + * + *
+   * Optional. Custom provider configurations imported from IaC.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedProvider providers = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getProvidersOrBuilderList() { + return providers_; + } + + /** + * + * + *
+   * Optional. Custom provider configurations imported from IaC.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedProvider providers = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getProvidersCount() { + return providers_.size(); + } + + /** + * + * + *
+   * Optional. Custom provider configurations imported from IaC.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedProvider providers = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.SerializedProvider getProviders(int index) { + return providers_.get(index); + } + + /** + * + * + *
+   * Optional. Custom provider configurations imported from IaC.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedProvider providers = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.SerializedProviderOrBuilder getProvidersOrBuilder( + int index) { + return providers_.get(index); + } + + public static final int CUSTOM_VARIABLES_FIELD_NUMBER = 18; + + @SuppressWarnings("serial") + private java.util.List customVariables_; + + /** + * + * + *
+   * Optional. Custom variables imported from variables.tf.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInput custom_variables = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getCustomVariablesList() { + return customVariables_; + } + + /** + * + * + *
+   * Optional. Custom variables imported from variables.tf.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInput custom_variables = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getCustomVariablesOrBuilderList() { + return customVariables_; + } + + /** + * + * + *
+   * Optional. Custom variables imported from variables.tf.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInput custom_variables = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getCustomVariablesCount() { + return customVariables_.size(); + } + + /** + * + * + *
+   * Optional. Custom variables imported from variables.tf.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInput custom_variables = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformInput getCustomVariables(int index) { + return customVariables_.get(index); + } + + /** + * + * + *
+   * Optional. Custom variables imported from variables.tf.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInput custom_variables = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformInputOrBuilder getCustomVariablesOrBuilder( + int index) { + return customVariables_.get(index); + } + + public static final int CUSTOM_TFVARS_FIELD_NUMBER = 19; + + @SuppressWarnings("serial") + private java.util.List customTfvars_; + + /** + * + * + *
+   * Optional. Custom variable values imported from terraform.tfvars.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter custom_tfvars = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getCustomTfvarsList() { + return customTfvars_; + } + + /** + * + * + *
+   * Optional. Custom variable values imported from terraform.tfvars.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter custom_tfvars = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getCustomTfvarsOrBuilderList() { + return customTfvars_; + } + + /** + * + * + *
+   * Optional. Custom variable values imported from terraform.tfvars.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter custom_tfvars = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getCustomTfvarsCount() { + return customTfvars_.size(); + } + + /** + * + * + *
+   * Optional. Custom variable values imported from terraform.tfvars.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter custom_tfvars = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.Parameter getCustomTfvars(int index) { + return customTfvars_.get(index); + } + + /** + * + * + *
+   * Optional. Custom variable values imported from terraform.tfvars.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter custom_tfvars = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ParameterOrBuilder getCustomTfvarsOrBuilder(int index) { + return customTfvars_.get(index); + } + + public static final int INPUTS_AS_ROOT_MODULE_VARIABLES_FIELD_NUMBER = 20; + private boolean inputsAsRootModuleVariables_ = false; + + /** + * + * + *
+   * Optional. If true, exposes all inputs as root module variables.
+   * This is only supported for STANDARD composition type templates.
+   * 
+ * + * bool inputs_as_root_module_variables = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The inputsAsRootModuleVariables. + */ + @java.lang.Override + public boolean getInputsAsRootModuleVariables() { + return inputsAsRootModuleVariables_; + } + + 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.GeneratedMessage.isStringEmpty(uri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, uri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, description_); + } + for (int i = 0; i < applicationParameters_.size(); i++) { + output.writeMessage(4, applicationParameters_.get(i)); + } + if (iacFormat_ + != com.google.cloud.designcenter.v1.ApplicationTemplate.IACFormat.IAC_FORMAT_UNSPECIFIED + .getNumber()) { + output.writeEnum(7, iacFormat_); + } + for (int i = 0; i < components_.size(); i++) { + output.writeMessage(8, components_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(10, getApphubApplicationParameters()); + } + if (hasGlobalResource_ != false) { + output.writeBool(11, hasGlobalResource_); + } + if (compositionType_ + != com.google.cloud.designcenter.v1.ApplicationCompositionType + .APPLICATION_COMPOSITION_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(12, compositionType_); + } + for (int i = 0; i < rootInputVariables_.size(); i++) { + output.writeMessage(13, rootInputVariables_.get(i)); + } + for (int i = 0; i < rootOutputVariables_.size(); i++) { + output.writeMessage(14, rootOutputVariables_.get(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(15, getSaasRuntimeContext()); + } + for (int i = 0; i < serializedPolicies_.size(); i++) { + output.writeMessage(16, serializedPolicies_.get(i)); + } + for (int i = 0; i < providers_.size(); i++) { + output.writeMessage(17, providers_.get(i)); + } + for (int i = 0; i < customVariables_.size(); i++) { + output.writeMessage(18, customVariables_.get(i)); + } + for (int i = 0; i < customTfvars_.size(); i++) { + output.writeMessage(19, customTfvars_.get(i)); + } + if (inputsAsRootModuleVariables_ != false) { + output.writeBool(20, inputsAsRootModuleVariables_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, uri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, description_); + } + for (int i = 0; i < applicationParameters_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, applicationParameters_.get(i)); + } + if (iacFormat_ + != com.google.cloud.designcenter.v1.ApplicationTemplate.IACFormat.IAC_FORMAT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, iacFormat_); + } + for (int i = 0; i < components_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, components_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10, getApphubApplicationParameters()); + } + if (hasGlobalResource_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(11, hasGlobalResource_); + } + if (compositionType_ + != com.google.cloud.designcenter.v1.ApplicationCompositionType + .APPLICATION_COMPOSITION_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, compositionType_); + } + for (int i = 0; i < rootInputVariables_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(13, rootInputVariables_.get(i)); + } + for (int i = 0; i < rootOutputVariables_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(14, rootOutputVariables_.get(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getSaasRuntimeContext()); + } + for (int i = 0; i < serializedPolicies_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(16, serializedPolicies_.get(i)); + } + for (int i = 0; i < providers_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, providers_.get(i)); + } + for (int i = 0; i < customVariables_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, customVariables_.get(i)); + } + for (int i = 0; i < customTfvars_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, customTfvars_.get(i)); + } + if (inputsAsRootModuleVariables_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(20, inputsAsRootModuleVariables_); + } + 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.designcenter.v1.SerializedApplicationTemplate)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.SerializedApplicationTemplate other = + (com.google.cloud.designcenter.v1.SerializedApplicationTemplate) obj; + + if (!getUri().equals(other.getUri())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getApplicationParametersList().equals(other.getApplicationParametersList())) return false; + if (iacFormat_ != other.iacFormat_) return false; + if (!getComponentsList().equals(other.getComponentsList())) return false; + if (hasApphubApplicationParameters() != other.hasApphubApplicationParameters()) return false; + if (hasApphubApplicationParameters()) { + if (!getApphubApplicationParameters().equals(other.getApphubApplicationParameters())) + return false; + } + if (getHasGlobalResource() != other.getHasGlobalResource()) return false; + if (compositionType_ != other.compositionType_) return false; + if (!getRootInputVariablesList().equals(other.getRootInputVariablesList())) return false; + if (!getRootOutputVariablesList().equals(other.getRootOutputVariablesList())) return false; + if (hasSaasRuntimeContext() != other.hasSaasRuntimeContext()) return false; + if (hasSaasRuntimeContext()) { + if (!getSaasRuntimeContext().equals(other.getSaasRuntimeContext())) return false; + } + if (!getSerializedPoliciesList().equals(other.getSerializedPoliciesList())) return false; + if (!getProvidersList().equals(other.getProvidersList())) return false; + if (!getCustomVariablesList().equals(other.getCustomVariablesList())) return false; + if (!getCustomTfvarsList().equals(other.getCustomTfvarsList())) return false; + if (getInputsAsRootModuleVariables() != other.getInputsAsRootModuleVariables()) 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) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (getApplicationParametersCount() > 0) { + hash = (37 * hash) + APPLICATION_PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getApplicationParametersList().hashCode(); + } + hash = (37 * hash) + IAC_FORMAT_FIELD_NUMBER; + hash = (53 * hash) + iacFormat_; + if (getComponentsCount() > 0) { + hash = (37 * hash) + COMPONENTS_FIELD_NUMBER; + hash = (53 * hash) + getComponentsList().hashCode(); + } + if (hasApphubApplicationParameters()) { + hash = (37 * hash) + APPHUB_APPLICATION_PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getApphubApplicationParameters().hashCode(); + } + hash = (37 * hash) + HAS_GLOBAL_RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getHasGlobalResource()); + hash = (37 * hash) + COMPOSITION_TYPE_FIELD_NUMBER; + hash = (53 * hash) + compositionType_; + if (getRootInputVariablesCount() > 0) { + hash = (37 * hash) + ROOT_INPUT_VARIABLES_FIELD_NUMBER; + hash = (53 * hash) + getRootInputVariablesList().hashCode(); + } + if (getRootOutputVariablesCount() > 0) { + hash = (37 * hash) + ROOT_OUTPUT_VARIABLES_FIELD_NUMBER; + hash = (53 * hash) + getRootOutputVariablesList().hashCode(); + } + if (hasSaasRuntimeContext()) { + hash = (37 * hash) + SAAS_RUNTIME_CONTEXT_FIELD_NUMBER; + hash = (53 * hash) + getSaasRuntimeContext().hashCode(); + } + if (getSerializedPoliciesCount() > 0) { + hash = (37 * hash) + SERIALIZED_POLICIES_FIELD_NUMBER; + hash = (53 * hash) + getSerializedPoliciesList().hashCode(); + } + if (getProvidersCount() > 0) { + hash = (37 * hash) + PROVIDERS_FIELD_NUMBER; + hash = (53 * hash) + getProvidersList().hashCode(); + } + if (getCustomVariablesCount() > 0) { + hash = (37 * hash) + CUSTOM_VARIABLES_FIELD_NUMBER; + hash = (53 * hash) + getCustomVariablesList().hashCode(); + } + if (getCustomTfvarsCount() > 0) { + hash = (37 * hash) + CUSTOM_TFVARS_FIELD_NUMBER; + hash = (53 * hash) + getCustomTfvarsList().hashCode(); + } + hash = (37 * hash) + INPUTS_AS_ROOT_MODULE_VARIABLES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getInputsAsRootModuleVariables()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.SerializedApplicationTemplate parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.SerializedApplicationTemplate 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.designcenter.v1.SerializedApplicationTemplate parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.SerializedApplicationTemplate parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.SerializedApplicationTemplate parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.SerializedApplicationTemplate parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.SerializedApplicationTemplate parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.SerializedApplicationTemplate parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.SerializedApplicationTemplate parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.SerializedApplicationTemplate parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.SerializedApplicationTemplate parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.SerializedApplicationTemplate parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.SerializedApplicationTemplate 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Serialized application template.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.SerializedApplicationTemplate} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.SerializedApplicationTemplate) + com.google.cloud.designcenter.v1.SerializedApplicationTemplateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringResourcesProto + .internal_static_google_cloud_designcenter_v1_SerializedApplicationTemplate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringResourcesProto + .internal_static_google_cloud_designcenter_v1_SerializedApplicationTemplate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.SerializedApplicationTemplate.class, + com.google.cloud.designcenter.v1.SerializedApplicationTemplate.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.SerializedApplicationTemplate.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetApplicationParametersFieldBuilder(); + internalGetComponentsFieldBuilder(); + internalGetApphubApplicationParametersFieldBuilder(); + internalGetRootInputVariablesFieldBuilder(); + internalGetRootOutputVariablesFieldBuilder(); + internalGetSaasRuntimeContextFieldBuilder(); + internalGetSerializedPoliciesFieldBuilder(); + internalGetProvidersFieldBuilder(); + internalGetCustomVariablesFieldBuilder(); + internalGetCustomTfvarsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + uri_ = ""; + displayName_ = ""; + description_ = ""; + if (applicationParametersBuilder_ == null) { + applicationParameters_ = java.util.Collections.emptyList(); + } else { + applicationParameters_ = null; + applicationParametersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + iacFormat_ = 0; + if (componentsBuilder_ == null) { + components_ = java.util.Collections.emptyList(); + } else { + components_ = null; + componentsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + apphubApplicationParameters_ = null; + if (apphubApplicationParametersBuilder_ != null) { + apphubApplicationParametersBuilder_.dispose(); + apphubApplicationParametersBuilder_ = null; + } + hasGlobalResource_ = false; + compositionType_ = 0; + if (rootInputVariablesBuilder_ == null) { + rootInputVariables_ = java.util.Collections.emptyList(); + } else { + rootInputVariables_ = null; + rootInputVariablesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000200); + if (rootOutputVariablesBuilder_ == null) { + rootOutputVariables_ = java.util.Collections.emptyList(); + } else { + rootOutputVariables_ = null; + rootOutputVariablesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000400); + saasRuntimeContext_ = null; + if (saasRuntimeContextBuilder_ != null) { + saasRuntimeContextBuilder_.dispose(); + saasRuntimeContextBuilder_ = null; + } + if (serializedPoliciesBuilder_ == null) { + serializedPolicies_ = java.util.Collections.emptyList(); + } else { + serializedPolicies_ = null; + serializedPoliciesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00001000); + if (providersBuilder_ == null) { + providers_ = java.util.Collections.emptyList(); + } else { + providers_ = null; + providersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00002000); + if (customVariablesBuilder_ == null) { + customVariables_ = java.util.Collections.emptyList(); + } else { + customVariables_ = null; + customVariablesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00004000); + if (customTfvarsBuilder_ == null) { + customTfvars_ = java.util.Collections.emptyList(); + } else { + customTfvars_ = null; + customTfvarsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00008000); + inputsAsRootModuleVariables_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.AuthoringResourcesProto + .internal_static_google_cloud_designcenter_v1_SerializedApplicationTemplate_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.SerializedApplicationTemplate + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.SerializedApplicationTemplate.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.SerializedApplicationTemplate build() { + com.google.cloud.designcenter.v1.SerializedApplicationTemplate result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.SerializedApplicationTemplate buildPartial() { + com.google.cloud.designcenter.v1.SerializedApplicationTemplate result = + new com.google.cloud.designcenter.v1.SerializedApplicationTemplate(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.designcenter.v1.SerializedApplicationTemplate result) { + if (applicationParametersBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + applicationParameters_ = java.util.Collections.unmodifiableList(applicationParameters_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.applicationParameters_ = applicationParameters_; + } else { + result.applicationParameters_ = applicationParametersBuilder_.build(); + } + if (componentsBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + components_ = java.util.Collections.unmodifiableList(components_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.components_ = components_; + } else { + result.components_ = componentsBuilder_.build(); + } + if (rootInputVariablesBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0)) { + rootInputVariables_ = java.util.Collections.unmodifiableList(rootInputVariables_); + bitField0_ = (bitField0_ & ~0x00000200); + } + result.rootInputVariables_ = rootInputVariables_; + } else { + result.rootInputVariables_ = rootInputVariablesBuilder_.build(); + } + if (rootOutputVariablesBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0)) { + rootOutputVariables_ = java.util.Collections.unmodifiableList(rootOutputVariables_); + bitField0_ = (bitField0_ & ~0x00000400); + } + result.rootOutputVariables_ = rootOutputVariables_; + } else { + result.rootOutputVariables_ = rootOutputVariablesBuilder_.build(); + } + if (serializedPoliciesBuilder_ == null) { + if (((bitField0_ & 0x00001000) != 0)) { + serializedPolicies_ = java.util.Collections.unmodifiableList(serializedPolicies_); + bitField0_ = (bitField0_ & ~0x00001000); + } + result.serializedPolicies_ = serializedPolicies_; + } else { + result.serializedPolicies_ = serializedPoliciesBuilder_.build(); + } + if (providersBuilder_ == null) { + if (((bitField0_ & 0x00002000) != 0)) { + providers_ = java.util.Collections.unmodifiableList(providers_); + bitField0_ = (bitField0_ & ~0x00002000); + } + result.providers_ = providers_; + } else { + result.providers_ = providersBuilder_.build(); + } + if (customVariablesBuilder_ == null) { + if (((bitField0_ & 0x00004000) != 0)) { + customVariables_ = java.util.Collections.unmodifiableList(customVariables_); + bitField0_ = (bitField0_ & ~0x00004000); + } + result.customVariables_ = customVariables_; + } else { + result.customVariables_ = customVariablesBuilder_.build(); + } + if (customTfvarsBuilder_ == null) { + if (((bitField0_ & 0x00008000) != 0)) { + customTfvars_ = java.util.Collections.unmodifiableList(customTfvars_); + bitField0_ = (bitField0_ & ~0x00008000); + } + result.customTfvars_ = customTfvars_; + } else { + result.customTfvars_ = customTfvarsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.SerializedApplicationTemplate result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.uri_ = uri_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.iacFormat_ = iacFormat_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000040) != 0)) { + result.apphubApplicationParameters_ = + apphubApplicationParametersBuilder_ == null + ? apphubApplicationParameters_ + : apphubApplicationParametersBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.hasGlobalResource_ = hasGlobalResource_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.compositionType_ = compositionType_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.saasRuntimeContext_ = + saasRuntimeContextBuilder_ == null + ? saasRuntimeContext_ + : saasRuntimeContextBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.inputsAsRootModuleVariables_ = inputsAsRootModuleVariables_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.SerializedApplicationTemplate) { + return mergeFrom((com.google.cloud.designcenter.v1.SerializedApplicationTemplate) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.SerializedApplicationTemplate other) { + if (other + == com.google.cloud.designcenter.v1.SerializedApplicationTemplate.getDefaultInstance()) + return this; + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (applicationParametersBuilder_ == null) { + if (!other.applicationParameters_.isEmpty()) { + if (applicationParameters_.isEmpty()) { + applicationParameters_ = other.applicationParameters_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureApplicationParametersIsMutable(); + applicationParameters_.addAll(other.applicationParameters_); + } + onChanged(); + } + } else { + if (!other.applicationParameters_.isEmpty()) { + if (applicationParametersBuilder_.isEmpty()) { + applicationParametersBuilder_.dispose(); + applicationParametersBuilder_ = null; + applicationParameters_ = other.applicationParameters_; + bitField0_ = (bitField0_ & ~0x00000008); + applicationParametersBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetApplicationParametersFieldBuilder() + : null; + } else { + applicationParametersBuilder_.addAllMessages(other.applicationParameters_); + } + } + } + if (other.iacFormat_ != 0) { + setIacFormatValue(other.getIacFormatValue()); + } + if (componentsBuilder_ == null) { + if (!other.components_.isEmpty()) { + if (components_.isEmpty()) { + components_ = other.components_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureComponentsIsMutable(); + components_.addAll(other.components_); + } + onChanged(); + } + } else { + if (!other.components_.isEmpty()) { + if (componentsBuilder_.isEmpty()) { + componentsBuilder_.dispose(); + componentsBuilder_ = null; + components_ = other.components_; + bitField0_ = (bitField0_ & ~0x00000020); + componentsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetComponentsFieldBuilder() + : null; + } else { + componentsBuilder_.addAllMessages(other.components_); + } + } + } + if (other.hasApphubApplicationParameters()) { + mergeApphubApplicationParameters(other.getApphubApplicationParameters()); + } + if (other.getHasGlobalResource() != false) { + setHasGlobalResource(other.getHasGlobalResource()); + } + if (other.compositionType_ != 0) { + setCompositionTypeValue(other.getCompositionTypeValue()); + } + if (rootInputVariablesBuilder_ == null) { + if (!other.rootInputVariables_.isEmpty()) { + if (rootInputVariables_.isEmpty()) { + rootInputVariables_ = other.rootInputVariables_; + bitField0_ = (bitField0_ & ~0x00000200); + } else { + ensureRootInputVariablesIsMutable(); + rootInputVariables_.addAll(other.rootInputVariables_); + } + onChanged(); + } + } else { + if (!other.rootInputVariables_.isEmpty()) { + if (rootInputVariablesBuilder_.isEmpty()) { + rootInputVariablesBuilder_.dispose(); + rootInputVariablesBuilder_ = null; + rootInputVariables_ = other.rootInputVariables_; + bitField0_ = (bitField0_ & ~0x00000200); + rootInputVariablesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetRootInputVariablesFieldBuilder() + : null; + } else { + rootInputVariablesBuilder_.addAllMessages(other.rootInputVariables_); + } + } + } + if (rootOutputVariablesBuilder_ == null) { + if (!other.rootOutputVariables_.isEmpty()) { + if (rootOutputVariables_.isEmpty()) { + rootOutputVariables_ = other.rootOutputVariables_; + bitField0_ = (bitField0_ & ~0x00000400); + } else { + ensureRootOutputVariablesIsMutable(); + rootOutputVariables_.addAll(other.rootOutputVariables_); + } + onChanged(); + } + } else { + if (!other.rootOutputVariables_.isEmpty()) { + if (rootOutputVariablesBuilder_.isEmpty()) { + rootOutputVariablesBuilder_.dispose(); + rootOutputVariablesBuilder_ = null; + rootOutputVariables_ = other.rootOutputVariables_; + bitField0_ = (bitField0_ & ~0x00000400); + rootOutputVariablesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetRootOutputVariablesFieldBuilder() + : null; + } else { + rootOutputVariablesBuilder_.addAllMessages(other.rootOutputVariables_); + } + } + } + if (other.hasSaasRuntimeContext()) { + mergeSaasRuntimeContext(other.getSaasRuntimeContext()); + } + if (serializedPoliciesBuilder_ == null) { + if (!other.serializedPolicies_.isEmpty()) { + if (serializedPolicies_.isEmpty()) { + serializedPolicies_ = other.serializedPolicies_; + bitField0_ = (bitField0_ & ~0x00001000); + } else { + ensureSerializedPoliciesIsMutable(); + serializedPolicies_.addAll(other.serializedPolicies_); + } + onChanged(); + } + } else { + if (!other.serializedPolicies_.isEmpty()) { + if (serializedPoliciesBuilder_.isEmpty()) { + serializedPoliciesBuilder_.dispose(); + serializedPoliciesBuilder_ = null; + serializedPolicies_ = other.serializedPolicies_; + bitField0_ = (bitField0_ & ~0x00001000); + serializedPoliciesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetSerializedPoliciesFieldBuilder() + : null; + } else { + serializedPoliciesBuilder_.addAllMessages(other.serializedPolicies_); + } + } + } + if (providersBuilder_ == null) { + if (!other.providers_.isEmpty()) { + if (providers_.isEmpty()) { + providers_ = other.providers_; + bitField0_ = (bitField0_ & ~0x00002000); + } else { + ensureProvidersIsMutable(); + providers_.addAll(other.providers_); + } + onChanged(); + } + } else { + if (!other.providers_.isEmpty()) { + if (providersBuilder_.isEmpty()) { + providersBuilder_.dispose(); + providersBuilder_ = null; + providers_ = other.providers_; + bitField0_ = (bitField0_ & ~0x00002000); + providersBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetProvidersFieldBuilder() + : null; + } else { + providersBuilder_.addAllMessages(other.providers_); + } + } + } + if (customVariablesBuilder_ == null) { + if (!other.customVariables_.isEmpty()) { + if (customVariables_.isEmpty()) { + customVariables_ = other.customVariables_; + bitField0_ = (bitField0_ & ~0x00004000); + } else { + ensureCustomVariablesIsMutable(); + customVariables_.addAll(other.customVariables_); + } + onChanged(); + } + } else { + if (!other.customVariables_.isEmpty()) { + if (customVariablesBuilder_.isEmpty()) { + customVariablesBuilder_.dispose(); + customVariablesBuilder_ = null; + customVariables_ = other.customVariables_; + bitField0_ = (bitField0_ & ~0x00004000); + customVariablesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetCustomVariablesFieldBuilder() + : null; + } else { + customVariablesBuilder_.addAllMessages(other.customVariables_); + } + } + } + if (customTfvarsBuilder_ == null) { + if (!other.customTfvars_.isEmpty()) { + if (customTfvars_.isEmpty()) { + customTfvars_ = other.customTfvars_; + bitField0_ = (bitField0_ & ~0x00008000); + } else { + ensureCustomTfvarsIsMutable(); + customTfvars_.addAll(other.customTfvars_); + } + onChanged(); + } + } else { + if (!other.customTfvars_.isEmpty()) { + if (customTfvarsBuilder_.isEmpty()) { + customTfvarsBuilder_.dispose(); + customTfvarsBuilder_ = null; + customTfvars_ = other.customTfvars_; + bitField0_ = (bitField0_ & ~0x00008000); + customTfvarsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetCustomTfvarsFieldBuilder() + : null; + } else { + customTfvarsBuilder_.addAllMessages(other.customTfvars_); + } + } + } + if (other.getInputsAsRootModuleVariables() != false) { + setInputsAsRootModuleVariables(other.getInputsAsRootModuleVariables()); + } + 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: + { + uri_ = 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 34: + { + com.google.cloud.designcenter.v1.Parameter m = + input.readMessage( + com.google.cloud.designcenter.v1.Parameter.parser(), extensionRegistry); + if (applicationParametersBuilder_ == null) { + ensureApplicationParametersIsMutable(); + applicationParameters_.add(m); + } else { + applicationParametersBuilder_.addMessage(m); + } + break; + } // case 34 + case 56: + { + iacFormat_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 56 + case 66: + { + com.google.cloud.designcenter.v1.SerializedComponent m = + input.readMessage( + com.google.cloud.designcenter.v1.SerializedComponent.parser(), + extensionRegistry); + if (componentsBuilder_ == null) { + ensureComponentsIsMutable(); + components_.add(m); + } else { + componentsBuilder_.addMessage(m); + } + break; + } // case 66 + case 82: + { + input.readMessage( + internalGetApphubApplicationParametersFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 82 + case 88: + { + hasGlobalResource_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 88 + case 96: + { + compositionType_ = input.readEnum(); + bitField0_ |= 0x00000100; + break; + } // case 96 + case 106: + { + com.google.cloud.designcenter.v1.ComponentVariable m = + input.readMessage( + com.google.cloud.designcenter.v1.ComponentVariable.parser(), + extensionRegistry); + if (rootInputVariablesBuilder_ == null) { + ensureRootInputVariablesIsMutable(); + rootInputVariables_.add(m); + } else { + rootInputVariablesBuilder_.addMessage(m); + } + break; + } // case 106 + case 114: + { + com.google.cloud.designcenter.v1.ComponentVariable m = + input.readMessage( + com.google.cloud.designcenter.v1.ComponentVariable.parser(), + extensionRegistry); + if (rootOutputVariablesBuilder_ == null) { + ensureRootOutputVariablesIsMutable(); + rootOutputVariables_.add(m); + } else { + rootOutputVariablesBuilder_.addMessage(m); + } + break; + } // case 114 + case 122: + { + input.readMessage( + internalGetSaasRuntimeContextFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 122 + case 130: + { + com.google.cloud.designcenter.v1.SerializedPolicy m = + input.readMessage( + com.google.cloud.designcenter.v1.SerializedPolicy.parser(), + extensionRegistry); + if (serializedPoliciesBuilder_ == null) { + ensureSerializedPoliciesIsMutable(); + serializedPolicies_.add(m); + } else { + serializedPoliciesBuilder_.addMessage(m); + } + break; + } // case 130 + case 138: + { + com.google.cloud.designcenter.v1.SerializedProvider m = + input.readMessage( + com.google.cloud.designcenter.v1.SerializedProvider.parser(), + extensionRegistry); + if (providersBuilder_ == null) { + ensureProvidersIsMutable(); + providers_.add(m); + } else { + providersBuilder_.addMessage(m); + } + break; + } // case 138 + case 146: + { + com.google.cloud.designcenter.v1.TerraformInput m = + input.readMessage( + com.google.cloud.designcenter.v1.TerraformInput.parser(), + extensionRegistry); + if (customVariablesBuilder_ == null) { + ensureCustomVariablesIsMutable(); + customVariables_.add(m); + } else { + customVariablesBuilder_.addMessage(m); + } + break; + } // case 146 + case 154: + { + com.google.cloud.designcenter.v1.Parameter m = + input.readMessage( + com.google.cloud.designcenter.v1.Parameter.parser(), extensionRegistry); + if (customTfvarsBuilder_ == null) { + ensureCustomTfvarsIsMutable(); + customTfvars_.add(m); + } else { + customTfvarsBuilder_.addMessage(m); + } + break; + } // case 154 + case 160: + { + inputsAsRootModuleVariables_ = input.readBool(); + bitField0_ |= 0x00010000; + break; + } // case 160 + default: + { + 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 uri_ = ""; + + /** + * + * + *
+     * Optional. The application template URI.
+     * 
+ * + * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The uri. + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The application template URI.
+     * 
+ * + * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for uri. + */ + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The application template URI.
+     * 
+ * + * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The uri to set. + * @return This builder for chaining. + */ + public Builder setUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The application template URI.
+     * 
+ * + * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearUri() { + uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The application template URI.
+     * 
+ * + * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for uri to set. + * @return This builder for chaining. + */ + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
+     * Optional. The application template display name.
+     * 
+ * + * string display_name = 2 [(.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. The application template display name.
+     * 
+ * + * string display_name = 2 [(.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. The application template display name.
+     * 
+ * + * string display_name = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The application template display name.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The application template display name.
+     * 
+ * + * string display_name = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
+     * Optional. The application template description.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The application template description.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The application template description.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The application template description.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The application template description.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.util.List applicationParameters_ = + java.util.Collections.emptyList(); + + private void ensureApplicationParametersIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + applicationParameters_ = + new java.util.ArrayList( + applicationParameters_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Parameter, + com.google.cloud.designcenter.v1.Parameter.Builder, + com.google.cloud.designcenter.v1.ParameterOrBuilder> + applicationParametersBuilder_; + + /** + * + * + *
+     * Optional. Parameters to apply to all components in the application
+     * template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getApplicationParametersList() { + if (applicationParametersBuilder_ == null) { + return java.util.Collections.unmodifiableList(applicationParameters_); + } else { + return applicationParametersBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. Parameters to apply to all components in the application
+     * template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getApplicationParametersCount() { + if (applicationParametersBuilder_ == null) { + return applicationParameters_.size(); + } else { + return applicationParametersBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. Parameters to apply to all components in the application
+     * template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter getApplicationParameters(int index) { + if (applicationParametersBuilder_ == null) { + return applicationParameters_.get(index); + } else { + return applicationParametersBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. Parameters to apply to all components in the application
+     * template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setApplicationParameters( + int index, com.google.cloud.designcenter.v1.Parameter value) { + if (applicationParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicationParametersIsMutable(); + applicationParameters_.set(index, value); + onChanged(); + } else { + applicationParametersBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Parameters to apply to all components in the application
+     * template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setApplicationParameters( + int index, com.google.cloud.designcenter.v1.Parameter.Builder builderForValue) { + if (applicationParametersBuilder_ == null) { + ensureApplicationParametersIsMutable(); + applicationParameters_.set(index, builderForValue.build()); + onChanged(); + } else { + applicationParametersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Parameters to apply to all components in the application
+     * template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addApplicationParameters(com.google.cloud.designcenter.v1.Parameter value) { + if (applicationParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicationParametersIsMutable(); + applicationParameters_.add(value); + onChanged(); + } else { + applicationParametersBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. Parameters to apply to all components in the application
+     * template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addApplicationParameters( + int index, com.google.cloud.designcenter.v1.Parameter value) { + if (applicationParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicationParametersIsMutable(); + applicationParameters_.add(index, value); + onChanged(); + } else { + applicationParametersBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Parameters to apply to all components in the application
+     * template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addApplicationParameters( + com.google.cloud.designcenter.v1.Parameter.Builder builderForValue) { + if (applicationParametersBuilder_ == null) { + ensureApplicationParametersIsMutable(); + applicationParameters_.add(builderForValue.build()); + onChanged(); + } else { + applicationParametersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Parameters to apply to all components in the application
+     * template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addApplicationParameters( + int index, com.google.cloud.designcenter.v1.Parameter.Builder builderForValue) { + if (applicationParametersBuilder_ == null) { + ensureApplicationParametersIsMutable(); + applicationParameters_.add(index, builderForValue.build()); + onChanged(); + } else { + applicationParametersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Parameters to apply to all components in the application
+     * template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllApplicationParameters( + java.lang.Iterable values) { + if (applicationParametersBuilder_ == null) { + ensureApplicationParametersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, applicationParameters_); + onChanged(); + } else { + applicationParametersBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. Parameters to apply to all components in the application
+     * template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearApplicationParameters() { + if (applicationParametersBuilder_ == null) { + applicationParameters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + applicationParametersBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Parameters to apply to all components in the application
+     * template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeApplicationParameters(int index) { + if (applicationParametersBuilder_ == null) { + ensureApplicationParametersIsMutable(); + applicationParameters_.remove(index); + onChanged(); + } else { + applicationParametersBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. Parameters to apply to all components in the application
+     * template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter.Builder getApplicationParametersBuilder( + int index) { + return internalGetApplicationParametersFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. Parameters to apply to all components in the application
+     * template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ParameterOrBuilder getApplicationParametersOrBuilder( + int index) { + if (applicationParametersBuilder_ == null) { + return applicationParameters_.get(index); + } else { + return applicationParametersBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. Parameters to apply to all components in the application
+     * template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getApplicationParametersOrBuilderList() { + if (applicationParametersBuilder_ != null) { + return applicationParametersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(applicationParameters_); + } + } + + /** + * + * + *
+     * Optional. Parameters to apply to all components in the application
+     * template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter.Builder addApplicationParametersBuilder() { + return internalGetApplicationParametersFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.Parameter.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Parameters to apply to all components in the application
+     * template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter.Builder addApplicationParametersBuilder( + int index) { + return internalGetApplicationParametersFieldBuilder() + .addBuilder(index, com.google.cloud.designcenter.v1.Parameter.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Parameters to apply to all components in the application
+     * template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getApplicationParametersBuilderList() { + return internalGetApplicationParametersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Parameter, + com.google.cloud.designcenter.v1.Parameter.Builder, + com.google.cloud.designcenter.v1.ParameterOrBuilder> + internalGetApplicationParametersFieldBuilder() { + if (applicationParametersBuilder_ == null) { + applicationParametersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Parameter, + com.google.cloud.designcenter.v1.Parameter.Builder, + com.google.cloud.designcenter.v1.ParameterOrBuilder>( + applicationParameters_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + applicationParameters_ = null; + } + return applicationParametersBuilder_; + } + + private int iacFormat_ = 0; + + /** + * + * + *
+     * Optional. The IaC format of the application template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationTemplate.IACFormat iac_format = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for iacFormat. + */ + @java.lang.Override + public int getIacFormatValue() { + return iacFormat_; + } + + /** + * + * + *
+     * Optional. The IaC format of the application template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationTemplate.IACFormat iac_format = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for iacFormat to set. + * @return This builder for chaining. + */ + public Builder setIacFormatValue(int value) { + iacFormat_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The IaC format of the application template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationTemplate.IACFormat iac_format = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The iacFormat. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ApplicationTemplate.IACFormat getIacFormat() { + com.google.cloud.designcenter.v1.ApplicationTemplate.IACFormat result = + com.google.cloud.designcenter.v1.ApplicationTemplate.IACFormat.forNumber(iacFormat_); + return result == null + ? com.google.cloud.designcenter.v1.ApplicationTemplate.IACFormat.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Optional. The IaC format of the application template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationTemplate.IACFormat iac_format = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The iacFormat to set. + * @return This builder for chaining. + */ + public Builder setIacFormat( + com.google.cloud.designcenter.v1.ApplicationTemplate.IACFormat value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + iacFormat_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The IaC format of the application template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationTemplate.IACFormat iac_format = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearIacFormat() { + bitField0_ = (bitField0_ & ~0x00000010); + iacFormat_ = 0; + onChanged(); + return this; + } + + private java.util.List components_ = + java.util.Collections.emptyList(); + + private void ensureComponentsIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + components_ = + new java.util.ArrayList( + components_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.SerializedComponent, + com.google.cloud.designcenter.v1.SerializedComponent.Builder, + com.google.cloud.designcenter.v1.SerializedComponentOrBuilder> + componentsBuilder_; + + /** + * + * + *
+     * Optional. The application template components.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedComponent components = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getComponentsList() { + if (componentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(components_); + } else { + return componentsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. The application template components.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedComponent components = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getComponentsCount() { + if (componentsBuilder_ == null) { + return components_.size(); + } else { + return componentsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. The application template components.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedComponent components = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.SerializedComponent getComponents(int index) { + if (componentsBuilder_ == null) { + return components_.get(index); + } else { + return componentsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. The application template components.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedComponent components = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setComponents( + int index, com.google.cloud.designcenter.v1.SerializedComponent value) { + if (componentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureComponentsIsMutable(); + components_.set(index, value); + onChanged(); + } else { + componentsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The application template components.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedComponent components = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setComponents( + int index, com.google.cloud.designcenter.v1.SerializedComponent.Builder builderForValue) { + if (componentsBuilder_ == null) { + ensureComponentsIsMutable(); + components_.set(index, builderForValue.build()); + onChanged(); + } else { + componentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The application template components.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedComponent components = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addComponents(com.google.cloud.designcenter.v1.SerializedComponent value) { + if (componentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureComponentsIsMutable(); + components_.add(value); + onChanged(); + } else { + componentsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. The application template components.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedComponent components = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addComponents( + int index, com.google.cloud.designcenter.v1.SerializedComponent value) { + if (componentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureComponentsIsMutable(); + components_.add(index, value); + onChanged(); + } else { + componentsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The application template components.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedComponent components = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addComponents( + com.google.cloud.designcenter.v1.SerializedComponent.Builder builderForValue) { + if (componentsBuilder_ == null) { + ensureComponentsIsMutable(); + components_.add(builderForValue.build()); + onChanged(); + } else { + componentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The application template components.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedComponent components = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addComponents( + int index, com.google.cloud.designcenter.v1.SerializedComponent.Builder builderForValue) { + if (componentsBuilder_ == null) { + ensureComponentsIsMutable(); + components_.add(index, builderForValue.build()); + onChanged(); + } else { + componentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The application template components.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedComponent components = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllComponents( + java.lang.Iterable values) { + if (componentsBuilder_ == null) { + ensureComponentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, components_); + onChanged(); + } else { + componentsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. The application template components.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedComponent components = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearComponents() { + if (componentsBuilder_ == null) { + components_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + componentsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. The application template components.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedComponent components = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeComponents(int index) { + if (componentsBuilder_ == null) { + ensureComponentsIsMutable(); + components_.remove(index); + onChanged(); + } else { + componentsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. The application template components.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedComponent components = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.SerializedComponent.Builder getComponentsBuilder( + int index) { + return internalGetComponentsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. The application template components.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedComponent components = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.SerializedComponentOrBuilder getComponentsOrBuilder( + int index) { + if (componentsBuilder_ == null) { + return components_.get(index); + } else { + return componentsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. The application template components.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedComponent components = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getComponentsOrBuilderList() { + if (componentsBuilder_ != null) { + return componentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(components_); + } + } + + /** + * + * + *
+     * Optional. The application template components.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedComponent components = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.SerializedComponent.Builder addComponentsBuilder() { + return internalGetComponentsFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.SerializedComponent.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The application template components.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedComponent components = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.SerializedComponent.Builder addComponentsBuilder( + int index) { + return internalGetComponentsFieldBuilder() + .addBuilder( + index, com.google.cloud.designcenter.v1.SerializedComponent.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The application template components.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedComponent components = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getComponentsBuilderList() { + return internalGetComponentsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.SerializedComponent, + com.google.cloud.designcenter.v1.SerializedComponent.Builder, + com.google.cloud.designcenter.v1.SerializedComponentOrBuilder> + internalGetComponentsFieldBuilder() { + if (componentsBuilder_ == null) { + componentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.SerializedComponent, + com.google.cloud.designcenter.v1.SerializedComponent.Builder, + com.google.cloud.designcenter.v1.SerializedComponentOrBuilder>( + components_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); + components_ = null; + } + return componentsBuilder_; + } + + private com.google.cloud.designcenter.v1.AppHubApplicationParameters + apphubApplicationParameters_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.AppHubApplicationParameters, + com.google.cloud.designcenter.v1.AppHubApplicationParameters.Builder, + com.google.cloud.designcenter.v1.AppHubApplicationParametersOrBuilder> + apphubApplicationParametersBuilder_; + + /** + * + * + *
+     * Optional. The App Hub application parameters.
+     * 
+ * + * + * .google.cloud.designcenter.v1.AppHubApplicationParameters apphub_application_parameters = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the apphubApplicationParameters field is set. + */ + public boolean hasApphubApplicationParameters() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+     * Optional. The App Hub application parameters.
+     * 
+ * + * + * .google.cloud.designcenter.v1.AppHubApplicationParameters apphub_application_parameters = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The apphubApplicationParameters. + */ + public com.google.cloud.designcenter.v1.AppHubApplicationParameters + getApphubApplicationParameters() { + if (apphubApplicationParametersBuilder_ == null) { + return apphubApplicationParameters_ == null + ? com.google.cloud.designcenter.v1.AppHubApplicationParameters.getDefaultInstance() + : apphubApplicationParameters_; + } else { + return apphubApplicationParametersBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The App Hub application parameters.
+     * 
+ * + * + * .google.cloud.designcenter.v1.AppHubApplicationParameters apphub_application_parameters = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setApphubApplicationParameters( + com.google.cloud.designcenter.v1.AppHubApplicationParameters value) { + if (apphubApplicationParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + apphubApplicationParameters_ = value; + } else { + apphubApplicationParametersBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The App Hub application parameters.
+     * 
+ * + * + * .google.cloud.designcenter.v1.AppHubApplicationParameters apphub_application_parameters = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setApphubApplicationParameters( + com.google.cloud.designcenter.v1.AppHubApplicationParameters.Builder builderForValue) { + if (apphubApplicationParametersBuilder_ == null) { + apphubApplicationParameters_ = builderForValue.build(); + } else { + apphubApplicationParametersBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The App Hub application parameters.
+     * 
+ * + * + * .google.cloud.designcenter.v1.AppHubApplicationParameters apphub_application_parameters = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeApphubApplicationParameters( + com.google.cloud.designcenter.v1.AppHubApplicationParameters value) { + if (apphubApplicationParametersBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && apphubApplicationParameters_ != null + && apphubApplicationParameters_ + != com.google.cloud.designcenter.v1.AppHubApplicationParameters + .getDefaultInstance()) { + getApphubApplicationParametersBuilder().mergeFrom(value); + } else { + apphubApplicationParameters_ = value; + } + } else { + apphubApplicationParametersBuilder_.mergeFrom(value); + } + if (apphubApplicationParameters_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The App Hub application parameters.
+     * 
+ * + * + * .google.cloud.designcenter.v1.AppHubApplicationParameters apphub_application_parameters = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearApphubApplicationParameters() { + bitField0_ = (bitField0_ & ~0x00000040); + apphubApplicationParameters_ = null; + if (apphubApplicationParametersBuilder_ != null) { + apphubApplicationParametersBuilder_.dispose(); + apphubApplicationParametersBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The App Hub application parameters.
+     * 
+ * + * + * .google.cloud.designcenter.v1.AppHubApplicationParameters apphub_application_parameters = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.AppHubApplicationParameters.Builder + getApphubApplicationParametersBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetApphubApplicationParametersFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The App Hub application parameters.
+     * 
+ * + * + * .google.cloud.designcenter.v1.AppHubApplicationParameters apphub_application_parameters = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.AppHubApplicationParametersOrBuilder + getApphubApplicationParametersOrBuilder() { + if (apphubApplicationParametersBuilder_ != null) { + return apphubApplicationParametersBuilder_.getMessageOrBuilder(); + } else { + return apphubApplicationParameters_ == null + ? com.google.cloud.designcenter.v1.AppHubApplicationParameters.getDefaultInstance() + : apphubApplicationParameters_; + } + } + + /** + * + * + *
+     * Optional. The App Hub application parameters.
+     * 
+ * + * + * .google.cloud.designcenter.v1.AppHubApplicationParameters apphub_application_parameters = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.AppHubApplicationParameters, + com.google.cloud.designcenter.v1.AppHubApplicationParameters.Builder, + com.google.cloud.designcenter.v1.AppHubApplicationParametersOrBuilder> + internalGetApphubApplicationParametersFieldBuilder() { + if (apphubApplicationParametersBuilder_ == null) { + apphubApplicationParametersBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.AppHubApplicationParameters, + com.google.cloud.designcenter.v1.AppHubApplicationParameters.Builder, + com.google.cloud.designcenter.v1.AppHubApplicationParametersOrBuilder>( + getApphubApplicationParameters(), getParentForChildren(), isClean()); + apphubApplicationParameters_ = null; + } + return apphubApplicationParametersBuilder_; + } + + private boolean hasGlobalResource_; + + /** + * + * + *
+     * Output only. Whether the application template is compatible with regional
+     * scope.
+     * 
+ * + * bool has_global_resource = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The hasGlobalResource. + */ + @java.lang.Override + public boolean getHasGlobalResource() { + return hasGlobalResource_; + } + + /** + * + * + *
+     * Output only. Whether the application template is compatible with regional
+     * scope.
+     * 
+ * + * bool has_global_resource = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The hasGlobalResource to set. + * @return This builder for chaining. + */ + public Builder setHasGlobalResource(boolean value) { + + hasGlobalResource_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Whether the application template is compatible with regional
+     * scope.
+     * 
+ * + * bool has_global_resource = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearHasGlobalResource() { + bitField0_ = (bitField0_ & ~0x00000080); + hasGlobalResource_ = false; + onChanged(); + return this; + } + + private int compositionType_ = 0; + + /** + * + * + *
+     * Output only. The composition type of the applicationTemplate: STANDARD OR
+     * COMPOSITE.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationCompositionType composition_type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for compositionType. + */ + @java.lang.Override + public int getCompositionTypeValue() { + return compositionType_; + } + + /** + * + * + *
+     * Output only. The composition type of the applicationTemplate: STANDARD OR
+     * COMPOSITE.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationCompositionType composition_type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for compositionType to set. + * @return This builder for chaining. + */ + public Builder setCompositionTypeValue(int value) { + compositionType_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The composition type of the applicationTemplate: STANDARD OR
+     * COMPOSITE.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationCompositionType composition_type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The compositionType. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ApplicationCompositionType getCompositionType() { + com.google.cloud.designcenter.v1.ApplicationCompositionType result = + com.google.cloud.designcenter.v1.ApplicationCompositionType.forNumber(compositionType_); + return result == null + ? com.google.cloud.designcenter.v1.ApplicationCompositionType.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Output only. The composition type of the applicationTemplate: STANDARD OR
+     * COMPOSITE.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationCompositionType composition_type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The compositionType to set. + * @return This builder for chaining. + */ + public Builder setCompositionType( + com.google.cloud.designcenter.v1.ApplicationCompositionType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000100; + compositionType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The composition type of the applicationTemplate: STANDARD OR
+     * COMPOSITE.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationCompositionType composition_type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearCompositionType() { + bitField0_ = (bitField0_ & ~0x00000100); + compositionType_ = 0; + onChanged(); + return this; + } + + private java.util.List rootInputVariables_ = + java.util.Collections.emptyList(); + + private void ensureRootInputVariablesIsMutable() { + if (!((bitField0_ & 0x00000200) != 0)) { + rootInputVariables_ = + new java.util.ArrayList( + rootInputVariables_); + bitField0_ |= 0x00000200; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ComponentVariable, + com.google.cloud.designcenter.v1.ComponentVariable.Builder, + com.google.cloud.designcenter.v1.ComponentVariableOrBuilder> + rootInputVariablesBuilder_; + + /** + * + * + *
+     * Output only. Root level input variables of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_input_variables = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getRootInputVariablesList() { + if (rootInputVariablesBuilder_ == null) { + return java.util.Collections.unmodifiableList(rootInputVariables_); + } else { + return rootInputVariablesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Output only. Root level input variables of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_input_variables = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getRootInputVariablesCount() { + if (rootInputVariablesBuilder_ == null) { + return rootInputVariables_.size(); + } else { + return rootInputVariablesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Output only. Root level input variables of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_input_variables = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ComponentVariable getRootInputVariables(int index) { + if (rootInputVariablesBuilder_ == null) { + return rootInputVariables_.get(index); + } else { + return rootInputVariablesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Output only. Root level input variables of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_input_variables = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setRootInputVariables( + int index, com.google.cloud.designcenter.v1.ComponentVariable value) { + if (rootInputVariablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRootInputVariablesIsMutable(); + rootInputVariables_.set(index, value); + onChanged(); + } else { + rootInputVariablesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. Root level input variables of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_input_variables = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setRootInputVariables( + int index, com.google.cloud.designcenter.v1.ComponentVariable.Builder builderForValue) { + if (rootInputVariablesBuilder_ == null) { + ensureRootInputVariablesIsMutable(); + rootInputVariables_.set(index, builderForValue.build()); + onChanged(); + } else { + rootInputVariablesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. Root level input variables of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_input_variables = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addRootInputVariables(com.google.cloud.designcenter.v1.ComponentVariable value) { + if (rootInputVariablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRootInputVariablesIsMutable(); + rootInputVariables_.add(value); + onChanged(); + } else { + rootInputVariablesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Output only. Root level input variables of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_input_variables = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addRootInputVariables( + int index, com.google.cloud.designcenter.v1.ComponentVariable value) { + if (rootInputVariablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRootInputVariablesIsMutable(); + rootInputVariables_.add(index, value); + onChanged(); + } else { + rootInputVariablesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. Root level input variables of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_input_variables = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addRootInputVariables( + com.google.cloud.designcenter.v1.ComponentVariable.Builder builderForValue) { + if (rootInputVariablesBuilder_ == null) { + ensureRootInputVariablesIsMutable(); + rootInputVariables_.add(builderForValue.build()); + onChanged(); + } else { + rootInputVariablesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. Root level input variables of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_input_variables = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addRootInputVariables( + int index, com.google.cloud.designcenter.v1.ComponentVariable.Builder builderForValue) { + if (rootInputVariablesBuilder_ == null) { + ensureRootInputVariablesIsMutable(); + rootInputVariables_.add(index, builderForValue.build()); + onChanged(); + } else { + rootInputVariablesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. Root level input variables of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_input_variables = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllRootInputVariables( + java.lang.Iterable values) { + if (rootInputVariablesBuilder_ == null) { + ensureRootInputVariablesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rootInputVariables_); + onChanged(); + } else { + rootInputVariablesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Output only. Root level input variables of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_input_variables = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearRootInputVariables() { + if (rootInputVariablesBuilder_ == null) { + rootInputVariables_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + } else { + rootInputVariablesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Output only. Root level input variables of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_input_variables = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeRootInputVariables(int index) { + if (rootInputVariablesBuilder_ == null) { + ensureRootInputVariablesIsMutable(); + rootInputVariables_.remove(index); + onChanged(); + } else { + rootInputVariablesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Output only. Root level input variables of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_input_variables = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ComponentVariable.Builder getRootInputVariablesBuilder( + int index) { + return internalGetRootInputVariablesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Output only. Root level input variables of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_input_variables = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ComponentVariableOrBuilder + getRootInputVariablesOrBuilder(int index) { + if (rootInputVariablesBuilder_ == null) { + return rootInputVariables_.get(index); + } else { + return rootInputVariablesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Output only. Root level input variables of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_input_variables = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getRootInputVariablesOrBuilderList() { + if (rootInputVariablesBuilder_ != null) { + return rootInputVariablesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(rootInputVariables_); + } + } + + /** + * + * + *
+     * Output only. Root level input variables of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_input_variables = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ComponentVariable.Builder + addRootInputVariablesBuilder() { + return internalGetRootInputVariablesFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.ComponentVariable.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. Root level input variables of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_input_variables = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ComponentVariable.Builder addRootInputVariablesBuilder( + int index) { + return internalGetRootInputVariablesFieldBuilder() + .addBuilder( + index, com.google.cloud.designcenter.v1.ComponentVariable.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. Root level input variables of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_input_variables = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getRootInputVariablesBuilderList() { + return internalGetRootInputVariablesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ComponentVariable, + com.google.cloud.designcenter.v1.ComponentVariable.Builder, + com.google.cloud.designcenter.v1.ComponentVariableOrBuilder> + internalGetRootInputVariablesFieldBuilder() { + if (rootInputVariablesBuilder_ == null) { + rootInputVariablesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ComponentVariable, + com.google.cloud.designcenter.v1.ComponentVariable.Builder, + com.google.cloud.designcenter.v1.ComponentVariableOrBuilder>( + rootInputVariables_, + ((bitField0_ & 0x00000200) != 0), + getParentForChildren(), + isClean()); + rootInputVariables_ = null; + } + return rootInputVariablesBuilder_; + } + + private java.util.List + rootOutputVariables_ = java.util.Collections.emptyList(); + + private void ensureRootOutputVariablesIsMutable() { + if (!((bitField0_ & 0x00000400) != 0)) { + rootOutputVariables_ = + new java.util.ArrayList( + rootOutputVariables_); + bitField0_ |= 0x00000400; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ComponentVariable, + com.google.cloud.designcenter.v1.ComponentVariable.Builder, + com.google.cloud.designcenter.v1.ComponentVariableOrBuilder> + rootOutputVariablesBuilder_; + + /** + * + * + *
+     * Output only. Root level output variables of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_output_variables = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getRootOutputVariablesList() { + if (rootOutputVariablesBuilder_ == null) { + return java.util.Collections.unmodifiableList(rootOutputVariables_); + } else { + return rootOutputVariablesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Output only. Root level output variables of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_output_variables = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getRootOutputVariablesCount() { + if (rootOutputVariablesBuilder_ == null) { + return rootOutputVariables_.size(); + } else { + return rootOutputVariablesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Output only. Root level output variables of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_output_variables = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ComponentVariable getRootOutputVariables(int index) { + if (rootOutputVariablesBuilder_ == null) { + return rootOutputVariables_.get(index); + } else { + return rootOutputVariablesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Output only. Root level output variables of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_output_variables = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setRootOutputVariables( + int index, com.google.cloud.designcenter.v1.ComponentVariable value) { + if (rootOutputVariablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRootOutputVariablesIsMutable(); + rootOutputVariables_.set(index, value); + onChanged(); + } else { + rootOutputVariablesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. Root level output variables of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_output_variables = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setRootOutputVariables( + int index, com.google.cloud.designcenter.v1.ComponentVariable.Builder builderForValue) { + if (rootOutputVariablesBuilder_ == null) { + ensureRootOutputVariablesIsMutable(); + rootOutputVariables_.set(index, builderForValue.build()); + onChanged(); + } else { + rootOutputVariablesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. Root level output variables of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_output_variables = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addRootOutputVariables( + com.google.cloud.designcenter.v1.ComponentVariable value) { + if (rootOutputVariablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRootOutputVariablesIsMutable(); + rootOutputVariables_.add(value); + onChanged(); + } else { + rootOutputVariablesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Output only. Root level output variables of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_output_variables = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addRootOutputVariables( + int index, com.google.cloud.designcenter.v1.ComponentVariable value) { + if (rootOutputVariablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRootOutputVariablesIsMutable(); + rootOutputVariables_.add(index, value); + onChanged(); + } else { + rootOutputVariablesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. Root level output variables of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_output_variables = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addRootOutputVariables( + com.google.cloud.designcenter.v1.ComponentVariable.Builder builderForValue) { + if (rootOutputVariablesBuilder_ == null) { + ensureRootOutputVariablesIsMutable(); + rootOutputVariables_.add(builderForValue.build()); + onChanged(); + } else { + rootOutputVariablesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. Root level output variables of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_output_variables = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addRootOutputVariables( + int index, com.google.cloud.designcenter.v1.ComponentVariable.Builder builderForValue) { + if (rootOutputVariablesBuilder_ == null) { + ensureRootOutputVariablesIsMutable(); + rootOutputVariables_.add(index, builderForValue.build()); + onChanged(); + } else { + rootOutputVariablesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. Root level output variables of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_output_variables = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllRootOutputVariables( + java.lang.Iterable values) { + if (rootOutputVariablesBuilder_ == null) { + ensureRootOutputVariablesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rootOutputVariables_); + onChanged(); + } else { + rootOutputVariablesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Output only. Root level output variables of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_output_variables = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearRootOutputVariables() { + if (rootOutputVariablesBuilder_ == null) { + rootOutputVariables_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + } else { + rootOutputVariablesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Output only. Root level output variables of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_output_variables = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeRootOutputVariables(int index) { + if (rootOutputVariablesBuilder_ == null) { + ensureRootOutputVariablesIsMutable(); + rootOutputVariables_.remove(index); + onChanged(); + } else { + rootOutputVariablesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Output only. Root level output variables of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_output_variables = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ComponentVariable.Builder getRootOutputVariablesBuilder( + int index) { + return internalGetRootOutputVariablesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Output only. Root level output variables of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_output_variables = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ComponentVariableOrBuilder + getRootOutputVariablesOrBuilder(int index) { + if (rootOutputVariablesBuilder_ == null) { + return rootOutputVariables_.get(index); + } else { + return rootOutputVariablesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Output only. Root level output variables of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_output_variables = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getRootOutputVariablesOrBuilderList() { + if (rootOutputVariablesBuilder_ != null) { + return rootOutputVariablesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(rootOutputVariables_); + } + } + + /** + * + * + *
+     * Output only. Root level output variables of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_output_variables = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ComponentVariable.Builder + addRootOutputVariablesBuilder() { + return internalGetRootOutputVariablesFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.ComponentVariable.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. Root level output variables of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_output_variables = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ComponentVariable.Builder addRootOutputVariablesBuilder( + int index) { + return internalGetRootOutputVariablesFieldBuilder() + .addBuilder( + index, com.google.cloud.designcenter.v1.ComponentVariable.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. Root level output variables of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_output_variables = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getRootOutputVariablesBuilderList() { + return internalGetRootOutputVariablesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ComponentVariable, + com.google.cloud.designcenter.v1.ComponentVariable.Builder, + com.google.cloud.designcenter.v1.ComponentVariableOrBuilder> + internalGetRootOutputVariablesFieldBuilder() { + if (rootOutputVariablesBuilder_ == null) { + rootOutputVariablesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ComponentVariable, + com.google.cloud.designcenter.v1.ComponentVariable.Builder, + com.google.cloud.designcenter.v1.ComponentVariableOrBuilder>( + rootOutputVariables_, + ((bitField0_ & 0x00000400) != 0), + getParentForChildren(), + isClean()); + rootOutputVariables_ = null; + } + return rootOutputVariablesBuilder_; + } + + private com.google.cloud.designcenter.v1.SaaSRuntimeContext saasRuntimeContext_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.SaaSRuntimeContext, + com.google.cloud.designcenter.v1.SaaSRuntimeContext.Builder, + com.google.cloud.designcenter.v1.SaaSRuntimeContextOrBuilder> + saasRuntimeContextBuilder_; + + /** + * + * + *
+     * Optional. SaaS runtime context for the application template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SaaSRuntimeContext saas_runtime_context = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the saasRuntimeContext field is set. + */ + public boolean hasSaasRuntimeContext() { + return ((bitField0_ & 0x00000800) != 0); + } + + /** + * + * + *
+     * Optional. SaaS runtime context for the application template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SaaSRuntimeContext saas_runtime_context = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The saasRuntimeContext. + */ + public com.google.cloud.designcenter.v1.SaaSRuntimeContext getSaasRuntimeContext() { + if (saasRuntimeContextBuilder_ == null) { + return saasRuntimeContext_ == null + ? com.google.cloud.designcenter.v1.SaaSRuntimeContext.getDefaultInstance() + : saasRuntimeContext_; + } else { + return saasRuntimeContextBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. SaaS runtime context for the application template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SaaSRuntimeContext saas_runtime_context = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSaasRuntimeContext( + com.google.cloud.designcenter.v1.SaaSRuntimeContext value) { + if (saasRuntimeContextBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + saasRuntimeContext_ = value; + } else { + saasRuntimeContextBuilder_.setMessage(value); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. SaaS runtime context for the application template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SaaSRuntimeContext saas_runtime_context = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSaasRuntimeContext( + com.google.cloud.designcenter.v1.SaaSRuntimeContext.Builder builderForValue) { + if (saasRuntimeContextBuilder_ == null) { + saasRuntimeContext_ = builderForValue.build(); + } else { + saasRuntimeContextBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. SaaS runtime context for the application template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SaaSRuntimeContext saas_runtime_context = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSaasRuntimeContext( + com.google.cloud.designcenter.v1.SaaSRuntimeContext value) { + if (saasRuntimeContextBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0) + && saasRuntimeContext_ != null + && saasRuntimeContext_ + != com.google.cloud.designcenter.v1.SaaSRuntimeContext.getDefaultInstance()) { + getSaasRuntimeContextBuilder().mergeFrom(value); + } else { + saasRuntimeContext_ = value; + } + } else { + saasRuntimeContextBuilder_.mergeFrom(value); + } + if (saasRuntimeContext_ != null) { + bitField0_ |= 0x00000800; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. SaaS runtime context for the application template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SaaSRuntimeContext saas_runtime_context = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSaasRuntimeContext() { + bitField0_ = (bitField0_ & ~0x00000800); + saasRuntimeContext_ = null; + if (saasRuntimeContextBuilder_ != null) { + saasRuntimeContextBuilder_.dispose(); + saasRuntimeContextBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. SaaS runtime context for the application template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SaaSRuntimeContext saas_runtime_context = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.SaaSRuntimeContext.Builder + getSaasRuntimeContextBuilder() { + bitField0_ |= 0x00000800; + onChanged(); + return internalGetSaasRuntimeContextFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. SaaS runtime context for the application template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SaaSRuntimeContext saas_runtime_context = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.SaaSRuntimeContextOrBuilder + getSaasRuntimeContextOrBuilder() { + if (saasRuntimeContextBuilder_ != null) { + return saasRuntimeContextBuilder_.getMessageOrBuilder(); + } else { + return saasRuntimeContext_ == null + ? com.google.cloud.designcenter.v1.SaaSRuntimeContext.getDefaultInstance() + : saasRuntimeContext_; + } + } + + /** + * + * + *
+     * Optional. SaaS runtime context for the application template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SaaSRuntimeContext saas_runtime_context = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.SaaSRuntimeContext, + com.google.cloud.designcenter.v1.SaaSRuntimeContext.Builder, + com.google.cloud.designcenter.v1.SaaSRuntimeContextOrBuilder> + internalGetSaasRuntimeContextFieldBuilder() { + if (saasRuntimeContextBuilder_ == null) { + saasRuntimeContextBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.SaaSRuntimeContext, + com.google.cloud.designcenter.v1.SaaSRuntimeContext.Builder, + com.google.cloud.designcenter.v1.SaaSRuntimeContextOrBuilder>( + getSaasRuntimeContext(), getParentForChildren(), isClean()); + saasRuntimeContext_ = null; + } + return saasRuntimeContextBuilder_; + } + + private java.util.List serializedPolicies_ = + java.util.Collections.emptyList(); + + private void ensureSerializedPoliciesIsMutable() { + if (!((bitField0_ & 0x00001000) != 0)) { + serializedPolicies_ = + new java.util.ArrayList( + serializedPolicies_); + bitField0_ |= 0x00001000; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.SerializedPolicy, + com.google.cloud.designcenter.v1.SerializedPolicy.Builder, + com.google.cloud.designcenter.v1.SerializedPolicyOrBuilder> + serializedPoliciesBuilder_; + + /** + * + * + *
+     * Output only. Policies of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedPolicy serialized_policies = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getSerializedPoliciesList() { + if (serializedPoliciesBuilder_ == null) { + return java.util.Collections.unmodifiableList(serializedPolicies_); + } else { + return serializedPoliciesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Output only. Policies of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedPolicy serialized_policies = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getSerializedPoliciesCount() { + if (serializedPoliciesBuilder_ == null) { + return serializedPolicies_.size(); + } else { + return serializedPoliciesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Output only. Policies of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedPolicy serialized_policies = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.SerializedPolicy getSerializedPolicies(int index) { + if (serializedPoliciesBuilder_ == null) { + return serializedPolicies_.get(index); + } else { + return serializedPoliciesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Output only. Policies of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedPolicy serialized_policies = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSerializedPolicies( + int index, com.google.cloud.designcenter.v1.SerializedPolicy value) { + if (serializedPoliciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSerializedPoliciesIsMutable(); + serializedPolicies_.set(index, value); + onChanged(); + } else { + serializedPoliciesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. Policies of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedPolicy serialized_policies = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSerializedPolicies( + int index, com.google.cloud.designcenter.v1.SerializedPolicy.Builder builderForValue) { + if (serializedPoliciesBuilder_ == null) { + ensureSerializedPoliciesIsMutable(); + serializedPolicies_.set(index, builderForValue.build()); + onChanged(); + } else { + serializedPoliciesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. Policies of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedPolicy serialized_policies = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addSerializedPolicies(com.google.cloud.designcenter.v1.SerializedPolicy value) { + if (serializedPoliciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSerializedPoliciesIsMutable(); + serializedPolicies_.add(value); + onChanged(); + } else { + serializedPoliciesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Output only. Policies of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedPolicy serialized_policies = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addSerializedPolicies( + int index, com.google.cloud.designcenter.v1.SerializedPolicy value) { + if (serializedPoliciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSerializedPoliciesIsMutable(); + serializedPolicies_.add(index, value); + onChanged(); + } else { + serializedPoliciesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. Policies of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedPolicy serialized_policies = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addSerializedPolicies( + com.google.cloud.designcenter.v1.SerializedPolicy.Builder builderForValue) { + if (serializedPoliciesBuilder_ == null) { + ensureSerializedPoliciesIsMutable(); + serializedPolicies_.add(builderForValue.build()); + onChanged(); + } else { + serializedPoliciesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. Policies of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedPolicy serialized_policies = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addSerializedPolicies( + int index, com.google.cloud.designcenter.v1.SerializedPolicy.Builder builderForValue) { + if (serializedPoliciesBuilder_ == null) { + ensureSerializedPoliciesIsMutable(); + serializedPolicies_.add(index, builderForValue.build()); + onChanged(); + } else { + serializedPoliciesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. Policies of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedPolicy serialized_policies = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllSerializedPolicies( + java.lang.Iterable values) { + if (serializedPoliciesBuilder_ == null) { + ensureSerializedPoliciesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, serializedPolicies_); + onChanged(); + } else { + serializedPoliciesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Output only. Policies of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedPolicy serialized_policies = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearSerializedPolicies() { + if (serializedPoliciesBuilder_ == null) { + serializedPolicies_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + } else { + serializedPoliciesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Output only. Policies of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedPolicy serialized_policies = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeSerializedPolicies(int index) { + if (serializedPoliciesBuilder_ == null) { + ensureSerializedPoliciesIsMutable(); + serializedPolicies_.remove(index); + onChanged(); + } else { + serializedPoliciesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Output only. Policies of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedPolicy serialized_policies = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.SerializedPolicy.Builder getSerializedPoliciesBuilder( + int index) { + return internalGetSerializedPoliciesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Output only. Policies of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedPolicy serialized_policies = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.SerializedPolicyOrBuilder + getSerializedPoliciesOrBuilder(int index) { + if (serializedPoliciesBuilder_ == null) { + return serializedPolicies_.get(index); + } else { + return serializedPoliciesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Output only. Policies of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedPolicy serialized_policies = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getSerializedPoliciesOrBuilderList() { + if (serializedPoliciesBuilder_ != null) { + return serializedPoliciesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(serializedPolicies_); + } + } + + /** + * + * + *
+     * Output only. Policies of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedPolicy serialized_policies = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.SerializedPolicy.Builder + addSerializedPoliciesBuilder() { + return internalGetSerializedPoliciesFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.SerializedPolicy.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. Policies of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedPolicy serialized_policies = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.SerializedPolicy.Builder addSerializedPoliciesBuilder( + int index) { + return internalGetSerializedPoliciesFieldBuilder() + .addBuilder( + index, com.google.cloud.designcenter.v1.SerializedPolicy.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. Policies of the application template.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedPolicy serialized_policies = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getSerializedPoliciesBuilderList() { + return internalGetSerializedPoliciesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.SerializedPolicy, + com.google.cloud.designcenter.v1.SerializedPolicy.Builder, + com.google.cloud.designcenter.v1.SerializedPolicyOrBuilder> + internalGetSerializedPoliciesFieldBuilder() { + if (serializedPoliciesBuilder_ == null) { + serializedPoliciesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.SerializedPolicy, + com.google.cloud.designcenter.v1.SerializedPolicy.Builder, + com.google.cloud.designcenter.v1.SerializedPolicyOrBuilder>( + serializedPolicies_, + ((bitField0_ & 0x00001000) != 0), + getParentForChildren(), + isClean()); + serializedPolicies_ = null; + } + return serializedPoliciesBuilder_; + } + + private java.util.List providers_ = + java.util.Collections.emptyList(); + + private void ensureProvidersIsMutable() { + if (!((bitField0_ & 0x00002000) != 0)) { + providers_ = + new java.util.ArrayList( + providers_); + bitField0_ |= 0x00002000; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.SerializedProvider, + com.google.cloud.designcenter.v1.SerializedProvider.Builder, + com.google.cloud.designcenter.v1.SerializedProviderOrBuilder> + providersBuilder_; + + /** + * + * + *
+     * Optional. Custom provider configurations imported from IaC.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedProvider providers = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getProvidersList() { + if (providersBuilder_ == null) { + return java.util.Collections.unmodifiableList(providers_); + } else { + return providersBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. Custom provider configurations imported from IaC.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedProvider providers = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getProvidersCount() { + if (providersBuilder_ == null) { + return providers_.size(); + } else { + return providersBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. Custom provider configurations imported from IaC.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedProvider providers = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.SerializedProvider getProviders(int index) { + if (providersBuilder_ == null) { + return providers_.get(index); + } else { + return providersBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. Custom provider configurations imported from IaC.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedProvider providers = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setProviders( + int index, com.google.cloud.designcenter.v1.SerializedProvider value) { + if (providersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProvidersIsMutable(); + providers_.set(index, value); + onChanged(); + } else { + providersBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Custom provider configurations imported from IaC.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedProvider providers = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setProviders( + int index, com.google.cloud.designcenter.v1.SerializedProvider.Builder builderForValue) { + if (providersBuilder_ == null) { + ensureProvidersIsMutable(); + providers_.set(index, builderForValue.build()); + onChanged(); + } else { + providersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Custom provider configurations imported from IaC.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedProvider providers = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addProviders(com.google.cloud.designcenter.v1.SerializedProvider value) { + if (providersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProvidersIsMutable(); + providers_.add(value); + onChanged(); + } else { + providersBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. Custom provider configurations imported from IaC.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedProvider providers = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addProviders( + int index, com.google.cloud.designcenter.v1.SerializedProvider value) { + if (providersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProvidersIsMutable(); + providers_.add(index, value); + onChanged(); + } else { + providersBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Custom provider configurations imported from IaC.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedProvider providers = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addProviders( + com.google.cloud.designcenter.v1.SerializedProvider.Builder builderForValue) { + if (providersBuilder_ == null) { + ensureProvidersIsMutable(); + providers_.add(builderForValue.build()); + onChanged(); + } else { + providersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Custom provider configurations imported from IaC.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedProvider providers = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addProviders( + int index, com.google.cloud.designcenter.v1.SerializedProvider.Builder builderForValue) { + if (providersBuilder_ == null) { + ensureProvidersIsMutable(); + providers_.add(index, builderForValue.build()); + onChanged(); + } else { + providersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Custom provider configurations imported from IaC.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedProvider providers = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllProviders( + java.lang.Iterable values) { + if (providersBuilder_ == null) { + ensureProvidersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, providers_); + onChanged(); + } else { + providersBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. Custom provider configurations imported from IaC.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedProvider providers = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearProviders() { + if (providersBuilder_ == null) { + providers_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00002000); + onChanged(); + } else { + providersBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Custom provider configurations imported from IaC.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedProvider providers = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeProviders(int index) { + if (providersBuilder_ == null) { + ensureProvidersIsMutable(); + providers_.remove(index); + onChanged(); + } else { + providersBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. Custom provider configurations imported from IaC.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedProvider providers = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.SerializedProvider.Builder getProvidersBuilder( + int index) { + return internalGetProvidersFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. Custom provider configurations imported from IaC.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedProvider providers = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.SerializedProviderOrBuilder getProvidersOrBuilder( + int index) { + if (providersBuilder_ == null) { + return providers_.get(index); + } else { + return providersBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. Custom provider configurations imported from IaC.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedProvider providers = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getProvidersOrBuilderList() { + if (providersBuilder_ != null) { + return providersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(providers_); + } + } + + /** + * + * + *
+     * Optional. Custom provider configurations imported from IaC.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedProvider providers = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.SerializedProvider.Builder addProvidersBuilder() { + return internalGetProvidersFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.SerializedProvider.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Custom provider configurations imported from IaC.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedProvider providers = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.SerializedProvider.Builder addProvidersBuilder( + int index) { + return internalGetProvidersFieldBuilder() + .addBuilder( + index, com.google.cloud.designcenter.v1.SerializedProvider.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Custom provider configurations imported from IaC.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedProvider providers = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getProvidersBuilderList() { + return internalGetProvidersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.SerializedProvider, + com.google.cloud.designcenter.v1.SerializedProvider.Builder, + com.google.cloud.designcenter.v1.SerializedProviderOrBuilder> + internalGetProvidersFieldBuilder() { + if (providersBuilder_ == null) { + providersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.SerializedProvider, + com.google.cloud.designcenter.v1.SerializedProvider.Builder, + com.google.cloud.designcenter.v1.SerializedProviderOrBuilder>( + providers_, ((bitField0_ & 0x00002000) != 0), getParentForChildren(), isClean()); + providers_ = null; + } + return providersBuilder_; + } + + private java.util.List customVariables_ = + java.util.Collections.emptyList(); + + private void ensureCustomVariablesIsMutable() { + if (!((bitField0_ & 0x00004000) != 0)) { + customVariables_ = + new java.util.ArrayList( + customVariables_); + bitField0_ |= 0x00004000; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.TerraformInput, + com.google.cloud.designcenter.v1.TerraformInput.Builder, + com.google.cloud.designcenter.v1.TerraformInputOrBuilder> + customVariablesBuilder_; + + /** + * + * + *
+     * Optional. Custom variables imported from variables.tf.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInput custom_variables = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getCustomVariablesList() { + if (customVariablesBuilder_ == null) { + return java.util.Collections.unmodifiableList(customVariables_); + } else { + return customVariablesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. Custom variables imported from variables.tf.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInput custom_variables = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getCustomVariablesCount() { + if (customVariablesBuilder_ == null) { + return customVariables_.size(); + } else { + return customVariablesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. Custom variables imported from variables.tf.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInput custom_variables = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.TerraformInput getCustomVariables(int index) { + if (customVariablesBuilder_ == null) { + return customVariables_.get(index); + } else { + return customVariablesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. Custom variables imported from variables.tf.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInput custom_variables = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCustomVariables( + int index, com.google.cloud.designcenter.v1.TerraformInput value) { + if (customVariablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomVariablesIsMutable(); + customVariables_.set(index, value); + onChanged(); + } else { + customVariablesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Custom variables imported from variables.tf.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInput custom_variables = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCustomVariables( + int index, com.google.cloud.designcenter.v1.TerraformInput.Builder builderForValue) { + if (customVariablesBuilder_ == null) { + ensureCustomVariablesIsMutable(); + customVariables_.set(index, builderForValue.build()); + onChanged(); + } else { + customVariablesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Custom variables imported from variables.tf.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInput custom_variables = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCustomVariables(com.google.cloud.designcenter.v1.TerraformInput value) { + if (customVariablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomVariablesIsMutable(); + customVariables_.add(value); + onChanged(); + } else { + customVariablesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. Custom variables imported from variables.tf.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInput custom_variables = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCustomVariables( + int index, com.google.cloud.designcenter.v1.TerraformInput value) { + if (customVariablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomVariablesIsMutable(); + customVariables_.add(index, value); + onChanged(); + } else { + customVariablesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Custom variables imported from variables.tf.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInput custom_variables = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCustomVariables( + com.google.cloud.designcenter.v1.TerraformInput.Builder builderForValue) { + if (customVariablesBuilder_ == null) { + ensureCustomVariablesIsMutable(); + customVariables_.add(builderForValue.build()); + onChanged(); + } else { + customVariablesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Custom variables imported from variables.tf.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInput custom_variables = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCustomVariables( + int index, com.google.cloud.designcenter.v1.TerraformInput.Builder builderForValue) { + if (customVariablesBuilder_ == null) { + ensureCustomVariablesIsMutable(); + customVariables_.add(index, builderForValue.build()); + onChanged(); + } else { + customVariablesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Custom variables imported from variables.tf.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInput custom_variables = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllCustomVariables( + java.lang.Iterable values) { + if (customVariablesBuilder_ == null) { + ensureCustomVariablesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, customVariables_); + onChanged(); + } else { + customVariablesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. Custom variables imported from variables.tf.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInput custom_variables = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCustomVariables() { + if (customVariablesBuilder_ == null) { + customVariables_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00004000); + onChanged(); + } else { + customVariablesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Custom variables imported from variables.tf.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInput custom_variables = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeCustomVariables(int index) { + if (customVariablesBuilder_ == null) { + ensureCustomVariablesIsMutable(); + customVariables_.remove(index); + onChanged(); + } else { + customVariablesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. Custom variables imported from variables.tf.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInput custom_variables = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.TerraformInput.Builder getCustomVariablesBuilder( + int index) { + return internalGetCustomVariablesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. Custom variables imported from variables.tf.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInput custom_variables = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.TerraformInputOrBuilder getCustomVariablesOrBuilder( + int index) { + if (customVariablesBuilder_ == null) { + return customVariables_.get(index); + } else { + return customVariablesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. Custom variables imported from variables.tf.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInput custom_variables = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getCustomVariablesOrBuilderList() { + if (customVariablesBuilder_ != null) { + return customVariablesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(customVariables_); + } + } + + /** + * + * + *
+     * Optional. Custom variables imported from variables.tf.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInput custom_variables = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.TerraformInput.Builder addCustomVariablesBuilder() { + return internalGetCustomVariablesFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.TerraformInput.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Custom variables imported from variables.tf.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInput custom_variables = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.TerraformInput.Builder addCustomVariablesBuilder( + int index) { + return internalGetCustomVariablesFieldBuilder() + .addBuilder(index, com.google.cloud.designcenter.v1.TerraformInput.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Custom variables imported from variables.tf.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInput custom_variables = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getCustomVariablesBuilderList() { + return internalGetCustomVariablesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.TerraformInput, + com.google.cloud.designcenter.v1.TerraformInput.Builder, + com.google.cloud.designcenter.v1.TerraformInputOrBuilder> + internalGetCustomVariablesFieldBuilder() { + if (customVariablesBuilder_ == null) { + customVariablesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.TerraformInput, + com.google.cloud.designcenter.v1.TerraformInput.Builder, + com.google.cloud.designcenter.v1.TerraformInputOrBuilder>( + customVariables_, + ((bitField0_ & 0x00004000) != 0), + getParentForChildren(), + isClean()); + customVariables_ = null; + } + return customVariablesBuilder_; + } + + private java.util.List customTfvars_ = + java.util.Collections.emptyList(); + + private void ensureCustomTfvarsIsMutable() { + if (!((bitField0_ & 0x00008000) != 0)) { + customTfvars_ = + new java.util.ArrayList(customTfvars_); + bitField0_ |= 0x00008000; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Parameter, + com.google.cloud.designcenter.v1.Parameter.Builder, + com.google.cloud.designcenter.v1.ParameterOrBuilder> + customTfvarsBuilder_; + + /** + * + * + *
+     * Optional. Custom variable values imported from terraform.tfvars.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter custom_tfvars = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getCustomTfvarsList() { + if (customTfvarsBuilder_ == null) { + return java.util.Collections.unmodifiableList(customTfvars_); + } else { + return customTfvarsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. Custom variable values imported from terraform.tfvars.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter custom_tfvars = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getCustomTfvarsCount() { + if (customTfvarsBuilder_ == null) { + return customTfvars_.size(); + } else { + return customTfvarsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. Custom variable values imported from terraform.tfvars.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter custom_tfvars = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter getCustomTfvars(int index) { + if (customTfvarsBuilder_ == null) { + return customTfvars_.get(index); + } else { + return customTfvarsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. Custom variable values imported from terraform.tfvars.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter custom_tfvars = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCustomTfvars(int index, com.google.cloud.designcenter.v1.Parameter value) { + if (customTfvarsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomTfvarsIsMutable(); + customTfvars_.set(index, value); + onChanged(); + } else { + customTfvarsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Custom variable values imported from terraform.tfvars.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter custom_tfvars = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCustomTfvars( + int index, com.google.cloud.designcenter.v1.Parameter.Builder builderForValue) { + if (customTfvarsBuilder_ == null) { + ensureCustomTfvarsIsMutable(); + customTfvars_.set(index, builderForValue.build()); + onChanged(); + } else { + customTfvarsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Custom variable values imported from terraform.tfvars.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter custom_tfvars = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCustomTfvars(com.google.cloud.designcenter.v1.Parameter value) { + if (customTfvarsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomTfvarsIsMutable(); + customTfvars_.add(value); + onChanged(); + } else { + customTfvarsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. Custom variable values imported from terraform.tfvars.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter custom_tfvars = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCustomTfvars(int index, com.google.cloud.designcenter.v1.Parameter value) { + if (customTfvarsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomTfvarsIsMutable(); + customTfvars_.add(index, value); + onChanged(); + } else { + customTfvarsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Custom variable values imported from terraform.tfvars.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter custom_tfvars = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCustomTfvars( + com.google.cloud.designcenter.v1.Parameter.Builder builderForValue) { + if (customTfvarsBuilder_ == null) { + ensureCustomTfvarsIsMutable(); + customTfvars_.add(builderForValue.build()); + onChanged(); + } else { + customTfvarsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Custom variable values imported from terraform.tfvars.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter custom_tfvars = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCustomTfvars( + int index, com.google.cloud.designcenter.v1.Parameter.Builder builderForValue) { + if (customTfvarsBuilder_ == null) { + ensureCustomTfvarsIsMutable(); + customTfvars_.add(index, builderForValue.build()); + onChanged(); + } else { + customTfvarsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Custom variable values imported from terraform.tfvars.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter custom_tfvars = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllCustomTfvars( + java.lang.Iterable values) { + if (customTfvarsBuilder_ == null) { + ensureCustomTfvarsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, customTfvars_); + onChanged(); + } else { + customTfvarsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. Custom variable values imported from terraform.tfvars.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter custom_tfvars = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCustomTfvars() { + if (customTfvarsBuilder_ == null) { + customTfvars_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00008000); + onChanged(); + } else { + customTfvarsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Custom variable values imported from terraform.tfvars.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter custom_tfvars = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeCustomTfvars(int index) { + if (customTfvarsBuilder_ == null) { + ensureCustomTfvarsIsMutable(); + customTfvars_.remove(index); + onChanged(); + } else { + customTfvarsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. Custom variable values imported from terraform.tfvars.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter custom_tfvars = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter.Builder getCustomTfvarsBuilder(int index) { + return internalGetCustomTfvarsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. Custom variable values imported from terraform.tfvars.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter custom_tfvars = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ParameterOrBuilder getCustomTfvarsOrBuilder(int index) { + if (customTfvarsBuilder_ == null) { + return customTfvars_.get(index); + } else { + return customTfvarsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. Custom variable values imported from terraform.tfvars.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter custom_tfvars = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getCustomTfvarsOrBuilderList() { + if (customTfvarsBuilder_ != null) { + return customTfvarsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(customTfvars_); + } + } + + /** + * + * + *
+     * Optional. Custom variable values imported from terraform.tfvars.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter custom_tfvars = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter.Builder addCustomTfvarsBuilder() { + return internalGetCustomTfvarsFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.Parameter.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Custom variable values imported from terraform.tfvars.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter custom_tfvars = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter.Builder addCustomTfvarsBuilder(int index) { + return internalGetCustomTfvarsFieldBuilder() + .addBuilder(index, com.google.cloud.designcenter.v1.Parameter.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Custom variable values imported from terraform.tfvars.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter custom_tfvars = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getCustomTfvarsBuilderList() { + return internalGetCustomTfvarsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Parameter, + com.google.cloud.designcenter.v1.Parameter.Builder, + com.google.cloud.designcenter.v1.ParameterOrBuilder> + internalGetCustomTfvarsFieldBuilder() { + if (customTfvarsBuilder_ == null) { + customTfvarsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Parameter, + com.google.cloud.designcenter.v1.Parameter.Builder, + com.google.cloud.designcenter.v1.ParameterOrBuilder>( + customTfvars_, ((bitField0_ & 0x00008000) != 0), getParentForChildren(), isClean()); + customTfvars_ = null; + } + return customTfvarsBuilder_; + } + + private boolean inputsAsRootModuleVariables_; + + /** + * + * + *
+     * Optional. If true, exposes all inputs as root module variables.
+     * This is only supported for STANDARD composition type templates.
+     * 
+ * + * bool inputs_as_root_module_variables = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The inputsAsRootModuleVariables. + */ + @java.lang.Override + public boolean getInputsAsRootModuleVariables() { + return inputsAsRootModuleVariables_; + } + + /** + * + * + *
+     * Optional. If true, exposes all inputs as root module variables.
+     * This is only supported for STANDARD composition type templates.
+     * 
+ * + * bool inputs_as_root_module_variables = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The inputsAsRootModuleVariables to set. + * @return This builder for chaining. + */ + public Builder setInputsAsRootModuleVariables(boolean value) { + + inputsAsRootModuleVariables_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. If true, exposes all inputs as root module variables.
+     * This is only supported for STANDARD composition type templates.
+     * 
+ * + * bool inputs_as_root_module_variables = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearInputsAsRootModuleVariables() { + bitField0_ = (bitField0_ & ~0x00010000); + inputsAsRootModuleVariables_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.SerializedApplicationTemplate) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.SerializedApplicationTemplate) + private static final com.google.cloud.designcenter.v1.SerializedApplicationTemplate + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.SerializedApplicationTemplate(); + } + + public static com.google.cloud.designcenter.v1.SerializedApplicationTemplate + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SerializedApplicationTemplate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.SerializedApplicationTemplate + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SerializedApplicationTemplateOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SerializedApplicationTemplateOrBuilder.java new file mode 100644 index 000000000000..c675f3c8166a --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SerializedApplicationTemplateOrBuilder.java @@ -0,0 +1,820 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface SerializedApplicationTemplateOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.SerializedApplicationTemplate) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The application template URI.
+   * 
+ * + * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The uri. + */ + java.lang.String getUri(); + + /** + * + * + *
+   * Optional. The application template URI.
+   * 
+ * + * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for uri. + */ + com.google.protobuf.ByteString getUriBytes(); + + /** + * + * + *
+   * Optional. The application template display name.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
+   * Optional. The application template display name.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Optional. The application template description.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
+   * Optional. The application template description.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Optional. Parameters to apply to all components in the application
+   * template.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getApplicationParametersList(); + + /** + * + * + *
+   * Optional. Parameters to apply to all components in the application
+   * template.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.Parameter getApplicationParameters(int index); + + /** + * + * + *
+   * Optional. Parameters to apply to all components in the application
+   * template.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getApplicationParametersCount(); + + /** + * + * + *
+   * Optional. Parameters to apply to all components in the application
+   * template.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getApplicationParametersOrBuilderList(); + + /** + * + * + *
+   * Optional. Parameters to apply to all components in the application
+   * template.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.ParameterOrBuilder getApplicationParametersOrBuilder(int index); + + /** + * + * + *
+   * Optional. The IaC format of the application template.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationTemplate.IACFormat iac_format = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for iacFormat. + */ + int getIacFormatValue(); + + /** + * + * + *
+   * Optional. The IaC format of the application template.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationTemplate.IACFormat iac_format = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The iacFormat. + */ + com.google.cloud.designcenter.v1.ApplicationTemplate.IACFormat getIacFormat(); + + /** + * + * + *
+   * Optional. The application template components.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedComponent components = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getComponentsList(); + + /** + * + * + *
+   * Optional. The application template components.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedComponent components = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.SerializedComponent getComponents(int index); + + /** + * + * + *
+   * Optional. The application template components.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedComponent components = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getComponentsCount(); + + /** + * + * + *
+   * Optional. The application template components.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedComponent components = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getComponentsOrBuilderList(); + + /** + * + * + *
+   * Optional. The application template components.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedComponent components = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.SerializedComponentOrBuilder getComponentsOrBuilder(int index); + + /** + * + * + *
+   * Optional. The App Hub application parameters.
+   * 
+ * + * + * .google.cloud.designcenter.v1.AppHubApplicationParameters apphub_application_parameters = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the apphubApplicationParameters field is set. + */ + boolean hasApphubApplicationParameters(); + + /** + * + * + *
+   * Optional. The App Hub application parameters.
+   * 
+ * + * + * .google.cloud.designcenter.v1.AppHubApplicationParameters apphub_application_parameters = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The apphubApplicationParameters. + */ + com.google.cloud.designcenter.v1.AppHubApplicationParameters getApphubApplicationParameters(); + + /** + * + * + *
+   * Optional. The App Hub application parameters.
+   * 
+ * + * + * .google.cloud.designcenter.v1.AppHubApplicationParameters apphub_application_parameters = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.AppHubApplicationParametersOrBuilder + getApphubApplicationParametersOrBuilder(); + + /** + * + * + *
+   * Output only. Whether the application template is compatible with regional
+   * scope.
+   * 
+ * + * bool has_global_resource = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The hasGlobalResource. + */ + boolean getHasGlobalResource(); + + /** + * + * + *
+   * Output only. The composition type of the applicationTemplate: STANDARD OR
+   * COMPOSITE.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationCompositionType composition_type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for compositionType. + */ + int getCompositionTypeValue(); + + /** + * + * + *
+   * Output only. The composition type of the applicationTemplate: STANDARD OR
+   * COMPOSITE.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationCompositionType composition_type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The compositionType. + */ + com.google.cloud.designcenter.v1.ApplicationCompositionType getCompositionType(); + + /** + * + * + *
+   * Output only. Root level input variables of the application template.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_input_variables = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getRootInputVariablesList(); + + /** + * + * + *
+   * Output only. Root level input variables of the application template.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_input_variables = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.ComponentVariable getRootInputVariables(int index); + + /** + * + * + *
+   * Output only. Root level input variables of the application template.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_input_variables = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getRootInputVariablesCount(); + + /** + * + * + *
+   * Output only. Root level input variables of the application template.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_input_variables = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getRootInputVariablesOrBuilderList(); + + /** + * + * + *
+   * Output only. Root level input variables of the application template.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_input_variables = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.ComponentVariableOrBuilder getRootInputVariablesOrBuilder( + int index); + + /** + * + * + *
+   * Output only. Root level output variables of the application template.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_output_variables = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getRootOutputVariablesList(); + + /** + * + * + *
+   * Output only. Root level output variables of the application template.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_output_variables = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.ComponentVariable getRootOutputVariables(int index); + + /** + * + * + *
+   * Output only. Root level output variables of the application template.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_output_variables = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getRootOutputVariablesCount(); + + /** + * + * + *
+   * Output only. Root level output variables of the application template.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_output_variables = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getRootOutputVariablesOrBuilderList(); + + /** + * + * + *
+   * Output only. Root level output variables of the application template.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentVariable root_output_variables = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.ComponentVariableOrBuilder getRootOutputVariablesOrBuilder( + int index); + + /** + * + * + *
+   * Optional. SaaS runtime context for the application template.
+   * 
+ * + * + * .google.cloud.designcenter.v1.SaaSRuntimeContext saas_runtime_context = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the saasRuntimeContext field is set. + */ + boolean hasSaasRuntimeContext(); + + /** + * + * + *
+   * Optional. SaaS runtime context for the application template.
+   * 
+ * + * + * .google.cloud.designcenter.v1.SaaSRuntimeContext saas_runtime_context = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The saasRuntimeContext. + */ + com.google.cloud.designcenter.v1.SaaSRuntimeContext getSaasRuntimeContext(); + + /** + * + * + *
+   * Optional. SaaS runtime context for the application template.
+   * 
+ * + * + * .google.cloud.designcenter.v1.SaaSRuntimeContext saas_runtime_context = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.SaaSRuntimeContextOrBuilder getSaasRuntimeContextOrBuilder(); + + /** + * + * + *
+   * Output only. Policies of the application template.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedPolicy serialized_policies = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getSerializedPoliciesList(); + + /** + * + * + *
+   * Output only. Policies of the application template.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedPolicy serialized_policies = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.SerializedPolicy getSerializedPolicies(int index); + + /** + * + * + *
+   * Output only. Policies of the application template.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedPolicy serialized_policies = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getSerializedPoliciesCount(); + + /** + * + * + *
+   * Output only. Policies of the application template.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedPolicy serialized_policies = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getSerializedPoliciesOrBuilderList(); + + /** + * + * + *
+   * Output only. Policies of the application template.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedPolicy serialized_policies = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.SerializedPolicyOrBuilder getSerializedPoliciesOrBuilder( + int index); + + /** + * + * + *
+   * Optional. Custom provider configurations imported from IaC.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedProvider providers = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getProvidersList(); + + /** + * + * + *
+   * Optional. Custom provider configurations imported from IaC.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedProvider providers = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.SerializedProvider getProviders(int index); + + /** + * + * + *
+   * Optional. Custom provider configurations imported from IaC.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedProvider providers = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getProvidersCount(); + + /** + * + * + *
+   * Optional. Custom provider configurations imported from IaC.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedProvider providers = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getProvidersOrBuilderList(); + + /** + * + * + *
+   * Optional. Custom provider configurations imported from IaC.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedProvider providers = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.SerializedProviderOrBuilder getProvidersOrBuilder(int index); + + /** + * + * + *
+   * Optional. Custom variables imported from variables.tf.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInput custom_variables = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getCustomVariablesList(); + + /** + * + * + *
+   * Optional. Custom variables imported from variables.tf.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInput custom_variables = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.TerraformInput getCustomVariables(int index); + + /** + * + * + *
+   * Optional. Custom variables imported from variables.tf.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInput custom_variables = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getCustomVariablesCount(); + + /** + * + * + *
+   * Optional. Custom variables imported from variables.tf.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInput custom_variables = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getCustomVariablesOrBuilderList(); + + /** + * + * + *
+   * Optional. Custom variables imported from variables.tf.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInput custom_variables = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.TerraformInputOrBuilder getCustomVariablesOrBuilder(int index); + + /** + * + * + *
+   * Optional. Custom variable values imported from terraform.tfvars.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter custom_tfvars = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getCustomTfvarsList(); + + /** + * + * + *
+   * Optional. Custom variable values imported from terraform.tfvars.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter custom_tfvars = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.Parameter getCustomTfvars(int index); + + /** + * + * + *
+   * Optional. Custom variable values imported from terraform.tfvars.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter custom_tfvars = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getCustomTfvarsCount(); + + /** + * + * + *
+   * Optional. Custom variable values imported from terraform.tfvars.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter custom_tfvars = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getCustomTfvarsOrBuilderList(); + + /** + * + * + *
+   * Optional. Custom variable values imported from terraform.tfvars.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter custom_tfvars = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.ParameterOrBuilder getCustomTfvarsOrBuilder(int index); + + /** + * + * + *
+   * Optional. If true, exposes all inputs as root module variables.
+   * This is only supported for STANDARD composition type templates.
+   * 
+ * + * bool inputs_as_root_module_variables = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The inputsAsRootModuleVariables. + */ + boolean getInputsAsRootModuleVariables(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SerializedComponent.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SerializedComponent.java new file mode 100644 index 000000000000..6acfef6a5e06 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SerializedComponent.java @@ -0,0 +1,5126 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Serialized component.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.SerializedComponent} + */ +@com.google.protobuf.Generated +public final class SerializedComponent extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.SerializedComponent) + SerializedComponentOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "SerializedComponent"); + } + + // Use SerializedComponent.newBuilder() to construct. + private SerializedComponent(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SerializedComponent() { + uri_ = ""; + sharedTemplateRevisionUri_ = ""; + parameters_ = java.util.Collections.emptyList(); + connections_ = java.util.Collections.emptyList(); + roles_ = com.google.protobuf.LazyStringArrayList.emptyList(); + apis_ = com.google.protobuf.LazyStringArrayList.emptyList(); + displayName_ = ""; + connectionsParameters_ = java.util.Collections.emptyList(); + componentParameterSchema_ = java.util.Collections.emptyList(); + inputVariableAliases_ = java.util.Collections.emptyList(); + applicationTemplateRevisionUri_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringResourcesProto + .internal_static_google_cloud_designcenter_v1_SerializedComponent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringResourcesProto + .internal_static_google_cloud_designcenter_v1_SerializedComponent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.SerializedComponent.class, + com.google.cloud.designcenter.v1.SerializedComponent.Builder.class); + } + + private int bitField0_; + public static final int URI_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; + + /** + * + * + *
+   * Optional. The component URI.
+   * 
+ * + * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The uri. + */ + @java.lang.Override + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The component URI.
+   * 
+ * + * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for uri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SHARED_TEMPLATE_REVISION_URI_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object sharedTemplateRevisionUri_ = ""; + + /** + * + * + *
+   * Optional. The shared template used to generate the component.
+   * 
+ * + * string shared_template_revision_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sharedTemplateRevisionUri. + */ + @java.lang.Override + public java.lang.String getSharedTemplateRevisionUri() { + java.lang.Object ref = sharedTemplateRevisionUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sharedTemplateRevisionUri_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The shared template used to generate the component.
+   * 
+ * + * string shared_template_revision_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for sharedTemplateRevisionUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSharedTemplateRevisionUriBytes() { + java.lang.Object ref = sharedTemplateRevisionUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sharedTemplateRevisionUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARAMETERS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List parameters_; + + /** + * + * + *
+   * Optional. The component parameters.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getParametersList() { + return parameters_; + } + + /** + * + * + *
+   * Optional. The component parameters.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getParametersOrBuilderList() { + return parameters_; + } + + /** + * + * + *
+   * Optional. The component parameters.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getParametersCount() { + return parameters_.size(); + } + + /** + * + * + *
+   * Optional. The component parameters.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.Parameter getParameters(int index) { + return parameters_.get(index); + } + + /** + * + * + *
+   * Optional. The component parameters.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ParameterOrBuilder getParametersOrBuilder(int index) { + return parameters_.get(index); + } + + public static final int CONNECTIONS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private java.util.List connections_; + + /** + * + * + *
+   * Optional. The component connections.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedConnection connections = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getConnectionsList() { + return connections_; + } + + /** + * + * + *
+   * Optional. The component connections.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedConnection connections = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getConnectionsOrBuilderList() { + return connections_; + } + + /** + * + * + *
+   * Optional. The component connections.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedConnection connections = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getConnectionsCount() { + return connections_.size(); + } + + /** + * + * + *
+   * Optional. The component connections.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedConnection connections = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.SerializedConnection getConnections(int index) { + return connections_.get(index); + } + + /** + * + * + *
+   * Optional. The component connections.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedConnection connections = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.SerializedConnectionOrBuilder getConnectionsOrBuilder( + int index) { + return connections_.get(index); + } + + public static final int ROLES_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList roles_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Optional. IAM roles required by the service account to deploy the
+   * component.
+   * 
+ * + * repeated string roles = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the roles. + */ + public com.google.protobuf.ProtocolStringList getRolesList() { + return roles_; + } + + /** + * + * + *
+   * Optional. IAM roles required by the service account to deploy the
+   * component.
+   * 
+ * + * repeated string roles = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of roles. + */ + public int getRolesCount() { + return roles_.size(); + } + + /** + * + * + *
+   * Optional. IAM roles required by the service account to deploy the
+   * component.
+   * 
+ * + * repeated string roles = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The roles at the given index. + */ + public java.lang.String getRoles(int index) { + return roles_.get(index); + } + + /** + * + * + *
+   * Optional. IAM roles required by the service account to deploy the
+   * component.
+   * 
+ * + * repeated string roles = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the roles at the given index. + */ + public com.google.protobuf.ByteString getRolesBytes(int index) { + return roles_.getByteString(index); + } + + public static final int APIS_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList apis_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Optional. APIs required to be enabled to deploy the component, in the form
+   * of "*.googleapis.com".
+   * 
+ * + * repeated string apis = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the apis. + */ + public com.google.protobuf.ProtocolStringList getApisList() { + return apis_; + } + + /** + * + * + *
+   * Optional. APIs required to be enabled to deploy the component, in the form
+   * of "*.googleapis.com".
+   * 
+ * + * repeated string apis = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of apis. + */ + public int getApisCount() { + return apis_.size(); + } + + /** + * + * + *
+   * Optional. APIs required to be enabled to deploy the component, in the form
+   * of "*.googleapis.com".
+   * 
+ * + * repeated string apis = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The apis at the given index. + */ + public java.lang.String getApis(int index) { + return apis_.get(index); + } + + /** + * + * + *
+   * Optional. APIs required to be enabled to deploy the component, in the form
+   * of "*.googleapis.com".
+   * 
+ * + * repeated string apis = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the apis at the given index. + */ + public com.google.protobuf.ByteString getApisBytes(int index) { + return apis_.getByteString(index); + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
+   * Optional. The component display name.
+   * 
+ * + * 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. The component display name.
+   * 
+ * + * 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 CONNECTIONS_PARAMETERS_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private java.util.List + connectionsParameters_; + + /** + * + * + *
+   * Output only. The connection parameters of the component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getConnectionsParametersList() { + return connectionsParameters_; + } + + /** + * + * + *
+   * Output only. The connection parameters of the component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getConnectionsParametersOrBuilderList() { + return connectionsParameters_; + } + + /** + * + * + *
+   * Output only. The connection parameters of the component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getConnectionsParametersCount() { + return connectionsParameters_.size(); + } + + /** + * + * + *
+   * Output only. The connection parameters of the component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ConnectionParameters getConnectionsParameters(int index) { + return connectionsParameters_.get(index); + } + + /** + * + * + *
+   * Output only. The connection parameters of the component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ConnectionParametersOrBuilder + getConnectionsParametersOrBuilder(int index) { + return connectionsParameters_.get(index); + } + + public static final int COMPONENT_PARAMETER_SCHEMA_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private java.util.List + componentParameterSchema_; + + /** + * + * + *
+   * Output only. The component parameter schema, which includes possible
+   * parameter values.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getComponentParameterSchemaList() { + return componentParameterSchema_; + } + + /** + * + * + *
+   * Output only. The component parameter schema, which includes possible
+   * parameter values.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.designcenter.v1.ComponentParameterSchemaOrBuilder> + getComponentParameterSchemaOrBuilderList() { + return componentParameterSchema_; + } + + /** + * + * + *
+   * Output only. The component parameter schema, which includes possible
+   * parameter values.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getComponentParameterSchemaCount() { + return componentParameterSchema_.size(); + } + + /** + * + * + *
+   * Output only. The component parameter schema, which includes possible
+   * parameter values.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ComponentParameterSchema getComponentParameterSchema( + int index) { + return componentParameterSchema_.get(index); + } + + /** + * + * + *
+   * Output only. The component parameter schema, which includes possible
+   * parameter values.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ComponentParameterSchemaOrBuilder + getComponentParameterSchemaOrBuilder(int index) { + return componentParameterSchema_.get(index); + } + + public static final int APPLICATION_INFO_FIELD_NUMBER = 10; + private com.google.cloud.designcenter.v1.ComponentApplicationInfo applicationInfo_; + + /** + * + * + *
+   * Optional. The application associated with the component.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ComponentApplicationInfo application_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the applicationInfo field is set. + */ + @java.lang.Override + public boolean hasApplicationInfo() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. The application associated with the component.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ComponentApplicationInfo application_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The applicationInfo. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ComponentApplicationInfo getApplicationInfo() { + return applicationInfo_ == null + ? com.google.cloud.designcenter.v1.ComponentApplicationInfo.getDefaultInstance() + : applicationInfo_; + } + + /** + * + * + *
+   * Optional. The application associated with the component.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ComponentApplicationInfo application_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ComponentApplicationInfoOrBuilder + getApplicationInfoOrBuilder() { + return applicationInfo_ == null + ? com.google.cloud.designcenter.v1.ComponentApplicationInfo.getDefaultInstance() + : applicationInfo_; + } + + public static final int USE_AS_ROOT_MODULE_FIELD_NUMBER = 11; + private boolean useAsRootModule_ = false; + + /** + * + * + *
+   * Optional. Whether the component is exported as a separate terraform root
+   * module in a composite application template. If this is false, then native
+   * components will be exported as a submodule of a separate terraform root
+   * module.
+   * 
+ * + * bool use_as_root_module = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The useAsRootModule. + */ + @java.lang.Override + public boolean getUseAsRootModule() { + return useAsRootModule_; + } + + public static final int INPUT_VARIABLE_ALIASES_FIELD_NUMBER = 12; + + @SuppressWarnings("serial") + private java.util.List inputVariableAliases_; + + /** + * + * + *
+   * Optional. Input variable aliases defined for this serialized component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.InputVariableAlias input_variable_aliases = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getInputVariableAliasesList() { + return inputVariableAliases_; + } + + /** + * + * + *
+   * Optional. Input variable aliases defined for this serialized component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.InputVariableAlias input_variable_aliases = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getInputVariableAliasesOrBuilderList() { + return inputVariableAliases_; + } + + /** + * + * + *
+   * Optional. Input variable aliases defined for this serialized component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.InputVariableAlias input_variable_aliases = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getInputVariableAliasesCount() { + return inputVariableAliases_.size(); + } + + /** + * + * + *
+   * Optional. Input variable aliases defined for this serialized component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.InputVariableAlias input_variable_aliases = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.InputVariableAlias getInputVariableAliases(int index) { + return inputVariableAliases_.get(index); + } + + /** + * + * + *
+   * Optional. Input variable aliases defined for this serialized component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.InputVariableAlias input_variable_aliases = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.InputVariableAliasOrBuilder + getInputVariableAliasesOrBuilder(int index) { + return inputVariableAliases_.get(index); + } + + public static final int APPLICATION_TEMPLATE_REVISION_URI_FIELD_NUMBER = 13; + + @SuppressWarnings("serial") + private volatile java.lang.Object applicationTemplateRevisionUri_ = ""; + + /** + * + * + *
+   * Optional. The application template revision used to generate the component.
+   * 
+ * + * string application_template_revision_uri = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The applicationTemplateRevisionUri. + */ + @java.lang.Override + public java.lang.String getApplicationTemplateRevisionUri() { + java.lang.Object ref = applicationTemplateRevisionUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + applicationTemplateRevisionUri_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The application template revision used to generate the component.
+   * 
+ * + * string application_template_revision_uri = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for applicationTemplateRevisionUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getApplicationTemplateRevisionUriBytes() { + java.lang.Object ref = applicationTemplateRevisionUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + applicationTemplateRevisionUri_ = 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.GeneratedMessage.isStringEmpty(uri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, uri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(sharedTemplateRevisionUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, sharedTemplateRevisionUri_); + } + for (int i = 0; i < parameters_.size(); i++) { + output.writeMessage(3, parameters_.get(i)); + } + for (int i = 0; i < connections_.size(); i++) { + output.writeMessage(4, connections_.get(i)); + } + for (int i = 0; i < roles_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, roles_.getRaw(i)); + } + for (int i = 0; i < apis_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, apis_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, displayName_); + } + for (int i = 0; i < connectionsParameters_.size(); i++) { + output.writeMessage(8, connectionsParameters_.get(i)); + } + for (int i = 0; i < componentParameterSchema_.size(); i++) { + output.writeMessage(9, componentParameterSchema_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(10, getApplicationInfo()); + } + if (useAsRootModule_ != false) { + output.writeBool(11, useAsRootModule_); + } + for (int i = 0; i < inputVariableAliases_.size(); i++) { + output.writeMessage(12, inputVariableAliases_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(applicationTemplateRevisionUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 13, applicationTemplateRevisionUri_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, uri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(sharedTemplateRevisionUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, sharedTemplateRevisionUri_); + } + for (int i = 0; i < parameters_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, parameters_.get(i)); + } + for (int i = 0; i < connections_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, connections_.get(i)); + } + { + int dataSize = 0; + for (int i = 0; i < roles_.size(); i++) { + dataSize += computeStringSizeNoTag(roles_.getRaw(i)); + } + size += dataSize; + size += 1 * getRolesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < apis_.size(); i++) { + dataSize += computeStringSizeNoTag(apis_.getRaw(i)); + } + size += dataSize; + size += 1 * getApisList().size(); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, displayName_); + } + for (int i = 0; i < connectionsParameters_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, connectionsParameters_.get(i)); + } + for (int i = 0; i < componentParameterSchema_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, componentParameterSchema_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getApplicationInfo()); + } + if (useAsRootModule_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(11, useAsRootModule_); + } + for (int i = 0; i < inputVariableAliases_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 12, inputVariableAliases_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(applicationTemplateRevisionUri_)) { + size += + com.google.protobuf.GeneratedMessage.computeStringSize( + 13, applicationTemplateRevisionUri_); + } + 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.designcenter.v1.SerializedComponent)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.SerializedComponent other = + (com.google.cloud.designcenter.v1.SerializedComponent) obj; + + if (!getUri().equals(other.getUri())) return false; + if (!getSharedTemplateRevisionUri().equals(other.getSharedTemplateRevisionUri())) return false; + if (!getParametersList().equals(other.getParametersList())) return false; + if (!getConnectionsList().equals(other.getConnectionsList())) return false; + if (!getRolesList().equals(other.getRolesList())) return false; + if (!getApisList().equals(other.getApisList())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getConnectionsParametersList().equals(other.getConnectionsParametersList())) return false; + if (!getComponentParameterSchemaList().equals(other.getComponentParameterSchemaList())) + return false; + if (hasApplicationInfo() != other.hasApplicationInfo()) return false; + if (hasApplicationInfo()) { + if (!getApplicationInfo().equals(other.getApplicationInfo())) return false; + } + if (getUseAsRootModule() != other.getUseAsRootModule()) return false; + if (!getInputVariableAliasesList().equals(other.getInputVariableAliasesList())) return false; + if (!getApplicationTemplateRevisionUri().equals(other.getApplicationTemplateRevisionUri())) + 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) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + hash = (37 * hash) + SHARED_TEMPLATE_REVISION_URI_FIELD_NUMBER; + hash = (53 * hash) + getSharedTemplateRevisionUri().hashCode(); + if (getParametersCount() > 0) { + hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getParametersList().hashCode(); + } + if (getConnectionsCount() > 0) { + hash = (37 * hash) + CONNECTIONS_FIELD_NUMBER; + hash = (53 * hash) + getConnectionsList().hashCode(); + } + if (getRolesCount() > 0) { + hash = (37 * hash) + ROLES_FIELD_NUMBER; + hash = (53 * hash) + getRolesList().hashCode(); + } + if (getApisCount() > 0) { + hash = (37 * hash) + APIS_FIELD_NUMBER; + hash = (53 * hash) + getApisList().hashCode(); + } + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + if (getConnectionsParametersCount() > 0) { + hash = (37 * hash) + CONNECTIONS_PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getConnectionsParametersList().hashCode(); + } + if (getComponentParameterSchemaCount() > 0) { + hash = (37 * hash) + COMPONENT_PARAMETER_SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getComponentParameterSchemaList().hashCode(); + } + if (hasApplicationInfo()) { + hash = (37 * hash) + APPLICATION_INFO_FIELD_NUMBER; + hash = (53 * hash) + getApplicationInfo().hashCode(); + } + hash = (37 * hash) + USE_AS_ROOT_MODULE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUseAsRootModule()); + if (getInputVariableAliasesCount() > 0) { + hash = (37 * hash) + INPUT_VARIABLE_ALIASES_FIELD_NUMBER; + hash = (53 * hash) + getInputVariableAliasesList().hashCode(); + } + hash = (37 * hash) + APPLICATION_TEMPLATE_REVISION_URI_FIELD_NUMBER; + hash = (53 * hash) + getApplicationTemplateRevisionUri().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.SerializedComponent parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.SerializedComponent 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.designcenter.v1.SerializedComponent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.SerializedComponent parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.SerializedComponent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.SerializedComponent parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.SerializedComponent parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.SerializedComponent parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.SerializedComponent parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.SerializedComponent parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.SerializedComponent parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.SerializedComponent parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.SerializedComponent 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Serialized component.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.SerializedComponent} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.SerializedComponent) + com.google.cloud.designcenter.v1.SerializedComponentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringResourcesProto + .internal_static_google_cloud_designcenter_v1_SerializedComponent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringResourcesProto + .internal_static_google_cloud_designcenter_v1_SerializedComponent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.SerializedComponent.class, + com.google.cloud.designcenter.v1.SerializedComponent.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.SerializedComponent.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetParametersFieldBuilder(); + internalGetConnectionsFieldBuilder(); + internalGetConnectionsParametersFieldBuilder(); + internalGetComponentParameterSchemaFieldBuilder(); + internalGetApplicationInfoFieldBuilder(); + internalGetInputVariableAliasesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + uri_ = ""; + sharedTemplateRevisionUri_ = ""; + if (parametersBuilder_ == null) { + parameters_ = java.util.Collections.emptyList(); + } else { + parameters_ = null; + parametersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + if (connectionsBuilder_ == null) { + connections_ = java.util.Collections.emptyList(); + } else { + connections_ = null; + connectionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + roles_ = com.google.protobuf.LazyStringArrayList.emptyList(); + apis_ = com.google.protobuf.LazyStringArrayList.emptyList(); + displayName_ = ""; + if (connectionsParametersBuilder_ == null) { + connectionsParameters_ = java.util.Collections.emptyList(); + } else { + connectionsParameters_ = null; + connectionsParametersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000080); + if (componentParameterSchemaBuilder_ == null) { + componentParameterSchema_ = java.util.Collections.emptyList(); + } else { + componentParameterSchema_ = null; + componentParameterSchemaBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000100); + applicationInfo_ = null; + if (applicationInfoBuilder_ != null) { + applicationInfoBuilder_.dispose(); + applicationInfoBuilder_ = null; + } + useAsRootModule_ = false; + if (inputVariableAliasesBuilder_ == null) { + inputVariableAliases_ = java.util.Collections.emptyList(); + } else { + inputVariableAliases_ = null; + inputVariableAliasesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000800); + applicationTemplateRevisionUri_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.AuthoringResourcesProto + .internal_static_google_cloud_designcenter_v1_SerializedComponent_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.SerializedComponent getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.SerializedComponent.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.SerializedComponent build() { + com.google.cloud.designcenter.v1.SerializedComponent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.SerializedComponent buildPartial() { + com.google.cloud.designcenter.v1.SerializedComponent result = + new com.google.cloud.designcenter.v1.SerializedComponent(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.designcenter.v1.SerializedComponent result) { + if (parametersBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + parameters_ = java.util.Collections.unmodifiableList(parameters_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.parameters_ = parameters_; + } else { + result.parameters_ = parametersBuilder_.build(); + } + if (connectionsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + connections_ = java.util.Collections.unmodifiableList(connections_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.connections_ = connections_; + } else { + result.connections_ = connectionsBuilder_.build(); + } + if (connectionsParametersBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0)) { + connectionsParameters_ = java.util.Collections.unmodifiableList(connectionsParameters_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.connectionsParameters_ = connectionsParameters_; + } else { + result.connectionsParameters_ = connectionsParametersBuilder_.build(); + } + if (componentParameterSchemaBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0)) { + componentParameterSchema_ = + java.util.Collections.unmodifiableList(componentParameterSchema_); + bitField0_ = (bitField0_ & ~0x00000100); + } + result.componentParameterSchema_ = componentParameterSchema_; + } else { + result.componentParameterSchema_ = componentParameterSchemaBuilder_.build(); + } + if (inputVariableAliasesBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0)) { + inputVariableAliases_ = java.util.Collections.unmodifiableList(inputVariableAliases_); + bitField0_ = (bitField0_ & ~0x00000800); + } + result.inputVariableAliases_ = inputVariableAliases_; + } else { + result.inputVariableAliases_ = inputVariableAliasesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.designcenter.v1.SerializedComponent result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.uri_ = uri_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.sharedTemplateRevisionUri_ = sharedTemplateRevisionUri_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + roles_.makeImmutable(); + result.roles_ = roles_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + apis_.makeImmutable(); + result.apis_ = apis_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.displayName_ = displayName_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000200) != 0)) { + result.applicationInfo_ = + applicationInfoBuilder_ == null ? applicationInfo_ : applicationInfoBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.useAsRootModule_ = useAsRootModule_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.applicationTemplateRevisionUri_ = applicationTemplateRevisionUri_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.SerializedComponent) { + return mergeFrom((com.google.cloud.designcenter.v1.SerializedComponent) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.SerializedComponent other) { + if (other == com.google.cloud.designcenter.v1.SerializedComponent.getDefaultInstance()) + return this; + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getSharedTemplateRevisionUri().isEmpty()) { + sharedTemplateRevisionUri_ = other.sharedTemplateRevisionUri_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (parametersBuilder_ == null) { + if (!other.parameters_.isEmpty()) { + if (parameters_.isEmpty()) { + parameters_ = other.parameters_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureParametersIsMutable(); + parameters_.addAll(other.parameters_); + } + onChanged(); + } + } else { + if (!other.parameters_.isEmpty()) { + if (parametersBuilder_.isEmpty()) { + parametersBuilder_.dispose(); + parametersBuilder_ = null; + parameters_ = other.parameters_; + bitField0_ = (bitField0_ & ~0x00000004); + parametersBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetParametersFieldBuilder() + : null; + } else { + parametersBuilder_.addAllMessages(other.parameters_); + } + } + } + if (connectionsBuilder_ == null) { + if (!other.connections_.isEmpty()) { + if (connections_.isEmpty()) { + connections_ = other.connections_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureConnectionsIsMutable(); + connections_.addAll(other.connections_); + } + onChanged(); + } + } else { + if (!other.connections_.isEmpty()) { + if (connectionsBuilder_.isEmpty()) { + connectionsBuilder_.dispose(); + connectionsBuilder_ = null; + connections_ = other.connections_; + bitField0_ = (bitField0_ & ~0x00000008); + connectionsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetConnectionsFieldBuilder() + : null; + } else { + connectionsBuilder_.addAllMessages(other.connections_); + } + } + } + if (!other.roles_.isEmpty()) { + if (roles_.isEmpty()) { + roles_ = other.roles_; + bitField0_ |= 0x00000010; + } else { + ensureRolesIsMutable(); + roles_.addAll(other.roles_); + } + onChanged(); + } + if (!other.apis_.isEmpty()) { + if (apis_.isEmpty()) { + apis_ = other.apis_; + bitField0_ |= 0x00000020; + } else { + ensureApisIsMutable(); + apis_.addAll(other.apis_); + } + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (connectionsParametersBuilder_ == null) { + if (!other.connectionsParameters_.isEmpty()) { + if (connectionsParameters_.isEmpty()) { + connectionsParameters_ = other.connectionsParameters_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureConnectionsParametersIsMutable(); + connectionsParameters_.addAll(other.connectionsParameters_); + } + onChanged(); + } + } else { + if (!other.connectionsParameters_.isEmpty()) { + if (connectionsParametersBuilder_.isEmpty()) { + connectionsParametersBuilder_.dispose(); + connectionsParametersBuilder_ = null; + connectionsParameters_ = other.connectionsParameters_; + bitField0_ = (bitField0_ & ~0x00000080); + connectionsParametersBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetConnectionsParametersFieldBuilder() + : null; + } else { + connectionsParametersBuilder_.addAllMessages(other.connectionsParameters_); + } + } + } + if (componentParameterSchemaBuilder_ == null) { + if (!other.componentParameterSchema_.isEmpty()) { + if (componentParameterSchema_.isEmpty()) { + componentParameterSchema_ = other.componentParameterSchema_; + bitField0_ = (bitField0_ & ~0x00000100); + } else { + ensureComponentParameterSchemaIsMutable(); + componentParameterSchema_.addAll(other.componentParameterSchema_); + } + onChanged(); + } + } else { + if (!other.componentParameterSchema_.isEmpty()) { + if (componentParameterSchemaBuilder_.isEmpty()) { + componentParameterSchemaBuilder_.dispose(); + componentParameterSchemaBuilder_ = null; + componentParameterSchema_ = other.componentParameterSchema_; + bitField0_ = (bitField0_ & ~0x00000100); + componentParameterSchemaBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetComponentParameterSchemaFieldBuilder() + : null; + } else { + componentParameterSchemaBuilder_.addAllMessages(other.componentParameterSchema_); + } + } + } + if (other.hasApplicationInfo()) { + mergeApplicationInfo(other.getApplicationInfo()); + } + if (other.getUseAsRootModule() != false) { + setUseAsRootModule(other.getUseAsRootModule()); + } + if (inputVariableAliasesBuilder_ == null) { + if (!other.inputVariableAliases_.isEmpty()) { + if (inputVariableAliases_.isEmpty()) { + inputVariableAliases_ = other.inputVariableAliases_; + bitField0_ = (bitField0_ & ~0x00000800); + } else { + ensureInputVariableAliasesIsMutable(); + inputVariableAliases_.addAll(other.inputVariableAliases_); + } + onChanged(); + } + } else { + if (!other.inputVariableAliases_.isEmpty()) { + if (inputVariableAliasesBuilder_.isEmpty()) { + inputVariableAliasesBuilder_.dispose(); + inputVariableAliasesBuilder_ = null; + inputVariableAliases_ = other.inputVariableAliases_; + bitField0_ = (bitField0_ & ~0x00000800); + inputVariableAliasesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetInputVariableAliasesFieldBuilder() + : null; + } else { + inputVariableAliasesBuilder_.addAllMessages(other.inputVariableAliases_); + } + } + } + if (!other.getApplicationTemplateRevisionUri().isEmpty()) { + applicationTemplateRevisionUri_ = other.applicationTemplateRevisionUri_; + bitField0_ |= 0x00001000; + 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: + { + uri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + sharedTemplateRevisionUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + com.google.cloud.designcenter.v1.Parameter m = + input.readMessage( + com.google.cloud.designcenter.v1.Parameter.parser(), extensionRegistry); + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + parameters_.add(m); + } else { + parametersBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: + { + com.google.cloud.designcenter.v1.SerializedConnection m = + input.readMessage( + com.google.cloud.designcenter.v1.SerializedConnection.parser(), + extensionRegistry); + if (connectionsBuilder_ == null) { + ensureConnectionsIsMutable(); + connections_.add(m); + } else { + connectionsBuilder_.addMessage(m); + } + break; + } // case 34 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureRolesIsMutable(); + roles_.add(s); + break; + } // case 42 + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureApisIsMutable(); + apis_.add(s); + break; + } // case 50 + case 58: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + com.google.cloud.designcenter.v1.ConnectionParameters m = + input.readMessage( + com.google.cloud.designcenter.v1.ConnectionParameters.parser(), + extensionRegistry); + if (connectionsParametersBuilder_ == null) { + ensureConnectionsParametersIsMutable(); + connectionsParameters_.add(m); + } else { + connectionsParametersBuilder_.addMessage(m); + } + break; + } // case 66 + case 74: + { + com.google.cloud.designcenter.v1.ComponentParameterSchema m = + input.readMessage( + com.google.cloud.designcenter.v1.ComponentParameterSchema.parser(), + extensionRegistry); + if (componentParameterSchemaBuilder_ == null) { + ensureComponentParameterSchemaIsMutable(); + componentParameterSchema_.add(m); + } else { + componentParameterSchemaBuilder_.addMessage(m); + } + break; + } // case 74 + case 82: + { + input.readMessage( + internalGetApplicationInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 88: + { + useAsRootModule_ = input.readBool(); + bitField0_ |= 0x00000400; + break; + } // case 88 + case 98: + { + com.google.cloud.designcenter.v1.InputVariableAlias m = + input.readMessage( + com.google.cloud.designcenter.v1.InputVariableAlias.parser(), + extensionRegistry); + if (inputVariableAliasesBuilder_ == null) { + ensureInputVariableAliasesIsMutable(); + inputVariableAliases_.add(m); + } else { + inputVariableAliasesBuilder_.addMessage(m); + } + break; + } // case 98 + case 106: + { + applicationTemplateRevisionUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00001000; + 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 uri_ = ""; + + /** + * + * + *
+     * Optional. The component URI.
+     * 
+ * + * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The uri. + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The component URI.
+     * 
+ * + * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for uri. + */ + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The component URI.
+     * 
+ * + * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The uri to set. + * @return This builder for chaining. + */ + public Builder setUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The component URI.
+     * 
+ * + * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearUri() { + uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The component URI.
+     * 
+ * + * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for uri to set. + * @return This builder for chaining. + */ + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object sharedTemplateRevisionUri_ = ""; + + /** + * + * + *
+     * Optional. The shared template used to generate the component.
+     * 
+ * + * string shared_template_revision_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sharedTemplateRevisionUri. + */ + public java.lang.String getSharedTemplateRevisionUri() { + java.lang.Object ref = sharedTemplateRevisionUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sharedTemplateRevisionUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The shared template used to generate the component.
+     * 
+ * + * string shared_template_revision_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for sharedTemplateRevisionUri. + */ + public com.google.protobuf.ByteString getSharedTemplateRevisionUriBytes() { + java.lang.Object ref = sharedTemplateRevisionUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sharedTemplateRevisionUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The shared template used to generate the component.
+     * 
+ * + * string shared_template_revision_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The sharedTemplateRevisionUri to set. + * @return This builder for chaining. + */ + public Builder setSharedTemplateRevisionUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sharedTemplateRevisionUri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The shared template used to generate the component.
+     * 
+ * + * string shared_template_revision_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearSharedTemplateRevisionUri() { + sharedTemplateRevisionUri_ = getDefaultInstance().getSharedTemplateRevisionUri(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The shared template used to generate the component.
+     * 
+ * + * string shared_template_revision_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes for sharedTemplateRevisionUri to set. + * @return This builder for chaining. + */ + public Builder setSharedTemplateRevisionUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sharedTemplateRevisionUri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.util.List parameters_ = + java.util.Collections.emptyList(); + + private void ensureParametersIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + parameters_ = + new java.util.ArrayList(parameters_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Parameter, + com.google.cloud.designcenter.v1.Parameter.Builder, + com.google.cloud.designcenter.v1.ParameterOrBuilder> + parametersBuilder_; + + /** + * + * + *
+     * Optional. The component parameters.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getParametersList() { + if (parametersBuilder_ == null) { + return java.util.Collections.unmodifiableList(parameters_); + } else { + return parametersBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. The component parameters.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getParametersCount() { + if (parametersBuilder_ == null) { + return parameters_.size(); + } else { + return parametersBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. The component parameters.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter getParameters(int index) { + if (parametersBuilder_ == null) { + return parameters_.get(index); + } else { + return parametersBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. The component parameters.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setParameters(int index, com.google.cloud.designcenter.v1.Parameter value) { + if (parametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureParametersIsMutable(); + parameters_.set(index, value); + onChanged(); + } else { + parametersBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The component parameters.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setParameters( + int index, com.google.cloud.designcenter.v1.Parameter.Builder builderForValue) { + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + parameters_.set(index, builderForValue.build()); + onChanged(); + } else { + parametersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The component parameters.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addParameters(com.google.cloud.designcenter.v1.Parameter value) { + if (parametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureParametersIsMutable(); + parameters_.add(value); + onChanged(); + } else { + parametersBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. The component parameters.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addParameters(int index, com.google.cloud.designcenter.v1.Parameter value) { + if (parametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureParametersIsMutable(); + parameters_.add(index, value); + onChanged(); + } else { + parametersBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The component parameters.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addParameters( + com.google.cloud.designcenter.v1.Parameter.Builder builderForValue) { + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + parameters_.add(builderForValue.build()); + onChanged(); + } else { + parametersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The component parameters.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addParameters( + int index, com.google.cloud.designcenter.v1.Parameter.Builder builderForValue) { + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + parameters_.add(index, builderForValue.build()); + onChanged(); + } else { + parametersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The component parameters.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllParameters( + java.lang.Iterable values) { + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, parameters_); + onChanged(); + } else { + parametersBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. The component parameters.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearParameters() { + if (parametersBuilder_ == null) { + parameters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + parametersBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. The component parameters.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeParameters(int index) { + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + parameters_.remove(index); + onChanged(); + } else { + parametersBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. The component parameters.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter.Builder getParametersBuilder(int index) { + return internalGetParametersFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. The component parameters.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ParameterOrBuilder getParametersOrBuilder(int index) { + if (parametersBuilder_ == null) { + return parameters_.get(index); + } else { + return parametersBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. The component parameters.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getParametersOrBuilderList() { + if (parametersBuilder_ != null) { + return parametersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(parameters_); + } + } + + /** + * + * + *
+     * Optional. The component parameters.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter.Builder addParametersBuilder() { + return internalGetParametersFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.Parameter.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The component parameters.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter.Builder addParametersBuilder(int index) { + return internalGetParametersFieldBuilder() + .addBuilder(index, com.google.cloud.designcenter.v1.Parameter.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The component parameters.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getParametersBuilderList() { + return internalGetParametersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Parameter, + com.google.cloud.designcenter.v1.Parameter.Builder, + com.google.cloud.designcenter.v1.ParameterOrBuilder> + internalGetParametersFieldBuilder() { + if (parametersBuilder_ == null) { + parametersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Parameter, + com.google.cloud.designcenter.v1.Parameter.Builder, + com.google.cloud.designcenter.v1.ParameterOrBuilder>( + parameters_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + parameters_ = null; + } + return parametersBuilder_; + } + + private java.util.List connections_ = + java.util.Collections.emptyList(); + + private void ensureConnectionsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + connections_ = + new java.util.ArrayList( + connections_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.SerializedConnection, + com.google.cloud.designcenter.v1.SerializedConnection.Builder, + com.google.cloud.designcenter.v1.SerializedConnectionOrBuilder> + connectionsBuilder_; + + /** + * + * + *
+     * Optional. The component connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedConnection connections = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getConnectionsList() { + if (connectionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(connections_); + } else { + return connectionsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. The component connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedConnection connections = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getConnectionsCount() { + if (connectionsBuilder_ == null) { + return connections_.size(); + } else { + return connectionsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. The component connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedConnection connections = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.SerializedConnection getConnections(int index) { + if (connectionsBuilder_ == null) { + return connections_.get(index); + } else { + return connectionsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. The component connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedConnection connections = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setConnections( + int index, com.google.cloud.designcenter.v1.SerializedConnection value) { + if (connectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConnectionsIsMutable(); + connections_.set(index, value); + onChanged(); + } else { + connectionsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The component connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedConnection connections = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setConnections( + int index, com.google.cloud.designcenter.v1.SerializedConnection.Builder builderForValue) { + if (connectionsBuilder_ == null) { + ensureConnectionsIsMutable(); + connections_.set(index, builderForValue.build()); + onChanged(); + } else { + connectionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The component connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedConnection connections = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addConnections(com.google.cloud.designcenter.v1.SerializedConnection value) { + if (connectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConnectionsIsMutable(); + connections_.add(value); + onChanged(); + } else { + connectionsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. The component connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedConnection connections = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addConnections( + int index, com.google.cloud.designcenter.v1.SerializedConnection value) { + if (connectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConnectionsIsMutable(); + connections_.add(index, value); + onChanged(); + } else { + connectionsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The component connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedConnection connections = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addConnections( + com.google.cloud.designcenter.v1.SerializedConnection.Builder builderForValue) { + if (connectionsBuilder_ == null) { + ensureConnectionsIsMutable(); + connections_.add(builderForValue.build()); + onChanged(); + } else { + connectionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The component connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedConnection connections = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addConnections( + int index, com.google.cloud.designcenter.v1.SerializedConnection.Builder builderForValue) { + if (connectionsBuilder_ == null) { + ensureConnectionsIsMutable(); + connections_.add(index, builderForValue.build()); + onChanged(); + } else { + connectionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The component connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedConnection connections = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllConnections( + java.lang.Iterable + values) { + if (connectionsBuilder_ == null) { + ensureConnectionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, connections_); + onChanged(); + } else { + connectionsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. The component connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedConnection connections = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearConnections() { + if (connectionsBuilder_ == null) { + connections_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + connectionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. The component connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedConnection connections = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeConnections(int index) { + if (connectionsBuilder_ == null) { + ensureConnectionsIsMutable(); + connections_.remove(index); + onChanged(); + } else { + connectionsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. The component connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedConnection connections = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.SerializedConnection.Builder getConnectionsBuilder( + int index) { + return internalGetConnectionsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. The component connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedConnection connections = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.SerializedConnectionOrBuilder getConnectionsOrBuilder( + int index) { + if (connectionsBuilder_ == null) { + return connections_.get(index); + } else { + return connectionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. The component connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedConnection connections = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getConnectionsOrBuilderList() { + if (connectionsBuilder_ != null) { + return connectionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(connections_); + } + } + + /** + * + * + *
+     * Optional. The component connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedConnection connections = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.SerializedConnection.Builder addConnectionsBuilder() { + return internalGetConnectionsFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.SerializedConnection.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The component connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedConnection connections = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.SerializedConnection.Builder addConnectionsBuilder( + int index) { + return internalGetConnectionsFieldBuilder() + .addBuilder( + index, com.google.cloud.designcenter.v1.SerializedConnection.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The component connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedConnection connections = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getConnectionsBuilderList() { + return internalGetConnectionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.SerializedConnection, + com.google.cloud.designcenter.v1.SerializedConnection.Builder, + com.google.cloud.designcenter.v1.SerializedConnectionOrBuilder> + internalGetConnectionsFieldBuilder() { + if (connectionsBuilder_ == null) { + connectionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.SerializedConnection, + com.google.cloud.designcenter.v1.SerializedConnection.Builder, + com.google.cloud.designcenter.v1.SerializedConnectionOrBuilder>( + connections_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); + connections_ = null; + } + return connectionsBuilder_; + } + + private com.google.protobuf.LazyStringArrayList roles_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureRolesIsMutable() { + if (!roles_.isModifiable()) { + roles_ = new com.google.protobuf.LazyStringArrayList(roles_); + } + bitField0_ |= 0x00000010; + } + + /** + * + * + *
+     * Optional. IAM roles required by the service account to deploy the
+     * component.
+     * 
+ * + * repeated string roles = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the roles. + */ + public com.google.protobuf.ProtocolStringList getRolesList() { + roles_.makeImmutable(); + return roles_; + } + + /** + * + * + *
+     * Optional. IAM roles required by the service account to deploy the
+     * component.
+     * 
+ * + * repeated string roles = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of roles. + */ + public int getRolesCount() { + return roles_.size(); + } + + /** + * + * + *
+     * Optional. IAM roles required by the service account to deploy the
+     * component.
+     * 
+ * + * repeated string roles = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The roles at the given index. + */ + public java.lang.String getRoles(int index) { + return roles_.get(index); + } + + /** + * + * + *
+     * Optional. IAM roles required by the service account to deploy the
+     * component.
+     * 
+ * + * repeated string roles = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the roles at the given index. + */ + public com.google.protobuf.ByteString getRolesBytes(int index) { + return roles_.getByteString(index); + } + + /** + * + * + *
+     * Optional. IAM roles required by the service account to deploy the
+     * component.
+     * 
+ * + * repeated string roles = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The roles to set. + * @return This builder for chaining. + */ + public Builder setRoles(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRolesIsMutable(); + roles_.set(index, value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. IAM roles required by the service account to deploy the
+     * component.
+     * 
+ * + * repeated string roles = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The roles to add. + * @return This builder for chaining. + */ + public Builder addRoles(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRolesIsMutable(); + roles_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. IAM roles required by the service account to deploy the
+     * component.
+     * 
+ * + * repeated string roles = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The roles to add. + * @return This builder for chaining. + */ + public Builder addAllRoles(java.lang.Iterable values) { + ensureRolesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, roles_); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. IAM roles required by the service account to deploy the
+     * component.
+     * 
+ * + * repeated string roles = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRoles() { + roles_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. IAM roles required by the service account to deploy the
+     * component.
+     * 
+ * + * repeated string roles = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the roles to add. + * @return This builder for chaining. + */ + public Builder addRolesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureRolesIsMutable(); + roles_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList apis_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureApisIsMutable() { + if (!apis_.isModifiable()) { + apis_ = new com.google.protobuf.LazyStringArrayList(apis_); + } + bitField0_ |= 0x00000020; + } + + /** + * + * + *
+     * Optional. APIs required to be enabled to deploy the component, in the form
+     * of "*.googleapis.com".
+     * 
+ * + * repeated string apis = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the apis. + */ + public com.google.protobuf.ProtocolStringList getApisList() { + apis_.makeImmutable(); + return apis_; + } + + /** + * + * + *
+     * Optional. APIs required to be enabled to deploy the component, in the form
+     * of "*.googleapis.com".
+     * 
+ * + * repeated string apis = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of apis. + */ + public int getApisCount() { + return apis_.size(); + } + + /** + * + * + *
+     * Optional. APIs required to be enabled to deploy the component, in the form
+     * of "*.googleapis.com".
+     * 
+ * + * repeated string apis = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The apis at the given index. + */ + public java.lang.String getApis(int index) { + return apis_.get(index); + } + + /** + * + * + *
+     * Optional. APIs required to be enabled to deploy the component, in the form
+     * of "*.googleapis.com".
+     * 
+ * + * repeated string apis = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the apis at the given index. + */ + public com.google.protobuf.ByteString getApisBytes(int index) { + return apis_.getByteString(index); + } + + /** + * + * + *
+     * Optional. APIs required to be enabled to deploy the component, in the form
+     * of "*.googleapis.com".
+     * 
+ * + * repeated string apis = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The apis to set. + * @return This builder for chaining. + */ + public Builder setApis(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureApisIsMutable(); + apis_.set(index, value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. APIs required to be enabled to deploy the component, in the form
+     * of "*.googleapis.com".
+     * 
+ * + * repeated string apis = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The apis to add. + * @return This builder for chaining. + */ + public Builder addApis(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureApisIsMutable(); + apis_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. APIs required to be enabled to deploy the component, in the form
+     * of "*.googleapis.com".
+     * 
+ * + * repeated string apis = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The apis to add. + * @return This builder for chaining. + */ + public Builder addAllApis(java.lang.Iterable values) { + ensureApisIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, apis_); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. APIs required to be enabled to deploy the component, in the form
+     * of "*.googleapis.com".
+     * 
+ * + * repeated string apis = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearApis() { + apis_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. APIs required to be enabled to deploy the component, in the form
+     * of "*.googleapis.com".
+     * 
+ * + * repeated string apis = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the apis to add. + * @return This builder for chaining. + */ + public Builder addApisBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureApisIsMutable(); + apis_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
+     * Optional. The component display name.
+     * 
+ * + * 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. The component display name.
+     * 
+ * + * 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. The component display name.
+     * 
+ * + * 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_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The component display name.
+     * 
+ * + * string display_name = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The component display name.
+     * 
+ * + * 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_ |= 0x00000040; + onChanged(); + return this; + } + + private java.util.List + connectionsParameters_ = java.util.Collections.emptyList(); + + private void ensureConnectionsParametersIsMutable() { + if (!((bitField0_ & 0x00000080) != 0)) { + connectionsParameters_ = + new java.util.ArrayList( + connectionsParameters_); + bitField0_ |= 0x00000080; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ConnectionParameters, + com.google.cloud.designcenter.v1.ConnectionParameters.Builder, + com.google.cloud.designcenter.v1.ConnectionParametersOrBuilder> + connectionsParametersBuilder_; + + /** + * + * + *
+     * Output only. The connection parameters of the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getConnectionsParametersList() { + if (connectionsParametersBuilder_ == null) { + return java.util.Collections.unmodifiableList(connectionsParameters_); + } else { + return connectionsParametersBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Output only. The connection parameters of the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getConnectionsParametersCount() { + if (connectionsParametersBuilder_ == null) { + return connectionsParameters_.size(); + } else { + return connectionsParametersBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Output only. The connection parameters of the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ConnectionParameters getConnectionsParameters( + int index) { + if (connectionsParametersBuilder_ == null) { + return connectionsParameters_.get(index); + } else { + return connectionsParametersBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Output only. The connection parameters of the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setConnectionsParameters( + int index, com.google.cloud.designcenter.v1.ConnectionParameters value) { + if (connectionsParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConnectionsParametersIsMutable(); + connectionsParameters_.set(index, value); + onChanged(); + } else { + connectionsParametersBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. The connection parameters of the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setConnectionsParameters( + int index, com.google.cloud.designcenter.v1.ConnectionParameters.Builder builderForValue) { + if (connectionsParametersBuilder_ == null) { + ensureConnectionsParametersIsMutable(); + connectionsParameters_.set(index, builderForValue.build()); + onChanged(); + } else { + connectionsParametersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The connection parameters of the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addConnectionsParameters( + com.google.cloud.designcenter.v1.ConnectionParameters value) { + if (connectionsParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConnectionsParametersIsMutable(); + connectionsParameters_.add(value); + onChanged(); + } else { + connectionsParametersBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Output only. The connection parameters of the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addConnectionsParameters( + int index, com.google.cloud.designcenter.v1.ConnectionParameters value) { + if (connectionsParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConnectionsParametersIsMutable(); + connectionsParameters_.add(index, value); + onChanged(); + } else { + connectionsParametersBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. The connection parameters of the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addConnectionsParameters( + com.google.cloud.designcenter.v1.ConnectionParameters.Builder builderForValue) { + if (connectionsParametersBuilder_ == null) { + ensureConnectionsParametersIsMutable(); + connectionsParameters_.add(builderForValue.build()); + onChanged(); + } else { + connectionsParametersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The connection parameters of the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addConnectionsParameters( + int index, com.google.cloud.designcenter.v1.ConnectionParameters.Builder builderForValue) { + if (connectionsParametersBuilder_ == null) { + ensureConnectionsParametersIsMutable(); + connectionsParameters_.add(index, builderForValue.build()); + onChanged(); + } else { + connectionsParametersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The connection parameters of the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllConnectionsParameters( + java.lang.Iterable + values) { + if (connectionsParametersBuilder_ == null) { + ensureConnectionsParametersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, connectionsParameters_); + onChanged(); + } else { + connectionsParametersBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Output only. The connection parameters of the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearConnectionsParameters() { + if (connectionsParametersBuilder_ == null) { + connectionsParameters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + } else { + connectionsParametersBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Output only. The connection parameters of the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeConnectionsParameters(int index) { + if (connectionsParametersBuilder_ == null) { + ensureConnectionsParametersIsMutable(); + connectionsParameters_.remove(index); + onChanged(); + } else { + connectionsParametersBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Output only. The connection parameters of the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ConnectionParameters.Builder + getConnectionsParametersBuilder(int index) { + return internalGetConnectionsParametersFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Output only. The connection parameters of the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ConnectionParametersOrBuilder + getConnectionsParametersOrBuilder(int index) { + if (connectionsParametersBuilder_ == null) { + return connectionsParameters_.get(index); + } else { + return connectionsParametersBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Output only. The connection parameters of the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getConnectionsParametersOrBuilderList() { + if (connectionsParametersBuilder_ != null) { + return connectionsParametersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(connectionsParameters_); + } + } + + /** + * + * + *
+     * Output only. The connection parameters of the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ConnectionParameters.Builder + addConnectionsParametersBuilder() { + return internalGetConnectionsParametersFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.ConnectionParameters.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. The connection parameters of the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ConnectionParameters.Builder + addConnectionsParametersBuilder(int index) { + return internalGetConnectionsParametersFieldBuilder() + .addBuilder( + index, com.google.cloud.designcenter.v1.ConnectionParameters.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. The connection parameters of the component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getConnectionsParametersBuilderList() { + return internalGetConnectionsParametersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ConnectionParameters, + com.google.cloud.designcenter.v1.ConnectionParameters.Builder, + com.google.cloud.designcenter.v1.ConnectionParametersOrBuilder> + internalGetConnectionsParametersFieldBuilder() { + if (connectionsParametersBuilder_ == null) { + connectionsParametersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ConnectionParameters, + com.google.cloud.designcenter.v1.ConnectionParameters.Builder, + com.google.cloud.designcenter.v1.ConnectionParametersOrBuilder>( + connectionsParameters_, + ((bitField0_ & 0x00000080) != 0), + getParentForChildren(), + isClean()); + connectionsParameters_ = null; + } + return connectionsParametersBuilder_; + } + + private java.util.List + componentParameterSchema_ = java.util.Collections.emptyList(); + + private void ensureComponentParameterSchemaIsMutable() { + if (!((bitField0_ & 0x00000100) != 0)) { + componentParameterSchema_ = + new java.util.ArrayList( + componentParameterSchema_); + bitField0_ |= 0x00000100; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ComponentParameterSchema, + com.google.cloud.designcenter.v1.ComponentParameterSchema.Builder, + com.google.cloud.designcenter.v1.ComponentParameterSchemaOrBuilder> + componentParameterSchemaBuilder_; + + /** + * + * + *
+     * Output only. The component parameter schema, which includes possible
+     * parameter values.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getComponentParameterSchemaList() { + if (componentParameterSchemaBuilder_ == null) { + return java.util.Collections.unmodifiableList(componentParameterSchema_); + } else { + return componentParameterSchemaBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Output only. The component parameter schema, which includes possible
+     * parameter values.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getComponentParameterSchemaCount() { + if (componentParameterSchemaBuilder_ == null) { + return componentParameterSchema_.size(); + } else { + return componentParameterSchemaBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Output only. The component parameter schema, which includes possible
+     * parameter values.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ComponentParameterSchema getComponentParameterSchema( + int index) { + if (componentParameterSchemaBuilder_ == null) { + return componentParameterSchema_.get(index); + } else { + return componentParameterSchemaBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Output only. The component parameter schema, which includes possible
+     * parameter values.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setComponentParameterSchema( + int index, com.google.cloud.designcenter.v1.ComponentParameterSchema value) { + if (componentParameterSchemaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureComponentParameterSchemaIsMutable(); + componentParameterSchema_.set(index, value); + onChanged(); + } else { + componentParameterSchemaBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. The component parameter schema, which includes possible
+     * parameter values.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setComponentParameterSchema( + int index, + com.google.cloud.designcenter.v1.ComponentParameterSchema.Builder builderForValue) { + if (componentParameterSchemaBuilder_ == null) { + ensureComponentParameterSchemaIsMutable(); + componentParameterSchema_.set(index, builderForValue.build()); + onChanged(); + } else { + componentParameterSchemaBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The component parameter schema, which includes possible
+     * parameter values.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addComponentParameterSchema( + com.google.cloud.designcenter.v1.ComponentParameterSchema value) { + if (componentParameterSchemaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureComponentParameterSchemaIsMutable(); + componentParameterSchema_.add(value); + onChanged(); + } else { + componentParameterSchemaBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Output only. The component parameter schema, which includes possible
+     * parameter values.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addComponentParameterSchema( + int index, com.google.cloud.designcenter.v1.ComponentParameterSchema value) { + if (componentParameterSchemaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureComponentParameterSchemaIsMutable(); + componentParameterSchema_.add(index, value); + onChanged(); + } else { + componentParameterSchemaBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. The component parameter schema, which includes possible
+     * parameter values.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addComponentParameterSchema( + com.google.cloud.designcenter.v1.ComponentParameterSchema.Builder builderForValue) { + if (componentParameterSchemaBuilder_ == null) { + ensureComponentParameterSchemaIsMutable(); + componentParameterSchema_.add(builderForValue.build()); + onChanged(); + } else { + componentParameterSchemaBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The component parameter schema, which includes possible
+     * parameter values.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addComponentParameterSchema( + int index, + com.google.cloud.designcenter.v1.ComponentParameterSchema.Builder builderForValue) { + if (componentParameterSchemaBuilder_ == null) { + ensureComponentParameterSchemaIsMutable(); + componentParameterSchema_.add(index, builderForValue.build()); + onChanged(); + } else { + componentParameterSchemaBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The component parameter schema, which includes possible
+     * parameter values.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllComponentParameterSchema( + java.lang.Iterable + values) { + if (componentParameterSchemaBuilder_ == null) { + ensureComponentParameterSchemaIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, componentParameterSchema_); + onChanged(); + } else { + componentParameterSchemaBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Output only. The component parameter schema, which includes possible
+     * parameter values.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearComponentParameterSchema() { + if (componentParameterSchemaBuilder_ == null) { + componentParameterSchema_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + } else { + componentParameterSchemaBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Output only. The component parameter schema, which includes possible
+     * parameter values.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeComponentParameterSchema(int index) { + if (componentParameterSchemaBuilder_ == null) { + ensureComponentParameterSchemaIsMutable(); + componentParameterSchema_.remove(index); + onChanged(); + } else { + componentParameterSchemaBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Output only. The component parameter schema, which includes possible
+     * parameter values.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ComponentParameterSchema.Builder + getComponentParameterSchemaBuilder(int index) { + return internalGetComponentParameterSchemaFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Output only. The component parameter schema, which includes possible
+     * parameter values.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ComponentParameterSchemaOrBuilder + getComponentParameterSchemaOrBuilder(int index) { + if (componentParameterSchemaBuilder_ == null) { + return componentParameterSchema_.get(index); + } else { + return componentParameterSchemaBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Output only. The component parameter schema, which includes possible
+     * parameter values.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends com.google.cloud.designcenter.v1.ComponentParameterSchemaOrBuilder> + getComponentParameterSchemaOrBuilderList() { + if (componentParameterSchemaBuilder_ != null) { + return componentParameterSchemaBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(componentParameterSchema_); + } + } + + /** + * + * + *
+     * Output only. The component parameter schema, which includes possible
+     * parameter values.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ComponentParameterSchema.Builder + addComponentParameterSchemaBuilder() { + return internalGetComponentParameterSchemaFieldBuilder() + .addBuilder( + com.google.cloud.designcenter.v1.ComponentParameterSchema.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. The component parameter schema, which includes possible
+     * parameter values.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ComponentParameterSchema.Builder + addComponentParameterSchemaBuilder(int index) { + return internalGetComponentParameterSchemaFieldBuilder() + .addBuilder( + index, + com.google.cloud.designcenter.v1.ComponentParameterSchema.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. The component parameter schema, which includes possible
+     * parameter values.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getComponentParameterSchemaBuilderList() { + return internalGetComponentParameterSchemaFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ComponentParameterSchema, + com.google.cloud.designcenter.v1.ComponentParameterSchema.Builder, + com.google.cloud.designcenter.v1.ComponentParameterSchemaOrBuilder> + internalGetComponentParameterSchemaFieldBuilder() { + if (componentParameterSchemaBuilder_ == null) { + componentParameterSchemaBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ComponentParameterSchema, + com.google.cloud.designcenter.v1.ComponentParameterSchema.Builder, + com.google.cloud.designcenter.v1.ComponentParameterSchemaOrBuilder>( + componentParameterSchema_, + ((bitField0_ & 0x00000100) != 0), + getParentForChildren(), + isClean()); + componentParameterSchema_ = null; + } + return componentParameterSchemaBuilder_; + } + + private com.google.cloud.designcenter.v1.ComponentApplicationInfo applicationInfo_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ComponentApplicationInfo, + com.google.cloud.designcenter.v1.ComponentApplicationInfo.Builder, + com.google.cloud.designcenter.v1.ComponentApplicationInfoOrBuilder> + applicationInfoBuilder_; + + /** + * + * + *
+     * Optional. The application associated with the component.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ComponentApplicationInfo application_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the applicationInfo field is set. + */ + public boolean hasApplicationInfo() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
+     * Optional. The application associated with the component.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ComponentApplicationInfo application_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The applicationInfo. + */ + public com.google.cloud.designcenter.v1.ComponentApplicationInfo getApplicationInfo() { + if (applicationInfoBuilder_ == null) { + return applicationInfo_ == null + ? com.google.cloud.designcenter.v1.ComponentApplicationInfo.getDefaultInstance() + : applicationInfo_; + } else { + return applicationInfoBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The application associated with the component.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ComponentApplicationInfo application_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setApplicationInfo( + com.google.cloud.designcenter.v1.ComponentApplicationInfo value) { + if (applicationInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + applicationInfo_ = value; + } else { + applicationInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The application associated with the component.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ComponentApplicationInfo application_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setApplicationInfo( + com.google.cloud.designcenter.v1.ComponentApplicationInfo.Builder builderForValue) { + if (applicationInfoBuilder_ == null) { + applicationInfo_ = builderForValue.build(); + } else { + applicationInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The application associated with the component.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ComponentApplicationInfo application_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeApplicationInfo( + com.google.cloud.designcenter.v1.ComponentApplicationInfo value) { + if (applicationInfoBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && applicationInfo_ != null + && applicationInfo_ + != com.google.cloud.designcenter.v1.ComponentApplicationInfo.getDefaultInstance()) { + getApplicationInfoBuilder().mergeFrom(value); + } else { + applicationInfo_ = value; + } + } else { + applicationInfoBuilder_.mergeFrom(value); + } + if (applicationInfo_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The application associated with the component.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ComponentApplicationInfo application_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearApplicationInfo() { + bitField0_ = (bitField0_ & ~0x00000200); + applicationInfo_ = null; + if (applicationInfoBuilder_ != null) { + applicationInfoBuilder_.dispose(); + applicationInfoBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The application associated with the component.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ComponentApplicationInfo application_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ComponentApplicationInfo.Builder + getApplicationInfoBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return internalGetApplicationInfoFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The application associated with the component.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ComponentApplicationInfo application_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ComponentApplicationInfoOrBuilder + getApplicationInfoOrBuilder() { + if (applicationInfoBuilder_ != null) { + return applicationInfoBuilder_.getMessageOrBuilder(); + } else { + return applicationInfo_ == null + ? com.google.cloud.designcenter.v1.ComponentApplicationInfo.getDefaultInstance() + : applicationInfo_; + } + } + + /** + * + * + *
+     * Optional. The application associated with the component.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ComponentApplicationInfo application_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ComponentApplicationInfo, + com.google.cloud.designcenter.v1.ComponentApplicationInfo.Builder, + com.google.cloud.designcenter.v1.ComponentApplicationInfoOrBuilder> + internalGetApplicationInfoFieldBuilder() { + if (applicationInfoBuilder_ == null) { + applicationInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ComponentApplicationInfo, + com.google.cloud.designcenter.v1.ComponentApplicationInfo.Builder, + com.google.cloud.designcenter.v1.ComponentApplicationInfoOrBuilder>( + getApplicationInfo(), getParentForChildren(), isClean()); + applicationInfo_ = null; + } + return applicationInfoBuilder_; + } + + private boolean useAsRootModule_; + + /** + * + * + *
+     * Optional. Whether the component is exported as a separate terraform root
+     * module in a composite application template. If this is false, then native
+     * components will be exported as a submodule of a separate terraform root
+     * module.
+     * 
+ * + * bool use_as_root_module = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The useAsRootModule. + */ + @java.lang.Override + public boolean getUseAsRootModule() { + return useAsRootModule_; + } + + /** + * + * + *
+     * Optional. Whether the component is exported as a separate terraform root
+     * module in a composite application template. If this is false, then native
+     * components will be exported as a submodule of a separate terraform root
+     * module.
+     * 
+ * + * bool use_as_root_module = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The useAsRootModule to set. + * @return This builder for chaining. + */ + public Builder setUseAsRootModule(boolean value) { + + useAsRootModule_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Whether the component is exported as a separate terraform root
+     * module in a composite application template. If this is false, then native
+     * components will be exported as a submodule of a separate terraform root
+     * module.
+     * 
+ * + * bool use_as_root_module = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearUseAsRootModule() { + bitField0_ = (bitField0_ & ~0x00000400); + useAsRootModule_ = false; + onChanged(); + return this; + } + + private java.util.List + inputVariableAliases_ = java.util.Collections.emptyList(); + + private void ensureInputVariableAliasesIsMutable() { + if (!((bitField0_ & 0x00000800) != 0)) { + inputVariableAliases_ = + new java.util.ArrayList( + inputVariableAliases_); + bitField0_ |= 0x00000800; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.InputVariableAlias, + com.google.cloud.designcenter.v1.InputVariableAlias.Builder, + com.google.cloud.designcenter.v1.InputVariableAliasOrBuilder> + inputVariableAliasesBuilder_; + + /** + * + * + *
+     * Optional. Input variable aliases defined for this serialized component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.InputVariableAlias input_variable_aliases = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getInputVariableAliasesList() { + if (inputVariableAliasesBuilder_ == null) { + return java.util.Collections.unmodifiableList(inputVariableAliases_); + } else { + return inputVariableAliasesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. Input variable aliases defined for this serialized component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.InputVariableAlias input_variable_aliases = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getInputVariableAliasesCount() { + if (inputVariableAliasesBuilder_ == null) { + return inputVariableAliases_.size(); + } else { + return inputVariableAliasesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. Input variable aliases defined for this serialized component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.InputVariableAlias input_variable_aliases = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.InputVariableAlias getInputVariableAliases(int index) { + if (inputVariableAliasesBuilder_ == null) { + return inputVariableAliases_.get(index); + } else { + return inputVariableAliasesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. Input variable aliases defined for this serialized component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.InputVariableAlias input_variable_aliases = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setInputVariableAliases( + int index, com.google.cloud.designcenter.v1.InputVariableAlias value) { + if (inputVariableAliasesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputVariableAliasesIsMutable(); + inputVariableAliases_.set(index, value); + onChanged(); + } else { + inputVariableAliasesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Input variable aliases defined for this serialized component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.InputVariableAlias input_variable_aliases = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setInputVariableAliases( + int index, com.google.cloud.designcenter.v1.InputVariableAlias.Builder builderForValue) { + if (inputVariableAliasesBuilder_ == null) { + ensureInputVariableAliasesIsMutable(); + inputVariableAliases_.set(index, builderForValue.build()); + onChanged(); + } else { + inputVariableAliasesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Input variable aliases defined for this serialized component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.InputVariableAlias input_variable_aliases = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addInputVariableAliases( + com.google.cloud.designcenter.v1.InputVariableAlias value) { + if (inputVariableAliasesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputVariableAliasesIsMutable(); + inputVariableAliases_.add(value); + onChanged(); + } else { + inputVariableAliasesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. Input variable aliases defined for this serialized component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.InputVariableAlias input_variable_aliases = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addInputVariableAliases( + int index, com.google.cloud.designcenter.v1.InputVariableAlias value) { + if (inputVariableAliasesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputVariableAliasesIsMutable(); + inputVariableAliases_.add(index, value); + onChanged(); + } else { + inputVariableAliasesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Input variable aliases defined for this serialized component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.InputVariableAlias input_variable_aliases = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addInputVariableAliases( + com.google.cloud.designcenter.v1.InputVariableAlias.Builder builderForValue) { + if (inputVariableAliasesBuilder_ == null) { + ensureInputVariableAliasesIsMutable(); + inputVariableAliases_.add(builderForValue.build()); + onChanged(); + } else { + inputVariableAliasesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Input variable aliases defined for this serialized component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.InputVariableAlias input_variable_aliases = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addInputVariableAliases( + int index, com.google.cloud.designcenter.v1.InputVariableAlias.Builder builderForValue) { + if (inputVariableAliasesBuilder_ == null) { + ensureInputVariableAliasesIsMutable(); + inputVariableAliases_.add(index, builderForValue.build()); + onChanged(); + } else { + inputVariableAliasesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Input variable aliases defined for this serialized component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.InputVariableAlias input_variable_aliases = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllInputVariableAliases( + java.lang.Iterable values) { + if (inputVariableAliasesBuilder_ == null) { + ensureInputVariableAliasesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, inputVariableAliases_); + onChanged(); + } else { + inputVariableAliasesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. Input variable aliases defined for this serialized component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.InputVariableAlias input_variable_aliases = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearInputVariableAliases() { + if (inputVariableAliasesBuilder_ == null) { + inputVariableAliases_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + } else { + inputVariableAliasesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Input variable aliases defined for this serialized component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.InputVariableAlias input_variable_aliases = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeInputVariableAliases(int index) { + if (inputVariableAliasesBuilder_ == null) { + ensureInputVariableAliasesIsMutable(); + inputVariableAliases_.remove(index); + onChanged(); + } else { + inputVariableAliasesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. Input variable aliases defined for this serialized component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.InputVariableAlias input_variable_aliases = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.InputVariableAlias.Builder + getInputVariableAliasesBuilder(int index) { + return internalGetInputVariableAliasesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. Input variable aliases defined for this serialized component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.InputVariableAlias input_variable_aliases = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.InputVariableAliasOrBuilder + getInputVariableAliasesOrBuilder(int index) { + if (inputVariableAliasesBuilder_ == null) { + return inputVariableAliases_.get(index); + } else { + return inputVariableAliasesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. Input variable aliases defined for this serialized component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.InputVariableAlias input_variable_aliases = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getInputVariableAliasesOrBuilderList() { + if (inputVariableAliasesBuilder_ != null) { + return inputVariableAliasesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(inputVariableAliases_); + } + } + + /** + * + * + *
+     * Optional. Input variable aliases defined for this serialized component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.InputVariableAlias input_variable_aliases = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.InputVariableAlias.Builder + addInputVariableAliasesBuilder() { + return internalGetInputVariableAliasesFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.InputVariableAlias.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Input variable aliases defined for this serialized component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.InputVariableAlias input_variable_aliases = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.InputVariableAlias.Builder + addInputVariableAliasesBuilder(int index) { + return internalGetInputVariableAliasesFieldBuilder() + .addBuilder( + index, com.google.cloud.designcenter.v1.InputVariableAlias.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Input variable aliases defined for this serialized component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.InputVariableAlias input_variable_aliases = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getInputVariableAliasesBuilderList() { + return internalGetInputVariableAliasesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.InputVariableAlias, + com.google.cloud.designcenter.v1.InputVariableAlias.Builder, + com.google.cloud.designcenter.v1.InputVariableAliasOrBuilder> + internalGetInputVariableAliasesFieldBuilder() { + if (inputVariableAliasesBuilder_ == null) { + inputVariableAliasesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.InputVariableAlias, + com.google.cloud.designcenter.v1.InputVariableAlias.Builder, + com.google.cloud.designcenter.v1.InputVariableAliasOrBuilder>( + inputVariableAliases_, + ((bitField0_ & 0x00000800) != 0), + getParentForChildren(), + isClean()); + inputVariableAliases_ = null; + } + return inputVariableAliasesBuilder_; + } + + private java.lang.Object applicationTemplateRevisionUri_ = ""; + + /** + * + * + *
+     * Optional. The application template revision used to generate the component.
+     * 
+ * + * + * string application_template_revision_uri = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The applicationTemplateRevisionUri. + */ + public java.lang.String getApplicationTemplateRevisionUri() { + java.lang.Object ref = applicationTemplateRevisionUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + applicationTemplateRevisionUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The application template revision used to generate the component.
+     * 
+ * + * + * string application_template_revision_uri = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for applicationTemplateRevisionUri. + */ + public com.google.protobuf.ByteString getApplicationTemplateRevisionUriBytes() { + java.lang.Object ref = applicationTemplateRevisionUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + applicationTemplateRevisionUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The application template revision used to generate the component.
+     * 
+ * + * + * string application_template_revision_uri = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The applicationTemplateRevisionUri to set. + * @return This builder for chaining. + */ + public Builder setApplicationTemplateRevisionUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + applicationTemplateRevisionUri_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The application template revision used to generate the component.
+     * 
+ * + * + * string application_template_revision_uri = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearApplicationTemplateRevisionUri() { + applicationTemplateRevisionUri_ = getDefaultInstance().getApplicationTemplateRevisionUri(); + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The application template revision used to generate the component.
+     * 
+ * + * + * string application_template_revision_uri = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes for applicationTemplateRevisionUri to set. + * @return This builder for chaining. + */ + public Builder setApplicationTemplateRevisionUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + applicationTemplateRevisionUri_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.SerializedComponent) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.SerializedComponent) + private static final com.google.cloud.designcenter.v1.SerializedComponent DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.SerializedComponent(); + } + + public static com.google.cloud.designcenter.v1.SerializedComponent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SerializedComponent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.SerializedComponent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SerializedComponentOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SerializedComponentOrBuilder.java new file mode 100644 index 000000000000..47a2c7441c16 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SerializedComponentOrBuilder.java @@ -0,0 +1,649 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface SerializedComponentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.SerializedComponent) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The component URI.
+   * 
+ * + * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The uri. + */ + java.lang.String getUri(); + + /** + * + * + *
+   * Optional. The component URI.
+   * 
+ * + * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for uri. + */ + com.google.protobuf.ByteString getUriBytes(); + + /** + * + * + *
+   * Optional. The shared template used to generate the component.
+   * 
+ * + * string shared_template_revision_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sharedTemplateRevisionUri. + */ + java.lang.String getSharedTemplateRevisionUri(); + + /** + * + * + *
+   * Optional. The shared template used to generate the component.
+   * 
+ * + * string shared_template_revision_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for sharedTemplateRevisionUri. + */ + com.google.protobuf.ByteString getSharedTemplateRevisionUriBytes(); + + /** + * + * + *
+   * Optional. The component parameters.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getParametersList(); + + /** + * + * + *
+   * Optional. The component parameters.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.Parameter getParameters(int index); + + /** + * + * + *
+   * Optional. The component parameters.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getParametersCount(); + + /** + * + * + *
+   * Optional. The component parameters.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getParametersOrBuilderList(); + + /** + * + * + *
+   * Optional. The component parameters.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.ParameterOrBuilder getParametersOrBuilder(int index); + + /** + * + * + *
+   * Optional. The component connections.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedConnection connections = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getConnectionsList(); + + /** + * + * + *
+   * Optional. The component connections.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedConnection connections = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.SerializedConnection getConnections(int index); + + /** + * + * + *
+   * Optional. The component connections.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedConnection connections = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getConnectionsCount(); + + /** + * + * + *
+   * Optional. The component connections.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedConnection connections = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getConnectionsOrBuilderList(); + + /** + * + * + *
+   * Optional. The component connections.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.SerializedConnection connections = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.SerializedConnectionOrBuilder getConnectionsOrBuilder(int index); + + /** + * + * + *
+   * Optional. IAM roles required by the service account to deploy the
+   * component.
+   * 
+ * + * repeated string roles = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the roles. + */ + java.util.List getRolesList(); + + /** + * + * + *
+   * Optional. IAM roles required by the service account to deploy the
+   * component.
+   * 
+ * + * repeated string roles = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of roles. + */ + int getRolesCount(); + + /** + * + * + *
+   * Optional. IAM roles required by the service account to deploy the
+   * component.
+   * 
+ * + * repeated string roles = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The roles at the given index. + */ + java.lang.String getRoles(int index); + + /** + * + * + *
+   * Optional. IAM roles required by the service account to deploy the
+   * component.
+   * 
+ * + * repeated string roles = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the roles at the given index. + */ + com.google.protobuf.ByteString getRolesBytes(int index); + + /** + * + * + *
+   * Optional. APIs required to be enabled to deploy the component, in the form
+   * of "*.googleapis.com".
+   * 
+ * + * repeated string apis = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the apis. + */ + java.util.List getApisList(); + + /** + * + * + *
+   * Optional. APIs required to be enabled to deploy the component, in the form
+   * of "*.googleapis.com".
+   * 
+ * + * repeated string apis = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of apis. + */ + int getApisCount(); + + /** + * + * + *
+   * Optional. APIs required to be enabled to deploy the component, in the form
+   * of "*.googleapis.com".
+   * 
+ * + * repeated string apis = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The apis at the given index. + */ + java.lang.String getApis(int index); + + /** + * + * + *
+   * Optional. APIs required to be enabled to deploy the component, in the form
+   * of "*.googleapis.com".
+   * 
+ * + * repeated string apis = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the apis at the given index. + */ + com.google.protobuf.ByteString getApisBytes(int index); + + /** + * + * + *
+   * Optional. The component display name.
+   * 
+ * + * string display_name = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
+   * Optional. The component display name.
+   * 
+ * + * string display_name = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Output only. The connection parameters of the component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getConnectionsParametersList(); + + /** + * + * + *
+   * Output only. The connection parameters of the component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.ConnectionParameters getConnectionsParameters(int index); + + /** + * + * + *
+   * Output only. The connection parameters of the component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getConnectionsParametersCount(); + + /** + * + * + *
+   * Output only. The connection parameters of the component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getConnectionsParametersOrBuilderList(); + + /** + * + * + *
+   * Output only. The connection parameters of the component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ConnectionParameters connections_parameters = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.ConnectionParametersOrBuilder getConnectionsParametersOrBuilder( + int index); + + /** + * + * + *
+   * Output only. The component parameter schema, which includes possible
+   * parameter values.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getComponentParameterSchemaList(); + + /** + * + * + *
+   * Output only. The component parameter schema, which includes possible
+   * parameter values.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.ComponentParameterSchema getComponentParameterSchema(int index); + + /** + * + * + *
+   * Output only. The component parameter schema, which includes possible
+   * parameter values.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getComponentParameterSchemaCount(); + + /** + * + * + *
+   * Output only. The component parameter schema, which includes possible
+   * parameter values.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getComponentParameterSchemaOrBuilderList(); + + /** + * + * + *
+   * Output only. The component parameter schema, which includes possible
+   * parameter values.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ComponentParameterSchema component_parameter_schema = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.ComponentParameterSchemaOrBuilder + getComponentParameterSchemaOrBuilder(int index); + + /** + * + * + *
+   * Optional. The application associated with the component.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ComponentApplicationInfo application_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the applicationInfo field is set. + */ + boolean hasApplicationInfo(); + + /** + * + * + *
+   * Optional. The application associated with the component.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ComponentApplicationInfo application_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The applicationInfo. + */ + com.google.cloud.designcenter.v1.ComponentApplicationInfo getApplicationInfo(); + + /** + * + * + *
+   * Optional. The application associated with the component.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ComponentApplicationInfo application_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.ComponentApplicationInfoOrBuilder getApplicationInfoOrBuilder(); + + /** + * + * + *
+   * Optional. Whether the component is exported as a separate terraform root
+   * module in a composite application template. If this is false, then native
+   * components will be exported as a submodule of a separate terraform root
+   * module.
+   * 
+ * + * bool use_as_root_module = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The useAsRootModule. + */ + boolean getUseAsRootModule(); + + /** + * + * + *
+   * Optional. Input variable aliases defined for this serialized component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.InputVariableAlias input_variable_aliases = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getInputVariableAliasesList(); + + /** + * + * + *
+   * Optional. Input variable aliases defined for this serialized component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.InputVariableAlias input_variable_aliases = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.InputVariableAlias getInputVariableAliases(int index); + + /** + * + * + *
+   * Optional. Input variable aliases defined for this serialized component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.InputVariableAlias input_variable_aliases = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getInputVariableAliasesCount(); + + /** + * + * + *
+   * Optional. Input variable aliases defined for this serialized component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.InputVariableAlias input_variable_aliases = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getInputVariableAliasesOrBuilderList(); + + /** + * + * + *
+   * Optional. Input variable aliases defined for this serialized component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.InputVariableAlias input_variable_aliases = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.InputVariableAliasOrBuilder getInputVariableAliasesOrBuilder( + int index); + + /** + * + * + *
+   * Optional. The application template revision used to generate the component.
+   * 
+ * + * string application_template_revision_uri = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The applicationTemplateRevisionUri. + */ + java.lang.String getApplicationTemplateRevisionUri(); + + /** + * + * + *
+   * Optional. The application template revision used to generate the component.
+   * 
+ * + * string application_template_revision_uri = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for applicationTemplateRevisionUri. + */ + com.google.protobuf.ByteString getApplicationTemplateRevisionUriBytes(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SerializedConnection.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SerializedConnection.java new file mode 100644 index 000000000000..6784cf6b280f --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SerializedConnection.java @@ -0,0 +1,2171 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Serialized connection.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.SerializedConnection} + */ +@com.google.protobuf.Generated +public final class SerializedConnection extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.SerializedConnection) + SerializedConnectionOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "SerializedConnection"); + } + + // Use SerializedConnection.newBuilder() to construct. + private SerializedConnection(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SerializedConnection() { + uri_ = ""; + destinationComponentUri_ = ""; + sourceComponentParameters_ = java.util.Collections.emptyList(); + destinationComponentParameters_ = java.util.Collections.emptyList(); + dependencyType_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringResourcesProto + .internal_static_google_cloud_designcenter_v1_SerializedConnection_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringResourcesProto + .internal_static_google_cloud_designcenter_v1_SerializedConnection_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.SerializedConnection.class, + com.google.cloud.designcenter.v1.SerializedConnection.Builder.class); + } + + public static final int URI_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; + + /** + * + * + *
+   * Optional. The connection URI.
+   * 
+ * + * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The uri. + */ + @java.lang.Override + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The connection URI.
+   * 
+ * + * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for uri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESTINATION_COMPONENT_URI_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object destinationComponentUri_ = ""; + + /** + * + * + *
+   * Optional. The destination component URI used to generate the connection.
+   * 
+ * + * string destination_component_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The destinationComponentUri. + */ + @java.lang.Override + public java.lang.String getDestinationComponentUri() { + java.lang.Object ref = destinationComponentUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + destinationComponentUri_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The destination component URI used to generate the connection.
+   * 
+ * + * string destination_component_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for destinationComponentUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDestinationComponentUriBytes() { + java.lang.Object ref = destinationComponentUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + destinationComponentUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SOURCE_COMPONENT_PARAMETERS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private java.util.List sourceComponentParameters_; + + /** + * + * + *
+   * Optional. The parameters of the connection associated with the source
+   * component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getSourceComponentParametersList() { + return sourceComponentParameters_; + } + + /** + * + * + *
+   * Optional. The parameters of the connection associated with the source
+   * component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getSourceComponentParametersOrBuilderList() { + return sourceComponentParameters_; + } + + /** + * + * + *
+   * Optional. The parameters of the connection associated with the source
+   * component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getSourceComponentParametersCount() { + return sourceComponentParameters_.size(); + } + + /** + * + * + *
+   * Optional. The parameters of the connection associated with the source
+   * component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.Parameter getSourceComponentParameters(int index) { + return sourceComponentParameters_.get(index); + } + + /** + * + * + *
+   * Optional. The parameters of the connection associated with the source
+   * component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ParameterOrBuilder getSourceComponentParametersOrBuilder( + int index) { + return sourceComponentParameters_.get(index); + } + + public static final int DESTINATION_COMPONENT_PARAMETERS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private java.util.List + destinationComponentParameters_; + + /** + * + * + *
+   * Optional. The parameters of the connection associated with the destination
+   * component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getDestinationComponentParametersList() { + return destinationComponentParameters_; + } + + /** + * + * + *
+   * Optional. The parameters of the connection associated with the destination
+   * component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getDestinationComponentParametersOrBuilderList() { + return destinationComponentParameters_; + } + + /** + * + * + *
+   * Optional. The parameters of the connection associated with the destination
+   * component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getDestinationComponentParametersCount() { + return destinationComponentParameters_.size(); + } + + /** + * + * + *
+   * Optional. The parameters of the connection associated with the destination
+   * component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.Parameter getDestinationComponentParameters(int index) { + return destinationComponentParameters_.get(index); + } + + /** + * + * + *
+   * Optional. The parameters of the connection associated with the destination
+   * component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ParameterOrBuilder + getDestinationComponentParametersOrBuilder(int index) { + return destinationComponentParameters_.get(index); + } + + public static final int DEPENDENCY_TYPE_FIELD_NUMBER = 6; + private int dependencyType_ = 0; + + /** + * + * + *
+   * Output only. The type of the connection (data or logical).
+   * 
+ * + * + * .google.cloud.designcenter.v1.ConnectionDependencyType dependency_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for dependencyType. + */ + @java.lang.Override + public int getDependencyTypeValue() { + return dependencyType_; + } + + /** + * + * + *
+   * Output only. The type of the connection (data or logical).
+   * 
+ * + * + * .google.cloud.designcenter.v1.ConnectionDependencyType dependency_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dependencyType. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ConnectionDependencyType getDependencyType() { + com.google.cloud.designcenter.v1.ConnectionDependencyType result = + com.google.cloud.designcenter.v1.ConnectionDependencyType.forNumber(dependencyType_); + return result == null + ? com.google.cloud.designcenter.v1.ConnectionDependencyType.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.GeneratedMessage.isStringEmpty(uri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, uri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(destinationComponentUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, destinationComponentUri_); + } + for (int i = 0; i < sourceComponentParameters_.size(); i++) { + output.writeMessage(4, sourceComponentParameters_.get(i)); + } + for (int i = 0; i < destinationComponentParameters_.size(); i++) { + output.writeMessage(5, destinationComponentParameters_.get(i)); + } + if (dependencyType_ + != com.google.cloud.designcenter.v1.ConnectionDependencyType + .CONNECTION_DEPENDENCY_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(6, dependencyType_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, uri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(destinationComponentUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, destinationComponentUri_); + } + for (int i = 0; i < sourceComponentParameters_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, sourceComponentParameters_.get(i)); + } + for (int i = 0; i < destinationComponentParameters_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, destinationComponentParameters_.get(i)); + } + if (dependencyType_ + != com.google.cloud.designcenter.v1.ConnectionDependencyType + .CONNECTION_DEPENDENCY_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, dependencyType_); + } + 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.designcenter.v1.SerializedConnection)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.SerializedConnection other = + (com.google.cloud.designcenter.v1.SerializedConnection) obj; + + if (!getUri().equals(other.getUri())) return false; + if (!getDestinationComponentUri().equals(other.getDestinationComponentUri())) return false; + if (!getSourceComponentParametersList().equals(other.getSourceComponentParametersList())) + return false; + if (!getDestinationComponentParametersList() + .equals(other.getDestinationComponentParametersList())) return false; + if (dependencyType_ != other.dependencyType_) 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) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + hash = (37 * hash) + DESTINATION_COMPONENT_URI_FIELD_NUMBER; + hash = (53 * hash) + getDestinationComponentUri().hashCode(); + if (getSourceComponentParametersCount() > 0) { + hash = (37 * hash) + SOURCE_COMPONENT_PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getSourceComponentParametersList().hashCode(); + } + if (getDestinationComponentParametersCount() > 0) { + hash = (37 * hash) + DESTINATION_COMPONENT_PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getDestinationComponentParametersList().hashCode(); + } + hash = (37 * hash) + DEPENDENCY_TYPE_FIELD_NUMBER; + hash = (53 * hash) + dependencyType_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.SerializedConnection parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.SerializedConnection 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.designcenter.v1.SerializedConnection parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.SerializedConnection parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.SerializedConnection parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.SerializedConnection parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.SerializedConnection parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.SerializedConnection parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.SerializedConnection parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.SerializedConnection parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.SerializedConnection parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.SerializedConnection parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.SerializedConnection 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Serialized connection.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.SerializedConnection} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.SerializedConnection) + com.google.cloud.designcenter.v1.SerializedConnectionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringResourcesProto + .internal_static_google_cloud_designcenter_v1_SerializedConnection_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringResourcesProto + .internal_static_google_cloud_designcenter_v1_SerializedConnection_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.SerializedConnection.class, + com.google.cloud.designcenter.v1.SerializedConnection.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.SerializedConnection.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + uri_ = ""; + destinationComponentUri_ = ""; + if (sourceComponentParametersBuilder_ == null) { + sourceComponentParameters_ = java.util.Collections.emptyList(); + } else { + sourceComponentParameters_ = null; + sourceComponentParametersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + if (destinationComponentParametersBuilder_ == null) { + destinationComponentParameters_ = java.util.Collections.emptyList(); + } else { + destinationComponentParameters_ = null; + destinationComponentParametersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + dependencyType_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.AuthoringResourcesProto + .internal_static_google_cloud_designcenter_v1_SerializedConnection_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.SerializedConnection getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.SerializedConnection.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.SerializedConnection build() { + com.google.cloud.designcenter.v1.SerializedConnection result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.SerializedConnection buildPartial() { + com.google.cloud.designcenter.v1.SerializedConnection result = + new com.google.cloud.designcenter.v1.SerializedConnection(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.designcenter.v1.SerializedConnection result) { + if (sourceComponentParametersBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + sourceComponentParameters_ = + java.util.Collections.unmodifiableList(sourceComponentParameters_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.sourceComponentParameters_ = sourceComponentParameters_; + } else { + result.sourceComponentParameters_ = sourceComponentParametersBuilder_.build(); + } + if (destinationComponentParametersBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + destinationComponentParameters_ = + java.util.Collections.unmodifiableList(destinationComponentParameters_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.destinationComponentParameters_ = destinationComponentParameters_; + } else { + result.destinationComponentParameters_ = destinationComponentParametersBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.designcenter.v1.SerializedConnection result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.uri_ = uri_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.destinationComponentUri_ = destinationComponentUri_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.dependencyType_ = dependencyType_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.SerializedConnection) { + return mergeFrom((com.google.cloud.designcenter.v1.SerializedConnection) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.SerializedConnection other) { + if (other == com.google.cloud.designcenter.v1.SerializedConnection.getDefaultInstance()) + return this; + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDestinationComponentUri().isEmpty()) { + destinationComponentUri_ = other.destinationComponentUri_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (sourceComponentParametersBuilder_ == null) { + if (!other.sourceComponentParameters_.isEmpty()) { + if (sourceComponentParameters_.isEmpty()) { + sourceComponentParameters_ = other.sourceComponentParameters_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureSourceComponentParametersIsMutable(); + sourceComponentParameters_.addAll(other.sourceComponentParameters_); + } + onChanged(); + } + } else { + if (!other.sourceComponentParameters_.isEmpty()) { + if (sourceComponentParametersBuilder_.isEmpty()) { + sourceComponentParametersBuilder_.dispose(); + sourceComponentParametersBuilder_ = null; + sourceComponentParameters_ = other.sourceComponentParameters_; + bitField0_ = (bitField0_ & ~0x00000004); + sourceComponentParametersBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetSourceComponentParametersFieldBuilder() + : null; + } else { + sourceComponentParametersBuilder_.addAllMessages(other.sourceComponentParameters_); + } + } + } + if (destinationComponentParametersBuilder_ == null) { + if (!other.destinationComponentParameters_.isEmpty()) { + if (destinationComponentParameters_.isEmpty()) { + destinationComponentParameters_ = other.destinationComponentParameters_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureDestinationComponentParametersIsMutable(); + destinationComponentParameters_.addAll(other.destinationComponentParameters_); + } + onChanged(); + } + } else { + if (!other.destinationComponentParameters_.isEmpty()) { + if (destinationComponentParametersBuilder_.isEmpty()) { + destinationComponentParametersBuilder_.dispose(); + destinationComponentParametersBuilder_ = null; + destinationComponentParameters_ = other.destinationComponentParameters_; + bitField0_ = (bitField0_ & ~0x00000008); + destinationComponentParametersBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetDestinationComponentParametersFieldBuilder() + : null; + } else { + destinationComponentParametersBuilder_.addAllMessages( + other.destinationComponentParameters_); + } + } + } + if (other.dependencyType_ != 0) { + setDependencyTypeValue(other.getDependencyTypeValue()); + } + 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: + { + uri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + destinationComponentUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 34: + { + com.google.cloud.designcenter.v1.Parameter m = + input.readMessage( + com.google.cloud.designcenter.v1.Parameter.parser(), extensionRegistry); + if (sourceComponentParametersBuilder_ == null) { + ensureSourceComponentParametersIsMutable(); + sourceComponentParameters_.add(m); + } else { + sourceComponentParametersBuilder_.addMessage(m); + } + break; + } // case 34 + case 42: + { + com.google.cloud.designcenter.v1.Parameter m = + input.readMessage( + com.google.cloud.designcenter.v1.Parameter.parser(), extensionRegistry); + if (destinationComponentParametersBuilder_ == null) { + ensureDestinationComponentParametersIsMutable(); + destinationComponentParameters_.add(m); + } else { + destinationComponentParametersBuilder_.addMessage(m); + } + break; + } // case 42 + case 48: + { + dependencyType_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 48 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object uri_ = ""; + + /** + * + * + *
+     * Optional. The connection URI.
+     * 
+ * + * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The uri. + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The connection URI.
+     * 
+ * + * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for uri. + */ + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The connection URI.
+     * 
+ * + * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The uri to set. + * @return This builder for chaining. + */ + public Builder setUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The connection URI.
+     * 
+ * + * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearUri() { + uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The connection URI.
+     * 
+ * + * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for uri to set. + * @return This builder for chaining. + */ + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object destinationComponentUri_ = ""; + + /** + * + * + *
+     * Optional. The destination component URI used to generate the connection.
+     * 
+ * + * string destination_component_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The destinationComponentUri. + */ + public java.lang.String getDestinationComponentUri() { + java.lang.Object ref = destinationComponentUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + destinationComponentUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The destination component URI used to generate the connection.
+     * 
+ * + * string destination_component_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for destinationComponentUri. + */ + public com.google.protobuf.ByteString getDestinationComponentUriBytes() { + java.lang.Object ref = destinationComponentUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + destinationComponentUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The destination component URI used to generate the connection.
+     * 
+ * + * string destination_component_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The destinationComponentUri to set. + * @return This builder for chaining. + */ + public Builder setDestinationComponentUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + destinationComponentUri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The destination component URI used to generate the connection.
+     * 
+ * + * string destination_component_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDestinationComponentUri() { + destinationComponentUri_ = getDefaultInstance().getDestinationComponentUri(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The destination component URI used to generate the connection.
+     * 
+ * + * string destination_component_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for destinationComponentUri to set. + * @return This builder for chaining. + */ + public Builder setDestinationComponentUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + destinationComponentUri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.util.List sourceComponentParameters_ = + java.util.Collections.emptyList(); + + private void ensureSourceComponentParametersIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + sourceComponentParameters_ = + new java.util.ArrayList( + sourceComponentParameters_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Parameter, + com.google.cloud.designcenter.v1.Parameter.Builder, + com.google.cloud.designcenter.v1.ParameterOrBuilder> + sourceComponentParametersBuilder_; + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the source
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getSourceComponentParametersList() { + if (sourceComponentParametersBuilder_ == null) { + return java.util.Collections.unmodifiableList(sourceComponentParameters_); + } else { + return sourceComponentParametersBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the source
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getSourceComponentParametersCount() { + if (sourceComponentParametersBuilder_ == null) { + return sourceComponentParameters_.size(); + } else { + return sourceComponentParametersBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the source
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter getSourceComponentParameters(int index) { + if (sourceComponentParametersBuilder_ == null) { + return sourceComponentParameters_.get(index); + } else { + return sourceComponentParametersBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the source
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSourceComponentParameters( + int index, com.google.cloud.designcenter.v1.Parameter value) { + if (sourceComponentParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSourceComponentParametersIsMutable(); + sourceComponentParameters_.set(index, value); + onChanged(); + } else { + sourceComponentParametersBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the source
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSourceComponentParameters( + int index, com.google.cloud.designcenter.v1.Parameter.Builder builderForValue) { + if (sourceComponentParametersBuilder_ == null) { + ensureSourceComponentParametersIsMutable(); + sourceComponentParameters_.set(index, builderForValue.build()); + onChanged(); + } else { + sourceComponentParametersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the source
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSourceComponentParameters(com.google.cloud.designcenter.v1.Parameter value) { + if (sourceComponentParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSourceComponentParametersIsMutable(); + sourceComponentParameters_.add(value); + onChanged(); + } else { + sourceComponentParametersBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the source
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSourceComponentParameters( + int index, com.google.cloud.designcenter.v1.Parameter value) { + if (sourceComponentParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSourceComponentParametersIsMutable(); + sourceComponentParameters_.add(index, value); + onChanged(); + } else { + sourceComponentParametersBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the source
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSourceComponentParameters( + com.google.cloud.designcenter.v1.Parameter.Builder builderForValue) { + if (sourceComponentParametersBuilder_ == null) { + ensureSourceComponentParametersIsMutable(); + sourceComponentParameters_.add(builderForValue.build()); + onChanged(); + } else { + sourceComponentParametersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the source
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSourceComponentParameters( + int index, com.google.cloud.designcenter.v1.Parameter.Builder builderForValue) { + if (sourceComponentParametersBuilder_ == null) { + ensureSourceComponentParametersIsMutable(); + sourceComponentParameters_.add(index, builderForValue.build()); + onChanged(); + } else { + sourceComponentParametersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the source
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllSourceComponentParameters( + java.lang.Iterable values) { + if (sourceComponentParametersBuilder_ == null) { + ensureSourceComponentParametersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sourceComponentParameters_); + onChanged(); + } else { + sourceComponentParametersBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the source
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSourceComponentParameters() { + if (sourceComponentParametersBuilder_ == null) { + sourceComponentParameters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + sourceComponentParametersBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the source
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeSourceComponentParameters(int index) { + if (sourceComponentParametersBuilder_ == null) { + ensureSourceComponentParametersIsMutable(); + sourceComponentParameters_.remove(index); + onChanged(); + } else { + sourceComponentParametersBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the source
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter.Builder getSourceComponentParametersBuilder( + int index) { + return internalGetSourceComponentParametersFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the source
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ParameterOrBuilder + getSourceComponentParametersOrBuilder(int index) { + if (sourceComponentParametersBuilder_ == null) { + return sourceComponentParameters_.get(index); + } else { + return sourceComponentParametersBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the source
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getSourceComponentParametersOrBuilderList() { + if (sourceComponentParametersBuilder_ != null) { + return sourceComponentParametersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(sourceComponentParameters_); + } + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the source
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter.Builder + addSourceComponentParametersBuilder() { + return internalGetSourceComponentParametersFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.Parameter.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the source
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter.Builder addSourceComponentParametersBuilder( + int index) { + return internalGetSourceComponentParametersFieldBuilder() + .addBuilder(index, com.google.cloud.designcenter.v1.Parameter.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the source
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getSourceComponentParametersBuilderList() { + return internalGetSourceComponentParametersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Parameter, + com.google.cloud.designcenter.v1.Parameter.Builder, + com.google.cloud.designcenter.v1.ParameterOrBuilder> + internalGetSourceComponentParametersFieldBuilder() { + if (sourceComponentParametersBuilder_ == null) { + sourceComponentParametersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Parameter, + com.google.cloud.designcenter.v1.Parameter.Builder, + com.google.cloud.designcenter.v1.ParameterOrBuilder>( + sourceComponentParameters_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + sourceComponentParameters_ = null; + } + return sourceComponentParametersBuilder_; + } + + private java.util.List + destinationComponentParameters_ = java.util.Collections.emptyList(); + + private void ensureDestinationComponentParametersIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + destinationComponentParameters_ = + new java.util.ArrayList( + destinationComponentParameters_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Parameter, + com.google.cloud.designcenter.v1.Parameter.Builder, + com.google.cloud.designcenter.v1.ParameterOrBuilder> + destinationComponentParametersBuilder_; + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the destination
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getDestinationComponentParametersList() { + if (destinationComponentParametersBuilder_ == null) { + return java.util.Collections.unmodifiableList(destinationComponentParameters_); + } else { + return destinationComponentParametersBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the destination
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getDestinationComponentParametersCount() { + if (destinationComponentParametersBuilder_ == null) { + return destinationComponentParameters_.size(); + } else { + return destinationComponentParametersBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the destination
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter getDestinationComponentParameters(int index) { + if (destinationComponentParametersBuilder_ == null) { + return destinationComponentParameters_.get(index); + } else { + return destinationComponentParametersBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the destination
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDestinationComponentParameters( + int index, com.google.cloud.designcenter.v1.Parameter value) { + if (destinationComponentParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDestinationComponentParametersIsMutable(); + destinationComponentParameters_.set(index, value); + onChanged(); + } else { + destinationComponentParametersBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the destination
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDestinationComponentParameters( + int index, com.google.cloud.designcenter.v1.Parameter.Builder builderForValue) { + if (destinationComponentParametersBuilder_ == null) { + ensureDestinationComponentParametersIsMutable(); + destinationComponentParameters_.set(index, builderForValue.build()); + onChanged(); + } else { + destinationComponentParametersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the destination
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addDestinationComponentParameters( + com.google.cloud.designcenter.v1.Parameter value) { + if (destinationComponentParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDestinationComponentParametersIsMutable(); + destinationComponentParameters_.add(value); + onChanged(); + } else { + destinationComponentParametersBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the destination
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addDestinationComponentParameters( + int index, com.google.cloud.designcenter.v1.Parameter value) { + if (destinationComponentParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDestinationComponentParametersIsMutable(); + destinationComponentParameters_.add(index, value); + onChanged(); + } else { + destinationComponentParametersBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the destination
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addDestinationComponentParameters( + com.google.cloud.designcenter.v1.Parameter.Builder builderForValue) { + if (destinationComponentParametersBuilder_ == null) { + ensureDestinationComponentParametersIsMutable(); + destinationComponentParameters_.add(builderForValue.build()); + onChanged(); + } else { + destinationComponentParametersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the destination
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addDestinationComponentParameters( + int index, com.google.cloud.designcenter.v1.Parameter.Builder builderForValue) { + if (destinationComponentParametersBuilder_ == null) { + ensureDestinationComponentParametersIsMutable(); + destinationComponentParameters_.add(index, builderForValue.build()); + onChanged(); + } else { + destinationComponentParametersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the destination
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllDestinationComponentParameters( + java.lang.Iterable values) { + if (destinationComponentParametersBuilder_ == null) { + ensureDestinationComponentParametersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, destinationComponentParameters_); + onChanged(); + } else { + destinationComponentParametersBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the destination
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDestinationComponentParameters() { + if (destinationComponentParametersBuilder_ == null) { + destinationComponentParameters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + destinationComponentParametersBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the destination
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeDestinationComponentParameters(int index) { + if (destinationComponentParametersBuilder_ == null) { + ensureDestinationComponentParametersIsMutable(); + destinationComponentParameters_.remove(index); + onChanged(); + } else { + destinationComponentParametersBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the destination
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter.Builder + getDestinationComponentParametersBuilder(int index) { + return internalGetDestinationComponentParametersFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the destination
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ParameterOrBuilder + getDestinationComponentParametersOrBuilder(int index) { + if (destinationComponentParametersBuilder_ == null) { + return destinationComponentParameters_.get(index); + } else { + return destinationComponentParametersBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the destination
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getDestinationComponentParametersOrBuilderList() { + if (destinationComponentParametersBuilder_ != null) { + return destinationComponentParametersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(destinationComponentParameters_); + } + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the destination
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter.Builder + addDestinationComponentParametersBuilder() { + return internalGetDestinationComponentParametersFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.Parameter.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the destination
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter.Builder + addDestinationComponentParametersBuilder(int index) { + return internalGetDestinationComponentParametersFieldBuilder() + .addBuilder(index, com.google.cloud.designcenter.v1.Parameter.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The parameters of the connection associated with the destination
+     * component.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getDestinationComponentParametersBuilderList() { + return internalGetDestinationComponentParametersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Parameter, + com.google.cloud.designcenter.v1.Parameter.Builder, + com.google.cloud.designcenter.v1.ParameterOrBuilder> + internalGetDestinationComponentParametersFieldBuilder() { + if (destinationComponentParametersBuilder_ == null) { + destinationComponentParametersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Parameter, + com.google.cloud.designcenter.v1.Parameter.Builder, + com.google.cloud.designcenter.v1.ParameterOrBuilder>( + destinationComponentParameters_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + destinationComponentParameters_ = null; + } + return destinationComponentParametersBuilder_; + } + + private int dependencyType_ = 0; + + /** + * + * + *
+     * Output only. The type of the connection (data or logical).
+     * 
+ * + * + * .google.cloud.designcenter.v1.ConnectionDependencyType dependency_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for dependencyType. + */ + @java.lang.Override + public int getDependencyTypeValue() { + return dependencyType_; + } + + /** + * + * + *
+     * Output only. The type of the connection (data or logical).
+     * 
+ * + * + * .google.cloud.designcenter.v1.ConnectionDependencyType dependency_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for dependencyType to set. + * @return This builder for chaining. + */ + public Builder setDependencyTypeValue(int value) { + dependencyType_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The type of the connection (data or logical).
+     * 
+ * + * + * .google.cloud.designcenter.v1.ConnectionDependencyType dependency_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dependencyType. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ConnectionDependencyType getDependencyType() { + com.google.cloud.designcenter.v1.ConnectionDependencyType result = + com.google.cloud.designcenter.v1.ConnectionDependencyType.forNumber(dependencyType_); + return result == null + ? com.google.cloud.designcenter.v1.ConnectionDependencyType.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Output only. The type of the connection (data or logical).
+     * 
+ * + * + * .google.cloud.designcenter.v1.ConnectionDependencyType dependency_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The dependencyType to set. + * @return This builder for chaining. + */ + public Builder setDependencyType( + com.google.cloud.designcenter.v1.ConnectionDependencyType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + dependencyType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The type of the connection (data or logical).
+     * 
+ * + * + * .google.cloud.designcenter.v1.ConnectionDependencyType dependency_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearDependencyType() { + bitField0_ = (bitField0_ & ~0x00000010); + dependencyType_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.SerializedConnection) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.SerializedConnection) + private static final com.google.cloud.designcenter.v1.SerializedConnection DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.SerializedConnection(); + } + + public static com.google.cloud.designcenter.v1.SerializedConnection getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SerializedConnection parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.SerializedConnection getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SerializedConnectionOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SerializedConnectionOrBuilder.java new file mode 100644 index 000000000000..b2f491703cf6 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SerializedConnectionOrBuilder.java @@ -0,0 +1,255 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface SerializedConnectionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.SerializedConnection) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The connection URI.
+   * 
+ * + * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The uri. + */ + java.lang.String getUri(); + + /** + * + * + *
+   * Optional. The connection URI.
+   * 
+ * + * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for uri. + */ + com.google.protobuf.ByteString getUriBytes(); + + /** + * + * + *
+   * Optional. The destination component URI used to generate the connection.
+   * 
+ * + * string destination_component_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The destinationComponentUri. + */ + java.lang.String getDestinationComponentUri(); + + /** + * + * + *
+   * Optional. The destination component URI used to generate the connection.
+   * 
+ * + * string destination_component_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for destinationComponentUri. + */ + com.google.protobuf.ByteString getDestinationComponentUriBytes(); + + /** + * + * + *
+   * Optional. The parameters of the connection associated with the source
+   * component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getSourceComponentParametersList(); + + /** + * + * + *
+   * Optional. The parameters of the connection associated with the source
+   * component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.Parameter getSourceComponentParameters(int index); + + /** + * + * + *
+   * Optional. The parameters of the connection associated with the source
+   * component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getSourceComponentParametersCount(); + + /** + * + * + *
+   * Optional. The parameters of the connection associated with the source
+   * component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getSourceComponentParametersOrBuilderList(); + + /** + * + * + *
+   * Optional. The parameters of the connection associated with the source
+   * component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter source_component_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.ParameterOrBuilder getSourceComponentParametersOrBuilder( + int index); + + /** + * + * + *
+   * Optional. The parameters of the connection associated with the destination
+   * component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getDestinationComponentParametersList(); + + /** + * + * + *
+   * Optional. The parameters of the connection associated with the destination
+   * component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.Parameter getDestinationComponentParameters(int index); + + /** + * + * + *
+   * Optional. The parameters of the connection associated with the destination
+   * component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getDestinationComponentParametersCount(); + + /** + * + * + *
+   * Optional. The parameters of the connection associated with the destination
+   * component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getDestinationComponentParametersOrBuilderList(); + + /** + * + * + *
+   * Optional. The parameters of the connection associated with the destination
+   * component.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter destination_component_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.ParameterOrBuilder getDestinationComponentParametersOrBuilder( + int index); + + /** + * + * + *
+   * Output only. The type of the connection (data or logical).
+   * 
+ * + * + * .google.cloud.designcenter.v1.ConnectionDependencyType dependency_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for dependencyType. + */ + int getDependencyTypeValue(); + + /** + * + * + *
+   * Output only. The type of the connection (data or logical).
+   * 
+ * + * + * .google.cloud.designcenter.v1.ConnectionDependencyType dependency_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dependencyType. + */ + com.google.cloud.designcenter.v1.ConnectionDependencyType getDependencyType(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SerializedPolicy.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SerializedPolicy.java new file mode 100644 index 000000000000..37ac9adfcf2a --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SerializedPolicy.java @@ -0,0 +1,3043 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Serialized policy.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.SerializedPolicy} + */ +@com.google.protobuf.Generated +public final class SerializedPolicy extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.SerializedPolicy) + SerializedPolicyOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "SerializedPolicy"); + } + + // Use SerializedPolicy.newBuilder() to construct. + private SerializedPolicy(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SerializedPolicy() { + uri_ = ""; + displayName_ = ""; + description_ = ""; + policyType_ = 0; + applyConditions_ = java.util.Collections.emptyList(); + cloudControlConfigs_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringResourcesProto + .internal_static_google_cloud_designcenter_v1_SerializedPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringResourcesProto + .internal_static_google_cloud_designcenter_v1_SerializedPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.SerializedPolicy.class, + com.google.cloud.designcenter.v1.SerializedPolicy.Builder.class); + } + + /** + * + * + *
+   * The serialized policy type.
+   * 
+ * + * Protobuf enum {@code google.cloud.designcenter.v1.SerializedPolicy.PolicyType} + */ + public enum PolicyType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default.
+     * 
+ * + * POLICY_TYPE_UNSPECIFIED = 0; + */ + POLICY_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Compliance framework policy.
+     * 
+ * + * COMPLIANCE_FRAMEWORK = 1; + */ + COMPLIANCE_FRAMEWORK(1), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "PolicyType"); + } + + /** + * + * + *
+     * Default.
+     * 
+ * + * POLICY_TYPE_UNSPECIFIED = 0; + */ + public static final int POLICY_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Compliance framework policy.
+     * 
+ * + * COMPLIANCE_FRAMEWORK = 1; + */ + public static final int COMPLIANCE_FRAMEWORK_VALUE = 1; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static PolicyType 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 PolicyType forNumber(int value) { + switch (value) { + case 0: + return POLICY_TYPE_UNSPECIFIED; + case 1: + return COMPLIANCE_FRAMEWORK; + 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 PolicyType findValueByNumber(int number) { + return PolicyType.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.designcenter.v1.SerializedPolicy.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final PolicyType[] VALUES = values(); + + public static PolicyType 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 PolicyType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.designcenter.v1.SerializedPolicy.PolicyType) + } + + private int sourceUriCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object sourceUri_; + + public enum SourceUriCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + POLICY_URI(5), + POLICY_REVISION_URI(6), + SOURCEURI_NOT_SET(0); + private final int value; + + private SourceUriCase(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 SourceUriCase valueOf(int value) { + return forNumber(value); + } + + public static SourceUriCase forNumber(int value) { + switch (value) { + case 5: + return POLICY_URI; + case 6: + return POLICY_REVISION_URI; + case 0: + return SOURCEURI_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public SourceUriCase getSourceUriCase() { + return SourceUriCase.forNumber(sourceUriCase_); + } + + public static final int POLICY_URI_FIELD_NUMBER = 5; + + /** + * + * + *
+   * Optional. URI of the policy.
+   * 
+ * + * string policy_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the policyUri field is set. + */ + public boolean hasPolicyUri() { + return sourceUriCase_ == 5; + } + + /** + * + * + *
+   * Optional. URI of the policy.
+   * 
+ * + * string policy_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The policyUri. + */ + public java.lang.String getPolicyUri() { + java.lang.Object ref = ""; + if (sourceUriCase_ == 5) { + ref = sourceUri_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceUriCase_ == 5) { + sourceUri_ = s; + } + return s; + } + } + + /** + * + * + *
+   * Optional. URI of the policy.
+   * 
+ * + * string policy_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for policyUri. + */ + public com.google.protobuf.ByteString getPolicyUriBytes() { + java.lang.Object ref = ""; + if (sourceUriCase_ == 5) { + ref = sourceUri_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceUriCase_ == 5) { + sourceUri_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int POLICY_REVISION_URI_FIELD_NUMBER = 6; + + /** + * + * + *
+   * Optional. URI of the policy revision.
+   * 
+ * + * string policy_revision_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the policyRevisionUri field is set. + */ + public boolean hasPolicyRevisionUri() { + return sourceUriCase_ == 6; + } + + /** + * + * + *
+   * Optional. URI of the policy revision.
+   * 
+ * + * string policy_revision_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The policyRevisionUri. + */ + public java.lang.String getPolicyRevisionUri() { + java.lang.Object ref = ""; + if (sourceUriCase_ == 6) { + ref = sourceUri_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceUriCase_ == 6) { + sourceUri_ = s; + } + return s; + } + } + + /** + * + * + *
+   * Optional. URI of the policy revision.
+   * 
+ * + * string policy_revision_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for policyRevisionUri. + */ + public com.google.protobuf.ByteString getPolicyRevisionUriBytes() { + java.lang.Object ref = ""; + if (sourceUriCase_ == 6) { + ref = sourceUri_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceUriCase_ == 6) { + sourceUri_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int URI_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; + + /** + * + * + *
+   * Required. The uri of the policy in application template.
+   * Format:
+   * `projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/policies/{policy}`
+   * 
+ * + * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The uri. + */ + @java.lang.Override + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The uri of the policy in application template.
+   * Format:
+   * `projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/policies/{policy}`
+   * 
+ * + * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for uri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = 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_ = ""; + + /** + * + * + *
+   * Optional. The serialized policy display name.
+   * The number of characters should be less than 128 characters.
+   * 
+ * + * string display_name = 2 [(.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. The serialized policy display name.
+   * The number of characters should be less than 128 characters.
+   * 
+ * + * string display_name = 2 [(.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 DESCRIPTION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
+   * Optional. The serialized policy description.
+   * At most 2048 characters.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The serialized policy description.
+   * At most 2048 characters.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int POLICY_TYPE_FIELD_NUMBER = 4; + private int policyType_ = 0; + + /** + * + * + *
+   * Required. Policy type will be used to determine the domain of the policy.
+   * 
+ * + * + * .google.cloud.designcenter.v1.SerializedPolicy.PolicyType policy_type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for policyType. + */ + @java.lang.Override + public int getPolicyTypeValue() { + return policyType_; + } + + /** + * + * + *
+   * Required. Policy type will be used to determine the domain of the policy.
+   * 
+ * + * + * .google.cloud.designcenter.v1.SerializedPolicy.PolicyType policy_type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The policyType. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.SerializedPolicy.PolicyType getPolicyType() { + com.google.cloud.designcenter.v1.SerializedPolicy.PolicyType result = + com.google.cloud.designcenter.v1.SerializedPolicy.PolicyType.forNumber(policyType_); + return result == null + ? com.google.cloud.designcenter.v1.SerializedPolicy.PolicyType.UNRECOGNIZED + : result; + } + + public static final int APPLY_CONDITIONS_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private java.util.List applyConditions_; + + /** + * + * + *
+   * Optional. The serialized policy apply conditions.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplyCondition apply_conditions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getApplyConditionsList() { + return applyConditions_; + } + + /** + * + * + *
+   * Optional. The serialized policy apply conditions.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplyCondition apply_conditions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getApplyConditionsOrBuilderList() { + return applyConditions_; + } + + /** + * + * + *
+   * Optional. The serialized policy apply conditions.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplyCondition apply_conditions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getApplyConditionsCount() { + return applyConditions_.size(); + } + + /** + * + * + *
+   * Optional. The serialized policy apply conditions.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplyCondition apply_conditions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ApplyCondition getApplyConditions(int index) { + return applyConditions_.get(index); + } + + /** + * + * + *
+   * Optional. The serialized policy apply conditions.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplyCondition apply_conditions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ApplyConditionOrBuilder getApplyConditionsOrBuilder( + int index) { + return applyConditions_.get(index); + } + + public static final int CLOUD_CONTROL_CONFIGS_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private java.util.List cloudControlConfigs_; + + /** + * + * + *
+   * Optional. Stored parameter values grouped by cloud control.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControlConfig cloud_control_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getCloudControlConfigsList() { + return cloudControlConfigs_; + } + + /** + * + * + *
+   * Optional. Stored parameter values grouped by cloud control.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControlConfig cloud_control_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getCloudControlConfigsOrBuilderList() { + return cloudControlConfigs_; + } + + /** + * + * + *
+   * Optional. Stored parameter values grouped by cloud control.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControlConfig cloud_control_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getCloudControlConfigsCount() { + return cloudControlConfigs_.size(); + } + + /** + * + * + *
+   * Optional. Stored parameter values grouped by cloud control.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControlConfig cloud_control_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.CloudControlConfig getCloudControlConfigs(int index) { + return cloudControlConfigs_.get(index); + } + + /** + * + * + *
+   * Optional. Stored parameter values grouped by cloud control.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControlConfig cloud_control_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.CloudControlConfigOrBuilder + getCloudControlConfigsOrBuilder(int index) { + return cloudControlConfigs_.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.GeneratedMessage.isStringEmpty(uri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, uri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, description_); + } + if (policyType_ + != com.google.cloud.designcenter.v1.SerializedPolicy.PolicyType.POLICY_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, policyType_); + } + if (sourceUriCase_ == 5) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, sourceUri_); + } + if (sourceUriCase_ == 6) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, sourceUri_); + } + for (int i = 0; i < applyConditions_.size(); i++) { + output.writeMessage(7, applyConditions_.get(i)); + } + for (int i = 0; i < cloudControlConfigs_.size(); i++) { + output.writeMessage(8, cloudControlConfigs_.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.GeneratedMessage.isStringEmpty(uri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, uri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, description_); + } + if (policyType_ + != com.google.cloud.designcenter.v1.SerializedPolicy.PolicyType.POLICY_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, policyType_); + } + if (sourceUriCase_ == 5) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, sourceUri_); + } + if (sourceUriCase_ == 6) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, sourceUri_); + } + for (int i = 0; i < applyConditions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, applyConditions_.get(i)); + } + for (int i = 0; i < cloudControlConfigs_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(8, cloudControlConfigs_.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.designcenter.v1.SerializedPolicy)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.SerializedPolicy other = + (com.google.cloud.designcenter.v1.SerializedPolicy) obj; + + if (!getUri().equals(other.getUri())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (policyType_ != other.policyType_) return false; + if (!getApplyConditionsList().equals(other.getApplyConditionsList())) return false; + if (!getCloudControlConfigsList().equals(other.getCloudControlConfigsList())) return false; + if (!getSourceUriCase().equals(other.getSourceUriCase())) return false; + switch (sourceUriCase_) { + case 5: + if (!getPolicyUri().equals(other.getPolicyUri())) return false; + break; + case 6: + if (!getPolicyRevisionUri().equals(other.getPolicyRevisionUri())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().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) + POLICY_TYPE_FIELD_NUMBER; + hash = (53 * hash) + policyType_; + if (getApplyConditionsCount() > 0) { + hash = (37 * hash) + APPLY_CONDITIONS_FIELD_NUMBER; + hash = (53 * hash) + getApplyConditionsList().hashCode(); + } + if (getCloudControlConfigsCount() > 0) { + hash = (37 * hash) + CLOUD_CONTROL_CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + getCloudControlConfigsList().hashCode(); + } + switch (sourceUriCase_) { + case 5: + hash = (37 * hash) + POLICY_URI_FIELD_NUMBER; + hash = (53 * hash) + getPolicyUri().hashCode(); + break; + case 6: + hash = (37 * hash) + POLICY_REVISION_URI_FIELD_NUMBER; + hash = (53 * hash) + getPolicyRevisionUri().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.SerializedPolicy parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.SerializedPolicy 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.designcenter.v1.SerializedPolicy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.SerializedPolicy parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.SerializedPolicy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.SerializedPolicy parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.SerializedPolicy parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.SerializedPolicy parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.SerializedPolicy parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.SerializedPolicy parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.SerializedPolicy parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.SerializedPolicy parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.SerializedPolicy 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Serialized policy.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.SerializedPolicy} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.SerializedPolicy) + com.google.cloud.designcenter.v1.SerializedPolicyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringResourcesProto + .internal_static_google_cloud_designcenter_v1_SerializedPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringResourcesProto + .internal_static_google_cloud_designcenter_v1_SerializedPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.SerializedPolicy.class, + com.google.cloud.designcenter.v1.SerializedPolicy.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.SerializedPolicy.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + uri_ = ""; + displayName_ = ""; + description_ = ""; + policyType_ = 0; + if (applyConditionsBuilder_ == null) { + applyConditions_ = java.util.Collections.emptyList(); + } else { + applyConditions_ = null; + applyConditionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000040); + if (cloudControlConfigsBuilder_ == null) { + cloudControlConfigs_ = java.util.Collections.emptyList(); + } else { + cloudControlConfigs_ = null; + cloudControlConfigsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000080); + sourceUriCase_ = 0; + sourceUri_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.AuthoringResourcesProto + .internal_static_google_cloud_designcenter_v1_SerializedPolicy_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.SerializedPolicy getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.SerializedPolicy.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.SerializedPolicy build() { + com.google.cloud.designcenter.v1.SerializedPolicy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.SerializedPolicy buildPartial() { + com.google.cloud.designcenter.v1.SerializedPolicy result = + new com.google.cloud.designcenter.v1.SerializedPolicy(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.designcenter.v1.SerializedPolicy result) { + if (applyConditionsBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0)) { + applyConditions_ = java.util.Collections.unmodifiableList(applyConditions_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.applyConditions_ = applyConditions_; + } else { + result.applyConditions_ = applyConditionsBuilder_.build(); + } + if (cloudControlConfigsBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0)) { + cloudControlConfigs_ = java.util.Collections.unmodifiableList(cloudControlConfigs_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.cloudControlConfigs_ = cloudControlConfigs_; + } else { + result.cloudControlConfigs_ = cloudControlConfigsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.designcenter.v1.SerializedPolicy result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.uri_ = uri_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.policyType_ = policyType_; + } + } + + private void buildPartialOneofs(com.google.cloud.designcenter.v1.SerializedPolicy result) { + result.sourceUriCase_ = sourceUriCase_; + result.sourceUri_ = this.sourceUri_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.SerializedPolicy) { + return mergeFrom((com.google.cloud.designcenter.v1.SerializedPolicy) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.SerializedPolicy other) { + if (other == com.google.cloud.designcenter.v1.SerializedPolicy.getDefaultInstance()) + return this; + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.policyType_ != 0) { + setPolicyTypeValue(other.getPolicyTypeValue()); + } + if (applyConditionsBuilder_ == null) { + if (!other.applyConditions_.isEmpty()) { + if (applyConditions_.isEmpty()) { + applyConditions_ = other.applyConditions_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureApplyConditionsIsMutable(); + applyConditions_.addAll(other.applyConditions_); + } + onChanged(); + } + } else { + if (!other.applyConditions_.isEmpty()) { + if (applyConditionsBuilder_.isEmpty()) { + applyConditionsBuilder_.dispose(); + applyConditionsBuilder_ = null; + applyConditions_ = other.applyConditions_; + bitField0_ = (bitField0_ & ~0x00000040); + applyConditionsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetApplyConditionsFieldBuilder() + : null; + } else { + applyConditionsBuilder_.addAllMessages(other.applyConditions_); + } + } + } + if (cloudControlConfigsBuilder_ == null) { + if (!other.cloudControlConfigs_.isEmpty()) { + if (cloudControlConfigs_.isEmpty()) { + cloudControlConfigs_ = other.cloudControlConfigs_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureCloudControlConfigsIsMutable(); + cloudControlConfigs_.addAll(other.cloudControlConfigs_); + } + onChanged(); + } + } else { + if (!other.cloudControlConfigs_.isEmpty()) { + if (cloudControlConfigsBuilder_.isEmpty()) { + cloudControlConfigsBuilder_.dispose(); + cloudControlConfigsBuilder_ = null; + cloudControlConfigs_ = other.cloudControlConfigs_; + bitField0_ = (bitField0_ & ~0x00000080); + cloudControlConfigsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetCloudControlConfigsFieldBuilder() + : null; + } else { + cloudControlConfigsBuilder_.addAllMessages(other.cloudControlConfigs_); + } + } + } + switch (other.getSourceUriCase()) { + case POLICY_URI: + { + sourceUriCase_ = 5; + sourceUri_ = other.sourceUri_; + onChanged(); + break; + } + case POLICY_REVISION_URI: + { + sourceUriCase_ = 6; + sourceUri_ = other.sourceUri_; + onChanged(); + break; + } + case SOURCEURI_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: + { + uri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 18 + case 26: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 26 + case 32: + { + policyType_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 32 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + sourceUriCase_ = 5; + sourceUri_ = s; + break; + } // case 42 + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + sourceUriCase_ = 6; + sourceUri_ = s; + break; + } // case 50 + case 58: + { + com.google.cloud.designcenter.v1.ApplyCondition m = + input.readMessage( + com.google.cloud.designcenter.v1.ApplyCondition.parser(), + extensionRegistry); + if (applyConditionsBuilder_ == null) { + ensureApplyConditionsIsMutable(); + applyConditions_.add(m); + } else { + applyConditionsBuilder_.addMessage(m); + } + break; + } // case 58 + case 66: + { + com.google.cloud.designcenter.v1.CloudControlConfig m = + input.readMessage( + com.google.cloud.designcenter.v1.CloudControlConfig.parser(), + extensionRegistry); + if (cloudControlConfigsBuilder_ == null) { + ensureCloudControlConfigsIsMutable(); + cloudControlConfigs_.add(m); + } else { + cloudControlConfigsBuilder_.addMessage(m); + } + 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 sourceUriCase_ = 0; + private java.lang.Object sourceUri_; + + public SourceUriCase getSourceUriCase() { + return SourceUriCase.forNumber(sourceUriCase_); + } + + public Builder clearSourceUri() { + sourceUriCase_ = 0; + sourceUri_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
+     * Optional. URI of the policy.
+     * 
+ * + * string policy_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the policyUri field is set. + */ + @java.lang.Override + public boolean hasPolicyUri() { + return sourceUriCase_ == 5; + } + + /** + * + * + *
+     * Optional. URI of the policy.
+     * 
+ * + * string policy_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The policyUri. + */ + @java.lang.Override + public java.lang.String getPolicyUri() { + java.lang.Object ref = ""; + if (sourceUriCase_ == 5) { + ref = sourceUri_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceUriCase_ == 5) { + sourceUri_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. URI of the policy.
+     * 
+ * + * string policy_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for policyUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPolicyUriBytes() { + java.lang.Object ref = ""; + if (sourceUriCase_ == 5) { + ref = sourceUri_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceUriCase_ == 5) { + sourceUri_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. URI of the policy.
+     * 
+ * + * string policy_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The policyUri to set. + * @return This builder for chaining. + */ + public Builder setPolicyUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceUriCase_ = 5; + sourceUri_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. URI of the policy.
+     * 
+ * + * string policy_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPolicyUri() { + if (sourceUriCase_ == 5) { + sourceUriCase_ = 0; + sourceUri_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. URI of the policy.
+     * 
+ * + * string policy_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for policyUri to set. + * @return This builder for chaining. + */ + public Builder setPolicyUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceUriCase_ = 5; + sourceUri_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. URI of the policy revision.
+     * 
+ * + * string policy_revision_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the policyRevisionUri field is set. + */ + @java.lang.Override + public boolean hasPolicyRevisionUri() { + return sourceUriCase_ == 6; + } + + /** + * + * + *
+     * Optional. URI of the policy revision.
+     * 
+ * + * string policy_revision_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The policyRevisionUri. + */ + @java.lang.Override + public java.lang.String getPolicyRevisionUri() { + java.lang.Object ref = ""; + if (sourceUriCase_ == 6) { + ref = sourceUri_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceUriCase_ == 6) { + sourceUri_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. URI of the policy revision.
+     * 
+ * + * string policy_revision_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for policyRevisionUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPolicyRevisionUriBytes() { + java.lang.Object ref = ""; + if (sourceUriCase_ == 6) { + ref = sourceUri_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceUriCase_ == 6) { + sourceUri_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. URI of the policy revision.
+     * 
+ * + * string policy_revision_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The policyRevisionUri to set. + * @return This builder for chaining. + */ + public Builder setPolicyRevisionUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceUriCase_ = 6; + sourceUri_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. URI of the policy revision.
+     * 
+ * + * string policy_revision_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPolicyRevisionUri() { + if (sourceUriCase_ == 6) { + sourceUriCase_ = 0; + sourceUri_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. URI of the policy revision.
+     * 
+ * + * string policy_revision_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for policyRevisionUri to set. + * @return This builder for chaining. + */ + public Builder setPolicyRevisionUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceUriCase_ = 6; + sourceUri_ = value; + onChanged(); + return this; + } + + private java.lang.Object uri_ = ""; + + /** + * + * + *
+     * Required. The uri of the policy in application template.
+     * Format:
+     * `projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/policies/{policy}`
+     * 
+ * + * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The uri. + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The uri of the policy in application template.
+     * Format:
+     * `projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/policies/{policy}`
+     * 
+ * + * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for uri. + */ + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The uri of the policy in application template.
+     * Format:
+     * `projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/policies/{policy}`
+     * 
+ * + * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The uri to set. + * @return This builder for chaining. + */ + public Builder setUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The uri of the policy in application template.
+     * Format:
+     * `projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/policies/{policy}`
+     * 
+ * + * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearUri() { + uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The uri of the policy in application template.
+     * Format:
+     * `projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/policies/{policy}`
+     * 
+ * + * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for uri to set. + * @return This builder for chaining. + */ + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
+     * Optional. The serialized policy display name.
+     * The number of characters should be less than 128 characters.
+     * 
+ * + * string display_name = 2 [(.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. The serialized policy display name.
+     * The number of characters should be less than 128 characters.
+     * 
+ * + * string display_name = 2 [(.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. The serialized policy display name.
+     * The number of characters should be less than 128 characters.
+     * 
+ * + * string display_name = 2 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The serialized policy display name.
+     * The number of characters should be less than 128 characters.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The serialized policy display name.
+     * The number of characters should be less than 128 characters.
+     * 
+ * + * string display_name = 2 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
+     * Optional. The serialized policy description.
+     * At most 2048 characters.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The serialized policy description.
+     * At most 2048 characters.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The serialized policy description.
+     * At most 2048 characters.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The serialized policy description.
+     * At most 2048 characters.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The serialized policy description.
+     * At most 2048 characters.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private int policyType_ = 0; + + /** + * + * + *
+     * Required. Policy type will be used to determine the domain of the policy.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedPolicy.PolicyType policy_type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for policyType. + */ + @java.lang.Override + public int getPolicyTypeValue() { + return policyType_; + } + + /** + * + * + *
+     * Required. Policy type will be used to determine the domain of the policy.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedPolicy.PolicyType policy_type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for policyType to set. + * @return This builder for chaining. + */ + public Builder setPolicyTypeValue(int value) { + policyType_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Policy type will be used to determine the domain of the policy.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedPolicy.PolicyType policy_type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The policyType. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.SerializedPolicy.PolicyType getPolicyType() { + com.google.cloud.designcenter.v1.SerializedPolicy.PolicyType result = + com.google.cloud.designcenter.v1.SerializedPolicy.PolicyType.forNumber(policyType_); + return result == null + ? com.google.cloud.designcenter.v1.SerializedPolicy.PolicyType.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Required. Policy type will be used to determine the domain of the policy.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedPolicy.PolicyType policy_type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The policyType to set. + * @return This builder for chaining. + */ + public Builder setPolicyType( + com.google.cloud.designcenter.v1.SerializedPolicy.PolicyType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + policyType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Policy type will be used to determine the domain of the policy.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedPolicy.PolicyType policy_type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearPolicyType() { + bitField0_ = (bitField0_ & ~0x00000020); + policyType_ = 0; + onChanged(); + return this; + } + + private java.util.List applyConditions_ = + java.util.Collections.emptyList(); + + private void ensureApplyConditionsIsMutable() { + if (!((bitField0_ & 0x00000040) != 0)) { + applyConditions_ = + new java.util.ArrayList( + applyConditions_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ApplyCondition, + com.google.cloud.designcenter.v1.ApplyCondition.Builder, + com.google.cloud.designcenter.v1.ApplyConditionOrBuilder> + applyConditionsBuilder_; + + /** + * + * + *
+     * Optional. The serialized policy apply conditions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplyCondition apply_conditions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getApplyConditionsList() { + if (applyConditionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(applyConditions_); + } else { + return applyConditionsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. The serialized policy apply conditions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplyCondition apply_conditions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getApplyConditionsCount() { + if (applyConditionsBuilder_ == null) { + return applyConditions_.size(); + } else { + return applyConditionsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. The serialized policy apply conditions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplyCondition apply_conditions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ApplyCondition getApplyConditions(int index) { + if (applyConditionsBuilder_ == null) { + return applyConditions_.get(index); + } else { + return applyConditionsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. The serialized policy apply conditions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplyCondition apply_conditions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setApplyConditions( + int index, com.google.cloud.designcenter.v1.ApplyCondition value) { + if (applyConditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplyConditionsIsMutable(); + applyConditions_.set(index, value); + onChanged(); + } else { + applyConditionsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The serialized policy apply conditions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplyCondition apply_conditions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setApplyConditions( + int index, com.google.cloud.designcenter.v1.ApplyCondition.Builder builderForValue) { + if (applyConditionsBuilder_ == null) { + ensureApplyConditionsIsMutable(); + applyConditions_.set(index, builderForValue.build()); + onChanged(); + } else { + applyConditionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The serialized policy apply conditions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplyCondition apply_conditions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addApplyConditions(com.google.cloud.designcenter.v1.ApplyCondition value) { + if (applyConditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplyConditionsIsMutable(); + applyConditions_.add(value); + onChanged(); + } else { + applyConditionsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. The serialized policy apply conditions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplyCondition apply_conditions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addApplyConditions( + int index, com.google.cloud.designcenter.v1.ApplyCondition value) { + if (applyConditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplyConditionsIsMutable(); + applyConditions_.add(index, value); + onChanged(); + } else { + applyConditionsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The serialized policy apply conditions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplyCondition apply_conditions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addApplyConditions( + com.google.cloud.designcenter.v1.ApplyCondition.Builder builderForValue) { + if (applyConditionsBuilder_ == null) { + ensureApplyConditionsIsMutable(); + applyConditions_.add(builderForValue.build()); + onChanged(); + } else { + applyConditionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The serialized policy apply conditions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplyCondition apply_conditions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addApplyConditions( + int index, com.google.cloud.designcenter.v1.ApplyCondition.Builder builderForValue) { + if (applyConditionsBuilder_ == null) { + ensureApplyConditionsIsMutable(); + applyConditions_.add(index, builderForValue.build()); + onChanged(); + } else { + applyConditionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The serialized policy apply conditions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplyCondition apply_conditions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllApplyConditions( + java.lang.Iterable values) { + if (applyConditionsBuilder_ == null) { + ensureApplyConditionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, applyConditions_); + onChanged(); + } else { + applyConditionsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. The serialized policy apply conditions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplyCondition apply_conditions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearApplyConditions() { + if (applyConditionsBuilder_ == null) { + applyConditions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + applyConditionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. The serialized policy apply conditions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplyCondition apply_conditions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeApplyConditions(int index) { + if (applyConditionsBuilder_ == null) { + ensureApplyConditionsIsMutable(); + applyConditions_.remove(index); + onChanged(); + } else { + applyConditionsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. The serialized policy apply conditions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplyCondition apply_conditions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ApplyCondition.Builder getApplyConditionsBuilder( + int index) { + return internalGetApplyConditionsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. The serialized policy apply conditions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplyCondition apply_conditions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ApplyConditionOrBuilder getApplyConditionsOrBuilder( + int index) { + if (applyConditionsBuilder_ == null) { + return applyConditions_.get(index); + } else { + return applyConditionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. The serialized policy apply conditions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplyCondition apply_conditions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getApplyConditionsOrBuilderList() { + if (applyConditionsBuilder_ != null) { + return applyConditionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(applyConditions_); + } + } + + /** + * + * + *
+     * Optional. The serialized policy apply conditions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplyCondition apply_conditions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ApplyCondition.Builder addApplyConditionsBuilder() { + return internalGetApplyConditionsFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.ApplyCondition.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The serialized policy apply conditions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplyCondition apply_conditions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ApplyCondition.Builder addApplyConditionsBuilder( + int index) { + return internalGetApplyConditionsFieldBuilder() + .addBuilder(index, com.google.cloud.designcenter.v1.ApplyCondition.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The serialized policy apply conditions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplyCondition apply_conditions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getApplyConditionsBuilderList() { + return internalGetApplyConditionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ApplyCondition, + com.google.cloud.designcenter.v1.ApplyCondition.Builder, + com.google.cloud.designcenter.v1.ApplyConditionOrBuilder> + internalGetApplyConditionsFieldBuilder() { + if (applyConditionsBuilder_ == null) { + applyConditionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ApplyCondition, + com.google.cloud.designcenter.v1.ApplyCondition.Builder, + com.google.cloud.designcenter.v1.ApplyConditionOrBuilder>( + applyConditions_, + ((bitField0_ & 0x00000040) != 0), + getParentForChildren(), + isClean()); + applyConditions_ = null; + } + return applyConditionsBuilder_; + } + + private java.util.List + cloudControlConfigs_ = java.util.Collections.emptyList(); + + private void ensureCloudControlConfigsIsMutable() { + if (!((bitField0_ & 0x00000080) != 0)) { + cloudControlConfigs_ = + new java.util.ArrayList( + cloudControlConfigs_); + bitField0_ |= 0x00000080; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.CloudControlConfig, + com.google.cloud.designcenter.v1.CloudControlConfig.Builder, + com.google.cloud.designcenter.v1.CloudControlConfigOrBuilder> + cloudControlConfigsBuilder_; + + /** + * + * + *
+     * Optional. Stored parameter values grouped by cloud control.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControlConfig cloud_control_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getCloudControlConfigsList() { + if (cloudControlConfigsBuilder_ == null) { + return java.util.Collections.unmodifiableList(cloudControlConfigs_); + } else { + return cloudControlConfigsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. Stored parameter values grouped by cloud control.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControlConfig cloud_control_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getCloudControlConfigsCount() { + if (cloudControlConfigsBuilder_ == null) { + return cloudControlConfigs_.size(); + } else { + return cloudControlConfigsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. Stored parameter values grouped by cloud control.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControlConfig cloud_control_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.CloudControlConfig getCloudControlConfigs(int index) { + if (cloudControlConfigsBuilder_ == null) { + return cloudControlConfigs_.get(index); + } else { + return cloudControlConfigsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. Stored parameter values grouped by cloud control.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControlConfig cloud_control_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCloudControlConfigs( + int index, com.google.cloud.designcenter.v1.CloudControlConfig value) { + if (cloudControlConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCloudControlConfigsIsMutable(); + cloudControlConfigs_.set(index, value); + onChanged(); + } else { + cloudControlConfigsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Stored parameter values grouped by cloud control.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControlConfig cloud_control_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCloudControlConfigs( + int index, com.google.cloud.designcenter.v1.CloudControlConfig.Builder builderForValue) { + if (cloudControlConfigsBuilder_ == null) { + ensureCloudControlConfigsIsMutable(); + cloudControlConfigs_.set(index, builderForValue.build()); + onChanged(); + } else { + cloudControlConfigsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Stored parameter values grouped by cloud control.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControlConfig cloud_control_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCloudControlConfigs( + com.google.cloud.designcenter.v1.CloudControlConfig value) { + if (cloudControlConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCloudControlConfigsIsMutable(); + cloudControlConfigs_.add(value); + onChanged(); + } else { + cloudControlConfigsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. Stored parameter values grouped by cloud control.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControlConfig cloud_control_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCloudControlConfigs( + int index, com.google.cloud.designcenter.v1.CloudControlConfig value) { + if (cloudControlConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCloudControlConfigsIsMutable(); + cloudControlConfigs_.add(index, value); + onChanged(); + } else { + cloudControlConfigsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Stored parameter values grouped by cloud control.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControlConfig cloud_control_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCloudControlConfigs( + com.google.cloud.designcenter.v1.CloudControlConfig.Builder builderForValue) { + if (cloudControlConfigsBuilder_ == null) { + ensureCloudControlConfigsIsMutable(); + cloudControlConfigs_.add(builderForValue.build()); + onChanged(); + } else { + cloudControlConfigsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Stored parameter values grouped by cloud control.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControlConfig cloud_control_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCloudControlConfigs( + int index, com.google.cloud.designcenter.v1.CloudControlConfig.Builder builderForValue) { + if (cloudControlConfigsBuilder_ == null) { + ensureCloudControlConfigsIsMutable(); + cloudControlConfigs_.add(index, builderForValue.build()); + onChanged(); + } else { + cloudControlConfigsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Stored parameter values grouped by cloud control.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControlConfig cloud_control_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllCloudControlConfigs( + java.lang.Iterable values) { + if (cloudControlConfigsBuilder_ == null) { + ensureCloudControlConfigsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, cloudControlConfigs_); + onChanged(); + } else { + cloudControlConfigsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. Stored parameter values grouped by cloud control.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControlConfig cloud_control_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCloudControlConfigs() { + if (cloudControlConfigsBuilder_ == null) { + cloudControlConfigs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + } else { + cloudControlConfigsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Stored parameter values grouped by cloud control.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControlConfig cloud_control_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeCloudControlConfigs(int index) { + if (cloudControlConfigsBuilder_ == null) { + ensureCloudControlConfigsIsMutable(); + cloudControlConfigs_.remove(index); + onChanged(); + } else { + cloudControlConfigsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. Stored parameter values grouped by cloud control.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControlConfig cloud_control_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.CloudControlConfig.Builder + getCloudControlConfigsBuilder(int index) { + return internalGetCloudControlConfigsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. Stored parameter values grouped by cloud control.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControlConfig cloud_control_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.CloudControlConfigOrBuilder + getCloudControlConfigsOrBuilder(int index) { + if (cloudControlConfigsBuilder_ == null) { + return cloudControlConfigs_.get(index); + } else { + return cloudControlConfigsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. Stored parameter values grouped by cloud control.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControlConfig cloud_control_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getCloudControlConfigsOrBuilderList() { + if (cloudControlConfigsBuilder_ != null) { + return cloudControlConfigsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(cloudControlConfigs_); + } + } + + /** + * + * + *
+     * Optional. Stored parameter values grouped by cloud control.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControlConfig cloud_control_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.CloudControlConfig.Builder + addCloudControlConfigsBuilder() { + return internalGetCloudControlConfigsFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.CloudControlConfig.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Stored parameter values grouped by cloud control.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControlConfig cloud_control_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.CloudControlConfig.Builder + addCloudControlConfigsBuilder(int index) { + return internalGetCloudControlConfigsFieldBuilder() + .addBuilder( + index, com.google.cloud.designcenter.v1.CloudControlConfig.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Stored parameter values grouped by cloud control.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControlConfig cloud_control_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getCloudControlConfigsBuilderList() { + return internalGetCloudControlConfigsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.CloudControlConfig, + com.google.cloud.designcenter.v1.CloudControlConfig.Builder, + com.google.cloud.designcenter.v1.CloudControlConfigOrBuilder> + internalGetCloudControlConfigsFieldBuilder() { + if (cloudControlConfigsBuilder_ == null) { + cloudControlConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.CloudControlConfig, + com.google.cloud.designcenter.v1.CloudControlConfig.Builder, + com.google.cloud.designcenter.v1.CloudControlConfigOrBuilder>( + cloudControlConfigs_, + ((bitField0_ & 0x00000080) != 0), + getParentForChildren(), + isClean()); + cloudControlConfigs_ = null; + } + return cloudControlConfigsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.SerializedPolicy) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.SerializedPolicy) + private static final com.google.cloud.designcenter.v1.SerializedPolicy DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.SerializedPolicy(); + } + + public static com.google.cloud.designcenter.v1.SerializedPolicy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SerializedPolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.SerializedPolicy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SerializedPolicyOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SerializedPolicyOrBuilder.java new file mode 100644 index 000000000000..88ae6fb1bdbf --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SerializedPolicyOrBuilder.java @@ -0,0 +1,357 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface SerializedPolicyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.SerializedPolicy) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. URI of the policy.
+   * 
+ * + * string policy_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the policyUri field is set. + */ + boolean hasPolicyUri(); + + /** + * + * + *
+   * Optional. URI of the policy.
+   * 
+ * + * string policy_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The policyUri. + */ + java.lang.String getPolicyUri(); + + /** + * + * + *
+   * Optional. URI of the policy.
+   * 
+ * + * string policy_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for policyUri. + */ + com.google.protobuf.ByteString getPolicyUriBytes(); + + /** + * + * + *
+   * Optional. URI of the policy revision.
+   * 
+ * + * string policy_revision_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the policyRevisionUri field is set. + */ + boolean hasPolicyRevisionUri(); + + /** + * + * + *
+   * Optional. URI of the policy revision.
+   * 
+ * + * string policy_revision_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The policyRevisionUri. + */ + java.lang.String getPolicyRevisionUri(); + + /** + * + * + *
+   * Optional. URI of the policy revision.
+   * 
+ * + * string policy_revision_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for policyRevisionUri. + */ + com.google.protobuf.ByteString getPolicyRevisionUriBytes(); + + /** + * + * + *
+   * Required. The uri of the policy in application template.
+   * Format:
+   * `projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/policies/{policy}`
+   * 
+ * + * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The uri. + */ + java.lang.String getUri(); + + /** + * + * + *
+   * Required. The uri of the policy in application template.
+   * Format:
+   * `projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/policies/{policy}`
+   * 
+ * + * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for uri. + */ + com.google.protobuf.ByteString getUriBytes(); + + /** + * + * + *
+   * Optional. The serialized policy display name.
+   * The number of characters should be less than 128 characters.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
+   * Optional. The serialized policy display name.
+   * The number of characters should be less than 128 characters.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Optional. The serialized policy description.
+   * At most 2048 characters.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
+   * Optional. The serialized policy description.
+   * At most 2048 characters.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Required. Policy type will be used to determine the domain of the policy.
+   * 
+ * + * + * .google.cloud.designcenter.v1.SerializedPolicy.PolicyType policy_type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for policyType. + */ + int getPolicyTypeValue(); + + /** + * + * + *
+   * Required. Policy type will be used to determine the domain of the policy.
+   * 
+ * + * + * .google.cloud.designcenter.v1.SerializedPolicy.PolicyType policy_type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The policyType. + */ + com.google.cloud.designcenter.v1.SerializedPolicy.PolicyType getPolicyType(); + + /** + * + * + *
+   * Optional. The serialized policy apply conditions.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplyCondition apply_conditions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getApplyConditionsList(); + + /** + * + * + *
+   * Optional. The serialized policy apply conditions.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplyCondition apply_conditions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.ApplyCondition getApplyConditions(int index); + + /** + * + * + *
+   * Optional. The serialized policy apply conditions.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplyCondition apply_conditions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getApplyConditionsCount(); + + /** + * + * + *
+   * Optional. The serialized policy apply conditions.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplyCondition apply_conditions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getApplyConditionsOrBuilderList(); + + /** + * + * + *
+   * Optional. The serialized policy apply conditions.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ApplyCondition apply_conditions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.ApplyConditionOrBuilder getApplyConditionsOrBuilder(int index); + + /** + * + * + *
+   * Optional. Stored parameter values grouped by cloud control.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControlConfig cloud_control_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getCloudControlConfigsList(); + + /** + * + * + *
+   * Optional. Stored parameter values grouped by cloud control.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControlConfig cloud_control_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.CloudControlConfig getCloudControlConfigs(int index); + + /** + * + * + *
+   * Optional. Stored parameter values grouped by cloud control.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControlConfig cloud_control_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getCloudControlConfigsCount(); + + /** + * + * + *
+   * Optional. Stored parameter values grouped by cloud control.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControlConfig cloud_control_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getCloudControlConfigsOrBuilderList(); + + /** + * + * + *
+   * Optional. Stored parameter values grouped by cloud control.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.CloudControlConfig cloud_control_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.CloudControlConfigOrBuilder getCloudControlConfigsOrBuilder( + int index); + + com.google.cloud.designcenter.v1.SerializedPolicy.SourceUriCase getSourceUriCase(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SerializedProvider.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SerializedProvider.java new file mode 100644 index 000000000000..52c6d2f80b08 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SerializedProvider.java @@ -0,0 +1,1378 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Represents a serialized Terraform provider configuration.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.SerializedProvider} + */ +@com.google.protobuf.Generated +public final class SerializedProvider extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.SerializedProvider) + SerializedProviderOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "SerializedProvider"); + } + + // Use SerializedProvider.newBuilder() to construct. + private SerializedProvider(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SerializedProvider() { + provider_ = ""; + providerAlias_ = ""; + parameters_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringResourcesProto + .internal_static_google_cloud_designcenter_v1_SerializedProvider_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringResourcesProto + .internal_static_google_cloud_designcenter_v1_SerializedProvider_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.SerializedProvider.class, + com.google.cloud.designcenter.v1.SerializedProvider.Builder.class); + } + + public static final int PROVIDER_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object provider_ = ""; + + /** + * + * + *
+   * Required. Name of the provider (e.g., `"google"`, `"google-beta"`,
+   * `"google-nightly"`).
+   * 
+ * + * string provider = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The provider. + */ + @java.lang.Override + public java.lang.String getProvider() { + java.lang.Object ref = provider_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + provider_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Name of the provider (e.g., `"google"`, `"google-beta"`,
+   * `"google-nightly"`).
+   * 
+ * + * string provider = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for provider. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProviderBytes() { + java.lang.Object ref = provider_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + provider_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROVIDER_ALIAS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object providerAlias_ = ""; + + /** + * + * + *
+   * Optional. Optional alias for the provider (supports multi-region setups).
+   * 
+ * + * string provider_alias = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The providerAlias. + */ + @java.lang.Override + public java.lang.String getProviderAlias() { + java.lang.Object ref = providerAlias_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + providerAlias_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Optional alias for the provider (supports multi-region setups).
+   * 
+ * + * string provider_alias = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for providerAlias. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProviderAliasBytes() { + java.lang.Object ref = providerAlias_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + providerAlias_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARAMETERS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List parameters_; + + /** + * + * + *
+   * Optional. Configuration parameters of the provider. Reuses the standard
+   * Parameter message.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getParametersList() { + return parameters_; + } + + /** + * + * + *
+   * Optional. Configuration parameters of the provider. Reuses the standard
+   * Parameter message.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getParametersOrBuilderList() { + return parameters_; + } + + /** + * + * + *
+   * Optional. Configuration parameters of the provider. Reuses the standard
+   * Parameter message.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getParametersCount() { + return parameters_.size(); + } + + /** + * + * + *
+   * Optional. Configuration parameters of the provider. Reuses the standard
+   * Parameter message.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.Parameter getParameters(int index) { + return parameters_.get(index); + } + + /** + * + * + *
+   * Optional. Configuration parameters of the provider. Reuses the standard
+   * Parameter message.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ParameterOrBuilder getParametersOrBuilder(int index) { + return parameters_.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.GeneratedMessage.isStringEmpty(provider_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, provider_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(providerAlias_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, providerAlias_); + } + for (int i = 0; i < parameters_.size(); i++) { + output.writeMessage(3, parameters_.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.GeneratedMessage.isStringEmpty(provider_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, provider_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(providerAlias_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, providerAlias_); + } + for (int i = 0; i < parameters_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, parameters_.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.designcenter.v1.SerializedProvider)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.SerializedProvider other = + (com.google.cloud.designcenter.v1.SerializedProvider) obj; + + if (!getProvider().equals(other.getProvider())) return false; + if (!getProviderAlias().equals(other.getProviderAlias())) return false; + if (!getParametersList().equals(other.getParametersList())) 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) + PROVIDER_FIELD_NUMBER; + hash = (53 * hash) + getProvider().hashCode(); + hash = (37 * hash) + PROVIDER_ALIAS_FIELD_NUMBER; + hash = (53 * hash) + getProviderAlias().hashCode(); + if (getParametersCount() > 0) { + hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getParametersList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.SerializedProvider parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.SerializedProvider 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.designcenter.v1.SerializedProvider parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.SerializedProvider parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.SerializedProvider parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.SerializedProvider parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.SerializedProvider parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.SerializedProvider parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.SerializedProvider parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.SerializedProvider parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.SerializedProvider parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.SerializedProvider parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.SerializedProvider 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Represents a serialized Terraform provider configuration.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.SerializedProvider} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.SerializedProvider) + com.google.cloud.designcenter.v1.SerializedProviderOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringResourcesProto + .internal_static_google_cloud_designcenter_v1_SerializedProvider_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringResourcesProto + .internal_static_google_cloud_designcenter_v1_SerializedProvider_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.SerializedProvider.class, + com.google.cloud.designcenter.v1.SerializedProvider.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.SerializedProvider.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + provider_ = ""; + providerAlias_ = ""; + if (parametersBuilder_ == null) { + parameters_ = java.util.Collections.emptyList(); + } else { + parameters_ = null; + parametersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.AuthoringResourcesProto + .internal_static_google_cloud_designcenter_v1_SerializedProvider_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.SerializedProvider getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.SerializedProvider.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.SerializedProvider build() { + com.google.cloud.designcenter.v1.SerializedProvider result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.SerializedProvider buildPartial() { + com.google.cloud.designcenter.v1.SerializedProvider result = + new com.google.cloud.designcenter.v1.SerializedProvider(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.designcenter.v1.SerializedProvider result) { + if (parametersBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + parameters_ = java.util.Collections.unmodifiableList(parameters_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.parameters_ = parameters_; + } else { + result.parameters_ = parametersBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.designcenter.v1.SerializedProvider result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.provider_ = provider_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.providerAlias_ = providerAlias_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.SerializedProvider) { + return mergeFrom((com.google.cloud.designcenter.v1.SerializedProvider) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.SerializedProvider other) { + if (other == com.google.cloud.designcenter.v1.SerializedProvider.getDefaultInstance()) + return this; + if (!other.getProvider().isEmpty()) { + provider_ = other.provider_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getProviderAlias().isEmpty()) { + providerAlias_ = other.providerAlias_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (parametersBuilder_ == null) { + if (!other.parameters_.isEmpty()) { + if (parameters_.isEmpty()) { + parameters_ = other.parameters_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureParametersIsMutable(); + parameters_.addAll(other.parameters_); + } + onChanged(); + } + } else { + if (!other.parameters_.isEmpty()) { + if (parametersBuilder_.isEmpty()) { + parametersBuilder_.dispose(); + parametersBuilder_ = null; + parameters_ = other.parameters_; + bitField0_ = (bitField0_ & ~0x00000004); + parametersBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetParametersFieldBuilder() + : null; + } else { + parametersBuilder_.addAllMessages(other.parameters_); + } + } + } + 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: + { + provider_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + providerAlias_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + com.google.cloud.designcenter.v1.Parameter m = + input.readMessage( + com.google.cloud.designcenter.v1.Parameter.parser(), extensionRegistry); + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + parameters_.add(m); + } else { + parametersBuilder_.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 provider_ = ""; + + /** + * + * + *
+     * Required. Name of the provider (e.g., `"google"`, `"google-beta"`,
+     * `"google-nightly"`).
+     * 
+ * + * string provider = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The provider. + */ + public java.lang.String getProvider() { + java.lang.Object ref = provider_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + provider_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Name of the provider (e.g., `"google"`, `"google-beta"`,
+     * `"google-nightly"`).
+     * 
+ * + * string provider = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for provider. + */ + public com.google.protobuf.ByteString getProviderBytes() { + java.lang.Object ref = provider_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + provider_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Name of the provider (e.g., `"google"`, `"google-beta"`,
+     * `"google-nightly"`).
+     * 
+ * + * string provider = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The provider to set. + * @return This builder for chaining. + */ + public Builder setProvider(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + provider_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Name of the provider (e.g., `"google"`, `"google-beta"`,
+     * `"google-nightly"`).
+     * 
+ * + * string provider = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearProvider() { + provider_ = getDefaultInstance().getProvider(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Name of the provider (e.g., `"google"`, `"google-beta"`,
+     * `"google-nightly"`).
+     * 
+ * + * string provider = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for provider to set. + * @return This builder for chaining. + */ + public Builder setProviderBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + provider_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object providerAlias_ = ""; + + /** + * + * + *
+     * Optional. Optional alias for the provider (supports multi-region setups).
+     * 
+ * + * string provider_alias = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The providerAlias. + */ + public java.lang.String getProviderAlias() { + java.lang.Object ref = providerAlias_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + providerAlias_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Optional alias for the provider (supports multi-region setups).
+     * 
+ * + * string provider_alias = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for providerAlias. + */ + public com.google.protobuf.ByteString getProviderAliasBytes() { + java.lang.Object ref = providerAlias_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + providerAlias_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Optional alias for the provider (supports multi-region setups).
+     * 
+ * + * string provider_alias = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The providerAlias to set. + * @return This builder for chaining. + */ + public Builder setProviderAlias(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + providerAlias_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Optional alias for the provider (supports multi-region setups).
+     * 
+ * + * string provider_alias = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearProviderAlias() { + providerAlias_ = getDefaultInstance().getProviderAlias(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Optional alias for the provider (supports multi-region setups).
+     * 
+ * + * string provider_alias = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for providerAlias to set. + * @return This builder for chaining. + */ + public Builder setProviderAliasBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + providerAlias_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.util.List parameters_ = + java.util.Collections.emptyList(); + + private void ensureParametersIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + parameters_ = + new java.util.ArrayList(parameters_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Parameter, + com.google.cloud.designcenter.v1.Parameter.Builder, + com.google.cloud.designcenter.v1.ParameterOrBuilder> + parametersBuilder_; + + /** + * + * + *
+     * Optional. Configuration parameters of the provider. Reuses the standard
+     * Parameter message.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getParametersList() { + if (parametersBuilder_ == null) { + return java.util.Collections.unmodifiableList(parameters_); + } else { + return parametersBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. Configuration parameters of the provider. Reuses the standard
+     * Parameter message.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getParametersCount() { + if (parametersBuilder_ == null) { + return parameters_.size(); + } else { + return parametersBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. Configuration parameters of the provider. Reuses the standard
+     * Parameter message.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter getParameters(int index) { + if (parametersBuilder_ == null) { + return parameters_.get(index); + } else { + return parametersBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. Configuration parameters of the provider. Reuses the standard
+     * Parameter message.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setParameters(int index, com.google.cloud.designcenter.v1.Parameter value) { + if (parametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureParametersIsMutable(); + parameters_.set(index, value); + onChanged(); + } else { + parametersBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Configuration parameters of the provider. Reuses the standard
+     * Parameter message.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setParameters( + int index, com.google.cloud.designcenter.v1.Parameter.Builder builderForValue) { + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + parameters_.set(index, builderForValue.build()); + onChanged(); + } else { + parametersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Configuration parameters of the provider. Reuses the standard
+     * Parameter message.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addParameters(com.google.cloud.designcenter.v1.Parameter value) { + if (parametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureParametersIsMutable(); + parameters_.add(value); + onChanged(); + } else { + parametersBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. Configuration parameters of the provider. Reuses the standard
+     * Parameter message.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addParameters(int index, com.google.cloud.designcenter.v1.Parameter value) { + if (parametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureParametersIsMutable(); + parameters_.add(index, value); + onChanged(); + } else { + parametersBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Configuration parameters of the provider. Reuses the standard
+     * Parameter message.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addParameters( + com.google.cloud.designcenter.v1.Parameter.Builder builderForValue) { + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + parameters_.add(builderForValue.build()); + onChanged(); + } else { + parametersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Configuration parameters of the provider. Reuses the standard
+     * Parameter message.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addParameters( + int index, com.google.cloud.designcenter.v1.Parameter.Builder builderForValue) { + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + parameters_.add(index, builderForValue.build()); + onChanged(); + } else { + parametersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Configuration parameters of the provider. Reuses the standard
+     * Parameter message.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllParameters( + java.lang.Iterable values) { + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, parameters_); + onChanged(); + } else { + parametersBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. Configuration parameters of the provider. Reuses the standard
+     * Parameter message.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearParameters() { + if (parametersBuilder_ == null) { + parameters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + parametersBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Configuration parameters of the provider. Reuses the standard
+     * Parameter message.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeParameters(int index) { + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + parameters_.remove(index); + onChanged(); + } else { + parametersBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. Configuration parameters of the provider. Reuses the standard
+     * Parameter message.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter.Builder getParametersBuilder(int index) { + return internalGetParametersFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. Configuration parameters of the provider. Reuses the standard
+     * Parameter message.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ParameterOrBuilder getParametersOrBuilder(int index) { + if (parametersBuilder_ == null) { + return parameters_.get(index); + } else { + return parametersBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. Configuration parameters of the provider. Reuses the standard
+     * Parameter message.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getParametersOrBuilderList() { + if (parametersBuilder_ != null) { + return parametersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(parameters_); + } + } + + /** + * + * + *
+     * Optional. Configuration parameters of the provider. Reuses the standard
+     * Parameter message.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter.Builder addParametersBuilder() { + return internalGetParametersFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.Parameter.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Configuration parameters of the provider. Reuses the standard
+     * Parameter message.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter.Builder addParametersBuilder(int index) { + return internalGetParametersFieldBuilder() + .addBuilder(index, com.google.cloud.designcenter.v1.Parameter.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Configuration parameters of the provider. Reuses the standard
+     * Parameter message.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getParametersBuilderList() { + return internalGetParametersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Parameter, + com.google.cloud.designcenter.v1.Parameter.Builder, + com.google.cloud.designcenter.v1.ParameterOrBuilder> + internalGetParametersFieldBuilder() { + if (parametersBuilder_ == null) { + parametersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Parameter, + com.google.cloud.designcenter.v1.Parameter.Builder, + com.google.cloud.designcenter.v1.ParameterOrBuilder>( + parameters_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + parameters_ = null; + } + return parametersBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.SerializedProvider) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.SerializedProvider) + private static final com.google.cloud.designcenter.v1.SerializedProvider DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.SerializedProvider(); + } + + public static com.google.cloud.designcenter.v1.SerializedProvider getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SerializedProvider parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.SerializedProvider getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SerializedProviderOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SerializedProviderOrBuilder.java new file mode 100644 index 000000000000..1099aa019e1a --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SerializedProviderOrBuilder.java @@ -0,0 +1,153 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface SerializedProviderOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.SerializedProvider) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the provider (e.g., `"google"`, `"google-beta"`,
+   * `"google-nightly"`).
+   * 
+ * + * string provider = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The provider. + */ + java.lang.String getProvider(); + + /** + * + * + *
+   * Required. Name of the provider (e.g., `"google"`, `"google-beta"`,
+   * `"google-nightly"`).
+   * 
+ * + * string provider = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for provider. + */ + com.google.protobuf.ByteString getProviderBytes(); + + /** + * + * + *
+   * Optional. Optional alias for the provider (supports multi-region setups).
+   * 
+ * + * string provider_alias = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The providerAlias. + */ + java.lang.String getProviderAlias(); + + /** + * + * + *
+   * Optional. Optional alias for the provider (supports multi-region setups).
+   * 
+ * + * string provider_alias = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for providerAlias. + */ + com.google.protobuf.ByteString getProviderAliasBytes(); + + /** + * + * + *
+   * Optional. Configuration parameters of the provider. Reuses the standard
+   * Parameter message.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getParametersList(); + + /** + * + * + *
+   * Optional. Configuration parameters of the provider. Reuses the standard
+   * Parameter message.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.Parameter getParameters(int index); + + /** + * + * + *
+   * Optional. Configuration parameters of the provider. Reuses the standard
+   * Parameter message.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getParametersCount(); + + /** + * + * + *
+   * Optional. Configuration parameters of the provider. Reuses the standard
+   * Parameter message.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getParametersOrBuilderList(); + + /** + * + * + *
+   * Optional. Configuration parameters of the provider. Reuses the standard
+   * Parameter message.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.ParameterOrBuilder getParametersOrBuilder(int index); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/Share.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/Share.java new file mode 100644 index 000000000000..a1621d001f99 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/Share.java @@ -0,0 +1,1458 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/sharing.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * A catalog share between spaces.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.Share} + */ +@com.google.protobuf.Generated +public final class Share extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.Share) + ShareOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "Share"); + } + + // Use Share.newBuilder() to construct. + private Share(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Share() { + name_ = ""; + destinationSpace_ = ""; + state_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.SharingResourcesProto + .internal_static_google_cloud_designcenter_v1_Share_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.SharingResourcesProto + .internal_static_google_cloud_designcenter_v1_Share_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.Share.class, + com.google.cloud.designcenter.v1.Share.Builder.class); + } + + /** + * + * + *
+   * The share status, which indicates whether the catalog is in sync.
+   * 
+ * + * Protobuf enum {@code google.cloud.designcenter.v1.Share.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * The state of the share is unknown.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * The share is in sync with the shared template catalog.
+     * 
+ * + * IN_SYNC = 1; + */ + IN_SYNC(1), + /** + * + * + *
+     * The share is out of sync with the shared template catalog.
+     * 
+ * + * OUT_OF_SYNC = 2; + */ + OUT_OF_SYNC(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
+     * The state of the share is unknown.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * The share is in sync with the shared template catalog.
+     * 
+ * + * IN_SYNC = 1; + */ + public static final int IN_SYNC_VALUE = 1; + + /** + * + * + *
+     * The share is out of sync with the shared template catalog.
+     * 
+ * + * OUT_OF_SYNC = 2; + */ + public static final int OUT_OF_SYNC_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 IN_SYNC; + case 2: + return OUT_OF_SYNC; + 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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.designcenter.v1.Share.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.designcenter.v1.Share.State) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Identifier. The share name in the following format:
+   * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/shares/$share`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + + /** + * + * + *
+   * Identifier. The share name in the following format:
+   * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/shares/$share`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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 DESTINATION_SPACE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object destinationSpace_ = ""; + + /** + * + * + *
+   * Required. The space resource path to which the catalog is shared.
+   * Format is `projects/$project/locations/$location/spaces/$space`
+   * 
+ * + * + * string destination_space = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The destinationSpace. + */ + @java.lang.Override + public java.lang.String getDestinationSpace() { + java.lang.Object ref = destinationSpace_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + destinationSpace_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The space resource path to which the catalog is shared.
+   * Format is `projects/$project/locations/$location/spaces/$space`
+   * 
+ * + * + * string destination_space = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for destinationSpace. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDestinationSpaceBytes() { + java.lang.Object ref = destinationSpace_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + destinationSpace_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+   * Output only. The share creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. The share creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.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 share creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.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 STATE_FIELD_NUMBER = 4; + private int state_ = 0; + + /** + * + * + *
+   * Output only. The state of the share.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Share.State state = 4 [(.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. The state of the share.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Share.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.Share.State getState() { + com.google.cloud.designcenter.v1.Share.State result = + com.google.cloud.designcenter.v1.Share.State.forNumber(state_); + return result == null ? com.google.cloud.designcenter.v1.Share.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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(destinationSpace_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, destinationSpace_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getCreateTime()); + } + if (state_ != com.google.cloud.designcenter.v1.Share.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(4, state_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(destinationSpace_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, destinationSpace_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + } + if (state_ != com.google.cloud.designcenter.v1.Share.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, 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.designcenter.v1.Share)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.Share other = (com.google.cloud.designcenter.v1.Share) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDestinationSpace().equals(other.getDestinationSpace())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) 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(); + hash = (37 * hash) + DESTINATION_SPACE_FIELD_NUMBER; + hash = (53 * hash) + getDestinationSpace().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().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.designcenter.v1.Share parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.Share 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.designcenter.v1.Share parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.Share parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.Share parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.Share parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.Share parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.Share parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.Share parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.Share parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.Share parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.Share parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.Share 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A catalog share between spaces.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.Share} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.Share) + com.google.cloud.designcenter.v1.ShareOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.SharingResourcesProto + .internal_static_google_cloud_designcenter_v1_Share_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.SharingResourcesProto + .internal_static_google_cloud_designcenter_v1_Share_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.Share.class, + com.google.cloud.designcenter.v1.Share.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.Share.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + destinationSpace_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + state_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.SharingResourcesProto + .internal_static_google_cloud_designcenter_v1_Share_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.Share getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.Share.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.Share build() { + com.google.cloud.designcenter.v1.Share result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.Share buildPartial() { + com.google.cloud.designcenter.v1.Share result = + new com.google.cloud.designcenter.v1.Share(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.Share result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.destinationSpace_ = destinationSpace_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.state_ = state_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.Share) { + return mergeFrom((com.google.cloud.designcenter.v1.Share) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.Share other) { + if (other == com.google.cloud.designcenter.v1.Share.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDestinationSpace().isEmpty()) { + destinationSpace_ = other.destinationSpace_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + 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: + { + destinationSpace_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + state_ = input.readEnum(); + 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 name_ = ""; + + /** + * + * + *
+     * Identifier. The share name in the following format:
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/shares/$share`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.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; + } + } + + /** + * + * + *
+     * Identifier. The share name in the following format:
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/shares/$share`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + + /** + * + * + *
+     * Identifier. The share name in the following format:
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/shares/$share`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + + /** + * + * + *
+     * Identifier. The share name in the following format:
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/shares/$share`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier. The share name in the following format:
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/shares/$share`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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 destinationSpace_ = ""; + + /** + * + * + *
+     * Required. The space resource path to which the catalog is shared.
+     * Format is `projects/$project/locations/$location/spaces/$space`
+     * 
+ * + * + * string destination_space = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The destinationSpace. + */ + public java.lang.String getDestinationSpace() { + java.lang.Object ref = destinationSpace_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + destinationSpace_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The space resource path to which the catalog is shared.
+     * Format is `projects/$project/locations/$location/spaces/$space`
+     * 
+ * + * + * string destination_space = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for destinationSpace. + */ + public com.google.protobuf.ByteString getDestinationSpaceBytes() { + java.lang.Object ref = destinationSpace_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + destinationSpace_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The space resource path to which the catalog is shared.
+     * Format is `projects/$project/locations/$location/spaces/$space`
+     * 
+ * + * + * string destination_space = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The destinationSpace to set. + * @return This builder for chaining. + */ + public Builder setDestinationSpace(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + destinationSpace_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The space resource path to which the catalog is shared.
+     * Format is `projects/$project/locations/$location/spaces/$space`
+     * 
+ * + * + * string destination_space = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearDestinationSpace() { + destinationSpace_ = getDefaultInstance().getDestinationSpace(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The space resource path to which the catalog is shared.
+     * Format is `projects/$project/locations/$location/spaces/$space`
+     * 
+ * + * + * string destination_space = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for destinationSpace to set. + * @return This builder for chaining. + */ + public Builder setDestinationSpaceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + destinationSpace_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
+     * Output only. The share creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Output only. The share creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.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 share creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.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. The share creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.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. The share creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.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); + } + if (createTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The share creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.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. The share creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The share creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.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 share creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private int state_ = 0; + + /** + * + * + *
+     * Output only. The state of the share.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Share.State state = 4 [(.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. The state of the share.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Share.State state = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The state of the share.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Share.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.Share.State getState() { + com.google.cloud.designcenter.v1.Share.State result = + com.google.cloud.designcenter.v1.Share.State.forNumber(state_); + return result == null ? com.google.cloud.designcenter.v1.Share.State.UNRECOGNIZED : result; + } + + /** + * + * + *
+     * Output only. The state of the share.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Share.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.designcenter.v1.Share.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The state of the share.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Share.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000008); + state_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.Share) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.Share) + private static final com.google.cloud.designcenter.v1.Share DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.Share(); + } + + public static com.google.cloud.designcenter.v1.Share getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Share parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.Share getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ShareName.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ShareName.java new file mode 100644 index 000000000000..4e8867afd06d --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ShareName.java @@ -0,0 +1,301 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.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; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked +@Generated("by gapic-generator-java") +public class ShareName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_SPACE_CATALOG_SHARE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/spaces/{space}/catalogs/{catalog}/shares/{share}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String space; + private final String catalog; + private final String share; + + @Deprecated + protected ShareName() { + project = null; + location = null; + space = null; + catalog = null; + share = null; + } + + private ShareName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + space = Preconditions.checkNotNull(builder.getSpace()); + catalog = Preconditions.checkNotNull(builder.getCatalog()); + share = Preconditions.checkNotNull(builder.getShare()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getSpace() { + return space; + } + + public String getCatalog() { + return catalog; + } + + public String getShare() { + return share; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ShareName of( + String project, String location, String space, String catalog, String share) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setSpace(space) + .setCatalog(catalog) + .setShare(share) + .build(); + } + + public static String format( + String project, String location, String space, String catalog, String share) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setSpace(space) + .setCatalog(catalog) + .setShare(share) + .build() + .toString(); + } + + public static @Nullable ShareName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_SPACE_CATALOG_SHARE.validatedMatch( + formattedString, "ShareName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("space"), + matchMap.get("catalog"), + matchMap.get("share")); + } + + 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<@Nullable ShareName> values) { + List list = new ArrayList<>(values.size()); + for (ShareName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_SPACE_CATALOG_SHARE.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 (space != null) { + fieldMapBuilder.put("space", space); + } + if (catalog != null) { + fieldMapBuilder.put("catalog", catalog); + } + if (share != null) { + fieldMapBuilder.put("share", share); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_SPACE_CATALOG_SHARE.instantiate( + "project", + project, + "location", + location, + "space", + space, + "catalog", + catalog, + "share", + share); + } + + @Override + public boolean equals(@Nullable Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + ShareName that = ((ShareName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.space, that.space) + && Objects.equals(this.catalog, that.catalog) + && Objects.equals(this.share, that.share); + } + 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(space); + h *= 1000003; + h ^= Objects.hashCode(catalog); + h *= 1000003; + h ^= Objects.hashCode(share); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/spaces/{space}/catalogs/{catalog}/shares/{share}. + */ + public static class Builder { + private String project; + private String location; + private String space; + private String catalog; + private String share; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getSpace() { + return space; + } + + public String getCatalog() { + return catalog; + } + + public String getShare() { + return share; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setSpace(String space) { + this.space = space; + return this; + } + + public Builder setCatalog(String catalog) { + this.catalog = catalog; + return this; + } + + public Builder setShare(String share) { + this.share = share; + return this; + } + + private Builder(ShareName shareName) { + this.project = shareName.project; + this.location = shareName.location; + this.space = shareName.space; + this.catalog = shareName.catalog; + this.share = shareName.share; + } + + public ShareName build() { + return new ShareName(this); + } + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ShareOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ShareOrBuilder.java new file mode 100644 index 000000000000..588130e21fb4 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ShareOrBuilder.java @@ -0,0 +1,158 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/sharing.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ShareOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.Share) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier. The share name in the following format:
+   * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/shares/$share`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Identifier. The share name in the following format:
+   * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/shares/$share`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The space resource path to which the catalog is shared.
+   * Format is `projects/$project/locations/$location/spaces/$space`
+   * 
+ * + * + * string destination_space = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The destinationSpace. + */ + java.lang.String getDestinationSpace(); + + /** + * + * + *
+   * Required. The space resource path to which the catalog is shared.
+   * Format is `projects/$project/locations/$location/spaces/$space`
+   * 
+ * + * + * string destination_space = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for destinationSpace. + */ + com.google.protobuf.ByteString getDestinationSpaceBytes(); + + /** + * + * + *
+   * Output only. The share creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
+   * Output only. The share creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
+   * Output only. The share creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The state of the share.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Share.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
+   * Output only. The state of the share.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Share.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.designcenter.v1.Share.State getState(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SharedTemplate.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SharedTemplate.java new file mode 100644 index 000000000000..e8bcff16efba --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SharedTemplate.java @@ -0,0 +1,2326 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/sharing.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * A read-only template that is shared with a space.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.SharedTemplate} + */ +@com.google.protobuf.Generated +public final class SharedTemplate extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.SharedTemplate) + SharedTemplateOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "SharedTemplate"); + } + + // Use SharedTemplate.newBuilder() to construct. + private SharedTemplate(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SharedTemplate() { + name_ = ""; + displayName_ = ""; + description_ = ""; + originTemplate_ = ""; + latestRevisionId_ = ""; + templateCategory_ = 0; + type_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.SharingResourcesProto + .internal_static_google_cloud_designcenter_v1_SharedTemplate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.SharingResourcesProto + .internal_static_google_cloud_designcenter_v1_SharedTemplate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.SharedTemplate.class, + com.google.cloud.designcenter.v1.SharedTemplate.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Identifier. The shared template name.
+   * `projects/$project/locations/$location/spaces/$space/sharedTemplates/$sharedTemplate`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + + /** + * + * + *
+   * Identifier. The shared template name.
+   * `projects/$project/locations/$location/spaces/$space/sharedTemplates/$sharedTemplate`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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 = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
+   * Optional. The shared template display name.
+   * 
+ * + * 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. The shared template display name.
+   * 
+ * + * 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 DESCRIPTION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
+   * Optional. The shared template description.
+   * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The shared template description.
+   * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORIGIN_TEMPLATE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object originTemplate_ = ""; + + /** + * + * + *
+   * Output only. The origin template of the shared template.
+   * 
+ * + * + * string origin_template = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The originTemplate. + */ + @java.lang.Override + public java.lang.String getOriginTemplate() { + java.lang.Object ref = originTemplate_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + originTemplate_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The origin template of the shared template.
+   * 
+ * + * + * string origin_template = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for originTemplate. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOriginTemplateBytes() { + java.lang.Object ref = originTemplate_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + originTemplate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+   * Output only. The shared template creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. The shared template creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.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 shared template creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.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 = 5; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
+   * Output only. The shared template update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. The shared template update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.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 shared template update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.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 LATEST_REVISION_ID_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object latestRevisionId_ = ""; + + /** + * + * + *
+   * Output only. Latest revision of the shared template.
+   * 
+ * + * string latest_revision_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The latestRevisionId. + */ + @java.lang.Override + public java.lang.String getLatestRevisionId() { + java.lang.Object ref = latestRevisionId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + latestRevisionId_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. Latest revision of the shared template.
+   * 
+ * + * string latest_revision_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for latestRevisionId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLatestRevisionIdBytes() { + java.lang.Object ref = latestRevisionId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + latestRevisionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TEMPLATE_CATEGORY_FIELD_NUMBER = 8; + private int templateCategory_ = 0; + + /** + * + * + *
+   * Required. The category of the template.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TemplateCategory template_category = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for templateCategory. + */ + @java.lang.Override + public int getTemplateCategoryValue() { + return templateCategory_; + } + + /** + * + * + *
+   * Required. The category of the template.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TemplateCategory template_category = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The templateCategory. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TemplateCategory getTemplateCategory() { + com.google.cloud.designcenter.v1.TemplateCategory result = + com.google.cloud.designcenter.v1.TemplateCategory.forNumber(templateCategory_); + return result == null ? com.google.cloud.designcenter.v1.TemplateCategory.UNRECOGNIZED : result; + } + + public static final int TYPE_FIELD_NUMBER = 9; + private int type_ = 0; + + /** + * + * + *
+   * Optional. The Application Design Center assembly template type.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TemplateType type = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
+   * Optional. The Application Design Center assembly template type.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TemplateType type = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TemplateType getType() { + com.google.cloud.designcenter.v1.TemplateType result = + com.google.cloud.designcenter.v1.TemplateType.forNumber(type_); + return result == null ? com.google.cloud.designcenter.v1.TemplateType.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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, description_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(originTemplate_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, originTemplate_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(latestRevisionId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, latestRevisionId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, displayName_); + } + if (templateCategory_ + != com.google.cloud.designcenter.v1.TemplateCategory.TEMPLATE_CATEGORY_UNSPECIFIED + .getNumber()) { + output.writeEnum(8, templateCategory_); + } + if (type_ + != com.google.cloud.designcenter.v1.TemplateType.TEMPLATE_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(9, type_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, description_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(originTemplate_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, originTemplate_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(latestRevisionId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, latestRevisionId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, displayName_); + } + if (templateCategory_ + != com.google.cloud.designcenter.v1.TemplateCategory.TEMPLATE_CATEGORY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, templateCategory_); + } + if (type_ + != com.google.cloud.designcenter.v1.TemplateType.TEMPLATE_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, type_); + } + 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.designcenter.v1.SharedTemplate)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.SharedTemplate other = + (com.google.cloud.designcenter.v1.SharedTemplate) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getOriginTemplate().equals(other.getOriginTemplate())) 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 (!getLatestRevisionId().equals(other.getLatestRevisionId())) return false; + if (templateCategory_ != other.templateCategory_) return false; + if (type_ != other.type_) 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) + ORIGIN_TEMPLATE_FIELD_NUMBER; + hash = (53 * hash) + getOriginTemplate().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) + LATEST_REVISION_ID_FIELD_NUMBER; + hash = (53 * hash) + getLatestRevisionId().hashCode(); + hash = (37 * hash) + TEMPLATE_CATEGORY_FIELD_NUMBER; + hash = (53 * hash) + templateCategory_; + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.SharedTemplate parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.SharedTemplate 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.designcenter.v1.SharedTemplate parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.SharedTemplate parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.SharedTemplate parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.SharedTemplate parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.SharedTemplate parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.SharedTemplate parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.SharedTemplate parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.SharedTemplate parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.SharedTemplate parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.SharedTemplate parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.SharedTemplate 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A read-only template that is shared with a space.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.SharedTemplate} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.SharedTemplate) + com.google.cloud.designcenter.v1.SharedTemplateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.SharingResourcesProto + .internal_static_google_cloud_designcenter_v1_SharedTemplate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.SharingResourcesProto + .internal_static_google_cloud_designcenter_v1_SharedTemplate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.SharedTemplate.class, + com.google.cloud.designcenter.v1.SharedTemplate.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.SharedTemplate.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + description_ = ""; + originTemplate_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + latestRevisionId_ = ""; + templateCategory_ = 0; + type_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.SharingResourcesProto + .internal_static_google_cloud_designcenter_v1_SharedTemplate_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.SharedTemplate getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.SharedTemplate.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.SharedTemplate build() { + com.google.cloud.designcenter.v1.SharedTemplate result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.SharedTemplate buildPartial() { + com.google.cloud.designcenter.v1.SharedTemplate result = + new com.google.cloud.designcenter.v1.SharedTemplate(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.SharedTemplate 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.originTemplate_ = originTemplate_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.latestRevisionId_ = latestRevisionId_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.templateCategory_ = templateCategory_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.type_ = type_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.SharedTemplate) { + return mergeFrom((com.google.cloud.designcenter.v1.SharedTemplate) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.SharedTemplate other) { + if (other == com.google.cloud.designcenter.v1.SharedTemplate.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.getOriginTemplate().isEmpty()) { + originTemplate_ = other.originTemplate_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (!other.getLatestRevisionId().isEmpty()) { + latestRevisionId_ = other.latestRevisionId_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (other.templateCategory_ != 0) { + setTemplateCategoryValue(other.getTemplateCategoryValue()); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + 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: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 26: + { + originTemplate_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 42 + case 50: + { + latestRevisionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 50 + case 58: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 58 + case 64: + { + templateCategory_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 72: + { + type_ = input.readEnum(); + bitField0_ |= 0x00000100; + break; + } // case 72 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Identifier. The shared template name.
+     * `projects/$project/locations/$location/spaces/$space/sharedTemplates/$sharedTemplate`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.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; + } + } + + /** + * + * + *
+     * Identifier. The shared template name.
+     * `projects/$project/locations/$location/spaces/$space/sharedTemplates/$sharedTemplate`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + + /** + * + * + *
+     * Identifier. The shared template name.
+     * `projects/$project/locations/$location/spaces/$space/sharedTemplates/$sharedTemplate`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + + /** + * + * + *
+     * Identifier. The shared template name.
+     * `projects/$project/locations/$location/spaces/$space/sharedTemplates/$sharedTemplate`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier. The shared template name.
+     * `projects/$project/locations/$location/spaces/$space/sharedTemplates/$sharedTemplate`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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_ = ""; + + /** + * + * + *
+     * Optional. The shared template display name.
+     * 
+ * + * 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. The shared template display name.
+     * 
+ * + * 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. The shared template display name.
+     * 
+ * + * 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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The shared template display name.
+     * 
+ * + * string display_name = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The shared template display name.
+     * 
+ * + * 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_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
+     * Optional. The shared template description.
+     * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The shared template description.
+     * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The shared template description.
+     * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The shared template description.
+     * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The shared template description.
+     * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object originTemplate_ = ""; + + /** + * + * + *
+     * Output only. The origin template of the shared template.
+     * 
+ * + * + * string origin_template = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The originTemplate. + */ + public java.lang.String getOriginTemplate() { + java.lang.Object ref = originTemplate_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + originTemplate_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The origin template of the shared template.
+     * 
+ * + * + * string origin_template = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for originTemplate. + */ + public com.google.protobuf.ByteString getOriginTemplateBytes() { + java.lang.Object ref = originTemplate_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + originTemplate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The origin template of the shared template.
+     * 
+ * + * + * string origin_template = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The originTemplate to set. + * @return This builder for chaining. + */ + public Builder setOriginTemplate(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + originTemplate_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The origin template of the shared template.
+     * 
+ * + * + * string origin_template = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearOriginTemplate() { + originTemplate_ = getDefaultInstance().getOriginTemplate(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The origin template of the shared template.
+     * 
+ * + * + * string origin_template = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for originTemplate to set. + * @return This builder for chaining. + */ + public Builder setOriginTemplateBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + originTemplate_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
+     * Output only. The shared template creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Output only. The shared template creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.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 shared template creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The shared template creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The shared template creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The shared template creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000010); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The shared template creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The shared template creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.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 shared template creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + 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.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
+     * Output only. The shared template update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+     * Output only. The shared template update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.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 shared template update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The shared template update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The shared template update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The shared template update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000020); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The shared template update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The shared template update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.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 shared template update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private java.lang.Object latestRevisionId_ = ""; + + /** + * + * + *
+     * Output only. Latest revision of the shared template.
+     * 
+ * + * string latest_revision_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The latestRevisionId. + */ + public java.lang.String getLatestRevisionId() { + java.lang.Object ref = latestRevisionId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + latestRevisionId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Latest revision of the shared template.
+     * 
+ * + * string latest_revision_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for latestRevisionId. + */ + public com.google.protobuf.ByteString getLatestRevisionIdBytes() { + java.lang.Object ref = latestRevisionId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + latestRevisionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Latest revision of the shared template.
+     * 
+ * + * string latest_revision_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The latestRevisionId to set. + * @return This builder for chaining. + */ + public Builder setLatestRevisionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + latestRevisionId_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Latest revision of the shared template.
+     * 
+ * + * string latest_revision_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearLatestRevisionId() { + latestRevisionId_ = getDefaultInstance().getLatestRevisionId(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Latest revision of the shared template.
+     * 
+ * + * string latest_revision_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for latestRevisionId to set. + * @return This builder for chaining. + */ + public Builder setLatestRevisionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + latestRevisionId_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private int templateCategory_ = 0; + + /** + * + * + *
+     * Required. The category of the template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateCategory template_category = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for templateCategory. + */ + @java.lang.Override + public int getTemplateCategoryValue() { + return templateCategory_; + } + + /** + * + * + *
+     * Required. The category of the template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateCategory template_category = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for templateCategory to set. + * @return This builder for chaining. + */ + public Builder setTemplateCategoryValue(int value) { + templateCategory_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The category of the template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateCategory template_category = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The templateCategory. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TemplateCategory getTemplateCategory() { + com.google.cloud.designcenter.v1.TemplateCategory result = + com.google.cloud.designcenter.v1.TemplateCategory.forNumber(templateCategory_); + return result == null + ? com.google.cloud.designcenter.v1.TemplateCategory.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Required. The category of the template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateCategory template_category = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The templateCategory to set. + * @return This builder for chaining. + */ + public Builder setTemplateCategory(com.google.cloud.designcenter.v1.TemplateCategory value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; + templateCategory_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The category of the template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateCategory template_category = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearTemplateCategory() { + bitField0_ = (bitField0_ & ~0x00000080); + templateCategory_ = 0; + onChanged(); + return this; + } + + private int type_ = 0; + + /** + * + * + *
+     * Optional. The Application Design Center assembly template type.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateType type = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
+     * Optional. The Application Design Center assembly template type.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateType type = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + type_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The Application Design Center assembly template type.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateType type = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TemplateType getType() { + com.google.cloud.designcenter.v1.TemplateType result = + com.google.cloud.designcenter.v1.TemplateType.forNumber(type_); + return result == null ? com.google.cloud.designcenter.v1.TemplateType.UNRECOGNIZED : result; + } + + /** + * + * + *
+     * Optional. The Application Design Center assembly template type.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateType type = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(com.google.cloud.designcenter.v1.TemplateType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000100; + type_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The Application Design Center assembly template type.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateType type = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000100); + type_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.SharedTemplate) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.SharedTemplate) + private static final com.google.cloud.designcenter.v1.SharedTemplate DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.SharedTemplate(); + } + + public static com.google.cloud.designcenter.v1.SharedTemplate getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SharedTemplate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.SharedTemplate getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SharedTemplateName.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SharedTemplateName.java new file mode 100644 index 000000000000..34455974675b --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SharedTemplateName.java @@ -0,0 +1,272 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.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; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked +@Generated("by gapic-generator-java") +public class SharedTemplateName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_SPACE_SHARED_TEMPLATE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/spaces/{space}/sharedTemplates/{shared_template}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String space; + private final String sharedTemplate; + + @Deprecated + protected SharedTemplateName() { + project = null; + location = null; + space = null; + sharedTemplate = null; + } + + private SharedTemplateName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + space = Preconditions.checkNotNull(builder.getSpace()); + sharedTemplate = Preconditions.checkNotNull(builder.getSharedTemplate()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getSpace() { + return space; + } + + public String getSharedTemplate() { + return sharedTemplate; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static SharedTemplateName of( + String project, String location, String space, String sharedTemplate) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setSpace(space) + .setSharedTemplate(sharedTemplate) + .build(); + } + + public static String format( + String project, String location, String space, String sharedTemplate) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setSpace(space) + .setSharedTemplate(sharedTemplate) + .build() + .toString(); + } + + public static @Nullable SharedTemplateName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_SPACE_SHARED_TEMPLATE.validatedMatch( + formattedString, "SharedTemplateName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("space"), + matchMap.get("shared_template")); + } + + 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<@Nullable SharedTemplateName> values) { + List list = new ArrayList<>(values.size()); + for (SharedTemplateName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_SPACE_SHARED_TEMPLATE.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 (space != null) { + fieldMapBuilder.put("space", space); + } + if (sharedTemplate != null) { + fieldMapBuilder.put("shared_template", sharedTemplate); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_SPACE_SHARED_TEMPLATE.instantiate( + "project", + project, + "location", + location, + "space", + space, + "shared_template", + sharedTemplate); + } + + @Override + public boolean equals(@Nullable Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + SharedTemplateName that = ((SharedTemplateName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.space, that.space) + && Objects.equals(this.sharedTemplate, that.sharedTemplate); + } + 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(space); + h *= 1000003; + h ^= Objects.hashCode(sharedTemplate); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/spaces/{space}/sharedTemplates/{shared_template}. + */ + public static class Builder { + private String project; + private String location; + private String space; + private String sharedTemplate; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getSpace() { + return space; + } + + public String getSharedTemplate() { + return sharedTemplate; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setSpace(String space) { + this.space = space; + return this; + } + + public Builder setSharedTemplate(String sharedTemplate) { + this.sharedTemplate = sharedTemplate; + return this; + } + + private Builder(SharedTemplateName sharedTemplateName) { + this.project = sharedTemplateName.project; + this.location = sharedTemplateName.location; + this.space = sharedTemplateName.space; + this.sharedTemplate = sharedTemplateName.sharedTemplate; + } + + public SharedTemplateName build() { + return new SharedTemplateName(this); + } + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SharedTemplateOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SharedTemplateOrBuilder.java new file mode 100644 index 000000000000..e49efecad8c8 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SharedTemplateOrBuilder.java @@ -0,0 +1,304 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/sharing.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface SharedTemplateOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.SharedTemplate) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier. The shared template name.
+   * `projects/$project/locations/$location/spaces/$space/sharedTemplates/$sharedTemplate`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Identifier. The shared template name.
+   * `projects/$project/locations/$location/spaces/$space/sharedTemplates/$sharedTemplate`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. The shared template display name.
+   * 
+ * + * string display_name = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
+   * Optional. The shared template display name.
+   * 
+ * + * string display_name = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Optional. The shared template description.
+   * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
+   * Optional. The shared template description.
+   * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Output only. The origin template of the shared template.
+   * 
+ * + * + * string origin_template = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The originTemplate. + */ + java.lang.String getOriginTemplate(); + + /** + * + * + *
+   * Output only. The origin template of the shared template.
+   * 
+ * + * + * string origin_template = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for originTemplate. + */ + com.google.protobuf.ByteString getOriginTemplateBytes(); + + /** + * + * + *
+   * Output only. The shared template creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
+   * Output only. The shared template creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
+   * Output only. The shared template creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The shared template update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
+   * Output only. The shared template update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
+   * Output only. The shared template update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Latest revision of the shared template.
+   * 
+ * + * string latest_revision_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The latestRevisionId. + */ + java.lang.String getLatestRevisionId(); + + /** + * + * + *
+   * Output only. Latest revision of the shared template.
+   * 
+ * + * string latest_revision_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for latestRevisionId. + */ + com.google.protobuf.ByteString getLatestRevisionIdBytes(); + + /** + * + * + *
+   * Required. The category of the template.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TemplateCategory template_category = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for templateCategory. + */ + int getTemplateCategoryValue(); + + /** + * + * + *
+   * Required. The category of the template.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TemplateCategory template_category = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The templateCategory. + */ + com.google.cloud.designcenter.v1.TemplateCategory getTemplateCategory(); + + /** + * + * + *
+   * Optional. The Application Design Center assembly template type.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TemplateType type = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + + /** + * + * + *
+   * Optional. The Application Design Center assembly template type.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TemplateType type = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The type. + */ + com.google.cloud.designcenter.v1.TemplateType getType(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SharedTemplateRevision.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SharedTemplateRevision.java new file mode 100644 index 000000000000..679365db0810 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SharedTemplateRevision.java @@ -0,0 +1,6890 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/sharing.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * A read-only template revision that is shared with a space.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.SharedTemplateRevision} + */ +@com.google.protobuf.Generated +public final class SharedTemplateRevision extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.SharedTemplateRevision) + SharedTemplateRevisionOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "SharedTemplateRevision"); + } + + // Use SharedTemplateRevision.newBuilder() to construct. + private SharedTemplateRevision(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SharedTemplateRevision() { + name_ = ""; + description_ = ""; + type_ = 0; + originTemplateRevision_ = ""; + templateCategory_ = 0; + logicalProducts_ = java.util.Collections.emptyList(); + resourceTypes_ = java.util.Collections.emptyList(); + iacSource_ = 0; + applicationParameters_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.SharingResourcesProto + .internal_static_google_cloud_designcenter_v1_SharedTemplateRevision_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 18: + return internalGetAnnotations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.SharingResourcesProto + .internal_static_google_cloud_designcenter_v1_SharedTemplateRevision_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.SharedTemplateRevision.class, + com.google.cloud.designcenter.v1.SharedTemplateRevision.Builder.class); + } + + private int bitField0_; + private int artifactLocationCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object artifactLocation_; + + public enum ArtifactLocationCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + GIT_SOURCE(5), + @java.lang.Deprecated + GCS_SOURCE_URI(20), + APPLICATION_TEMPLATE_REVISION_SOURCE(10), + DEVELOPER_CONNECT_SOURCE_CONFIG(13), + OCI_REPO(15), + ARTIFACTLOCATION_NOT_SET(0); + private final int value; + + private ArtifactLocationCase(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 ArtifactLocationCase valueOf(int value) { + return forNumber(value); + } + + public static ArtifactLocationCase forNumber(int value) { + switch (value) { + case 5: + return GIT_SOURCE; + case 20: + return GCS_SOURCE_URI; + case 10: + return APPLICATION_TEMPLATE_REVISION_SOURCE; + case 13: + return DEVELOPER_CONNECT_SOURCE_CONFIG; + case 15: + return OCI_REPO; + case 0: + return ARTIFACTLOCATION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ArtifactLocationCase getArtifactLocationCase() { + return ArtifactLocationCase.forNumber(artifactLocationCase_); + } + + public static final int GIT_SOURCE_FIELD_NUMBER = 5; + + /** + * + * + *
+   * Optional. The git source.
+   * 
+ * + * + * .google.cloud.designcenter.v1.GitSource git_source = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the gitSource field is set. + */ + @java.lang.Override + public boolean hasGitSource() { + return artifactLocationCase_ == 5; + } + + /** + * + * + *
+   * Optional. The git source.
+   * 
+ * + * + * .google.cloud.designcenter.v1.GitSource git_source = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The gitSource. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.GitSource getGitSource() { + if (artifactLocationCase_ == 5) { + return (com.google.cloud.designcenter.v1.GitSource) artifactLocation_; + } + return com.google.cloud.designcenter.v1.GitSource.getDefaultInstance(); + } + + /** + * + * + *
+   * Optional. The git source.
+   * 
+ * + * + * .google.cloud.designcenter.v1.GitSource git_source = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.GitSourceOrBuilder getGitSourceOrBuilder() { + if (artifactLocationCase_ == 5) { + return (com.google.cloud.designcenter.v1.GitSource) artifactLocation_; + } + return com.google.cloud.designcenter.v1.GitSource.getDefaultInstance(); + } + + public static final int GCS_SOURCE_URI_FIELD_NUMBER = 20; + + /** + * + * + *
+   * Optional. Deprecated: Added new field tf_module_gcs_uri.
+   * The Cloud Storage URI, which must be in the format gs://[bucket] or
+   * gs://[bucket]/[object].
+   * 
+ * + * string gcs_source_uri = 20 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.designcenter.v1.SharedTemplateRevision.gcs_source_uri is deprecated. + * See google/cloud/designcenter/v1/sharing.proto;l=140 + * @return Whether the gcsSourceUri field is set. + */ + @java.lang.Deprecated + public boolean hasGcsSourceUri() { + return artifactLocationCase_ == 20; + } + + /** + * + * + *
+   * Optional. Deprecated: Added new field tf_module_gcs_uri.
+   * The Cloud Storage URI, which must be in the format gs://[bucket] or
+   * gs://[bucket]/[object].
+   * 
+ * + * string gcs_source_uri = 20 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.designcenter.v1.SharedTemplateRevision.gcs_source_uri is deprecated. + * See google/cloud/designcenter/v1/sharing.proto;l=140 + * @return The gcsSourceUri. + */ + @java.lang.Deprecated + public java.lang.String getGcsSourceUri() { + java.lang.Object ref = ""; + if (artifactLocationCase_ == 20) { + ref = artifactLocation_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (artifactLocationCase_ == 20) { + artifactLocation_ = s; + } + return s; + } + } + + /** + * + * + *
+   * Optional. Deprecated: Added new field tf_module_gcs_uri.
+   * The Cloud Storage URI, which must be in the format gs://[bucket] or
+   * gs://[bucket]/[object].
+   * 
+ * + * string gcs_source_uri = 20 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.designcenter.v1.SharedTemplateRevision.gcs_source_uri is deprecated. + * See google/cloud/designcenter/v1/sharing.proto;l=140 + * @return The bytes for gcsSourceUri. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getGcsSourceUriBytes() { + java.lang.Object ref = ""; + if (artifactLocationCase_ == 20) { + ref = artifactLocation_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (artifactLocationCase_ == 20) { + artifactLocation_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int APPLICATION_TEMPLATE_REVISION_SOURCE_FIELD_NUMBER = 10; + + /** + * + * + *
+   * Optional. The application template revision source.
+   * 
+ * + * + * string application_template_revision_source = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the applicationTemplateRevisionSource field is set. + */ + public boolean hasApplicationTemplateRevisionSource() { + return artifactLocationCase_ == 10; + } + + /** + * + * + *
+   * Optional. The application template revision source.
+   * 
+ * + * + * string application_template_revision_source = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The applicationTemplateRevisionSource. + */ + public java.lang.String getApplicationTemplateRevisionSource() { + java.lang.Object ref = ""; + if (artifactLocationCase_ == 10) { + ref = artifactLocation_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (artifactLocationCase_ == 10) { + artifactLocation_ = s; + } + return s; + } + } + + /** + * + * + *
+   * Optional. The application template revision source.
+   * 
+ * + * + * string application_template_revision_source = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for applicationTemplateRevisionSource. + */ + public com.google.protobuf.ByteString getApplicationTemplateRevisionSourceBytes() { + java.lang.Object ref = ""; + if (artifactLocationCase_ == 10) { + ref = artifactLocation_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (artifactLocationCase_ == 10) { + artifactLocation_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEVELOPER_CONNECT_SOURCE_CONFIG_FIELD_NUMBER = 13; + + /** + * + * + *
+   * Optional. Configuration for fetching content from source code repository
+   * such as GitHub or Bitbucket through Developer Connect.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectSourceConfig developer_connect_source_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the developerConnectSourceConfig field is set. + */ + @java.lang.Override + public boolean hasDeveloperConnectSourceConfig() { + return artifactLocationCase_ == 13; + } + + /** + * + * + *
+   * Optional. Configuration for fetching content from source code repository
+   * such as GitHub or Bitbucket through Developer Connect.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectSourceConfig developer_connect_source_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The developerConnectSourceConfig. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig + getDeveloperConnectSourceConfig() { + if (artifactLocationCase_ == 13) { + return (com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig) artifactLocation_; + } + return com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig.getDefaultInstance(); + } + + /** + * + * + *
+   * Optional. Configuration for fetching content from source code repository
+   * such as GitHub or Bitbucket through Developer Connect.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectSourceConfig developer_connect_source_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.DeveloperConnectSourceConfigOrBuilder + getDeveloperConnectSourceConfigOrBuilder() { + if (artifactLocationCase_ == 13) { + return (com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig) artifactLocation_; + } + return com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig.getDefaultInstance(); + } + + public static final int OCI_REPO_FIELD_NUMBER = 15; + + /** + * + * + *
+   * Optional. The Open Container Initiative (OCI) repo source that contains
+   * helm charts.
+   * 
+ * + * + * .google.cloud.designcenter.v1.OciRepo oci_repo = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the ociRepo field is set. + */ + @java.lang.Override + public boolean hasOciRepo() { + return artifactLocationCase_ == 15; + } + + /** + * + * + *
+   * Optional. The Open Container Initiative (OCI) repo source that contains
+   * helm charts.
+   * 
+ * + * + * .google.cloud.designcenter.v1.OciRepo oci_repo = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The ociRepo. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.OciRepo getOciRepo() { + if (artifactLocationCase_ == 15) { + return (com.google.cloud.designcenter.v1.OciRepo) artifactLocation_; + } + return com.google.cloud.designcenter.v1.OciRepo.getDefaultInstance(); + } + + /** + * + * + *
+   * Optional. The Open Container Initiative (OCI) repo source that contains
+   * helm charts.
+   * 
+ * + * + * .google.cloud.designcenter.v1.OciRepo oci_repo = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.OciRepoOrBuilder getOciRepoOrBuilder() { + if (artifactLocationCase_ == 15) { + return (com.google.cloud.designcenter.v1.OciRepo) artifactLocation_; + } + return com.google.cloud.designcenter.v1.OciRepo.getDefaultInstance(); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Identifier. The shared template revision name.
+   * $sharedTemplate is a server-generated UUID.
+   * `projects/$project/locations/$location/spaces/$space/sharedTemplates/$sharedTemplate/revisions/$revision`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + + /** + * + * + *
+   * Identifier. The shared template revision name.
+   * $sharedTemplate is a server-generated UUID.
+   * `projects/$project/locations/$location/spaces/$space/sharedTemplates/$sharedTemplate/revisions/$revision`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 12; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
+   * Optional. The shared template revision description.
+   * 
+ * + * string description = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The shared template revision description.
+   * 
+ * + * string description = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TYPE_FIELD_NUMBER = 2; + private int type_ = 0; + + /** + * + * + *
+   * Optional. The Application Design Center assembly template type.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TemplateType type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
+   * Optional. The Application Design Center assembly template type.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TemplateType type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TemplateType getType() { + com.google.cloud.designcenter.v1.TemplateType result = + com.google.cloud.designcenter.v1.TemplateType.forNumber(type_); + return result == null ? com.google.cloud.designcenter.v1.TemplateType.UNRECOGNIZED : result; + } + + public static final int SHARED_TEMPLATE_METADATA_FIELD_NUMBER = 6; + private com.google.cloud.designcenter.v1.TFBlueprintMetadata sharedTemplateMetadata_; + + /** + * + * + *
+   * Output only. The shared template metadata.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata shared_template_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the sharedTemplateMetadata field is set. + */ + @java.lang.Override + public boolean hasSharedTemplateMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. The shared template metadata.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata shared_template_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The sharedTemplateMetadata. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TFBlueprintMetadata getSharedTemplateMetadata() { + return sharedTemplateMetadata_ == null + ? com.google.cloud.designcenter.v1.TFBlueprintMetadata.getDefaultInstance() + : sharedTemplateMetadata_; + } + + /** + * + * + *
+   * Output only. The shared template metadata.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata shared_template_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TFBlueprintMetadataOrBuilder + getSharedTemplateMetadataOrBuilder() { + return sharedTemplateMetadata_ == null + ? com.google.cloud.designcenter.v1.TFBlueprintMetadata.getDefaultInstance() + : sharedTemplateMetadata_; + } + + public static final int ORIGIN_TEMPLATE_REVISION_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object originTemplateRevision_ = ""; + + /** + * + * + *
+   * Output only. The shared template revision refers to the following catalog
+   * template revision.
+   * 
+ * + * + * string origin_template_revision = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The originTemplateRevision. + */ + @java.lang.Override + public java.lang.String getOriginTemplateRevision() { + java.lang.Object ref = originTemplateRevision_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + originTemplateRevision_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The shared template revision refers to the following catalog
+   * template revision.
+   * 
+ * + * + * string origin_template_revision = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for originTemplateRevision. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOriginTemplateRevisionBytes() { + java.lang.Object ref = originTemplateRevision_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + originTemplateRevision_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 8; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+   * Output only. The shared template revision creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. The shared template revision creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 8 [(.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 shared template revision creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 8 [(.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 APPLICATION_TEMPLATE_REVISION_FIELD_NUMBER = 11; + private com.google.cloud.designcenter.v1.SerializedApplicationTemplate + applicationTemplateRevision_; + + /** + * + * + *
+   * Output only. The serialized application template revision.
+   * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate application_template_revision = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the applicationTemplateRevision field is set. + */ + @java.lang.Override + public boolean hasApplicationTemplateRevision() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Output only. The serialized application template revision.
+   * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate application_template_revision = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The applicationTemplateRevision. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.SerializedApplicationTemplate + getApplicationTemplateRevision() { + return applicationTemplateRevision_ == null + ? com.google.cloud.designcenter.v1.SerializedApplicationTemplate.getDefaultInstance() + : applicationTemplateRevision_; + } + + /** + * + * + *
+   * Output only. The serialized application template revision.
+   * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate application_template_revision = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.SerializedApplicationTemplateOrBuilder + getApplicationTemplateRevisionOrBuilder() { + return applicationTemplateRevision_ == null + ? com.google.cloud.designcenter.v1.SerializedApplicationTemplate.getDefaultInstance() + : applicationTemplateRevision_; + } + + public static final int HELM_CHART_METADATA_FIELD_NUMBER = 14; + private com.google.cloud.designcenter.v1.HelmChartMetadata helmChartMetadata_; + + /** + * + * + *
+   * Output only. The helm chart metadata.
+   * 
+ * + * + * .google.cloud.designcenter.v1.HelmChartMetadata helm_chart_metadata = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the helmChartMetadata field is set. + */ + @java.lang.Override + public boolean hasHelmChartMetadata() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Output only. The helm chart metadata.
+   * 
+ * + * + * .google.cloud.designcenter.v1.HelmChartMetadata helm_chart_metadata = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The helmChartMetadata. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.HelmChartMetadata getHelmChartMetadata() { + return helmChartMetadata_ == null + ? com.google.cloud.designcenter.v1.HelmChartMetadata.getDefaultInstance() + : helmChartMetadata_; + } + + /** + * + * + *
+   * Output only. The helm chart metadata.
+   * 
+ * + * + * .google.cloud.designcenter.v1.HelmChartMetadata helm_chart_metadata = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.HelmChartMetadataOrBuilder + getHelmChartMetadataOrBuilder() { + return helmChartMetadata_ == null + ? com.google.cloud.designcenter.v1.HelmChartMetadata.getDefaultInstance() + : helmChartMetadata_; + } + + public static final int TEMPLATE_CATEGORY_FIELD_NUMBER = 16; + private int templateCategory_ = 0; + + /** + * + * + *
+   * Output only. The category of the template.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TemplateCategory template_category = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for templateCategory. + */ + @java.lang.Override + public int getTemplateCategoryValue() { + return templateCategory_; + } + + /** + * + * + *
+   * Output only. The category of the template.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TemplateCategory template_category = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The templateCategory. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TemplateCategory getTemplateCategory() { + com.google.cloud.designcenter.v1.TemplateCategory result = + com.google.cloud.designcenter.v1.TemplateCategory.forNumber(templateCategory_); + return result == null ? com.google.cloud.designcenter.v1.TemplateCategory.UNRECOGNIZED : result; + } + + public static final int LOGICAL_PRODUCTS_FIELD_NUMBER = 17; + + @SuppressWarnings("serial") + private java.util.List logicalProducts_; + + /** + * + * + *
+   * Output only. The Product Main logical product type information.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.LogicalProduct logical_products = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getLogicalProductsList() { + return logicalProducts_; + } + + /** + * + * + *
+   * Output only. The Product Main logical product type information.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.LogicalProduct logical_products = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getLogicalProductsOrBuilderList() { + return logicalProducts_; + } + + /** + * + * + *
+   * Output only. The Product Main logical product type information.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.LogicalProduct logical_products = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getLogicalProductsCount() { + return logicalProducts_.size(); + } + + /** + * + * + *
+   * Output only. The Product Main logical product type information.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.LogicalProduct logical_products = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.LogicalProduct getLogicalProducts(int index) { + return logicalProducts_.get(index); + } + + /** + * + * + *
+   * Output only. The Product Main logical product type information.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.LogicalProduct logical_products = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.LogicalProductOrBuilder getLogicalProductsOrBuilder( + int index) { + return logicalProducts_.get(index); + } + + public static final int ANNOTATIONS_FIELD_NUMBER = 18; + + private static final class AnnotationsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.designcenter.v1.SharingResourcesProto + .internal_static_google_cloud_designcenter_v1_SharedTemplateRevision_AnnotationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField annotations_; + + private com.google.protobuf.MapField + internalGetAnnotations() { + if (annotations_ == null) { + return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry); + } + return annotations_; + } + + public int getAnnotationsCount() { + return internalGetAnnotations().getMap().size(); + } + + /** + * + * + *
+   * Optional. The annotations of the shared template revision.
+   * Key is the annotation name. Value is the annotation value.
+   * 
+ * + * map<string, string> annotations = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetAnnotations().getMap().containsKey(key); + } + + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAnnotations() { + return getAnnotationsMap(); + } + + /** + * + * + *
+   * Optional. The annotations of the shared template revision.
+   * Key is the annotation name. Value is the annotation value.
+   * 
+ * + * map<string, string> annotations = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getAnnotationsMap() { + return internalGetAnnotations().getMap(); + } + + /** + * + * + *
+   * Optional. The annotations of the shared template revision.
+   * Key is the annotation name. Value is the annotation value.
+   * 
+ * + * map<string, string> annotations = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+   * Optional. The annotations of the shared template revision.
+   * Key is the annotation name. Value is the annotation value.
+   * 
+ * + * map<string, string> annotations = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int INFERRED_METADATA_FIELD_NUMBER = 19; + private com.google.cloud.designcenter.v1.InferredMetadata inferredMetadata_; + + /** + * + * + *
+   * Output only. Metadata that was automatically inferred from the template
+   * content.
+   * 
+ * + * + * .google.cloud.designcenter.v1.InferredMetadata inferred_metadata = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the inferredMetadata field is set. + */ + @java.lang.Override + public boolean hasInferredMetadata() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+   * Output only. Metadata that was automatically inferred from the template
+   * content.
+   * 
+ * + * + * .google.cloud.designcenter.v1.InferredMetadata inferred_metadata = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The inferredMetadata. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.InferredMetadata getInferredMetadata() { + return inferredMetadata_ == null + ? com.google.cloud.designcenter.v1.InferredMetadata.getDefaultInstance() + : inferredMetadata_; + } + + /** + * + * + *
+   * Output only. Metadata that was automatically inferred from the template
+   * content.
+   * 
+ * + * + * .google.cloud.designcenter.v1.InferredMetadata inferred_metadata = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.InferredMetadataOrBuilder getInferredMetadataOrBuilder() { + return inferredMetadata_ == null + ? com.google.cloud.designcenter.v1.InferredMetadata.getDefaultInstance() + : inferredMetadata_; + } + + public static final int RESOURCE_TYPES_FIELD_NUMBER = 21; + + @SuppressWarnings("serial") + private java.util.List resourceTypes_; + + /** + * + * + *
+   * Output only. The resource types present in the template revision.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ResourceType resource_types = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getResourceTypesList() { + return resourceTypes_; + } + + /** + * + * + *
+   * Output only. The resource types present in the template revision.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ResourceType resource_types = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getResourceTypesOrBuilderList() { + return resourceTypes_; + } + + /** + * + * + *
+   * Output only. The resource types present in the template revision.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ResourceType resource_types = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getResourceTypesCount() { + return resourceTypes_.size(); + } + + /** + * + * + *
+   * Output only. The resource types present in the template revision.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ResourceType resource_types = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ResourceType getResourceTypes(int index) { + return resourceTypes_.get(index); + } + + /** + * + * + *
+   * Output only. The resource types present in the template revision.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ResourceType resource_types = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ResourceTypeOrBuilder getResourceTypesOrBuilder( + int index) { + return resourceTypes_.get(index); + } + + public static final int IAC_SOURCE_FIELD_NUMBER = 24; + private int iacSource_ = 0; + + /** + * + * + *
+   * Output only. Indicates the IaC source format of this shared template
+   * revision.
+   * 
+ * + * + * .google.cloud.designcenter.v1.IACSource iac_source = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for iacSource. + */ + @java.lang.Override + public int getIacSourceValue() { + return iacSource_; + } + + /** + * + * + *
+   * Output only. Indicates the IaC source format of this shared template
+   * revision.
+   * 
+ * + * + * .google.cloud.designcenter.v1.IACSource iac_source = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The iacSource. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.IACSource getIacSource() { + com.google.cloud.designcenter.v1.IACSource result = + com.google.cloud.designcenter.v1.IACSource.forNumber(iacSource_); + return result == null ? com.google.cloud.designcenter.v1.IACSource.UNRECOGNIZED : result; + } + + public static final int APPLICATION_PARAMETERS_FIELD_NUMBER = 25; + + @SuppressWarnings("serial") + private java.util.List applicationParameters_; + + /** + * + * + *
+   * Optional. The values provided for the input variables.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getApplicationParametersList() { + return applicationParameters_; + } + + /** + * + * + *
+   * Optional. The values provided for the input variables.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getApplicationParametersOrBuilderList() { + return applicationParameters_; + } + + /** + * + * + *
+   * Optional. The values provided for the input variables.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getApplicationParametersCount() { + return applicationParameters_.size(); + } + + /** + * + * + *
+   * Optional. The values provided for the input variables.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.Parameter getApplicationParameters(int index) { + return applicationParameters_.get(index); + } + + /** + * + * + *
+   * Optional. The values provided for the input variables.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ParameterOrBuilder getApplicationParametersOrBuilder( + int index) { + return applicationParameters_.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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (type_ + != com.google.cloud.designcenter.v1.TemplateType.TEMPLATE_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(2, type_); + } + if (artifactLocationCase_ == 5) { + output.writeMessage(5, (com.google.cloud.designcenter.v1.GitSource) artifactLocation_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(6, getSharedTemplateMetadata()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(originTemplateRevision_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, originTemplateRevision_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(8, getCreateTime()); + } + if (artifactLocationCase_ == 10) { + com.google.protobuf.GeneratedMessage.writeString(output, 10, artifactLocation_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(11, getApplicationTemplateRevision()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 12, description_); + } + if (artifactLocationCase_ == 13) { + output.writeMessage( + 13, (com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig) artifactLocation_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(14, getHelmChartMetadata()); + } + if (artifactLocationCase_ == 15) { + output.writeMessage(15, (com.google.cloud.designcenter.v1.OciRepo) artifactLocation_); + } + if (templateCategory_ + != com.google.cloud.designcenter.v1.TemplateCategory.TEMPLATE_CATEGORY_UNSPECIFIED + .getNumber()) { + output.writeEnum(16, templateCategory_); + } + for (int i = 0; i < logicalProducts_.size(); i++) { + output.writeMessage(17, logicalProducts_.get(i)); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 18); + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(19, getInferredMetadata()); + } + if (artifactLocationCase_ == 20) { + com.google.protobuf.GeneratedMessage.writeString(output, 20, artifactLocation_); + } + for (int i = 0; i < resourceTypes_.size(); i++) { + output.writeMessage(21, resourceTypes_.get(i)); + } + if (iacSource_ + != com.google.cloud.designcenter.v1.IACSource.IAC_SOURCE_UNSPECIFIED.getNumber()) { + output.writeEnum(24, iacSource_); + } + for (int i = 0; i < applicationParameters_.size(); i++) { + output.writeMessage(25, applicationParameters_.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.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (type_ + != com.google.cloud.designcenter.v1.TemplateType.TEMPLATE_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); + } + if (artifactLocationCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.cloud.designcenter.v1.GitSource) artifactLocation_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(6, getSharedTemplateMetadata()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(originTemplateRevision_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, originTemplateRevision_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getCreateTime()); + } + if (artifactLocationCase_ == 10) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(10, artifactLocation_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 11, getApplicationTemplateRevision()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(12, description_); + } + if (artifactLocationCase_ == 13) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 13, + (com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig) artifactLocation_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getHelmChartMetadata()); + } + if (artifactLocationCase_ == 15) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 15, (com.google.cloud.designcenter.v1.OciRepo) artifactLocation_); + } + if (templateCategory_ + != com.google.cloud.designcenter.v1.TemplateCategory.TEMPLATE_CATEGORY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(16, templateCategory_); + } + for (int i = 0; i < logicalProducts_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, logicalProducts_.get(i)); + } + for (java.util.Map.Entry entry : + internalGetAnnotations().getMap().entrySet()) { + com.google.protobuf.MapEntry annotations__ = + AnnotationsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, annotations__); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getInferredMetadata()); + } + if (artifactLocationCase_ == 20) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(20, artifactLocation_); + } + for (int i = 0; i < resourceTypes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, resourceTypes_.get(i)); + } + if (iacSource_ + != com.google.cloud.designcenter.v1.IACSource.IAC_SOURCE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(24, iacSource_); + } + for (int i = 0; i < applicationParameters_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 25, applicationParameters_.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.designcenter.v1.SharedTemplateRevision)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.SharedTemplateRevision other = + (com.google.cloud.designcenter.v1.SharedTemplateRevision) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (type_ != other.type_) return false; + if (hasSharedTemplateMetadata() != other.hasSharedTemplateMetadata()) return false; + if (hasSharedTemplateMetadata()) { + if (!getSharedTemplateMetadata().equals(other.getSharedTemplateMetadata())) return false; + } + if (!getOriginTemplateRevision().equals(other.getOriginTemplateRevision())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasApplicationTemplateRevision() != other.hasApplicationTemplateRevision()) return false; + if (hasApplicationTemplateRevision()) { + if (!getApplicationTemplateRevision().equals(other.getApplicationTemplateRevision())) + return false; + } + if (hasHelmChartMetadata() != other.hasHelmChartMetadata()) return false; + if (hasHelmChartMetadata()) { + if (!getHelmChartMetadata().equals(other.getHelmChartMetadata())) return false; + } + if (templateCategory_ != other.templateCategory_) return false; + if (!getLogicalProductsList().equals(other.getLogicalProductsList())) return false; + if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; + if (hasInferredMetadata() != other.hasInferredMetadata()) return false; + if (hasInferredMetadata()) { + if (!getInferredMetadata().equals(other.getInferredMetadata())) return false; + } + if (!getResourceTypesList().equals(other.getResourceTypesList())) return false; + if (iacSource_ != other.iacSource_) return false; + if (!getApplicationParametersList().equals(other.getApplicationParametersList())) return false; + if (!getArtifactLocationCase().equals(other.getArtifactLocationCase())) return false; + switch (artifactLocationCase_) { + case 5: + if (!getGitSource().equals(other.getGitSource())) return false; + break; + case 20: + if (!getGcsSourceUri().equals(other.getGcsSourceUri())) return false; + break; + case 10: + if (!getApplicationTemplateRevisionSource() + .equals(other.getApplicationTemplateRevisionSource())) return false; + break; + case 13: + if (!getDeveloperConnectSourceConfig().equals(other.getDeveloperConnectSourceConfig())) + return false; + break; + case 15: + if (!getOciRepo().equals(other.getOciRepo())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + if (hasSharedTemplateMetadata()) { + hash = (37 * hash) + SHARED_TEMPLATE_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getSharedTemplateMetadata().hashCode(); + } + hash = (37 * hash) + ORIGIN_TEMPLATE_REVISION_FIELD_NUMBER; + hash = (53 * hash) + getOriginTemplateRevision().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasApplicationTemplateRevision()) { + hash = (37 * hash) + APPLICATION_TEMPLATE_REVISION_FIELD_NUMBER; + hash = (53 * hash) + getApplicationTemplateRevision().hashCode(); + } + if (hasHelmChartMetadata()) { + hash = (37 * hash) + HELM_CHART_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getHelmChartMetadata().hashCode(); + } + hash = (37 * hash) + TEMPLATE_CATEGORY_FIELD_NUMBER; + hash = (53 * hash) + templateCategory_; + if (getLogicalProductsCount() > 0) { + hash = (37 * hash) + LOGICAL_PRODUCTS_FIELD_NUMBER; + hash = (53 * hash) + getLogicalProductsList().hashCode(); + } + if (!internalGetAnnotations().getMap().isEmpty()) { + hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; + hash = (53 * hash) + internalGetAnnotations().hashCode(); + } + if (hasInferredMetadata()) { + hash = (37 * hash) + INFERRED_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getInferredMetadata().hashCode(); + } + if (getResourceTypesCount() > 0) { + hash = (37 * hash) + RESOURCE_TYPES_FIELD_NUMBER; + hash = (53 * hash) + getResourceTypesList().hashCode(); + } + hash = (37 * hash) + IAC_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + iacSource_; + if (getApplicationParametersCount() > 0) { + hash = (37 * hash) + APPLICATION_PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getApplicationParametersList().hashCode(); + } + switch (artifactLocationCase_) { + case 5: + hash = (37 * hash) + GIT_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getGitSource().hashCode(); + break; + case 20: + hash = (37 * hash) + GCS_SOURCE_URI_FIELD_NUMBER; + hash = (53 * hash) + getGcsSourceUri().hashCode(); + break; + case 10: + hash = (37 * hash) + APPLICATION_TEMPLATE_REVISION_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getApplicationTemplateRevisionSource().hashCode(); + break; + case 13: + hash = (37 * hash) + DEVELOPER_CONNECT_SOURCE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDeveloperConnectSourceConfig().hashCode(); + break; + case 15: + hash = (37 * hash) + OCI_REPO_FIELD_NUMBER; + hash = (53 * hash) + getOciRepo().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.SharedTemplateRevision parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.SharedTemplateRevision 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.designcenter.v1.SharedTemplateRevision parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.SharedTemplateRevision parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.SharedTemplateRevision parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.SharedTemplateRevision parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.SharedTemplateRevision parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.SharedTemplateRevision parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.SharedTemplateRevision parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.SharedTemplateRevision parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.SharedTemplateRevision parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.SharedTemplateRevision parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.SharedTemplateRevision 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A read-only template revision that is shared with a space.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.SharedTemplateRevision} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.SharedTemplateRevision) + com.google.cloud.designcenter.v1.SharedTemplateRevisionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.SharingResourcesProto + .internal_static_google_cloud_designcenter_v1_SharedTemplateRevision_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 18: + return internalGetAnnotations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 18: + return internalGetMutableAnnotations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.SharingResourcesProto + .internal_static_google_cloud_designcenter_v1_SharedTemplateRevision_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.SharedTemplateRevision.class, + com.google.cloud.designcenter.v1.SharedTemplateRevision.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.SharedTemplateRevision.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetSharedTemplateMetadataFieldBuilder(); + internalGetCreateTimeFieldBuilder(); + internalGetApplicationTemplateRevisionFieldBuilder(); + internalGetHelmChartMetadataFieldBuilder(); + internalGetLogicalProductsFieldBuilder(); + internalGetInferredMetadataFieldBuilder(); + internalGetResourceTypesFieldBuilder(); + internalGetApplicationParametersFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (gitSourceBuilder_ != null) { + gitSourceBuilder_.clear(); + } + if (developerConnectSourceConfigBuilder_ != null) { + developerConnectSourceConfigBuilder_.clear(); + } + if (ociRepoBuilder_ != null) { + ociRepoBuilder_.clear(); + } + name_ = ""; + description_ = ""; + type_ = 0; + sharedTemplateMetadata_ = null; + if (sharedTemplateMetadataBuilder_ != null) { + sharedTemplateMetadataBuilder_.dispose(); + sharedTemplateMetadataBuilder_ = null; + } + originTemplateRevision_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + applicationTemplateRevision_ = null; + if (applicationTemplateRevisionBuilder_ != null) { + applicationTemplateRevisionBuilder_.dispose(); + applicationTemplateRevisionBuilder_ = null; + } + helmChartMetadata_ = null; + if (helmChartMetadataBuilder_ != null) { + helmChartMetadataBuilder_.dispose(); + helmChartMetadataBuilder_ = null; + } + templateCategory_ = 0; + if (logicalProductsBuilder_ == null) { + logicalProducts_ = java.util.Collections.emptyList(); + } else { + logicalProducts_ = null; + logicalProductsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00004000); + internalGetMutableAnnotations().clear(); + inferredMetadata_ = null; + if (inferredMetadataBuilder_ != null) { + inferredMetadataBuilder_.dispose(); + inferredMetadataBuilder_ = null; + } + if (resourceTypesBuilder_ == null) { + resourceTypes_ = java.util.Collections.emptyList(); + } else { + resourceTypes_ = null; + resourceTypesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00020000); + iacSource_ = 0; + if (applicationParametersBuilder_ == null) { + applicationParameters_ = java.util.Collections.emptyList(); + } else { + applicationParameters_ = null; + applicationParametersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00080000); + artifactLocationCase_ = 0; + artifactLocation_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.SharingResourcesProto + .internal_static_google_cloud_designcenter_v1_SharedTemplateRevision_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.SharedTemplateRevision getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.SharedTemplateRevision.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.SharedTemplateRevision build() { + com.google.cloud.designcenter.v1.SharedTemplateRevision result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.SharedTemplateRevision buildPartial() { + com.google.cloud.designcenter.v1.SharedTemplateRevision result = + new com.google.cloud.designcenter.v1.SharedTemplateRevision(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.designcenter.v1.SharedTemplateRevision result) { + if (logicalProductsBuilder_ == null) { + if (((bitField0_ & 0x00004000) != 0)) { + logicalProducts_ = java.util.Collections.unmodifiableList(logicalProducts_); + bitField0_ = (bitField0_ & ~0x00004000); + } + result.logicalProducts_ = logicalProducts_; + } else { + result.logicalProducts_ = logicalProductsBuilder_.build(); + } + if (resourceTypesBuilder_ == null) { + if (((bitField0_ & 0x00020000) != 0)) { + resourceTypes_ = java.util.Collections.unmodifiableList(resourceTypes_); + bitField0_ = (bitField0_ & ~0x00020000); + } + result.resourceTypes_ = resourceTypes_; + } else { + result.resourceTypes_ = resourceTypesBuilder_.build(); + } + if (applicationParametersBuilder_ == null) { + if (((bitField0_ & 0x00080000) != 0)) { + applicationParameters_ = java.util.Collections.unmodifiableList(applicationParameters_); + bitField0_ = (bitField0_ & ~0x00080000); + } + result.applicationParameters_ = applicationParameters_; + } else { + result.applicationParameters_ = applicationParametersBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.designcenter.v1.SharedTemplateRevision result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.type_ = type_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000100) != 0)) { + result.sharedTemplateMetadata_ = + sharedTemplateMetadataBuilder_ == null + ? sharedTemplateMetadata_ + : sharedTemplateMetadataBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.originTemplateRevision_ = originTemplateRevision_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.applicationTemplateRevision_ = + applicationTemplateRevisionBuilder_ == null + ? applicationTemplateRevision_ + : applicationTemplateRevisionBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.helmChartMetadata_ = + helmChartMetadataBuilder_ == null + ? helmChartMetadata_ + : helmChartMetadataBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.templateCategory_ = templateCategory_; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.annotations_ = internalGetAnnotations(); + result.annotations_.makeImmutable(); + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.inferredMetadata_ = + inferredMetadataBuilder_ == null ? inferredMetadata_ : inferredMetadataBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.iacSource_ = iacSource_; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.designcenter.v1.SharedTemplateRevision result) { + result.artifactLocationCase_ = artifactLocationCase_; + result.artifactLocation_ = this.artifactLocation_; + if (artifactLocationCase_ == 5 && gitSourceBuilder_ != null) { + result.artifactLocation_ = gitSourceBuilder_.build(); + } + if (artifactLocationCase_ == 13 && developerConnectSourceConfigBuilder_ != null) { + result.artifactLocation_ = developerConnectSourceConfigBuilder_.build(); + } + if (artifactLocationCase_ == 15 && ociRepoBuilder_ != null) { + result.artifactLocation_ = ociRepoBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.SharedTemplateRevision) { + return mergeFrom((com.google.cloud.designcenter.v1.SharedTemplateRevision) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.SharedTemplateRevision other) { + if (other == com.google.cloud.designcenter.v1.SharedTemplateRevision.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (other.hasSharedTemplateMetadata()) { + mergeSharedTemplateMetadata(other.getSharedTemplateMetadata()); + } + if (!other.getOriginTemplateRevision().isEmpty()) { + originTemplateRevision_ = other.originTemplateRevision_; + bitField0_ |= 0x00000200; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasApplicationTemplateRevision()) { + mergeApplicationTemplateRevision(other.getApplicationTemplateRevision()); + } + if (other.hasHelmChartMetadata()) { + mergeHelmChartMetadata(other.getHelmChartMetadata()); + } + if (other.templateCategory_ != 0) { + setTemplateCategoryValue(other.getTemplateCategoryValue()); + } + if (logicalProductsBuilder_ == null) { + if (!other.logicalProducts_.isEmpty()) { + if (logicalProducts_.isEmpty()) { + logicalProducts_ = other.logicalProducts_; + bitField0_ = (bitField0_ & ~0x00004000); + } else { + ensureLogicalProductsIsMutable(); + logicalProducts_.addAll(other.logicalProducts_); + } + onChanged(); + } + } else { + if (!other.logicalProducts_.isEmpty()) { + if (logicalProductsBuilder_.isEmpty()) { + logicalProductsBuilder_.dispose(); + logicalProductsBuilder_ = null; + logicalProducts_ = other.logicalProducts_; + bitField0_ = (bitField0_ & ~0x00004000); + logicalProductsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetLogicalProductsFieldBuilder() + : null; + } else { + logicalProductsBuilder_.addAllMessages(other.logicalProducts_); + } + } + } + internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations()); + bitField0_ |= 0x00008000; + if (other.hasInferredMetadata()) { + mergeInferredMetadata(other.getInferredMetadata()); + } + if (resourceTypesBuilder_ == null) { + if (!other.resourceTypes_.isEmpty()) { + if (resourceTypes_.isEmpty()) { + resourceTypes_ = other.resourceTypes_; + bitField0_ = (bitField0_ & ~0x00020000); + } else { + ensureResourceTypesIsMutable(); + resourceTypes_.addAll(other.resourceTypes_); + } + onChanged(); + } + } else { + if (!other.resourceTypes_.isEmpty()) { + if (resourceTypesBuilder_.isEmpty()) { + resourceTypesBuilder_.dispose(); + resourceTypesBuilder_ = null; + resourceTypes_ = other.resourceTypes_; + bitField0_ = (bitField0_ & ~0x00020000); + resourceTypesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetResourceTypesFieldBuilder() + : null; + } else { + resourceTypesBuilder_.addAllMessages(other.resourceTypes_); + } + } + } + if (other.iacSource_ != 0) { + setIacSourceValue(other.getIacSourceValue()); + } + if (applicationParametersBuilder_ == null) { + if (!other.applicationParameters_.isEmpty()) { + if (applicationParameters_.isEmpty()) { + applicationParameters_ = other.applicationParameters_; + bitField0_ = (bitField0_ & ~0x00080000); + } else { + ensureApplicationParametersIsMutable(); + applicationParameters_.addAll(other.applicationParameters_); + } + onChanged(); + } + } else { + if (!other.applicationParameters_.isEmpty()) { + if (applicationParametersBuilder_.isEmpty()) { + applicationParametersBuilder_.dispose(); + applicationParametersBuilder_ = null; + applicationParameters_ = other.applicationParameters_; + bitField0_ = (bitField0_ & ~0x00080000); + applicationParametersBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetApplicationParametersFieldBuilder() + : null; + } else { + applicationParametersBuilder_.addAllMessages(other.applicationParameters_); + } + } + } + switch (other.getArtifactLocationCase()) { + case GIT_SOURCE: + { + mergeGitSource(other.getGitSource()); + break; + } + case GCS_SOURCE_URI: + { + artifactLocationCase_ = 20; + artifactLocation_ = other.artifactLocation_; + onChanged(); + break; + } + case APPLICATION_TEMPLATE_REVISION_SOURCE: + { + artifactLocationCase_ = 10; + artifactLocation_ = other.artifactLocation_; + onChanged(); + break; + } + case DEVELOPER_CONNECT_SOURCE_CONFIG: + { + mergeDeveloperConnectSourceConfig(other.getDeveloperConnectSourceConfig()); + break; + } + case OCI_REPO: + { + mergeOciRepo(other.getOciRepo()); + break; + } + case ARTIFACTLOCATION_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 10 + case 16: + { + type_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 16 + case 42: + { + input.readMessage( + internalGetGitSourceFieldBuilder().getBuilder(), extensionRegistry); + artifactLocationCase_ = 5; + break; + } // case 42 + case 50: + { + input.readMessage( + internalGetSharedTemplateMetadataFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 50 + case 58: + { + originTemplateRevision_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 58 + case 66: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 66 + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); + artifactLocationCase_ = 10; + artifactLocation_ = s; + break; + } // case 82 + case 90: + { + input.readMessage( + internalGetApplicationTemplateRevisionFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 90 + case 98: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 98 + case 106: + { + input.readMessage( + internalGetDeveloperConnectSourceConfigFieldBuilder().getBuilder(), + extensionRegistry); + artifactLocationCase_ = 13; + break; + } // case 106 + case 114: + { + input.readMessage( + internalGetHelmChartMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00001000; + break; + } // case 114 + case 122: + { + input.readMessage(internalGetOciRepoFieldBuilder().getBuilder(), extensionRegistry); + artifactLocationCase_ = 15; + break; + } // case 122 + case 128: + { + templateCategory_ = input.readEnum(); + bitField0_ |= 0x00002000; + break; + } // case 128 + case 138: + { + com.google.cloud.designcenter.v1.LogicalProduct m = + input.readMessage( + com.google.cloud.designcenter.v1.LogicalProduct.parser(), + extensionRegistry); + if (logicalProductsBuilder_ == null) { + ensureLogicalProductsIsMutable(); + logicalProducts_.add(m); + } else { + logicalProductsBuilder_.addMessage(m); + } + break; + } // case 138 + case 146: + { + com.google.protobuf.MapEntry annotations__ = + input.readMessage( + AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableAnnotations() + .getMutableMap() + .put(annotations__.getKey(), annotations__.getValue()); + bitField0_ |= 0x00008000; + break; + } // case 146 + case 154: + { + input.readMessage( + internalGetInferredMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00010000; + break; + } // case 154 + case 162: + { + java.lang.String s = input.readStringRequireUtf8(); + artifactLocationCase_ = 20; + artifactLocation_ = s; + break; + } // case 162 + case 170: + { + com.google.cloud.designcenter.v1.ResourceType m = + input.readMessage( + com.google.cloud.designcenter.v1.ResourceType.parser(), extensionRegistry); + if (resourceTypesBuilder_ == null) { + ensureResourceTypesIsMutable(); + resourceTypes_.add(m); + } else { + resourceTypesBuilder_.addMessage(m); + } + break; + } // case 170 + case 192: + { + iacSource_ = input.readEnum(); + bitField0_ |= 0x00040000; + break; + } // case 192 + case 202: + { + com.google.cloud.designcenter.v1.Parameter m = + input.readMessage( + com.google.cloud.designcenter.v1.Parameter.parser(), extensionRegistry); + if (applicationParametersBuilder_ == null) { + ensureApplicationParametersIsMutable(); + applicationParameters_.add(m); + } else { + applicationParametersBuilder_.addMessage(m); + } + break; + } // case 202 + default: + { + 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 artifactLocationCase_ = 0; + private java.lang.Object artifactLocation_; + + public ArtifactLocationCase getArtifactLocationCase() { + return ArtifactLocationCase.forNumber(artifactLocationCase_); + } + + public Builder clearArtifactLocation() { + artifactLocationCase_ = 0; + artifactLocation_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.GitSource, + com.google.cloud.designcenter.v1.GitSource.Builder, + com.google.cloud.designcenter.v1.GitSourceOrBuilder> + gitSourceBuilder_; + + /** + * + * + *
+     * Optional. The git source.
+     * 
+ * + * + * .google.cloud.designcenter.v1.GitSource git_source = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the gitSource field is set. + */ + @java.lang.Override + public boolean hasGitSource() { + return artifactLocationCase_ == 5; + } + + /** + * + * + *
+     * Optional. The git source.
+     * 
+ * + * + * .google.cloud.designcenter.v1.GitSource git_source = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The gitSource. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.GitSource getGitSource() { + if (gitSourceBuilder_ == null) { + if (artifactLocationCase_ == 5) { + return (com.google.cloud.designcenter.v1.GitSource) artifactLocation_; + } + return com.google.cloud.designcenter.v1.GitSource.getDefaultInstance(); + } else { + if (artifactLocationCase_ == 5) { + return gitSourceBuilder_.getMessage(); + } + return com.google.cloud.designcenter.v1.GitSource.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. The git source.
+     * 
+ * + * + * .google.cloud.designcenter.v1.GitSource git_source = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGitSource(com.google.cloud.designcenter.v1.GitSource value) { + if (gitSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + artifactLocation_ = value; + onChanged(); + } else { + gitSourceBuilder_.setMessage(value); + } + artifactLocationCase_ = 5; + return this; + } + + /** + * + * + *
+     * Optional. The git source.
+     * 
+ * + * + * .google.cloud.designcenter.v1.GitSource git_source = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGitSource( + com.google.cloud.designcenter.v1.GitSource.Builder builderForValue) { + if (gitSourceBuilder_ == null) { + artifactLocation_ = builderForValue.build(); + onChanged(); + } else { + gitSourceBuilder_.setMessage(builderForValue.build()); + } + artifactLocationCase_ = 5; + return this; + } + + /** + * + * + *
+     * Optional. The git source.
+     * 
+ * + * + * .google.cloud.designcenter.v1.GitSource git_source = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeGitSource(com.google.cloud.designcenter.v1.GitSource value) { + if (gitSourceBuilder_ == null) { + if (artifactLocationCase_ == 5 + && artifactLocation_ + != com.google.cloud.designcenter.v1.GitSource.getDefaultInstance()) { + artifactLocation_ = + com.google.cloud.designcenter.v1.GitSource.newBuilder( + (com.google.cloud.designcenter.v1.GitSource) artifactLocation_) + .mergeFrom(value) + .buildPartial(); + } else { + artifactLocation_ = value; + } + onChanged(); + } else { + if (artifactLocationCase_ == 5) { + gitSourceBuilder_.mergeFrom(value); + } else { + gitSourceBuilder_.setMessage(value); + } + } + artifactLocationCase_ = 5; + return this; + } + + /** + * + * + *
+     * Optional. The git source.
+     * 
+ * + * + * .google.cloud.designcenter.v1.GitSource git_source = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearGitSource() { + if (gitSourceBuilder_ == null) { + if (artifactLocationCase_ == 5) { + artifactLocationCase_ = 0; + artifactLocation_ = null; + onChanged(); + } + } else { + if (artifactLocationCase_ == 5) { + artifactLocationCase_ = 0; + artifactLocation_ = null; + } + gitSourceBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. The git source.
+     * 
+ * + * + * .google.cloud.designcenter.v1.GitSource git_source = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.GitSource.Builder getGitSourceBuilder() { + return internalGetGitSourceFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The git source.
+     * 
+ * + * + * .google.cloud.designcenter.v1.GitSource git_source = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.GitSourceOrBuilder getGitSourceOrBuilder() { + if ((artifactLocationCase_ == 5) && (gitSourceBuilder_ != null)) { + return gitSourceBuilder_.getMessageOrBuilder(); + } else { + if (artifactLocationCase_ == 5) { + return (com.google.cloud.designcenter.v1.GitSource) artifactLocation_; + } + return com.google.cloud.designcenter.v1.GitSource.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. The git source.
+     * 
+ * + * + * .google.cloud.designcenter.v1.GitSource git_source = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.GitSource, + com.google.cloud.designcenter.v1.GitSource.Builder, + com.google.cloud.designcenter.v1.GitSourceOrBuilder> + internalGetGitSourceFieldBuilder() { + if (gitSourceBuilder_ == null) { + if (!(artifactLocationCase_ == 5)) { + artifactLocation_ = com.google.cloud.designcenter.v1.GitSource.getDefaultInstance(); + } + gitSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.GitSource, + com.google.cloud.designcenter.v1.GitSource.Builder, + com.google.cloud.designcenter.v1.GitSourceOrBuilder>( + (com.google.cloud.designcenter.v1.GitSource) artifactLocation_, + getParentForChildren(), + isClean()); + artifactLocation_ = null; + } + artifactLocationCase_ = 5; + onChanged(); + return gitSourceBuilder_; + } + + /** + * + * + *
+     * Optional. Deprecated: Added new field tf_module_gcs_uri.
+     * The Cloud Storage URI, which must be in the format gs://[bucket] or
+     * gs://[bucket]/[object].
+     * 
+ * + * + * string gcs_source_uri = 20 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.designcenter.v1.SharedTemplateRevision.gcs_source_uri is deprecated. + * See google/cloud/designcenter/v1/sharing.proto;l=140 + * @return Whether the gcsSourceUri field is set. + */ + @java.lang.Override + @java.lang.Deprecated + public boolean hasGcsSourceUri() { + return artifactLocationCase_ == 20; + } + + /** + * + * + *
+     * Optional. Deprecated: Added new field tf_module_gcs_uri.
+     * The Cloud Storage URI, which must be in the format gs://[bucket] or
+     * gs://[bucket]/[object].
+     * 
+ * + * + * string gcs_source_uri = 20 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.designcenter.v1.SharedTemplateRevision.gcs_source_uri is deprecated. + * See google/cloud/designcenter/v1/sharing.proto;l=140 + * @return The gcsSourceUri. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getGcsSourceUri() { + java.lang.Object ref = ""; + if (artifactLocationCase_ == 20) { + ref = artifactLocation_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (artifactLocationCase_ == 20) { + artifactLocation_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Deprecated: Added new field tf_module_gcs_uri.
+     * The Cloud Storage URI, which must be in the format gs://[bucket] or
+     * gs://[bucket]/[object].
+     * 
+ * + * + * string gcs_source_uri = 20 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.designcenter.v1.SharedTemplateRevision.gcs_source_uri is deprecated. + * See google/cloud/designcenter/v1/sharing.proto;l=140 + * @return The bytes for gcsSourceUri. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getGcsSourceUriBytes() { + java.lang.Object ref = ""; + if (artifactLocationCase_ == 20) { + ref = artifactLocation_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (artifactLocationCase_ == 20) { + artifactLocation_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Deprecated: Added new field tf_module_gcs_uri.
+     * The Cloud Storage URI, which must be in the format gs://[bucket] or
+     * gs://[bucket]/[object].
+     * 
+ * + * + * string gcs_source_uri = 20 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.designcenter.v1.SharedTemplateRevision.gcs_source_uri is deprecated. + * See google/cloud/designcenter/v1/sharing.proto;l=140 + * @param value The gcsSourceUri to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setGcsSourceUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + artifactLocationCase_ = 20; + artifactLocation_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Deprecated: Added new field tf_module_gcs_uri.
+     * The Cloud Storage URI, which must be in the format gs://[bucket] or
+     * gs://[bucket]/[object].
+     * 
+ * + * + * string gcs_source_uri = 20 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.designcenter.v1.SharedTemplateRevision.gcs_source_uri is deprecated. + * See google/cloud/designcenter/v1/sharing.proto;l=140 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearGcsSourceUri() { + if (artifactLocationCase_ == 20) { + artifactLocationCase_ = 0; + artifactLocation_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Deprecated: Added new field tf_module_gcs_uri.
+     * The Cloud Storage URI, which must be in the format gs://[bucket] or
+     * gs://[bucket]/[object].
+     * 
+ * + * + * string gcs_source_uri = 20 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.designcenter.v1.SharedTemplateRevision.gcs_source_uri is deprecated. + * See google/cloud/designcenter/v1/sharing.proto;l=140 + * @param value The bytes for gcsSourceUri to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setGcsSourceUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + artifactLocationCase_ = 20; + artifactLocation_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The application template revision source.
+     * 
+ * + * + * string application_template_revision_source = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the applicationTemplateRevisionSource field is set. + */ + @java.lang.Override + public boolean hasApplicationTemplateRevisionSource() { + return artifactLocationCase_ == 10; + } + + /** + * + * + *
+     * Optional. The application template revision source.
+     * 
+ * + * + * string application_template_revision_source = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The applicationTemplateRevisionSource. + */ + @java.lang.Override + public java.lang.String getApplicationTemplateRevisionSource() { + java.lang.Object ref = ""; + if (artifactLocationCase_ == 10) { + ref = artifactLocation_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (artifactLocationCase_ == 10) { + artifactLocation_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The application template revision source.
+     * 
+ * + * + * string application_template_revision_source = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for applicationTemplateRevisionSource. + */ + @java.lang.Override + public com.google.protobuf.ByteString getApplicationTemplateRevisionSourceBytes() { + java.lang.Object ref = ""; + if (artifactLocationCase_ == 10) { + ref = artifactLocation_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (artifactLocationCase_ == 10) { + artifactLocation_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The application template revision source.
+     * 
+ * + * + * string application_template_revision_source = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The applicationTemplateRevisionSource to set. + * @return This builder for chaining. + */ + public Builder setApplicationTemplateRevisionSource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + artifactLocationCase_ = 10; + artifactLocation_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The application template revision source.
+     * 
+ * + * + * string application_template_revision_source = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearApplicationTemplateRevisionSource() { + if (artifactLocationCase_ == 10) { + artifactLocationCase_ = 0; + artifactLocation_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The application template revision source.
+     * 
+ * + * + * string application_template_revision_source = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for applicationTemplateRevisionSource to set. + * @return This builder for chaining. + */ + public Builder setApplicationTemplateRevisionSourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + artifactLocationCase_ = 10; + artifactLocation_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig, + com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig.Builder, + com.google.cloud.designcenter.v1.DeveloperConnectSourceConfigOrBuilder> + developerConnectSourceConfigBuilder_; + + /** + * + * + *
+     * Optional. Configuration for fetching content from source code repository
+     * such as GitHub or Bitbucket through Developer Connect.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectSourceConfig developer_connect_source_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the developerConnectSourceConfig field is set. + */ + @java.lang.Override + public boolean hasDeveloperConnectSourceConfig() { + return artifactLocationCase_ == 13; + } + + /** + * + * + *
+     * Optional. Configuration for fetching content from source code repository
+     * such as GitHub or Bitbucket through Developer Connect.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectSourceConfig developer_connect_source_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The developerConnectSourceConfig. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig + getDeveloperConnectSourceConfig() { + if (developerConnectSourceConfigBuilder_ == null) { + if (artifactLocationCase_ == 13) { + return (com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig) artifactLocation_; + } + return com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig.getDefaultInstance(); + } else { + if (artifactLocationCase_ == 13) { + return developerConnectSourceConfigBuilder_.getMessage(); + } + return com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. Configuration for fetching content from source code repository
+     * such as GitHub or Bitbucket through Developer Connect.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectSourceConfig developer_connect_source_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDeveloperConnectSourceConfig( + com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig value) { + if (developerConnectSourceConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + artifactLocation_ = value; + onChanged(); + } else { + developerConnectSourceConfigBuilder_.setMessage(value); + } + artifactLocationCase_ = 13; + return this; + } + + /** + * + * + *
+     * Optional. Configuration for fetching content from source code repository
+     * such as GitHub or Bitbucket through Developer Connect.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectSourceConfig developer_connect_source_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDeveloperConnectSourceConfig( + com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig.Builder builderForValue) { + if (developerConnectSourceConfigBuilder_ == null) { + artifactLocation_ = builderForValue.build(); + onChanged(); + } else { + developerConnectSourceConfigBuilder_.setMessage(builderForValue.build()); + } + artifactLocationCase_ = 13; + return this; + } + + /** + * + * + *
+     * Optional. Configuration for fetching content from source code repository
+     * such as GitHub or Bitbucket through Developer Connect.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectSourceConfig developer_connect_source_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeDeveloperConnectSourceConfig( + com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig value) { + if (developerConnectSourceConfigBuilder_ == null) { + if (artifactLocationCase_ == 13 + && artifactLocation_ + != com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig + .getDefaultInstance()) { + artifactLocation_ = + com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig.newBuilder( + (com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig) + artifactLocation_) + .mergeFrom(value) + .buildPartial(); + } else { + artifactLocation_ = value; + } + onChanged(); + } else { + if (artifactLocationCase_ == 13) { + developerConnectSourceConfigBuilder_.mergeFrom(value); + } else { + developerConnectSourceConfigBuilder_.setMessage(value); + } + } + artifactLocationCase_ = 13; + return this; + } + + /** + * + * + *
+     * Optional. Configuration for fetching content from source code repository
+     * such as GitHub or Bitbucket through Developer Connect.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectSourceConfig developer_connect_source_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDeveloperConnectSourceConfig() { + if (developerConnectSourceConfigBuilder_ == null) { + if (artifactLocationCase_ == 13) { + artifactLocationCase_ = 0; + artifactLocation_ = null; + onChanged(); + } + } else { + if (artifactLocationCase_ == 13) { + artifactLocationCase_ = 0; + artifactLocation_ = null; + } + developerConnectSourceConfigBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Configuration for fetching content from source code repository
+     * such as GitHub or Bitbucket through Developer Connect.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectSourceConfig developer_connect_source_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig.Builder + getDeveloperConnectSourceConfigBuilder() { + return internalGetDeveloperConnectSourceConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Configuration for fetching content from source code repository
+     * such as GitHub or Bitbucket through Developer Connect.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectSourceConfig developer_connect_source_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.DeveloperConnectSourceConfigOrBuilder + getDeveloperConnectSourceConfigOrBuilder() { + if ((artifactLocationCase_ == 13) && (developerConnectSourceConfigBuilder_ != null)) { + return developerConnectSourceConfigBuilder_.getMessageOrBuilder(); + } else { + if (artifactLocationCase_ == 13) { + return (com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig) artifactLocation_; + } + return com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. Configuration for fetching content from source code repository
+     * such as GitHub or Bitbucket through Developer Connect.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectSourceConfig developer_connect_source_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig, + com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig.Builder, + com.google.cloud.designcenter.v1.DeveloperConnectSourceConfigOrBuilder> + internalGetDeveloperConnectSourceConfigFieldBuilder() { + if (developerConnectSourceConfigBuilder_ == null) { + if (!(artifactLocationCase_ == 13)) { + artifactLocation_ = + com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig.getDefaultInstance(); + } + developerConnectSourceConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig, + com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig.Builder, + com.google.cloud.designcenter.v1.DeveloperConnectSourceConfigOrBuilder>( + (com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig) artifactLocation_, + getParentForChildren(), + isClean()); + artifactLocation_ = null; + } + artifactLocationCase_ = 13; + onChanged(); + return developerConnectSourceConfigBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.OciRepo, + com.google.cloud.designcenter.v1.OciRepo.Builder, + com.google.cloud.designcenter.v1.OciRepoOrBuilder> + ociRepoBuilder_; + + /** + * + * + *
+     * Optional. The Open Container Initiative (OCI) repo source that contains
+     * helm charts.
+     * 
+ * + * + * .google.cloud.designcenter.v1.OciRepo oci_repo = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the ociRepo field is set. + */ + @java.lang.Override + public boolean hasOciRepo() { + return artifactLocationCase_ == 15; + } + + /** + * + * + *
+     * Optional. The Open Container Initiative (OCI) repo source that contains
+     * helm charts.
+     * 
+ * + * + * .google.cloud.designcenter.v1.OciRepo oci_repo = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The ociRepo. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.OciRepo getOciRepo() { + if (ociRepoBuilder_ == null) { + if (artifactLocationCase_ == 15) { + return (com.google.cloud.designcenter.v1.OciRepo) artifactLocation_; + } + return com.google.cloud.designcenter.v1.OciRepo.getDefaultInstance(); + } else { + if (artifactLocationCase_ == 15) { + return ociRepoBuilder_.getMessage(); + } + return com.google.cloud.designcenter.v1.OciRepo.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. The Open Container Initiative (OCI) repo source that contains
+     * helm charts.
+     * 
+ * + * + * .google.cloud.designcenter.v1.OciRepo oci_repo = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOciRepo(com.google.cloud.designcenter.v1.OciRepo value) { + if (ociRepoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + artifactLocation_ = value; + onChanged(); + } else { + ociRepoBuilder_.setMessage(value); + } + artifactLocationCase_ = 15; + return this; + } + + /** + * + * + *
+     * Optional. The Open Container Initiative (OCI) repo source that contains
+     * helm charts.
+     * 
+ * + * + * .google.cloud.designcenter.v1.OciRepo oci_repo = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOciRepo(com.google.cloud.designcenter.v1.OciRepo.Builder builderForValue) { + if (ociRepoBuilder_ == null) { + artifactLocation_ = builderForValue.build(); + onChanged(); + } else { + ociRepoBuilder_.setMessage(builderForValue.build()); + } + artifactLocationCase_ = 15; + return this; + } + + /** + * + * + *
+     * Optional. The Open Container Initiative (OCI) repo source that contains
+     * helm charts.
+     * 
+ * + * + * .google.cloud.designcenter.v1.OciRepo oci_repo = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeOciRepo(com.google.cloud.designcenter.v1.OciRepo value) { + if (ociRepoBuilder_ == null) { + if (artifactLocationCase_ == 15 + && artifactLocation_ != com.google.cloud.designcenter.v1.OciRepo.getDefaultInstance()) { + artifactLocation_ = + com.google.cloud.designcenter.v1.OciRepo.newBuilder( + (com.google.cloud.designcenter.v1.OciRepo) artifactLocation_) + .mergeFrom(value) + .buildPartial(); + } else { + artifactLocation_ = value; + } + onChanged(); + } else { + if (artifactLocationCase_ == 15) { + ociRepoBuilder_.mergeFrom(value); + } else { + ociRepoBuilder_.setMessage(value); + } + } + artifactLocationCase_ = 15; + return this; + } + + /** + * + * + *
+     * Optional. The Open Container Initiative (OCI) repo source that contains
+     * helm charts.
+     * 
+ * + * + * .google.cloud.designcenter.v1.OciRepo oci_repo = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearOciRepo() { + if (ociRepoBuilder_ == null) { + if (artifactLocationCase_ == 15) { + artifactLocationCase_ = 0; + artifactLocation_ = null; + onChanged(); + } + } else { + if (artifactLocationCase_ == 15) { + artifactLocationCase_ = 0; + artifactLocation_ = null; + } + ociRepoBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. The Open Container Initiative (OCI) repo source that contains
+     * helm charts.
+     * 
+ * + * + * .google.cloud.designcenter.v1.OciRepo oci_repo = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.OciRepo.Builder getOciRepoBuilder() { + return internalGetOciRepoFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The Open Container Initiative (OCI) repo source that contains
+     * helm charts.
+     * 
+ * + * + * .google.cloud.designcenter.v1.OciRepo oci_repo = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.OciRepoOrBuilder getOciRepoOrBuilder() { + if ((artifactLocationCase_ == 15) && (ociRepoBuilder_ != null)) { + return ociRepoBuilder_.getMessageOrBuilder(); + } else { + if (artifactLocationCase_ == 15) { + return (com.google.cloud.designcenter.v1.OciRepo) artifactLocation_; + } + return com.google.cloud.designcenter.v1.OciRepo.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. The Open Container Initiative (OCI) repo source that contains
+     * helm charts.
+     * 
+ * + * + * .google.cloud.designcenter.v1.OciRepo oci_repo = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.OciRepo, + com.google.cloud.designcenter.v1.OciRepo.Builder, + com.google.cloud.designcenter.v1.OciRepoOrBuilder> + internalGetOciRepoFieldBuilder() { + if (ociRepoBuilder_ == null) { + if (!(artifactLocationCase_ == 15)) { + artifactLocation_ = com.google.cloud.designcenter.v1.OciRepo.getDefaultInstance(); + } + ociRepoBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.OciRepo, + com.google.cloud.designcenter.v1.OciRepo.Builder, + com.google.cloud.designcenter.v1.OciRepoOrBuilder>( + (com.google.cloud.designcenter.v1.OciRepo) artifactLocation_, + getParentForChildren(), + isClean()); + artifactLocation_ = null; + } + artifactLocationCase_ = 15; + onChanged(); + return ociRepoBuilder_; + } + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Identifier. The shared template revision name.
+     * $sharedTemplate is a server-generated UUID.
+     * `projects/$project/locations/$location/spaces/$space/sharedTemplates/$sharedTemplate/revisions/$revision`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.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; + } + } + + /** + * + * + *
+     * Identifier. The shared template revision name.
+     * $sharedTemplate is a server-generated UUID.
+     * `projects/$project/locations/$location/spaces/$space/sharedTemplates/$sharedTemplate/revisions/$revision`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + + /** + * + * + *
+     * Identifier. The shared template revision name.
+     * $sharedTemplate is a server-generated UUID.
+     * `projects/$project/locations/$location/spaces/$space/sharedTemplates/$sharedTemplate/revisions/$revision`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier. The shared template revision name.
+     * $sharedTemplate is a server-generated UUID.
+     * `projects/$project/locations/$location/spaces/$space/sharedTemplates/$sharedTemplate/revisions/$revision`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier. The shared template revision name.
+     * $sharedTemplate is a server-generated UUID.
+     * `projects/$project/locations/$location/spaces/$space/sharedTemplates/$sharedTemplate/revisions/$revision`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
+     * Optional. The shared template revision description.
+     * 
+ * + * string description = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The shared template revision description.
+     * 
+ * + * string description = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The shared template revision description.
+     * 
+ * + * string description = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The shared template revision description.
+     * 
+ * + * string description = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The shared template revision description.
+     * 
+ * + * string description = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private int type_ = 0; + + /** + * + * + *
+     * Optional. The Application Design Center assembly template type.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateType type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
+     * Optional. The Application Design Center assembly template type.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateType type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + type_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The Application Design Center assembly template type.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateType type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TemplateType getType() { + com.google.cloud.designcenter.v1.TemplateType result = + com.google.cloud.designcenter.v1.TemplateType.forNumber(type_); + return result == null ? com.google.cloud.designcenter.v1.TemplateType.UNRECOGNIZED : result; + } + + /** + * + * + *
+     * Optional. The Application Design Center assembly template type.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateType type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(com.google.cloud.designcenter.v1.TemplateType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; + type_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The Application Design Center assembly template type.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateType type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000080); + type_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.designcenter.v1.TFBlueprintMetadata sharedTemplateMetadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.TFBlueprintMetadata, + com.google.cloud.designcenter.v1.TFBlueprintMetadata.Builder, + com.google.cloud.designcenter.v1.TFBlueprintMetadataOrBuilder> + sharedTemplateMetadataBuilder_; + + /** + * + * + *
+     * Output only. The shared template metadata.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata shared_template_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the sharedTemplateMetadata field is set. + */ + public boolean hasSharedTemplateMetadata() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
+     * Output only. The shared template metadata.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata shared_template_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The sharedTemplateMetadata. + */ + public com.google.cloud.designcenter.v1.TFBlueprintMetadata getSharedTemplateMetadata() { + if (sharedTemplateMetadataBuilder_ == null) { + return sharedTemplateMetadata_ == null + ? com.google.cloud.designcenter.v1.TFBlueprintMetadata.getDefaultInstance() + : sharedTemplateMetadata_; + } else { + return sharedTemplateMetadataBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. The shared template metadata.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata shared_template_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSharedTemplateMetadata( + com.google.cloud.designcenter.v1.TFBlueprintMetadata value) { + if (sharedTemplateMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sharedTemplateMetadata_ = value; + } else { + sharedTemplateMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The shared template metadata.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata shared_template_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSharedTemplateMetadata( + com.google.cloud.designcenter.v1.TFBlueprintMetadata.Builder builderForValue) { + if (sharedTemplateMetadataBuilder_ == null) { + sharedTemplateMetadata_ = builderForValue.build(); + } else { + sharedTemplateMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The shared template metadata.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata shared_template_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeSharedTemplateMetadata( + com.google.cloud.designcenter.v1.TFBlueprintMetadata value) { + if (sharedTemplateMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && sharedTemplateMetadata_ != null + && sharedTemplateMetadata_ + != com.google.cloud.designcenter.v1.TFBlueprintMetadata.getDefaultInstance()) { + getSharedTemplateMetadataBuilder().mergeFrom(value); + } else { + sharedTemplateMetadata_ = value; + } + } else { + sharedTemplateMetadataBuilder_.mergeFrom(value); + } + if (sharedTemplateMetadata_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The shared template metadata.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata shared_template_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearSharedTemplateMetadata() { + bitField0_ = (bitField0_ & ~0x00000100); + sharedTemplateMetadata_ = null; + if (sharedTemplateMetadataBuilder_ != null) { + sharedTemplateMetadataBuilder_.dispose(); + sharedTemplateMetadataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The shared template metadata.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata shared_template_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.TFBlueprintMetadata.Builder + getSharedTemplateMetadataBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return internalGetSharedTemplateMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The shared template metadata.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata shared_template_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.TFBlueprintMetadataOrBuilder + getSharedTemplateMetadataOrBuilder() { + if (sharedTemplateMetadataBuilder_ != null) { + return sharedTemplateMetadataBuilder_.getMessageOrBuilder(); + } else { + return sharedTemplateMetadata_ == null + ? com.google.cloud.designcenter.v1.TFBlueprintMetadata.getDefaultInstance() + : sharedTemplateMetadata_; + } + } + + /** + * + * + *
+     * Output only. The shared template metadata.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata shared_template_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.TFBlueprintMetadata, + com.google.cloud.designcenter.v1.TFBlueprintMetadata.Builder, + com.google.cloud.designcenter.v1.TFBlueprintMetadataOrBuilder> + internalGetSharedTemplateMetadataFieldBuilder() { + if (sharedTemplateMetadataBuilder_ == null) { + sharedTemplateMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.TFBlueprintMetadata, + com.google.cloud.designcenter.v1.TFBlueprintMetadata.Builder, + com.google.cloud.designcenter.v1.TFBlueprintMetadataOrBuilder>( + getSharedTemplateMetadata(), getParentForChildren(), isClean()); + sharedTemplateMetadata_ = null; + } + return sharedTemplateMetadataBuilder_; + } + + private java.lang.Object originTemplateRevision_ = ""; + + /** + * + * + *
+     * Output only. The shared template revision refers to the following catalog
+     * template revision.
+     * 
+ * + * + * string origin_template_revision = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The originTemplateRevision. + */ + public java.lang.String getOriginTemplateRevision() { + java.lang.Object ref = originTemplateRevision_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + originTemplateRevision_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The shared template revision refers to the following catalog
+     * template revision.
+     * 
+ * + * + * string origin_template_revision = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for originTemplateRevision. + */ + public com.google.protobuf.ByteString getOriginTemplateRevisionBytes() { + java.lang.Object ref = originTemplateRevision_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + originTemplateRevision_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The shared template revision refers to the following catalog
+     * template revision.
+     * 
+ * + * + * string origin_template_revision = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The originTemplateRevision to set. + * @return This builder for chaining. + */ + public Builder setOriginTemplateRevision(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + originTemplateRevision_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The shared template revision refers to the following catalog
+     * template revision.
+     * 
+ * + * + * string origin_template_revision = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearOriginTemplateRevision() { + originTemplateRevision_ = getDefaultInstance().getOriginTemplateRevision(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The shared template revision refers to the following catalog
+     * template revision.
+     * 
+ * + * + * string origin_template_revision = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for originTemplateRevision to set. + * @return This builder for chaining. + */ + public Builder setOriginTemplateRevisionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + originTemplateRevision_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
+     * Output only. The shared template revision creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
+     * Output only. The shared template revision creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 8 [(.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 shared template revision creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 8 [(.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_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The shared template revision creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 8 [(.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_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The shared template revision creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000400; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The shared template revision creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000400); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The shared template revision creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000400; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The shared template revision creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 8 [(.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 shared template revision creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.cloud.designcenter.v1.SerializedApplicationTemplate + applicationTemplateRevision_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.SerializedApplicationTemplate, + com.google.cloud.designcenter.v1.SerializedApplicationTemplate.Builder, + com.google.cloud.designcenter.v1.SerializedApplicationTemplateOrBuilder> + applicationTemplateRevisionBuilder_; + + /** + * + * + *
+     * Output only. The serialized application template revision.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate application_template_revision = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the applicationTemplateRevision field is set. + */ + public boolean hasApplicationTemplateRevision() { + return ((bitField0_ & 0x00000800) != 0); + } + + /** + * + * + *
+     * Output only. The serialized application template revision.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate application_template_revision = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The applicationTemplateRevision. + */ + public com.google.cloud.designcenter.v1.SerializedApplicationTemplate + getApplicationTemplateRevision() { + if (applicationTemplateRevisionBuilder_ == null) { + return applicationTemplateRevision_ == null + ? com.google.cloud.designcenter.v1.SerializedApplicationTemplate.getDefaultInstance() + : applicationTemplateRevision_; + } else { + return applicationTemplateRevisionBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. The serialized application template revision.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate application_template_revision = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setApplicationTemplateRevision( + com.google.cloud.designcenter.v1.SerializedApplicationTemplate value) { + if (applicationTemplateRevisionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + applicationTemplateRevision_ = value; + } else { + applicationTemplateRevisionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The serialized application template revision.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate application_template_revision = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setApplicationTemplateRevision( + com.google.cloud.designcenter.v1.SerializedApplicationTemplate.Builder builderForValue) { + if (applicationTemplateRevisionBuilder_ == null) { + applicationTemplateRevision_ = builderForValue.build(); + } else { + applicationTemplateRevisionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The serialized application template revision.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate application_template_revision = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeApplicationTemplateRevision( + com.google.cloud.designcenter.v1.SerializedApplicationTemplate value) { + if (applicationTemplateRevisionBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0) + && applicationTemplateRevision_ != null + && applicationTemplateRevision_ + != com.google.cloud.designcenter.v1.SerializedApplicationTemplate + .getDefaultInstance()) { + getApplicationTemplateRevisionBuilder().mergeFrom(value); + } else { + applicationTemplateRevision_ = value; + } + } else { + applicationTemplateRevisionBuilder_.mergeFrom(value); + } + if (applicationTemplateRevision_ != null) { + bitField0_ |= 0x00000800; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The serialized application template revision.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate application_template_revision = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearApplicationTemplateRevision() { + bitField0_ = (bitField0_ & ~0x00000800); + applicationTemplateRevision_ = null; + if (applicationTemplateRevisionBuilder_ != null) { + applicationTemplateRevisionBuilder_.dispose(); + applicationTemplateRevisionBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The serialized application template revision.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate application_template_revision = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.SerializedApplicationTemplate.Builder + getApplicationTemplateRevisionBuilder() { + bitField0_ |= 0x00000800; + onChanged(); + return internalGetApplicationTemplateRevisionFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The serialized application template revision.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate application_template_revision = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.SerializedApplicationTemplateOrBuilder + getApplicationTemplateRevisionOrBuilder() { + if (applicationTemplateRevisionBuilder_ != null) { + return applicationTemplateRevisionBuilder_.getMessageOrBuilder(); + } else { + return applicationTemplateRevision_ == null + ? com.google.cloud.designcenter.v1.SerializedApplicationTemplate.getDefaultInstance() + : applicationTemplateRevision_; + } + } + + /** + * + * + *
+     * Output only. The serialized application template revision.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate application_template_revision = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.SerializedApplicationTemplate, + com.google.cloud.designcenter.v1.SerializedApplicationTemplate.Builder, + com.google.cloud.designcenter.v1.SerializedApplicationTemplateOrBuilder> + internalGetApplicationTemplateRevisionFieldBuilder() { + if (applicationTemplateRevisionBuilder_ == null) { + applicationTemplateRevisionBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.SerializedApplicationTemplate, + com.google.cloud.designcenter.v1.SerializedApplicationTemplate.Builder, + com.google.cloud.designcenter.v1.SerializedApplicationTemplateOrBuilder>( + getApplicationTemplateRevision(), getParentForChildren(), isClean()); + applicationTemplateRevision_ = null; + } + return applicationTemplateRevisionBuilder_; + } + + private com.google.cloud.designcenter.v1.HelmChartMetadata helmChartMetadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.HelmChartMetadata, + com.google.cloud.designcenter.v1.HelmChartMetadata.Builder, + com.google.cloud.designcenter.v1.HelmChartMetadataOrBuilder> + helmChartMetadataBuilder_; + + /** + * + * + *
+     * Output only. The helm chart metadata.
+     * 
+ * + * + * .google.cloud.designcenter.v1.HelmChartMetadata helm_chart_metadata = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the helmChartMetadata field is set. + */ + public boolean hasHelmChartMetadata() { + return ((bitField0_ & 0x00001000) != 0); + } + + /** + * + * + *
+     * Output only. The helm chart metadata.
+     * 
+ * + * + * .google.cloud.designcenter.v1.HelmChartMetadata helm_chart_metadata = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The helmChartMetadata. + */ + public com.google.cloud.designcenter.v1.HelmChartMetadata getHelmChartMetadata() { + if (helmChartMetadataBuilder_ == null) { + return helmChartMetadata_ == null + ? com.google.cloud.designcenter.v1.HelmChartMetadata.getDefaultInstance() + : helmChartMetadata_; + } else { + return helmChartMetadataBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. The helm chart metadata.
+     * 
+ * + * + * .google.cloud.designcenter.v1.HelmChartMetadata helm_chart_metadata = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setHelmChartMetadata(com.google.cloud.designcenter.v1.HelmChartMetadata value) { + if (helmChartMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + helmChartMetadata_ = value; + } else { + helmChartMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The helm chart metadata.
+     * 
+ * + * + * .google.cloud.designcenter.v1.HelmChartMetadata helm_chart_metadata = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setHelmChartMetadata( + com.google.cloud.designcenter.v1.HelmChartMetadata.Builder builderForValue) { + if (helmChartMetadataBuilder_ == null) { + helmChartMetadata_ = builderForValue.build(); + } else { + helmChartMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The helm chart metadata.
+     * 
+ * + * + * .google.cloud.designcenter.v1.HelmChartMetadata helm_chart_metadata = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeHelmChartMetadata( + com.google.cloud.designcenter.v1.HelmChartMetadata value) { + if (helmChartMetadataBuilder_ == null) { + if (((bitField0_ & 0x00001000) != 0) + && helmChartMetadata_ != null + && helmChartMetadata_ + != com.google.cloud.designcenter.v1.HelmChartMetadata.getDefaultInstance()) { + getHelmChartMetadataBuilder().mergeFrom(value); + } else { + helmChartMetadata_ = value; + } + } else { + helmChartMetadataBuilder_.mergeFrom(value); + } + if (helmChartMetadata_ != null) { + bitField0_ |= 0x00001000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The helm chart metadata.
+     * 
+ * + * + * .google.cloud.designcenter.v1.HelmChartMetadata helm_chart_metadata = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearHelmChartMetadata() { + bitField0_ = (bitField0_ & ~0x00001000); + helmChartMetadata_ = null; + if (helmChartMetadataBuilder_ != null) { + helmChartMetadataBuilder_.dispose(); + helmChartMetadataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The helm chart metadata.
+     * 
+ * + * + * .google.cloud.designcenter.v1.HelmChartMetadata helm_chart_metadata = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.HelmChartMetadata.Builder + getHelmChartMetadataBuilder() { + bitField0_ |= 0x00001000; + onChanged(); + return internalGetHelmChartMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The helm chart metadata.
+     * 
+ * + * + * .google.cloud.designcenter.v1.HelmChartMetadata helm_chart_metadata = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.HelmChartMetadataOrBuilder + getHelmChartMetadataOrBuilder() { + if (helmChartMetadataBuilder_ != null) { + return helmChartMetadataBuilder_.getMessageOrBuilder(); + } else { + return helmChartMetadata_ == null + ? com.google.cloud.designcenter.v1.HelmChartMetadata.getDefaultInstance() + : helmChartMetadata_; + } + } + + /** + * + * + *
+     * Output only. The helm chart metadata.
+     * 
+ * + * + * .google.cloud.designcenter.v1.HelmChartMetadata helm_chart_metadata = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.HelmChartMetadata, + com.google.cloud.designcenter.v1.HelmChartMetadata.Builder, + com.google.cloud.designcenter.v1.HelmChartMetadataOrBuilder> + internalGetHelmChartMetadataFieldBuilder() { + if (helmChartMetadataBuilder_ == null) { + helmChartMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.HelmChartMetadata, + com.google.cloud.designcenter.v1.HelmChartMetadata.Builder, + com.google.cloud.designcenter.v1.HelmChartMetadataOrBuilder>( + getHelmChartMetadata(), getParentForChildren(), isClean()); + helmChartMetadata_ = null; + } + return helmChartMetadataBuilder_; + } + + private int templateCategory_ = 0; + + /** + * + * + *
+     * Output only. The category of the template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateCategory template_category = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for templateCategory. + */ + @java.lang.Override + public int getTemplateCategoryValue() { + return templateCategory_; + } + + /** + * + * + *
+     * Output only. The category of the template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateCategory template_category = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for templateCategory to set. + * @return This builder for chaining. + */ + public Builder setTemplateCategoryValue(int value) { + templateCategory_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The category of the template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateCategory template_category = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The templateCategory. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TemplateCategory getTemplateCategory() { + com.google.cloud.designcenter.v1.TemplateCategory result = + com.google.cloud.designcenter.v1.TemplateCategory.forNumber(templateCategory_); + return result == null + ? com.google.cloud.designcenter.v1.TemplateCategory.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Output only. The category of the template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateCategory template_category = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The templateCategory to set. + * @return This builder for chaining. + */ + public Builder setTemplateCategory(com.google.cloud.designcenter.v1.TemplateCategory value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00002000; + templateCategory_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The category of the template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateCategory template_category = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearTemplateCategory() { + bitField0_ = (bitField0_ & ~0x00002000); + templateCategory_ = 0; + onChanged(); + return this; + } + + private java.util.List logicalProducts_ = + java.util.Collections.emptyList(); + + private void ensureLogicalProductsIsMutable() { + if (!((bitField0_ & 0x00004000) != 0)) { + logicalProducts_ = + new java.util.ArrayList( + logicalProducts_); + bitField0_ |= 0x00004000; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.LogicalProduct, + com.google.cloud.designcenter.v1.LogicalProduct.Builder, + com.google.cloud.designcenter.v1.LogicalProductOrBuilder> + logicalProductsBuilder_; + + /** + * + * + *
+     * Output only. The Product Main logical product type information.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.LogicalProduct logical_products = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getLogicalProductsList() { + if (logicalProductsBuilder_ == null) { + return java.util.Collections.unmodifiableList(logicalProducts_); + } else { + return logicalProductsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Output only. The Product Main logical product type information.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.LogicalProduct logical_products = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getLogicalProductsCount() { + if (logicalProductsBuilder_ == null) { + return logicalProducts_.size(); + } else { + return logicalProductsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Output only. The Product Main logical product type information.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.LogicalProduct logical_products = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.LogicalProduct getLogicalProducts(int index) { + if (logicalProductsBuilder_ == null) { + return logicalProducts_.get(index); + } else { + return logicalProductsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Output only. The Product Main logical product type information.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.LogicalProduct logical_products = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setLogicalProducts( + int index, com.google.cloud.designcenter.v1.LogicalProduct value) { + if (logicalProductsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogicalProductsIsMutable(); + logicalProducts_.set(index, value); + onChanged(); + } else { + logicalProductsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. The Product Main logical product type information.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.LogicalProduct logical_products = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setLogicalProducts( + int index, com.google.cloud.designcenter.v1.LogicalProduct.Builder builderForValue) { + if (logicalProductsBuilder_ == null) { + ensureLogicalProductsIsMutable(); + logicalProducts_.set(index, builderForValue.build()); + onChanged(); + } else { + logicalProductsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The Product Main logical product type information.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.LogicalProduct logical_products = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addLogicalProducts(com.google.cloud.designcenter.v1.LogicalProduct value) { + if (logicalProductsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogicalProductsIsMutable(); + logicalProducts_.add(value); + onChanged(); + } else { + logicalProductsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Output only. The Product Main logical product type information.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.LogicalProduct logical_products = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addLogicalProducts( + int index, com.google.cloud.designcenter.v1.LogicalProduct value) { + if (logicalProductsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogicalProductsIsMutable(); + logicalProducts_.add(index, value); + onChanged(); + } else { + logicalProductsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. The Product Main logical product type information.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.LogicalProduct logical_products = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addLogicalProducts( + com.google.cloud.designcenter.v1.LogicalProduct.Builder builderForValue) { + if (logicalProductsBuilder_ == null) { + ensureLogicalProductsIsMutable(); + logicalProducts_.add(builderForValue.build()); + onChanged(); + } else { + logicalProductsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The Product Main logical product type information.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.LogicalProduct logical_products = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addLogicalProducts( + int index, com.google.cloud.designcenter.v1.LogicalProduct.Builder builderForValue) { + if (logicalProductsBuilder_ == null) { + ensureLogicalProductsIsMutable(); + logicalProducts_.add(index, builderForValue.build()); + onChanged(); + } else { + logicalProductsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The Product Main logical product type information.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.LogicalProduct logical_products = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllLogicalProducts( + java.lang.Iterable values) { + if (logicalProductsBuilder_ == null) { + ensureLogicalProductsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, logicalProducts_); + onChanged(); + } else { + logicalProductsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Output only. The Product Main logical product type information.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.LogicalProduct logical_products = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearLogicalProducts() { + if (logicalProductsBuilder_ == null) { + logicalProducts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00004000); + onChanged(); + } else { + logicalProductsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Output only. The Product Main logical product type information.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.LogicalProduct logical_products = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeLogicalProducts(int index) { + if (logicalProductsBuilder_ == null) { + ensureLogicalProductsIsMutable(); + logicalProducts_.remove(index); + onChanged(); + } else { + logicalProductsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Output only. The Product Main logical product type information.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.LogicalProduct logical_products = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.LogicalProduct.Builder getLogicalProductsBuilder( + int index) { + return internalGetLogicalProductsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Output only. The Product Main logical product type information.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.LogicalProduct logical_products = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.LogicalProductOrBuilder getLogicalProductsOrBuilder( + int index) { + if (logicalProductsBuilder_ == null) { + return logicalProducts_.get(index); + } else { + return logicalProductsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Output only. The Product Main logical product type information.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.LogicalProduct logical_products = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getLogicalProductsOrBuilderList() { + if (logicalProductsBuilder_ != null) { + return logicalProductsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(logicalProducts_); + } + } + + /** + * + * + *
+     * Output only. The Product Main logical product type information.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.LogicalProduct logical_products = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.LogicalProduct.Builder addLogicalProductsBuilder() { + return internalGetLogicalProductsFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.LogicalProduct.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. The Product Main logical product type information.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.LogicalProduct logical_products = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.LogicalProduct.Builder addLogicalProductsBuilder( + int index) { + return internalGetLogicalProductsFieldBuilder() + .addBuilder(index, com.google.cloud.designcenter.v1.LogicalProduct.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. The Product Main logical product type information.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.LogicalProduct logical_products = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getLogicalProductsBuilderList() { + return internalGetLogicalProductsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.LogicalProduct, + com.google.cloud.designcenter.v1.LogicalProduct.Builder, + com.google.cloud.designcenter.v1.LogicalProductOrBuilder> + internalGetLogicalProductsFieldBuilder() { + if (logicalProductsBuilder_ == null) { + logicalProductsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.LogicalProduct, + com.google.cloud.designcenter.v1.LogicalProduct.Builder, + com.google.cloud.designcenter.v1.LogicalProductOrBuilder>( + logicalProducts_, + ((bitField0_ & 0x00004000) != 0), + getParentForChildren(), + isClean()); + logicalProducts_ = null; + } + return logicalProductsBuilder_; + } + + private com.google.protobuf.MapField annotations_; + + private com.google.protobuf.MapField + internalGetAnnotations() { + if (annotations_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AnnotationsDefaultEntryHolder.defaultEntry); + } + return annotations_; + } + + private com.google.protobuf.MapField + internalGetMutableAnnotations() { + if (annotations_ == null) { + annotations_ = + com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry); + } + if (!annotations_.isMutable()) { + annotations_ = annotations_.copy(); + } + bitField0_ |= 0x00008000; + onChanged(); + return annotations_; + } + + public int getAnnotationsCount() { + return internalGetAnnotations().getMap().size(); + } + + /** + * + * + *
+     * Optional. The annotations of the shared template revision.
+     * Key is the annotation name. Value is the annotation value.
+     * 
+ * + * map<string, string> annotations = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetAnnotations().getMap().containsKey(key); + } + + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAnnotations() { + return getAnnotationsMap(); + } + + /** + * + * + *
+     * Optional. The annotations of the shared template revision.
+     * Key is the annotation name. Value is the annotation value.
+     * 
+ * + * map<string, string> annotations = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getAnnotationsMap() { + return internalGetAnnotations().getMap(); + } + + /** + * + * + *
+     * Optional. The annotations of the shared template revision.
+     * Key is the annotation name. Value is the annotation value.
+     * 
+ * + * map<string, string> annotations = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+     * Optional. The annotations of the shared template revision.
+     * Key is the annotation name. Value is the annotation value.
+     * 
+ * + * map<string, string> annotations = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearAnnotations() { + bitField0_ = (bitField0_ & ~0x00008000); + internalGetMutableAnnotations().getMutableMap().clear(); + return this; + } + + /** + * + * + *
+     * Optional. The annotations of the shared template revision.
+     * Key is the annotation name. Value is the annotation value.
+     * 
+ * + * map<string, string> annotations = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableAnnotations().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableAnnotations() { + bitField0_ |= 0x00008000; + return internalGetMutableAnnotations().getMutableMap(); + } + + /** + * + * + *
+     * Optional. The annotations of the shared template revision.
+     * Key is the annotation name. Value is the annotation value.
+     * 
+ * + * map<string, string> annotations = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAnnotations(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableAnnotations().getMutableMap().put(key, value); + bitField0_ |= 0x00008000; + return this; + } + + /** + * + * + *
+     * Optional. The annotations of the shared template revision.
+     * Key is the annotation name. Value is the annotation value.
+     * 
+ * + * map<string, string> annotations = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllAnnotations(java.util.Map values) { + internalGetMutableAnnotations().getMutableMap().putAll(values); + bitField0_ |= 0x00008000; + return this; + } + + private com.google.cloud.designcenter.v1.InferredMetadata inferredMetadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.InferredMetadata, + com.google.cloud.designcenter.v1.InferredMetadata.Builder, + com.google.cloud.designcenter.v1.InferredMetadataOrBuilder> + inferredMetadataBuilder_; + + /** + * + * + *
+     * Output only. Metadata that was automatically inferred from the template
+     * content.
+     * 
+ * + * + * .google.cloud.designcenter.v1.InferredMetadata inferred_metadata = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the inferredMetadata field is set. + */ + public boolean hasInferredMetadata() { + return ((bitField0_ & 0x00010000) != 0); + } + + /** + * + * + *
+     * Output only. Metadata that was automatically inferred from the template
+     * content.
+     * 
+ * + * + * .google.cloud.designcenter.v1.InferredMetadata inferred_metadata = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The inferredMetadata. + */ + public com.google.cloud.designcenter.v1.InferredMetadata getInferredMetadata() { + if (inferredMetadataBuilder_ == null) { + return inferredMetadata_ == null + ? com.google.cloud.designcenter.v1.InferredMetadata.getDefaultInstance() + : inferredMetadata_; + } else { + return inferredMetadataBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Metadata that was automatically inferred from the template
+     * content.
+     * 
+ * + * + * .google.cloud.designcenter.v1.InferredMetadata inferred_metadata = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setInferredMetadata(com.google.cloud.designcenter.v1.InferredMetadata value) { + if (inferredMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inferredMetadata_ = value; + } else { + inferredMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Metadata that was automatically inferred from the template
+     * content.
+     * 
+ * + * + * .google.cloud.designcenter.v1.InferredMetadata inferred_metadata = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setInferredMetadata( + com.google.cloud.designcenter.v1.InferredMetadata.Builder builderForValue) { + if (inferredMetadataBuilder_ == null) { + inferredMetadata_ = builderForValue.build(); + } else { + inferredMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Metadata that was automatically inferred from the template
+     * content.
+     * 
+ * + * + * .google.cloud.designcenter.v1.InferredMetadata inferred_metadata = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeInferredMetadata(com.google.cloud.designcenter.v1.InferredMetadata value) { + if (inferredMetadataBuilder_ == null) { + if (((bitField0_ & 0x00010000) != 0) + && inferredMetadata_ != null + && inferredMetadata_ + != com.google.cloud.designcenter.v1.InferredMetadata.getDefaultInstance()) { + getInferredMetadataBuilder().mergeFrom(value); + } else { + inferredMetadata_ = value; + } + } else { + inferredMetadataBuilder_.mergeFrom(value); + } + if (inferredMetadata_ != null) { + bitField0_ |= 0x00010000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Metadata that was automatically inferred from the template
+     * content.
+     * 
+ * + * + * .google.cloud.designcenter.v1.InferredMetadata inferred_metadata = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearInferredMetadata() { + bitField0_ = (bitField0_ & ~0x00010000); + inferredMetadata_ = null; + if (inferredMetadataBuilder_ != null) { + inferredMetadataBuilder_.dispose(); + inferredMetadataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Metadata that was automatically inferred from the template
+     * content.
+     * 
+ * + * + * .google.cloud.designcenter.v1.InferredMetadata inferred_metadata = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.InferredMetadata.Builder getInferredMetadataBuilder() { + bitField0_ |= 0x00010000; + onChanged(); + return internalGetInferredMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Metadata that was automatically inferred from the template
+     * content.
+     * 
+ * + * + * .google.cloud.designcenter.v1.InferredMetadata inferred_metadata = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.InferredMetadataOrBuilder + getInferredMetadataOrBuilder() { + if (inferredMetadataBuilder_ != null) { + return inferredMetadataBuilder_.getMessageOrBuilder(); + } else { + return inferredMetadata_ == null + ? com.google.cloud.designcenter.v1.InferredMetadata.getDefaultInstance() + : inferredMetadata_; + } + } + + /** + * + * + *
+     * Output only. Metadata that was automatically inferred from the template
+     * content.
+     * 
+ * + * + * .google.cloud.designcenter.v1.InferredMetadata inferred_metadata = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.InferredMetadata, + com.google.cloud.designcenter.v1.InferredMetadata.Builder, + com.google.cloud.designcenter.v1.InferredMetadataOrBuilder> + internalGetInferredMetadataFieldBuilder() { + if (inferredMetadataBuilder_ == null) { + inferredMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.InferredMetadata, + com.google.cloud.designcenter.v1.InferredMetadata.Builder, + com.google.cloud.designcenter.v1.InferredMetadataOrBuilder>( + getInferredMetadata(), getParentForChildren(), isClean()); + inferredMetadata_ = null; + } + return inferredMetadataBuilder_; + } + + private java.util.List resourceTypes_ = + java.util.Collections.emptyList(); + + private void ensureResourceTypesIsMutable() { + if (!((bitField0_ & 0x00020000) != 0)) { + resourceTypes_ = + new java.util.ArrayList(resourceTypes_); + bitField0_ |= 0x00020000; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ResourceType, + com.google.cloud.designcenter.v1.ResourceType.Builder, + com.google.cloud.designcenter.v1.ResourceTypeOrBuilder> + resourceTypesBuilder_; + + /** + * + * + *
+     * Output only. The resource types present in the template revision.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ResourceType resource_types = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getResourceTypesList() { + if (resourceTypesBuilder_ == null) { + return java.util.Collections.unmodifiableList(resourceTypes_); + } else { + return resourceTypesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Output only. The resource types present in the template revision.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ResourceType resource_types = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getResourceTypesCount() { + if (resourceTypesBuilder_ == null) { + return resourceTypes_.size(); + } else { + return resourceTypesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Output only. The resource types present in the template revision.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ResourceType resource_types = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ResourceType getResourceTypes(int index) { + if (resourceTypesBuilder_ == null) { + return resourceTypes_.get(index); + } else { + return resourceTypesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Output only. The resource types present in the template revision.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ResourceType resource_types = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setResourceTypes( + int index, com.google.cloud.designcenter.v1.ResourceType value) { + if (resourceTypesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourceTypesIsMutable(); + resourceTypes_.set(index, value); + onChanged(); + } else { + resourceTypesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. The resource types present in the template revision.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ResourceType resource_types = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setResourceTypes( + int index, com.google.cloud.designcenter.v1.ResourceType.Builder builderForValue) { + if (resourceTypesBuilder_ == null) { + ensureResourceTypesIsMutable(); + resourceTypes_.set(index, builderForValue.build()); + onChanged(); + } else { + resourceTypesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The resource types present in the template revision.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ResourceType resource_types = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addResourceTypes(com.google.cloud.designcenter.v1.ResourceType value) { + if (resourceTypesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourceTypesIsMutable(); + resourceTypes_.add(value); + onChanged(); + } else { + resourceTypesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Output only. The resource types present in the template revision.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ResourceType resource_types = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addResourceTypes( + int index, com.google.cloud.designcenter.v1.ResourceType value) { + if (resourceTypesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourceTypesIsMutable(); + resourceTypes_.add(index, value); + onChanged(); + } else { + resourceTypesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. The resource types present in the template revision.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ResourceType resource_types = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addResourceTypes( + com.google.cloud.designcenter.v1.ResourceType.Builder builderForValue) { + if (resourceTypesBuilder_ == null) { + ensureResourceTypesIsMutable(); + resourceTypes_.add(builderForValue.build()); + onChanged(); + } else { + resourceTypesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The resource types present in the template revision.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ResourceType resource_types = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addResourceTypes( + int index, com.google.cloud.designcenter.v1.ResourceType.Builder builderForValue) { + if (resourceTypesBuilder_ == null) { + ensureResourceTypesIsMutable(); + resourceTypes_.add(index, builderForValue.build()); + onChanged(); + } else { + resourceTypesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The resource types present in the template revision.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ResourceType resource_types = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllResourceTypes( + java.lang.Iterable values) { + if (resourceTypesBuilder_ == null) { + ensureResourceTypesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resourceTypes_); + onChanged(); + } else { + resourceTypesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Output only. The resource types present in the template revision.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ResourceType resource_types = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearResourceTypes() { + if (resourceTypesBuilder_ == null) { + resourceTypes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00020000); + onChanged(); + } else { + resourceTypesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Output only. The resource types present in the template revision.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ResourceType resource_types = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeResourceTypes(int index) { + if (resourceTypesBuilder_ == null) { + ensureResourceTypesIsMutable(); + resourceTypes_.remove(index); + onChanged(); + } else { + resourceTypesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Output only. The resource types present in the template revision.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ResourceType resource_types = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ResourceType.Builder getResourceTypesBuilder( + int index) { + return internalGetResourceTypesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Output only. The resource types present in the template revision.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ResourceType resource_types = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ResourceTypeOrBuilder getResourceTypesOrBuilder( + int index) { + if (resourceTypesBuilder_ == null) { + return resourceTypes_.get(index); + } else { + return resourceTypesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Output only. The resource types present in the template revision.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ResourceType resource_types = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getResourceTypesOrBuilderList() { + if (resourceTypesBuilder_ != null) { + return resourceTypesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(resourceTypes_); + } + } + + /** + * + * + *
+     * Output only. The resource types present in the template revision.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ResourceType resource_types = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ResourceType.Builder addResourceTypesBuilder() { + return internalGetResourceTypesFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.ResourceType.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. The resource types present in the template revision.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ResourceType resource_types = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ResourceType.Builder addResourceTypesBuilder( + int index) { + return internalGetResourceTypesFieldBuilder() + .addBuilder(index, com.google.cloud.designcenter.v1.ResourceType.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. The resource types present in the template revision.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ResourceType resource_types = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getResourceTypesBuilderList() { + return internalGetResourceTypesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ResourceType, + com.google.cloud.designcenter.v1.ResourceType.Builder, + com.google.cloud.designcenter.v1.ResourceTypeOrBuilder> + internalGetResourceTypesFieldBuilder() { + if (resourceTypesBuilder_ == null) { + resourceTypesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ResourceType, + com.google.cloud.designcenter.v1.ResourceType.Builder, + com.google.cloud.designcenter.v1.ResourceTypeOrBuilder>( + resourceTypes_, + ((bitField0_ & 0x00020000) != 0), + getParentForChildren(), + isClean()); + resourceTypes_ = null; + } + return resourceTypesBuilder_; + } + + private int iacSource_ = 0; + + /** + * + * + *
+     * Output only. Indicates the IaC source format of this shared template
+     * revision.
+     * 
+ * + * + * .google.cloud.designcenter.v1.IACSource iac_source = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for iacSource. + */ + @java.lang.Override + public int getIacSourceValue() { + return iacSource_; + } + + /** + * + * + *
+     * Output only. Indicates the IaC source format of this shared template
+     * revision.
+     * 
+ * + * + * .google.cloud.designcenter.v1.IACSource iac_source = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for iacSource to set. + * @return This builder for chaining. + */ + public Builder setIacSourceValue(int value) { + iacSource_ = value; + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Indicates the IaC source format of this shared template
+     * revision.
+     * 
+ * + * + * .google.cloud.designcenter.v1.IACSource iac_source = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The iacSource. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.IACSource getIacSource() { + com.google.cloud.designcenter.v1.IACSource result = + com.google.cloud.designcenter.v1.IACSource.forNumber(iacSource_); + return result == null ? com.google.cloud.designcenter.v1.IACSource.UNRECOGNIZED : result; + } + + /** + * + * + *
+     * Output only. Indicates the IaC source format of this shared template
+     * revision.
+     * 
+ * + * + * .google.cloud.designcenter.v1.IACSource iac_source = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The iacSource to set. + * @return This builder for chaining. + */ + public Builder setIacSource(com.google.cloud.designcenter.v1.IACSource value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00040000; + iacSource_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Indicates the IaC source format of this shared template
+     * revision.
+     * 
+ * + * + * .google.cloud.designcenter.v1.IACSource iac_source = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearIacSource() { + bitField0_ = (bitField0_ & ~0x00040000); + iacSource_ = 0; + onChanged(); + return this; + } + + private java.util.List applicationParameters_ = + java.util.Collections.emptyList(); + + private void ensureApplicationParametersIsMutable() { + if (!((bitField0_ & 0x00080000) != 0)) { + applicationParameters_ = + new java.util.ArrayList( + applicationParameters_); + bitField0_ |= 0x00080000; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Parameter, + com.google.cloud.designcenter.v1.Parameter.Builder, + com.google.cloud.designcenter.v1.ParameterOrBuilder> + applicationParametersBuilder_; + + /** + * + * + *
+     * Optional. The values provided for the input variables.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getApplicationParametersList() { + if (applicationParametersBuilder_ == null) { + return java.util.Collections.unmodifiableList(applicationParameters_); + } else { + return applicationParametersBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. The values provided for the input variables.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getApplicationParametersCount() { + if (applicationParametersBuilder_ == null) { + return applicationParameters_.size(); + } else { + return applicationParametersBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. The values provided for the input variables.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter getApplicationParameters(int index) { + if (applicationParametersBuilder_ == null) { + return applicationParameters_.get(index); + } else { + return applicationParametersBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. The values provided for the input variables.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setApplicationParameters( + int index, com.google.cloud.designcenter.v1.Parameter value) { + if (applicationParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicationParametersIsMutable(); + applicationParameters_.set(index, value); + onChanged(); + } else { + applicationParametersBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The values provided for the input variables.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setApplicationParameters( + int index, com.google.cloud.designcenter.v1.Parameter.Builder builderForValue) { + if (applicationParametersBuilder_ == null) { + ensureApplicationParametersIsMutable(); + applicationParameters_.set(index, builderForValue.build()); + onChanged(); + } else { + applicationParametersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The values provided for the input variables.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addApplicationParameters(com.google.cloud.designcenter.v1.Parameter value) { + if (applicationParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicationParametersIsMutable(); + applicationParameters_.add(value); + onChanged(); + } else { + applicationParametersBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. The values provided for the input variables.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addApplicationParameters( + int index, com.google.cloud.designcenter.v1.Parameter value) { + if (applicationParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicationParametersIsMutable(); + applicationParameters_.add(index, value); + onChanged(); + } else { + applicationParametersBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The values provided for the input variables.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addApplicationParameters( + com.google.cloud.designcenter.v1.Parameter.Builder builderForValue) { + if (applicationParametersBuilder_ == null) { + ensureApplicationParametersIsMutable(); + applicationParameters_.add(builderForValue.build()); + onChanged(); + } else { + applicationParametersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The values provided for the input variables.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addApplicationParameters( + int index, com.google.cloud.designcenter.v1.Parameter.Builder builderForValue) { + if (applicationParametersBuilder_ == null) { + ensureApplicationParametersIsMutable(); + applicationParameters_.add(index, builderForValue.build()); + onChanged(); + } else { + applicationParametersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The values provided for the input variables.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllApplicationParameters( + java.lang.Iterable values) { + if (applicationParametersBuilder_ == null) { + ensureApplicationParametersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, applicationParameters_); + onChanged(); + } else { + applicationParametersBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. The values provided for the input variables.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearApplicationParameters() { + if (applicationParametersBuilder_ == null) { + applicationParameters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00080000); + onChanged(); + } else { + applicationParametersBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. The values provided for the input variables.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeApplicationParameters(int index) { + if (applicationParametersBuilder_ == null) { + ensureApplicationParametersIsMutable(); + applicationParameters_.remove(index); + onChanged(); + } else { + applicationParametersBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. The values provided for the input variables.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter.Builder getApplicationParametersBuilder( + int index) { + return internalGetApplicationParametersFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. The values provided for the input variables.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ParameterOrBuilder getApplicationParametersOrBuilder( + int index) { + if (applicationParametersBuilder_ == null) { + return applicationParameters_.get(index); + } else { + return applicationParametersBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. The values provided for the input variables.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getApplicationParametersOrBuilderList() { + if (applicationParametersBuilder_ != null) { + return applicationParametersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(applicationParameters_); + } + } + + /** + * + * + *
+     * Optional. The values provided for the input variables.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter.Builder addApplicationParametersBuilder() { + return internalGetApplicationParametersFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.Parameter.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The values provided for the input variables.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.Parameter.Builder addApplicationParametersBuilder( + int index) { + return internalGetApplicationParametersFieldBuilder() + .addBuilder(index, com.google.cloud.designcenter.v1.Parameter.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The values provided for the input variables.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getApplicationParametersBuilderList() { + return internalGetApplicationParametersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Parameter, + com.google.cloud.designcenter.v1.Parameter.Builder, + com.google.cloud.designcenter.v1.ParameterOrBuilder> + internalGetApplicationParametersFieldBuilder() { + if (applicationParametersBuilder_ == null) { + applicationParametersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.Parameter, + com.google.cloud.designcenter.v1.Parameter.Builder, + com.google.cloud.designcenter.v1.ParameterOrBuilder>( + applicationParameters_, + ((bitField0_ & 0x00080000) != 0), + getParentForChildren(), + isClean()); + applicationParameters_ = null; + } + return applicationParametersBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.SharedTemplateRevision) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.SharedTemplateRevision) + private static final com.google.cloud.designcenter.v1.SharedTemplateRevision DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.SharedTemplateRevision(); + } + + public static com.google.cloud.designcenter.v1.SharedTemplateRevision getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SharedTemplateRevision parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.SharedTemplateRevision getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SharedTemplateRevisionName.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SharedTemplateRevisionName.java new file mode 100644 index 000000000000..cf4b68ce537e --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SharedTemplateRevisionName.java @@ -0,0 +1,302 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.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; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked +@Generated("by gapic-generator-java") +public class SharedTemplateRevisionName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_SPACE_SHARED_TEMPLATE_REVISION = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/spaces/{space}/sharedTemplates/{shared_template}/revisions/{revision}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String space; + private final String sharedTemplate; + private final String revision; + + @Deprecated + protected SharedTemplateRevisionName() { + project = null; + location = null; + space = null; + sharedTemplate = null; + revision = null; + } + + private SharedTemplateRevisionName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + space = Preconditions.checkNotNull(builder.getSpace()); + sharedTemplate = Preconditions.checkNotNull(builder.getSharedTemplate()); + revision = Preconditions.checkNotNull(builder.getRevision()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getSpace() { + return space; + } + + public String getSharedTemplate() { + return sharedTemplate; + } + + public String getRevision() { + return revision; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static SharedTemplateRevisionName of( + String project, String location, String space, String sharedTemplate, String revision) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setSpace(space) + .setSharedTemplate(sharedTemplate) + .setRevision(revision) + .build(); + } + + public static String format( + String project, String location, String space, String sharedTemplate, String revision) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setSpace(space) + .setSharedTemplate(sharedTemplate) + .setRevision(revision) + .build() + .toString(); + } + + public static @Nullable SharedTemplateRevisionName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_SPACE_SHARED_TEMPLATE_REVISION.validatedMatch( + formattedString, + "SharedTemplateRevisionName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("space"), + matchMap.get("shared_template"), + matchMap.get("revision")); + } + + 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<@Nullable SharedTemplateRevisionName> values) { + List list = new ArrayList<>(values.size()); + for (SharedTemplateRevisionName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_SPACE_SHARED_TEMPLATE_REVISION.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 (space != null) { + fieldMapBuilder.put("space", space); + } + if (sharedTemplate != null) { + fieldMapBuilder.put("shared_template", sharedTemplate); + } + if (revision != null) { + fieldMapBuilder.put("revision", revision); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_SPACE_SHARED_TEMPLATE_REVISION.instantiate( + "project", + project, + "location", + location, + "space", + space, + "shared_template", + sharedTemplate, + "revision", + revision); + } + + @Override + public boolean equals(@Nullable Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + SharedTemplateRevisionName that = ((SharedTemplateRevisionName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.space, that.space) + && Objects.equals(this.sharedTemplate, that.sharedTemplate) + && Objects.equals(this.revision, that.revision); + } + 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(space); + h *= 1000003; + h ^= Objects.hashCode(sharedTemplate); + h *= 1000003; + h ^= Objects.hashCode(revision); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/spaces/{space}/sharedTemplates/{shared_template}/revisions/{revision}. + */ + public static class Builder { + private String project; + private String location; + private String space; + private String sharedTemplate; + private String revision; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getSpace() { + return space; + } + + public String getSharedTemplate() { + return sharedTemplate; + } + + public String getRevision() { + return revision; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setSpace(String space) { + this.space = space; + return this; + } + + public Builder setSharedTemplate(String sharedTemplate) { + this.sharedTemplate = sharedTemplate; + return this; + } + + public Builder setRevision(String revision) { + this.revision = revision; + return this; + } + + private Builder(SharedTemplateRevisionName sharedTemplateRevisionName) { + this.project = sharedTemplateRevisionName.project; + this.location = sharedTemplateRevisionName.location; + this.space = sharedTemplateRevisionName.space; + this.sharedTemplate = sharedTemplateRevisionName.sharedTemplate; + this.revision = sharedTemplateRevisionName.revision; + } + + public SharedTemplateRevisionName build() { + return new SharedTemplateRevisionName(this); + } + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SharedTemplateRevisionOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SharedTemplateRevisionOrBuilder.java new file mode 100644 index 000000000000..6703b2724af6 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SharedTemplateRevisionOrBuilder.java @@ -0,0 +1,937 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/sharing.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface SharedTemplateRevisionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.SharedTemplateRevision) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The git source.
+   * 
+ * + * + * .google.cloud.designcenter.v1.GitSource git_source = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the gitSource field is set. + */ + boolean hasGitSource(); + + /** + * + * + *
+   * Optional. The git source.
+   * 
+ * + * + * .google.cloud.designcenter.v1.GitSource git_source = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The gitSource. + */ + com.google.cloud.designcenter.v1.GitSource getGitSource(); + + /** + * + * + *
+   * Optional. The git source.
+   * 
+ * + * + * .google.cloud.designcenter.v1.GitSource git_source = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.GitSourceOrBuilder getGitSourceOrBuilder(); + + /** + * + * + *
+   * Optional. Deprecated: Added new field tf_module_gcs_uri.
+   * The Cloud Storage URI, which must be in the format gs://[bucket] or
+   * gs://[bucket]/[object].
+   * 
+ * + * string gcs_source_uri = 20 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.designcenter.v1.SharedTemplateRevision.gcs_source_uri is deprecated. + * See google/cloud/designcenter/v1/sharing.proto;l=140 + * @return Whether the gcsSourceUri field is set. + */ + @java.lang.Deprecated + boolean hasGcsSourceUri(); + + /** + * + * + *
+   * Optional. Deprecated: Added new field tf_module_gcs_uri.
+   * The Cloud Storage URI, which must be in the format gs://[bucket] or
+   * gs://[bucket]/[object].
+   * 
+ * + * string gcs_source_uri = 20 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.designcenter.v1.SharedTemplateRevision.gcs_source_uri is deprecated. + * See google/cloud/designcenter/v1/sharing.proto;l=140 + * @return The gcsSourceUri. + */ + @java.lang.Deprecated + java.lang.String getGcsSourceUri(); + + /** + * + * + *
+   * Optional. Deprecated: Added new field tf_module_gcs_uri.
+   * The Cloud Storage URI, which must be in the format gs://[bucket] or
+   * gs://[bucket]/[object].
+   * 
+ * + * string gcs_source_uri = 20 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.designcenter.v1.SharedTemplateRevision.gcs_source_uri is deprecated. + * See google/cloud/designcenter/v1/sharing.proto;l=140 + * @return The bytes for gcsSourceUri. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getGcsSourceUriBytes(); + + /** + * + * + *
+   * Optional. The application template revision source.
+   * 
+ * + * + * string application_template_revision_source = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the applicationTemplateRevisionSource field is set. + */ + boolean hasApplicationTemplateRevisionSource(); + + /** + * + * + *
+   * Optional. The application template revision source.
+   * 
+ * + * + * string application_template_revision_source = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The applicationTemplateRevisionSource. + */ + java.lang.String getApplicationTemplateRevisionSource(); + + /** + * + * + *
+   * Optional. The application template revision source.
+   * 
+ * + * + * string application_template_revision_source = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for applicationTemplateRevisionSource. + */ + com.google.protobuf.ByteString getApplicationTemplateRevisionSourceBytes(); + + /** + * + * + *
+   * Optional. Configuration for fetching content from source code repository
+   * such as GitHub or Bitbucket through Developer Connect.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectSourceConfig developer_connect_source_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the developerConnectSourceConfig field is set. + */ + boolean hasDeveloperConnectSourceConfig(); + + /** + * + * + *
+   * Optional. Configuration for fetching content from source code repository
+   * such as GitHub or Bitbucket through Developer Connect.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectSourceConfig developer_connect_source_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The developerConnectSourceConfig. + */ + com.google.cloud.designcenter.v1.DeveloperConnectSourceConfig getDeveloperConnectSourceConfig(); + + /** + * + * + *
+   * Optional. Configuration for fetching content from source code repository
+   * such as GitHub or Bitbucket through Developer Connect.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeveloperConnectSourceConfig developer_connect_source_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.DeveloperConnectSourceConfigOrBuilder + getDeveloperConnectSourceConfigOrBuilder(); + + /** + * + * + *
+   * Optional. The Open Container Initiative (OCI) repo source that contains
+   * helm charts.
+   * 
+ * + * + * .google.cloud.designcenter.v1.OciRepo oci_repo = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the ociRepo field is set. + */ + boolean hasOciRepo(); + + /** + * + * + *
+   * Optional. The Open Container Initiative (OCI) repo source that contains
+   * helm charts.
+   * 
+ * + * + * .google.cloud.designcenter.v1.OciRepo oci_repo = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The ociRepo. + */ + com.google.cloud.designcenter.v1.OciRepo getOciRepo(); + + /** + * + * + *
+   * Optional. The Open Container Initiative (OCI) repo source that contains
+   * helm charts.
+   * 
+ * + * + * .google.cloud.designcenter.v1.OciRepo oci_repo = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.OciRepoOrBuilder getOciRepoOrBuilder(); + + /** + * + * + *
+   * Identifier. The shared template revision name.
+   * $sharedTemplate is a server-generated UUID.
+   * `projects/$project/locations/$location/spaces/$space/sharedTemplates/$sharedTemplate/revisions/$revision`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Identifier. The shared template revision name.
+   * $sharedTemplate is a server-generated UUID.
+   * `projects/$project/locations/$location/spaces/$space/sharedTemplates/$sharedTemplate/revisions/$revision`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. The shared template revision description.
+   * 
+ * + * string description = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
+   * Optional. The shared template revision description.
+   * 
+ * + * string description = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Optional. The Application Design Center assembly template type.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TemplateType type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + + /** + * + * + *
+   * Optional. The Application Design Center assembly template type.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TemplateType type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The type. + */ + com.google.cloud.designcenter.v1.TemplateType getType(); + + /** + * + * + *
+   * Output only. The shared template metadata.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata shared_template_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the sharedTemplateMetadata field is set. + */ + boolean hasSharedTemplateMetadata(); + + /** + * + * + *
+   * Output only. The shared template metadata.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata shared_template_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The sharedTemplateMetadata. + */ + com.google.cloud.designcenter.v1.TFBlueprintMetadata getSharedTemplateMetadata(); + + /** + * + * + *
+   * Output only. The shared template metadata.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TFBlueprintMetadata shared_template_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.TFBlueprintMetadataOrBuilder + getSharedTemplateMetadataOrBuilder(); + + /** + * + * + *
+   * Output only. The shared template revision refers to the following catalog
+   * template revision.
+   * 
+ * + * + * string origin_template_revision = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The originTemplateRevision. + */ + java.lang.String getOriginTemplateRevision(); + + /** + * + * + *
+   * Output only. The shared template revision refers to the following catalog
+   * template revision.
+   * 
+ * + * + * string origin_template_revision = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for originTemplateRevision. + */ + com.google.protobuf.ByteString getOriginTemplateRevisionBytes(); + + /** + * + * + *
+   * Output only. The shared template revision creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
+   * Output only. The shared template revision creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
+   * Output only. The shared template revision creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The serialized application template revision.
+   * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate application_template_revision = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the applicationTemplateRevision field is set. + */ + boolean hasApplicationTemplateRevision(); + + /** + * + * + *
+   * Output only. The serialized application template revision.
+   * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate application_template_revision = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The applicationTemplateRevision. + */ + com.google.cloud.designcenter.v1.SerializedApplicationTemplate getApplicationTemplateRevision(); + + /** + * + * + *
+   * Output only. The serialized application template revision.
+   * 
+ * + * + * .google.cloud.designcenter.v1.SerializedApplicationTemplate application_template_revision = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.SerializedApplicationTemplateOrBuilder + getApplicationTemplateRevisionOrBuilder(); + + /** + * + * + *
+   * Output only. The helm chart metadata.
+   * 
+ * + * + * .google.cloud.designcenter.v1.HelmChartMetadata helm_chart_metadata = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the helmChartMetadata field is set. + */ + boolean hasHelmChartMetadata(); + + /** + * + * + *
+   * Output only. The helm chart metadata.
+   * 
+ * + * + * .google.cloud.designcenter.v1.HelmChartMetadata helm_chart_metadata = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The helmChartMetadata. + */ + com.google.cloud.designcenter.v1.HelmChartMetadata getHelmChartMetadata(); + + /** + * + * + *
+   * Output only. The helm chart metadata.
+   * 
+ * + * + * .google.cloud.designcenter.v1.HelmChartMetadata helm_chart_metadata = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.HelmChartMetadataOrBuilder getHelmChartMetadataOrBuilder(); + + /** + * + * + *
+   * Output only. The category of the template.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TemplateCategory template_category = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for templateCategory. + */ + int getTemplateCategoryValue(); + + /** + * + * + *
+   * Output only. The category of the template.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TemplateCategory template_category = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The templateCategory. + */ + com.google.cloud.designcenter.v1.TemplateCategory getTemplateCategory(); + + /** + * + * + *
+   * Output only. The Product Main logical product type information.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.LogicalProduct logical_products = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getLogicalProductsList(); + + /** + * + * + *
+   * Output only. The Product Main logical product type information.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.LogicalProduct logical_products = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.LogicalProduct getLogicalProducts(int index); + + /** + * + * + *
+   * Output only. The Product Main logical product type information.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.LogicalProduct logical_products = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getLogicalProductsCount(); + + /** + * + * + *
+   * Output only. The Product Main logical product type information.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.LogicalProduct logical_products = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getLogicalProductsOrBuilderList(); + + /** + * + * + *
+   * Output only. The Product Main logical product type information.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.LogicalProduct logical_products = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.LogicalProductOrBuilder getLogicalProductsOrBuilder(int index); + + /** + * + * + *
+   * Optional. The annotations of the shared template revision.
+   * Key is the annotation name. Value is the annotation value.
+   * 
+ * + * map<string, string> annotations = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getAnnotationsCount(); + + /** + * + * + *
+   * Optional. The annotations of the shared template revision.
+   * Key is the annotation name. Value is the annotation value.
+   * 
+ * + * map<string, string> annotations = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsAnnotations(java.lang.String key); + + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getAnnotations(); + + /** + * + * + *
+   * Optional. The annotations of the shared template revision.
+   * Key is the annotation name. Value is the annotation value.
+   * 
+ * + * map<string, string> annotations = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getAnnotationsMap(); + + /** + * + * + *
+   * Optional. The annotations of the shared template revision.
+   * Key is the annotation name. Value is the annotation value.
+   * 
+ * + * map<string, string> annotations = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
+   * Optional. The annotations of the shared template revision.
+   * Key is the annotation name. Value is the annotation value.
+   * 
+ * + * map<string, string> annotations = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getAnnotationsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Output only. Metadata that was automatically inferred from the template
+   * content.
+   * 
+ * + * + * .google.cloud.designcenter.v1.InferredMetadata inferred_metadata = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the inferredMetadata field is set. + */ + boolean hasInferredMetadata(); + + /** + * + * + *
+   * Output only. Metadata that was automatically inferred from the template
+   * content.
+   * 
+ * + * + * .google.cloud.designcenter.v1.InferredMetadata inferred_metadata = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The inferredMetadata. + */ + com.google.cloud.designcenter.v1.InferredMetadata getInferredMetadata(); + + /** + * + * + *
+   * Output only. Metadata that was automatically inferred from the template
+   * content.
+   * 
+ * + * + * .google.cloud.designcenter.v1.InferredMetadata inferred_metadata = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.InferredMetadataOrBuilder getInferredMetadataOrBuilder(); + + /** + * + * + *
+   * Output only. The resource types present in the template revision.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ResourceType resource_types = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getResourceTypesList(); + + /** + * + * + *
+   * Output only. The resource types present in the template revision.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ResourceType resource_types = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.ResourceType getResourceTypes(int index); + + /** + * + * + *
+   * Output only. The resource types present in the template revision.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ResourceType resource_types = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getResourceTypesCount(); + + /** + * + * + *
+   * Output only. The resource types present in the template revision.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ResourceType resource_types = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getResourceTypesOrBuilderList(); + + /** + * + * + *
+   * Output only. The resource types present in the template revision.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ResourceType resource_types = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.ResourceTypeOrBuilder getResourceTypesOrBuilder(int index); + + /** + * + * + *
+   * Output only. Indicates the IaC source format of this shared template
+   * revision.
+   * 
+ * + * + * .google.cloud.designcenter.v1.IACSource iac_source = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for iacSource. + */ + int getIacSourceValue(); + + /** + * + * + *
+   * Output only. Indicates the IaC source format of this shared template
+   * revision.
+   * 
+ * + * + * .google.cloud.designcenter.v1.IACSource iac_source = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The iacSource. + */ + com.google.cloud.designcenter.v1.IACSource getIacSource(); + + /** + * + * + *
+   * Optional. The values provided for the input variables.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getApplicationParametersList(); + + /** + * + * + *
+   * Optional. The values provided for the input variables.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.Parameter getApplicationParameters(int index); + + /** + * + * + *
+   * Optional. The values provided for the input variables.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getApplicationParametersCount(); + + /** + * + * + *
+   * Optional. The values provided for the input variables.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getApplicationParametersOrBuilderList(); + + /** + * + * + *
+   * Optional. The values provided for the input variables.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.Parameter application_parameters = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.ParameterOrBuilder getApplicationParametersOrBuilder(int index); + + com.google.cloud.designcenter.v1.SharedTemplateRevision.ArtifactLocationCase + getArtifactLocationCase(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SharingProto.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SharingProto.java new file mode 100644 index 000000000000..2d83c62f4b7a --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SharingProto.java @@ -0,0 +1,346 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/sharing_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public final class SharingProto extends com.google.protobuf.GeneratedFile { + private SharingProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "SharingProto"); + } + + 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_designcenter_v1_CreateShareRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_CreateShareRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_ListSharesRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ListSharesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_ListSharesResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ListSharesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_GetShareRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_GetShareRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_DeleteShareRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_DeleteShareRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_SyncShareRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_SyncShareRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_GetSharedTemplateRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_GetSharedTemplateRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_ListSharedTemplatesRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ListSharedTemplatesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_ListSharedTemplatesResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ListSharedTemplatesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_GetSharedTemplateRevisionRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_GetSharedTemplateRevisionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_ListSharedTemplateRevisionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ListSharedTemplateRevisionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_ListSharedTemplateRevisionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_ListSharedTemplateRevisionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_FetchSharedTemplateRevisionTFSourceRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_FetchSharedTemplateRevisionTFSourceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_FetchSharedTemplateRevisionTFSourceResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_FetchSharedTemplateRevisionTFSourceResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_FetchSharedTemplateRevisionAssessmentReportRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_FetchSharedTemplateRevisionAssessmentReportRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_FetchSharedTemplateRevisionAssessmentReportResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_FetchSharedTemplateRevisionAssessmentReportResponse_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" + + "3google/cloud/designcenter/v1/sharing_messages.proto\022\034google.cloud.designcenter" + + ".v1\032\037google/api/field_behavior.proto\032\031go" + + "ogle/api/resource.proto\0321google/cloud/designcenter/v1/best_practices.proto\032&goog" + + "le/cloud/designcenter/v1/iac.proto\032*goog" + + "le/cloud/designcenter/v1/sharing.proto\"\242\001\n" + + "\022CreateShareRequest\022:\n" + + "\006parent\030\001 \001(\tB*\342" + + "A\001\002\372A#\022!designcenter.googleapis.com/Share\022\026\n" + + "\010share_id\030\002 \001(\tB\004\342A\001\002\0228\n" + + "\005share\030\003 \001(\013" + + "2#.google.cloud.designcenter.v1.ShareB\004\342A\001\002\"\232\001\n" + + "\021ListSharesRequest\022:\n" + + "\006parent\030\001 \001(" + + "\tB*\342A\001\002\372A#\022!designcenter.googleapis.com/Share\022\027\n" + + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n" + + "page_token\030\003 \001(\tB\004\342A\001\001\022\026\n" + + "\010order_by\030\004 \001(\tB\004\342A\001\001\"b\n" + + "\022ListSharesResponse\0223\n" + + "\006shares\030\001 \003(\0132#.google.cloud.designcenter.v1.Share\022\027\n" + + "\017next_page_token\030\002 \001(\t\"K\n" + + "\017GetShareRequest\0228\n" + + "\004name\030\001 \001(\tB*\342A\001\002\372A#\n" + + "!designcenter.googleapis.com/Share\"N\n" + + "\022DeleteShareRequest\0228\n" + + "\004name\030\001 \001(\tB*\342A\001\002\372A#\n" + + "!designcenter.googleapis.com/Share\"L\n" + + "\020SyncShareRequest\0228\n" + + "\004name\030\001 \001(\tB*\342A\001\002\372A#\n" + + "!designcenter.googleapis.com/Share\"]\n" + + "\030GetSharedTemplateRequest\022A\n" + + "\004name\030\001 \001(\tB3\342A\001\002\372A,\n" + + "*designcenter.googleapis.com/SharedTemplate\"\302\001\n" + + "\032ListSharedTemplatesRequest\022C\n" + + "\006parent\030\001 \001(\tB3\342" + + "A\001\002\372A,\022*designcenter.googleapis.com/SharedTemplate\022\027\n" + + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n" + + "page_token\030\003 \001(\tB\004\342A\001\001\022\024\n" + + "\006filter\030\004 \001(\tB\004\342A\001\001\022\026\n" + + "\010order_by\030\005 \001(\tB\004\342A\001\001\"~\n" + + "\033ListSharedTemplatesResponse\022F\n" + + "\020shared_templates\030\001" + + " \003(\0132,.google.cloud.designcenter.v1.SharedTemplate\022\027\n" + + "\017next_page_token\030\002 \001(\t\"m\n" + + " GetSharedTemplateRevisionRequest\022I\n" + + "\004name\030\001 \001(\tB;\342A\001\002\372A4\n" + + "2designcenter.googleapis.com/SharedTemplateRevision\"\322\001\n" + + "\"ListSharedTemplateRevisionsRequest\022K\n" + + "\006parent\030\001 \001(" + + "\tB;\342A\001\002\372A4\0222designcenter.googleapis.com/SharedTemplateRevision\022\027\n" + + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n" + + "page_token\030\003 \001(\tB\004\342A\001\001\022\024\n" + + "\006filter\030\004 \001(\tB\004\342A\001\001\022\026\n" + + "\010order_by\030\005 \001(\tB\004\342A\001\001\"\227\001\n" + + "#ListSharedTemplateRevisionsResponse\022W\n" + + "\031shared_template_revisions\030\001 \003(\01324.goo" + + "gle.cloud.designcenter.v1.SharedTemplateRevision\022\027\n" + + "\017next_page_token\030\002 \001(\t\"w\n" + + "*FetchSharedTemplateRevisionTFSourceRequest\022I\n" + + "\004name\030\001 \001(\tB;\342A\001\002\372A4\n" + + "2designcenter.googleapis.com/SharedTemplateRevision\"\261\001\n" + + "+FetchSharedTemplateRevisionTFSourceResponse\022B\n" + + "\013root_module\030\001" + + " \001(\0132-.google.cloud.designcenter.v1.TerraformModule\022>\n" + + "\007modules\030\002 \003(\0132-.google.cloud.designcenter.v1.TerraformModule\"\177\n" + + "2FetchSharedTemplateRevisionAssessmentReportRequest\022I\n" + + "\004name\030\001 \001(\tB;\342A\001\002\372A4\n" + + "2designcenter.googleapis.com/SharedTemplateRevision\"\200\001\n" + + "3FetchSharedTemplateRevisionAssessmentReportResponse\022I\n" + + "\021assessment_report\030\001" + + " \001(\0132..google.cloud.designcenter.v1.AssessmentReportB\330\001\n" + + " com.google.cloud.designcenter.v1B\014Sharing" + + "ProtoP\001ZDcloud.google.com/go/designcente" + + "r/apiv1/designcenterpb;designcenterpb\252\002\034" + + "Google.Cloud.DesignCenter.V1\312\002\034Google\\Cl" + + "oud\\DesignCenter\\V1\352\002\037Google::Cloud::DesignCenter::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.designcenter.v1.BestPracticesResourcesProto.getDescriptor(), + com.google.cloud.designcenter.v1.IacProto.getDescriptor(), + com.google.cloud.designcenter.v1.SharingResourcesProto.getDescriptor(), + }); + internal_static_google_cloud_designcenter_v1_CreateShareRequest_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_designcenter_v1_CreateShareRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_CreateShareRequest_descriptor, + new java.lang.String[] { + "Parent", "ShareId", "Share", + }); + internal_static_google_cloud_designcenter_v1_ListSharesRequest_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_designcenter_v1_ListSharesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ListSharesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "OrderBy", + }); + internal_static_google_cloud_designcenter_v1_ListSharesResponse_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_designcenter_v1_ListSharesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ListSharesResponse_descriptor, + new java.lang.String[] { + "Shares", "NextPageToken", + }); + internal_static_google_cloud_designcenter_v1_GetShareRequest_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_cloud_designcenter_v1_GetShareRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_GetShareRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_designcenter_v1_DeleteShareRequest_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_cloud_designcenter_v1_DeleteShareRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_DeleteShareRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_designcenter_v1_SyncShareRequest_descriptor = + getDescriptor().getMessageType(5); + internal_static_google_cloud_designcenter_v1_SyncShareRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_SyncShareRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_designcenter_v1_GetSharedTemplateRequest_descriptor = + getDescriptor().getMessageType(6); + internal_static_google_cloud_designcenter_v1_GetSharedTemplateRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_GetSharedTemplateRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_designcenter_v1_ListSharedTemplatesRequest_descriptor = + getDescriptor().getMessageType(7); + internal_static_google_cloud_designcenter_v1_ListSharedTemplatesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ListSharedTemplatesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_designcenter_v1_ListSharedTemplatesResponse_descriptor = + getDescriptor().getMessageType(8); + internal_static_google_cloud_designcenter_v1_ListSharedTemplatesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ListSharedTemplatesResponse_descriptor, + new java.lang.String[] { + "SharedTemplates", "NextPageToken", + }); + internal_static_google_cloud_designcenter_v1_GetSharedTemplateRevisionRequest_descriptor = + getDescriptor().getMessageType(9); + internal_static_google_cloud_designcenter_v1_GetSharedTemplateRevisionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_GetSharedTemplateRevisionRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_designcenter_v1_ListSharedTemplateRevisionsRequest_descriptor = + getDescriptor().getMessageType(10); + internal_static_google_cloud_designcenter_v1_ListSharedTemplateRevisionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ListSharedTemplateRevisionsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_designcenter_v1_ListSharedTemplateRevisionsResponse_descriptor = + getDescriptor().getMessageType(11); + internal_static_google_cloud_designcenter_v1_ListSharedTemplateRevisionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_ListSharedTemplateRevisionsResponse_descriptor, + new java.lang.String[] { + "SharedTemplateRevisions", "NextPageToken", + }); + internal_static_google_cloud_designcenter_v1_FetchSharedTemplateRevisionTFSourceRequest_descriptor = + getDescriptor().getMessageType(12); + internal_static_google_cloud_designcenter_v1_FetchSharedTemplateRevisionTFSourceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_FetchSharedTemplateRevisionTFSourceRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_designcenter_v1_FetchSharedTemplateRevisionTFSourceResponse_descriptor = + getDescriptor().getMessageType(13); + internal_static_google_cloud_designcenter_v1_FetchSharedTemplateRevisionTFSourceResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_FetchSharedTemplateRevisionTFSourceResponse_descriptor, + new java.lang.String[] { + "RootModule", "Modules", + }); + internal_static_google_cloud_designcenter_v1_FetchSharedTemplateRevisionAssessmentReportRequest_descriptor = + getDescriptor().getMessageType(14); + internal_static_google_cloud_designcenter_v1_FetchSharedTemplateRevisionAssessmentReportRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_FetchSharedTemplateRevisionAssessmentReportRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_designcenter_v1_FetchSharedTemplateRevisionAssessmentReportResponse_descriptor = + getDescriptor().getMessageType(15); + internal_static_google_cloud_designcenter_v1_FetchSharedTemplateRevisionAssessmentReportResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_FetchSharedTemplateRevisionAssessmentReportResponse_descriptor, + new java.lang.String[] { + "AssessmentReport", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.designcenter.v1.BestPracticesResourcesProto.getDescriptor(); + com.google.cloud.designcenter.v1.IacProto.getDescriptor(); + com.google.cloud.designcenter.v1.SharingResourcesProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SharingResourcesProto.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SharingResourcesProto.java new file mode 100644 index 000000000000..ebe3c0229725 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SharingResourcesProto.java @@ -0,0 +1,253 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/sharing.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public final class SharingResourcesProto extends com.google.protobuf.GeneratedFile { + private SharingResourcesProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "SharingResourcesProto"); + } + + 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_designcenter_v1_Share_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_Share_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_SharedTemplate_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_SharedTemplate_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_SharedTemplateRevision_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_SharedTemplateRevision_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_designcenter_v1_SharedTemplateRevision_AnnotationsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_designcenter_v1_SharedTemplateRevision_AnnotationsEntry_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/designcenter/v1/sharing.p" + + "roto\022\034google.cloud.designcenter.v1\032\037goog" + + "le/api/field_behavior.proto\032\031google/api/" + + "resource.proto\032,google/cloud/designcenter/v1/authoring.proto\032(google/cloud/desig" + + "ncenter/v1/enums.proto\032,google/cloud/designcenter/v1/ingestion.proto\032+google/clo" + + "ud/designcenter/v1/metadata.proto\032-googl" + + "e/cloud/designcenter/v1/parameters.proto\032\037google/protobuf/timestamp.proto\"\252\003\n" + + "\005Share\022\022\n" + + "\004name\030\001 \001(\tB\004\342A\001\010\022E\n" + + "\021destination_space\030\002 \001(\tB*\342A\001\002\372A#\n" + + "!designcenter.googleapis.com/Space\0225\n" + + "\013create_time\030\003" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022>\n" + + "\005state\030\004" + + " \001(\0162).google.cloud.designcenter.v1.Share.StateB\004\342A\001\003\"<\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\013\n" + + "\007IN_SYNC\020\001\022\017\n" + + "\013OUT_OF_SYNC\020\002:\220\001\352A\214\001\n" + + "!designcenter.googleapis.com/Share\022Xprojects/{project}/locations/{location}/s" + + "paces/{space}/catalogs/{catalog}/shares/{share}*\006shares2\005share\"\371\004\n" + + "\016SharedTemplate\022\022\n" + + "\004name\030\001 \001(\tB\004\342A\001\010\022\032\n" + + "\014display_name\030\007 \001(\tB\004\342A\001\001\022\031\n" + + "\013description\030\002 \001(\tB\004\342A\001\001\022M\n" + + "\017origin_template\030\003 \001(\tB4\342A\001\003\372A-\n" + + "+designcenter.googleapis.com/CatalogTemplate\0225\n" + + "\013create_time\030\004" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0225\n" + + "\013update_time\030\005 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022" + + " \n" + + "\022latest_revision_id\030\006 \001(\tB\004\342A\001\003\022O\n" + + "\021template_category\030\010" + + " \001(\0162..google.cloud.designcenter.v1.TemplateCategoryB\004\342A\001\002\022>\n" + + "\004type\030\t \001(\0162*.goo" + + "gle.cloud.designcenter.v1.TemplateTypeB\004\342A\001\001:\253\001\352A\247\001\n" + + "*designcenter.googleapis.com/SharedTemplate\022Xprojects/{project}/loca" + + "tions/{location}/spaces/{space}/sharedTe" + + "mplates/{shared_template}*\017sharedTemplates2\016sharedTemplate\"\220\016\n" + + "\026SharedTemplateRevision\022C\n\n" + + "git_source\030\005" + + " \001(\0132\'.google.cloud.designcenter.v1.GitSourceB\004\342A\001\001H\000\022 \n" + + "\016gcs_source_uri\030\024 \001(\tB\006\030\001\342A\001\001H\000\022p\n" + + "$application_template_revision_source\030\n" + + " \001(\tB@\342A\001\001\372A9\n" + + "7designcenter.googleapis.com/ApplicationTemplateRevisionH\000\022k\n" + + "\037developer_connect_source_config\030\r" + + " \001(\0132:.google.cloud.d" + + "esigncenter.v1.DeveloperConnectSourceConfigB\004\342A\001\001H\000\022?\n" + + "\010oci_repo\030\017" + + " \001(\0132%.google.cloud.designcenter.v1.OciRepoB\004\342A\001\001H\000\022\022\n" + + "\004name\030\001 \001(\tB\004\342A\001\010\022\031\n" + + "\013description\030\014 \001(\tB\004\342A\001\001\022>\n" + + "\004type\030\002" + + " \001(\0162*.google.cloud.designcenter.v1.TemplateTypeB\004\342A\001\001\022Y\n" + + "\030shared_template_metadata\030\006 \001(\01321.google.cloud.des" + + "igncenter.v1.TFBlueprintMetadataB\004\342A\001\003\022^\n" + + "\030origin_template_revision\030\007 \001(\tB<\342A\001\003\372A5\n" + + "3designcenter.googleapis.com/CatalogTemplateRevision\0225\n" + + "\013create_time\030\010" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022h\n" + + "\035application_template_revision\030\013 \001(\0132;.google.cl" + + "oud.designcenter.v1.SerializedApplicationTemplateB\004\342A\001\003\022R\n" + + "\023helm_chart_metadata\030\016" + + " \001(\0132/.google.cloud.designcenter.v1.HelmChartMetadataB\004\342A\001\003\022O\n" + + "\021template_category\030\020" + + " \001(\0162..google.cloud.designcenter.v1.TemplateCategoryB\004\342A\001\003\022L\n" + + "\020logical_products\030\021" + + " \003(\0132,.google.cloud.designcenter.v1.LogicalProductB\004\342A\001\003\022`\n" + + "\013annotations\030\022 \003(\0132" + + "E.google.cloud.designcenter.v1.SharedTemplateRevision.AnnotationsEntryB\004\342A\001\001\022O\n" + + "\021inferred_metadata\030\023" + + " \001(\0132..google.cloud.designcenter.v1.InferredMetadataB\004\342A\001\003\022H\n" + + "\016resource_types\030\025" + + " \003(\0132*.google.cloud.designcenter.v1.ResourceTypeB\004\342A\001\003\022A\n\n" + + "iac_source\030\030" + + " \001(\0162\'.google.cloud.designcenter.v1.IACSourceB\004\342A\001\003\022M\n" + + "\026application_parameters\030\031" + + " \003(\0132\'.google.cloud.designcenter.v1.ParameterB\004\342A\001\001\0322\n" + + "\020AnnotationsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001:\330\001\352A\324\001\n" + + "2designcenter.googleapis.com/SharedTemplateRevision\022mprojects/{project}/locations/{" + + "location}/spaces/{space}/sharedTemplates/{shared_template}/revisions/{revision}*" + + "\027sharedTemplateRevisions2\026sharedTemplateRevisionB\023\n" + + "\021artifact_locationB\341\001\n" + + " com.google.cloud.designcenter.v1B\025SharingResou" + + "rcesProtoP\001ZDcloud.google.com/go/designcenter/apiv1/designcenterpb;designcenterp" + + "b\252\002\034Google.Cloud.DesignCenter.V1\312\002\034Googl" + + "e\\Cloud\\DesignCenter\\V1\352\002\037Google::Cloud::DesignCenter::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.designcenter.v1.AuthoringResourcesProto.getDescriptor(), + com.google.cloud.designcenter.v1.EnumsProto.getDescriptor(), + com.google.cloud.designcenter.v1.IngestionProto.getDescriptor(), + com.google.cloud.designcenter.v1.MetadataProto.getDescriptor(), + com.google.cloud.designcenter.v1.ParametersProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_designcenter_v1_Share_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_designcenter_v1_Share_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_Share_descriptor, + new java.lang.String[] { + "Name", "DestinationSpace", "CreateTime", "State", + }); + internal_static_google_cloud_designcenter_v1_SharedTemplate_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_designcenter_v1_SharedTemplate_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_SharedTemplate_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "Description", + "OriginTemplate", + "CreateTime", + "UpdateTime", + "LatestRevisionId", + "TemplateCategory", + "Type", + }); + internal_static_google_cloud_designcenter_v1_SharedTemplateRevision_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_designcenter_v1_SharedTemplateRevision_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_SharedTemplateRevision_descriptor, + new java.lang.String[] { + "GitSource", + "GcsSourceUri", + "ApplicationTemplateRevisionSource", + "DeveloperConnectSourceConfig", + "OciRepo", + "Name", + "Description", + "Type", + "SharedTemplateMetadata", + "OriginTemplateRevision", + "CreateTime", + "ApplicationTemplateRevision", + "HelmChartMetadata", + "TemplateCategory", + "LogicalProducts", + "Annotations", + "InferredMetadata", + "ResourceTypes", + "IacSource", + "ApplicationParameters", + "ArtifactLocation", + }); + internal_static_google_cloud_designcenter_v1_SharedTemplateRevision_AnnotationsEntry_descriptor = + internal_static_google_cloud_designcenter_v1_SharedTemplateRevision_descriptor + .getNestedType(0); + internal_static_google_cloud_designcenter_v1_SharedTemplateRevision_AnnotationsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_designcenter_v1_SharedTemplateRevision_AnnotationsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.designcenter.v1.AuthoringResourcesProto.getDescriptor(); + com.google.cloud.designcenter.v1.EnumsProto.getDescriptor(); + com.google.cloud.designcenter.v1.IngestionProto.getDescriptor(); + com.google.cloud.designcenter.v1.MetadataProto.getDescriptor(); + com.google.cloud.designcenter.v1.ParametersProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SkippedDomain.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SkippedDomain.java new file mode 100644 index 000000000000..40021544e8d1 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SkippedDomain.java @@ -0,0 +1,1084 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/assessment.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Domains skipped during the best practice assessment.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.SkippedDomain} + */ +@com.google.protobuf.Generated +public final class SkippedDomain extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.SkippedDomain) + SkippedDomainOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "SkippedDomain"); + } + + // Use SkippedDomain.newBuilder() to construct. + private SkippedDomain(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SkippedDomain() { + skipReason_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_SkippedDomain_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_SkippedDomain_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.SkippedDomain.class, + com.google.cloud.designcenter.v1.SkippedDomain.Builder.class); + } + + /** + * + * + *
+   * Reason for skipping the domain from assessment.
+   * 
+ * + * Protobuf enum {@code google.cloud.designcenter.v1.SkippedDomain.Reason} + */ + public enum Reason implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * No reason specified.
+     * 
+ * + * REASON_UNSPECIFIED = 0; + */ + REASON_UNSPECIFIED(0), + /** + * + * + *
+     * Domain is unavailable.
+     * 
+ * + * UNAVAILABLE = 1; + */ + UNAVAILABLE(1), + /** + * + * + *
+     * Domain assessment failed.
+     * 
+ * + * FAILURE = 2; + */ + FAILURE(2), + /** + * + * + *
+     * Domain assessment timed out.
+     * 
+ * + * TIMEOUT = 3; + */ + TIMEOUT(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "Reason"); + } + + /** + * + * + *
+     * No reason specified.
+     * 
+ * + * REASON_UNSPECIFIED = 0; + */ + public static final int REASON_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Domain is unavailable.
+     * 
+ * + * UNAVAILABLE = 1; + */ + public static final int UNAVAILABLE_VALUE = 1; + + /** + * + * + *
+     * Domain assessment failed.
+     * 
+ * + * FAILURE = 2; + */ + public static final int FAILURE_VALUE = 2; + + /** + * + * + *
+     * Domain assessment timed out.
+     * 
+ * + * TIMEOUT = 3; + */ + public static final int TIMEOUT_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 Reason 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 Reason forNumber(int value) { + switch (value) { + case 0: + return REASON_UNSPECIFIED; + case 1: + return UNAVAILABLE; + case 2: + return FAILURE; + case 3: + return TIMEOUT; + 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 Reason findValueByNumber(int number) { + return Reason.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.designcenter.v1.SkippedDomain.getDescriptor().getEnumTypes().get(0); + } + + private static final Reason[] VALUES = values(); + + public static Reason 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 Reason(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.designcenter.v1.SkippedDomain.Reason) + } + + private int bitField0_; + public static final int DOMAIN_FIELD_NUMBER = 1; + private com.google.cloud.designcenter.v1.Domain domain_; + + /** + * + * + *
+   * Output only. Details of the domain skipped.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Domain domain = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the domain field is set. + */ + @java.lang.Override + public boolean hasDomain() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. Details of the domain skipped.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Domain domain = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The domain. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.Domain getDomain() { + return domain_ == null ? com.google.cloud.designcenter.v1.Domain.getDefaultInstance() : domain_; + } + + /** + * + * + *
+   * Output only. Details of the domain skipped.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Domain domain = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.DomainOrBuilder getDomainOrBuilder() { + return domain_ == null ? com.google.cloud.designcenter.v1.Domain.getDefaultInstance() : domain_; + } + + public static final int SKIP_REASON_FIELD_NUMBER = 2; + private int skipReason_ = 0; + + /** + * + * + *
+   * Output only. Reason for skipping the domain from assessment.
+   * 
+ * + * + * .google.cloud.designcenter.v1.SkippedDomain.Reason skip_reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for skipReason. + */ + @java.lang.Override + public int getSkipReasonValue() { + return skipReason_; + } + + /** + * + * + *
+   * Output only. Reason for skipping the domain from assessment.
+   * 
+ * + * + * .google.cloud.designcenter.v1.SkippedDomain.Reason skip_reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The skipReason. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.SkippedDomain.Reason getSkipReason() { + com.google.cloud.designcenter.v1.SkippedDomain.Reason result = + com.google.cloud.designcenter.v1.SkippedDomain.Reason.forNumber(skipReason_); + return result == null + ? com.google.cloud.designcenter.v1.SkippedDomain.Reason.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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getDomain()); + } + if (skipReason_ + != com.google.cloud.designcenter.v1.SkippedDomain.Reason.REASON_UNSPECIFIED.getNumber()) { + output.writeEnum(2, skipReason_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDomain()); + } + if (skipReason_ + != com.google.cloud.designcenter.v1.SkippedDomain.Reason.REASON_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, skipReason_); + } + 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.designcenter.v1.SkippedDomain)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.SkippedDomain other = + (com.google.cloud.designcenter.v1.SkippedDomain) obj; + + if (hasDomain() != other.hasDomain()) return false; + if (hasDomain()) { + if (!getDomain().equals(other.getDomain())) return false; + } + if (skipReason_ != other.skipReason_) 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 (hasDomain()) { + hash = (37 * hash) + DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getDomain().hashCode(); + } + hash = (37 * hash) + SKIP_REASON_FIELD_NUMBER; + hash = (53 * hash) + skipReason_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.SkippedDomain parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.SkippedDomain 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.designcenter.v1.SkippedDomain parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.SkippedDomain parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.SkippedDomain parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.SkippedDomain parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.SkippedDomain parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.SkippedDomain parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.SkippedDomain parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.SkippedDomain parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.SkippedDomain parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.SkippedDomain parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.SkippedDomain 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Domains skipped during the best practice assessment.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.SkippedDomain} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.SkippedDomain) + com.google.cloud.designcenter.v1.SkippedDomainOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_SkippedDomain_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_SkippedDomain_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.SkippedDomain.class, + com.google.cloud.designcenter.v1.SkippedDomain.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.SkippedDomain.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetDomainFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + domain_ = null; + if (domainBuilder_ != null) { + domainBuilder_.dispose(); + domainBuilder_ = null; + } + skipReason_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.AssessmentProto + .internal_static_google_cloud_designcenter_v1_SkippedDomain_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.SkippedDomain getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.SkippedDomain.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.SkippedDomain build() { + com.google.cloud.designcenter.v1.SkippedDomain result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.SkippedDomain buildPartial() { + com.google.cloud.designcenter.v1.SkippedDomain result = + new com.google.cloud.designcenter.v1.SkippedDomain(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.SkippedDomain result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.domain_ = domainBuilder_ == null ? domain_ : domainBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.skipReason_ = skipReason_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.SkippedDomain) { + return mergeFrom((com.google.cloud.designcenter.v1.SkippedDomain) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.SkippedDomain other) { + if (other == com.google.cloud.designcenter.v1.SkippedDomain.getDefaultInstance()) return this; + if (other.hasDomain()) { + mergeDomain(other.getDomain()); + } + if (other.skipReason_ != 0) { + setSkipReasonValue(other.getSkipReasonValue()); + } + 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(internalGetDomainFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + skipReason_ = 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 com.google.cloud.designcenter.v1.Domain domain_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.Domain, + com.google.cloud.designcenter.v1.Domain.Builder, + com.google.cloud.designcenter.v1.DomainOrBuilder> + domainBuilder_; + + /** + * + * + *
+     * Output only. Details of the domain skipped.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Domain domain = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the domain field is set. + */ + public boolean hasDomain() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Output only. Details of the domain skipped.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Domain domain = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The domain. + */ + public com.google.cloud.designcenter.v1.Domain getDomain() { + if (domainBuilder_ == null) { + return domain_ == null + ? com.google.cloud.designcenter.v1.Domain.getDefaultInstance() + : domain_; + } else { + return domainBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Details of the domain skipped.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Domain domain = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDomain(com.google.cloud.designcenter.v1.Domain value) { + if (domainBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + domain_ = value; + } else { + domainBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Details of the domain skipped.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Domain domain = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDomain(com.google.cloud.designcenter.v1.Domain.Builder builderForValue) { + if (domainBuilder_ == null) { + domain_ = builderForValue.build(); + } else { + domainBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Details of the domain skipped.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Domain domain = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeDomain(com.google.cloud.designcenter.v1.Domain value) { + if (domainBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && domain_ != null + && domain_ != com.google.cloud.designcenter.v1.Domain.getDefaultInstance()) { + getDomainBuilder().mergeFrom(value); + } else { + domain_ = value; + } + } else { + domainBuilder_.mergeFrom(value); + } + if (domain_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Details of the domain skipped.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Domain domain = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDomain() { + bitField0_ = (bitField0_ & ~0x00000001); + domain_ = null; + if (domainBuilder_ != null) { + domainBuilder_.dispose(); + domainBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Details of the domain skipped.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Domain domain = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.Domain.Builder getDomainBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetDomainFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Details of the domain skipped.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Domain domain = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.DomainOrBuilder getDomainOrBuilder() { + if (domainBuilder_ != null) { + return domainBuilder_.getMessageOrBuilder(); + } else { + return domain_ == null + ? com.google.cloud.designcenter.v1.Domain.getDefaultInstance() + : domain_; + } + } + + /** + * + * + *
+     * Output only. Details of the domain skipped.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Domain domain = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.Domain, + com.google.cloud.designcenter.v1.Domain.Builder, + com.google.cloud.designcenter.v1.DomainOrBuilder> + internalGetDomainFieldBuilder() { + if (domainBuilder_ == null) { + domainBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.Domain, + com.google.cloud.designcenter.v1.Domain.Builder, + com.google.cloud.designcenter.v1.DomainOrBuilder>( + getDomain(), getParentForChildren(), isClean()); + domain_ = null; + } + return domainBuilder_; + } + + private int skipReason_ = 0; + + /** + * + * + *
+     * Output only. Reason for skipping the domain from assessment.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SkippedDomain.Reason skip_reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for skipReason. + */ + @java.lang.Override + public int getSkipReasonValue() { + return skipReason_; + } + + /** + * + * + *
+     * Output only. Reason for skipping the domain from assessment.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SkippedDomain.Reason skip_reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for skipReason to set. + * @return This builder for chaining. + */ + public Builder setSkipReasonValue(int value) { + skipReason_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Reason for skipping the domain from assessment.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SkippedDomain.Reason skip_reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The skipReason. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.SkippedDomain.Reason getSkipReason() { + com.google.cloud.designcenter.v1.SkippedDomain.Reason result = + com.google.cloud.designcenter.v1.SkippedDomain.Reason.forNumber(skipReason_); + return result == null + ? com.google.cloud.designcenter.v1.SkippedDomain.Reason.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Output only. Reason for skipping the domain from assessment.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SkippedDomain.Reason skip_reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The skipReason to set. + * @return This builder for chaining. + */ + public Builder setSkipReason(com.google.cloud.designcenter.v1.SkippedDomain.Reason value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + skipReason_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Reason for skipping the domain from assessment.
+     * 
+ * + * + * .google.cloud.designcenter.v1.SkippedDomain.Reason skip_reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearSkipReason() { + bitField0_ = (bitField0_ & ~0x00000002); + skipReason_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.SkippedDomain) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.SkippedDomain) + private static final com.google.cloud.designcenter.v1.SkippedDomain DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.SkippedDomain(); + } + + public static com.google.cloud.designcenter.v1.SkippedDomain getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SkippedDomain parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.SkippedDomain getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SkippedDomainOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SkippedDomainOrBuilder.java new file mode 100644 index 000000000000..913a59408025 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SkippedDomainOrBuilder.java @@ -0,0 +1,101 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/assessment.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface SkippedDomainOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.SkippedDomain) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Details of the domain skipped.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Domain domain = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the domain field is set. + */ + boolean hasDomain(); + + /** + * + * + *
+   * Output only. Details of the domain skipped.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Domain domain = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The domain. + */ + com.google.cloud.designcenter.v1.Domain getDomain(); + + /** + * + * + *
+   * Output only. Details of the domain skipped.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Domain domain = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.DomainOrBuilder getDomainOrBuilder(); + + /** + * + * + *
+   * Output only. Reason for skipping the domain from assessment.
+   * 
+ * + * + * .google.cloud.designcenter.v1.SkippedDomain.Reason skip_reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for skipReason. + */ + int getSkipReasonValue(); + + /** + * + * + *
+   * Output only. Reason for skipping the domain from assessment.
+   * 
+ * + * + * .google.cloud.designcenter.v1.SkippedDomain.Reason skip_reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The skipReason. + */ + com.google.cloud.designcenter.v1.SkippedDomain.Reason getSkipReason(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SnapshotApplicationTemplateRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SnapshotApplicationTemplateRequest.java new file mode 100644 index 000000000000..b7c04a053039 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SnapshotApplicationTemplateRequest.java @@ -0,0 +1,623 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for snapshotting an application template asynchronously.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.SnapshotApplicationTemplateRequest} + */ +@com.google.protobuf.Generated +public final class SnapshotApplicationTemplateRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.SnapshotApplicationTemplateRequest) + SnapshotApplicationTemplateRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "SnapshotApplicationTemplateRequest"); + } + + // Use SnapshotApplicationTemplateRequest.newBuilder() to construct. + private SnapshotApplicationTemplateRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SnapshotApplicationTemplateRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_SnapshotApplicationTemplateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_SnapshotApplicationTemplateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.SnapshotApplicationTemplateRequest.class, + com.google.cloud.designcenter.v1.SnapshotApplicationTemplateRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The name of the application template.
+   * 
+ * + * + * 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 application template.
+   * 
+ * + * + * 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.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.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.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.designcenter.v1.SnapshotApplicationTemplateRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.SnapshotApplicationTemplateRequest other = + (com.google.cloud.designcenter.v1.SnapshotApplicationTemplateRequest) 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.designcenter.v1.SnapshotApplicationTemplateRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.SnapshotApplicationTemplateRequest 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.designcenter.v1.SnapshotApplicationTemplateRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.SnapshotApplicationTemplateRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.SnapshotApplicationTemplateRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.SnapshotApplicationTemplateRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.SnapshotApplicationTemplateRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.SnapshotApplicationTemplateRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.SnapshotApplicationTemplateRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.SnapshotApplicationTemplateRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.SnapshotApplicationTemplateRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.SnapshotApplicationTemplateRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.SnapshotApplicationTemplateRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for snapshotting an application template asynchronously.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.SnapshotApplicationTemplateRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.SnapshotApplicationTemplateRequest) + com.google.cloud.designcenter.v1.SnapshotApplicationTemplateRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_SnapshotApplicationTemplateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_SnapshotApplicationTemplateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.SnapshotApplicationTemplateRequest.class, + com.google.cloud.designcenter.v1.SnapshotApplicationTemplateRequest.Builder.class); + } + + // Construct using + // com.google.cloud.designcenter.v1.SnapshotApplicationTemplateRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.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.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_SnapshotApplicationTemplateRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.SnapshotApplicationTemplateRequest + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.SnapshotApplicationTemplateRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.SnapshotApplicationTemplateRequest build() { + com.google.cloud.designcenter.v1.SnapshotApplicationTemplateRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.SnapshotApplicationTemplateRequest buildPartial() { + com.google.cloud.designcenter.v1.SnapshotApplicationTemplateRequest result = + new com.google.cloud.designcenter.v1.SnapshotApplicationTemplateRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.SnapshotApplicationTemplateRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.SnapshotApplicationTemplateRequest) { + return mergeFrom( + (com.google.cloud.designcenter.v1.SnapshotApplicationTemplateRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.designcenter.v1.SnapshotApplicationTemplateRequest other) { + if (other + == com.google.cloud.designcenter.v1.SnapshotApplicationTemplateRequest + .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 application template.
+     * 
+ * + * + * 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 application template.
+     * 
+ * + * + * 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 application template.
+     * 
+ * + * + * 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 application template.
+     * 
+ * + * + * 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 application template.
+     * 
+ * + * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.SnapshotApplicationTemplateRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.SnapshotApplicationTemplateRequest) + private static final com.google.cloud.designcenter.v1.SnapshotApplicationTemplateRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.SnapshotApplicationTemplateRequest(); + } + + public static com.google.cloud.designcenter.v1.SnapshotApplicationTemplateRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SnapshotApplicationTemplateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.SnapshotApplicationTemplateRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SnapshotApplicationTemplateRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SnapshotApplicationTemplateRequestOrBuilder.java new file mode 100644 index 000000000000..8cd3d0721aac --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SnapshotApplicationTemplateRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface SnapshotApplicationTemplateRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.SnapshotApplicationTemplateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the application template.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The name of the application template.
+   * 
+ * + * + * 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-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SnapshotApplicationTemplateResponse.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SnapshotApplicationTemplateResponse.java new file mode 100644 index 000000000000..e0c7186c65bc --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SnapshotApplicationTemplateResponse.java @@ -0,0 +1,753 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Response message for snapshotting an application template asynchronously.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.SnapshotApplicationTemplateResponse} + */ +@com.google.protobuf.Generated +public final class SnapshotApplicationTemplateResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.SnapshotApplicationTemplateResponse) + SnapshotApplicationTemplateResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "SnapshotApplicationTemplateResponse"); + } + + // Use SnapshotApplicationTemplateResponse.newBuilder() to construct. + private SnapshotApplicationTemplateResponse( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SnapshotApplicationTemplateResponse() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_SnapshotApplicationTemplateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_SnapshotApplicationTemplateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.SnapshotApplicationTemplateResponse.class, + com.google.cloud.designcenter.v1.SnapshotApplicationTemplateResponse.Builder.class); + } + + private int bitField0_; + public static final int APPLICATION_TEMPLATE_REVISION_FIELD_NUMBER = 1; + private com.google.cloud.designcenter.v1.ApplicationTemplateRevision applicationTemplateRevision_; + + /** + * + * + *
+   * The created application template revision.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationTemplateRevision application_template_revision = 1; + * + * + * @return Whether the applicationTemplateRevision field is set. + */ + @java.lang.Override + public boolean hasApplicationTemplateRevision() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * The created application template revision.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationTemplateRevision application_template_revision = 1; + * + * + * @return The applicationTemplateRevision. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ApplicationTemplateRevision + getApplicationTemplateRevision() { + return applicationTemplateRevision_ == null + ? com.google.cloud.designcenter.v1.ApplicationTemplateRevision.getDefaultInstance() + : applicationTemplateRevision_; + } + + /** + * + * + *
+   * The created application template revision.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationTemplateRevision application_template_revision = 1; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ApplicationTemplateRevisionOrBuilder + getApplicationTemplateRevisionOrBuilder() { + return applicationTemplateRevision_ == null + ? com.google.cloud.designcenter.v1.ApplicationTemplateRevision.getDefaultInstance() + : applicationTemplateRevision_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getApplicationTemplateRevision()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, getApplicationTemplateRevision()); + } + 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.designcenter.v1.SnapshotApplicationTemplateResponse)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.SnapshotApplicationTemplateResponse other = + (com.google.cloud.designcenter.v1.SnapshotApplicationTemplateResponse) obj; + + if (hasApplicationTemplateRevision() != other.hasApplicationTemplateRevision()) return false; + if (hasApplicationTemplateRevision()) { + if (!getApplicationTemplateRevision().equals(other.getApplicationTemplateRevision())) + 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 (hasApplicationTemplateRevision()) { + hash = (37 * hash) + APPLICATION_TEMPLATE_REVISION_FIELD_NUMBER; + hash = (53 * hash) + getApplicationTemplateRevision().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.SnapshotApplicationTemplateResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.SnapshotApplicationTemplateResponse 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.designcenter.v1.SnapshotApplicationTemplateResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.SnapshotApplicationTemplateResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.SnapshotApplicationTemplateResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.SnapshotApplicationTemplateResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.SnapshotApplicationTemplateResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.SnapshotApplicationTemplateResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.SnapshotApplicationTemplateResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.SnapshotApplicationTemplateResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.SnapshotApplicationTemplateResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.SnapshotApplicationTemplateResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.SnapshotApplicationTemplateResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response message for snapshotting an application template asynchronously.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.SnapshotApplicationTemplateResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.SnapshotApplicationTemplateResponse) + com.google.cloud.designcenter.v1.SnapshotApplicationTemplateResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_SnapshotApplicationTemplateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_SnapshotApplicationTemplateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.SnapshotApplicationTemplateResponse.class, + com.google.cloud.designcenter.v1.SnapshotApplicationTemplateResponse.Builder.class); + } + + // Construct using + // com.google.cloud.designcenter.v1.SnapshotApplicationTemplateResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetApplicationTemplateRevisionFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + applicationTemplateRevision_ = null; + if (applicationTemplateRevisionBuilder_ != null) { + applicationTemplateRevisionBuilder_.dispose(); + applicationTemplateRevisionBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_SnapshotApplicationTemplateResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.SnapshotApplicationTemplateResponse + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.SnapshotApplicationTemplateResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.SnapshotApplicationTemplateResponse build() { + com.google.cloud.designcenter.v1.SnapshotApplicationTemplateResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.SnapshotApplicationTemplateResponse buildPartial() { + com.google.cloud.designcenter.v1.SnapshotApplicationTemplateResponse result = + new com.google.cloud.designcenter.v1.SnapshotApplicationTemplateResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.SnapshotApplicationTemplateResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.applicationTemplateRevision_ = + applicationTemplateRevisionBuilder_ == null + ? applicationTemplateRevision_ + : applicationTemplateRevisionBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.SnapshotApplicationTemplateResponse) { + return mergeFrom( + (com.google.cloud.designcenter.v1.SnapshotApplicationTemplateResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.designcenter.v1.SnapshotApplicationTemplateResponse other) { + if (other + == com.google.cloud.designcenter.v1.SnapshotApplicationTemplateResponse + .getDefaultInstance()) return this; + if (other.hasApplicationTemplateRevision()) { + mergeApplicationTemplateRevision(other.getApplicationTemplateRevision()); + } + 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( + internalGetApplicationTemplateRevisionFieldBuilder().getBuilder(), + extensionRegistry); + 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 com.google.cloud.designcenter.v1.ApplicationTemplateRevision + applicationTemplateRevision_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ApplicationTemplateRevision, + com.google.cloud.designcenter.v1.ApplicationTemplateRevision.Builder, + com.google.cloud.designcenter.v1.ApplicationTemplateRevisionOrBuilder> + applicationTemplateRevisionBuilder_; + + /** + * + * + *
+     * The created application template revision.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationTemplateRevision application_template_revision = 1; + * + * + * @return Whether the applicationTemplateRevision field is set. + */ + public boolean hasApplicationTemplateRevision() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * The created application template revision.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationTemplateRevision application_template_revision = 1; + * + * + * @return The applicationTemplateRevision. + */ + public com.google.cloud.designcenter.v1.ApplicationTemplateRevision + getApplicationTemplateRevision() { + if (applicationTemplateRevisionBuilder_ == null) { + return applicationTemplateRevision_ == null + ? com.google.cloud.designcenter.v1.ApplicationTemplateRevision.getDefaultInstance() + : applicationTemplateRevision_; + } else { + return applicationTemplateRevisionBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * The created application template revision.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationTemplateRevision application_template_revision = 1; + * + */ + public Builder setApplicationTemplateRevision( + com.google.cloud.designcenter.v1.ApplicationTemplateRevision value) { + if (applicationTemplateRevisionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + applicationTemplateRevision_ = value; + } else { + applicationTemplateRevisionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The created application template revision.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationTemplateRevision application_template_revision = 1; + * + */ + public Builder setApplicationTemplateRevision( + com.google.cloud.designcenter.v1.ApplicationTemplateRevision.Builder builderForValue) { + if (applicationTemplateRevisionBuilder_ == null) { + applicationTemplateRevision_ = builderForValue.build(); + } else { + applicationTemplateRevisionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The created application template revision.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationTemplateRevision application_template_revision = 1; + * + */ + public Builder mergeApplicationTemplateRevision( + com.google.cloud.designcenter.v1.ApplicationTemplateRevision value) { + if (applicationTemplateRevisionBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && applicationTemplateRevision_ != null + && applicationTemplateRevision_ + != com.google.cloud.designcenter.v1.ApplicationTemplateRevision + .getDefaultInstance()) { + getApplicationTemplateRevisionBuilder().mergeFrom(value); + } else { + applicationTemplateRevision_ = value; + } + } else { + applicationTemplateRevisionBuilder_.mergeFrom(value); + } + if (applicationTemplateRevision_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The created application template revision.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationTemplateRevision application_template_revision = 1; + * + */ + public Builder clearApplicationTemplateRevision() { + bitField0_ = (bitField0_ & ~0x00000001); + applicationTemplateRevision_ = null; + if (applicationTemplateRevisionBuilder_ != null) { + applicationTemplateRevisionBuilder_.dispose(); + applicationTemplateRevisionBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * The created application template revision.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationTemplateRevision application_template_revision = 1; + * + */ + public com.google.cloud.designcenter.v1.ApplicationTemplateRevision.Builder + getApplicationTemplateRevisionBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetApplicationTemplateRevisionFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * The created application template revision.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationTemplateRevision application_template_revision = 1; + * + */ + public com.google.cloud.designcenter.v1.ApplicationTemplateRevisionOrBuilder + getApplicationTemplateRevisionOrBuilder() { + if (applicationTemplateRevisionBuilder_ != null) { + return applicationTemplateRevisionBuilder_.getMessageOrBuilder(); + } else { + return applicationTemplateRevision_ == null + ? com.google.cloud.designcenter.v1.ApplicationTemplateRevision.getDefaultInstance() + : applicationTemplateRevision_; + } + } + + /** + * + * + *
+     * The created application template revision.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationTemplateRevision application_template_revision = 1; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ApplicationTemplateRevision, + com.google.cloud.designcenter.v1.ApplicationTemplateRevision.Builder, + com.google.cloud.designcenter.v1.ApplicationTemplateRevisionOrBuilder> + internalGetApplicationTemplateRevisionFieldBuilder() { + if (applicationTemplateRevisionBuilder_ == null) { + applicationTemplateRevisionBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ApplicationTemplateRevision, + com.google.cloud.designcenter.v1.ApplicationTemplateRevision.Builder, + com.google.cloud.designcenter.v1.ApplicationTemplateRevisionOrBuilder>( + getApplicationTemplateRevision(), getParentForChildren(), isClean()); + applicationTemplateRevision_ = null; + } + return applicationTemplateRevisionBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.SnapshotApplicationTemplateResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.SnapshotApplicationTemplateResponse) + private static final com.google.cloud.designcenter.v1.SnapshotApplicationTemplateResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.SnapshotApplicationTemplateResponse(); + } + + public static com.google.cloud.designcenter.v1.SnapshotApplicationTemplateResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SnapshotApplicationTemplateResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.SnapshotApplicationTemplateResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SnapshotApplicationTemplateResponseOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SnapshotApplicationTemplateResponseOrBuilder.java new file mode 100644 index 000000000000..84892ea75341 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SnapshotApplicationTemplateResponseOrBuilder.java @@ -0,0 +1,72 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface SnapshotApplicationTemplateResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.SnapshotApplicationTemplateResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The created application template revision.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationTemplateRevision application_template_revision = 1; + * + * + * @return Whether the applicationTemplateRevision field is set. + */ + boolean hasApplicationTemplateRevision(); + + /** + * + * + *
+   * The created application template revision.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationTemplateRevision application_template_revision = 1; + * + * + * @return The applicationTemplateRevision. + */ + com.google.cloud.designcenter.v1.ApplicationTemplateRevision getApplicationTemplateRevision(); + + /** + * + * + *
+   * The created application template revision.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationTemplateRevision application_template_revision = 1; + * + */ + com.google.cloud.designcenter.v1.ApplicationTemplateRevisionOrBuilder + getApplicationTemplateRevisionOrBuilder(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/Space.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/Space.java new file mode 100644 index 000000000000..326e063fdc6e --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/Space.java @@ -0,0 +1,2427 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/catalog_management.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Space is a top level resource for managing teams building applications
+ * through Application Design Center.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.Space} + */ +@com.google.protobuf.Generated +public final class Space extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.Space) + SpaceOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "Space"); + } + + // Use Space.newBuilder() to construct. + private Space(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Space() { + name_ = ""; + displayName_ = ""; + description_ = ""; + gcsBucket_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.CatalogManagementResourcesProto + .internal_static_google_cloud_designcenter_v1_Space_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 8: + return internalGetTags(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.CatalogManagementResourcesProto + .internal_static_google_cloud_designcenter_v1_Space_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.Space.class, + com.google.cloud.designcenter.v1.Space.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Identifier. The space name.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + + /** + * + * + *
+   * Identifier. The space name.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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_ = ""; + + /** + * + * + *
+   * Optional. Display name for the space.
+   * 
+ * + * string display_name = 2 [(.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 for the space.
+   * 
+ * + * string display_name = 2 [(.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 DESCRIPTION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
+   * Optional. Description for the space.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Description for the space.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+   * Output only. Space creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. Space creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.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. Space creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.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 = 5; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
+   * Output only. Space update timestamp
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. Space update timestamp
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.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. Space update timestamp
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.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 ENABLE_GCP_SHARED_TEMPLATES_FIELD_NUMBER = 6; + private boolean enableGcpSharedTemplates_ = false; + + /** + * + * + *
+   * Optional. Flag to enable Google opinionated shared templates.
+   * 
+ * + * optional bool enable_gcp_shared_templates = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the enableGcpSharedTemplates field is set. + */ + @java.lang.Override + public boolean hasEnableGcpSharedTemplates() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Optional. Flag to enable Google opinionated shared templates.
+   * 
+ * + * optional bool enable_gcp_shared_templates = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enableGcpSharedTemplates. + */ + @java.lang.Override + public boolean getEnableGcpSharedTemplates() { + return enableGcpSharedTemplates_; + } + + public static final int GCS_BUCKET_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object gcsBucket_ = ""; + + /** + * + * + *
+   * Optional. An existing Google Cloud Storage bucket that you want to use
+   * instead of creating a new bucket during Application Design Center setup. If
+   * not provided, a default bucket is created during setup. The bucket must
+   * exist in the same project as the space. If the bucket name does not exist
+   * in the same project as the space, the request fails with an
+   * INVALID_ARGUMENT error. If you do not have access to the bucket, the
+   * request fails with a PERMISSION_DENIED error. Format: {$bucket_name} For
+   * example, if the Cloud Storage bucket URI is gs:\/\/{$bucket_name}, the
+   * format is {$bucket_name}.
+   * 
+ * + * string gcs_bucket = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The gcsBucket. + */ + @java.lang.Override + public java.lang.String getGcsBucket() { + java.lang.Object ref = gcsBucket_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gcsBucket_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. An existing Google Cloud Storage bucket that you want to use
+   * instead of creating a new bucket during Application Design Center setup. If
+   * not provided, a default bucket is created during setup. The bucket must
+   * exist in the same project as the space. If the bucket name does not exist
+   * in the same project as the space, the request fails with an
+   * INVALID_ARGUMENT error. If you do not have access to the bucket, the
+   * request fails with a PERMISSION_DENIED error. Format: {$bucket_name} For
+   * example, if the Cloud Storage bucket URI is gs:\/\/{$bucket_name}, the
+   * format is {$bucket_name}.
+   * 
+ * + * string gcs_bucket = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for gcsBucket. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGcsBucketBytes() { + java.lang.Object ref = gcsBucket_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gcsBucket_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TAGS_FIELD_NUMBER = 8; + + private static final class TagsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.designcenter.v1.CatalogManagementResourcesProto + .internal_static_google_cloud_designcenter_v1_Space_TagsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField tags_; + + private com.google.protobuf.MapField internalGetTags() { + if (tags_ == null) { + return com.google.protobuf.MapField.emptyMapField(TagsDefaultEntryHolder.defaultEntry); + } + return tags_; + } + + public int getTagsCount() { + return internalGetTags().getMap().size(); + } + + /** + * + * + *
+   * Optional. Input only. Immutable. Tags are key/values bound to space
+   * resource. Example:
+   * ```
+   * "123/environment": "production"
+   * "123/costCenter": "marketing"
+   * ```
+   *
+   * For more information on tag creation and management, see
+   * https://cloud.google.com/resource-manager/docs/tags/tags-overview.
+   * 
+ * + * + * map<string, string> tags = 8 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsTags(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetTags().getMap().containsKey(key); + } + + /** Use {@link #getTagsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getTags() { + return getTagsMap(); + } + + /** + * + * + *
+   * Optional. Input only. Immutable. Tags are key/values bound to space
+   * resource. Example:
+   * ```
+   * "123/environment": "production"
+   * "123/costCenter": "marketing"
+   * ```
+   *
+   * For more information on tag creation and management, see
+   * https://cloud.google.com/resource-manager/docs/tags/tags-overview.
+   * 
+ * + * + * map<string, string> tags = 8 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getTagsMap() { + return internalGetTags().getMap(); + } + + /** + * + * + *
+   * Optional. Input only. Immutable. Tags are key/values bound to space
+   * resource. Example:
+   * ```
+   * "123/environment": "production"
+   * "123/costCenter": "marketing"
+   * ```
+   *
+   * For more information on tag creation and management, see
+   * https://cloud.google.com/resource-manager/docs/tags/tags-overview.
+   * 
+ * + * + * map<string, string> tags = 8 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getTagsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetTags().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+   * Optional. Input only. Immutable. Tags are key/values bound to space
+   * resource. Example:
+   * ```
+   * "123/environment": "production"
+   * "123/costCenter": "marketing"
+   * ```
+   *
+   * For more information on tag creation and management, see
+   * https://cloud.google.com/resource-manager/docs/tags/tags-overview.
+   * 
+ * + * + * map<string, string> tags = 8 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getTagsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetTags().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, description_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getUpdateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeBool(6, enableGcpSharedTemplates_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gcsBucket_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, gcsBucket_); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetTags(), TagsDefaultEntryHolder.defaultEntry, 8); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, description_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, enableGcpSharedTemplates_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gcsBucket_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, gcsBucket_); + } + for (java.util.Map.Entry entry : + internalGetTags().getMap().entrySet()) { + com.google.protobuf.MapEntry tags__ = + TagsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, tags__); + } + 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.designcenter.v1.Space)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.Space other = (com.google.cloud.designcenter.v1.Space) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) 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 (hasEnableGcpSharedTemplates() != other.hasEnableGcpSharedTemplates()) return false; + if (hasEnableGcpSharedTemplates()) { + if (getEnableGcpSharedTemplates() != other.getEnableGcpSharedTemplates()) return false; + } + if (!getGcsBucket().equals(other.getGcsBucket())) return false; + if (!internalGetTags().equals(other.internalGetTags())) 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(); + 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 (hasEnableGcpSharedTemplates()) { + hash = (37 * hash) + ENABLE_GCP_SHARED_TEMPLATES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableGcpSharedTemplates()); + } + hash = (37 * hash) + GCS_BUCKET_FIELD_NUMBER; + hash = (53 * hash) + getGcsBucket().hashCode(); + if (!internalGetTags().getMap().isEmpty()) { + hash = (37 * hash) + TAGS_FIELD_NUMBER; + hash = (53 * hash) + internalGetTags().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.Space parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.Space 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.designcenter.v1.Space parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.Space parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.Space parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.Space parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.Space parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.Space parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.Space parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.Space parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.Space parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.Space parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.Space 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Space is a top level resource for managing teams building applications
+   * through Application Design Center.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.Space} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.Space) + com.google.cloud.designcenter.v1.SpaceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.CatalogManagementResourcesProto + .internal_static_google_cloud_designcenter_v1_Space_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 8: + return internalGetTags(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 8: + return internalGetMutableTags(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.CatalogManagementResourcesProto + .internal_static_google_cloud_designcenter_v1_Space_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.Space.class, + com.google.cloud.designcenter.v1.Space.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.Space.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + description_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + enableGcpSharedTemplates_ = false; + gcsBucket_ = ""; + internalGetMutableTags().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.CatalogManagementResourcesProto + .internal_static_google_cloud_designcenter_v1_Space_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.Space getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.Space.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.Space build() { + com.google.cloud.designcenter.v1.Space result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.Space buildPartial() { + com.google.cloud.designcenter.v1.Space result = + new com.google.cloud.designcenter.v1.Space(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.Space 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_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.enableGcpSharedTemplates_ = enableGcpSharedTemplates_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.gcsBucket_ = gcsBucket_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.tags_ = internalGetTags(); + result.tags_.makeImmutable(); + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.Space) { + return mergeFrom((com.google.cloud.designcenter.v1.Space) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.Space other) { + if (other == com.google.cloud.designcenter.v1.Space.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.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.hasEnableGcpSharedTemplates()) { + setEnableGcpSharedTemplates(other.getEnableGcpSharedTemplates()); + } + if (!other.getGcsBucket().isEmpty()) { + gcsBucket_ = other.gcsBucket_; + bitField0_ |= 0x00000040; + onChanged(); + } + internalGetMutableTags().mergeFrom(other.internalGetTags()); + bitField0_ |= 0x00000080; + 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 34: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + enableGcpSharedTemplates_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: + { + gcsBucket_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + com.google.protobuf.MapEntry tags__ = + input.readMessage( + TagsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableTags().getMutableMap().put(tags__.getKey(), tags__.getValue()); + 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_ = ""; + + /** + * + * + *
+     * Identifier. The space name.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.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; + } + } + + /** + * + * + *
+     * Identifier. The space name.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + + /** + * + * + *
+     * Identifier. The space name.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + + /** + * + * + *
+     * Identifier. The space name.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier. The space name.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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_ = ""; + + /** + * + * + *
+     * Optional. Display name for the space.
+     * 
+ * + * string display_name = 2 [(.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 for the space.
+     * 
+ * + * string display_name = 2 [(.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 for the space.
+     * 
+ * + * string display_name = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Display name for the space.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Display name for the space.
+     * 
+ * + * string display_name = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
+     * Optional. Description for the space.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Description for the space.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Description for the space.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Description for the space.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Description for the space.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
+     * Output only. Space creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Output only. Space creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.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. Space creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Space creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Space creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Space creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000008); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Space creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Space creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.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. Space creation timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + 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.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
+     * Output only. Space update timestamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Output only. Space update timestamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.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. Space update timestamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.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_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Space update timestamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.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_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Space update timestamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Space update timestamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000010); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Space update timestamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Space update timestamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.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. Space update timestamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private boolean enableGcpSharedTemplates_; + + /** + * + * + *
+     * Optional. Flag to enable Google opinionated shared templates.
+     * 
+ * + * + * optional bool enable_gcp_shared_templates = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the enableGcpSharedTemplates field is set. + */ + @java.lang.Override + public boolean hasEnableGcpSharedTemplates() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+     * Optional. Flag to enable Google opinionated shared templates.
+     * 
+ * + * + * optional bool enable_gcp_shared_templates = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enableGcpSharedTemplates. + */ + @java.lang.Override + public boolean getEnableGcpSharedTemplates() { + return enableGcpSharedTemplates_; + } + + /** + * + * + *
+     * Optional. Flag to enable Google opinionated shared templates.
+     * 
+ * + * + * optional bool enable_gcp_shared_templates = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enableGcpSharedTemplates to set. + * @return This builder for chaining. + */ + public Builder setEnableGcpSharedTemplates(boolean value) { + + enableGcpSharedTemplates_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Flag to enable Google opinionated shared templates.
+     * 
+ * + * + * optional bool enable_gcp_shared_templates = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearEnableGcpSharedTemplates() { + bitField0_ = (bitField0_ & ~0x00000020); + enableGcpSharedTemplates_ = false; + onChanged(); + return this; + } + + private java.lang.Object gcsBucket_ = ""; + + /** + * + * + *
+     * Optional. An existing Google Cloud Storage bucket that you want to use
+     * instead of creating a new bucket during Application Design Center setup. If
+     * not provided, a default bucket is created during setup. The bucket must
+     * exist in the same project as the space. If the bucket name does not exist
+     * in the same project as the space, the request fails with an
+     * INVALID_ARGUMENT error. If you do not have access to the bucket, the
+     * request fails with a PERMISSION_DENIED error. Format: {$bucket_name} For
+     * example, if the Cloud Storage bucket URI is gs:\/\/{$bucket_name}, the
+     * format is {$bucket_name}.
+     * 
+ * + * string gcs_bucket = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The gcsBucket. + */ + public java.lang.String getGcsBucket() { + java.lang.Object ref = gcsBucket_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gcsBucket_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. An existing Google Cloud Storage bucket that you want to use
+     * instead of creating a new bucket during Application Design Center setup. If
+     * not provided, a default bucket is created during setup. The bucket must
+     * exist in the same project as the space. If the bucket name does not exist
+     * in the same project as the space, the request fails with an
+     * INVALID_ARGUMENT error. If you do not have access to the bucket, the
+     * request fails with a PERMISSION_DENIED error. Format: {$bucket_name} For
+     * example, if the Cloud Storage bucket URI is gs:\/\/{$bucket_name}, the
+     * format is {$bucket_name}.
+     * 
+ * + * string gcs_bucket = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for gcsBucket. + */ + public com.google.protobuf.ByteString getGcsBucketBytes() { + java.lang.Object ref = gcsBucket_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gcsBucket_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. An existing Google Cloud Storage bucket that you want to use
+     * instead of creating a new bucket during Application Design Center setup. If
+     * not provided, a default bucket is created during setup. The bucket must
+     * exist in the same project as the space. If the bucket name does not exist
+     * in the same project as the space, the request fails with an
+     * INVALID_ARGUMENT error. If you do not have access to the bucket, the
+     * request fails with a PERMISSION_DENIED error. Format: {$bucket_name} For
+     * example, if the Cloud Storage bucket URI is gs:\/\/{$bucket_name}, the
+     * format is {$bucket_name}.
+     * 
+ * + * string gcs_bucket = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The gcsBucket to set. + * @return This builder for chaining. + */ + public Builder setGcsBucket(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + gcsBucket_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An existing Google Cloud Storage bucket that you want to use
+     * instead of creating a new bucket during Application Design Center setup. If
+     * not provided, a default bucket is created during setup. The bucket must
+     * exist in the same project as the space. If the bucket name does not exist
+     * in the same project as the space, the request fails with an
+     * INVALID_ARGUMENT error. If you do not have access to the bucket, the
+     * request fails with a PERMISSION_DENIED error. Format: {$bucket_name} For
+     * example, if the Cloud Storage bucket URI is gs:\/\/{$bucket_name}, the
+     * format is {$bucket_name}.
+     * 
+ * + * string gcs_bucket = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearGcsBucket() { + gcsBucket_ = getDefaultInstance().getGcsBucket(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An existing Google Cloud Storage bucket that you want to use
+     * instead of creating a new bucket during Application Design Center setup. If
+     * not provided, a default bucket is created during setup. The bucket must
+     * exist in the same project as the space. If the bucket name does not exist
+     * in the same project as the space, the request fails with an
+     * INVALID_ARGUMENT error. If you do not have access to the bucket, the
+     * request fails with a PERMISSION_DENIED error. Format: {$bucket_name} For
+     * example, if the Cloud Storage bucket URI is gs:\/\/{$bucket_name}, the
+     * format is {$bucket_name}.
+     * 
+ * + * string gcs_bucket = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for gcsBucket to set. + * @return This builder for chaining. + */ + public Builder setGcsBucketBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gcsBucket_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private com.google.protobuf.MapField tags_; + + private com.google.protobuf.MapField internalGetTags() { + if (tags_ == null) { + return com.google.protobuf.MapField.emptyMapField(TagsDefaultEntryHolder.defaultEntry); + } + return tags_; + } + + private com.google.protobuf.MapField + internalGetMutableTags() { + if (tags_ == null) { + tags_ = com.google.protobuf.MapField.newMapField(TagsDefaultEntryHolder.defaultEntry); + } + if (!tags_.isMutable()) { + tags_ = tags_.copy(); + } + bitField0_ |= 0x00000080; + onChanged(); + return tags_; + } + + public int getTagsCount() { + return internalGetTags().getMap().size(); + } + + /** + * + * + *
+     * Optional. Input only. Immutable. Tags are key/values bound to space
+     * resource. Example:
+     * ```
+     * "123/environment": "production"
+     * "123/costCenter": "marketing"
+     * ```
+     *
+     * For more information on tag creation and management, see
+     * https://cloud.google.com/resource-manager/docs/tags/tags-overview.
+     * 
+ * + * + * map<string, string> tags = 8 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsTags(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetTags().getMap().containsKey(key); + } + + /** Use {@link #getTagsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getTags() { + return getTagsMap(); + } + + /** + * + * + *
+     * Optional. Input only. Immutable. Tags are key/values bound to space
+     * resource. Example:
+     * ```
+     * "123/environment": "production"
+     * "123/costCenter": "marketing"
+     * ```
+     *
+     * For more information on tag creation and management, see
+     * https://cloud.google.com/resource-manager/docs/tags/tags-overview.
+     * 
+ * + * + * map<string, string> tags = 8 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getTagsMap() { + return internalGetTags().getMap(); + } + + /** + * + * + *
+     * Optional. Input only. Immutable. Tags are key/values bound to space
+     * resource. Example:
+     * ```
+     * "123/environment": "production"
+     * "123/costCenter": "marketing"
+     * ```
+     *
+     * For more information on tag creation and management, see
+     * https://cloud.google.com/resource-manager/docs/tags/tags-overview.
+     * 
+ * + * + * map<string, string> tags = 8 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getTagsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetTags().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+     * Optional. Input only. Immutable. Tags are key/values bound to space
+     * resource. Example:
+     * ```
+     * "123/environment": "production"
+     * "123/costCenter": "marketing"
+     * ```
+     *
+     * For more information on tag creation and management, see
+     * https://cloud.google.com/resource-manager/docs/tags/tags-overview.
+     * 
+ * + * + * map<string, string> tags = 8 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getTagsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetTags().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearTags() { + bitField0_ = (bitField0_ & ~0x00000080); + internalGetMutableTags().getMutableMap().clear(); + return this; + } + + /** + * + * + *
+     * Optional. Input only. Immutable. Tags are key/values bound to space
+     * resource. Example:
+     * ```
+     * "123/environment": "production"
+     * "123/costCenter": "marketing"
+     * ```
+     *
+     * For more information on tag creation and management, see
+     * https://cloud.google.com/resource-manager/docs/tags/tags-overview.
+     * 
+ * + * + * map<string, string> tags = 8 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeTags(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableTags().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableTags() { + bitField0_ |= 0x00000080; + return internalGetMutableTags().getMutableMap(); + } + + /** + * + * + *
+     * Optional. Input only. Immutable. Tags are key/values bound to space
+     * resource. Example:
+     * ```
+     * "123/environment": "production"
+     * "123/costCenter": "marketing"
+     * ```
+     *
+     * For more information on tag creation and management, see
+     * https://cloud.google.com/resource-manager/docs/tags/tags-overview.
+     * 
+ * + * + * map<string, string> tags = 8 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putTags(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableTags().getMutableMap().put(key, value); + bitField0_ |= 0x00000080; + return this; + } + + /** + * + * + *
+     * Optional. Input only. Immutable. Tags are key/values bound to space
+     * resource. Example:
+     * ```
+     * "123/environment": "production"
+     * "123/costCenter": "marketing"
+     * ```
+     *
+     * For more information on tag creation and management, see
+     * https://cloud.google.com/resource-manager/docs/tags/tags-overview.
+     * 
+ * + * + * map<string, string> tags = 8 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllTags(java.util.Map values) { + internalGetMutableTags().getMutableMap().putAll(values); + bitField0_ |= 0x00000080; + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.Space) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.Space) + private static final com.google.cloud.designcenter.v1.Space DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.Space(); + } + + public static com.google.cloud.designcenter.v1.Space getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Space parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.Space getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SpaceName.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SpaceName.java new file mode 100644 index 000000000000..0885394ee452 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SpaceName.java @@ -0,0 +1,226 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.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; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked +@Generated("by gapic-generator-java") +public class SpaceName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_SPACE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/spaces/{space}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String space; + + @Deprecated + protected SpaceName() { + project = null; + location = null; + space = null; + } + + private SpaceName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + space = Preconditions.checkNotNull(builder.getSpace()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getSpace() { + return space; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static SpaceName of(String project, String location, String space) { + return newBuilder().setProject(project).setLocation(location).setSpace(space).build(); + } + + public static String format(String project, String location, String space) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setSpace(space) + .build() + .toString(); + } + + public static @Nullable SpaceName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_SPACE.validatedMatch( + formattedString, "SpaceName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("space")); + } + + 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<@Nullable SpaceName> values) { + List list = new ArrayList<>(values.size()); + for (SpaceName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_SPACE.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 (space != null) { + fieldMapBuilder.put("space", space); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_SPACE.instantiate( + "project", project, "location", location, "space", space); + } + + @Override + public boolean equals(@Nullable Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + SpaceName that = ((SpaceName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.space, that.space); + } + 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(space); + return h; + } + + /** Builder for projects/{project}/locations/{location}/spaces/{space}. */ + public static class Builder { + private String project; + private String location; + private String space; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getSpace() { + return space; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setSpace(String space) { + this.space = space; + return this; + } + + private Builder(SpaceName spaceName) { + this.project = spaceName.project; + this.location = spaceName.location; + this.space = spaceName.space; + } + + public SpaceName build() { + return new SpaceName(this); + } + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SpaceOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SpaceOrBuilder.java new file mode 100644 index 000000000000..6018c0875eab --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SpaceOrBuilder.java @@ -0,0 +1,369 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/catalog_management.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface SpaceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.Space) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier. The space name.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Identifier. The space name.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. Display name for the space.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
+   * Optional. Display name for the space.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Optional. Description for the space.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
+   * Optional. Description for the space.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Output only. Space creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
+   * Output only. Space creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
+   * Output only. Space creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Space update timestamp
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
+   * Output only. Space update timestamp
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
+   * Output only. Space update timestamp
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Optional. Flag to enable Google opinionated shared templates.
+   * 
+ * + * optional bool enable_gcp_shared_templates = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the enableGcpSharedTemplates field is set. + */ + boolean hasEnableGcpSharedTemplates(); + + /** + * + * + *
+   * Optional. Flag to enable Google opinionated shared templates.
+   * 
+ * + * optional bool enable_gcp_shared_templates = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enableGcpSharedTemplates. + */ + boolean getEnableGcpSharedTemplates(); + + /** + * + * + *
+   * Optional. An existing Google Cloud Storage bucket that you want to use
+   * instead of creating a new bucket during Application Design Center setup. If
+   * not provided, a default bucket is created during setup. The bucket must
+   * exist in the same project as the space. If the bucket name does not exist
+   * in the same project as the space, the request fails with an
+   * INVALID_ARGUMENT error. If you do not have access to the bucket, the
+   * request fails with a PERMISSION_DENIED error. Format: {$bucket_name} For
+   * example, if the Cloud Storage bucket URI is gs:\/\/{$bucket_name}, the
+   * format is {$bucket_name}.
+   * 
+ * + * string gcs_bucket = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The gcsBucket. + */ + java.lang.String getGcsBucket(); + + /** + * + * + *
+   * Optional. An existing Google Cloud Storage bucket that you want to use
+   * instead of creating a new bucket during Application Design Center setup. If
+   * not provided, a default bucket is created during setup. The bucket must
+   * exist in the same project as the space. If the bucket name does not exist
+   * in the same project as the space, the request fails with an
+   * INVALID_ARGUMENT error. If you do not have access to the bucket, the
+   * request fails with a PERMISSION_DENIED error. Format: {$bucket_name} For
+   * example, if the Cloud Storage bucket URI is gs:\/\/{$bucket_name}, the
+   * format is {$bucket_name}.
+   * 
+ * + * string gcs_bucket = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for gcsBucket. + */ + com.google.protobuf.ByteString getGcsBucketBytes(); + + /** + * + * + *
+   * Optional. Input only. Immutable. Tags are key/values bound to space
+   * resource. Example:
+   * ```
+   * "123/environment": "production"
+   * "123/costCenter": "marketing"
+   * ```
+   *
+   * For more information on tag creation and management, see
+   * https://cloud.google.com/resource-manager/docs/tags/tags-overview.
+   * 
+ * + * + * map<string, string> tags = 8 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + int getTagsCount(); + + /** + * + * + *
+   * Optional. Input only. Immutable. Tags are key/values bound to space
+   * resource. Example:
+   * ```
+   * "123/environment": "production"
+   * "123/costCenter": "marketing"
+   * ```
+   *
+   * For more information on tag creation and management, see
+   * https://cloud.google.com/resource-manager/docs/tags/tags-overview.
+   * 
+ * + * + * map<string, string> tags = 8 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsTags(java.lang.String key); + + /** Use {@link #getTagsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getTags(); + + /** + * + * + *
+   * Optional. Input only. Immutable. Tags are key/values bound to space
+   * resource. Example:
+   * ```
+   * "123/environment": "production"
+   * "123/costCenter": "marketing"
+   * ```
+   *
+   * For more information on tag creation and management, see
+   * https://cloud.google.com/resource-manager/docs/tags/tags-overview.
+   * 
+ * + * + * map<string, string> tags = 8 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getTagsMap(); + + /** + * + * + *
+   * Optional. Input only. Immutable. Tags are key/values bound to space
+   * resource. Example:
+   * ```
+   * "123/environment": "production"
+   * "123/costCenter": "marketing"
+   * ```
+   *
+   * For more information on tag creation and management, see
+   * https://cloud.google.com/resource-manager/docs/tags/tags-overview.
+   * 
+ * + * + * map<string, string> tags = 8 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + java.lang.String getTagsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
+   * Optional. Input only. Immutable. Tags are key/values bound to space
+   * resource. Example:
+   * ```
+   * "123/environment": "production"
+   * "123/costCenter": "marketing"
+   * ```
+   *
+   * For more information on tag creation and management, see
+   * https://cloud.google.com/resource-manager/docs/tags/tags-overview.
+   * 
+ * + * + * map<string, string> tags = 8 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getTagsOrThrow(java.lang.String key); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SyncShareRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SyncShareRequest.java new file mode 100644 index 000000000000..e23c82405c35 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SyncShareRequest.java @@ -0,0 +1,617 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/sharing_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for syncing a share of a catalog.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.SyncShareRequest} + */ +@com.google.protobuf.Generated +public final class SyncShareRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.SyncShareRequest) + SyncShareRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "SyncShareRequest"); + } + + // Use SyncShareRequest.newBuilder() to construct. + private SyncShareRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SyncShareRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_SyncShareRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_SyncShareRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.SyncShareRequest.class, + com.google.cloud.designcenter.v1.SyncShareRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The share name in the following format:
+   * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/shares/$share`
+   * 
+ * + * + * 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 share name in the following format:
+   * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/shares/$share`
+   * 
+ * + * + * 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.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.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.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.designcenter.v1.SyncShareRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.SyncShareRequest other = + (com.google.cloud.designcenter.v1.SyncShareRequest) 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.designcenter.v1.SyncShareRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.SyncShareRequest 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.designcenter.v1.SyncShareRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.SyncShareRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.SyncShareRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.SyncShareRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.SyncShareRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.SyncShareRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.SyncShareRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.SyncShareRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.SyncShareRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.SyncShareRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.SyncShareRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for syncing a share of a catalog.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.SyncShareRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.SyncShareRequest) + com.google.cloud.designcenter.v1.SyncShareRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_SyncShareRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_SyncShareRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.SyncShareRequest.class, + com.google.cloud.designcenter.v1.SyncShareRequest.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.SyncShareRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.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.designcenter.v1.SharingProto + .internal_static_google_cloud_designcenter_v1_SyncShareRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.SyncShareRequest getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.SyncShareRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.SyncShareRequest build() { + com.google.cloud.designcenter.v1.SyncShareRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.SyncShareRequest buildPartial() { + com.google.cloud.designcenter.v1.SyncShareRequest result = + new com.google.cloud.designcenter.v1.SyncShareRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.SyncShareRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.SyncShareRequest) { + return mergeFrom((com.google.cloud.designcenter.v1.SyncShareRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.SyncShareRequest other) { + if (other == com.google.cloud.designcenter.v1.SyncShareRequest.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 share name in the following format:
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/shares/$share`
+     * 
+ * + * + * 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 share name in the following format:
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/shares/$share`
+     * 
+ * + * + * 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 share name in the following format:
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/shares/$share`
+     * 
+ * + * + * 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 share name in the following format:
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/shares/$share`
+     * 
+ * + * + * 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 share name in the following format:
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/shares/$share`
+     * 
+ * + * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.SyncShareRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.SyncShareRequest) + private static final com.google.cloud.designcenter.v1.SyncShareRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.SyncShareRequest(); + } + + public static com.google.cloud.designcenter.v1.SyncShareRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SyncShareRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.SyncShareRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SyncShareRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SyncShareRequestOrBuilder.java new file mode 100644 index 000000000000..fee8a7a7723d --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/SyncShareRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/sharing_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface SyncShareRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.SyncShareRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The share name in the following format:
+   * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/shares/$share`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The share name in the following format:
+   * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/shares/$share`
+   * 
+ * + * + * 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-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TFBlueprintMetadata.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TFBlueprintMetadata.java new file mode 100644 index 000000000000..7a375894c697 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TFBlueprintMetadata.java @@ -0,0 +1,4132 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Terraform input and output metadata.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.TFBlueprintMetadata} + */ +@com.google.protobuf.Generated +public final class TFBlueprintMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.TFBlueprintMetadata) + TFBlueprintMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "TFBlueprintMetadata"); + } + + // Use TFBlueprintMetadata.newBuilder() to construct. + private TFBlueprintMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private TFBlueprintMetadata() { + terraformInput_ = java.util.Collections.emptyList(); + terraformOutput_ = java.util.Collections.emptyList(); + apis_ = com.google.protobuf.LazyStringArrayList.emptyList(); + roles_ = com.google.protobuf.LazyStringArrayList.emptyList(); + iconUri_ = ""; + connections_ = java.util.Collections.emptyList(); + providerVersions_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TFBlueprintMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TFBlueprintMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.TFBlueprintMetadata.class, + com.google.cloud.designcenter.v1.TFBlueprintMetadata.Builder.class); + } + + private int bitField0_; + public static final int TERRAFORM_INPUT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List terraformInput_; + + /** + * + * + *
+   * Output only. Terraform inputs.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInput terraform_input = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getTerraformInputList() { + return terraformInput_; + } + + /** + * + * + *
+   * Output only. Terraform inputs.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInput terraform_input = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getTerraformInputOrBuilderList() { + return terraformInput_; + } + + /** + * + * + *
+   * Output only. Terraform inputs.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInput terraform_input = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getTerraformInputCount() { + return terraformInput_.size(); + } + + /** + * + * + *
+   * Output only. Terraform inputs.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInput terraform_input = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformInput getTerraformInput(int index) { + return terraformInput_.get(index); + } + + /** + * + * + *
+   * Output only. Terraform inputs.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInput terraform_input = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformInputOrBuilder getTerraformInputOrBuilder( + int index) { + return terraformInput_.get(index); + } + + public static final int TERRAFORM_OUTPUT_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List terraformOutput_; + + /** + * + * + *
+   * Output only. Terraform outputs.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformOutput terraform_output = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getTerraformOutputList() { + return terraformOutput_; + } + + /** + * + * + *
+   * Output only. Terraform outputs.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformOutput terraform_output = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getTerraformOutputOrBuilderList() { + return terraformOutput_; + } + + /** + * + * + *
+   * Output only. Terraform outputs.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformOutput terraform_output = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getTerraformOutputCount() { + return terraformOutput_.size(); + } + + /** + * + * + *
+   * Output only. Terraform outputs.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformOutput terraform_output = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformOutput getTerraformOutput(int index) { + return terraformOutput_.get(index); + } + + /** + * + * + *
+   * Output only. Terraform outputs.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformOutput terraform_output = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformOutputOrBuilder getTerraformOutputOrBuilder( + int index) { + return terraformOutput_.get(index); + } + + public static final int APIS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList apis_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Output only. APIs that must be enabled to deploy the template, in the form
+   * of "compute.googleapis.com".
+   * 
+ * + * repeated string apis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the apis. + */ + public com.google.protobuf.ProtocolStringList getApisList() { + return apis_; + } + + /** + * + * + *
+   * Output only. APIs that must be enabled to deploy the template, in the form
+   * of "compute.googleapis.com".
+   * 
+ * + * repeated string apis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of apis. + */ + public int getApisCount() { + return apis_.size(); + } + + /** + * + * + *
+   * Output only. APIs that must be enabled to deploy the template, in the form
+   * of "compute.googleapis.com".
+   * 
+ * + * repeated string apis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The apis at the given index. + */ + public java.lang.String getApis(int index) { + return apis_.get(index); + } + + /** + * + * + *
+   * Output only. APIs that must be enabled to deploy the template, in the form
+   * of "compute.googleapis.com".
+   * 
+ * + * repeated string apis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the apis at the given index. + */ + public com.google.protobuf.ByteString getApisBytes(int index) { + return apis_.getByteString(index); + } + + public static final int ROLES_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList roles_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Output only. IAM roles required by the service account deploying the
+   * template, in the form of "roles/compute.admin".
+   * 
+ * + * repeated string roles = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the roles. + */ + public com.google.protobuf.ProtocolStringList getRolesList() { + return roles_; + } + + /** + * + * + *
+   * Output only. IAM roles required by the service account deploying the
+   * template, in the form of "roles/compute.admin".
+   * 
+ * + * repeated string roles = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of roles. + */ + public int getRolesCount() { + return roles_.size(); + } + + /** + * + * + *
+   * Output only. IAM roles required by the service account deploying the
+   * template, in the form of "roles/compute.admin".
+   * 
+ * + * repeated string roles = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The roles at the given index. + */ + public java.lang.String getRoles(int index) { + return roles_.get(index); + } + + /** + * + * + *
+   * Output only. IAM roles required by the service account deploying the
+   * template, in the form of "roles/compute.admin".
+   * 
+ * + * repeated string roles = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the roles at the given index. + */ + public com.google.protobuf.ByteString getRolesBytes(int index) { + return roles_.getByteString(index); + } + + public static final int DEPLOYMENT_DURATION_FIELD_NUMBER = 6; + private com.google.protobuf.Duration deploymentDuration_; + + /** + * + * + *
+   * Optional. The time estimate for deploying the blueprint.
+   * 
+ * + * + * .google.protobuf.Duration deployment_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the deploymentDuration field is set. + */ + @java.lang.Override + public boolean hasDeploymentDuration() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. The time estimate for deploying the blueprint.
+   * 
+ * + * + * .google.protobuf.Duration deployment_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The deploymentDuration. + */ + @java.lang.Override + public com.google.protobuf.Duration getDeploymentDuration() { + return deploymentDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : deploymentDuration_; + } + + /** + * + * + *
+   * Optional. The time estimate for deploying the blueprint.
+   * 
+ * + * + * .google.protobuf.Duration deployment_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getDeploymentDurationOrBuilder() { + return deploymentDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : deploymentDuration_; + } + + public static final int ICON_URI_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object iconUri_ = ""; + + /** + * + * + *
+   * Output only. The icon URI for the blueprint.
+   * 
+ * + * string icon_uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The iconUri. + */ + @java.lang.Override + public java.lang.String getIconUri() { + java.lang.Object ref = iconUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + iconUri_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The icon URI for the blueprint.
+   * 
+ * + * string icon_uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for iconUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIconUriBytes() { + java.lang.Object ref = iconUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + iconUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONNECTIONS_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private java.util.List connections_; + + /** + * + * + *
+   * Output only. Union of all the Terraform input connections.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getConnectionsList() { + return connections_; + } + + /** + * + * + *
+   * Output only. Union of all the Terraform input connections.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.designcenter.v1.TerraformInputConnectionsOrBuilder> + getConnectionsOrBuilderList() { + return connections_; + } + + /** + * + * + *
+   * Output only. Union of all the Terraform input connections.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getConnectionsCount() { + return connections_.size(); + } + + /** + * + * + *
+   * Output only. Union of all the Terraform input connections.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformInputConnections getConnections(int index) { + return connections_.get(index); + } + + /** + * + * + *
+   * Output only. Union of all the Terraform input connections.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformInputConnectionsOrBuilder + getConnectionsOrBuilder(int index) { + return connections_.get(index); + } + + public static final int UI_METADATA_FIELD_NUMBER = 11; + private com.google.cloud.designcenter.v1.TerraformBlueprintUiMetadata uiMetadata_; + + /** + * + * + *
+   * Output only. UI metadata for the blueprint.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TerraformBlueprintUiMetadata ui_metadata = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the uiMetadata field is set. + */ + @java.lang.Override + public boolean hasUiMetadata() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. UI metadata for the blueprint.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TerraformBlueprintUiMetadata ui_metadata = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The uiMetadata. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformBlueprintUiMetadata getUiMetadata() { + return uiMetadata_ == null + ? com.google.cloud.designcenter.v1.TerraformBlueprintUiMetadata.getDefaultInstance() + : uiMetadata_; + } + + /** + * + * + *
+   * Output only. UI metadata for the blueprint.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TerraformBlueprintUiMetadata ui_metadata = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformBlueprintUiMetadataOrBuilder + getUiMetadataOrBuilder() { + return uiMetadata_ == null + ? com.google.cloud.designcenter.v1.TerraformBlueprintUiMetadata.getDefaultInstance() + : uiMetadata_; + } + + public static final int PROVIDER_VERSIONS_FIELD_NUMBER = 12; + + @SuppressWarnings("serial") + private java.util.List providerVersions_; + + /** + * + * + *
+   * Output only. Provider versions required to deploy the blueprint.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderVersion provider_versions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getProviderVersionsList() { + return providerVersions_; + } + + /** + * + * + *
+   * Output only. Provider versions required to deploy the blueprint.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderVersion provider_versions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getProviderVersionsOrBuilderList() { + return providerVersions_; + } + + /** + * + * + *
+   * Output only. Provider versions required to deploy the blueprint.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderVersion provider_versions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getProviderVersionsCount() { + return providerVersions_.size(); + } + + /** + * + * + *
+   * Output only. Provider versions required to deploy the blueprint.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderVersion provider_versions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ProviderVersion getProviderVersions(int index) { + return providerVersions_.get(index); + } + + /** + * + * + *
+   * Output only. Provider versions required to deploy the blueprint.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderVersion provider_versions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ProviderVersionOrBuilder getProviderVersionsOrBuilder( + int index) { + return providerVersions_.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 < terraformInput_.size(); i++) { + output.writeMessage(1, terraformInput_.get(i)); + } + for (int i = 0; i < terraformOutput_.size(); i++) { + output.writeMessage(2, terraformOutput_.get(i)); + } + for (int i = 0; i < apis_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, apis_.getRaw(i)); + } + for (int i = 0; i < roles_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, roles_.getRaw(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(6, getDeploymentDuration()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(iconUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 9, iconUri_); + } + for (int i = 0; i < connections_.size(); i++) { + output.writeMessage(10, connections_.get(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(11, getUiMetadata()); + } + for (int i = 0; i < providerVersions_.size(); i++) { + output.writeMessage(12, providerVersions_.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 < terraformInput_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, terraformInput_.get(i)); + } + for (int i = 0; i < terraformOutput_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, terraformOutput_.get(i)); + } + { + int dataSize = 0; + for (int i = 0; i < apis_.size(); i++) { + dataSize += computeStringSizeNoTag(apis_.getRaw(i)); + } + size += dataSize; + size += 1 * getApisList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < roles_.size(); i++) { + dataSize += computeStringSizeNoTag(roles_.getRaw(i)); + } + size += dataSize; + size += 1 * getRolesList().size(); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getDeploymentDuration()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(iconUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(9, iconUri_); + } + for (int i = 0; i < connections_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, connections_.get(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getUiMetadata()); + } + for (int i = 0; i < providerVersions_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(12, providerVersions_.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.designcenter.v1.TFBlueprintMetadata)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.TFBlueprintMetadata other = + (com.google.cloud.designcenter.v1.TFBlueprintMetadata) obj; + + if (!getTerraformInputList().equals(other.getTerraformInputList())) return false; + if (!getTerraformOutputList().equals(other.getTerraformOutputList())) return false; + if (!getApisList().equals(other.getApisList())) return false; + if (!getRolesList().equals(other.getRolesList())) return false; + if (hasDeploymentDuration() != other.hasDeploymentDuration()) return false; + if (hasDeploymentDuration()) { + if (!getDeploymentDuration().equals(other.getDeploymentDuration())) return false; + } + if (!getIconUri().equals(other.getIconUri())) return false; + if (!getConnectionsList().equals(other.getConnectionsList())) return false; + if (hasUiMetadata() != other.hasUiMetadata()) return false; + if (hasUiMetadata()) { + if (!getUiMetadata().equals(other.getUiMetadata())) return false; + } + if (!getProviderVersionsList().equals(other.getProviderVersionsList())) 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 (getTerraformInputCount() > 0) { + hash = (37 * hash) + TERRAFORM_INPUT_FIELD_NUMBER; + hash = (53 * hash) + getTerraformInputList().hashCode(); + } + if (getTerraformOutputCount() > 0) { + hash = (37 * hash) + TERRAFORM_OUTPUT_FIELD_NUMBER; + hash = (53 * hash) + getTerraformOutputList().hashCode(); + } + if (getApisCount() > 0) { + hash = (37 * hash) + APIS_FIELD_NUMBER; + hash = (53 * hash) + getApisList().hashCode(); + } + if (getRolesCount() > 0) { + hash = (37 * hash) + ROLES_FIELD_NUMBER; + hash = (53 * hash) + getRolesList().hashCode(); + } + if (hasDeploymentDuration()) { + hash = (37 * hash) + DEPLOYMENT_DURATION_FIELD_NUMBER; + hash = (53 * hash) + getDeploymentDuration().hashCode(); + } + hash = (37 * hash) + ICON_URI_FIELD_NUMBER; + hash = (53 * hash) + getIconUri().hashCode(); + if (getConnectionsCount() > 0) { + hash = (37 * hash) + CONNECTIONS_FIELD_NUMBER; + hash = (53 * hash) + getConnectionsList().hashCode(); + } + if (hasUiMetadata()) { + hash = (37 * hash) + UI_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getUiMetadata().hashCode(); + } + if (getProviderVersionsCount() > 0) { + hash = (37 * hash) + PROVIDER_VERSIONS_FIELD_NUMBER; + hash = (53 * hash) + getProviderVersionsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.TFBlueprintMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.TFBlueprintMetadata 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.designcenter.v1.TFBlueprintMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.TFBlueprintMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TFBlueprintMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.TFBlueprintMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TFBlueprintMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.TFBlueprintMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TFBlueprintMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.TFBlueprintMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TFBlueprintMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.TFBlueprintMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.TFBlueprintMetadata 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Terraform input and output metadata.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.TFBlueprintMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.TFBlueprintMetadata) + com.google.cloud.designcenter.v1.TFBlueprintMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TFBlueprintMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TFBlueprintMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.TFBlueprintMetadata.class, + com.google.cloud.designcenter.v1.TFBlueprintMetadata.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.TFBlueprintMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetTerraformInputFieldBuilder(); + internalGetTerraformOutputFieldBuilder(); + internalGetDeploymentDurationFieldBuilder(); + internalGetConnectionsFieldBuilder(); + internalGetUiMetadataFieldBuilder(); + internalGetProviderVersionsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (terraformInputBuilder_ == null) { + terraformInput_ = java.util.Collections.emptyList(); + } else { + terraformInput_ = null; + terraformInputBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (terraformOutputBuilder_ == null) { + terraformOutput_ = java.util.Collections.emptyList(); + } else { + terraformOutput_ = null; + terraformOutputBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + apis_ = com.google.protobuf.LazyStringArrayList.emptyList(); + roles_ = com.google.protobuf.LazyStringArrayList.emptyList(); + deploymentDuration_ = null; + if (deploymentDurationBuilder_ != null) { + deploymentDurationBuilder_.dispose(); + deploymentDurationBuilder_ = null; + } + iconUri_ = ""; + if (connectionsBuilder_ == null) { + connections_ = java.util.Collections.emptyList(); + } else { + connections_ = null; + connectionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000040); + uiMetadata_ = null; + if (uiMetadataBuilder_ != null) { + uiMetadataBuilder_.dispose(); + uiMetadataBuilder_ = null; + } + if (providerVersionsBuilder_ == null) { + providerVersions_ = java.util.Collections.emptyList(); + } else { + providerVersions_ = null; + providerVersionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000100); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TFBlueprintMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.TFBlueprintMetadata getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.TFBlueprintMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.TFBlueprintMetadata build() { + com.google.cloud.designcenter.v1.TFBlueprintMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.TFBlueprintMetadata buildPartial() { + com.google.cloud.designcenter.v1.TFBlueprintMetadata result = + new com.google.cloud.designcenter.v1.TFBlueprintMetadata(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.designcenter.v1.TFBlueprintMetadata result) { + if (terraformInputBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + terraformInput_ = java.util.Collections.unmodifiableList(terraformInput_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.terraformInput_ = terraformInput_; + } else { + result.terraformInput_ = terraformInputBuilder_.build(); + } + if (terraformOutputBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + terraformOutput_ = java.util.Collections.unmodifiableList(terraformOutput_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.terraformOutput_ = terraformOutput_; + } else { + result.terraformOutput_ = terraformOutputBuilder_.build(); + } + if (connectionsBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0)) { + connections_ = java.util.Collections.unmodifiableList(connections_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.connections_ = connections_; + } else { + result.connections_ = connectionsBuilder_.build(); + } + if (providerVersionsBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0)) { + providerVersions_ = java.util.Collections.unmodifiableList(providerVersions_); + bitField0_ = (bitField0_ & ~0x00000100); + } + result.providerVersions_ = providerVersions_; + } else { + result.providerVersions_ = providerVersionsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.designcenter.v1.TFBlueprintMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + apis_.makeImmutable(); + result.apis_ = apis_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + roles_.makeImmutable(); + result.roles_ = roles_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.deploymentDuration_ = + deploymentDurationBuilder_ == null + ? deploymentDuration_ + : deploymentDurationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.iconUri_ = iconUri_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.uiMetadata_ = uiMetadataBuilder_ == null ? uiMetadata_ : uiMetadataBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.TFBlueprintMetadata) { + return mergeFrom((com.google.cloud.designcenter.v1.TFBlueprintMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.TFBlueprintMetadata other) { + if (other == com.google.cloud.designcenter.v1.TFBlueprintMetadata.getDefaultInstance()) + return this; + if (terraformInputBuilder_ == null) { + if (!other.terraformInput_.isEmpty()) { + if (terraformInput_.isEmpty()) { + terraformInput_ = other.terraformInput_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTerraformInputIsMutable(); + terraformInput_.addAll(other.terraformInput_); + } + onChanged(); + } + } else { + if (!other.terraformInput_.isEmpty()) { + if (terraformInputBuilder_.isEmpty()) { + terraformInputBuilder_.dispose(); + terraformInputBuilder_ = null; + terraformInput_ = other.terraformInput_; + bitField0_ = (bitField0_ & ~0x00000001); + terraformInputBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetTerraformInputFieldBuilder() + : null; + } else { + terraformInputBuilder_.addAllMessages(other.terraformInput_); + } + } + } + if (terraformOutputBuilder_ == null) { + if (!other.terraformOutput_.isEmpty()) { + if (terraformOutput_.isEmpty()) { + terraformOutput_ = other.terraformOutput_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureTerraformOutputIsMutable(); + terraformOutput_.addAll(other.terraformOutput_); + } + onChanged(); + } + } else { + if (!other.terraformOutput_.isEmpty()) { + if (terraformOutputBuilder_.isEmpty()) { + terraformOutputBuilder_.dispose(); + terraformOutputBuilder_ = null; + terraformOutput_ = other.terraformOutput_; + bitField0_ = (bitField0_ & ~0x00000002); + terraformOutputBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetTerraformOutputFieldBuilder() + : null; + } else { + terraformOutputBuilder_.addAllMessages(other.terraformOutput_); + } + } + } + if (!other.apis_.isEmpty()) { + if (apis_.isEmpty()) { + apis_ = other.apis_; + bitField0_ |= 0x00000004; + } else { + ensureApisIsMutable(); + apis_.addAll(other.apis_); + } + onChanged(); + } + if (!other.roles_.isEmpty()) { + if (roles_.isEmpty()) { + roles_ = other.roles_; + bitField0_ |= 0x00000008; + } else { + ensureRolesIsMutable(); + roles_.addAll(other.roles_); + } + onChanged(); + } + if (other.hasDeploymentDuration()) { + mergeDeploymentDuration(other.getDeploymentDuration()); + } + if (!other.getIconUri().isEmpty()) { + iconUri_ = other.iconUri_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (connectionsBuilder_ == null) { + if (!other.connections_.isEmpty()) { + if (connections_.isEmpty()) { + connections_ = other.connections_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureConnectionsIsMutable(); + connections_.addAll(other.connections_); + } + onChanged(); + } + } else { + if (!other.connections_.isEmpty()) { + if (connectionsBuilder_.isEmpty()) { + connectionsBuilder_.dispose(); + connectionsBuilder_ = null; + connections_ = other.connections_; + bitField0_ = (bitField0_ & ~0x00000040); + connectionsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetConnectionsFieldBuilder() + : null; + } else { + connectionsBuilder_.addAllMessages(other.connections_); + } + } + } + if (other.hasUiMetadata()) { + mergeUiMetadata(other.getUiMetadata()); + } + if (providerVersionsBuilder_ == null) { + if (!other.providerVersions_.isEmpty()) { + if (providerVersions_.isEmpty()) { + providerVersions_ = other.providerVersions_; + bitField0_ = (bitField0_ & ~0x00000100); + } else { + ensureProviderVersionsIsMutable(); + providerVersions_.addAll(other.providerVersions_); + } + onChanged(); + } + } else { + if (!other.providerVersions_.isEmpty()) { + if (providerVersionsBuilder_.isEmpty()) { + providerVersionsBuilder_.dispose(); + providerVersionsBuilder_ = null; + providerVersions_ = other.providerVersions_; + bitField0_ = (bitField0_ & ~0x00000100); + providerVersionsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetProviderVersionsFieldBuilder() + : null; + } else { + providerVersionsBuilder_.addAllMessages(other.providerVersions_); + } + } + } + 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.designcenter.v1.TerraformInput m = + input.readMessage( + com.google.cloud.designcenter.v1.TerraformInput.parser(), + extensionRegistry); + if (terraformInputBuilder_ == null) { + ensureTerraformInputIsMutable(); + terraformInput_.add(m); + } else { + terraformInputBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + com.google.cloud.designcenter.v1.TerraformOutput m = + input.readMessage( + com.google.cloud.designcenter.v1.TerraformOutput.parser(), + extensionRegistry); + if (terraformOutputBuilder_ == null) { + ensureTerraformOutputIsMutable(); + terraformOutput_.add(m); + } else { + terraformOutputBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureApisIsMutable(); + apis_.add(s); + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureRolesIsMutable(); + roles_.add(s); + break; + } // case 34 + case 50: + { + input.readMessage( + internalGetDeploymentDurationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 50 + case 74: + { + iconUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 74 + case 82: + { + com.google.cloud.designcenter.v1.TerraformInputConnections m = + input.readMessage( + com.google.cloud.designcenter.v1.TerraformInputConnections.parser(), + extensionRegistry); + if (connectionsBuilder_ == null) { + ensureConnectionsIsMutable(); + connections_.add(m); + } else { + connectionsBuilder_.addMessage(m); + } + break; + } // case 82 + case 90: + { + input.readMessage( + internalGetUiMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 90 + case 98: + { + com.google.cloud.designcenter.v1.ProviderVersion m = + input.readMessage( + com.google.cloud.designcenter.v1.ProviderVersion.parser(), + extensionRegistry); + if (providerVersionsBuilder_ == null) { + ensureProviderVersionsIsMutable(); + providerVersions_.add(m); + } else { + providerVersionsBuilder_.addMessage(m); + } + 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.util.List terraformInput_ = + java.util.Collections.emptyList(); + + private void ensureTerraformInputIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + terraformInput_ = + new java.util.ArrayList( + terraformInput_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.TerraformInput, + com.google.cloud.designcenter.v1.TerraformInput.Builder, + com.google.cloud.designcenter.v1.TerraformInputOrBuilder> + terraformInputBuilder_; + + /** + * + * + *
+     * Output only. Terraform inputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInput terraform_input = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getTerraformInputList() { + if (terraformInputBuilder_ == null) { + return java.util.Collections.unmodifiableList(terraformInput_); + } else { + return terraformInputBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Output only. Terraform inputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInput terraform_input = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getTerraformInputCount() { + if (terraformInputBuilder_ == null) { + return terraformInput_.size(); + } else { + return terraformInputBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Output only. Terraform inputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInput terraform_input = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.TerraformInput getTerraformInput(int index) { + if (terraformInputBuilder_ == null) { + return terraformInput_.get(index); + } else { + return terraformInputBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Output only. Terraform inputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInput terraform_input = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTerraformInput( + int index, com.google.cloud.designcenter.v1.TerraformInput value) { + if (terraformInputBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTerraformInputIsMutable(); + terraformInput_.set(index, value); + onChanged(); + } else { + terraformInputBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. Terraform inputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInput terraform_input = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTerraformInput( + int index, com.google.cloud.designcenter.v1.TerraformInput.Builder builderForValue) { + if (terraformInputBuilder_ == null) { + ensureTerraformInputIsMutable(); + terraformInput_.set(index, builderForValue.build()); + onChanged(); + } else { + terraformInputBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. Terraform inputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInput terraform_input = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addTerraformInput(com.google.cloud.designcenter.v1.TerraformInput value) { + if (terraformInputBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTerraformInputIsMutable(); + terraformInput_.add(value); + onChanged(); + } else { + terraformInputBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Output only. Terraform inputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInput terraform_input = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addTerraformInput( + int index, com.google.cloud.designcenter.v1.TerraformInput value) { + if (terraformInputBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTerraformInputIsMutable(); + terraformInput_.add(index, value); + onChanged(); + } else { + terraformInputBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. Terraform inputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInput terraform_input = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addTerraformInput( + com.google.cloud.designcenter.v1.TerraformInput.Builder builderForValue) { + if (terraformInputBuilder_ == null) { + ensureTerraformInputIsMutable(); + terraformInput_.add(builderForValue.build()); + onChanged(); + } else { + terraformInputBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. Terraform inputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInput terraform_input = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addTerraformInput( + int index, com.google.cloud.designcenter.v1.TerraformInput.Builder builderForValue) { + if (terraformInputBuilder_ == null) { + ensureTerraformInputIsMutable(); + terraformInput_.add(index, builderForValue.build()); + onChanged(); + } else { + terraformInputBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. Terraform inputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInput terraform_input = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllTerraformInput( + java.lang.Iterable values) { + if (terraformInputBuilder_ == null) { + ensureTerraformInputIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, terraformInput_); + onChanged(); + } else { + terraformInputBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Output only. Terraform inputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInput terraform_input = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearTerraformInput() { + if (terraformInputBuilder_ == null) { + terraformInput_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + terraformInputBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Output only. Terraform inputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInput terraform_input = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeTerraformInput(int index) { + if (terraformInputBuilder_ == null) { + ensureTerraformInputIsMutable(); + terraformInput_.remove(index); + onChanged(); + } else { + terraformInputBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Output only. Terraform inputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInput terraform_input = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.TerraformInput.Builder getTerraformInputBuilder( + int index) { + return internalGetTerraformInputFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Output only. Terraform inputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInput terraform_input = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.TerraformInputOrBuilder getTerraformInputOrBuilder( + int index) { + if (terraformInputBuilder_ == null) { + return terraformInput_.get(index); + } else { + return terraformInputBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Output only. Terraform inputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInput terraform_input = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getTerraformInputOrBuilderList() { + if (terraformInputBuilder_ != null) { + return terraformInputBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(terraformInput_); + } + } + + /** + * + * + *
+     * Output only. Terraform inputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInput terraform_input = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.TerraformInput.Builder addTerraformInputBuilder() { + return internalGetTerraformInputFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.TerraformInput.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. Terraform inputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInput terraform_input = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.TerraformInput.Builder addTerraformInputBuilder( + int index) { + return internalGetTerraformInputFieldBuilder() + .addBuilder(index, com.google.cloud.designcenter.v1.TerraformInput.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. Terraform inputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInput terraform_input = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getTerraformInputBuilderList() { + return internalGetTerraformInputFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.TerraformInput, + com.google.cloud.designcenter.v1.TerraformInput.Builder, + com.google.cloud.designcenter.v1.TerraformInputOrBuilder> + internalGetTerraformInputFieldBuilder() { + if (terraformInputBuilder_ == null) { + terraformInputBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.TerraformInput, + com.google.cloud.designcenter.v1.TerraformInput.Builder, + com.google.cloud.designcenter.v1.TerraformInputOrBuilder>( + terraformInput_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + terraformInput_ = null; + } + return terraformInputBuilder_; + } + + private java.util.List terraformOutput_ = + java.util.Collections.emptyList(); + + private void ensureTerraformOutputIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + terraformOutput_ = + new java.util.ArrayList( + terraformOutput_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.TerraformOutput, + com.google.cloud.designcenter.v1.TerraformOutput.Builder, + com.google.cloud.designcenter.v1.TerraformOutputOrBuilder> + terraformOutputBuilder_; + + /** + * + * + *
+     * Output only. Terraform outputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformOutput terraform_output = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getTerraformOutputList() { + if (terraformOutputBuilder_ == null) { + return java.util.Collections.unmodifiableList(terraformOutput_); + } else { + return terraformOutputBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Output only. Terraform outputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformOutput terraform_output = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getTerraformOutputCount() { + if (terraformOutputBuilder_ == null) { + return terraformOutput_.size(); + } else { + return terraformOutputBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Output only. Terraform outputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformOutput terraform_output = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.TerraformOutput getTerraformOutput(int index) { + if (terraformOutputBuilder_ == null) { + return terraformOutput_.get(index); + } else { + return terraformOutputBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Output only. Terraform outputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformOutput terraform_output = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTerraformOutput( + int index, com.google.cloud.designcenter.v1.TerraformOutput value) { + if (terraformOutputBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTerraformOutputIsMutable(); + terraformOutput_.set(index, value); + onChanged(); + } else { + terraformOutputBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. Terraform outputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformOutput terraform_output = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTerraformOutput( + int index, com.google.cloud.designcenter.v1.TerraformOutput.Builder builderForValue) { + if (terraformOutputBuilder_ == null) { + ensureTerraformOutputIsMutable(); + terraformOutput_.set(index, builderForValue.build()); + onChanged(); + } else { + terraformOutputBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. Terraform outputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformOutput terraform_output = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addTerraformOutput(com.google.cloud.designcenter.v1.TerraformOutput value) { + if (terraformOutputBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTerraformOutputIsMutable(); + terraformOutput_.add(value); + onChanged(); + } else { + terraformOutputBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Output only. Terraform outputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformOutput terraform_output = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addTerraformOutput( + int index, com.google.cloud.designcenter.v1.TerraformOutput value) { + if (terraformOutputBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTerraformOutputIsMutable(); + terraformOutput_.add(index, value); + onChanged(); + } else { + terraformOutputBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. Terraform outputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformOutput terraform_output = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addTerraformOutput( + com.google.cloud.designcenter.v1.TerraformOutput.Builder builderForValue) { + if (terraformOutputBuilder_ == null) { + ensureTerraformOutputIsMutable(); + terraformOutput_.add(builderForValue.build()); + onChanged(); + } else { + terraformOutputBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. Terraform outputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformOutput terraform_output = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addTerraformOutput( + int index, com.google.cloud.designcenter.v1.TerraformOutput.Builder builderForValue) { + if (terraformOutputBuilder_ == null) { + ensureTerraformOutputIsMutable(); + terraformOutput_.add(index, builderForValue.build()); + onChanged(); + } else { + terraformOutputBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. Terraform outputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformOutput terraform_output = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllTerraformOutput( + java.lang.Iterable values) { + if (terraformOutputBuilder_ == null) { + ensureTerraformOutputIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, terraformOutput_); + onChanged(); + } else { + terraformOutputBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Output only. Terraform outputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformOutput terraform_output = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearTerraformOutput() { + if (terraformOutputBuilder_ == null) { + terraformOutput_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + terraformOutputBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Output only. Terraform outputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformOutput terraform_output = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeTerraformOutput(int index) { + if (terraformOutputBuilder_ == null) { + ensureTerraformOutputIsMutable(); + terraformOutput_.remove(index); + onChanged(); + } else { + terraformOutputBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Output only. Terraform outputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformOutput terraform_output = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.TerraformOutput.Builder getTerraformOutputBuilder( + int index) { + return internalGetTerraformOutputFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Output only. Terraform outputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformOutput terraform_output = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.TerraformOutputOrBuilder getTerraformOutputOrBuilder( + int index) { + if (terraformOutputBuilder_ == null) { + return terraformOutput_.get(index); + } else { + return terraformOutputBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Output only. Terraform outputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformOutput terraform_output = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getTerraformOutputOrBuilderList() { + if (terraformOutputBuilder_ != null) { + return terraformOutputBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(terraformOutput_); + } + } + + /** + * + * + *
+     * Output only. Terraform outputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformOutput terraform_output = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.TerraformOutput.Builder addTerraformOutputBuilder() { + return internalGetTerraformOutputFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.TerraformOutput.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. Terraform outputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformOutput terraform_output = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.TerraformOutput.Builder addTerraformOutputBuilder( + int index) { + return internalGetTerraformOutputFieldBuilder() + .addBuilder(index, com.google.cloud.designcenter.v1.TerraformOutput.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. Terraform outputs.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformOutput terraform_output = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getTerraformOutputBuilderList() { + return internalGetTerraformOutputFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.TerraformOutput, + com.google.cloud.designcenter.v1.TerraformOutput.Builder, + com.google.cloud.designcenter.v1.TerraformOutputOrBuilder> + internalGetTerraformOutputFieldBuilder() { + if (terraformOutputBuilder_ == null) { + terraformOutputBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.TerraformOutput, + com.google.cloud.designcenter.v1.TerraformOutput.Builder, + com.google.cloud.designcenter.v1.TerraformOutputOrBuilder>( + terraformOutput_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + terraformOutput_ = null; + } + return terraformOutputBuilder_; + } + + private com.google.protobuf.LazyStringArrayList apis_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureApisIsMutable() { + if (!apis_.isModifiable()) { + apis_ = new com.google.protobuf.LazyStringArrayList(apis_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
+     * Output only. APIs that must be enabled to deploy the template, in the form
+     * of "compute.googleapis.com".
+     * 
+ * + * repeated string apis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the apis. + */ + public com.google.protobuf.ProtocolStringList getApisList() { + apis_.makeImmutable(); + return apis_; + } + + /** + * + * + *
+     * Output only. APIs that must be enabled to deploy the template, in the form
+     * of "compute.googleapis.com".
+     * 
+ * + * repeated string apis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of apis. + */ + public int getApisCount() { + return apis_.size(); + } + + /** + * + * + *
+     * Output only. APIs that must be enabled to deploy the template, in the form
+     * of "compute.googleapis.com".
+     * 
+ * + * repeated string apis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The apis at the given index. + */ + public java.lang.String getApis(int index) { + return apis_.get(index); + } + + /** + * + * + *
+     * Output only. APIs that must be enabled to deploy the template, in the form
+     * of "compute.googleapis.com".
+     * 
+ * + * repeated string apis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the apis at the given index. + */ + public com.google.protobuf.ByteString getApisBytes(int index) { + return apis_.getByteString(index); + } + + /** + * + * + *
+     * Output only. APIs that must be enabled to deploy the template, in the form
+     * of "compute.googleapis.com".
+     * 
+ * + * repeated string apis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index to set the value at. + * @param value The apis to set. + * @return This builder for chaining. + */ + public Builder setApis(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureApisIsMutable(); + apis_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. APIs that must be enabled to deploy the template, in the form
+     * of "compute.googleapis.com".
+     * 
+ * + * repeated string apis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The apis to add. + * @return This builder for chaining. + */ + public Builder addApis(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureApisIsMutable(); + apis_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. APIs that must be enabled to deploy the template, in the form
+     * of "compute.googleapis.com".
+     * 
+ * + * repeated string apis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param values The apis to add. + * @return This builder for chaining. + */ + public Builder addAllApis(java.lang.Iterable values) { + ensureApisIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, apis_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. APIs that must be enabled to deploy the template, in the form
+     * of "compute.googleapis.com".
+     * 
+ * + * repeated string apis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearApis() { + apis_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. APIs that must be enabled to deploy the template, in the form
+     * of "compute.googleapis.com".
+     * 
+ * + * repeated string apis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes of the apis to add. + * @return This builder for chaining. + */ + public Builder addApisBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureApisIsMutable(); + apis_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList roles_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureRolesIsMutable() { + if (!roles_.isModifiable()) { + roles_ = new com.google.protobuf.LazyStringArrayList(roles_); + } + bitField0_ |= 0x00000008; + } + + /** + * + * + *
+     * Output only. IAM roles required by the service account deploying the
+     * template, in the form of "roles/compute.admin".
+     * 
+ * + * repeated string roles = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the roles. + */ + public com.google.protobuf.ProtocolStringList getRolesList() { + roles_.makeImmutable(); + return roles_; + } + + /** + * + * + *
+     * Output only. IAM roles required by the service account deploying the
+     * template, in the form of "roles/compute.admin".
+     * 
+ * + * repeated string roles = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of roles. + */ + public int getRolesCount() { + return roles_.size(); + } + + /** + * + * + *
+     * Output only. IAM roles required by the service account deploying the
+     * template, in the form of "roles/compute.admin".
+     * 
+ * + * repeated string roles = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The roles at the given index. + */ + public java.lang.String getRoles(int index) { + return roles_.get(index); + } + + /** + * + * + *
+     * Output only. IAM roles required by the service account deploying the
+     * template, in the form of "roles/compute.admin".
+     * 
+ * + * repeated string roles = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the roles at the given index. + */ + public com.google.protobuf.ByteString getRolesBytes(int index) { + return roles_.getByteString(index); + } + + /** + * + * + *
+     * Output only. IAM roles required by the service account deploying the
+     * template, in the form of "roles/compute.admin".
+     * 
+ * + * repeated string roles = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index to set the value at. + * @param value The roles to set. + * @return This builder for chaining. + */ + public Builder setRoles(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRolesIsMutable(); + roles_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. IAM roles required by the service account deploying the
+     * template, in the form of "roles/compute.admin".
+     * 
+ * + * repeated string roles = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The roles to add. + * @return This builder for chaining. + */ + public Builder addRoles(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRolesIsMutable(); + roles_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. IAM roles required by the service account deploying the
+     * template, in the form of "roles/compute.admin".
+     * 
+ * + * repeated string roles = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param values The roles to add. + * @return This builder for chaining. + */ + public Builder addAllRoles(java.lang.Iterable values) { + ensureRolesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, roles_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. IAM roles required by the service account deploying the
+     * template, in the form of "roles/compute.admin".
+     * 
+ * + * repeated string roles = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearRoles() { + roles_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. IAM roles required by the service account deploying the
+     * template, in the form of "roles/compute.admin".
+     * 
+ * + * repeated string roles = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes of the roles to add. + * @return This builder for chaining. + */ + public Builder addRolesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureRolesIsMutable(); + roles_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.Duration deploymentDuration_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + deploymentDurationBuilder_; + + /** + * + * + *
+     * Optional. The time estimate for deploying the blueprint.
+     * 
+ * + * + * .google.protobuf.Duration deployment_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the deploymentDuration field is set. + */ + public boolean hasDeploymentDuration() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Optional. The time estimate for deploying the blueprint.
+     * 
+ * + * + * .google.protobuf.Duration deployment_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The deploymentDuration. + */ + public com.google.protobuf.Duration getDeploymentDuration() { + if (deploymentDurationBuilder_ == null) { + return deploymentDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : deploymentDuration_; + } else { + return deploymentDurationBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The time estimate for deploying the blueprint.
+     * 
+ * + * + * .google.protobuf.Duration deployment_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDeploymentDuration(com.google.protobuf.Duration value) { + if (deploymentDurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deploymentDuration_ = value; + } else { + deploymentDurationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The time estimate for deploying the blueprint.
+     * 
+ * + * + * .google.protobuf.Duration deployment_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDeploymentDuration(com.google.protobuf.Duration.Builder builderForValue) { + if (deploymentDurationBuilder_ == null) { + deploymentDuration_ = builderForValue.build(); + } else { + deploymentDurationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The time estimate for deploying the blueprint.
+     * 
+ * + * + * .google.protobuf.Duration deployment_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeDeploymentDuration(com.google.protobuf.Duration value) { + if (deploymentDurationBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && deploymentDuration_ != null + && deploymentDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + getDeploymentDurationBuilder().mergeFrom(value); + } else { + deploymentDuration_ = value; + } + } else { + deploymentDurationBuilder_.mergeFrom(value); + } + if (deploymentDuration_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The time estimate for deploying the blueprint.
+     * 
+ * + * + * .google.protobuf.Duration deployment_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDeploymentDuration() { + bitField0_ = (bitField0_ & ~0x00000010); + deploymentDuration_ = null; + if (deploymentDurationBuilder_ != null) { + deploymentDurationBuilder_.dispose(); + deploymentDurationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The time estimate for deploying the blueprint.
+     * 
+ * + * + * .google.protobuf.Duration deployment_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Duration.Builder getDeploymentDurationBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetDeploymentDurationFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The time estimate for deploying the blueprint.
+     * 
+ * + * + * .google.protobuf.Duration deployment_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.DurationOrBuilder getDeploymentDurationOrBuilder() { + if (deploymentDurationBuilder_ != null) { + return deploymentDurationBuilder_.getMessageOrBuilder(); + } else { + return deploymentDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : deploymentDuration_; + } + } + + /** + * + * + *
+     * Optional. The time estimate for deploying the blueprint.
+     * 
+ * + * + * .google.protobuf.Duration deployment_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + internalGetDeploymentDurationFieldBuilder() { + if (deploymentDurationBuilder_ == null) { + deploymentDurationBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getDeploymentDuration(), getParentForChildren(), isClean()); + deploymentDuration_ = null; + } + return deploymentDurationBuilder_; + } + + private java.lang.Object iconUri_ = ""; + + /** + * + * + *
+     * Output only. The icon URI for the blueprint.
+     * 
+ * + * string icon_uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The iconUri. + */ + public java.lang.String getIconUri() { + java.lang.Object ref = iconUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + iconUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The icon URI for the blueprint.
+     * 
+ * + * string icon_uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for iconUri. + */ + public com.google.protobuf.ByteString getIconUriBytes() { + java.lang.Object ref = iconUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + iconUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The icon URI for the blueprint.
+     * 
+ * + * string icon_uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The iconUri to set. + * @return This builder for chaining. + */ + public Builder setIconUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + iconUri_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The icon URI for the blueprint.
+     * 
+ * + * string icon_uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearIconUri() { + iconUri_ = getDefaultInstance().getIconUri(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The icon URI for the blueprint.
+     * 
+ * + * string icon_uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for iconUri to set. + * @return This builder for chaining. + */ + public Builder setIconUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + iconUri_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.util.List + connections_ = java.util.Collections.emptyList(); + + private void ensureConnectionsIsMutable() { + if (!((bitField0_ & 0x00000040) != 0)) { + connections_ = + new java.util.ArrayList( + connections_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.TerraformInputConnections, + com.google.cloud.designcenter.v1.TerraformInputConnections.Builder, + com.google.cloud.designcenter.v1.TerraformInputConnectionsOrBuilder> + connectionsBuilder_; + + /** + * + * + *
+     * Output only. Union of all the Terraform input connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getConnectionsList() { + if (connectionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(connections_); + } else { + return connectionsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Output only. Union of all the Terraform input connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getConnectionsCount() { + if (connectionsBuilder_ == null) { + return connections_.size(); + } else { + return connectionsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Output only. Union of all the Terraform input connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.TerraformInputConnections getConnections(int index) { + if (connectionsBuilder_ == null) { + return connections_.get(index); + } else { + return connectionsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Output only. Union of all the Terraform input connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setConnections( + int index, com.google.cloud.designcenter.v1.TerraformInputConnections value) { + if (connectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConnectionsIsMutable(); + connections_.set(index, value); + onChanged(); + } else { + connectionsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. Union of all the Terraform input connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setConnections( + int index, + com.google.cloud.designcenter.v1.TerraformInputConnections.Builder builderForValue) { + if (connectionsBuilder_ == null) { + ensureConnectionsIsMutable(); + connections_.set(index, builderForValue.build()); + onChanged(); + } else { + connectionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. Union of all the Terraform input connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addConnections( + com.google.cloud.designcenter.v1.TerraformInputConnections value) { + if (connectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConnectionsIsMutable(); + connections_.add(value); + onChanged(); + } else { + connectionsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Output only. Union of all the Terraform input connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addConnections( + int index, com.google.cloud.designcenter.v1.TerraformInputConnections value) { + if (connectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConnectionsIsMutable(); + connections_.add(index, value); + onChanged(); + } else { + connectionsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. Union of all the Terraform input connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addConnections( + com.google.cloud.designcenter.v1.TerraformInputConnections.Builder builderForValue) { + if (connectionsBuilder_ == null) { + ensureConnectionsIsMutable(); + connections_.add(builderForValue.build()); + onChanged(); + } else { + connectionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. Union of all the Terraform input connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addConnections( + int index, + com.google.cloud.designcenter.v1.TerraformInputConnections.Builder builderForValue) { + if (connectionsBuilder_ == null) { + ensureConnectionsIsMutable(); + connections_.add(index, builderForValue.build()); + onChanged(); + } else { + connectionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. Union of all the Terraform input connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllConnections( + java.lang.Iterable + values) { + if (connectionsBuilder_ == null) { + ensureConnectionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, connections_); + onChanged(); + } else { + connectionsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Output only. Union of all the Terraform input connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearConnections() { + if (connectionsBuilder_ == null) { + connections_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + connectionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Output only. Union of all the Terraform input connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeConnections(int index) { + if (connectionsBuilder_ == null) { + ensureConnectionsIsMutable(); + connections_.remove(index); + onChanged(); + } else { + connectionsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Output only. Union of all the Terraform input connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.TerraformInputConnections.Builder getConnectionsBuilder( + int index) { + return internalGetConnectionsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Output only. Union of all the Terraform input connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.TerraformInputConnectionsOrBuilder + getConnectionsOrBuilder(int index) { + if (connectionsBuilder_ == null) { + return connections_.get(index); + } else { + return connectionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Output only. Union of all the Terraform input connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends com.google.cloud.designcenter.v1.TerraformInputConnectionsOrBuilder> + getConnectionsOrBuilderList() { + if (connectionsBuilder_ != null) { + return connectionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(connections_); + } + } + + /** + * + * + *
+     * Output only. Union of all the Terraform input connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.TerraformInputConnections.Builder + addConnectionsBuilder() { + return internalGetConnectionsFieldBuilder() + .addBuilder( + com.google.cloud.designcenter.v1.TerraformInputConnections.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. Union of all the Terraform input connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.TerraformInputConnections.Builder addConnectionsBuilder( + int index) { + return internalGetConnectionsFieldBuilder() + .addBuilder( + index, + com.google.cloud.designcenter.v1.TerraformInputConnections.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. Union of all the Terraform input connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getConnectionsBuilderList() { + return internalGetConnectionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.TerraformInputConnections, + com.google.cloud.designcenter.v1.TerraformInputConnections.Builder, + com.google.cloud.designcenter.v1.TerraformInputConnectionsOrBuilder> + internalGetConnectionsFieldBuilder() { + if (connectionsBuilder_ == null) { + connectionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.TerraformInputConnections, + com.google.cloud.designcenter.v1.TerraformInputConnections.Builder, + com.google.cloud.designcenter.v1.TerraformInputConnectionsOrBuilder>( + connections_, ((bitField0_ & 0x00000040) != 0), getParentForChildren(), isClean()); + connections_ = null; + } + return connectionsBuilder_; + } + + private com.google.cloud.designcenter.v1.TerraformBlueprintUiMetadata uiMetadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.TerraformBlueprintUiMetadata, + com.google.cloud.designcenter.v1.TerraformBlueprintUiMetadata.Builder, + com.google.cloud.designcenter.v1.TerraformBlueprintUiMetadataOrBuilder> + uiMetadataBuilder_; + + /** + * + * + *
+     * Output only. UI metadata for the blueprint.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TerraformBlueprintUiMetadata ui_metadata = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the uiMetadata field is set. + */ + public boolean hasUiMetadata() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+     * Output only. UI metadata for the blueprint.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TerraformBlueprintUiMetadata ui_metadata = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The uiMetadata. + */ + public com.google.cloud.designcenter.v1.TerraformBlueprintUiMetadata getUiMetadata() { + if (uiMetadataBuilder_ == null) { + return uiMetadata_ == null + ? com.google.cloud.designcenter.v1.TerraformBlueprintUiMetadata.getDefaultInstance() + : uiMetadata_; + } else { + return uiMetadataBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. UI metadata for the blueprint.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TerraformBlueprintUiMetadata ui_metadata = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUiMetadata( + com.google.cloud.designcenter.v1.TerraformBlueprintUiMetadata value) { + if (uiMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + uiMetadata_ = value; + } else { + uiMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. UI metadata for the blueprint.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TerraformBlueprintUiMetadata ui_metadata = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUiMetadata( + com.google.cloud.designcenter.v1.TerraformBlueprintUiMetadata.Builder builderForValue) { + if (uiMetadataBuilder_ == null) { + uiMetadata_ = builderForValue.build(); + } else { + uiMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. UI metadata for the blueprint.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TerraformBlueprintUiMetadata ui_metadata = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUiMetadata( + com.google.cloud.designcenter.v1.TerraformBlueprintUiMetadata value) { + if (uiMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && uiMetadata_ != null + && uiMetadata_ + != com.google.cloud.designcenter.v1.TerraformBlueprintUiMetadata + .getDefaultInstance()) { + getUiMetadataBuilder().mergeFrom(value); + } else { + uiMetadata_ = value; + } + } else { + uiMetadataBuilder_.mergeFrom(value); + } + if (uiMetadata_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. UI metadata for the blueprint.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TerraformBlueprintUiMetadata ui_metadata = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUiMetadata() { + bitField0_ = (bitField0_ & ~0x00000080); + uiMetadata_ = null; + if (uiMetadataBuilder_ != null) { + uiMetadataBuilder_.dispose(); + uiMetadataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. UI metadata for the blueprint.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TerraformBlueprintUiMetadata ui_metadata = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.TerraformBlueprintUiMetadata.Builder + getUiMetadataBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return internalGetUiMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. UI metadata for the blueprint.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TerraformBlueprintUiMetadata ui_metadata = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.TerraformBlueprintUiMetadataOrBuilder + getUiMetadataOrBuilder() { + if (uiMetadataBuilder_ != null) { + return uiMetadataBuilder_.getMessageOrBuilder(); + } else { + return uiMetadata_ == null + ? com.google.cloud.designcenter.v1.TerraformBlueprintUiMetadata.getDefaultInstance() + : uiMetadata_; + } + } + + /** + * + * + *
+     * Output only. UI metadata for the blueprint.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TerraformBlueprintUiMetadata ui_metadata = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.TerraformBlueprintUiMetadata, + com.google.cloud.designcenter.v1.TerraformBlueprintUiMetadata.Builder, + com.google.cloud.designcenter.v1.TerraformBlueprintUiMetadataOrBuilder> + internalGetUiMetadataFieldBuilder() { + if (uiMetadataBuilder_ == null) { + uiMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.TerraformBlueprintUiMetadata, + com.google.cloud.designcenter.v1.TerraformBlueprintUiMetadata.Builder, + com.google.cloud.designcenter.v1.TerraformBlueprintUiMetadataOrBuilder>( + getUiMetadata(), getParentForChildren(), isClean()); + uiMetadata_ = null; + } + return uiMetadataBuilder_; + } + + private java.util.List providerVersions_ = + java.util.Collections.emptyList(); + + private void ensureProviderVersionsIsMutable() { + if (!((bitField0_ & 0x00000100) != 0)) { + providerVersions_ = + new java.util.ArrayList( + providerVersions_); + bitField0_ |= 0x00000100; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ProviderVersion, + com.google.cloud.designcenter.v1.ProviderVersion.Builder, + com.google.cloud.designcenter.v1.ProviderVersionOrBuilder> + providerVersionsBuilder_; + + /** + * + * + *
+     * Output only. Provider versions required to deploy the blueprint.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderVersion provider_versions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getProviderVersionsList() { + if (providerVersionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(providerVersions_); + } else { + return providerVersionsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Output only. Provider versions required to deploy the blueprint.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderVersion provider_versions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getProviderVersionsCount() { + if (providerVersionsBuilder_ == null) { + return providerVersions_.size(); + } else { + return providerVersionsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Output only. Provider versions required to deploy the blueprint.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderVersion provider_versions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ProviderVersion getProviderVersions(int index) { + if (providerVersionsBuilder_ == null) { + return providerVersions_.get(index); + } else { + return providerVersionsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Output only. Provider versions required to deploy the blueprint.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderVersion provider_versions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setProviderVersions( + int index, com.google.cloud.designcenter.v1.ProviderVersion value) { + if (providerVersionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProviderVersionsIsMutable(); + providerVersions_.set(index, value); + onChanged(); + } else { + providerVersionsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. Provider versions required to deploy the blueprint.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderVersion provider_versions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setProviderVersions( + int index, com.google.cloud.designcenter.v1.ProviderVersion.Builder builderForValue) { + if (providerVersionsBuilder_ == null) { + ensureProviderVersionsIsMutable(); + providerVersions_.set(index, builderForValue.build()); + onChanged(); + } else { + providerVersionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. Provider versions required to deploy the blueprint.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderVersion provider_versions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addProviderVersions(com.google.cloud.designcenter.v1.ProviderVersion value) { + if (providerVersionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProviderVersionsIsMutable(); + providerVersions_.add(value); + onChanged(); + } else { + providerVersionsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Output only. Provider versions required to deploy the blueprint.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderVersion provider_versions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addProviderVersions( + int index, com.google.cloud.designcenter.v1.ProviderVersion value) { + if (providerVersionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProviderVersionsIsMutable(); + providerVersions_.add(index, value); + onChanged(); + } else { + providerVersionsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. Provider versions required to deploy the blueprint.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderVersion provider_versions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addProviderVersions( + com.google.cloud.designcenter.v1.ProviderVersion.Builder builderForValue) { + if (providerVersionsBuilder_ == null) { + ensureProviderVersionsIsMutable(); + providerVersions_.add(builderForValue.build()); + onChanged(); + } else { + providerVersionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. Provider versions required to deploy the blueprint.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderVersion provider_versions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addProviderVersions( + int index, com.google.cloud.designcenter.v1.ProviderVersion.Builder builderForValue) { + if (providerVersionsBuilder_ == null) { + ensureProviderVersionsIsMutable(); + providerVersions_.add(index, builderForValue.build()); + onChanged(); + } else { + providerVersionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. Provider versions required to deploy the blueprint.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderVersion provider_versions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllProviderVersions( + java.lang.Iterable values) { + if (providerVersionsBuilder_ == null) { + ensureProviderVersionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, providerVersions_); + onChanged(); + } else { + providerVersionsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Output only. Provider versions required to deploy the blueprint.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderVersion provider_versions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearProviderVersions() { + if (providerVersionsBuilder_ == null) { + providerVersions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + } else { + providerVersionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Output only. Provider versions required to deploy the blueprint.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderVersion provider_versions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeProviderVersions(int index) { + if (providerVersionsBuilder_ == null) { + ensureProviderVersionsIsMutable(); + providerVersions_.remove(index); + onChanged(); + } else { + providerVersionsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Output only. Provider versions required to deploy the blueprint.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderVersion provider_versions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ProviderVersion.Builder getProviderVersionsBuilder( + int index) { + return internalGetProviderVersionsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Output only. Provider versions required to deploy the blueprint.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderVersion provider_versions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ProviderVersionOrBuilder getProviderVersionsOrBuilder( + int index) { + if (providerVersionsBuilder_ == null) { + return providerVersions_.get(index); + } else { + return providerVersionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Output only. Provider versions required to deploy the blueprint.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderVersion provider_versions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getProviderVersionsOrBuilderList() { + if (providerVersionsBuilder_ != null) { + return providerVersionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(providerVersions_); + } + } + + /** + * + * + *
+     * Output only. Provider versions required to deploy the blueprint.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderVersion provider_versions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ProviderVersion.Builder addProviderVersionsBuilder() { + return internalGetProviderVersionsFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.ProviderVersion.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. Provider versions required to deploy the blueprint.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderVersion provider_versions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ProviderVersion.Builder addProviderVersionsBuilder( + int index) { + return internalGetProviderVersionsFieldBuilder() + .addBuilder(index, com.google.cloud.designcenter.v1.ProviderVersion.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. Provider versions required to deploy the blueprint.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderVersion provider_versions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getProviderVersionsBuilderList() { + return internalGetProviderVersionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ProviderVersion, + com.google.cloud.designcenter.v1.ProviderVersion.Builder, + com.google.cloud.designcenter.v1.ProviderVersionOrBuilder> + internalGetProviderVersionsFieldBuilder() { + if (providerVersionsBuilder_ == null) { + providerVersionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ProviderVersion, + com.google.cloud.designcenter.v1.ProviderVersion.Builder, + com.google.cloud.designcenter.v1.ProviderVersionOrBuilder>( + providerVersions_, + ((bitField0_ & 0x00000100) != 0), + getParentForChildren(), + isClean()); + providerVersions_ = null; + } + return providerVersionsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.TFBlueprintMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.TFBlueprintMetadata) + private static final com.google.cloud.designcenter.v1.TFBlueprintMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.TFBlueprintMetadata(); + } + + public static com.google.cloud.designcenter.v1.TFBlueprintMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TFBlueprintMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.TFBlueprintMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TFBlueprintMetadataOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TFBlueprintMetadataOrBuilder.java new file mode 100644 index 000000000000..5461eeb2b53f --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TFBlueprintMetadataOrBuilder.java @@ -0,0 +1,521 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface TFBlueprintMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.TFBlueprintMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Terraform inputs.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInput terraform_input = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getTerraformInputList(); + + /** + * + * + *
+   * Output only. Terraform inputs.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInput terraform_input = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.TerraformInput getTerraformInput(int index); + + /** + * + * + *
+   * Output only. Terraform inputs.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInput terraform_input = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getTerraformInputCount(); + + /** + * + * + *
+   * Output only. Terraform inputs.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInput terraform_input = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getTerraformInputOrBuilderList(); + + /** + * + * + *
+   * Output only. Terraform inputs.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInput terraform_input = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.TerraformInputOrBuilder getTerraformInputOrBuilder(int index); + + /** + * + * + *
+   * Output only. Terraform outputs.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformOutput terraform_output = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getTerraformOutputList(); + + /** + * + * + *
+   * Output only. Terraform outputs.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformOutput terraform_output = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.TerraformOutput getTerraformOutput(int index); + + /** + * + * + *
+   * Output only. Terraform outputs.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformOutput terraform_output = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getTerraformOutputCount(); + + /** + * + * + *
+   * Output only. Terraform outputs.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformOutput terraform_output = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getTerraformOutputOrBuilderList(); + + /** + * + * + *
+   * Output only. Terraform outputs.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformOutput terraform_output = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.TerraformOutputOrBuilder getTerraformOutputOrBuilder(int index); + + /** + * + * + *
+   * Output only. APIs that must be enabled to deploy the template, in the form
+   * of "compute.googleapis.com".
+   * 
+ * + * repeated string apis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the apis. + */ + java.util.List getApisList(); + + /** + * + * + *
+   * Output only. APIs that must be enabled to deploy the template, in the form
+   * of "compute.googleapis.com".
+   * 
+ * + * repeated string apis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of apis. + */ + int getApisCount(); + + /** + * + * + *
+   * Output only. APIs that must be enabled to deploy the template, in the form
+   * of "compute.googleapis.com".
+   * 
+ * + * repeated string apis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The apis at the given index. + */ + java.lang.String getApis(int index); + + /** + * + * + *
+   * Output only. APIs that must be enabled to deploy the template, in the form
+   * of "compute.googleapis.com".
+   * 
+ * + * repeated string apis = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the apis at the given index. + */ + com.google.protobuf.ByteString getApisBytes(int index); + + /** + * + * + *
+   * Output only. IAM roles required by the service account deploying the
+   * template, in the form of "roles/compute.admin".
+   * 
+ * + * repeated string roles = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the roles. + */ + java.util.List getRolesList(); + + /** + * + * + *
+   * Output only. IAM roles required by the service account deploying the
+   * template, in the form of "roles/compute.admin".
+   * 
+ * + * repeated string roles = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of roles. + */ + int getRolesCount(); + + /** + * + * + *
+   * Output only. IAM roles required by the service account deploying the
+   * template, in the form of "roles/compute.admin".
+   * 
+ * + * repeated string roles = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The roles at the given index. + */ + java.lang.String getRoles(int index); + + /** + * + * + *
+   * Output only. IAM roles required by the service account deploying the
+   * template, in the form of "roles/compute.admin".
+   * 
+ * + * repeated string roles = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the roles at the given index. + */ + com.google.protobuf.ByteString getRolesBytes(int index); + + /** + * + * + *
+   * Optional. The time estimate for deploying the blueprint.
+   * 
+ * + * + * .google.protobuf.Duration deployment_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the deploymentDuration field is set. + */ + boolean hasDeploymentDuration(); + + /** + * + * + *
+   * Optional. The time estimate for deploying the blueprint.
+   * 
+ * + * + * .google.protobuf.Duration deployment_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The deploymentDuration. + */ + com.google.protobuf.Duration getDeploymentDuration(); + + /** + * + * + *
+   * Optional. The time estimate for deploying the blueprint.
+   * 
+ * + * + * .google.protobuf.Duration deployment_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.DurationOrBuilder getDeploymentDurationOrBuilder(); + + /** + * + * + *
+   * Output only. The icon URI for the blueprint.
+   * 
+ * + * string icon_uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The iconUri. + */ + java.lang.String getIconUri(); + + /** + * + * + *
+   * Output only. The icon URI for the blueprint.
+   * 
+ * + * string icon_uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for iconUri. + */ + com.google.protobuf.ByteString getIconUriBytes(); + + /** + * + * + *
+   * Output only. Union of all the Terraform input connections.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getConnectionsList(); + + /** + * + * + *
+   * Output only. Union of all the Terraform input connections.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.TerraformInputConnections getConnections(int index); + + /** + * + * + *
+   * Output only. Union of all the Terraform input connections.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getConnectionsCount(); + + /** + * + * + *
+   * Output only. Union of all the Terraform input connections.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getConnectionsOrBuilderList(); + + /** + * + * + *
+   * Output only. Union of all the Terraform input connections.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.TerraformInputConnectionsOrBuilder getConnectionsOrBuilder( + int index); + + /** + * + * + *
+   * Output only. UI metadata for the blueprint.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TerraformBlueprintUiMetadata ui_metadata = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the uiMetadata field is set. + */ + boolean hasUiMetadata(); + + /** + * + * + *
+   * Output only. UI metadata for the blueprint.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TerraformBlueprintUiMetadata ui_metadata = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The uiMetadata. + */ + com.google.cloud.designcenter.v1.TerraformBlueprintUiMetadata getUiMetadata(); + + /** + * + * + *
+   * Output only. UI metadata for the blueprint.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TerraformBlueprintUiMetadata ui_metadata = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.TerraformBlueprintUiMetadataOrBuilder getUiMetadataOrBuilder(); + + /** + * + * + *
+   * Output only. Provider versions required to deploy the blueprint.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderVersion provider_versions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getProviderVersionsList(); + + /** + * + * + *
+   * Output only. Provider versions required to deploy the blueprint.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderVersion provider_versions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.ProviderVersion getProviderVersions(int index); + + /** + * + * + *
+   * Output only. Provider versions required to deploy the blueprint.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderVersion provider_versions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getProviderVersionsCount(); + + /** + * + * + *
+   * Output only. Provider versions required to deploy the blueprint.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderVersion provider_versions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getProviderVersionsOrBuilderList(); + + /** + * + * + *
+   * Output only. Provider versions required to deploy the blueprint.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderVersion provider_versions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.ProviderVersionOrBuilder getProviderVersionsOrBuilder(int index); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateCategory.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateCategory.java new file mode 100644 index 000000000000..7f7f17c98ea9 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateCategory.java @@ -0,0 +1,238 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/enums.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Supported categories in Application Design Center.
+ * 
+ * + * Protobuf enum {@code google.cloud.designcenter.v1.TemplateCategory} + */ +@com.google.protobuf.Generated +public enum TemplateCategory implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Unspecified category.
+   * 
+ * + * TEMPLATE_CATEGORY_UNSPECIFIED = 0; + */ + TEMPLATE_CATEGORY_UNSPECIFIED(0), + /** + * + * + *
+   * Component template.
+   * 
+ * + * COMPONENT_TEMPLATE = 1; + */ + COMPONENT_TEMPLATE(1), + /** + * + * + *
+   * Application template.
+   * 
+ * + * APPLICATION_TEMPLATE = 2; + */ + APPLICATION_TEMPLATE(2), + /** + * + * + *
+   * Imported as a single, complex unit without disassembling into components.
+   * 
+ * + * COMPOSITE_SOLUTION_TEMPLATE = 3 [deprecated = true]; + */ + @java.lang.Deprecated + COMPOSITE_SOLUTION_TEMPLATE(3), + /** + * + * + *
+   * Instance template.
+   * 
+ * + * INSTANCE_TEMPLATE = 4; + */ + INSTANCE_TEMPLATE(4), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "TemplateCategory"); + } + + /** + * + * + *
+   * Unspecified category.
+   * 
+ * + * TEMPLATE_CATEGORY_UNSPECIFIED = 0; + */ + public static final int TEMPLATE_CATEGORY_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+   * Component template.
+   * 
+ * + * COMPONENT_TEMPLATE = 1; + */ + public static final int COMPONENT_TEMPLATE_VALUE = 1; + + /** + * + * + *
+   * Application template.
+   * 
+ * + * APPLICATION_TEMPLATE = 2; + */ + public static final int APPLICATION_TEMPLATE_VALUE = 2; + + /** + * + * + *
+   * Imported as a single, complex unit without disassembling into components.
+   * 
+ * + * COMPOSITE_SOLUTION_TEMPLATE = 3 [deprecated = true]; + */ + @java.lang.Deprecated public static final int COMPOSITE_SOLUTION_TEMPLATE_VALUE = 3; + + /** + * + * + *
+   * Instance template.
+   * 
+ * + * INSTANCE_TEMPLATE = 4; + */ + public static final int INSTANCE_TEMPLATE_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 TemplateCategory 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 TemplateCategory forNumber(int value) { + switch (value) { + case 0: + return TEMPLATE_CATEGORY_UNSPECIFIED; + case 1: + return COMPONENT_TEMPLATE; + case 2: + return APPLICATION_TEMPLATE; + case 3: + return COMPOSITE_SOLUTION_TEMPLATE; + case 4: + return INSTANCE_TEMPLATE; + 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 TemplateCategory findValueByNumber(int number) { + return TemplateCategory.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.designcenter.v1.EnumsProto.getDescriptor().getEnumTypes().get(2); + } + + private static final TemplateCategory[] VALUES = values(); + + public static TemplateCategory 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 TemplateCategory(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.designcenter.v1.TemplateCategory) +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateConnections.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateConnections.java new file mode 100644 index 000000000000..c4ae6e549644 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateConnections.java @@ -0,0 +1,1027 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * TemplateConnections
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.TemplateConnections} + */ +@com.google.protobuf.Generated +public final class TemplateConnections extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.TemplateConnections) + TemplateConnectionsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "TemplateConnections"); + } + + // Use TemplateConnections.newBuilder() to construct. + private TemplateConnections(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private TemplateConnections() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TemplateConnections_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TemplateConnections_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.TemplateConnections.class, + com.google.cloud.designcenter.v1.TemplateConnections.Builder.class); + } + + private int bitField0_; + public static final int SOURCE_FIELD_NUMBER = 1; + private com.google.cloud.designcenter.v1.ConnectionSource source_; + + /** + * + * + *
+   * Required. Source of the connection.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ConnectionSource source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the source field is set. + */ + @java.lang.Override + public boolean hasSource() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. Source of the connection.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ConnectionSource source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The source. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ConnectionSource getSource() { + return source_ == null + ? com.google.cloud.designcenter.v1.ConnectionSource.getDefaultInstance() + : source_; + } + + /** + * + * + *
+   * Required. Source of the connection.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ConnectionSource source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ConnectionSourceOrBuilder getSourceOrBuilder() { + return source_ == null + ? com.google.cloud.designcenter.v1.ConnectionSource.getDefaultInstance() + : source_; + } + + public static final int SPEC_FIELD_NUMBER = 2; + private com.google.cloud.designcenter.v1.ConnectionSpec spec_; + + /** + * + * + *
+   * Required. Connection specifications.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ConnectionSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the spec field is set. + */ + @java.lang.Override + public boolean hasSpec() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Required. Connection specifications.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ConnectionSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The spec. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ConnectionSpec getSpec() { + return spec_ == null + ? com.google.cloud.designcenter.v1.ConnectionSpec.getDefaultInstance() + : spec_; + } + + /** + * + * + *
+   * Required. Connection specifications.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ConnectionSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ConnectionSpecOrBuilder getSpecOrBuilder() { + return spec_ == null + ? com.google.cloud.designcenter.v1.ConnectionSpec.getDefaultInstance() + : spec_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getSource()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getSpec()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSource()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSpec()); + } + 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.designcenter.v1.TemplateConnections)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.TemplateConnections other = + (com.google.cloud.designcenter.v1.TemplateConnections) obj; + + if (hasSource() != other.hasSource()) return false; + if (hasSource()) { + if (!getSource().equals(other.getSource())) return false; + } + if (hasSpec() != other.hasSpec()) return false; + if (hasSpec()) { + if (!getSpec().equals(other.getSpec())) 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 (hasSource()) { + hash = (37 * hash) + SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getSource().hashCode(); + } + if (hasSpec()) { + hash = (37 * hash) + SPEC_FIELD_NUMBER; + hash = (53 * hash) + getSpec().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.TemplateConnections parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.TemplateConnections 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.designcenter.v1.TemplateConnections parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.TemplateConnections parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TemplateConnections parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.TemplateConnections parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TemplateConnections parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.TemplateConnections parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TemplateConnections parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.TemplateConnections parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TemplateConnections parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.TemplateConnections parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.TemplateConnections 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * TemplateConnections
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.TemplateConnections} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.TemplateConnections) + com.google.cloud.designcenter.v1.TemplateConnectionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TemplateConnections_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TemplateConnections_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.TemplateConnections.class, + com.google.cloud.designcenter.v1.TemplateConnections.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.TemplateConnections.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetSourceFieldBuilder(); + internalGetSpecFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + source_ = null; + if (sourceBuilder_ != null) { + sourceBuilder_.dispose(); + sourceBuilder_ = null; + } + spec_ = null; + if (specBuilder_ != null) { + specBuilder_.dispose(); + specBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TemplateConnections_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.TemplateConnections getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.TemplateConnections.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.TemplateConnections build() { + com.google.cloud.designcenter.v1.TemplateConnections result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.TemplateConnections buildPartial() { + com.google.cloud.designcenter.v1.TemplateConnections result = + new com.google.cloud.designcenter.v1.TemplateConnections(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.TemplateConnections result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.source_ = sourceBuilder_ == null ? source_ : sourceBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.spec_ = specBuilder_ == null ? spec_ : specBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.TemplateConnections) { + return mergeFrom((com.google.cloud.designcenter.v1.TemplateConnections) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.TemplateConnections other) { + if (other == com.google.cloud.designcenter.v1.TemplateConnections.getDefaultInstance()) + return this; + if (other.hasSource()) { + mergeSource(other.getSource()); + } + if (other.hasSpec()) { + mergeSpec(other.getSpec()); + } + 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(internalGetSourceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(internalGetSpecFieldBuilder().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.designcenter.v1.ConnectionSource source_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ConnectionSource, + com.google.cloud.designcenter.v1.ConnectionSource.Builder, + com.google.cloud.designcenter.v1.ConnectionSourceOrBuilder> + sourceBuilder_; + + /** + * + * + *
+     * Required. Source of the connection.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ConnectionSource source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the source field is set. + */ + public boolean hasSource() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Required. Source of the connection.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ConnectionSource source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The source. + */ + public com.google.cloud.designcenter.v1.ConnectionSource getSource() { + if (sourceBuilder_ == null) { + return source_ == null + ? com.google.cloud.designcenter.v1.ConnectionSource.getDefaultInstance() + : source_; + } else { + return sourceBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. Source of the connection.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ConnectionSource source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSource(com.google.cloud.designcenter.v1.ConnectionSource value) { + if (sourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + } else { + sourceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Source of the connection.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ConnectionSource source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSource( + com.google.cloud.designcenter.v1.ConnectionSource.Builder builderForValue) { + if (sourceBuilder_ == null) { + source_ = builderForValue.build(); + } else { + sourceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Source of the connection.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ConnectionSource source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeSource(com.google.cloud.designcenter.v1.ConnectionSource value) { + if (sourceBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && source_ != null + && source_ != com.google.cloud.designcenter.v1.ConnectionSource.getDefaultInstance()) { + getSourceBuilder().mergeFrom(value); + } else { + source_ = value; + } + } else { + sourceBuilder_.mergeFrom(value); + } + if (source_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. Source of the connection.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ConnectionSource source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearSource() { + bitField0_ = (bitField0_ & ~0x00000001); + source_ = null; + if (sourceBuilder_ != null) { + sourceBuilder_.dispose(); + sourceBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Source of the connection.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ConnectionSource source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.ConnectionSource.Builder getSourceBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetSourceFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. Source of the connection.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ConnectionSource source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.ConnectionSourceOrBuilder getSourceOrBuilder() { + if (sourceBuilder_ != null) { + return sourceBuilder_.getMessageOrBuilder(); + } else { + return source_ == null + ? com.google.cloud.designcenter.v1.ConnectionSource.getDefaultInstance() + : source_; + } + } + + /** + * + * + *
+     * Required. Source of the connection.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ConnectionSource source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ConnectionSource, + com.google.cloud.designcenter.v1.ConnectionSource.Builder, + com.google.cloud.designcenter.v1.ConnectionSourceOrBuilder> + internalGetSourceFieldBuilder() { + if (sourceBuilder_ == null) { + sourceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ConnectionSource, + com.google.cloud.designcenter.v1.ConnectionSource.Builder, + com.google.cloud.designcenter.v1.ConnectionSourceOrBuilder>( + getSource(), getParentForChildren(), isClean()); + source_ = null; + } + return sourceBuilder_; + } + + private com.google.cloud.designcenter.v1.ConnectionSpec spec_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ConnectionSpec, + com.google.cloud.designcenter.v1.ConnectionSpec.Builder, + com.google.cloud.designcenter.v1.ConnectionSpecOrBuilder> + specBuilder_; + + /** + * + * + *
+     * Required. Connection specifications.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ConnectionSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the spec field is set. + */ + public boolean hasSpec() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Required. Connection specifications.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ConnectionSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The spec. + */ + public com.google.cloud.designcenter.v1.ConnectionSpec getSpec() { + if (specBuilder_ == null) { + return spec_ == null + ? com.google.cloud.designcenter.v1.ConnectionSpec.getDefaultInstance() + : spec_; + } else { + return specBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. Connection specifications.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ConnectionSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSpec(com.google.cloud.designcenter.v1.ConnectionSpec value) { + if (specBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + spec_ = value; + } else { + specBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Connection specifications.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ConnectionSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSpec( + com.google.cloud.designcenter.v1.ConnectionSpec.Builder builderForValue) { + if (specBuilder_ == null) { + spec_ = builderForValue.build(); + } else { + specBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Connection specifications.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ConnectionSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeSpec(com.google.cloud.designcenter.v1.ConnectionSpec value) { + if (specBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && spec_ != null + && spec_ != com.google.cloud.designcenter.v1.ConnectionSpec.getDefaultInstance()) { + getSpecBuilder().mergeFrom(value); + } else { + spec_ = value; + } + } else { + specBuilder_.mergeFrom(value); + } + if (spec_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. Connection specifications.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ConnectionSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearSpec() { + bitField0_ = (bitField0_ & ~0x00000002); + spec_ = null; + if (specBuilder_ != null) { + specBuilder_.dispose(); + specBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Connection specifications.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ConnectionSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.ConnectionSpec.Builder getSpecBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetSpecFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. Connection specifications.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ConnectionSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.ConnectionSpecOrBuilder getSpecOrBuilder() { + if (specBuilder_ != null) { + return specBuilder_.getMessageOrBuilder(); + } else { + return spec_ == null + ? com.google.cloud.designcenter.v1.ConnectionSpec.getDefaultInstance() + : spec_; + } + } + + /** + * + * + *
+     * Required. Connection specifications.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ConnectionSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ConnectionSpec, + com.google.cloud.designcenter.v1.ConnectionSpec.Builder, + com.google.cloud.designcenter.v1.ConnectionSpecOrBuilder> + internalGetSpecFieldBuilder() { + if (specBuilder_ == null) { + specBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ConnectionSpec, + com.google.cloud.designcenter.v1.ConnectionSpec.Builder, + com.google.cloud.designcenter.v1.ConnectionSpecOrBuilder>( + getSpec(), getParentForChildren(), isClean()); + spec_ = null; + } + return specBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.TemplateConnections) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.TemplateConnections) + private static final com.google.cloud.designcenter.v1.TemplateConnections DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.TemplateConnections(); + } + + public static com.google.cloud.designcenter.v1.TemplateConnections getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TemplateConnections parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.TemplateConnections getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateConnectionsOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateConnectionsOrBuilder.java new file mode 100644 index 000000000000..17ea47316a1b --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateConnectionsOrBuilder.java @@ -0,0 +1,114 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface TemplateConnectionsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.TemplateConnections) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Source of the connection.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ConnectionSource source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the source field is set. + */ + boolean hasSource(); + + /** + * + * + *
+   * Required. Source of the connection.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ConnectionSource source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The source. + */ + com.google.cloud.designcenter.v1.ConnectionSource getSource(); + + /** + * + * + *
+   * Required. Source of the connection.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ConnectionSource source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.designcenter.v1.ConnectionSourceOrBuilder getSourceOrBuilder(); + + /** + * + * + *
+   * Required. Connection specifications.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ConnectionSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the spec field is set. + */ + boolean hasSpec(); + + /** + * + * + *
+   * Required. Connection specifications.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ConnectionSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The spec. + */ + com.google.cloud.designcenter.v1.ConnectionSpec getSpec(); + + /** + * + * + *
+   * Required. Connection specifications.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ConnectionSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.designcenter.v1.ConnectionSpecOrBuilder getSpecOrBuilder(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateInfo.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateInfo.java new file mode 100644 index 000000000000..f86302f2b722 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateInfo.java @@ -0,0 +1,736 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * TemplateInfo provides the actuation tool information.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.TemplateInfo} + */ +@com.google.protobuf.Generated +public final class TemplateInfo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.TemplateInfo) + TemplateInfoOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "TemplateInfo"); + } + + // Use TemplateInfo.newBuilder() to construct. + private TemplateInfo(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private TemplateInfo() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TemplateInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TemplateInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.TemplateInfo.class, + com.google.cloud.designcenter.v1.TemplateInfo.Builder.class); + } + + private int bitField0_; + public static final int ACTUATION_TOOL_FIELD_NUMBER = 1; + private com.google.cloud.designcenter.v1.IacFormatInfo actuationTool_; + + /** + * + * + *
+   * Required. IaCFormatInfo defines the actuation tool used to provision the
+   * Template.
+   * 
+ * + * + * .google.cloud.designcenter.v1.IacFormatInfo actuation_tool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the actuationTool field is set. + */ + @java.lang.Override + public boolean hasActuationTool() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. IaCFormatInfo defines the actuation tool used to provision the
+   * Template.
+   * 
+ * + * + * .google.cloud.designcenter.v1.IacFormatInfo actuation_tool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The actuationTool. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.IacFormatInfo getActuationTool() { + return actuationTool_ == null + ? com.google.cloud.designcenter.v1.IacFormatInfo.getDefaultInstance() + : actuationTool_; + } + + /** + * + * + *
+   * Required. IaCFormatInfo defines the actuation tool used to provision the
+   * Template.
+   * 
+ * + * + * .google.cloud.designcenter.v1.IacFormatInfo actuation_tool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.IacFormatInfoOrBuilder getActuationToolOrBuilder() { + return actuationTool_ == null + ? com.google.cloud.designcenter.v1.IacFormatInfo.getDefaultInstance() + : actuationTool_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getActuationTool()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getActuationTool()); + } + 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.designcenter.v1.TemplateInfo)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.TemplateInfo other = + (com.google.cloud.designcenter.v1.TemplateInfo) obj; + + if (hasActuationTool() != other.hasActuationTool()) return false; + if (hasActuationTool()) { + if (!getActuationTool().equals(other.getActuationTool())) 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 (hasActuationTool()) { + hash = (37 * hash) + ACTUATION_TOOL_FIELD_NUMBER; + hash = (53 * hash) + getActuationTool().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.TemplateInfo parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.TemplateInfo 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.designcenter.v1.TemplateInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.TemplateInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TemplateInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.TemplateInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TemplateInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.TemplateInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TemplateInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.TemplateInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TemplateInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.TemplateInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.TemplateInfo 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * TemplateInfo provides the actuation tool information.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.TemplateInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.TemplateInfo) + com.google.cloud.designcenter.v1.TemplateInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TemplateInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TemplateInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.TemplateInfo.class, + com.google.cloud.designcenter.v1.TemplateInfo.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.TemplateInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetActuationToolFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + actuationTool_ = null; + if (actuationToolBuilder_ != null) { + actuationToolBuilder_.dispose(); + actuationToolBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TemplateInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.TemplateInfo getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.TemplateInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.TemplateInfo build() { + com.google.cloud.designcenter.v1.TemplateInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.TemplateInfo buildPartial() { + com.google.cloud.designcenter.v1.TemplateInfo result = + new com.google.cloud.designcenter.v1.TemplateInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.TemplateInfo result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.actuationTool_ = + actuationToolBuilder_ == null ? actuationTool_ : actuationToolBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.TemplateInfo) { + return mergeFrom((com.google.cloud.designcenter.v1.TemplateInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.TemplateInfo other) { + if (other == com.google.cloud.designcenter.v1.TemplateInfo.getDefaultInstance()) return this; + if (other.hasActuationTool()) { + mergeActuationTool(other.getActuationTool()); + } + 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( + internalGetActuationToolFieldBuilder().getBuilder(), extensionRegistry); + 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 com.google.cloud.designcenter.v1.IacFormatInfo actuationTool_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.IacFormatInfo, + com.google.cloud.designcenter.v1.IacFormatInfo.Builder, + com.google.cloud.designcenter.v1.IacFormatInfoOrBuilder> + actuationToolBuilder_; + + /** + * + * + *
+     * Required. IaCFormatInfo defines the actuation tool used to provision the
+     * Template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.IacFormatInfo actuation_tool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the actuationTool field is set. + */ + public boolean hasActuationTool() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Required. IaCFormatInfo defines the actuation tool used to provision the
+     * Template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.IacFormatInfo actuation_tool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The actuationTool. + */ + public com.google.cloud.designcenter.v1.IacFormatInfo getActuationTool() { + if (actuationToolBuilder_ == null) { + return actuationTool_ == null + ? com.google.cloud.designcenter.v1.IacFormatInfo.getDefaultInstance() + : actuationTool_; + } else { + return actuationToolBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. IaCFormatInfo defines the actuation tool used to provision the
+     * Template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.IacFormatInfo actuation_tool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setActuationTool(com.google.cloud.designcenter.v1.IacFormatInfo value) { + if (actuationToolBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + actuationTool_ = value; + } else { + actuationToolBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. IaCFormatInfo defines the actuation tool used to provision the
+     * Template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.IacFormatInfo actuation_tool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setActuationTool( + com.google.cloud.designcenter.v1.IacFormatInfo.Builder builderForValue) { + if (actuationToolBuilder_ == null) { + actuationTool_ = builderForValue.build(); + } else { + actuationToolBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. IaCFormatInfo defines the actuation tool used to provision the
+     * Template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.IacFormatInfo actuation_tool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeActuationTool(com.google.cloud.designcenter.v1.IacFormatInfo value) { + if (actuationToolBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && actuationTool_ != null + && actuationTool_ + != com.google.cloud.designcenter.v1.IacFormatInfo.getDefaultInstance()) { + getActuationToolBuilder().mergeFrom(value); + } else { + actuationTool_ = value; + } + } else { + actuationToolBuilder_.mergeFrom(value); + } + if (actuationTool_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. IaCFormatInfo defines the actuation tool used to provision the
+     * Template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.IacFormatInfo actuation_tool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearActuationTool() { + bitField0_ = (bitField0_ & ~0x00000001); + actuationTool_ = null; + if (actuationToolBuilder_ != null) { + actuationToolBuilder_.dispose(); + actuationToolBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. IaCFormatInfo defines the actuation tool used to provision the
+     * Template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.IacFormatInfo actuation_tool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.IacFormatInfo.Builder getActuationToolBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetActuationToolFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. IaCFormatInfo defines the actuation tool used to provision the
+     * Template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.IacFormatInfo actuation_tool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.IacFormatInfoOrBuilder getActuationToolOrBuilder() { + if (actuationToolBuilder_ != null) { + return actuationToolBuilder_.getMessageOrBuilder(); + } else { + return actuationTool_ == null + ? com.google.cloud.designcenter.v1.IacFormatInfo.getDefaultInstance() + : actuationTool_; + } + } + + /** + * + * + *
+     * Required. IaCFormatInfo defines the actuation tool used to provision the
+     * Template.
+     * 
+ * + * + * .google.cloud.designcenter.v1.IacFormatInfo actuation_tool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.IacFormatInfo, + com.google.cloud.designcenter.v1.IacFormatInfo.Builder, + com.google.cloud.designcenter.v1.IacFormatInfoOrBuilder> + internalGetActuationToolFieldBuilder() { + if (actuationToolBuilder_ == null) { + actuationToolBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.IacFormatInfo, + com.google.cloud.designcenter.v1.IacFormatInfo.Builder, + com.google.cloud.designcenter.v1.IacFormatInfoOrBuilder>( + getActuationTool(), getParentForChildren(), isClean()); + actuationTool_ = null; + } + return actuationToolBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.TemplateInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.TemplateInfo) + private static final com.google.cloud.designcenter.v1.TemplateInfo DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.TemplateInfo(); + } + + public static com.google.cloud.designcenter.v1.TemplateInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TemplateInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.TemplateInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateInfoOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateInfoOrBuilder.java new file mode 100644 index 000000000000..f39002ac3437 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateInfoOrBuilder.java @@ -0,0 +1,74 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface TemplateInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.TemplateInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. IaCFormatInfo defines the actuation tool used to provision the
+   * Template.
+   * 
+ * + * + * .google.cloud.designcenter.v1.IacFormatInfo actuation_tool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the actuationTool field is set. + */ + boolean hasActuationTool(); + + /** + * + * + *
+   * Required. IaCFormatInfo defines the actuation tool used to provision the
+   * Template.
+   * 
+ * + * + * .google.cloud.designcenter.v1.IacFormatInfo actuation_tool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The actuationTool. + */ + com.google.cloud.designcenter.v1.IacFormatInfo getActuationTool(); + + /** + * + * + *
+   * Required. IaCFormatInfo defines the actuation tool used to provision the
+   * Template.
+   * 
+ * + * + * .google.cloud.designcenter.v1.IacFormatInfo actuation_tool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.designcenter.v1.IacFormatInfoOrBuilder getActuationToolOrBuilder(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateRequirements.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateRequirements.java new file mode 100644 index 000000000000..444862e22573 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateRequirements.java @@ -0,0 +1,1543 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * TemplateRequirements defines the roles required and the associated services
+ * that need to be enabled to provision Template resources.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.TemplateRequirements} + */ +@com.google.protobuf.Generated +public final class TemplateRequirements extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.TemplateRequirements) + TemplateRequirementsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "TemplateRequirements"); + } + + // Use TemplateRequirements.newBuilder() to construct. + private TemplateRequirements(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private TemplateRequirements() { + roles_ = java.util.Collections.emptyList(); + providerVersions_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TemplateRequirements_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TemplateRequirements_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.TemplateRequirements.class, + com.google.cloud.designcenter.v1.TemplateRequirements.Builder.class); + } + + public static final int ROLES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List roles_; + + /** + * + * + *
+   * Required. All roles required for the component
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateRoles roles = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List getRolesList() { + return roles_; + } + + /** + * + * + *
+   * Required. All roles required for the component
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateRoles roles = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getRolesOrBuilderList() { + return roles_; + } + + /** + * + * + *
+   * Required. All roles required for the component
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateRoles roles = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getRolesCount() { + return roles_.size(); + } + + /** + * + * + *
+   * Required. All roles required for the component
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateRoles roles = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TemplateRoles getRoles(int index) { + return roles_.get(index); + } + + /** + * + * + *
+   * Required. All roles required for the component
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateRoles roles = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TemplateRolesOrBuilder getRolesOrBuilder(int index) { + return roles_.get(index); + } + + public static final int PROVIDER_VERSIONS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List providerVersions_; + + /** + * + * + *
+   * Required. Required provider versions.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderVersion provider_versions = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getProviderVersionsList() { + return providerVersions_; + } + + /** + * + * + *
+   * Required. Required provider versions.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderVersion provider_versions = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getProviderVersionsOrBuilderList() { + return providerVersions_; + } + + /** + * + * + *
+   * Required. Required provider versions.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderVersion provider_versions = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getProviderVersionsCount() { + return providerVersions_.size(); + } + + /** + * + * + *
+   * Required. Required provider versions.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderVersion provider_versions = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ProviderVersion getProviderVersions(int index) { + return providerVersions_.get(index); + } + + /** + * + * + *
+   * Required. Required provider versions.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderVersion provider_versions = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ProviderVersionOrBuilder getProviderVersionsOrBuilder( + int index) { + return providerVersions_.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 < roles_.size(); i++) { + output.writeMessage(1, roles_.get(i)); + } + for (int i = 0; i < providerVersions_.size(); i++) { + output.writeMessage(2, providerVersions_.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 < roles_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, roles_.get(i)); + } + for (int i = 0; i < providerVersions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, providerVersions_.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.designcenter.v1.TemplateRequirements)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.TemplateRequirements other = + (com.google.cloud.designcenter.v1.TemplateRequirements) obj; + + if (!getRolesList().equals(other.getRolesList())) return false; + if (!getProviderVersionsList().equals(other.getProviderVersionsList())) 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 (getRolesCount() > 0) { + hash = (37 * hash) + ROLES_FIELD_NUMBER; + hash = (53 * hash) + getRolesList().hashCode(); + } + if (getProviderVersionsCount() > 0) { + hash = (37 * hash) + PROVIDER_VERSIONS_FIELD_NUMBER; + hash = (53 * hash) + getProviderVersionsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.TemplateRequirements parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.TemplateRequirements 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.designcenter.v1.TemplateRequirements parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.TemplateRequirements parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TemplateRequirements parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.TemplateRequirements parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TemplateRequirements parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.TemplateRequirements parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TemplateRequirements parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.TemplateRequirements parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TemplateRequirements parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.TemplateRequirements parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.TemplateRequirements 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * TemplateRequirements defines the roles required and the associated services
+   * that need to be enabled to provision Template resources.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.TemplateRequirements} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.TemplateRequirements) + com.google.cloud.designcenter.v1.TemplateRequirementsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TemplateRequirements_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TemplateRequirements_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.TemplateRequirements.class, + com.google.cloud.designcenter.v1.TemplateRequirements.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.TemplateRequirements.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (rolesBuilder_ == null) { + roles_ = java.util.Collections.emptyList(); + } else { + roles_ = null; + rolesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (providerVersionsBuilder_ == null) { + providerVersions_ = java.util.Collections.emptyList(); + } else { + providerVersions_ = null; + providerVersionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TemplateRequirements_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.TemplateRequirements getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.TemplateRequirements.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.TemplateRequirements build() { + com.google.cloud.designcenter.v1.TemplateRequirements result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.TemplateRequirements buildPartial() { + com.google.cloud.designcenter.v1.TemplateRequirements result = + new com.google.cloud.designcenter.v1.TemplateRequirements(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.designcenter.v1.TemplateRequirements result) { + if (rolesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + roles_ = java.util.Collections.unmodifiableList(roles_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.roles_ = roles_; + } else { + result.roles_ = rolesBuilder_.build(); + } + if (providerVersionsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + providerVersions_ = java.util.Collections.unmodifiableList(providerVersions_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.providerVersions_ = providerVersions_; + } else { + result.providerVersions_ = providerVersionsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.designcenter.v1.TemplateRequirements result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.TemplateRequirements) { + return mergeFrom((com.google.cloud.designcenter.v1.TemplateRequirements) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.TemplateRequirements other) { + if (other == com.google.cloud.designcenter.v1.TemplateRequirements.getDefaultInstance()) + return this; + if (rolesBuilder_ == null) { + if (!other.roles_.isEmpty()) { + if (roles_.isEmpty()) { + roles_ = other.roles_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRolesIsMutable(); + roles_.addAll(other.roles_); + } + onChanged(); + } + } else { + if (!other.roles_.isEmpty()) { + if (rolesBuilder_.isEmpty()) { + rolesBuilder_.dispose(); + rolesBuilder_ = null; + roles_ = other.roles_; + bitField0_ = (bitField0_ & ~0x00000001); + rolesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetRolesFieldBuilder() + : null; + } else { + rolesBuilder_.addAllMessages(other.roles_); + } + } + } + if (providerVersionsBuilder_ == null) { + if (!other.providerVersions_.isEmpty()) { + if (providerVersions_.isEmpty()) { + providerVersions_ = other.providerVersions_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureProviderVersionsIsMutable(); + providerVersions_.addAll(other.providerVersions_); + } + onChanged(); + } + } else { + if (!other.providerVersions_.isEmpty()) { + if (providerVersionsBuilder_.isEmpty()) { + providerVersionsBuilder_.dispose(); + providerVersionsBuilder_ = null; + providerVersions_ = other.providerVersions_; + bitField0_ = (bitField0_ & ~0x00000002); + providerVersionsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetProviderVersionsFieldBuilder() + : null; + } else { + providerVersionsBuilder_.addAllMessages(other.providerVersions_); + } + } + } + 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.designcenter.v1.TemplateRoles m = + input.readMessage( + com.google.cloud.designcenter.v1.TemplateRoles.parser(), extensionRegistry); + if (rolesBuilder_ == null) { + ensureRolesIsMutable(); + roles_.add(m); + } else { + rolesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + com.google.cloud.designcenter.v1.ProviderVersion m = + input.readMessage( + com.google.cloud.designcenter.v1.ProviderVersion.parser(), + extensionRegistry); + if (providerVersionsBuilder_ == null) { + ensureProviderVersionsIsMutable(); + providerVersions_.add(m); + } else { + providerVersionsBuilder_.addMessage(m); + } + 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 roles_ = + java.util.Collections.emptyList(); + + private void ensureRolesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + roles_ = new java.util.ArrayList(roles_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.TemplateRoles, + com.google.cloud.designcenter.v1.TemplateRoles.Builder, + com.google.cloud.designcenter.v1.TemplateRolesOrBuilder> + rolesBuilder_; + + /** + * + * + *
+     * Required. All roles required for the component
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateRoles roles = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List getRolesList() { + if (rolesBuilder_ == null) { + return java.util.Collections.unmodifiableList(roles_); + } else { + return rolesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Required. All roles required for the component
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateRoles roles = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getRolesCount() { + if (rolesBuilder_ == null) { + return roles_.size(); + } else { + return rolesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Required. All roles required for the component
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateRoles roles = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.TemplateRoles getRoles(int index) { + if (rolesBuilder_ == null) { + return roles_.get(index); + } else { + return rolesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Required. All roles required for the component
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateRoles roles = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRoles(int index, com.google.cloud.designcenter.v1.TemplateRoles value) { + if (rolesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRolesIsMutable(); + roles_.set(index, value); + onChanged(); + } else { + rolesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Required. All roles required for the component
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateRoles roles = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRoles( + int index, com.google.cloud.designcenter.v1.TemplateRoles.Builder builderForValue) { + if (rolesBuilder_ == null) { + ensureRolesIsMutable(); + roles_.set(index, builderForValue.build()); + onChanged(); + } else { + rolesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Required. All roles required for the component
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateRoles roles = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRoles(com.google.cloud.designcenter.v1.TemplateRoles value) { + if (rolesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRolesIsMutable(); + roles_.add(value); + onChanged(); + } else { + rolesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Required. All roles required for the component
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateRoles roles = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRoles(int index, com.google.cloud.designcenter.v1.TemplateRoles value) { + if (rolesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRolesIsMutable(); + roles_.add(index, value); + onChanged(); + } else { + rolesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Required. All roles required for the component
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateRoles roles = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRoles( + com.google.cloud.designcenter.v1.TemplateRoles.Builder builderForValue) { + if (rolesBuilder_ == null) { + ensureRolesIsMutable(); + roles_.add(builderForValue.build()); + onChanged(); + } else { + rolesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Required. All roles required for the component
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateRoles roles = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRoles( + int index, com.google.cloud.designcenter.v1.TemplateRoles.Builder builderForValue) { + if (rolesBuilder_ == null) { + ensureRolesIsMutable(); + roles_.add(index, builderForValue.build()); + onChanged(); + } else { + rolesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Required. All roles required for the component
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateRoles roles = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllRoles( + java.lang.Iterable values) { + if (rolesBuilder_ == null) { + ensureRolesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, roles_); + onChanged(); + } else { + rolesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Required. All roles required for the component
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateRoles roles = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRoles() { + if (rolesBuilder_ == null) { + roles_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + rolesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Required. All roles required for the component
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateRoles roles = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeRoles(int index) { + if (rolesBuilder_ == null) { + ensureRolesIsMutable(); + roles_.remove(index); + onChanged(); + } else { + rolesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Required. All roles required for the component
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateRoles roles = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.TemplateRoles.Builder getRolesBuilder(int index) { + return internalGetRolesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Required. All roles required for the component
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateRoles roles = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.TemplateRolesOrBuilder getRolesOrBuilder(int index) { + if (rolesBuilder_ == null) { + return roles_.get(index); + } else { + return rolesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Required. All roles required for the component
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateRoles roles = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getRolesOrBuilderList() { + if (rolesBuilder_ != null) { + return rolesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(roles_); + } + } + + /** + * + * + *
+     * Required. All roles required for the component
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateRoles roles = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.TemplateRoles.Builder addRolesBuilder() { + return internalGetRolesFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.TemplateRoles.getDefaultInstance()); + } + + /** + * + * + *
+     * Required. All roles required for the component
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateRoles roles = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.TemplateRoles.Builder addRolesBuilder(int index) { + return internalGetRolesFieldBuilder() + .addBuilder(index, com.google.cloud.designcenter.v1.TemplateRoles.getDefaultInstance()); + } + + /** + * + * + *
+     * Required. All roles required for the component
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateRoles roles = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getRolesBuilderList() { + return internalGetRolesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.TemplateRoles, + com.google.cloud.designcenter.v1.TemplateRoles.Builder, + com.google.cloud.designcenter.v1.TemplateRolesOrBuilder> + internalGetRolesFieldBuilder() { + if (rolesBuilder_ == null) { + rolesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.TemplateRoles, + com.google.cloud.designcenter.v1.TemplateRoles.Builder, + com.google.cloud.designcenter.v1.TemplateRolesOrBuilder>( + roles_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + roles_ = null; + } + return rolesBuilder_; + } + + private java.util.List providerVersions_ = + java.util.Collections.emptyList(); + + private void ensureProviderVersionsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + providerVersions_ = + new java.util.ArrayList( + providerVersions_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ProviderVersion, + com.google.cloud.designcenter.v1.ProviderVersion.Builder, + com.google.cloud.designcenter.v1.ProviderVersionOrBuilder> + providerVersionsBuilder_; + + /** + * + * + *
+     * Required. Required provider versions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderVersion provider_versions = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getProviderVersionsList() { + if (providerVersionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(providerVersions_); + } else { + return providerVersionsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Required. Required provider versions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderVersion provider_versions = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getProviderVersionsCount() { + if (providerVersionsBuilder_ == null) { + return providerVersions_.size(); + } else { + return providerVersionsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Required. Required provider versions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderVersion provider_versions = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.ProviderVersion getProviderVersions(int index) { + if (providerVersionsBuilder_ == null) { + return providerVersions_.get(index); + } else { + return providerVersionsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Required. Required provider versions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderVersion provider_versions = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setProviderVersions( + int index, com.google.cloud.designcenter.v1.ProviderVersion value) { + if (providerVersionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProviderVersionsIsMutable(); + providerVersions_.set(index, value); + onChanged(); + } else { + providerVersionsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Required. Required provider versions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderVersion provider_versions = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setProviderVersions( + int index, com.google.cloud.designcenter.v1.ProviderVersion.Builder builderForValue) { + if (providerVersionsBuilder_ == null) { + ensureProviderVersionsIsMutable(); + providerVersions_.set(index, builderForValue.build()); + onChanged(); + } else { + providerVersionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Required. Required provider versions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderVersion provider_versions = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addProviderVersions(com.google.cloud.designcenter.v1.ProviderVersion value) { + if (providerVersionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProviderVersionsIsMutable(); + providerVersions_.add(value); + onChanged(); + } else { + providerVersionsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Required. Required provider versions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderVersion provider_versions = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addProviderVersions( + int index, com.google.cloud.designcenter.v1.ProviderVersion value) { + if (providerVersionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProviderVersionsIsMutable(); + providerVersions_.add(index, value); + onChanged(); + } else { + providerVersionsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Required. Required provider versions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderVersion provider_versions = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addProviderVersions( + com.google.cloud.designcenter.v1.ProviderVersion.Builder builderForValue) { + if (providerVersionsBuilder_ == null) { + ensureProviderVersionsIsMutable(); + providerVersions_.add(builderForValue.build()); + onChanged(); + } else { + providerVersionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Required. Required provider versions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderVersion provider_versions = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addProviderVersions( + int index, com.google.cloud.designcenter.v1.ProviderVersion.Builder builderForValue) { + if (providerVersionsBuilder_ == null) { + ensureProviderVersionsIsMutable(); + providerVersions_.add(index, builderForValue.build()); + onChanged(); + } else { + providerVersionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Required. Required provider versions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderVersion provider_versions = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllProviderVersions( + java.lang.Iterable values) { + if (providerVersionsBuilder_ == null) { + ensureProviderVersionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, providerVersions_); + onChanged(); + } else { + providerVersionsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Required. Required provider versions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderVersion provider_versions = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearProviderVersions() { + if (providerVersionsBuilder_ == null) { + providerVersions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + providerVersionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Required. Required provider versions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderVersion provider_versions = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeProviderVersions(int index) { + if (providerVersionsBuilder_ == null) { + ensureProviderVersionsIsMutable(); + providerVersions_.remove(index); + onChanged(); + } else { + providerVersionsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Required. Required provider versions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderVersion provider_versions = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.ProviderVersion.Builder getProviderVersionsBuilder( + int index) { + return internalGetProviderVersionsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Required. Required provider versions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderVersion provider_versions = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.ProviderVersionOrBuilder getProviderVersionsOrBuilder( + int index) { + if (providerVersionsBuilder_ == null) { + return providerVersions_.get(index); + } else { + return providerVersionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Required. Required provider versions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderVersion provider_versions = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getProviderVersionsOrBuilderList() { + if (providerVersionsBuilder_ != null) { + return providerVersionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(providerVersions_); + } + } + + /** + * + * + *
+     * Required. Required provider versions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderVersion provider_versions = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.ProviderVersion.Builder addProviderVersionsBuilder() { + return internalGetProviderVersionsFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.ProviderVersion.getDefaultInstance()); + } + + /** + * + * + *
+     * Required. Required provider versions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderVersion provider_versions = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.ProviderVersion.Builder addProviderVersionsBuilder( + int index) { + return internalGetProviderVersionsFieldBuilder() + .addBuilder(index, com.google.cloud.designcenter.v1.ProviderVersion.getDefaultInstance()); + } + + /** + * + * + *
+     * Required. Required provider versions.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderVersion provider_versions = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getProviderVersionsBuilderList() { + return internalGetProviderVersionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ProviderVersion, + com.google.cloud.designcenter.v1.ProviderVersion.Builder, + com.google.cloud.designcenter.v1.ProviderVersionOrBuilder> + internalGetProviderVersionsFieldBuilder() { + if (providerVersionsBuilder_ == null) { + providerVersionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ProviderVersion, + com.google.cloud.designcenter.v1.ProviderVersion.Builder, + com.google.cloud.designcenter.v1.ProviderVersionOrBuilder>( + providerVersions_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + providerVersions_ = null; + } + return providerVersionsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.TemplateRequirements) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.TemplateRequirements) + private static final com.google.cloud.designcenter.v1.TemplateRequirements DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.TemplateRequirements(); + } + + public static com.google.cloud.designcenter.v1.TemplateRequirements getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TemplateRequirements parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.TemplateRequirements getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateRequirementsOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateRequirementsOrBuilder.java new file mode 100644 index 000000000000..ad8bbde60608 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateRequirementsOrBuilder.java @@ -0,0 +1,160 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface TemplateRequirementsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.TemplateRequirements) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. All roles required for the component
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateRoles roles = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getRolesList(); + + /** + * + * + *
+   * Required. All roles required for the component
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateRoles roles = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.designcenter.v1.TemplateRoles getRoles(int index); + + /** + * + * + *
+   * Required. All roles required for the component
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateRoles roles = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getRolesCount(); + + /** + * + * + *
+   * Required. All roles required for the component
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateRoles roles = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getRolesOrBuilderList(); + + /** + * + * + *
+   * Required. All roles required for the component
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateRoles roles = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.designcenter.v1.TemplateRolesOrBuilder getRolesOrBuilder(int index); + + /** + * + * + *
+   * Required. Required provider versions.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderVersion provider_versions = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getProviderVersionsList(); + + /** + * + * + *
+   * Required. Required provider versions.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderVersion provider_versions = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.designcenter.v1.ProviderVersion getProviderVersions(int index); + + /** + * + * + *
+   * Required. Required provider versions.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderVersion provider_versions = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getProviderVersionsCount(); + + /** + * + * + *
+   * Required. Required provider versions.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderVersion provider_versions = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getProviderVersionsOrBuilderList(); + + /** + * + * + *
+   * Required. Required provider versions.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ProviderVersion provider_versions = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.designcenter.v1.ProviderVersionOrBuilder getProviderVersionsOrBuilder(int index); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateRoles.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateRoles.java new file mode 100644 index 000000000000..543680d1d41e --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateRoles.java @@ -0,0 +1,885 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Template Roles provide the level and roles
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.TemplateRoles} + */ +@com.google.protobuf.Generated +public final class TemplateRoles extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.TemplateRoles) + TemplateRolesOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "TemplateRoles"); + } + + // Use TemplateRoles.newBuilder() to construct. + private TemplateRoles(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private TemplateRoles() { + level_ = ""; + roles_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TemplateRoles_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TemplateRoles_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.TemplateRoles.class, + com.google.cloud.designcenter.v1.TemplateRoles.Builder.class); + } + + public static final int LEVEL_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object level_ = ""; + + /** + * + * + *
+   * Required. Level of the role.
+   * 
+ * + * string level = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The level. + */ + @java.lang.Override + public java.lang.String getLevel() { + java.lang.Object ref = level_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + level_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Level of the role.
+   * 
+ * + * string level = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for level. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLevelBytes() { + java.lang.Object ref = level_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + level_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ROLES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList roles_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Required. List of roles.
+   * 
+ * + * repeated string roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the roles. + */ + public com.google.protobuf.ProtocolStringList getRolesList() { + return roles_; + } + + /** + * + * + *
+   * Required. List of roles.
+   * 
+ * + * repeated string roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of roles. + */ + public int getRolesCount() { + return roles_.size(); + } + + /** + * + * + *
+   * Required. List of roles.
+   * 
+ * + * repeated string roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The roles at the given index. + */ + public java.lang.String getRoles(int index) { + return roles_.get(index); + } + + /** + * + * + *
+   * Required. List of roles.
+   * 
+ * + * repeated string roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the roles at the given index. + */ + public com.google.protobuf.ByteString getRolesBytes(int index) { + return roles_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(level_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, level_); + } + for (int i = 0; i < roles_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, roles_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(level_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, level_); + } + { + int dataSize = 0; + for (int i = 0; i < roles_.size(); i++) { + dataSize += computeStringSizeNoTag(roles_.getRaw(i)); + } + size += dataSize; + size += 1 * getRolesList().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.designcenter.v1.TemplateRoles)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.TemplateRoles other = + (com.google.cloud.designcenter.v1.TemplateRoles) obj; + + if (!getLevel().equals(other.getLevel())) return false; + if (!getRolesList().equals(other.getRolesList())) 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) + LEVEL_FIELD_NUMBER; + hash = (53 * hash) + getLevel().hashCode(); + if (getRolesCount() > 0) { + hash = (37 * hash) + ROLES_FIELD_NUMBER; + hash = (53 * hash) + getRolesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.TemplateRoles parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.TemplateRoles 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.designcenter.v1.TemplateRoles parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.TemplateRoles parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TemplateRoles parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.TemplateRoles parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TemplateRoles parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.TemplateRoles parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TemplateRoles parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.TemplateRoles parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TemplateRoles parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.TemplateRoles parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.TemplateRoles 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Template Roles provide the level and roles
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.TemplateRoles} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.TemplateRoles) + com.google.cloud.designcenter.v1.TemplateRolesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TemplateRoles_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TemplateRoles_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.TemplateRoles.class, + com.google.cloud.designcenter.v1.TemplateRoles.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.TemplateRoles.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + level_ = ""; + roles_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TemplateRoles_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.TemplateRoles getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.TemplateRoles.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.TemplateRoles build() { + com.google.cloud.designcenter.v1.TemplateRoles result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.TemplateRoles buildPartial() { + com.google.cloud.designcenter.v1.TemplateRoles result = + new com.google.cloud.designcenter.v1.TemplateRoles(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.TemplateRoles result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.level_ = level_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + roles_.makeImmutable(); + result.roles_ = roles_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.TemplateRoles) { + return mergeFrom((com.google.cloud.designcenter.v1.TemplateRoles) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.TemplateRoles other) { + if (other == com.google.cloud.designcenter.v1.TemplateRoles.getDefaultInstance()) return this; + if (!other.getLevel().isEmpty()) { + level_ = other.level_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.roles_.isEmpty()) { + if (roles_.isEmpty()) { + roles_ = other.roles_; + bitField0_ |= 0x00000002; + } else { + ensureRolesIsMutable(); + roles_.addAll(other.roles_); + } + 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: + { + level_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureRolesIsMutable(); + roles_.add(s); + 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 level_ = ""; + + /** + * + * + *
+     * Required. Level of the role.
+     * 
+ * + * string level = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The level. + */ + public java.lang.String getLevel() { + java.lang.Object ref = level_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + level_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Level of the role.
+     * 
+ * + * string level = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for level. + */ + public com.google.protobuf.ByteString getLevelBytes() { + java.lang.Object ref = level_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + level_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Level of the role.
+     * 
+ * + * string level = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The level to set. + * @return This builder for chaining. + */ + public Builder setLevel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + level_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Level of the role.
+     * 
+ * + * string level = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearLevel() { + level_ = getDefaultInstance().getLevel(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Level of the role.
+     * 
+ * + * string level = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for level to set. + * @return This builder for chaining. + */ + public Builder setLevelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + level_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList roles_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureRolesIsMutable() { + if (!roles_.isModifiable()) { + roles_ = new com.google.protobuf.LazyStringArrayList(roles_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
+     * Required. List of roles.
+     * 
+ * + * repeated string roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the roles. + */ + public com.google.protobuf.ProtocolStringList getRolesList() { + roles_.makeImmutable(); + return roles_; + } + + /** + * + * + *
+     * Required. List of roles.
+     * 
+ * + * repeated string roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of roles. + */ + public int getRolesCount() { + return roles_.size(); + } + + /** + * + * + *
+     * Required. List of roles.
+     * 
+ * + * repeated string roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The roles at the given index. + */ + public java.lang.String getRoles(int index) { + return roles_.get(index); + } + + /** + * + * + *
+     * Required. List of roles.
+     * 
+ * + * repeated string roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the roles at the given index. + */ + public com.google.protobuf.ByteString getRolesBytes(int index) { + return roles_.getByteString(index); + } + + /** + * + * + *
+     * Required. List of roles.
+     * 
+ * + * repeated string roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index to set the value at. + * @param value The roles to set. + * @return This builder for chaining. + */ + public Builder setRoles(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRolesIsMutable(); + roles_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. List of roles.
+     * 
+ * + * repeated string roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The roles to add. + * @return This builder for chaining. + */ + public Builder addRoles(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRolesIsMutable(); + roles_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. List of roles.
+     * 
+ * + * repeated string roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param values The roles to add. + * @return This builder for chaining. + */ + public Builder addAllRoles(java.lang.Iterable values) { + ensureRolesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, roles_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. List of roles.
+     * 
+ * + * repeated string roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearRoles() { + roles_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. List of roles.
+     * 
+ * + * repeated string roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes of the roles to add. + * @return This builder for chaining. + */ + public Builder addRolesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureRolesIsMutable(); + roles_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.TemplateRoles) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.TemplateRoles) + private static final com.google.cloud.designcenter.v1.TemplateRoles DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.TemplateRoles(); + } + + public static com.google.cloud.designcenter.v1.TemplateRoles getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TemplateRoles parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.TemplateRoles getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateRolesOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateRolesOrBuilder.java new file mode 100644 index 000000000000..b4a647859379 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateRolesOrBuilder.java @@ -0,0 +1,108 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface TemplateRolesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.TemplateRoles) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Level of the role.
+   * 
+ * + * string level = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The level. + */ + java.lang.String getLevel(); + + /** + * + * + *
+   * Required. Level of the role.
+   * 
+ * + * string level = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for level. + */ + com.google.protobuf.ByteString getLevelBytes(); + + /** + * + * + *
+   * Required. List of roles.
+   * 
+ * + * repeated string roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the roles. + */ + java.util.List getRolesList(); + + /** + * + * + *
+   * Required. List of roles.
+   * 
+ * + * repeated string roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of roles. + */ + int getRolesCount(); + + /** + * + * + *
+   * Required. List of roles.
+   * 
+ * + * repeated string roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The roles at the given index. + */ + java.lang.String getRoles(int index); + + /** + * + * + *
+   * Required. List of roles.
+   * 
+ * + * repeated string roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the roles at the given index. + */ + com.google.protobuf.ByteString getRolesBytes(int index); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateSchema.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateSchema.java new file mode 100644 index 000000000000..36bcaa4ee3e6 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateSchema.java @@ -0,0 +1,980 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * TemplateSchema provides the input variables lists and connection
+ * information.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.TemplateSchema} + */ +@com.google.protobuf.Generated +public final class TemplateSchema extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.TemplateSchema) + TemplateSchemaOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "TemplateSchema"); + } + + // Use TemplateSchema.newBuilder() to construct. + private TemplateSchema(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private TemplateSchema() { + variables_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TemplateSchema_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TemplateSchema_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.TemplateSchema.class, + com.google.cloud.designcenter.v1.TemplateSchema.Builder.class); + } + + public static final int VARIABLES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List variables_; + + /** + * + * + *
+   * Required. All defined variables for the Template
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateVariable variables = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List getVariablesList() { + return variables_; + } + + /** + * + * + *
+   * Required. All defined variables for the Template
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateVariable variables = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getVariablesOrBuilderList() { + return variables_; + } + + /** + * + * + *
+   * Required. All defined variables for the Template
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateVariable variables = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getVariablesCount() { + return variables_.size(); + } + + /** + * + * + *
+   * Required. All defined variables for the Template
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateVariable variables = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TemplateVariable getVariables(int index) { + return variables_.get(index); + } + + /** + * + * + *
+   * Required. All defined variables for the Template
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateVariable variables = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TemplateVariableOrBuilder getVariablesOrBuilder( + int index) { + return variables_.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 < variables_.size(); i++) { + output.writeMessage(1, variables_.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 < variables_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, variables_.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.designcenter.v1.TemplateSchema)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.TemplateSchema other = + (com.google.cloud.designcenter.v1.TemplateSchema) obj; + + if (!getVariablesList().equals(other.getVariablesList())) 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 (getVariablesCount() > 0) { + hash = (37 * hash) + VARIABLES_FIELD_NUMBER; + hash = (53 * hash) + getVariablesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.TemplateSchema parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.TemplateSchema 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.designcenter.v1.TemplateSchema parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.TemplateSchema parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TemplateSchema parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.TemplateSchema parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TemplateSchema parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.TemplateSchema parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TemplateSchema parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.TemplateSchema parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TemplateSchema parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.TemplateSchema parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.TemplateSchema 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * TemplateSchema provides the input variables lists and connection
+   * information.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.TemplateSchema} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.TemplateSchema) + com.google.cloud.designcenter.v1.TemplateSchemaOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TemplateSchema_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TemplateSchema_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.TemplateSchema.class, + com.google.cloud.designcenter.v1.TemplateSchema.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.TemplateSchema.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (variablesBuilder_ == null) { + variables_ = java.util.Collections.emptyList(); + } else { + variables_ = null; + variablesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TemplateSchema_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.TemplateSchema getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.TemplateSchema.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.TemplateSchema build() { + com.google.cloud.designcenter.v1.TemplateSchema result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.TemplateSchema buildPartial() { + com.google.cloud.designcenter.v1.TemplateSchema result = + new com.google.cloud.designcenter.v1.TemplateSchema(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.designcenter.v1.TemplateSchema result) { + if (variablesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + variables_ = java.util.Collections.unmodifiableList(variables_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.variables_ = variables_; + } else { + result.variables_ = variablesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.designcenter.v1.TemplateSchema result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.TemplateSchema) { + return mergeFrom((com.google.cloud.designcenter.v1.TemplateSchema) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.TemplateSchema other) { + if (other == com.google.cloud.designcenter.v1.TemplateSchema.getDefaultInstance()) + return this; + if (variablesBuilder_ == null) { + if (!other.variables_.isEmpty()) { + if (variables_.isEmpty()) { + variables_ = other.variables_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureVariablesIsMutable(); + variables_.addAll(other.variables_); + } + onChanged(); + } + } else { + if (!other.variables_.isEmpty()) { + if (variablesBuilder_.isEmpty()) { + variablesBuilder_.dispose(); + variablesBuilder_ = null; + variables_ = other.variables_; + bitField0_ = (bitField0_ & ~0x00000001); + variablesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetVariablesFieldBuilder() + : null; + } else { + variablesBuilder_.addAllMessages(other.variables_); + } + } + } + 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.designcenter.v1.TemplateVariable m = + input.readMessage( + com.google.cloud.designcenter.v1.TemplateVariable.parser(), + extensionRegistry); + if (variablesBuilder_ == null) { + ensureVariablesIsMutable(); + variables_.add(m); + } else { + variablesBuilder_.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 variables_ = + java.util.Collections.emptyList(); + + private void ensureVariablesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + variables_ = + new java.util.ArrayList(variables_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.TemplateVariable, + com.google.cloud.designcenter.v1.TemplateVariable.Builder, + com.google.cloud.designcenter.v1.TemplateVariableOrBuilder> + variablesBuilder_; + + /** + * + * + *
+     * Required. All defined variables for the Template
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateVariable variables = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List getVariablesList() { + if (variablesBuilder_ == null) { + return java.util.Collections.unmodifiableList(variables_); + } else { + return variablesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Required. All defined variables for the Template
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateVariable variables = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getVariablesCount() { + if (variablesBuilder_ == null) { + return variables_.size(); + } else { + return variablesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Required. All defined variables for the Template
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateVariable variables = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.TemplateVariable getVariables(int index) { + if (variablesBuilder_ == null) { + return variables_.get(index); + } else { + return variablesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Required. All defined variables for the Template
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateVariable variables = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setVariables( + int index, com.google.cloud.designcenter.v1.TemplateVariable value) { + if (variablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVariablesIsMutable(); + variables_.set(index, value); + onChanged(); + } else { + variablesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Required. All defined variables for the Template
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateVariable variables = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setVariables( + int index, com.google.cloud.designcenter.v1.TemplateVariable.Builder builderForValue) { + if (variablesBuilder_ == null) { + ensureVariablesIsMutable(); + variables_.set(index, builderForValue.build()); + onChanged(); + } else { + variablesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Required. All defined variables for the Template
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateVariable variables = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addVariables(com.google.cloud.designcenter.v1.TemplateVariable value) { + if (variablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVariablesIsMutable(); + variables_.add(value); + onChanged(); + } else { + variablesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Required. All defined variables for the Template
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateVariable variables = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addVariables( + int index, com.google.cloud.designcenter.v1.TemplateVariable value) { + if (variablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVariablesIsMutable(); + variables_.add(index, value); + onChanged(); + } else { + variablesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Required. All defined variables for the Template
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateVariable variables = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addVariables( + com.google.cloud.designcenter.v1.TemplateVariable.Builder builderForValue) { + if (variablesBuilder_ == null) { + ensureVariablesIsMutable(); + variables_.add(builderForValue.build()); + onChanged(); + } else { + variablesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Required. All defined variables for the Template
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateVariable variables = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addVariables( + int index, com.google.cloud.designcenter.v1.TemplateVariable.Builder builderForValue) { + if (variablesBuilder_ == null) { + ensureVariablesIsMutable(); + variables_.add(index, builderForValue.build()); + onChanged(); + } else { + variablesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Required. All defined variables for the Template
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateVariable variables = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllVariables( + java.lang.Iterable values) { + if (variablesBuilder_ == null) { + ensureVariablesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, variables_); + onChanged(); + } else { + variablesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Required. All defined variables for the Template
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateVariable variables = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearVariables() { + if (variablesBuilder_ == null) { + variables_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + variablesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Required. All defined variables for the Template
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateVariable variables = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeVariables(int index) { + if (variablesBuilder_ == null) { + ensureVariablesIsMutable(); + variables_.remove(index); + onChanged(); + } else { + variablesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Required. All defined variables for the Template
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateVariable variables = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.TemplateVariable.Builder getVariablesBuilder( + int index) { + return internalGetVariablesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Required. All defined variables for the Template
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateVariable variables = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.TemplateVariableOrBuilder getVariablesOrBuilder( + int index) { + if (variablesBuilder_ == null) { + return variables_.get(index); + } else { + return variablesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Required. All defined variables for the Template
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateVariable variables = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getVariablesOrBuilderList() { + if (variablesBuilder_ != null) { + return variablesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(variables_); + } + } + + /** + * + * + *
+     * Required. All defined variables for the Template
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateVariable variables = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.TemplateVariable.Builder addVariablesBuilder() { + return internalGetVariablesFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.TemplateVariable.getDefaultInstance()); + } + + /** + * + * + *
+     * Required. All defined variables for the Template
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateVariable variables = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.TemplateVariable.Builder addVariablesBuilder( + int index) { + return internalGetVariablesFieldBuilder() + .addBuilder( + index, com.google.cloud.designcenter.v1.TemplateVariable.getDefaultInstance()); + } + + /** + * + * + *
+     * Required. All defined variables for the Template
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateVariable variables = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getVariablesBuilderList() { + return internalGetVariablesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.TemplateVariable, + com.google.cloud.designcenter.v1.TemplateVariable.Builder, + com.google.cloud.designcenter.v1.TemplateVariableOrBuilder> + internalGetVariablesFieldBuilder() { + if (variablesBuilder_ == null) { + variablesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.TemplateVariable, + com.google.cloud.designcenter.v1.TemplateVariable.Builder, + com.google.cloud.designcenter.v1.TemplateVariableOrBuilder>( + variables_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + variables_ = null; + } + return variablesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.TemplateSchema) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.TemplateSchema) + private static final com.google.cloud.designcenter.v1.TemplateSchema DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.TemplateSchema(); + } + + public static com.google.cloud.designcenter.v1.TemplateSchema getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TemplateSchema parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.TemplateSchema getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateSchemaOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateSchemaOrBuilder.java new file mode 100644 index 000000000000..22f2978ebdff --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateSchemaOrBuilder.java @@ -0,0 +1,94 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface TemplateSchemaOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.TemplateSchema) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. All defined variables for the Template
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateVariable variables = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getVariablesList(); + + /** + * + * + *
+   * Required. All defined variables for the Template
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateVariable variables = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.designcenter.v1.TemplateVariable getVariables(int index); + + /** + * + * + *
+   * Required. All defined variables for the Template
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateVariable variables = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getVariablesCount(); + + /** + * + * + *
+   * Required. All defined variables for the Template
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateVariable variables = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getVariablesOrBuilderList(); + + /** + * + * + *
+   * Required. All defined variables for the Template
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateVariable variables = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.designcenter.v1.TemplateVariableOrBuilder getVariablesOrBuilder(int index); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateType.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateType.java new file mode 100644 index 000000000000..2857cf482338 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateType.java @@ -0,0 +1,383 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/enums.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Assembly template types.
+ * 
+ * + * Protobuf enum {@code google.cloud.designcenter.v1.TemplateType} + */ +@com.google.protobuf.Generated +public enum TemplateType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Default.
+   * 
+ * + * TEMPLATE_TYPE_UNSPECIFIED = 0; + */ + TEMPLATE_TYPE_UNSPECIFIED(0), + /** + * + * + *
+   * A service template is an App Hub service.
+   * 
+ * + * SERVICE = 1; + */ + SERVICE(1), + /** + * + * + *
+   * A workload template is an App Hub workload.
+   * 
+ * + * WORKLOAD = 2; + */ + WORKLOAD(2), + /** + * + * + *
+   * An asset template can be used to provision resources that are not services
+   * or workloads.
+   * 
+ * + * ASSET = 3; + */ + ASSET(3), + /** + * + * + *
+   * An application template is a composition of workload/service/asset
+   * templates.
+   * 
+ * + * APPLICATION = 4 [deprecated = true]; + */ + @java.lang.Deprecated + APPLICATION(4), + /** + * + * + *
+   * A Jumpstart Solution template.
+   * 
+ * + * JSS_SOLUTION = 5 [deprecated = true]; + */ + @java.lang.Deprecated + JSS_SOLUTION(5), + /** + * + * + *
+   * A service data source template.
+   * 
+ * + * SERVICE_DATA_SOURCE = 6 [deprecated = true]; + */ + @java.lang.Deprecated + SERVICE_DATA_SOURCE(6), + /** + * + * + *
+   * A helm chart based template.
+   * 
+ * + * HELM_APPLICATION = 7 [deprecated = true]; + */ + @java.lang.Deprecated + HELM_APPLICATION(7), + /** + * + * + *
+   * A standard application template.
+   * 
+ * + * STANDARD_APPLICATION_TEMPLATE = 8; + */ + STANDARD_APPLICATION_TEMPLATE(8), + /** + * + * + *
+   * A composite application template.
+   * 
+ * + * COMPOSITE_APPLICATION_TEMPLATE = 9; + */ + COMPOSITE_APPLICATION_TEMPLATE(9), + /** + * + * + *
+   * A helm chart based template.
+   * 
+ * + * HELM_CHART = 10; + */ + HELM_CHART(10), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "TemplateType"); + } + + /** + * + * + *
+   * Default.
+   * 
+ * + * TEMPLATE_TYPE_UNSPECIFIED = 0; + */ + public static final int TEMPLATE_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+   * A service template is an App Hub service.
+   * 
+ * + * SERVICE = 1; + */ + public static final int SERVICE_VALUE = 1; + + /** + * + * + *
+   * A workload template is an App Hub workload.
+   * 
+ * + * WORKLOAD = 2; + */ + public static final int WORKLOAD_VALUE = 2; + + /** + * + * + *
+   * An asset template can be used to provision resources that are not services
+   * or workloads.
+   * 
+ * + * ASSET = 3; + */ + public static final int ASSET_VALUE = 3; + + /** + * + * + *
+   * An application template is a composition of workload/service/asset
+   * templates.
+   * 
+ * + * APPLICATION = 4 [deprecated = true]; + */ + @java.lang.Deprecated public static final int APPLICATION_VALUE = 4; + + /** + * + * + *
+   * A Jumpstart Solution template.
+   * 
+ * + * JSS_SOLUTION = 5 [deprecated = true]; + */ + @java.lang.Deprecated public static final int JSS_SOLUTION_VALUE = 5; + + /** + * + * + *
+   * A service data source template.
+   * 
+ * + * SERVICE_DATA_SOURCE = 6 [deprecated = true]; + */ + @java.lang.Deprecated public static final int SERVICE_DATA_SOURCE_VALUE = 6; + + /** + * + * + *
+   * A helm chart based template.
+   * 
+ * + * HELM_APPLICATION = 7 [deprecated = true]; + */ + @java.lang.Deprecated public static final int HELM_APPLICATION_VALUE = 7; + + /** + * + * + *
+   * A standard application template.
+   * 
+ * + * STANDARD_APPLICATION_TEMPLATE = 8; + */ + public static final int STANDARD_APPLICATION_TEMPLATE_VALUE = 8; + + /** + * + * + *
+   * A composite application template.
+   * 
+ * + * COMPOSITE_APPLICATION_TEMPLATE = 9; + */ + public static final int COMPOSITE_APPLICATION_TEMPLATE_VALUE = 9; + + /** + * + * + *
+   * A helm chart based template.
+   * 
+ * + * HELM_CHART = 10; + */ + public static final int HELM_CHART_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 TemplateType 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 TemplateType forNumber(int value) { + switch (value) { + case 0: + return TEMPLATE_TYPE_UNSPECIFIED; + case 1: + return SERVICE; + case 2: + return WORKLOAD; + case 3: + return ASSET; + case 4: + return APPLICATION; + case 5: + return JSS_SOLUTION; + case 6: + return SERVICE_DATA_SOURCE; + case 7: + return HELM_APPLICATION; + case 8: + return STANDARD_APPLICATION_TEMPLATE; + case 9: + return COMPOSITE_APPLICATION_TEMPLATE; + case 10: + return HELM_CHART; + 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 TemplateType findValueByNumber(int number) { + return TemplateType.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.designcenter.v1.EnumsProto.getDescriptor().getEnumTypes().get(4); + } + + private static final TemplateType[] VALUES = values(); + + public static TemplateType 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 TemplateType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.designcenter.v1.TemplateType) +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateUi.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateUi.java new file mode 100644 index 000000000000..3c6a3abb753c --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateUi.java @@ -0,0 +1,1050 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * TemplateUi defines the UI related information for the Template.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.TemplateUi} + */ +@com.google.protobuf.Generated +public final class TemplateUi extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.TemplateUi) + TemplateUiOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "TemplateUi"); + } + + // Use TemplateUi.newBuilder() to construct. + private TemplateUi(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private TemplateUi() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TemplateUi_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TemplateUi_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.TemplateUi.class, + com.google.cloud.designcenter.v1.TemplateUi.Builder.class); + } + + private int bitField0_; + public static final int INPUT_FIELD_NUMBER = 1; + private com.google.cloud.designcenter.v1.TemplateUiInput input_; + + /** + * + * + *
+   * Required. The top-level input section that defines the list of variables
+   * and their sections on the deployment page.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TemplateUiInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the input field is set. + */ + @java.lang.Override + public boolean hasInput() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The top-level input section that defines the list of variables
+   * and their sections on the deployment page.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TemplateUiInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The input. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TemplateUiInput getInput() { + return input_ == null + ? com.google.cloud.designcenter.v1.TemplateUiInput.getDefaultInstance() + : input_; + } + + /** + * + * + *
+   * Required. The top-level input section that defines the list of variables
+   * and their sections on the deployment page.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TemplateUiInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TemplateUiInputOrBuilder getInputOrBuilder() { + return input_ == null + ? com.google.cloud.designcenter.v1.TemplateUiInput.getDefaultInstance() + : input_; + } + + public static final int RUNTIME_FIELD_NUMBER = 2; + private com.google.cloud.designcenter.v1.TemplateUiOutput runtime_; + + /** + * + * + *
+   * Optional. The top-level output section that defines the list of outputs and
+   * their visibility on the deployment page.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TemplateUiOutput runtime = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the runtime field is set. + */ + @java.lang.Override + public boolean hasRuntime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. The top-level output section that defines the list of outputs and
+   * their visibility on the deployment page.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TemplateUiOutput runtime = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The runtime. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TemplateUiOutput getRuntime() { + return runtime_ == null + ? com.google.cloud.designcenter.v1.TemplateUiOutput.getDefaultInstance() + : runtime_; + } + + /** + * + * + *
+   * Optional. The top-level output section that defines the list of outputs and
+   * their visibility on the deployment page.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TemplateUiOutput runtime = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TemplateUiOutputOrBuilder getRuntimeOrBuilder() { + return runtime_ == null + ? com.google.cloud.designcenter.v1.TemplateUiOutput.getDefaultInstance() + : runtime_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getInput()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getRuntime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInput()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRuntime()); + } + 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.designcenter.v1.TemplateUi)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.TemplateUi other = + (com.google.cloud.designcenter.v1.TemplateUi) obj; + + if (hasInput() != other.hasInput()) return false; + if (hasInput()) { + if (!getInput().equals(other.getInput())) return false; + } + if (hasRuntime() != other.hasRuntime()) return false; + if (hasRuntime()) { + if (!getRuntime().equals(other.getRuntime())) 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 (hasInput()) { + hash = (37 * hash) + INPUT_FIELD_NUMBER; + hash = (53 * hash) + getInput().hashCode(); + } + if (hasRuntime()) { + hash = (37 * hash) + RUNTIME_FIELD_NUMBER; + hash = (53 * hash) + getRuntime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.TemplateUi parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.TemplateUi 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.designcenter.v1.TemplateUi parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.TemplateUi parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TemplateUi parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.TemplateUi parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TemplateUi parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.TemplateUi parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TemplateUi parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.TemplateUi parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TemplateUi parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.TemplateUi parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.TemplateUi 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * TemplateUi defines the UI related information for the Template.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.TemplateUi} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.TemplateUi) + com.google.cloud.designcenter.v1.TemplateUiOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TemplateUi_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TemplateUi_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.TemplateUi.class, + com.google.cloud.designcenter.v1.TemplateUi.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.TemplateUi.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetInputFieldBuilder(); + internalGetRuntimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + input_ = null; + if (inputBuilder_ != null) { + inputBuilder_.dispose(); + inputBuilder_ = null; + } + runtime_ = null; + if (runtimeBuilder_ != null) { + runtimeBuilder_.dispose(); + runtimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TemplateUi_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.TemplateUi getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.TemplateUi.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.TemplateUi build() { + com.google.cloud.designcenter.v1.TemplateUi result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.TemplateUi buildPartial() { + com.google.cloud.designcenter.v1.TemplateUi result = + new com.google.cloud.designcenter.v1.TemplateUi(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.TemplateUi result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.input_ = inputBuilder_ == null ? input_ : inputBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.runtime_ = runtimeBuilder_ == null ? runtime_ : runtimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.TemplateUi) { + return mergeFrom((com.google.cloud.designcenter.v1.TemplateUi) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.TemplateUi other) { + if (other == com.google.cloud.designcenter.v1.TemplateUi.getDefaultInstance()) return this; + if (other.hasInput()) { + mergeInput(other.getInput()); + } + if (other.hasRuntime()) { + mergeRuntime(other.getRuntime()); + } + 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(internalGetInputFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(internalGetRuntimeFieldBuilder().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.designcenter.v1.TemplateUiInput input_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.TemplateUiInput, + com.google.cloud.designcenter.v1.TemplateUiInput.Builder, + com.google.cloud.designcenter.v1.TemplateUiInputOrBuilder> + inputBuilder_; + + /** + * + * + *
+     * Required. The top-level input section that defines the list of variables
+     * and their sections on the deployment page.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateUiInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the input field is set. + */ + public boolean hasInput() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Required. The top-level input section that defines the list of variables
+     * and their sections on the deployment page.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateUiInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The input. + */ + public com.google.cloud.designcenter.v1.TemplateUiInput getInput() { + if (inputBuilder_ == null) { + return input_ == null + ? com.google.cloud.designcenter.v1.TemplateUiInput.getDefaultInstance() + : input_; + } else { + return inputBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The top-level input section that defines the list of variables
+     * and their sections on the deployment page.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateUiInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInput(com.google.cloud.designcenter.v1.TemplateUiInput value) { + if (inputBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + input_ = value; + } else { + inputBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The top-level input section that defines the list of variables
+     * and their sections on the deployment page.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateUiInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInput( + com.google.cloud.designcenter.v1.TemplateUiInput.Builder builderForValue) { + if (inputBuilder_ == null) { + input_ = builderForValue.build(); + } else { + inputBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The top-level input section that defines the list of variables
+     * and their sections on the deployment page.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateUiInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeInput(com.google.cloud.designcenter.v1.TemplateUiInput value) { + if (inputBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && input_ != null + && input_ != com.google.cloud.designcenter.v1.TemplateUiInput.getDefaultInstance()) { + getInputBuilder().mergeFrom(value); + } else { + input_ = value; + } + } else { + inputBuilder_.mergeFrom(value); + } + if (input_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The top-level input section that defines the list of variables
+     * and their sections on the deployment page.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateUiInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearInput() { + bitField0_ = (bitField0_ & ~0x00000001); + input_ = null; + if (inputBuilder_ != null) { + inputBuilder_.dispose(); + inputBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The top-level input section that defines the list of variables
+     * and their sections on the deployment page.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateUiInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.TemplateUiInput.Builder getInputBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetInputFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The top-level input section that defines the list of variables
+     * and their sections on the deployment page.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateUiInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.TemplateUiInputOrBuilder getInputOrBuilder() { + if (inputBuilder_ != null) { + return inputBuilder_.getMessageOrBuilder(); + } else { + return input_ == null + ? com.google.cloud.designcenter.v1.TemplateUiInput.getDefaultInstance() + : input_; + } + } + + /** + * + * + *
+     * Required. The top-level input section that defines the list of variables
+     * and their sections on the deployment page.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateUiInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.TemplateUiInput, + com.google.cloud.designcenter.v1.TemplateUiInput.Builder, + com.google.cloud.designcenter.v1.TemplateUiInputOrBuilder> + internalGetInputFieldBuilder() { + if (inputBuilder_ == null) { + inputBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.TemplateUiInput, + com.google.cloud.designcenter.v1.TemplateUiInput.Builder, + com.google.cloud.designcenter.v1.TemplateUiInputOrBuilder>( + getInput(), getParentForChildren(), isClean()); + input_ = null; + } + return inputBuilder_; + } + + private com.google.cloud.designcenter.v1.TemplateUiOutput runtime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.TemplateUiOutput, + com.google.cloud.designcenter.v1.TemplateUiOutput.Builder, + com.google.cloud.designcenter.v1.TemplateUiOutputOrBuilder> + runtimeBuilder_; + + /** + * + * + *
+     * Optional. The top-level output section that defines the list of outputs and
+     * their visibility on the deployment page.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateUiOutput runtime = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the runtime field is set. + */ + public boolean hasRuntime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Optional. The top-level output section that defines the list of outputs and
+     * their visibility on the deployment page.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateUiOutput runtime = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The runtime. + */ + public com.google.cloud.designcenter.v1.TemplateUiOutput getRuntime() { + if (runtimeBuilder_ == null) { + return runtime_ == null + ? com.google.cloud.designcenter.v1.TemplateUiOutput.getDefaultInstance() + : runtime_; + } else { + return runtimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The top-level output section that defines the list of outputs and
+     * their visibility on the deployment page.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateUiOutput runtime = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRuntime(com.google.cloud.designcenter.v1.TemplateUiOutput value) { + if (runtimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + runtime_ = value; + } else { + runtimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The top-level output section that defines the list of outputs and
+     * their visibility on the deployment page.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateUiOutput runtime = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRuntime( + com.google.cloud.designcenter.v1.TemplateUiOutput.Builder builderForValue) { + if (runtimeBuilder_ == null) { + runtime_ = builderForValue.build(); + } else { + runtimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The top-level output section that defines the list of outputs and
+     * their visibility on the deployment page.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateUiOutput runtime = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeRuntime(com.google.cloud.designcenter.v1.TemplateUiOutput value) { + if (runtimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && runtime_ != null + && runtime_ != com.google.cloud.designcenter.v1.TemplateUiOutput.getDefaultInstance()) { + getRuntimeBuilder().mergeFrom(value); + } else { + runtime_ = value; + } + } else { + runtimeBuilder_.mergeFrom(value); + } + if (runtime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The top-level output section that defines the list of outputs and
+     * their visibility on the deployment page.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateUiOutput runtime = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearRuntime() { + bitField0_ = (bitField0_ & ~0x00000002); + runtime_ = null; + if (runtimeBuilder_ != null) { + runtimeBuilder_.dispose(); + runtimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The top-level output section that defines the list of outputs and
+     * their visibility on the deployment page.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateUiOutput runtime = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.TemplateUiOutput.Builder getRuntimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetRuntimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The top-level output section that defines the list of outputs and
+     * their visibility on the deployment page.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateUiOutput runtime = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.TemplateUiOutputOrBuilder getRuntimeOrBuilder() { + if (runtimeBuilder_ != null) { + return runtimeBuilder_.getMessageOrBuilder(); + } else { + return runtime_ == null + ? com.google.cloud.designcenter.v1.TemplateUiOutput.getDefaultInstance() + : runtime_; + } + } + + /** + * + * + *
+     * Optional. The top-level output section that defines the list of outputs and
+     * their visibility on the deployment page.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TemplateUiOutput runtime = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.TemplateUiOutput, + com.google.cloud.designcenter.v1.TemplateUiOutput.Builder, + com.google.cloud.designcenter.v1.TemplateUiOutputOrBuilder> + internalGetRuntimeFieldBuilder() { + if (runtimeBuilder_ == null) { + runtimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.TemplateUiOutput, + com.google.cloud.designcenter.v1.TemplateUiOutput.Builder, + com.google.cloud.designcenter.v1.TemplateUiOutputOrBuilder>( + getRuntime(), getParentForChildren(), isClean()); + runtime_ = null; + } + return runtimeBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.TemplateUi) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.TemplateUi) + private static final com.google.cloud.designcenter.v1.TemplateUi DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.TemplateUi(); + } + + public static com.google.cloud.designcenter.v1.TemplateUi getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TemplateUi parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.TemplateUi getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateUiInput.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateUiInput.java new file mode 100644 index 000000000000..8b0bc879d10f --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateUiInput.java @@ -0,0 +1,872 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * TemplateUiInput defines the list of variables and their sections on the
+ * deployment page.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.TemplateUiInput} + */ +@com.google.protobuf.Generated +public final class TemplateUiInput extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.TemplateUiInput) + TemplateUiInputOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "TemplateUiInput"); + } + + // Use TemplateUiInput.newBuilder() to construct. + private TemplateUiInput(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private TemplateUiInput() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TemplateUiInput_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetVariables(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TemplateUiInput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.TemplateUiInput.class, + com.google.cloud.designcenter.v1.TemplateUiInput.Builder.class); + } + + public static final int VARIABLES_FIELD_NUMBER = 1; + + private static final class VariablesDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.designcenter.v1.DisplayVariable> + defaultEntry = + com.google.protobuf.MapEntry + . + newDefaultInstance( + com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TemplateUiInput_VariablesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.designcenter.v1.DisplayVariable.getDefaultInstance()); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.designcenter.v1.DisplayVariable> + variables_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.designcenter.v1.DisplayVariable> + internalGetVariables() { + if (variables_ == null) { + return com.google.protobuf.MapField.emptyMapField(VariablesDefaultEntryHolder.defaultEntry); + } + return variables_; + } + + public int getVariablesCount() { + return internalGetVariables().getMap().size(); + } + + /** + * + * + *
+   * Required. variables is a map defining all inputs on the UI.
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.DisplayVariable> variables = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public boolean containsVariables(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetVariables().getMap().containsKey(key); + } + + /** Use {@link #getVariablesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getVariables() { + return getVariablesMap(); + } + + /** + * + * + *
+   * Required. variables is a map defining all inputs on the UI.
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.DisplayVariable> variables = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.Map + getVariablesMap() { + return internalGetVariables().getMap(); + } + + /** + * + * + *
+   * Required. variables is a map defining all inputs on the UI.
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.DisplayVariable> variables = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.designcenter.v1.DisplayVariable getVariablesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.designcenter.v1.DisplayVariable defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetVariables().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+   * Required. variables is a map defining all inputs on the UI.
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.DisplayVariable> variables = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.DisplayVariable getVariablesOrThrow( + java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetVariables().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetVariables(), VariablesDefaultEntryHolder.defaultEntry, 1); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry + entry : internalGetVariables().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.designcenter.v1.DisplayVariable> + variables__ = + VariablesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, variables__); + } + 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.designcenter.v1.TemplateUiInput)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.TemplateUiInput other = + (com.google.cloud.designcenter.v1.TemplateUiInput) obj; + + if (!internalGetVariables().equals(other.internalGetVariables())) 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 (!internalGetVariables().getMap().isEmpty()) { + hash = (37 * hash) + VARIABLES_FIELD_NUMBER; + hash = (53 * hash) + internalGetVariables().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.TemplateUiInput parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.TemplateUiInput 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.designcenter.v1.TemplateUiInput parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.TemplateUiInput parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TemplateUiInput parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.TemplateUiInput parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TemplateUiInput parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.TemplateUiInput parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TemplateUiInput parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.TemplateUiInput parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TemplateUiInput parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.TemplateUiInput parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.TemplateUiInput 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * TemplateUiInput defines the list of variables and their sections on the
+   * deployment page.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.TemplateUiInput} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.TemplateUiInput) + com.google.cloud.designcenter.v1.TemplateUiInputOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TemplateUiInput_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetVariables(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetMutableVariables(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TemplateUiInput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.TemplateUiInput.class, + com.google.cloud.designcenter.v1.TemplateUiInput.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.TemplateUiInput.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + internalGetMutableVariables().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TemplateUiInput_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.TemplateUiInput getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.TemplateUiInput.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.TemplateUiInput build() { + com.google.cloud.designcenter.v1.TemplateUiInput result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.TemplateUiInput buildPartial() { + com.google.cloud.designcenter.v1.TemplateUiInput result = + new com.google.cloud.designcenter.v1.TemplateUiInput(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.TemplateUiInput result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.variables_ = internalGetVariables().build(VariablesDefaultEntryHolder.defaultEntry); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.TemplateUiInput) { + return mergeFrom((com.google.cloud.designcenter.v1.TemplateUiInput) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.TemplateUiInput other) { + if (other == com.google.cloud.designcenter.v1.TemplateUiInput.getDefaultInstance()) + return this; + internalGetMutableVariables().mergeFrom(other.internalGetVariables()); + bitField0_ |= 0x00000001; + 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.protobuf.MapEntry< + java.lang.String, com.google.cloud.designcenter.v1.DisplayVariable> + variables__ = + input.readMessage( + VariablesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableVariables() + .ensureBuilderMap() + .put(variables__.getKey(), variables__.getValue()); + 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 static final class VariablesConverter + implements com.google.protobuf.MapFieldBuilder.Converter< + java.lang.String, + com.google.cloud.designcenter.v1.DisplayVariableOrBuilder, + com.google.cloud.designcenter.v1.DisplayVariable> { + @java.lang.Override + public com.google.cloud.designcenter.v1.DisplayVariable build( + com.google.cloud.designcenter.v1.DisplayVariableOrBuilder val) { + if (val instanceof com.google.cloud.designcenter.v1.DisplayVariable) { + return (com.google.cloud.designcenter.v1.DisplayVariable) val; + } + return ((com.google.cloud.designcenter.v1.DisplayVariable.Builder) val).build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.designcenter.v1.DisplayVariable> + defaultEntry() { + return VariablesDefaultEntryHolder.defaultEntry; + } + } + ; + + private static final VariablesConverter variablesConverter = new VariablesConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.designcenter.v1.DisplayVariableOrBuilder, + com.google.cloud.designcenter.v1.DisplayVariable, + com.google.cloud.designcenter.v1.DisplayVariable.Builder> + variables_; + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.designcenter.v1.DisplayVariableOrBuilder, + com.google.cloud.designcenter.v1.DisplayVariable, + com.google.cloud.designcenter.v1.DisplayVariable.Builder> + internalGetVariables() { + if (variables_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(variablesConverter); + } + return variables_; + } + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.designcenter.v1.DisplayVariableOrBuilder, + com.google.cloud.designcenter.v1.DisplayVariable, + com.google.cloud.designcenter.v1.DisplayVariable.Builder> + internalGetMutableVariables() { + if (variables_ == null) { + variables_ = new com.google.protobuf.MapFieldBuilder<>(variablesConverter); + } + bitField0_ |= 0x00000001; + onChanged(); + return variables_; + } + + public int getVariablesCount() { + return internalGetVariables().ensureBuilderMap().size(); + } + + /** + * + * + *
+     * Required. variables is a map defining all inputs on the UI.
+     * 
+ * + * + * map<string, .google.cloud.designcenter.v1.DisplayVariable> variables = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public boolean containsVariables(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetVariables().ensureBuilderMap().containsKey(key); + } + + /** Use {@link #getVariablesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getVariables() { + return getVariablesMap(); + } + + /** + * + * + *
+     * Required. variables is a map defining all inputs on the UI.
+     * 
+ * + * + * map<string, .google.cloud.designcenter.v1.DisplayVariable> variables = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.Map + getVariablesMap() { + return internalGetVariables().getImmutableMap(); + } + + /** + * + * + *
+     * Required. variables is a map defining all inputs on the UI.
+     * 
+ * + * + * map<string, .google.cloud.designcenter.v1.DisplayVariable> variables = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.designcenter.v1.DisplayVariable getVariablesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.designcenter.v1.DisplayVariable defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetMutableVariables().ensureBuilderMap(); + return map.containsKey(key) ? variablesConverter.build(map.get(key)) : defaultValue; + } + + /** + * + * + *
+     * Required. variables is a map defining all inputs on the UI.
+     * 
+ * + * + * map<string, .google.cloud.designcenter.v1.DisplayVariable> variables = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.DisplayVariable getVariablesOrThrow( + java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetMutableVariables().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return variablesConverter.build(map.get(key)); + } + + public Builder clearVariables() { + bitField0_ = (bitField0_ & ~0x00000001); + internalGetMutableVariables().clear(); + return this; + } + + /** + * + * + *
+     * Required. variables is a map defining all inputs on the UI.
+     * 
+ * + * + * map<string, .google.cloud.designcenter.v1.DisplayVariable> variables = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeVariables(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableVariables().ensureBuilderMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map + getMutableVariables() { + bitField0_ |= 0x00000001; + return internalGetMutableVariables().ensureMessageMap(); + } + + /** + * + * + *
+     * Required. variables is a map defining all inputs on the UI.
+     * 
+ * + * + * map<string, .google.cloud.designcenter.v1.DisplayVariable> variables = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder putVariables( + java.lang.String key, com.google.cloud.designcenter.v1.DisplayVariable value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableVariables().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00000001; + return this; + } + + /** + * + * + *
+     * Required. variables is a map defining all inputs on the UI.
+     * 
+ * + * + * map<string, .google.cloud.designcenter.v1.DisplayVariable> variables = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder putAllVariables( + java.util.Map values) { + for (java.util.Map.Entry + e : values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableVariables().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00000001; + return this; + } + + /** + * + * + *
+     * Required. variables is a map defining all inputs on the UI.
+     * 
+ * + * + * map<string, .google.cloud.designcenter.v1.DisplayVariable> variables = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.DisplayVariable.Builder putVariablesBuilderIfAbsent( + java.lang.String key) { + java.util.Map + builderMap = internalGetMutableVariables().ensureBuilderMap(); + com.google.cloud.designcenter.v1.DisplayVariableOrBuilder entry = builderMap.get(key); + if (entry == null) { + entry = com.google.cloud.designcenter.v1.DisplayVariable.newBuilder(); + builderMap.put(key, entry); + } + if (entry instanceof com.google.cloud.designcenter.v1.DisplayVariable) { + entry = ((com.google.cloud.designcenter.v1.DisplayVariable) entry).toBuilder(); + builderMap.put(key, entry); + } + return (com.google.cloud.designcenter.v1.DisplayVariable.Builder) entry; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.TemplateUiInput) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.TemplateUiInput) + private static final com.google.cloud.designcenter.v1.TemplateUiInput DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.TemplateUiInput(); + } + + public static com.google.cloud.designcenter.v1.TemplateUiInput getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TemplateUiInput parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.TemplateUiInput getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateUiInputOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateUiInputOrBuilder.java new file mode 100644 index 000000000000..f1f8a48e4290 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateUiInputOrBuilder.java @@ -0,0 +1,102 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface TemplateUiInputOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.TemplateUiInput) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. variables is a map defining all inputs on the UI.
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.DisplayVariable> variables = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getVariablesCount(); + + /** + * + * + *
+   * Required. variables is a map defining all inputs on the UI.
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.DisplayVariable> variables = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + boolean containsVariables(java.lang.String key); + + /** Use {@link #getVariablesMap()} instead. */ + @java.lang.Deprecated + java.util.Map getVariables(); + + /** + * + * + *
+   * Required. variables is a map defining all inputs on the UI.
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.DisplayVariable> variables = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.Map + getVariablesMap(); + + /** + * + * + *
+   * Required. variables is a map defining all inputs on the UI.
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.DisplayVariable> variables = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + /* nullable */ + com.google.cloud.designcenter.v1.DisplayVariable getVariablesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.designcenter.v1.DisplayVariable defaultValue); + + /** + * + * + *
+   * Required. variables is a map defining all inputs on the UI.
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.DisplayVariable> variables = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.designcenter.v1.DisplayVariable getVariablesOrThrow(java.lang.String key); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateUiOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateUiOrBuilder.java new file mode 100644 index 000000000000..eec754a5f9f6 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateUiOrBuilder.java @@ -0,0 +1,120 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface TemplateUiOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.TemplateUi) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The top-level input section that defines the list of variables
+   * and their sections on the deployment page.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TemplateUiInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the input field is set. + */ + boolean hasInput(); + + /** + * + * + *
+   * Required. The top-level input section that defines the list of variables
+   * and their sections on the deployment page.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TemplateUiInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The input. + */ + com.google.cloud.designcenter.v1.TemplateUiInput getInput(); + + /** + * + * + *
+   * Required. The top-level input section that defines the list of variables
+   * and their sections on the deployment page.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TemplateUiInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.designcenter.v1.TemplateUiInputOrBuilder getInputOrBuilder(); + + /** + * + * + *
+   * Optional. The top-level output section that defines the list of outputs and
+   * their visibility on the deployment page.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TemplateUiOutput runtime = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the runtime field is set. + */ + boolean hasRuntime(); + + /** + * + * + *
+   * Optional. The top-level output section that defines the list of outputs and
+   * their visibility on the deployment page.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TemplateUiOutput runtime = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The runtime. + */ + com.google.cloud.designcenter.v1.TemplateUiOutput getRuntime(); + + /** + * + * + *
+   * Optional. The top-level output section that defines the list of outputs and
+   * their visibility on the deployment page.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TemplateUiOutput runtime = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.TemplateUiOutputOrBuilder getRuntimeOrBuilder(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateUiOutput.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateUiOutput.java new file mode 100644 index 000000000000..f6c09d05c205 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateUiOutput.java @@ -0,0 +1,1088 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * TemplateUiOutput defines the list of outputs and their visibility on the
+ * deployment page.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.TemplateUiOutput} + */ +@com.google.protobuf.Generated +public final class TemplateUiOutput extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.TemplateUiOutput) + TemplateUiOutputOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "TemplateUiOutput"); + } + + // Use TemplateUiOutput.newBuilder() to construct. + private TemplateUiOutput(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private TemplateUiOutput() { + outputMessage_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TemplateUiOutput_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 2: + return internalGetOutputs(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TemplateUiOutput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.TemplateUiOutput.class, + com.google.cloud.designcenter.v1.TemplateUiOutput.Builder.class); + } + + public static final int OUTPUT_MESSAGE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object outputMessage_ = ""; + + /** + * + * + *
+   * Optional. Message to be displayed in the UI.
+   * 
+ * + * string output_message = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The outputMessage. + */ + @java.lang.Override + public java.lang.String getOutputMessage() { + java.lang.Object ref = outputMessage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outputMessage_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Message to be displayed in the UI.
+   * 
+ * + * string output_message = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for outputMessage. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOutputMessageBytes() { + java.lang.Object ref = outputMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + outputMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OUTPUTS_FIELD_NUMBER = 2; + + private static final class OutputsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable> + defaultEntry = + com.google.protobuf.MapEntry + . + newDefaultInstance( + com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TemplateUiOutput_OutputsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable + .getDefaultInstance()); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable> + outputs_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable> + internalGetOutputs() { + if (outputs_ == null) { + return com.google.protobuf.MapField.emptyMapField(OutputsDefaultEntryHolder.defaultEntry); + } + return outputs_; + } + + public int getOutputsCount() { + return internalGetOutputs().getMap().size(); + } + + /** + * + * + *
+   * Required. outputs is a map defining all outputs on the UI.
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable> outputs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public boolean containsOutputs(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetOutputs().getMap().containsKey(key); + } + + /** Use {@link #getOutputsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map< + java.lang.String, com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable> + getOutputs() { + return getOutputsMap(); + } + + /** + * + * + *
+   * Required. outputs is a map defining all outputs on the UI.
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable> outputs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.Map< + java.lang.String, com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable> + getOutputsMap() { + return internalGetOutputs().getMap(); + } + + /** + * + * + *
+   * Required. outputs is a map defining all outputs on the UI.
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable> outputs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable + getOutputsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable> + map = internalGetOutputs().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+   * Required. outputs is a map defining all outputs on the UI.
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable> outputs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable getOutputsOrThrow( + java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable> + map = internalGetOutputs().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(outputMessage_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, outputMessage_); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetOutputs(), OutputsDefaultEntryHolder.defaultEntry, 2); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(outputMessage_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, outputMessage_); + } + for (java.util.Map.Entry< + java.lang.String, com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable> + entry : internalGetOutputs().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable> + outputs__ = + OutputsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, outputs__); + } + 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.designcenter.v1.TemplateUiOutput)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.TemplateUiOutput other = + (com.google.cloud.designcenter.v1.TemplateUiOutput) obj; + + if (!getOutputMessage().equals(other.getOutputMessage())) return false; + if (!internalGetOutputs().equals(other.internalGetOutputs())) 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) + OUTPUT_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getOutputMessage().hashCode(); + if (!internalGetOutputs().getMap().isEmpty()) { + hash = (37 * hash) + OUTPUTS_FIELD_NUMBER; + hash = (53 * hash) + internalGetOutputs().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.TemplateUiOutput parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.TemplateUiOutput 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.designcenter.v1.TemplateUiOutput parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.TemplateUiOutput parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TemplateUiOutput parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.TemplateUiOutput parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TemplateUiOutput parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.TemplateUiOutput parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TemplateUiOutput parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.TemplateUiOutput parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TemplateUiOutput parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.TemplateUiOutput parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.TemplateUiOutput 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * TemplateUiOutput defines the list of outputs and their visibility on the
+   * deployment page.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.TemplateUiOutput} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.TemplateUiOutput) + com.google.cloud.designcenter.v1.TemplateUiOutputOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TemplateUiOutput_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 2: + return internalGetOutputs(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 2: + return internalGetMutableOutputs(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TemplateUiOutput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.TemplateUiOutput.class, + com.google.cloud.designcenter.v1.TemplateUiOutput.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.TemplateUiOutput.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + outputMessage_ = ""; + internalGetMutableOutputs().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TemplateUiOutput_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.TemplateUiOutput getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.TemplateUiOutput.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.TemplateUiOutput build() { + com.google.cloud.designcenter.v1.TemplateUiOutput result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.TemplateUiOutput buildPartial() { + com.google.cloud.designcenter.v1.TemplateUiOutput result = + new com.google.cloud.designcenter.v1.TemplateUiOutput(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.TemplateUiOutput result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.outputMessage_ = outputMessage_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.outputs_ = internalGetOutputs().build(OutputsDefaultEntryHolder.defaultEntry); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.TemplateUiOutput) { + return mergeFrom((com.google.cloud.designcenter.v1.TemplateUiOutput) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.TemplateUiOutput other) { + if (other == com.google.cloud.designcenter.v1.TemplateUiOutput.getDefaultInstance()) + return this; + if (!other.getOutputMessage().isEmpty()) { + outputMessage_ = other.outputMessage_; + bitField0_ |= 0x00000001; + onChanged(); + } + internalGetMutableOutputs().mergeFrom(other.internalGetOutputs()); + bitField0_ |= 0x00000002; + 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: + { + outputMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.protobuf.MapEntry< + java.lang.String, + com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable> + outputs__ = + input.readMessage( + OutputsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableOutputs() + .ensureBuilderMap() + .put(outputs__.getKey(), outputs__.getValue()); + 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 outputMessage_ = ""; + + /** + * + * + *
+     * Optional. Message to be displayed in the UI.
+     * 
+ * + * string output_message = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The outputMessage. + */ + public java.lang.String getOutputMessage() { + java.lang.Object ref = outputMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outputMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Message to be displayed in the UI.
+     * 
+ * + * string output_message = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for outputMessage. + */ + public com.google.protobuf.ByteString getOutputMessageBytes() { + java.lang.Object ref = outputMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + outputMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Message to be displayed in the UI.
+     * 
+ * + * string output_message = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The outputMessage to set. + * @return This builder for chaining. + */ + public Builder setOutputMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + outputMessage_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Message to be displayed in the UI.
+     * 
+ * + * string output_message = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOutputMessage() { + outputMessage_ = getDefaultInstance().getOutputMessage(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Message to be displayed in the UI.
+     * 
+ * + * string output_message = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for outputMessage to set. + * @return This builder for chaining. + */ + public Builder setOutputMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputMessage_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private static final class OutputsConverter + implements com.google.protobuf.MapFieldBuilder.Converter< + java.lang.String, + com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariableOrBuilder, + com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable> { + @java.lang.Override + public com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable build( + com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariableOrBuilder val) { + if (val instanceof com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable) { + return (com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable) val; + } + return ((com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable.Builder) val) + .build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable> + defaultEntry() { + return OutputsDefaultEntryHolder.defaultEntry; + } + } + ; + + private static final OutputsConverter outputsConverter = new OutputsConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariableOrBuilder, + com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable, + com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable.Builder> + outputs_; + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariableOrBuilder, + com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable, + com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable.Builder> + internalGetOutputs() { + if (outputs_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(outputsConverter); + } + return outputs_; + } + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariableOrBuilder, + com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable, + com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable.Builder> + internalGetMutableOutputs() { + if (outputs_ == null) { + outputs_ = new com.google.protobuf.MapFieldBuilder<>(outputsConverter); + } + bitField0_ |= 0x00000002; + onChanged(); + return outputs_; + } + + public int getOutputsCount() { + return internalGetOutputs().ensureBuilderMap().size(); + } + + /** + * + * + *
+     * Required. outputs is a map defining all outputs on the UI.
+     * 
+ * + * + * map<string, .google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable> outputs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public boolean containsOutputs(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetOutputs().ensureBuilderMap().containsKey(key); + } + + /** Use {@link #getOutputsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map< + java.lang.String, com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable> + getOutputs() { + return getOutputsMap(); + } + + /** + * + * + *
+     * Required. outputs is a map defining all outputs on the UI.
+     * 
+ * + * + * map<string, .google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable> outputs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.Map< + java.lang.String, com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable> + getOutputsMap() { + return internalGetOutputs().getImmutableMap(); + } + + /** + * + * + *
+     * Required. outputs is a map defining all outputs on the UI.
+     * 
+ * + * + * map<string, .google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable> outputs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable + getOutputsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariableOrBuilder> + map = internalGetMutableOutputs().ensureBuilderMap(); + return map.containsKey(key) ? outputsConverter.build(map.get(key)) : defaultValue; + } + + /** + * + * + *
+     * Required. outputs is a map defining all outputs on the UI.
+     * 
+ * + * + * map<string, .google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable> outputs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable getOutputsOrThrow( + java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariableOrBuilder> + map = internalGetMutableOutputs().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return outputsConverter.build(map.get(key)); + } + + public Builder clearOutputs() { + bitField0_ = (bitField0_ & ~0x00000002); + internalGetMutableOutputs().clear(); + return this; + } + + /** + * + * + *
+     * Required. outputs is a map defining all outputs on the UI.
+     * 
+ * + * + * map<string, .google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable> outputs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeOutputs(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableOutputs().ensureBuilderMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map< + java.lang.String, com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable> + getMutableOutputs() { + bitField0_ |= 0x00000002; + return internalGetMutableOutputs().ensureMessageMap(); + } + + /** + * + * + *
+     * Required. outputs is a map defining all outputs on the UI.
+     * 
+ * + * + * map<string, .google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable> outputs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder putOutputs( + java.lang.String key, + com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableOutputs().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00000002; + return this; + } + + /** + * + * + *
+     * Required. outputs is a map defining all outputs on the UI.
+     * 
+ * + * + * map<string, .google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable> outputs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder putAllOutputs( + java.util.Map< + java.lang.String, com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable> + values) { + for (java.util.Map.Entry< + java.lang.String, com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable> + e : values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableOutputs().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00000002; + return this; + } + + /** + * + * + *
+     * Required. outputs is a map defining all outputs on the UI.
+     * 
+ * + * + * map<string, .google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable> outputs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable.Builder + putOutputsBuilderIfAbsent(java.lang.String key) { + java.util.Map< + java.lang.String, + com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariableOrBuilder> + builderMap = internalGetMutableOutputs().ensureBuilderMap(); + com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariableOrBuilder entry = + builderMap.get(key); + if (entry == null) { + entry = com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable.newBuilder(); + builderMap.put(key, entry); + } + if (entry instanceof com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable) { + entry = + ((com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable) entry).toBuilder(); + builderMap.put(key, entry); + } + return (com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable.Builder) entry; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.TemplateUiOutput) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.TemplateUiOutput) + private static final com.google.cloud.designcenter.v1.TemplateUiOutput DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.TemplateUiOutput(); + } + + public static com.google.cloud.designcenter.v1.TemplateUiOutput getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TemplateUiOutput parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.TemplateUiOutput getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateUiOutputDisplayVariable.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateUiOutputDisplayVariable.java new file mode 100644 index 000000000000..6c04b245c439 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateUiOutputDisplayVariable.java @@ -0,0 +1,596 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Additional display specific Template pertaining to a particular output
+ * variable.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable} + */ +@com.google.protobuf.Generated +public final class TemplateUiOutputDisplayVariable extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable) + TemplateUiOutputDisplayVariableOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "TemplateUiOutputDisplayVariable"); + } + + // Use TemplateUiOutputDisplayVariable.newBuilder() to construct. + private TemplateUiOutputDisplayVariable(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private TemplateUiOutputDisplayVariable() { + visibility_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TemplateUiOutputDisplayVariable_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TemplateUiOutputDisplayVariable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable.class, + com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable.Builder.class); + } + + public static final int VISIBILITY_FIELD_NUMBER = 1; + private int visibility_ = 0; + + /** + * + * + *
+   * Required. Visibility of the output.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DisplayVariableVisibility visibility = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for visibility. + */ + @java.lang.Override + public int getVisibilityValue() { + return visibility_; + } + + /** + * + * + *
+   * Required. Visibility of the output.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DisplayVariableVisibility visibility = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The visibility. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.DisplayVariableVisibility getVisibility() { + com.google.cloud.designcenter.v1.DisplayVariableVisibility result = + com.google.cloud.designcenter.v1.DisplayVariableVisibility.forNumber(visibility_); + return result == null + ? com.google.cloud.designcenter.v1.DisplayVariableVisibility.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 (visibility_ + != com.google.cloud.designcenter.v1.DisplayVariableVisibility + .DISPLAY_VARIABLE_VISIBILITY_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, visibility_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (visibility_ + != com.google.cloud.designcenter.v1.DisplayVariableVisibility + .DISPLAY_VARIABLE_VISIBILITY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, visibility_); + } + 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.designcenter.v1.TemplateUiOutputDisplayVariable)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable other = + (com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable) obj; + + if (visibility_ != other.visibility_) 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) + VISIBILITY_FIELD_NUMBER; + hash = (53 * hash) + visibility_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable 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.designcenter.v1.TemplateUiOutputDisplayVariable parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.TemplateUiOutputDisplayVariable 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Additional display specific Template pertaining to a particular output
+   * variable.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable) + com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariableOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TemplateUiOutputDisplayVariable_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TemplateUiOutputDisplayVariable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable.class, + com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + visibility_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TemplateUiOutputDisplayVariable_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable build() { + com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable buildPartial() { + com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable result = + new com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.visibility_ = visibility_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable) { + return mergeFrom((com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable other) { + if (other + == com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable.getDefaultInstance()) + return this; + if (other.visibility_ != 0) { + setVisibilityValue(other.getVisibilityValue()); + } + 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: + { + visibility_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + 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 visibility_ = 0; + + /** + * + * + *
+     * Required. Visibility of the output.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DisplayVariableVisibility visibility = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for visibility. + */ + @java.lang.Override + public int getVisibilityValue() { + return visibility_; + } + + /** + * + * + *
+     * Required. Visibility of the output.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DisplayVariableVisibility visibility = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for visibility to set. + * @return This builder for chaining. + */ + public Builder setVisibilityValue(int value) { + visibility_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Visibility of the output.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DisplayVariableVisibility visibility = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The visibility. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.DisplayVariableVisibility getVisibility() { + com.google.cloud.designcenter.v1.DisplayVariableVisibility result = + com.google.cloud.designcenter.v1.DisplayVariableVisibility.forNumber(visibility_); + return result == null + ? com.google.cloud.designcenter.v1.DisplayVariableVisibility.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Required. Visibility of the output.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DisplayVariableVisibility visibility = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The visibility to set. + * @return This builder for chaining. + */ + public Builder setVisibility(com.google.cloud.designcenter.v1.DisplayVariableVisibility value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + visibility_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Visibility of the output.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DisplayVariableVisibility visibility = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearVisibility() { + bitField0_ = (bitField0_ & ~0x00000001); + visibility_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable) + private static final com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable(); + } + + public static com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TemplateUiOutputDisplayVariable parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.TemplateUiOutputDisplayVariable + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateUiOutputDisplayVariableOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateUiOutputDisplayVariableOrBuilder.java new file mode 100644 index 000000000000..6c46d7a6fcbd --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateUiOutputDisplayVariableOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface TemplateUiOutputDisplayVariableOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Visibility of the output.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DisplayVariableVisibility visibility = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for visibility. + */ + int getVisibilityValue(); + + /** + * + * + *
+   * Required. Visibility of the output.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DisplayVariableVisibility visibility = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The visibility. + */ + com.google.cloud.designcenter.v1.DisplayVariableVisibility getVisibility(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateUiOutputOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateUiOutputOrBuilder.java new file mode 100644 index 000000000000..38b0dd82d20b --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateUiOutputOrBuilder.java @@ -0,0 +1,130 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface TemplateUiOutputOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.TemplateUiOutput) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Message to be displayed in the UI.
+   * 
+ * + * string output_message = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The outputMessage. + */ + java.lang.String getOutputMessage(); + + /** + * + * + *
+   * Optional. Message to be displayed in the UI.
+   * 
+ * + * string output_message = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for outputMessage. + */ + com.google.protobuf.ByteString getOutputMessageBytes(); + + /** + * + * + *
+   * Required. outputs is a map defining all outputs on the UI.
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable> outputs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getOutputsCount(); + + /** + * + * + *
+   * Required. outputs is a map defining all outputs on the UI.
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable> outputs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + boolean containsOutputs(java.lang.String key); + + /** Use {@link #getOutputsMap()} instead. */ + @java.lang.Deprecated + java.util.Map + getOutputs(); + + /** + * + * + *
+   * Required. outputs is a map defining all outputs on the UI.
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable> outputs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.Map + getOutputsMap(); + + /** + * + * + *
+   * Required. outputs is a map defining all outputs on the UI.
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable> outputs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + /* nullable */ + com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable getOutputsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable defaultValue); + + /** + * + * + *
+   * Required. outputs is a map defining all outputs on the UI.
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable> outputs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.designcenter.v1.TemplateUiOutputDisplayVariable getOutputsOrThrow( + java.lang.String key); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateVariable.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateVariable.java new file mode 100644 index 000000000000..ae55d63464e6 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateVariable.java @@ -0,0 +1,1169 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * TemplateTerraform inputs.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.TemplateVariable} + */ +@com.google.protobuf.Generated +public final class TemplateVariable extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.TemplateVariable) + TemplateVariableOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "TemplateVariable"); + } + + // Use TemplateVariable.newBuilder() to construct. + private TemplateVariable(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private TemplateVariable() { + name_ = ""; + connections_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TemplateVariable_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TemplateVariable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.TemplateVariable.class, + com.google.cloud.designcenter.v1.TemplateVariable.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. Input variable name present in Terraform.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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. Input variable name present in Terraform.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 CONNECTIONS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List connections_; + + /** + * + * + *
+   * Required. Terraform input connections.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateConnections connections = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List getConnectionsList() { + return connections_; + } + + /** + * + * + *
+   * Required. Terraform input connections.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateConnections connections = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getConnectionsOrBuilderList() { + return connections_; + } + + /** + * + * + *
+   * Required. Terraform input connections.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateConnections connections = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getConnectionsCount() { + return connections_.size(); + } + + /** + * + * + *
+   * Required. Terraform input connections.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateConnections connections = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TemplateConnections getConnections(int index) { + return connections_.get(index); + } + + /** + * + * + *
+   * Required. Terraform input connections.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateConnections connections = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TemplateConnectionsOrBuilder getConnectionsOrBuilder( + int index) { + return connections_.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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + for (int i = 0; i < connections_.size(); i++) { + output.writeMessage(2, connections_.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.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + for (int i = 0; i < connections_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, connections_.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.designcenter.v1.TemplateVariable)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.TemplateVariable other = + (com.google.cloud.designcenter.v1.TemplateVariable) obj; + + if (!getName().equals(other.getName())) return false; + if (!getConnectionsList().equals(other.getConnectionsList())) 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 (getConnectionsCount() > 0) { + hash = (37 * hash) + CONNECTIONS_FIELD_NUMBER; + hash = (53 * hash) + getConnectionsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.TemplateVariable parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.TemplateVariable 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.designcenter.v1.TemplateVariable parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.TemplateVariable parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TemplateVariable parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.TemplateVariable parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TemplateVariable parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.TemplateVariable parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TemplateVariable parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.TemplateVariable parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TemplateVariable parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.TemplateVariable parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.TemplateVariable 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * TemplateTerraform inputs.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.TemplateVariable} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.TemplateVariable) + com.google.cloud.designcenter.v1.TemplateVariableOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TemplateVariable_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TemplateVariable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.TemplateVariable.class, + com.google.cloud.designcenter.v1.TemplateVariable.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.TemplateVariable.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + if (connectionsBuilder_ == null) { + connections_ = java.util.Collections.emptyList(); + } else { + connections_ = null; + connectionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TemplateVariable_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.TemplateVariable getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.TemplateVariable.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.TemplateVariable build() { + com.google.cloud.designcenter.v1.TemplateVariable result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.TemplateVariable buildPartial() { + com.google.cloud.designcenter.v1.TemplateVariable result = + new com.google.cloud.designcenter.v1.TemplateVariable(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.designcenter.v1.TemplateVariable result) { + if (connectionsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + connections_ = java.util.Collections.unmodifiableList(connections_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.connections_ = connections_; + } else { + result.connections_ = connectionsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.designcenter.v1.TemplateVariable result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.TemplateVariable) { + return mergeFrom((com.google.cloud.designcenter.v1.TemplateVariable) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.TemplateVariable other) { + if (other == com.google.cloud.designcenter.v1.TemplateVariable.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (connectionsBuilder_ == null) { + if (!other.connections_.isEmpty()) { + if (connections_.isEmpty()) { + connections_ = other.connections_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureConnectionsIsMutable(); + connections_.addAll(other.connections_); + } + onChanged(); + } + } else { + if (!other.connections_.isEmpty()) { + if (connectionsBuilder_.isEmpty()) { + connectionsBuilder_.dispose(); + connectionsBuilder_ = null; + connections_ = other.connections_; + bitField0_ = (bitField0_ & ~0x00000002); + connectionsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetConnectionsFieldBuilder() + : null; + } else { + connectionsBuilder_.addAllMessages(other.connections_); + } + } + } + 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: + { + com.google.cloud.designcenter.v1.TemplateConnections m = + input.readMessage( + com.google.cloud.designcenter.v1.TemplateConnections.parser(), + extensionRegistry); + if (connectionsBuilder_ == null) { + ensureConnectionsIsMutable(); + connections_.add(m); + } else { + connectionsBuilder_.addMessage(m); + } + 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. Input variable name present in Terraform.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Input variable name present in Terraform.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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. Input variable name present in Terraform.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Input variable name present in Terraform.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Input variable name present in Terraform.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List connections_ = + java.util.Collections.emptyList(); + + private void ensureConnectionsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + connections_ = + new java.util.ArrayList( + connections_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.TemplateConnections, + com.google.cloud.designcenter.v1.TemplateConnections.Builder, + com.google.cloud.designcenter.v1.TemplateConnectionsOrBuilder> + connectionsBuilder_; + + /** + * + * + *
+     * Required. Terraform input connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateConnections connections = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getConnectionsList() { + if (connectionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(connections_); + } else { + return connectionsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Required. Terraform input connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateConnections connections = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getConnectionsCount() { + if (connectionsBuilder_ == null) { + return connections_.size(); + } else { + return connectionsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Required. Terraform input connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateConnections connections = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.TemplateConnections getConnections(int index) { + if (connectionsBuilder_ == null) { + return connections_.get(index); + } else { + return connectionsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Required. Terraform input connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateConnections connections = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setConnections( + int index, com.google.cloud.designcenter.v1.TemplateConnections value) { + if (connectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConnectionsIsMutable(); + connections_.set(index, value); + onChanged(); + } else { + connectionsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Required. Terraform input connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateConnections connections = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setConnections( + int index, com.google.cloud.designcenter.v1.TemplateConnections.Builder builderForValue) { + if (connectionsBuilder_ == null) { + ensureConnectionsIsMutable(); + connections_.set(index, builderForValue.build()); + onChanged(); + } else { + connectionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Required. Terraform input connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateConnections connections = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addConnections(com.google.cloud.designcenter.v1.TemplateConnections value) { + if (connectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConnectionsIsMutable(); + connections_.add(value); + onChanged(); + } else { + connectionsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Required. Terraform input connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateConnections connections = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addConnections( + int index, com.google.cloud.designcenter.v1.TemplateConnections value) { + if (connectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConnectionsIsMutable(); + connections_.add(index, value); + onChanged(); + } else { + connectionsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Required. Terraform input connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateConnections connections = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addConnections( + com.google.cloud.designcenter.v1.TemplateConnections.Builder builderForValue) { + if (connectionsBuilder_ == null) { + ensureConnectionsIsMutable(); + connections_.add(builderForValue.build()); + onChanged(); + } else { + connectionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Required. Terraform input connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateConnections connections = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addConnections( + int index, com.google.cloud.designcenter.v1.TemplateConnections.Builder builderForValue) { + if (connectionsBuilder_ == null) { + ensureConnectionsIsMutable(); + connections_.add(index, builderForValue.build()); + onChanged(); + } else { + connectionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Required. Terraform input connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateConnections connections = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllConnections( + java.lang.Iterable values) { + if (connectionsBuilder_ == null) { + ensureConnectionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, connections_); + onChanged(); + } else { + connectionsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Required. Terraform input connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateConnections connections = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearConnections() { + if (connectionsBuilder_ == null) { + connections_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + connectionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Required. Terraform input connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateConnections connections = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeConnections(int index) { + if (connectionsBuilder_ == null) { + ensureConnectionsIsMutable(); + connections_.remove(index); + onChanged(); + } else { + connectionsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Required. Terraform input connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateConnections connections = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.TemplateConnections.Builder getConnectionsBuilder( + int index) { + return internalGetConnectionsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Required. Terraform input connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateConnections connections = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.TemplateConnectionsOrBuilder getConnectionsOrBuilder( + int index) { + if (connectionsBuilder_ == null) { + return connections_.get(index); + } else { + return connectionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Required. Terraform input connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateConnections connections = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getConnectionsOrBuilderList() { + if (connectionsBuilder_ != null) { + return connectionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(connections_); + } + } + + /** + * + * + *
+     * Required. Terraform input connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateConnections connections = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.TemplateConnections.Builder addConnectionsBuilder() { + return internalGetConnectionsFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.TemplateConnections.getDefaultInstance()); + } + + /** + * + * + *
+     * Required. Terraform input connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateConnections connections = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.TemplateConnections.Builder addConnectionsBuilder( + int index) { + return internalGetConnectionsFieldBuilder() + .addBuilder( + index, com.google.cloud.designcenter.v1.TemplateConnections.getDefaultInstance()); + } + + /** + * + * + *
+     * Required. Terraform input connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateConnections connections = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getConnectionsBuilderList() { + return internalGetConnectionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.TemplateConnections, + com.google.cloud.designcenter.v1.TemplateConnections.Builder, + com.google.cloud.designcenter.v1.TemplateConnectionsOrBuilder> + internalGetConnectionsFieldBuilder() { + if (connectionsBuilder_ == null) { + connectionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.TemplateConnections, + com.google.cloud.designcenter.v1.TemplateConnections.Builder, + com.google.cloud.designcenter.v1.TemplateConnectionsOrBuilder>( + connections_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + connections_ = null; + } + return connectionsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.TemplateVariable) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.TemplateVariable) + private static final com.google.cloud.designcenter.v1.TemplateVariable DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.TemplateVariable(); + } + + public static com.google.cloud.designcenter.v1.TemplateVariable getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TemplateVariable parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.TemplateVariable getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateVariableOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateVariableOrBuilder.java new file mode 100644 index 000000000000..7d8b18f6e87e --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TemplateVariableOrBuilder.java @@ -0,0 +1,120 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface TemplateVariableOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.TemplateVariable) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Input variable name present in Terraform.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. Input variable name present in Terraform.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. Terraform input connections.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateConnections connections = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getConnectionsList(); + + /** + * + * + *
+   * Required. Terraform input connections.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateConnections connections = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.designcenter.v1.TemplateConnections getConnections(int index); + + /** + * + * + *
+   * Required. Terraform input connections.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateConnections connections = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getConnectionsCount(); + + /** + * + * + *
+   * Required. Terraform input connections.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateConnections connections = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getConnectionsOrBuilderList(); + + /** + * + * + *
+   * Required. Terraform input connections.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TemplateConnections connections = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.designcenter.v1.TemplateConnectionsOrBuilder getConnectionsOrBuilder(int index); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformBlueprintUiMetadata.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformBlueprintUiMetadata.java new file mode 100644 index 000000000000..9f9070b8c5f4 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformBlueprintUiMetadata.java @@ -0,0 +1,1045 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Terraform blueprint UI metadata.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.TerraformBlueprintUiMetadata} + */ +@com.google.protobuf.Generated +public final class TerraformBlueprintUiMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.TerraformBlueprintUiMetadata) + TerraformBlueprintUiMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "TerraformBlueprintUiMetadata"); + } + + // Use TerraformBlueprintUiMetadata.newBuilder() to construct. + private TerraformBlueprintUiMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private TerraformBlueprintUiMetadata() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TerraformBlueprintUiMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TerraformBlueprintUiMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.TerraformBlueprintUiMetadata.class, + com.google.cloud.designcenter.v1.TerraformBlueprintUiMetadata.Builder.class); + } + + private int bitField0_; + public static final int TERRAFORM_UI_INPUT_FIELD_NUMBER = 1; + private com.google.cloud.designcenter.v1.TerraformUiInput terraformUiInput_; + + /** + * + * + *
+   * Output only. Terraform UI inputs.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TerraformUiInput terraform_ui_input = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the terraformUiInput field is set. + */ + @java.lang.Override + public boolean hasTerraformUiInput() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. Terraform UI inputs.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TerraformUiInput terraform_ui_input = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The terraformUiInput. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformUiInput getTerraformUiInput() { + return terraformUiInput_ == null + ? com.google.cloud.designcenter.v1.TerraformUiInput.getDefaultInstance() + : terraformUiInput_; + } + + /** + * + * + *
+   * Output only. Terraform UI inputs.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TerraformUiInput terraform_ui_input = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformUiInputOrBuilder getTerraformUiInputOrBuilder() { + return terraformUiInput_ == null + ? com.google.cloud.designcenter.v1.TerraformUiInput.getDefaultInstance() + : terraformUiInput_; + } + + public static final int TERRAFORM_UI_OUTPUT_FIELD_NUMBER = 2; + private com.google.cloud.designcenter.v1.TerraformUiOutput terraformUiOutput_; + + /** + * + * + *
+   * Output only. Terraform UI outputs.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TerraformUiOutput terraform_ui_output = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the terraformUiOutput field is set. + */ + @java.lang.Override + public boolean hasTerraformUiOutput() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. Terraform UI outputs.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TerraformUiOutput terraform_ui_output = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The terraformUiOutput. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformUiOutput getTerraformUiOutput() { + return terraformUiOutput_ == null + ? com.google.cloud.designcenter.v1.TerraformUiOutput.getDefaultInstance() + : terraformUiOutput_; + } + + /** + * + * + *
+   * Output only. Terraform UI outputs.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TerraformUiOutput terraform_ui_output = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformUiOutputOrBuilder + getTerraformUiOutputOrBuilder() { + return terraformUiOutput_ == null + ? com.google.cloud.designcenter.v1.TerraformUiOutput.getDefaultInstance() + : terraformUiOutput_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getTerraformUiInput()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getTerraformUiOutput()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTerraformUiInput()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTerraformUiOutput()); + } + 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.designcenter.v1.TerraformBlueprintUiMetadata)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.TerraformBlueprintUiMetadata other = + (com.google.cloud.designcenter.v1.TerraformBlueprintUiMetadata) obj; + + if (hasTerraformUiInput() != other.hasTerraformUiInput()) return false; + if (hasTerraformUiInput()) { + if (!getTerraformUiInput().equals(other.getTerraformUiInput())) return false; + } + if (hasTerraformUiOutput() != other.hasTerraformUiOutput()) return false; + if (hasTerraformUiOutput()) { + if (!getTerraformUiOutput().equals(other.getTerraformUiOutput())) 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 (hasTerraformUiInput()) { + hash = (37 * hash) + TERRAFORM_UI_INPUT_FIELD_NUMBER; + hash = (53 * hash) + getTerraformUiInput().hashCode(); + } + if (hasTerraformUiOutput()) { + hash = (37 * hash) + TERRAFORM_UI_OUTPUT_FIELD_NUMBER; + hash = (53 * hash) + getTerraformUiOutput().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.TerraformBlueprintUiMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.TerraformBlueprintUiMetadata 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.designcenter.v1.TerraformBlueprintUiMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.TerraformBlueprintUiMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TerraformBlueprintUiMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.TerraformBlueprintUiMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TerraformBlueprintUiMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.TerraformBlueprintUiMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TerraformBlueprintUiMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.TerraformBlueprintUiMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TerraformBlueprintUiMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.TerraformBlueprintUiMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.TerraformBlueprintUiMetadata 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Terraform blueprint UI metadata.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.TerraformBlueprintUiMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.TerraformBlueprintUiMetadata) + com.google.cloud.designcenter.v1.TerraformBlueprintUiMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TerraformBlueprintUiMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TerraformBlueprintUiMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.TerraformBlueprintUiMetadata.class, + com.google.cloud.designcenter.v1.TerraformBlueprintUiMetadata.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.TerraformBlueprintUiMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetTerraformUiInputFieldBuilder(); + internalGetTerraformUiOutputFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + terraformUiInput_ = null; + if (terraformUiInputBuilder_ != null) { + terraformUiInputBuilder_.dispose(); + terraformUiInputBuilder_ = null; + } + terraformUiOutput_ = null; + if (terraformUiOutputBuilder_ != null) { + terraformUiOutputBuilder_.dispose(); + terraformUiOutputBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TerraformBlueprintUiMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformBlueprintUiMetadata + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.TerraformBlueprintUiMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformBlueprintUiMetadata build() { + com.google.cloud.designcenter.v1.TerraformBlueprintUiMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformBlueprintUiMetadata buildPartial() { + com.google.cloud.designcenter.v1.TerraformBlueprintUiMetadata result = + new com.google.cloud.designcenter.v1.TerraformBlueprintUiMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.TerraformBlueprintUiMetadata result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.terraformUiInput_ = + terraformUiInputBuilder_ == null ? terraformUiInput_ : terraformUiInputBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.terraformUiOutput_ = + terraformUiOutputBuilder_ == null + ? terraformUiOutput_ + : terraformUiOutputBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.TerraformBlueprintUiMetadata) { + return mergeFrom((com.google.cloud.designcenter.v1.TerraformBlueprintUiMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.TerraformBlueprintUiMetadata other) { + if (other + == com.google.cloud.designcenter.v1.TerraformBlueprintUiMetadata.getDefaultInstance()) + return this; + if (other.hasTerraformUiInput()) { + mergeTerraformUiInput(other.getTerraformUiInput()); + } + if (other.hasTerraformUiOutput()) { + mergeTerraformUiOutput(other.getTerraformUiOutput()); + } + 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( + internalGetTerraformUiInputFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetTerraformUiOutputFieldBuilder().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.designcenter.v1.TerraformUiInput terraformUiInput_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.TerraformUiInput, + com.google.cloud.designcenter.v1.TerraformUiInput.Builder, + com.google.cloud.designcenter.v1.TerraformUiInputOrBuilder> + terraformUiInputBuilder_; + + /** + * + * + *
+     * Output only. Terraform UI inputs.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TerraformUiInput terraform_ui_input = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the terraformUiInput field is set. + */ + public boolean hasTerraformUiInput() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Output only. Terraform UI inputs.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TerraformUiInput terraform_ui_input = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The terraformUiInput. + */ + public com.google.cloud.designcenter.v1.TerraformUiInput getTerraformUiInput() { + if (terraformUiInputBuilder_ == null) { + return terraformUiInput_ == null + ? com.google.cloud.designcenter.v1.TerraformUiInput.getDefaultInstance() + : terraformUiInput_; + } else { + return terraformUiInputBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Terraform UI inputs.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TerraformUiInput terraform_ui_input = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTerraformUiInput(com.google.cloud.designcenter.v1.TerraformUiInput value) { + if (terraformUiInputBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + terraformUiInput_ = value; + } else { + terraformUiInputBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Terraform UI inputs.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TerraformUiInput terraform_ui_input = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTerraformUiInput( + com.google.cloud.designcenter.v1.TerraformUiInput.Builder builderForValue) { + if (terraformUiInputBuilder_ == null) { + terraformUiInput_ = builderForValue.build(); + } else { + terraformUiInputBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Terraform UI inputs.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TerraformUiInput terraform_ui_input = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeTerraformUiInput(com.google.cloud.designcenter.v1.TerraformUiInput value) { + if (terraformUiInputBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && terraformUiInput_ != null + && terraformUiInput_ + != com.google.cloud.designcenter.v1.TerraformUiInput.getDefaultInstance()) { + getTerraformUiInputBuilder().mergeFrom(value); + } else { + terraformUiInput_ = value; + } + } else { + terraformUiInputBuilder_.mergeFrom(value); + } + if (terraformUiInput_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Terraform UI inputs.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TerraformUiInput terraform_ui_input = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearTerraformUiInput() { + bitField0_ = (bitField0_ & ~0x00000001); + terraformUiInput_ = null; + if (terraformUiInputBuilder_ != null) { + terraformUiInputBuilder_.dispose(); + terraformUiInputBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Terraform UI inputs.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TerraformUiInput terraform_ui_input = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.TerraformUiInput.Builder getTerraformUiInputBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetTerraformUiInputFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Terraform UI inputs.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TerraformUiInput terraform_ui_input = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.TerraformUiInputOrBuilder + getTerraformUiInputOrBuilder() { + if (terraformUiInputBuilder_ != null) { + return terraformUiInputBuilder_.getMessageOrBuilder(); + } else { + return terraformUiInput_ == null + ? com.google.cloud.designcenter.v1.TerraformUiInput.getDefaultInstance() + : terraformUiInput_; + } + } + + /** + * + * + *
+     * Output only. Terraform UI inputs.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TerraformUiInput terraform_ui_input = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.TerraformUiInput, + com.google.cloud.designcenter.v1.TerraformUiInput.Builder, + com.google.cloud.designcenter.v1.TerraformUiInputOrBuilder> + internalGetTerraformUiInputFieldBuilder() { + if (terraformUiInputBuilder_ == null) { + terraformUiInputBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.TerraformUiInput, + com.google.cloud.designcenter.v1.TerraformUiInput.Builder, + com.google.cloud.designcenter.v1.TerraformUiInputOrBuilder>( + getTerraformUiInput(), getParentForChildren(), isClean()); + terraformUiInput_ = null; + } + return terraformUiInputBuilder_; + } + + private com.google.cloud.designcenter.v1.TerraformUiOutput terraformUiOutput_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.TerraformUiOutput, + com.google.cloud.designcenter.v1.TerraformUiOutput.Builder, + com.google.cloud.designcenter.v1.TerraformUiOutputOrBuilder> + terraformUiOutputBuilder_; + + /** + * + * + *
+     * Output only. Terraform UI outputs.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TerraformUiOutput terraform_ui_output = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the terraformUiOutput field is set. + */ + public boolean hasTerraformUiOutput() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Output only. Terraform UI outputs.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TerraformUiOutput terraform_ui_output = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The terraformUiOutput. + */ + public com.google.cloud.designcenter.v1.TerraformUiOutput getTerraformUiOutput() { + if (terraformUiOutputBuilder_ == null) { + return terraformUiOutput_ == null + ? com.google.cloud.designcenter.v1.TerraformUiOutput.getDefaultInstance() + : terraformUiOutput_; + } else { + return terraformUiOutputBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Terraform UI outputs.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TerraformUiOutput terraform_ui_output = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTerraformUiOutput(com.google.cloud.designcenter.v1.TerraformUiOutput value) { + if (terraformUiOutputBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + terraformUiOutput_ = value; + } else { + terraformUiOutputBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Terraform UI outputs.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TerraformUiOutput terraform_ui_output = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTerraformUiOutput( + com.google.cloud.designcenter.v1.TerraformUiOutput.Builder builderForValue) { + if (terraformUiOutputBuilder_ == null) { + terraformUiOutput_ = builderForValue.build(); + } else { + terraformUiOutputBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Terraform UI outputs.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TerraformUiOutput terraform_ui_output = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeTerraformUiOutput( + com.google.cloud.designcenter.v1.TerraformUiOutput value) { + if (terraformUiOutputBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && terraformUiOutput_ != null + && terraformUiOutput_ + != com.google.cloud.designcenter.v1.TerraformUiOutput.getDefaultInstance()) { + getTerraformUiOutputBuilder().mergeFrom(value); + } else { + terraformUiOutput_ = value; + } + } else { + terraformUiOutputBuilder_.mergeFrom(value); + } + if (terraformUiOutput_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Terraform UI outputs.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TerraformUiOutput terraform_ui_output = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearTerraformUiOutput() { + bitField0_ = (bitField0_ & ~0x00000002); + terraformUiOutput_ = null; + if (terraformUiOutputBuilder_ != null) { + terraformUiOutputBuilder_.dispose(); + terraformUiOutputBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Terraform UI outputs.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TerraformUiOutput terraform_ui_output = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.TerraformUiOutput.Builder + getTerraformUiOutputBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetTerraformUiOutputFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Terraform UI outputs.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TerraformUiOutput terraform_ui_output = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.TerraformUiOutputOrBuilder + getTerraformUiOutputOrBuilder() { + if (terraformUiOutputBuilder_ != null) { + return terraformUiOutputBuilder_.getMessageOrBuilder(); + } else { + return terraformUiOutput_ == null + ? com.google.cloud.designcenter.v1.TerraformUiOutput.getDefaultInstance() + : terraformUiOutput_; + } + } + + /** + * + * + *
+     * Output only. Terraform UI outputs.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TerraformUiOutput terraform_ui_output = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.TerraformUiOutput, + com.google.cloud.designcenter.v1.TerraformUiOutput.Builder, + com.google.cloud.designcenter.v1.TerraformUiOutputOrBuilder> + internalGetTerraformUiOutputFieldBuilder() { + if (terraformUiOutputBuilder_ == null) { + terraformUiOutputBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.TerraformUiOutput, + com.google.cloud.designcenter.v1.TerraformUiOutput.Builder, + com.google.cloud.designcenter.v1.TerraformUiOutputOrBuilder>( + getTerraformUiOutput(), getParentForChildren(), isClean()); + terraformUiOutput_ = null; + } + return terraformUiOutputBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.TerraformBlueprintUiMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.TerraformBlueprintUiMetadata) + private static final com.google.cloud.designcenter.v1.TerraformBlueprintUiMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.TerraformBlueprintUiMetadata(); + } + + public static com.google.cloud.designcenter.v1.TerraformBlueprintUiMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TerraformBlueprintUiMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.TerraformBlueprintUiMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformBlueprintUiMetadataOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformBlueprintUiMetadataOrBuilder.java new file mode 100644 index 000000000000..dd914ced27fc --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformBlueprintUiMetadataOrBuilder.java @@ -0,0 +1,114 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface TerraformBlueprintUiMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.TerraformBlueprintUiMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Terraform UI inputs.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TerraformUiInput terraform_ui_input = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the terraformUiInput field is set. + */ + boolean hasTerraformUiInput(); + + /** + * + * + *
+   * Output only. Terraform UI inputs.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TerraformUiInput terraform_ui_input = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The terraformUiInput. + */ + com.google.cloud.designcenter.v1.TerraformUiInput getTerraformUiInput(); + + /** + * + * + *
+   * Output only. Terraform UI inputs.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TerraformUiInput terraform_ui_input = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.TerraformUiInputOrBuilder getTerraformUiInputOrBuilder(); + + /** + * + * + *
+   * Output only. Terraform UI outputs.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TerraformUiOutput terraform_ui_output = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the terraformUiOutput field is set. + */ + boolean hasTerraformUiOutput(); + + /** + * + * + *
+   * Output only. Terraform UI outputs.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TerraformUiOutput terraform_ui_output = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The terraformUiOutput. + */ + com.google.cloud.designcenter.v1.TerraformUiOutput getTerraformUiOutput(); + + /** + * + * + *
+   * Output only. Terraform UI outputs.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TerraformUiOutput terraform_ui_output = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.TerraformUiOutputOrBuilder getTerraformUiOutputOrBuilder(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformConfig.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformConfig.java new file mode 100644 index 000000000000..1a3b6b12782d --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformConfig.java @@ -0,0 +1,741 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/export.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Configuration for exporting a resource as Terraform IAC.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.TerraformConfig} + */ +@com.google.protobuf.Generated +public final class TerraformConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.TerraformConfig) + TerraformConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "TerraformConfig"); + } + + // Use TerraformConfig.newBuilder() to construct. + private TerraformConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private TerraformConfig() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.ExportProto + .internal_static_google_cloud_designcenter_v1_TerraformConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.ExportProto + .internal_static_google_cloud_designcenter_v1_TerraformConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.TerraformConfig.class, + com.google.cloud.designcenter.v1.TerraformConfig.Builder.class); + } + + private int bitField0_; + public static final int TF_MODULE_CONFIG_FIELD_NUMBER = 1; + private com.google.cloud.designcenter.v1.TerraformModuleConfig tfModuleConfig_; + + /** + * + * + *
+   * Optional. Configuration on how terraform module should be handled during
+   * export.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TerraformModuleConfig tf_module_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the tfModuleConfig field is set. + */ + @java.lang.Override + public boolean hasTfModuleConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. Configuration on how terraform module should be handled during
+   * export.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TerraformModuleConfig tf_module_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The tfModuleConfig. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformModuleConfig getTfModuleConfig() { + return tfModuleConfig_ == null + ? com.google.cloud.designcenter.v1.TerraformModuleConfig.getDefaultInstance() + : tfModuleConfig_; + } + + /** + * + * + *
+   * Optional. Configuration on how terraform module should be handled during
+   * export.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TerraformModuleConfig tf_module_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformModuleConfigOrBuilder + getTfModuleConfigOrBuilder() { + return tfModuleConfig_ == null + ? com.google.cloud.designcenter.v1.TerraformModuleConfig.getDefaultInstance() + : tfModuleConfig_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getTfModuleConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTfModuleConfig()); + } + 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.designcenter.v1.TerraformConfig)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.TerraformConfig other = + (com.google.cloud.designcenter.v1.TerraformConfig) obj; + + if (hasTfModuleConfig() != other.hasTfModuleConfig()) return false; + if (hasTfModuleConfig()) { + if (!getTfModuleConfig().equals(other.getTfModuleConfig())) 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 (hasTfModuleConfig()) { + hash = (37 * hash) + TF_MODULE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getTfModuleConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.TerraformConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.TerraformConfig 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.designcenter.v1.TerraformConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.TerraformConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TerraformConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.TerraformConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TerraformConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.TerraformConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TerraformConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.TerraformConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TerraformConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.TerraformConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.TerraformConfig 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Configuration for exporting a resource as Terraform IAC.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.TerraformConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.TerraformConfig) + com.google.cloud.designcenter.v1.TerraformConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.ExportProto + .internal_static_google_cloud_designcenter_v1_TerraformConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.ExportProto + .internal_static_google_cloud_designcenter_v1_TerraformConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.TerraformConfig.class, + com.google.cloud.designcenter.v1.TerraformConfig.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.TerraformConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetTfModuleConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + tfModuleConfig_ = null; + if (tfModuleConfigBuilder_ != null) { + tfModuleConfigBuilder_.dispose(); + tfModuleConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.ExportProto + .internal_static_google_cloud_designcenter_v1_TerraformConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformConfig getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.TerraformConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformConfig build() { + com.google.cloud.designcenter.v1.TerraformConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformConfig buildPartial() { + com.google.cloud.designcenter.v1.TerraformConfig result = + new com.google.cloud.designcenter.v1.TerraformConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.TerraformConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.tfModuleConfig_ = + tfModuleConfigBuilder_ == null ? tfModuleConfig_ : tfModuleConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.TerraformConfig) { + return mergeFrom((com.google.cloud.designcenter.v1.TerraformConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.TerraformConfig other) { + if (other == com.google.cloud.designcenter.v1.TerraformConfig.getDefaultInstance()) + return this; + if (other.hasTfModuleConfig()) { + mergeTfModuleConfig(other.getTfModuleConfig()); + } + 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( + internalGetTfModuleConfigFieldBuilder().getBuilder(), extensionRegistry); + 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 com.google.cloud.designcenter.v1.TerraformModuleConfig tfModuleConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.TerraformModuleConfig, + com.google.cloud.designcenter.v1.TerraformModuleConfig.Builder, + com.google.cloud.designcenter.v1.TerraformModuleConfigOrBuilder> + tfModuleConfigBuilder_; + + /** + * + * + *
+     * Optional. Configuration on how terraform module should be handled during
+     * export.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TerraformModuleConfig tf_module_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the tfModuleConfig field is set. + */ + public boolean hasTfModuleConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Optional. Configuration on how terraform module should be handled during
+     * export.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TerraformModuleConfig tf_module_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The tfModuleConfig. + */ + public com.google.cloud.designcenter.v1.TerraformModuleConfig getTfModuleConfig() { + if (tfModuleConfigBuilder_ == null) { + return tfModuleConfig_ == null + ? com.google.cloud.designcenter.v1.TerraformModuleConfig.getDefaultInstance() + : tfModuleConfig_; + } else { + return tfModuleConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Configuration on how terraform module should be handled during
+     * export.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TerraformModuleConfig tf_module_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTfModuleConfig(com.google.cloud.designcenter.v1.TerraformModuleConfig value) { + if (tfModuleConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tfModuleConfig_ = value; + } else { + tfModuleConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Configuration on how terraform module should be handled during
+     * export.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TerraformModuleConfig tf_module_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTfModuleConfig( + com.google.cloud.designcenter.v1.TerraformModuleConfig.Builder builderForValue) { + if (tfModuleConfigBuilder_ == null) { + tfModuleConfig_ = builderForValue.build(); + } else { + tfModuleConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Configuration on how terraform module should be handled during
+     * export.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TerraformModuleConfig tf_module_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeTfModuleConfig( + com.google.cloud.designcenter.v1.TerraformModuleConfig value) { + if (tfModuleConfigBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && tfModuleConfig_ != null + && tfModuleConfig_ + != com.google.cloud.designcenter.v1.TerraformModuleConfig.getDefaultInstance()) { + getTfModuleConfigBuilder().mergeFrom(value); + } else { + tfModuleConfig_ = value; + } + } else { + tfModuleConfigBuilder_.mergeFrom(value); + } + if (tfModuleConfig_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Configuration on how terraform module should be handled during
+     * export.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TerraformModuleConfig tf_module_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearTfModuleConfig() { + bitField0_ = (bitField0_ & ~0x00000001); + tfModuleConfig_ = null; + if (tfModuleConfigBuilder_ != null) { + tfModuleConfigBuilder_.dispose(); + tfModuleConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Configuration on how terraform module should be handled during
+     * export.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TerraformModuleConfig tf_module_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.TerraformModuleConfig.Builder + getTfModuleConfigBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetTfModuleConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Configuration on how terraform module should be handled during
+     * export.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TerraformModuleConfig tf_module_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.TerraformModuleConfigOrBuilder + getTfModuleConfigOrBuilder() { + if (tfModuleConfigBuilder_ != null) { + return tfModuleConfigBuilder_.getMessageOrBuilder(); + } else { + return tfModuleConfig_ == null + ? com.google.cloud.designcenter.v1.TerraformModuleConfig.getDefaultInstance() + : tfModuleConfig_; + } + } + + /** + * + * + *
+     * Optional. Configuration on how terraform module should be handled during
+     * export.
+     * 
+ * + * + * .google.cloud.designcenter.v1.TerraformModuleConfig tf_module_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.TerraformModuleConfig, + com.google.cloud.designcenter.v1.TerraformModuleConfig.Builder, + com.google.cloud.designcenter.v1.TerraformModuleConfigOrBuilder> + internalGetTfModuleConfigFieldBuilder() { + if (tfModuleConfigBuilder_ == null) { + tfModuleConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.TerraformModuleConfig, + com.google.cloud.designcenter.v1.TerraformModuleConfig.Builder, + com.google.cloud.designcenter.v1.TerraformModuleConfigOrBuilder>( + getTfModuleConfig(), getParentForChildren(), isClean()); + tfModuleConfig_ = null; + } + return tfModuleConfigBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.TerraformConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.TerraformConfig) + private static final com.google.cloud.designcenter.v1.TerraformConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.TerraformConfig(); + } + + public static com.google.cloud.designcenter.v1.TerraformConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TerraformConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.TerraformConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformConfigOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformConfigOrBuilder.java new file mode 100644 index 000000000000..818955f849ad --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformConfigOrBuilder.java @@ -0,0 +1,74 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/export.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface TerraformConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.TerraformConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Configuration on how terraform module should be handled during
+   * export.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TerraformModuleConfig tf_module_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the tfModuleConfig field is set. + */ + boolean hasTfModuleConfig(); + + /** + * + * + *
+   * Optional. Configuration on how terraform module should be handled during
+   * export.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TerraformModuleConfig tf_module_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The tfModuleConfig. + */ + com.google.cloud.designcenter.v1.TerraformModuleConfig getTfModuleConfig(); + + /** + * + * + *
+   * Optional. Configuration on how terraform module should be handled during
+   * export.
+   * 
+ * + * + * .google.cloud.designcenter.v1.TerraformModuleConfig tf_module_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.TerraformModuleConfigOrBuilder getTfModuleConfigOrBuilder(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformFile.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformFile.java new file mode 100644 index 000000000000..c3db73fdcfc2 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformFile.java @@ -0,0 +1,784 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/iac.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Represents a single Terraform file.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.TerraformFile} + */ +@com.google.protobuf.Generated +public final class TerraformFile extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.TerraformFile) + TerraformFileOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "TerraformFile"); + } + + // Use TerraformFile.newBuilder() to construct. + private TerraformFile(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private TerraformFile() { + path_ = ""; + content_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.IacProto + .internal_static_google_cloud_designcenter_v1_TerraformFile_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.IacProto + .internal_static_google_cloud_designcenter_v1_TerraformFile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.TerraformFile.class, + com.google.cloud.designcenter.v1.TerraformFile.Builder.class); + } + + public static final int PATH_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object path_ = ""; + + /** + * + * + *
+   * The path of the Terraform file.
+   * 
+ * + * string path = 1; + * + * @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; + } + } + + /** + * + * + *
+   * The path of the Terraform file.
+   * 
+ * + * string path = 1; + * + * @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_ = ""; + + /** + * + * + *
+   * The content of the Terraform file.
+   * 
+ * + * string content = 2; + * + * @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; + } + } + + /** + * + * + *
+   * The content of the Terraform file.
+   * 
+ * + * string content = 2; + * + * @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; + } + } + + 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.GeneratedMessage.isStringEmpty(path_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, path_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(content_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, content_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(path_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, path_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(content_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, content_); + } + 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.designcenter.v1.TerraformFile)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.TerraformFile other = + (com.google.cloud.designcenter.v1.TerraformFile) obj; + + if (!getPath().equals(other.getPath())) return false; + if (!getContent().equals(other.getContent())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.TerraformFile parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.TerraformFile 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.designcenter.v1.TerraformFile parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.TerraformFile parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TerraformFile parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.TerraformFile parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TerraformFile parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.TerraformFile parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TerraformFile parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.TerraformFile parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TerraformFile parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.TerraformFile parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.TerraformFile 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Represents a single Terraform file.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.TerraformFile} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.TerraformFile) + com.google.cloud.designcenter.v1.TerraformFileOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.IacProto + .internal_static_google_cloud_designcenter_v1_TerraformFile_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.IacProto + .internal_static_google_cloud_designcenter_v1_TerraformFile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.TerraformFile.class, + com.google.cloud.designcenter.v1.TerraformFile.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.TerraformFile.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + path_ = ""; + content_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.IacProto + .internal_static_google_cloud_designcenter_v1_TerraformFile_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformFile getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.TerraformFile.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformFile build() { + com.google.cloud.designcenter.v1.TerraformFile result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformFile buildPartial() { + com.google.cloud.designcenter.v1.TerraformFile result = + new com.google.cloud.designcenter.v1.TerraformFile(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.TerraformFile result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.path_ = path_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.content_ = content_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.TerraformFile) { + return mergeFrom((com.google.cloud.designcenter.v1.TerraformFile) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.TerraformFile other) { + if (other == com.google.cloud.designcenter.v1.TerraformFile.getDefaultInstance()) return this; + if (!other.getPath().isEmpty()) { + path_ = other.path_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getContent().isEmpty()) { + content_ = other.content_; + 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: + { + path_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + content_ = 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 path_ = ""; + + /** + * + * + *
+     * The path of the Terraform file.
+     * 
+ * + * string path = 1; + * + * @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; + } + } + + /** + * + * + *
+     * The path of the Terraform file.
+     * 
+ * + * string path = 1; + * + * @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; + } + } + + /** + * + * + *
+     * The path of the Terraform file.
+     * 
+ * + * string path = 1; + * + * @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; + } + + /** + * + * + *
+     * The path of the Terraform file.
+     * 
+ * + * string path = 1; + * + * @return This builder for chaining. + */ + public Builder clearPath() { + path_ = getDefaultInstance().getPath(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * The path of the Terraform file.
+     * 
+ * + * string path = 1; + * + * @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_ = ""; + + /** + * + * + *
+     * The content of the Terraform file.
+     * 
+ * + * string content = 2; + * + * @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; + } + } + + /** + * + * + *
+     * The content of the Terraform file.
+     * 
+ * + * string content = 2; + * + * @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; + } + } + + /** + * + * + *
+     * The content of the Terraform file.
+     * 
+ * + * string content = 2; + * + * @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; + } + + /** + * + * + *
+     * The content of the Terraform file.
+     * 
+ * + * string content = 2; + * + * @return This builder for chaining. + */ + public Builder clearContent() { + content_ = getDefaultInstance().getContent(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * The content of the Terraform file.
+     * 
+ * + * string content = 2; + * + * @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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.TerraformFile) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.TerraformFile) + private static final com.google.cloud.designcenter.v1.TerraformFile DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.TerraformFile(); + } + + public static com.google.cloud.designcenter.v1.TerraformFile getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TerraformFile parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.TerraformFile getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformFileOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformFileOrBuilder.java new file mode 100644 index 000000000000..974a98d01c95 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformFileOrBuilder.java @@ -0,0 +1,80 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/iac.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface TerraformFileOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.TerraformFile) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The path of the Terraform file.
+   * 
+ * + * string path = 1; + * + * @return The path. + */ + java.lang.String getPath(); + + /** + * + * + *
+   * The path of the Terraform file.
+   * 
+ * + * string path = 1; + * + * @return The bytes for path. + */ + com.google.protobuf.ByteString getPathBytes(); + + /** + * + * + *
+   * The content of the Terraform file.
+   * 
+ * + * string content = 2; + * + * @return The content. + */ + java.lang.String getContent(); + + /** + * + * + *
+   * The content of the Terraform file.
+   * 
+ * + * string content = 2; + * + * @return The bytes for content. + */ + com.google.protobuf.ByteString getContentBytes(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformInput.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformInput.java new file mode 100644 index 000000000000..2996aa94f121 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformInput.java @@ -0,0 +1,2643 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Terraform inputs.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.TerraformInput} + */ +@com.google.protobuf.Generated +public final class TerraformInput extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.TerraformInput) + TerraformInputOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "TerraformInput"); + } + + // Use TerraformInput.newBuilder() to construct. + private TerraformInput(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private TerraformInput() { + terraformInputVariable_ = ""; + description_ = ""; + type_ = ""; + connections_ = java.util.Collections.emptyList(); + validationRules_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TerraformInput_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TerraformInput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.TerraformInput.class, + com.google.cloud.designcenter.v1.TerraformInput.Builder.class); + } + + private int bitField0_; + public static final int TERRAFORM_INPUT_VARIABLE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object terraformInputVariable_ = ""; + + /** + * + * + *
+   * Output only. Input variable name present in Terraform.
+   * 
+ * + * string terraform_input_variable = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The terraformInputVariable. + */ + @java.lang.Override + public java.lang.String getTerraformInputVariable() { + java.lang.Object ref = terraformInputVariable_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + terraformInputVariable_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. Input variable name present in Terraform.
+   * 
+ * + * string terraform_input_variable = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for terraformInputVariable. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTerraformInputVariableBytes() { + java.lang.Object ref = terraformInputVariable_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + terraformInputVariable_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
+   * Output only. Terraform variable description.
+   * 
+ * + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+   * Output only. Terraform variable description.
+   * 
+ * + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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 TYPE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object type_ = ""; + + /** + * + * + *
+   * Output only. The Terraform input data type.
+   * 
+ * + * string type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The type. + */ + @java.lang.Override + public java.lang.String getType() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + type_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The Terraform input data type.
+   * 
+ * + * string type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for type. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEFAULT_VALUE_FIELD_NUMBER = 4; + private com.google.protobuf.Value defaultValue_; + + /** + * + * + *
+   * Output only. The default value of the Terraform input variable.
+   * 
+ * + * .google.protobuf.Value default_value = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the defaultValue field is set. + */ + @java.lang.Override + public boolean hasDefaultValue() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. The default value of the Terraform input variable.
+   * 
+ * + * .google.protobuf.Value default_value = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The defaultValue. + */ + @java.lang.Override + public com.google.protobuf.Value getDefaultValue() { + return defaultValue_ == null ? com.google.protobuf.Value.getDefaultInstance() : defaultValue_; + } + + /** + * + * + *
+   * Output only. The default value of the Terraform input variable.
+   * 
+ * + * .google.protobuf.Value default_value = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.ValueOrBuilder getDefaultValueOrBuilder() { + return defaultValue_ == null ? com.google.protobuf.Value.getDefaultInstance() : defaultValue_; + } + + public static final int CONNECTIONS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private java.util.List connections_; + + /** + * + * + *
+   * Output only. Terraform input connections.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getConnectionsList() { + return connections_; + } + + /** + * + * + *
+   * Output only. Terraform input connections.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.designcenter.v1.TerraformInputConnectionsOrBuilder> + getConnectionsOrBuilderList() { + return connections_; + } + + /** + * + * + *
+   * Output only. Terraform input connections.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getConnectionsCount() { + return connections_.size(); + } + + /** + * + * + *
+   * Output only. Terraform input connections.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformInputConnections getConnections(int index) { + return connections_.get(index); + } + + /** + * + * + *
+   * Output only. Terraform input connections.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformInputConnectionsOrBuilder + getConnectionsOrBuilder(int index) { + return connections_.get(index); + } + + public static final int IS_REQUIRED_FIELD_NUMBER = 6; + private boolean isRequired_ = false; + + /** + * + * + *
+   * Output only. Indicates if input is required.
+   * 
+ * + * bool is_required = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The isRequired. + */ + @java.lang.Override + public boolean getIsRequired() { + return isRequired_; + } + + public static final int SENSITIVE_FIELD_NUMBER = 7; + private boolean sensitive_ = false; + + /** + * + * + *
+   * Optional. Indicates if the Terraform variable is sensitive.
+   * 
+ * + * bool sensitive = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sensitive. + */ + @java.lang.Override + public boolean getSensitive() { + return sensitive_; + } + + public static final int VALIDATION_RULES_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private java.util.List + validationRules_; + + /** + * + * + *
+   * Optional. Optional validation rules defined on the variable.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformVariableValidation validation_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getValidationRulesList() { + return validationRules_; + } + + /** + * + * + *
+   * Optional. Optional validation rules defined on the variable.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformVariableValidation validation_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.designcenter.v1.TerraformVariableValidationOrBuilder> + getValidationRulesOrBuilderList() { + return validationRules_; + } + + /** + * + * + *
+   * Optional. Optional validation rules defined on the variable.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformVariableValidation validation_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getValidationRulesCount() { + return validationRules_.size(); + } + + /** + * + * + *
+   * Optional. Optional validation rules defined on the variable.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformVariableValidation validation_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformVariableValidation getValidationRules( + int index) { + return validationRules_.get(index); + } + + /** + * + * + *
+   * Optional. Optional validation rules defined on the variable.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformVariableValidation validation_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformVariableValidationOrBuilder + getValidationRulesOrBuilder(int index) { + return validationRules_.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.GeneratedMessage.isStringEmpty(terraformInputVariable_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, terraformInputVariable_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, description_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(type_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, type_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getDefaultValue()); + } + for (int i = 0; i < connections_.size(); i++) { + output.writeMessage(5, connections_.get(i)); + } + if (isRequired_ != false) { + output.writeBool(6, isRequired_); + } + if (sensitive_ != false) { + output.writeBool(7, sensitive_); + } + for (int i = 0; i < validationRules_.size(); i++) { + output.writeMessage(8, validationRules_.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.GeneratedMessage.isStringEmpty(terraformInputVariable_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, terraformInputVariable_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, description_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(type_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, type_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDefaultValue()); + } + for (int i = 0; i < connections_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, connections_.get(i)); + } + if (isRequired_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, isRequired_); + } + if (sensitive_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, sensitive_); + } + for (int i = 0; i < validationRules_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, validationRules_.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.designcenter.v1.TerraformInput)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.TerraformInput other = + (com.google.cloud.designcenter.v1.TerraformInput) obj; + + if (!getTerraformInputVariable().equals(other.getTerraformInputVariable())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getType().equals(other.getType())) return false; + if (hasDefaultValue() != other.hasDefaultValue()) return false; + if (hasDefaultValue()) { + if (!getDefaultValue().equals(other.getDefaultValue())) return false; + } + if (!getConnectionsList().equals(other.getConnectionsList())) return false; + if (getIsRequired() != other.getIsRequired()) return false; + if (getSensitive() != other.getSensitive()) return false; + if (!getValidationRulesList().equals(other.getValidationRulesList())) 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) + TERRAFORM_INPUT_VARIABLE_FIELD_NUMBER; + hash = (53 * hash) + getTerraformInputVariable().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + if (hasDefaultValue()) { + hash = (37 * hash) + DEFAULT_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getDefaultValue().hashCode(); + } + if (getConnectionsCount() > 0) { + hash = (37 * hash) + CONNECTIONS_FIELD_NUMBER; + hash = (53 * hash) + getConnectionsList().hashCode(); + } + hash = (37 * hash) + IS_REQUIRED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsRequired()); + hash = (37 * hash) + SENSITIVE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSensitive()); + if (getValidationRulesCount() > 0) { + hash = (37 * hash) + VALIDATION_RULES_FIELD_NUMBER; + hash = (53 * hash) + getValidationRulesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.TerraformInput parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.TerraformInput 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.designcenter.v1.TerraformInput parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.TerraformInput parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TerraformInput parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.TerraformInput parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TerraformInput parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.TerraformInput parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TerraformInput parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.TerraformInput parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TerraformInput parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.TerraformInput parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.TerraformInput 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Terraform inputs.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.TerraformInput} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.TerraformInput) + com.google.cloud.designcenter.v1.TerraformInputOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TerraformInput_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TerraformInput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.TerraformInput.class, + com.google.cloud.designcenter.v1.TerraformInput.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.TerraformInput.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetDefaultValueFieldBuilder(); + internalGetConnectionsFieldBuilder(); + internalGetValidationRulesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + terraformInputVariable_ = ""; + description_ = ""; + type_ = ""; + defaultValue_ = null; + if (defaultValueBuilder_ != null) { + defaultValueBuilder_.dispose(); + defaultValueBuilder_ = null; + } + if (connectionsBuilder_ == null) { + connections_ = java.util.Collections.emptyList(); + } else { + connections_ = null; + connectionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + isRequired_ = false; + sensitive_ = false; + if (validationRulesBuilder_ == null) { + validationRules_ = java.util.Collections.emptyList(); + } else { + validationRules_ = null; + validationRulesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000080); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TerraformInput_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformInput getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.TerraformInput.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformInput build() { + com.google.cloud.designcenter.v1.TerraformInput result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformInput buildPartial() { + com.google.cloud.designcenter.v1.TerraformInput result = + new com.google.cloud.designcenter.v1.TerraformInput(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.designcenter.v1.TerraformInput result) { + if (connectionsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + connections_ = java.util.Collections.unmodifiableList(connections_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.connections_ = connections_; + } else { + result.connections_ = connectionsBuilder_.build(); + } + if (validationRulesBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0)) { + validationRules_ = java.util.Collections.unmodifiableList(validationRules_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.validationRules_ = validationRules_; + } else { + result.validationRules_ = validationRulesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.designcenter.v1.TerraformInput result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.terraformInputVariable_ = terraformInputVariable_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.type_ = type_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.defaultValue_ = + defaultValueBuilder_ == null ? defaultValue_ : defaultValueBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.isRequired_ = isRequired_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.sensitive_ = sensitive_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.TerraformInput) { + return mergeFrom((com.google.cloud.designcenter.v1.TerraformInput) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.TerraformInput other) { + if (other == com.google.cloud.designcenter.v1.TerraformInput.getDefaultInstance()) + return this; + if (!other.getTerraformInputVariable().isEmpty()) { + terraformInputVariable_ = other.terraformInputVariable_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getType().isEmpty()) { + type_ = other.type_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasDefaultValue()) { + mergeDefaultValue(other.getDefaultValue()); + } + if (connectionsBuilder_ == null) { + if (!other.connections_.isEmpty()) { + if (connections_.isEmpty()) { + connections_ = other.connections_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureConnectionsIsMutable(); + connections_.addAll(other.connections_); + } + onChanged(); + } + } else { + if (!other.connections_.isEmpty()) { + if (connectionsBuilder_.isEmpty()) { + connectionsBuilder_.dispose(); + connectionsBuilder_ = null; + connections_ = other.connections_; + bitField0_ = (bitField0_ & ~0x00000010); + connectionsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetConnectionsFieldBuilder() + : null; + } else { + connectionsBuilder_.addAllMessages(other.connections_); + } + } + } + if (other.getIsRequired() != false) { + setIsRequired(other.getIsRequired()); + } + if (other.getSensitive() != false) { + setSensitive(other.getSensitive()); + } + if (validationRulesBuilder_ == null) { + if (!other.validationRules_.isEmpty()) { + if (validationRules_.isEmpty()) { + validationRules_ = other.validationRules_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureValidationRulesIsMutable(); + validationRules_.addAll(other.validationRules_); + } + onChanged(); + } + } else { + if (!other.validationRules_.isEmpty()) { + if (validationRulesBuilder_.isEmpty()) { + validationRulesBuilder_.dispose(); + validationRulesBuilder_ = null; + validationRules_ = other.validationRules_; + bitField0_ = (bitField0_ & ~0x00000080); + validationRulesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetValidationRulesFieldBuilder() + : null; + } else { + validationRulesBuilder_.addAllMessages(other.validationRules_); + } + } + } + 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: + { + terraformInputVariable_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + type_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetDefaultValueFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + com.google.cloud.designcenter.v1.TerraformInputConnections m = + input.readMessage( + com.google.cloud.designcenter.v1.TerraformInputConnections.parser(), + extensionRegistry); + if (connectionsBuilder_ == null) { + ensureConnectionsIsMutable(); + connections_.add(m); + } else { + connectionsBuilder_.addMessage(m); + } + break; + } // case 42 + case 48: + { + isRequired_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: + { + sensitive_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 66: + { + com.google.cloud.designcenter.v1.TerraformVariableValidation m = + input.readMessage( + com.google.cloud.designcenter.v1.TerraformVariableValidation.parser(), + extensionRegistry); + if (validationRulesBuilder_ == null) { + ensureValidationRulesIsMutable(); + validationRules_.add(m); + } else { + validationRulesBuilder_.addMessage(m); + } + 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 terraformInputVariable_ = ""; + + /** + * + * + *
+     * Output only. Input variable name present in Terraform.
+     * 
+ * + * string terraform_input_variable = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The terraformInputVariable. + */ + public java.lang.String getTerraformInputVariable() { + java.lang.Object ref = terraformInputVariable_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + terraformInputVariable_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Input variable name present in Terraform.
+     * 
+ * + * string terraform_input_variable = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for terraformInputVariable. + */ + public com.google.protobuf.ByteString getTerraformInputVariableBytes() { + java.lang.Object ref = terraformInputVariable_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + terraformInputVariable_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Input variable name present in Terraform.
+     * 
+ * + * string terraform_input_variable = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The terraformInputVariable to set. + * @return This builder for chaining. + */ + public Builder setTerraformInputVariable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + terraformInputVariable_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Input variable name present in Terraform.
+     * 
+ * + * string terraform_input_variable = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearTerraformInputVariable() { + terraformInputVariable_ = getDefaultInstance().getTerraformInputVariable(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Input variable name present in Terraform.
+     * 
+ * + * string terraform_input_variable = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for terraformInputVariable to set. + * @return This builder for chaining. + */ + public Builder setTerraformInputVariableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + terraformInputVariable_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
+     * Output only. Terraform variable description.
+     * 
+ * + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+     * Output only. Terraform variable description.
+     * 
+ * + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+     * Output only. Terraform variable description.
+     * 
+ * + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Terraform variable description.
+     * 
+ * + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Terraform variable description.
+     * 
+ * + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object type_ = ""; + + /** + * + * + *
+     * Output only. The Terraform input data type.
+     * 
+ * + * string type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The type. + */ + public java.lang.String getType() { + java.lang.Object ref = type_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + type_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The Terraform input data type.
+     * 
+ * + * string type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for type. + */ + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The Terraform input data type.
+     * 
+ * + * string type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The Terraform input data type.
+     * 
+ * + * string type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearType() { + type_ = getDefaultInstance().getType(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The Terraform input data type.
+     * 
+ * + * string type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for type to set. + * @return This builder for chaining. + */ + public Builder setTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + type_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.Value defaultValue_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder> + defaultValueBuilder_; + + /** + * + * + *
+     * Output only. The default value of the Terraform input variable.
+     * 
+ * + * .google.protobuf.Value default_value = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the defaultValue field is set. + */ + public boolean hasDefaultValue() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Output only. The default value of the Terraform input variable.
+     * 
+ * + * .google.protobuf.Value default_value = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The defaultValue. + */ + public com.google.protobuf.Value getDefaultValue() { + if (defaultValueBuilder_ == null) { + return defaultValue_ == null + ? com.google.protobuf.Value.getDefaultInstance() + : defaultValue_; + } else { + return defaultValueBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. The default value of the Terraform input variable.
+     * 
+ * + * .google.protobuf.Value default_value = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDefaultValue(com.google.protobuf.Value value) { + if (defaultValueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + defaultValue_ = value; + } else { + defaultValueBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The default value of the Terraform input variable.
+     * 
+ * + * .google.protobuf.Value default_value = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDefaultValue(com.google.protobuf.Value.Builder builderForValue) { + if (defaultValueBuilder_ == null) { + defaultValue_ = builderForValue.build(); + } else { + defaultValueBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The default value of the Terraform input variable.
+     * 
+ * + * .google.protobuf.Value default_value = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeDefaultValue(com.google.protobuf.Value value) { + if (defaultValueBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && defaultValue_ != null + && defaultValue_ != com.google.protobuf.Value.getDefaultInstance()) { + getDefaultValueBuilder().mergeFrom(value); + } else { + defaultValue_ = value; + } + } else { + defaultValueBuilder_.mergeFrom(value); + } + if (defaultValue_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The default value of the Terraform input variable.
+     * 
+ * + * .google.protobuf.Value default_value = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDefaultValue() { + bitField0_ = (bitField0_ & ~0x00000008); + defaultValue_ = null; + if (defaultValueBuilder_ != null) { + defaultValueBuilder_.dispose(); + defaultValueBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The default value of the Terraform input variable.
+     * 
+ * + * .google.protobuf.Value default_value = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Value.Builder getDefaultValueBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetDefaultValueFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The default value of the Terraform input variable.
+     * 
+ * + * .google.protobuf.Value default_value = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.ValueOrBuilder getDefaultValueOrBuilder() { + if (defaultValueBuilder_ != null) { + return defaultValueBuilder_.getMessageOrBuilder(); + } else { + return defaultValue_ == null + ? com.google.protobuf.Value.getDefaultInstance() + : defaultValue_; + } + } + + /** + * + * + *
+     * Output only. The default value of the Terraform input variable.
+     * 
+ * + * .google.protobuf.Value default_value = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder> + internalGetDefaultValueFieldBuilder() { + if (defaultValueBuilder_ == null) { + defaultValueBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder>( + getDefaultValue(), getParentForChildren(), isClean()); + defaultValue_ = null; + } + return defaultValueBuilder_; + } + + private java.util.List + connections_ = java.util.Collections.emptyList(); + + private void ensureConnectionsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + connections_ = + new java.util.ArrayList( + connections_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.TerraformInputConnections, + com.google.cloud.designcenter.v1.TerraformInputConnections.Builder, + com.google.cloud.designcenter.v1.TerraformInputConnectionsOrBuilder> + connectionsBuilder_; + + /** + * + * + *
+     * Output only. Terraform input connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getConnectionsList() { + if (connectionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(connections_); + } else { + return connectionsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Output only. Terraform input connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getConnectionsCount() { + if (connectionsBuilder_ == null) { + return connections_.size(); + } else { + return connectionsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Output only. Terraform input connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.TerraformInputConnections getConnections(int index) { + if (connectionsBuilder_ == null) { + return connections_.get(index); + } else { + return connectionsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Output only. Terraform input connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setConnections( + int index, com.google.cloud.designcenter.v1.TerraformInputConnections value) { + if (connectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConnectionsIsMutable(); + connections_.set(index, value); + onChanged(); + } else { + connectionsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. Terraform input connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setConnections( + int index, + com.google.cloud.designcenter.v1.TerraformInputConnections.Builder builderForValue) { + if (connectionsBuilder_ == null) { + ensureConnectionsIsMutable(); + connections_.set(index, builderForValue.build()); + onChanged(); + } else { + connectionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. Terraform input connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addConnections( + com.google.cloud.designcenter.v1.TerraformInputConnections value) { + if (connectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConnectionsIsMutable(); + connections_.add(value); + onChanged(); + } else { + connectionsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Output only. Terraform input connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addConnections( + int index, com.google.cloud.designcenter.v1.TerraformInputConnections value) { + if (connectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConnectionsIsMutable(); + connections_.add(index, value); + onChanged(); + } else { + connectionsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. Terraform input connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addConnections( + com.google.cloud.designcenter.v1.TerraformInputConnections.Builder builderForValue) { + if (connectionsBuilder_ == null) { + ensureConnectionsIsMutable(); + connections_.add(builderForValue.build()); + onChanged(); + } else { + connectionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. Terraform input connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addConnections( + int index, + com.google.cloud.designcenter.v1.TerraformInputConnections.Builder builderForValue) { + if (connectionsBuilder_ == null) { + ensureConnectionsIsMutable(); + connections_.add(index, builderForValue.build()); + onChanged(); + } else { + connectionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. Terraform input connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllConnections( + java.lang.Iterable + values) { + if (connectionsBuilder_ == null) { + ensureConnectionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, connections_); + onChanged(); + } else { + connectionsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Output only. Terraform input connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearConnections() { + if (connectionsBuilder_ == null) { + connections_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + connectionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Output only. Terraform input connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeConnections(int index) { + if (connectionsBuilder_ == null) { + ensureConnectionsIsMutable(); + connections_.remove(index); + onChanged(); + } else { + connectionsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Output only. Terraform input connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.TerraformInputConnections.Builder getConnectionsBuilder( + int index) { + return internalGetConnectionsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Output only. Terraform input connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.TerraformInputConnectionsOrBuilder + getConnectionsOrBuilder(int index) { + if (connectionsBuilder_ == null) { + return connections_.get(index); + } else { + return connectionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Output only. Terraform input connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends com.google.cloud.designcenter.v1.TerraformInputConnectionsOrBuilder> + getConnectionsOrBuilderList() { + if (connectionsBuilder_ != null) { + return connectionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(connections_); + } + } + + /** + * + * + *
+     * Output only. Terraform input connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.TerraformInputConnections.Builder + addConnectionsBuilder() { + return internalGetConnectionsFieldBuilder() + .addBuilder( + com.google.cloud.designcenter.v1.TerraformInputConnections.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. Terraform input connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.TerraformInputConnections.Builder addConnectionsBuilder( + int index) { + return internalGetConnectionsFieldBuilder() + .addBuilder( + index, + com.google.cloud.designcenter.v1.TerraformInputConnections.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. Terraform input connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getConnectionsBuilderList() { + return internalGetConnectionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.TerraformInputConnections, + com.google.cloud.designcenter.v1.TerraformInputConnections.Builder, + com.google.cloud.designcenter.v1.TerraformInputConnectionsOrBuilder> + internalGetConnectionsFieldBuilder() { + if (connectionsBuilder_ == null) { + connectionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.TerraformInputConnections, + com.google.cloud.designcenter.v1.TerraformInputConnections.Builder, + com.google.cloud.designcenter.v1.TerraformInputConnectionsOrBuilder>( + connections_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); + connections_ = null; + } + return connectionsBuilder_; + } + + private boolean isRequired_; + + /** + * + * + *
+     * Output only. Indicates if input is required.
+     * 
+ * + * bool is_required = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The isRequired. + */ + @java.lang.Override + public boolean getIsRequired() { + return isRequired_; + } + + /** + * + * + *
+     * Output only. Indicates if input is required.
+     * 
+ * + * bool is_required = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The isRequired to set. + * @return This builder for chaining. + */ + public Builder setIsRequired(boolean value) { + + isRequired_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Indicates if input is required.
+     * 
+ * + * bool is_required = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearIsRequired() { + bitField0_ = (bitField0_ & ~0x00000020); + isRequired_ = false; + onChanged(); + return this; + } + + private boolean sensitive_; + + /** + * + * + *
+     * Optional. Indicates if the Terraform variable is sensitive.
+     * 
+ * + * bool sensitive = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sensitive. + */ + @java.lang.Override + public boolean getSensitive() { + return sensitive_; + } + + /** + * + * + *
+     * Optional. Indicates if the Terraform variable is sensitive.
+     * 
+ * + * bool sensitive = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The sensitive to set. + * @return This builder for chaining. + */ + public Builder setSensitive(boolean value) { + + sensitive_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Indicates if the Terraform variable is sensitive.
+     * 
+ * + * bool sensitive = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSensitive() { + bitField0_ = (bitField0_ & ~0x00000040); + sensitive_ = false; + onChanged(); + return this; + } + + private java.util.List + validationRules_ = java.util.Collections.emptyList(); + + private void ensureValidationRulesIsMutable() { + if (!((bitField0_ & 0x00000080) != 0)) { + validationRules_ = + new java.util.ArrayList( + validationRules_); + bitField0_ |= 0x00000080; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.TerraformVariableValidation, + com.google.cloud.designcenter.v1.TerraformVariableValidation.Builder, + com.google.cloud.designcenter.v1.TerraformVariableValidationOrBuilder> + validationRulesBuilder_; + + /** + * + * + *
+     * Optional. Optional validation rules defined on the variable.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformVariableValidation validation_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getValidationRulesList() { + if (validationRulesBuilder_ == null) { + return java.util.Collections.unmodifiableList(validationRules_); + } else { + return validationRulesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. Optional validation rules defined on the variable.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformVariableValidation validation_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getValidationRulesCount() { + if (validationRulesBuilder_ == null) { + return validationRules_.size(); + } else { + return validationRulesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. Optional validation rules defined on the variable.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformVariableValidation validation_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.TerraformVariableValidation getValidationRules( + int index) { + if (validationRulesBuilder_ == null) { + return validationRules_.get(index); + } else { + return validationRulesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. Optional validation rules defined on the variable.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformVariableValidation validation_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setValidationRules( + int index, com.google.cloud.designcenter.v1.TerraformVariableValidation value) { + if (validationRulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValidationRulesIsMutable(); + validationRules_.set(index, value); + onChanged(); + } else { + validationRulesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Optional validation rules defined on the variable.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformVariableValidation validation_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setValidationRules( + int index, + com.google.cloud.designcenter.v1.TerraformVariableValidation.Builder builderForValue) { + if (validationRulesBuilder_ == null) { + ensureValidationRulesIsMutable(); + validationRules_.set(index, builderForValue.build()); + onChanged(); + } else { + validationRulesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Optional validation rules defined on the variable.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformVariableValidation validation_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addValidationRules( + com.google.cloud.designcenter.v1.TerraformVariableValidation value) { + if (validationRulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValidationRulesIsMutable(); + validationRules_.add(value); + onChanged(); + } else { + validationRulesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. Optional validation rules defined on the variable.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformVariableValidation validation_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addValidationRules( + int index, com.google.cloud.designcenter.v1.TerraformVariableValidation value) { + if (validationRulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValidationRulesIsMutable(); + validationRules_.add(index, value); + onChanged(); + } else { + validationRulesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Optional validation rules defined on the variable.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformVariableValidation validation_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addValidationRules( + com.google.cloud.designcenter.v1.TerraformVariableValidation.Builder builderForValue) { + if (validationRulesBuilder_ == null) { + ensureValidationRulesIsMutable(); + validationRules_.add(builderForValue.build()); + onChanged(); + } else { + validationRulesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Optional validation rules defined on the variable.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformVariableValidation validation_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addValidationRules( + int index, + com.google.cloud.designcenter.v1.TerraformVariableValidation.Builder builderForValue) { + if (validationRulesBuilder_ == null) { + ensureValidationRulesIsMutable(); + validationRules_.add(index, builderForValue.build()); + onChanged(); + } else { + validationRulesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Optional validation rules defined on the variable.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformVariableValidation validation_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllValidationRules( + java.lang.Iterable + values) { + if (validationRulesBuilder_ == null) { + ensureValidationRulesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, validationRules_); + onChanged(); + } else { + validationRulesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. Optional validation rules defined on the variable.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformVariableValidation validation_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearValidationRules() { + if (validationRulesBuilder_ == null) { + validationRules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + } else { + validationRulesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Optional validation rules defined on the variable.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformVariableValidation validation_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeValidationRules(int index) { + if (validationRulesBuilder_ == null) { + ensureValidationRulesIsMutable(); + validationRules_.remove(index); + onChanged(); + } else { + validationRulesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. Optional validation rules defined on the variable.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformVariableValidation validation_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.TerraformVariableValidation.Builder + getValidationRulesBuilder(int index) { + return internalGetValidationRulesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. Optional validation rules defined on the variable.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformVariableValidation validation_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.TerraformVariableValidationOrBuilder + getValidationRulesOrBuilder(int index) { + if (validationRulesBuilder_ == null) { + return validationRules_.get(index); + } else { + return validationRulesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. Optional validation rules defined on the variable.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformVariableValidation validation_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends com.google.cloud.designcenter.v1.TerraformVariableValidationOrBuilder> + getValidationRulesOrBuilderList() { + if (validationRulesBuilder_ != null) { + return validationRulesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(validationRules_); + } + } + + /** + * + * + *
+     * Optional. Optional validation rules defined on the variable.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformVariableValidation validation_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.TerraformVariableValidation.Builder + addValidationRulesBuilder() { + return internalGetValidationRulesFieldBuilder() + .addBuilder( + com.google.cloud.designcenter.v1.TerraformVariableValidation.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Optional validation rules defined on the variable.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformVariableValidation validation_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.TerraformVariableValidation.Builder + addValidationRulesBuilder(int index) { + return internalGetValidationRulesFieldBuilder() + .addBuilder( + index, + com.google.cloud.designcenter.v1.TerraformVariableValidation.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Optional validation rules defined on the variable.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformVariableValidation validation_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getValidationRulesBuilderList() { + return internalGetValidationRulesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.TerraformVariableValidation, + com.google.cloud.designcenter.v1.TerraformVariableValidation.Builder, + com.google.cloud.designcenter.v1.TerraformVariableValidationOrBuilder> + internalGetValidationRulesFieldBuilder() { + if (validationRulesBuilder_ == null) { + validationRulesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.TerraformVariableValidation, + com.google.cloud.designcenter.v1.TerraformVariableValidation.Builder, + com.google.cloud.designcenter.v1.TerraformVariableValidationOrBuilder>( + validationRules_, + ((bitField0_ & 0x00000080) != 0), + getParentForChildren(), + isClean()); + validationRules_ = null; + } + return validationRulesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.TerraformInput) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.TerraformInput) + private static final com.google.cloud.designcenter.v1.TerraformInput DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.TerraformInput(); + } + + public static com.google.cloud.designcenter.v1.TerraformInput getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TerraformInput parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.TerraformInput getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformInputConnections.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformInputConnections.java new file mode 100644 index 000000000000..2cc4dfa0b20c --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformInputConnections.java @@ -0,0 +1,1164 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * TerraformInputConnections
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.TerraformInputConnections} + */ +@com.google.protobuf.Generated +public final class TerraformInputConnections extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.TerraformInputConnections) + TerraformInputConnectionsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "TerraformInputConnections"); + } + + // Use TerraformInputConnections.newBuilder() to construct. + private TerraformInputConnections(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private TerraformInputConnections() { + cftTemplateUri_ = ""; + cftTemplateVersion_ = ""; + outputVar_ = ""; + inputPath_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TerraformInputConnections_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TerraformInputConnections_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.TerraformInputConnections.class, + com.google.cloud.designcenter.v1.TerraformInputConnections.Builder.class); + } + + public static final int CFT_TEMPLATE_URI_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object cftTemplateUri_ = ""; + + /** + * + * + *
+   * Output only. List of other templates that can be connected to.
+   * 
+ * + * string cft_template_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The cftTemplateUri. + */ + @java.lang.Override + public java.lang.String getCftTemplateUri() { + java.lang.Object ref = cftTemplateUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cftTemplateUri_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. List of other templates that can be connected to.
+   * 
+ * + * string cft_template_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for cftTemplateUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCftTemplateUriBytes() { + java.lang.Object ref = cftTemplateUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cftTemplateUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CFT_TEMPLATE_VERSION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object cftTemplateVersion_ = ""; + + /** + * + * + *
+   * Output only. Version of the other template that can be connected to.
+   * 
+ * + * string cft_template_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The cftTemplateVersion. + */ + @java.lang.Override + public java.lang.String getCftTemplateVersion() { + java.lang.Object ref = cftTemplateVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cftTemplateVersion_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. Version of the other template that can be connected to.
+   * 
+ * + * string cft_template_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for cftTemplateVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCftTemplateVersionBytes() { + java.lang.Object ref = cftTemplateVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cftTemplateVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OUTPUT_VAR_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object outputVar_ = ""; + + /** + * + * + *
+   * Output only. Output variable name present in Terraform.
+   * 
+ * + * string output_var = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The outputVar. + */ + @java.lang.Override + public java.lang.String getOutputVar() { + java.lang.Object ref = outputVar_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outputVar_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. Output variable name present in Terraform.
+   * 
+ * + * string output_var = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for outputVar. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOutputVarBytes() { + java.lang.Object ref = outputVar_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + outputVar_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INPUT_PATH_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object inputPath_ = ""; + + /** + * + * + *
+   * Output only. Input path of the other template that can be connected to.
+   * 
+ * + * string input_path = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The inputPath. + */ + @java.lang.Override + public java.lang.String getInputPath() { + java.lang.Object ref = inputPath_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inputPath_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. Input path of the other template that can be connected to.
+   * 
+ * + * string input_path = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for inputPath. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInputPathBytes() { + java.lang.Object ref = inputPath_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + inputPath_ = 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.GeneratedMessage.isStringEmpty(cftTemplateUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, cftTemplateUri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(cftTemplateVersion_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, cftTemplateVersion_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(outputVar_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, outputVar_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(inputPath_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, inputPath_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(cftTemplateUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, cftTemplateUri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(cftTemplateVersion_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, cftTemplateVersion_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(outputVar_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, outputVar_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(inputPath_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, inputPath_); + } + 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.designcenter.v1.TerraformInputConnections)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.TerraformInputConnections other = + (com.google.cloud.designcenter.v1.TerraformInputConnections) obj; + + if (!getCftTemplateUri().equals(other.getCftTemplateUri())) return false; + if (!getCftTemplateVersion().equals(other.getCftTemplateVersion())) return false; + if (!getOutputVar().equals(other.getOutputVar())) return false; + if (!getInputPath().equals(other.getInputPath())) 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) + CFT_TEMPLATE_URI_FIELD_NUMBER; + hash = (53 * hash) + getCftTemplateUri().hashCode(); + hash = (37 * hash) + CFT_TEMPLATE_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getCftTemplateVersion().hashCode(); + hash = (37 * hash) + OUTPUT_VAR_FIELD_NUMBER; + hash = (53 * hash) + getOutputVar().hashCode(); + hash = (37 * hash) + INPUT_PATH_FIELD_NUMBER; + hash = (53 * hash) + getInputPath().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.TerraformInputConnections parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.TerraformInputConnections 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.designcenter.v1.TerraformInputConnections parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.TerraformInputConnections parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TerraformInputConnections parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.TerraformInputConnections parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TerraformInputConnections parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.TerraformInputConnections parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TerraformInputConnections parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.TerraformInputConnections parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TerraformInputConnections parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.TerraformInputConnections parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.TerraformInputConnections 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * TerraformInputConnections
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.TerraformInputConnections} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.TerraformInputConnections) + com.google.cloud.designcenter.v1.TerraformInputConnectionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TerraformInputConnections_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TerraformInputConnections_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.TerraformInputConnections.class, + com.google.cloud.designcenter.v1.TerraformInputConnections.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.TerraformInputConnections.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + cftTemplateUri_ = ""; + cftTemplateVersion_ = ""; + outputVar_ = ""; + inputPath_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TerraformInputConnections_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformInputConnections getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.TerraformInputConnections.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformInputConnections build() { + com.google.cloud.designcenter.v1.TerraformInputConnections result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformInputConnections buildPartial() { + com.google.cloud.designcenter.v1.TerraformInputConnections result = + new com.google.cloud.designcenter.v1.TerraformInputConnections(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.TerraformInputConnections result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.cftTemplateUri_ = cftTemplateUri_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.cftTemplateVersion_ = cftTemplateVersion_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.outputVar_ = outputVar_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.inputPath_ = inputPath_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.TerraformInputConnections) { + return mergeFrom((com.google.cloud.designcenter.v1.TerraformInputConnections) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.TerraformInputConnections other) { + if (other == com.google.cloud.designcenter.v1.TerraformInputConnections.getDefaultInstance()) + return this; + if (!other.getCftTemplateUri().isEmpty()) { + cftTemplateUri_ = other.cftTemplateUri_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getCftTemplateVersion().isEmpty()) { + cftTemplateVersion_ = other.cftTemplateVersion_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getOutputVar().isEmpty()) { + outputVar_ = other.outputVar_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getInputPath().isEmpty()) { + inputPath_ = other.inputPath_; + 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: + { + cftTemplateUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + cftTemplateVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + outputVar_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + inputPath_ = 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 cftTemplateUri_ = ""; + + /** + * + * + *
+     * Output only. List of other templates that can be connected to.
+     * 
+ * + * string cft_template_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The cftTemplateUri. + */ + public java.lang.String getCftTemplateUri() { + java.lang.Object ref = cftTemplateUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cftTemplateUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. List of other templates that can be connected to.
+     * 
+ * + * string cft_template_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for cftTemplateUri. + */ + public com.google.protobuf.ByteString getCftTemplateUriBytes() { + java.lang.Object ref = cftTemplateUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cftTemplateUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. List of other templates that can be connected to.
+     * 
+ * + * string cft_template_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The cftTemplateUri to set. + * @return This builder for chaining. + */ + public Builder setCftTemplateUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + cftTemplateUri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. List of other templates that can be connected to.
+     * 
+ * + * string cft_template_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearCftTemplateUri() { + cftTemplateUri_ = getDefaultInstance().getCftTemplateUri(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. List of other templates that can be connected to.
+     * 
+ * + * string cft_template_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for cftTemplateUri to set. + * @return This builder for chaining. + */ + public Builder setCftTemplateUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cftTemplateUri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object cftTemplateVersion_ = ""; + + /** + * + * + *
+     * Output only. Version of the other template that can be connected to.
+     * 
+ * + * string cft_template_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The cftTemplateVersion. + */ + public java.lang.String getCftTemplateVersion() { + java.lang.Object ref = cftTemplateVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cftTemplateVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Version of the other template that can be connected to.
+     * 
+ * + * string cft_template_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for cftTemplateVersion. + */ + public com.google.protobuf.ByteString getCftTemplateVersionBytes() { + java.lang.Object ref = cftTemplateVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cftTemplateVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Version of the other template that can be connected to.
+     * 
+ * + * string cft_template_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The cftTemplateVersion to set. + * @return This builder for chaining. + */ + public Builder setCftTemplateVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + cftTemplateVersion_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Version of the other template that can be connected to.
+     * 
+ * + * string cft_template_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearCftTemplateVersion() { + cftTemplateVersion_ = getDefaultInstance().getCftTemplateVersion(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Version of the other template that can be connected to.
+     * 
+ * + * string cft_template_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for cftTemplateVersion to set. + * @return This builder for chaining. + */ + public Builder setCftTemplateVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cftTemplateVersion_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object outputVar_ = ""; + + /** + * + * + *
+     * Output only. Output variable name present in Terraform.
+     * 
+ * + * string output_var = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The outputVar. + */ + public java.lang.String getOutputVar() { + java.lang.Object ref = outputVar_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outputVar_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Output variable name present in Terraform.
+     * 
+ * + * string output_var = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for outputVar. + */ + public com.google.protobuf.ByteString getOutputVarBytes() { + java.lang.Object ref = outputVar_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + outputVar_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Output variable name present in Terraform.
+     * 
+ * + * string output_var = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The outputVar to set. + * @return This builder for chaining. + */ + public Builder setOutputVar(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + outputVar_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Output variable name present in Terraform.
+     * 
+ * + * string output_var = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearOutputVar() { + outputVar_ = getDefaultInstance().getOutputVar(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Output variable name present in Terraform.
+     * 
+ * + * string output_var = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for outputVar to set. + * @return This builder for chaining. + */ + public Builder setOutputVarBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputVar_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object inputPath_ = ""; + + /** + * + * + *
+     * Output only. Input path of the other template that can be connected to.
+     * 
+ * + * string input_path = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The inputPath. + */ + public java.lang.String getInputPath() { + java.lang.Object ref = inputPath_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inputPath_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Input path of the other template that can be connected to.
+     * 
+ * + * string input_path = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for inputPath. + */ + public com.google.protobuf.ByteString getInputPathBytes() { + java.lang.Object ref = inputPath_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + inputPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Input path of the other template that can be connected to.
+     * 
+ * + * string input_path = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The inputPath to set. + * @return This builder for chaining. + */ + public Builder setInputPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + inputPath_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Input path of the other template that can be connected to.
+     * 
+ * + * string input_path = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearInputPath() { + inputPath_ = getDefaultInstance().getInputPath(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Input path of the other template that can be connected to.
+     * 
+ * + * string input_path = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for inputPath to set. + * @return This builder for chaining. + */ + public Builder setInputPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + inputPath_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.TerraformInputConnections) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.TerraformInputConnections) + private static final com.google.cloud.designcenter.v1.TerraformInputConnections DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.TerraformInputConnections(); + } + + public static com.google.cloud.designcenter.v1.TerraformInputConnections getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TerraformInputConnections parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.TerraformInputConnections getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformInputConnectionsOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformInputConnectionsOrBuilder.java new file mode 100644 index 000000000000..07662a5ddb61 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformInputConnectionsOrBuilder.java @@ -0,0 +1,132 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface TerraformInputConnectionsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.TerraformInputConnections) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. List of other templates that can be connected to.
+   * 
+ * + * string cft_template_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The cftTemplateUri. + */ + java.lang.String getCftTemplateUri(); + + /** + * + * + *
+   * Output only. List of other templates that can be connected to.
+   * 
+ * + * string cft_template_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for cftTemplateUri. + */ + com.google.protobuf.ByteString getCftTemplateUriBytes(); + + /** + * + * + *
+   * Output only. Version of the other template that can be connected to.
+   * 
+ * + * string cft_template_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The cftTemplateVersion. + */ + java.lang.String getCftTemplateVersion(); + + /** + * + * + *
+   * Output only. Version of the other template that can be connected to.
+   * 
+ * + * string cft_template_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for cftTemplateVersion. + */ + com.google.protobuf.ByteString getCftTemplateVersionBytes(); + + /** + * + * + *
+   * Output only. Output variable name present in Terraform.
+   * 
+ * + * string output_var = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The outputVar. + */ + java.lang.String getOutputVar(); + + /** + * + * + *
+   * Output only. Output variable name present in Terraform.
+   * 
+ * + * string output_var = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for outputVar. + */ + com.google.protobuf.ByteString getOutputVarBytes(); + + /** + * + * + *
+   * Output only. Input path of the other template that can be connected to.
+   * 
+ * + * string input_path = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The inputPath. + */ + java.lang.String getInputPath(); + + /** + * + * + *
+   * Output only. Input path of the other template that can be connected to.
+   * 
+ * + * string input_path = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for inputPath. + */ + com.google.protobuf.ByteString getInputPathBytes(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformInputOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformInputOrBuilder.java new file mode 100644 index 000000000000..a21f9ac902ba --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformInputOrBuilder.java @@ -0,0 +1,307 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface TerraformInputOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.TerraformInput) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Input variable name present in Terraform.
+   * 
+ * + * string terraform_input_variable = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The terraformInputVariable. + */ + java.lang.String getTerraformInputVariable(); + + /** + * + * + *
+   * Output only. Input variable name present in Terraform.
+   * 
+ * + * string terraform_input_variable = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for terraformInputVariable. + */ + com.google.protobuf.ByteString getTerraformInputVariableBytes(); + + /** + * + * + *
+   * Output only. Terraform variable description.
+   * 
+ * + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
+   * Output only. Terraform variable description.
+   * 
+ * + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Output only. The Terraform input data type.
+   * 
+ * + * string type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The type. + */ + java.lang.String getType(); + + /** + * + * + *
+   * Output only. The Terraform input data type.
+   * 
+ * + * string type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for type. + */ + com.google.protobuf.ByteString getTypeBytes(); + + /** + * + * + *
+   * Output only. The default value of the Terraform input variable.
+   * 
+ * + * .google.protobuf.Value default_value = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the defaultValue field is set. + */ + boolean hasDefaultValue(); + + /** + * + * + *
+   * Output only. The default value of the Terraform input variable.
+   * 
+ * + * .google.protobuf.Value default_value = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The defaultValue. + */ + com.google.protobuf.Value getDefaultValue(); + + /** + * + * + *
+   * Output only. The default value of the Terraform input variable.
+   * 
+ * + * .google.protobuf.Value default_value = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.ValueOrBuilder getDefaultValueOrBuilder(); + + /** + * + * + *
+   * Output only. Terraform input connections.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getConnectionsList(); + + /** + * + * + *
+   * Output only. Terraform input connections.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.TerraformInputConnections getConnections(int index); + + /** + * + * + *
+   * Output only. Terraform input connections.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getConnectionsCount(); + + /** + * + * + *
+   * Output only. Terraform input connections.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getConnectionsOrBuilderList(); + + /** + * + * + *
+   * Output only. Terraform input connections.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.TerraformInputConnectionsOrBuilder getConnectionsOrBuilder( + int index); + + /** + * + * + *
+   * Output only. Indicates if input is required.
+   * 
+ * + * bool is_required = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The isRequired. + */ + boolean getIsRequired(); + + /** + * + * + *
+   * Optional. Indicates if the Terraform variable is sensitive.
+   * 
+ * + * bool sensitive = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sensitive. + */ + boolean getSensitive(); + + /** + * + * + *
+   * Optional. Optional validation rules defined on the variable.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformVariableValidation validation_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getValidationRulesList(); + + /** + * + * + *
+   * Optional. Optional validation rules defined on the variable.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformVariableValidation validation_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.TerraformVariableValidation getValidationRules(int index); + + /** + * + * + *
+   * Optional. Optional validation rules defined on the variable.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformVariableValidation validation_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getValidationRulesCount(); + + /** + * + * + *
+   * Optional. Optional validation rules defined on the variable.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformVariableValidation validation_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getValidationRulesOrBuilderList(); + + /** + * + * + *
+   * Optional. Optional validation rules defined on the variable.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformVariableValidation validation_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.TerraformVariableValidationOrBuilder getValidationRulesOrBuilder( + int index); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformModule.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformModule.java new file mode 100644 index 000000000000..50d0241f7c7e --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformModule.java @@ -0,0 +1,1132 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/iac.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Represents a Terraform module, which is a collection of Terraform files.
+ * Eg:
+ * {
+ * "source": "git::https://github.com/my-org/my-repo",
+ * "files": [
+ * {
+ * "path": "/path/to/file/main.tf",
+ * "content": "tf file content"
+ * }
+ * ]
+ * }
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.TerraformModule} + */ +@com.google.protobuf.Generated +public final class TerraformModule extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.TerraformModule) + TerraformModuleOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "TerraformModule"); + } + + // Use TerraformModule.newBuilder() to construct. + private TerraformModule(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private TerraformModule() { + source_ = ""; + files_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.IacProto + .internal_static_google_cloud_designcenter_v1_TerraformModule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.IacProto + .internal_static_google_cloud_designcenter_v1_TerraformModule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.TerraformModule.class, + com.google.cloud.designcenter.v1.TerraformModule.Builder.class); + } + + public static final int SOURCE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object source_ = ""; + + /** + * + * + *
+   * The source of the Terraform module.
+   * 
+ * + * string source = 1; + * + * @return The source. + */ + @java.lang.Override + public java.lang.String getSource() { + java.lang.Object ref = source_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + source_ = s; + return s; + } + } + + /** + * + * + *
+   * The source of the Terraform module.
+   * 
+ * + * string source = 1; + * + * @return The bytes for source. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSourceBytes() { + java.lang.Object ref = source_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + source_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List files_; + + /** + * + * + *
+   * The files within the Terraform module.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformFile files = 2; + */ + @java.lang.Override + public java.util.List getFilesList() { + return files_; + } + + /** + * + * + *
+   * The files within the Terraform module.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformFile files = 2; + */ + @java.lang.Override + public java.util.List + getFilesOrBuilderList() { + return files_; + } + + /** + * + * + *
+   * The files within the Terraform module.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformFile files = 2; + */ + @java.lang.Override + public int getFilesCount() { + return files_.size(); + } + + /** + * + * + *
+   * The files within the Terraform module.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformFile files = 2; + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformFile getFiles(int index) { + return files_.get(index); + } + + /** + * + * + *
+   * The files within the Terraform module.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformFile files = 2; + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformFileOrBuilder getFilesOrBuilder(int index) { + return files_.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.GeneratedMessage.isStringEmpty(source_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, source_); + } + for (int i = 0; i < files_.size(); i++) { + output.writeMessage(2, files_.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.GeneratedMessage.isStringEmpty(source_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, source_); + } + for (int i = 0; i < files_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, files_.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.designcenter.v1.TerraformModule)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.TerraformModule other = + (com.google.cloud.designcenter.v1.TerraformModule) obj; + + if (!getSource().equals(other.getSource())) return false; + if (!getFilesList().equals(other.getFilesList())) 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) + SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getSource().hashCode(); + if (getFilesCount() > 0) { + hash = (37 * hash) + FILES_FIELD_NUMBER; + hash = (53 * hash) + getFilesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.TerraformModule parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.TerraformModule 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.designcenter.v1.TerraformModule parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.TerraformModule parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TerraformModule parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.TerraformModule parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TerraformModule parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.TerraformModule parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TerraformModule parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.TerraformModule parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TerraformModule parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.TerraformModule parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.TerraformModule 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Represents a Terraform module, which is a collection of Terraform files.
+   * Eg:
+   * {
+   * "source": "git::https://github.com/my-org/my-repo",
+   * "files": [
+   * {
+   * "path": "/path/to/file/main.tf",
+   * "content": "tf file content"
+   * }
+   * ]
+   * }
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.TerraformModule} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.TerraformModule) + com.google.cloud.designcenter.v1.TerraformModuleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.IacProto + .internal_static_google_cloud_designcenter_v1_TerraformModule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.IacProto + .internal_static_google_cloud_designcenter_v1_TerraformModule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.TerraformModule.class, + com.google.cloud.designcenter.v1.TerraformModule.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.TerraformModule.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + source_ = ""; + if (filesBuilder_ == null) { + files_ = java.util.Collections.emptyList(); + } else { + files_ = null; + filesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.IacProto + .internal_static_google_cloud_designcenter_v1_TerraformModule_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformModule getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.TerraformModule.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformModule build() { + com.google.cloud.designcenter.v1.TerraformModule result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformModule buildPartial() { + com.google.cloud.designcenter.v1.TerraformModule result = + new com.google.cloud.designcenter.v1.TerraformModule(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.designcenter.v1.TerraformModule result) { + if (filesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + files_ = java.util.Collections.unmodifiableList(files_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.files_ = files_; + } else { + result.files_ = filesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.designcenter.v1.TerraformModule result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.source_ = source_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.TerraformModule) { + return mergeFrom((com.google.cloud.designcenter.v1.TerraformModule) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.TerraformModule other) { + if (other == com.google.cloud.designcenter.v1.TerraformModule.getDefaultInstance()) + return this; + if (!other.getSource().isEmpty()) { + source_ = other.source_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (filesBuilder_ == null) { + if (!other.files_.isEmpty()) { + if (files_.isEmpty()) { + files_ = other.files_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureFilesIsMutable(); + files_.addAll(other.files_); + } + onChanged(); + } + } else { + if (!other.files_.isEmpty()) { + if (filesBuilder_.isEmpty()) { + filesBuilder_.dispose(); + filesBuilder_ = null; + files_ = other.files_; + bitField0_ = (bitField0_ & ~0x00000002); + filesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetFilesFieldBuilder() + : null; + } else { + filesBuilder_.addAllMessages(other.files_); + } + } + } + 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: + { + source_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.designcenter.v1.TerraformFile m = + input.readMessage( + com.google.cloud.designcenter.v1.TerraformFile.parser(), extensionRegistry); + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + files_.add(m); + } else { + filesBuilder_.addMessage(m); + } + 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 source_ = ""; + + /** + * + * + *
+     * The source of the Terraform module.
+     * 
+ * + * string source = 1; + * + * @return The source. + */ + public java.lang.String getSource() { + java.lang.Object ref = source_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + source_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The source of the Terraform module.
+     * 
+ * + * string source = 1; + * + * @return The bytes for source. + */ + public com.google.protobuf.ByteString getSourceBytes() { + java.lang.Object ref = source_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + source_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The source of the Terraform module.
+     * 
+ * + * string source = 1; + * + * @param value The source to set. + * @return This builder for chaining. + */ + public Builder setSource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The source of the Terraform module.
+     * 
+ * + * string source = 1; + * + * @return This builder for chaining. + */ + public Builder clearSource() { + source_ = getDefaultInstance().getSource(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * The source of the Terraform module.
+     * 
+ * + * string source = 1; + * + * @param value The bytes for source to set. + * @return This builder for chaining. + */ + public Builder setSourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + source_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List files_ = + java.util.Collections.emptyList(); + + private void ensureFilesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + files_ = new java.util.ArrayList(files_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.TerraformFile, + com.google.cloud.designcenter.v1.TerraformFile.Builder, + com.google.cloud.designcenter.v1.TerraformFileOrBuilder> + filesBuilder_; + + /** + * + * + *
+     * The files within the Terraform module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformFile files = 2; + */ + public java.util.List getFilesList() { + if (filesBuilder_ == null) { + return java.util.Collections.unmodifiableList(files_); + } else { + return filesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The files within the Terraform module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformFile files = 2; + */ + public int getFilesCount() { + if (filesBuilder_ == null) { + return files_.size(); + } else { + return filesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The files within the Terraform module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformFile files = 2; + */ + public com.google.cloud.designcenter.v1.TerraformFile getFiles(int index) { + if (filesBuilder_ == null) { + return files_.get(index); + } else { + return filesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The files within the Terraform module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformFile files = 2; + */ + public Builder setFiles(int index, com.google.cloud.designcenter.v1.TerraformFile value) { + if (filesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilesIsMutable(); + files_.set(index, value); + onChanged(); + } else { + filesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The files within the Terraform module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformFile files = 2; + */ + public Builder setFiles( + int index, com.google.cloud.designcenter.v1.TerraformFile.Builder builderForValue) { + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + files_.set(index, builderForValue.build()); + onChanged(); + } else { + filesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The files within the Terraform module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformFile files = 2; + */ + public Builder addFiles(com.google.cloud.designcenter.v1.TerraformFile value) { + if (filesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilesIsMutable(); + files_.add(value); + onChanged(); + } else { + filesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The files within the Terraform module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformFile files = 2; + */ + public Builder addFiles(int index, com.google.cloud.designcenter.v1.TerraformFile value) { + if (filesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilesIsMutable(); + files_.add(index, value); + onChanged(); + } else { + filesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The files within the Terraform module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformFile files = 2; + */ + public Builder addFiles( + com.google.cloud.designcenter.v1.TerraformFile.Builder builderForValue) { + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + files_.add(builderForValue.build()); + onChanged(); + } else { + filesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The files within the Terraform module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformFile files = 2; + */ + public Builder addFiles( + int index, com.google.cloud.designcenter.v1.TerraformFile.Builder builderForValue) { + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + files_.add(index, builderForValue.build()); + onChanged(); + } else { + filesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The files within the Terraform module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformFile files = 2; + */ + 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; + } + + /** + * + * + *
+     * The files within the Terraform module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformFile files = 2; + */ + public Builder clearFiles() { + if (filesBuilder_ == null) { + files_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + filesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The files within the Terraform module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformFile files = 2; + */ + public Builder removeFiles(int index) { + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + files_.remove(index); + onChanged(); + } else { + filesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The files within the Terraform module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformFile files = 2; + */ + public com.google.cloud.designcenter.v1.TerraformFile.Builder getFilesBuilder(int index) { + return internalGetFilesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The files within the Terraform module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformFile files = 2; + */ + public com.google.cloud.designcenter.v1.TerraformFileOrBuilder getFilesOrBuilder(int index) { + if (filesBuilder_ == null) { + return files_.get(index); + } else { + return filesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The files within the Terraform module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformFile files = 2; + */ + public java.util.List + getFilesOrBuilderList() { + if (filesBuilder_ != null) { + return filesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(files_); + } + } + + /** + * + * + *
+     * The files within the Terraform module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformFile files = 2; + */ + public com.google.cloud.designcenter.v1.TerraformFile.Builder addFilesBuilder() { + return internalGetFilesFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.TerraformFile.getDefaultInstance()); + } + + /** + * + * + *
+     * The files within the Terraform module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformFile files = 2; + */ + public com.google.cloud.designcenter.v1.TerraformFile.Builder addFilesBuilder(int index) { + return internalGetFilesFieldBuilder() + .addBuilder(index, com.google.cloud.designcenter.v1.TerraformFile.getDefaultInstance()); + } + + /** + * + * + *
+     * The files within the Terraform module.
+     * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformFile files = 2; + */ + public java.util.List + getFilesBuilderList() { + return internalGetFilesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.TerraformFile, + com.google.cloud.designcenter.v1.TerraformFile.Builder, + com.google.cloud.designcenter.v1.TerraformFileOrBuilder> + internalGetFilesFieldBuilder() { + if (filesBuilder_ == null) { + filesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.TerraformFile, + com.google.cloud.designcenter.v1.TerraformFile.Builder, + com.google.cloud.designcenter.v1.TerraformFileOrBuilder>( + files_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + files_ = null; + } + return filesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.TerraformModule) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.TerraformModule) + private static final com.google.cloud.designcenter.v1.TerraformModule DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.TerraformModule(); + } + + public static com.google.cloud.designcenter.v1.TerraformModule getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TerraformModule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.TerraformModule getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformModuleConfig.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformModuleConfig.java new file mode 100644 index 000000000000..8edc8dc0ef7a --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformModuleConfig.java @@ -0,0 +1,786 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/export.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Configuration on how terraform module should be handled during
+ * export.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.TerraformModuleConfig} + */ +@com.google.protobuf.Generated +public final class TerraformModuleConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.TerraformModuleConfig) + TerraformModuleConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "TerraformModuleConfig"); + } + + // Use TerraformModuleConfig.newBuilder() to construct. + private TerraformModuleConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private TerraformModuleConfig() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.ExportProto + .internal_static_google_cloud_designcenter_v1_TerraformModuleConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.ExportProto + .internal_static_google_cloud_designcenter_v1_TerraformModuleConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.TerraformModuleConfig.class, + com.google.cloud.designcenter.v1.TerraformModuleConfig.Builder.class); + } + + private int sourceOverrideCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object sourceOverride_; + + public enum SourceOverrideCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + GIT_PROXY_ENABLED(1), + LOCAL_REFERENCES_ENABLED(2), + SOURCEOVERRIDE_NOT_SET(0); + private final int value; + + private SourceOverrideCase(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 SourceOverrideCase valueOf(int value) { + return forNumber(value); + } + + public static SourceOverrideCase forNumber(int value) { + switch (value) { + case 1: + return GIT_PROXY_ENABLED; + case 2: + return LOCAL_REFERENCES_ENABLED; + case 0: + return SOURCEOVERRIDE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public SourceOverrideCase getSourceOverrideCase() { + return SourceOverrideCase.forNumber(sourceOverrideCase_); + } + + public static final int GIT_PROXY_ENABLED_FIELD_NUMBER = 1; + + /** + * + * + *
+   * Optional. This is typically only valid for 3P components if ingested via
+   * devconnect URI. Typically, for 1P components, since they are sourced from
+   * public git repos, this field is not applicable.
+   * 
+ * + * bool git_proxy_enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the gitProxyEnabled field is set. + */ + @java.lang.Override + public boolean hasGitProxyEnabled() { + return sourceOverrideCase_ == 1; + } + + /** + * + * + *
+   * Optional. This is typically only valid for 3P components if ingested via
+   * devconnect URI. Typically, for 1P components, since they are sourced from
+   * public git repos, this field is not applicable.
+   * 
+ * + * bool git_proxy_enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The gitProxyEnabled. + */ + @java.lang.Override + public boolean getGitProxyEnabled() { + if (sourceOverrideCase_ == 1) { + return (java.lang.Boolean) sourceOverride_; + } + return false; + } + + public static final int LOCAL_REFERENCES_ENABLED_FIELD_NUMBER = 2; + + /** + * + * + *
+   * Optional. If set, all the dependent modules will be downloaded from the
+   * target repository and referenced locally.
+   * 
+ * + * bool local_references_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the localReferencesEnabled field is set. + */ + @java.lang.Override + public boolean hasLocalReferencesEnabled() { + return sourceOverrideCase_ == 2; + } + + /** + * + * + *
+   * Optional. If set, all the dependent modules will be downloaded from the
+   * target repository and referenced locally.
+   * 
+ * + * bool local_references_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The localReferencesEnabled. + */ + @java.lang.Override + public boolean getLocalReferencesEnabled() { + if (sourceOverrideCase_ == 2) { + return (java.lang.Boolean) sourceOverride_; + } + return false; + } + + 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 (sourceOverrideCase_ == 1) { + output.writeBool(1, (boolean) ((java.lang.Boolean) sourceOverride_)); + } + if (sourceOverrideCase_ == 2) { + output.writeBool(2, (boolean) ((java.lang.Boolean) sourceOverride_)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (sourceOverrideCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 1, (boolean) ((java.lang.Boolean) sourceOverride_)); + } + if (sourceOverrideCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 2, (boolean) ((java.lang.Boolean) sourceOverride_)); + } + 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.designcenter.v1.TerraformModuleConfig)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.TerraformModuleConfig other = + (com.google.cloud.designcenter.v1.TerraformModuleConfig) obj; + + if (!getSourceOverrideCase().equals(other.getSourceOverrideCase())) return false; + switch (sourceOverrideCase_) { + case 1: + if (getGitProxyEnabled() != other.getGitProxyEnabled()) return false; + break; + case 2: + if (getLocalReferencesEnabled() != other.getLocalReferencesEnabled()) 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 (sourceOverrideCase_) { + case 1: + hash = (37 * hash) + GIT_PROXY_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getGitProxyEnabled()); + break; + case 2: + hash = (37 * hash) + LOCAL_REFERENCES_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getLocalReferencesEnabled()); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.TerraformModuleConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.TerraformModuleConfig 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.designcenter.v1.TerraformModuleConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.TerraformModuleConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TerraformModuleConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.TerraformModuleConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TerraformModuleConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.TerraformModuleConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TerraformModuleConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.TerraformModuleConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TerraformModuleConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.TerraformModuleConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.TerraformModuleConfig 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Configuration on how terraform module should be handled during
+   * export.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.TerraformModuleConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.TerraformModuleConfig) + com.google.cloud.designcenter.v1.TerraformModuleConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.ExportProto + .internal_static_google_cloud_designcenter_v1_TerraformModuleConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.ExportProto + .internal_static_google_cloud_designcenter_v1_TerraformModuleConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.TerraformModuleConfig.class, + com.google.cloud.designcenter.v1.TerraformModuleConfig.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.TerraformModuleConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + sourceOverrideCase_ = 0; + sourceOverride_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.ExportProto + .internal_static_google_cloud_designcenter_v1_TerraformModuleConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformModuleConfig getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.TerraformModuleConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformModuleConfig build() { + com.google.cloud.designcenter.v1.TerraformModuleConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformModuleConfig buildPartial() { + com.google.cloud.designcenter.v1.TerraformModuleConfig result = + new com.google.cloud.designcenter.v1.TerraformModuleConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.TerraformModuleConfig result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.designcenter.v1.TerraformModuleConfig result) { + result.sourceOverrideCase_ = sourceOverrideCase_; + result.sourceOverride_ = this.sourceOverride_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.TerraformModuleConfig) { + return mergeFrom((com.google.cloud.designcenter.v1.TerraformModuleConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.TerraformModuleConfig other) { + if (other == com.google.cloud.designcenter.v1.TerraformModuleConfig.getDefaultInstance()) + return this; + switch (other.getSourceOverrideCase()) { + case GIT_PROXY_ENABLED: + { + setGitProxyEnabled(other.getGitProxyEnabled()); + break; + } + case LOCAL_REFERENCES_ENABLED: + { + setLocalReferencesEnabled(other.getLocalReferencesEnabled()); + break; + } + case SOURCEOVERRIDE_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 8: + { + sourceOverride_ = input.readBool(); + sourceOverrideCase_ = 1; + break; + } // case 8 + case 16: + { + sourceOverride_ = input.readBool(); + sourceOverrideCase_ = 2; + 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 sourceOverrideCase_ = 0; + private java.lang.Object sourceOverride_; + + public SourceOverrideCase getSourceOverrideCase() { + return SourceOverrideCase.forNumber(sourceOverrideCase_); + } + + public Builder clearSourceOverride() { + sourceOverrideCase_ = 0; + sourceOverride_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
+     * Optional. This is typically only valid for 3P components if ingested via
+     * devconnect URI. Typically, for 1P components, since they are sourced from
+     * public git repos, this field is not applicable.
+     * 
+ * + * bool git_proxy_enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the gitProxyEnabled field is set. + */ + public boolean hasGitProxyEnabled() { + return sourceOverrideCase_ == 1; + } + + /** + * + * + *
+     * Optional. This is typically only valid for 3P components if ingested via
+     * devconnect URI. Typically, for 1P components, since they are sourced from
+     * public git repos, this field is not applicable.
+     * 
+ * + * bool git_proxy_enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The gitProxyEnabled. + */ + public boolean getGitProxyEnabled() { + if (sourceOverrideCase_ == 1) { + return (java.lang.Boolean) sourceOverride_; + } + return false; + } + + /** + * + * + *
+     * Optional. This is typically only valid for 3P components if ingested via
+     * devconnect URI. Typically, for 1P components, since they are sourced from
+     * public git repos, this field is not applicable.
+     * 
+ * + * bool git_proxy_enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The gitProxyEnabled to set. + * @return This builder for chaining. + */ + public Builder setGitProxyEnabled(boolean value) { + + sourceOverrideCase_ = 1; + sourceOverride_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. This is typically only valid for 3P components if ingested via
+     * devconnect URI. Typically, for 1P components, since they are sourced from
+     * public git repos, this field is not applicable.
+     * 
+ * + * bool git_proxy_enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearGitProxyEnabled() { + if (sourceOverrideCase_ == 1) { + sourceOverrideCase_ = 0; + sourceOverride_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. If set, all the dependent modules will be downloaded from the
+     * target repository and referenced locally.
+     * 
+ * + * bool local_references_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the localReferencesEnabled field is set. + */ + public boolean hasLocalReferencesEnabled() { + return sourceOverrideCase_ == 2; + } + + /** + * + * + *
+     * Optional. If set, all the dependent modules will be downloaded from the
+     * target repository and referenced locally.
+     * 
+ * + * bool local_references_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The localReferencesEnabled. + */ + public boolean getLocalReferencesEnabled() { + if (sourceOverrideCase_ == 2) { + return (java.lang.Boolean) sourceOverride_; + } + return false; + } + + /** + * + * + *
+     * Optional. If set, all the dependent modules will be downloaded from the
+     * target repository and referenced locally.
+     * 
+ * + * bool local_references_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The localReferencesEnabled to set. + * @return This builder for chaining. + */ + public Builder setLocalReferencesEnabled(boolean value) { + + sourceOverrideCase_ = 2; + sourceOverride_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. If set, all the dependent modules will be downloaded from the
+     * target repository and referenced locally.
+     * 
+ * + * bool local_references_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearLocalReferencesEnabled() { + if (sourceOverrideCase_ == 2) { + sourceOverrideCase_ = 0; + sourceOverride_ = null; + onChanged(); + } + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.TerraformModuleConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.TerraformModuleConfig) + private static final com.google.cloud.designcenter.v1.TerraformModuleConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.TerraformModuleConfig(); + } + + public static com.google.cloud.designcenter.v1.TerraformModuleConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TerraformModuleConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.TerraformModuleConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformModuleConfigOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformModuleConfigOrBuilder.java new file mode 100644 index 000000000000..ac3500c18dbf --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformModuleConfigOrBuilder.java @@ -0,0 +1,88 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/export.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface TerraformModuleConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.TerraformModuleConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. This is typically only valid for 3P components if ingested via
+   * devconnect URI. Typically, for 1P components, since they are sourced from
+   * public git repos, this field is not applicable.
+   * 
+ * + * bool git_proxy_enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the gitProxyEnabled field is set. + */ + boolean hasGitProxyEnabled(); + + /** + * + * + *
+   * Optional. This is typically only valid for 3P components if ingested via
+   * devconnect URI. Typically, for 1P components, since they are sourced from
+   * public git repos, this field is not applicable.
+   * 
+ * + * bool git_proxy_enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The gitProxyEnabled. + */ + boolean getGitProxyEnabled(); + + /** + * + * + *
+   * Optional. If set, all the dependent modules will be downloaded from the
+   * target repository and referenced locally.
+   * 
+ * + * bool local_references_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the localReferencesEnabled field is set. + */ + boolean hasLocalReferencesEnabled(); + + /** + * + * + *
+   * Optional. If set, all the dependent modules will be downloaded from the
+   * target repository and referenced locally.
+   * 
+ * + * bool local_references_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The localReferencesEnabled. + */ + boolean getLocalReferencesEnabled(); + + com.google.cloud.designcenter.v1.TerraformModuleConfig.SourceOverrideCase getSourceOverrideCase(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformModuleMetadata.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformModuleMetadata.java new file mode 100644 index 000000000000..b939a7260046 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformModuleMetadata.java @@ -0,0 +1,5193 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Top-level message representing a Terraform module and its metadata.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.TerraformModuleMetadata} + */ +@com.google.protobuf.Generated +public final class TerraformModuleMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.TerraformModuleMetadata) + TerraformModuleMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "TerraformModuleMetadata"); + } + + // Use TerraformModuleMetadata.newBuilder() to construct. + private TerraformModuleMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private TerraformModuleMetadata() { + uri_ = ""; + id_ = ""; + owner_ = ""; + moduleNamespace_ = ""; + name_ = ""; + version_ = ""; + provider_ = ""; + description_ = ""; + source_ = ""; + tag_ = ""; + submodules_ = java.util.Collections.emptyList(); + examples_ = java.util.Collections.emptyList(); + providers_ = com.google.protobuf.LazyStringArrayList.emptyList(); + versions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + revisions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + connections_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TerraformModuleMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TerraformModuleMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.TerraformModuleMetadata.class, + com.google.cloud.designcenter.v1.TerraformModuleMetadata.Builder.class); + } + + private int bitField0_; + public static final int URI_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; + + /** + * + * + *
+   * Optional. The URI of the Terraform module.
+   * 
+ * + * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The uri. + */ + @java.lang.Override + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The URI of the Terraform module.
+   * 
+ * + * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for uri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + + /** + * + * + *
+   * Optional. Unique identifier for the module version, e.g.,
+   * "GoogleCloudPlatform/secret-manager/google/0.9.0"
+   * 
+ * + * string id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Unique identifier for the module version, e.g.,
+   * "GoogleCloudPlatform/secret-manager/google/0.9.0"
+   * 
+ * + * string id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OWNER_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object owner_ = ""; + + /** + * + * + *
+   * Optional. Owner of the module.
+   * 
+ * + * string owner = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The owner. + */ + @java.lang.Override + public java.lang.String getOwner() { + java.lang.Object ref = owner_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + owner_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Owner of the module.
+   * 
+ * + * string owner = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for owner. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOwnerBytes() { + java.lang.Object ref = owner_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + owner_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MODULE_NAMESPACE_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object moduleNamespace_ = ""; + + /** + * + * + *
+   * Optional. Namespace for the module, often the organization.
+   * 
+ * + * string module_namespace = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The moduleNamespace. + */ + @java.lang.Override + public java.lang.String getModuleNamespace() { + java.lang.Object ref = moduleNamespace_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + moduleNamespace_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Namespace for the module, often the organization.
+   * 
+ * + * string module_namespace = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for moduleNamespace. + */ + @java.lang.Override + public com.google.protobuf.ByteString getModuleNamespaceBytes() { + java.lang.Object ref = moduleNamespace_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + moduleNamespace_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Optional. Name of the module.
+   * 
+ * + * string name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+   * Optional. Name of the module.
+   * 
+ * + * string name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 VERSION_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object version_ = ""; + + /** + * + * + *
+   * Optional. Semantic version of the module.
+   * 
+ * + * string version = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+   * Optional. Semantic version of the module.
+   * 
+ * + * string version = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 PROVIDER_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object provider_ = ""; + + /** + * + * + *
+   * Optional. Primary provider used by the module, e.g., "google".
+   * 
+ * + * string provider = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The provider. + */ + @java.lang.Override + public java.lang.String getProvider() { + java.lang.Object ref = provider_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + provider_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Primary provider used by the module, e.g., "google".
+   * 
+ * + * string provider = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for provider. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProviderBytes() { + java.lang.Object ref = provider_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + provider_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
+   * Optional. Description of the module's purpose.
+   * 
+ * + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Description of the module's purpose.
+   * 
+ * + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SOURCE_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private volatile java.lang.Object source_ = ""; + + /** + * + * + *
+   * Optional. URL to the source repository.
+   * 
+ * + * string source = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The source. + */ + @java.lang.Override + public java.lang.String getSource() { + java.lang.Object ref = source_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + source_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. URL to the source repository.
+   * 
+ * + * string source = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for source. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSourceBytes() { + java.lang.Object ref = source_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + source_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TAG_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private volatile java.lang.Object tag_ = ""; + + /** + * + * + *
+   * Optional. Git tag or ref for this version.
+   * 
+ * + * string tag = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The tag. + */ + @java.lang.Override + public java.lang.String getTag() { + java.lang.Object ref = tag_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tag_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Git tag or ref for this version.
+   * 
+ * + * string tag = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for tag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTagBytes() { + java.lang.Object ref = tag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ROOT_FIELD_NUMBER = 15; + private com.google.cloud.designcenter.v1.ModuleDetails root_; + + /** + * + * + *
+   * Optional. Details of the root module.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ModuleDetails root = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the root field is set. + */ + @java.lang.Override + public boolean hasRoot() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. Details of the root module.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ModuleDetails root = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The root. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ModuleDetails getRoot() { + return root_ == null + ? com.google.cloud.designcenter.v1.ModuleDetails.getDefaultInstance() + : root_; + } + + /** + * + * + *
+   * Optional. Details of the root module.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ModuleDetails root = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ModuleDetailsOrBuilder getRootOrBuilder() { + return root_ == null + ? com.google.cloud.designcenter.v1.ModuleDetails.getDefaultInstance() + : root_; + } + + public static final int SUBMODULES_FIELD_NUMBER = 16; + + @SuppressWarnings("serial") + private java.util.List submodules_; + + /** + * + * + *
+   * Optional. List of submodules within this module.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDetails submodules = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getSubmodulesList() { + return submodules_; + } + + /** + * + * + *
+   * Optional. List of submodules within this module.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDetails submodules = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getSubmodulesOrBuilderList() { + return submodules_; + } + + /** + * + * + *
+   * Optional. List of submodules within this module.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDetails submodules = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getSubmodulesCount() { + return submodules_.size(); + } + + /** + * + * + *
+   * Optional. List of submodules within this module.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDetails submodules = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ModuleDetails getSubmodules(int index) { + return submodules_.get(index); + } + + /** + * + * + *
+   * Optional. List of submodules within this module.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDetails submodules = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ModuleDetailsOrBuilder getSubmodulesOrBuilder(int index) { + return submodules_.get(index); + } + + public static final int EXAMPLES_FIELD_NUMBER = 17; + + @SuppressWarnings("serial") + private java.util.List examples_; + + /** + * + * + *
+   * Optional. List of examples for this module.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDetails examples = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getExamplesList() { + return examples_; + } + + /** + * + * + *
+   * Optional. List of examples for this module.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDetails examples = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getExamplesOrBuilderList() { + return examples_; + } + + /** + * + * + *
+   * Optional. List of examples for this module.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDetails examples = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getExamplesCount() { + return examples_.size(); + } + + /** + * + * + *
+   * Optional. List of examples for this module.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDetails examples = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ModuleDetails getExamples(int index) { + return examples_.get(index); + } + + /** + * + * + *
+   * Optional. List of examples for this module.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDetails examples = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ModuleDetailsOrBuilder getExamplesOrBuilder(int index) { + return examples_.get(index); + } + + public static final int PROVIDERS_FIELD_NUMBER = 18; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList providers_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Optional. List of provider names used.
+   * 
+ * + * repeated string providers = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the providers. + */ + public com.google.protobuf.ProtocolStringList getProvidersList() { + return providers_; + } + + /** + * + * + *
+   * Optional. List of provider names used.
+   * 
+ * + * repeated string providers = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of providers. + */ + public int getProvidersCount() { + return providers_.size(); + } + + /** + * + * + *
+   * Optional. List of provider names used.
+   * 
+ * + * repeated string providers = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The providers at the given index. + */ + public java.lang.String getProviders(int index) { + return providers_.get(index); + } + + /** + * + * + *
+   * Optional. List of provider names used.
+   * 
+ * + * repeated string providers = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the providers at the given index. + */ + public com.google.protobuf.ByteString getProvidersBytes(int index) { + return providers_.getByteString(index); + } + + public static final int VERSIONS_FIELD_NUMBER = 19; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList versions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Optional. List of available versions for this module.
+   * 
+ * + * repeated string versions = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the versions. + */ + public com.google.protobuf.ProtocolStringList getVersionsList() { + return versions_; + } + + /** + * + * + *
+   * Optional. List of available versions for this module.
+   * 
+ * + * repeated string versions = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of versions. + */ + public int getVersionsCount() { + return versions_.size(); + } + + /** + * + * + *
+   * Optional. List of available versions for this module.
+   * 
+ * + * repeated string versions = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The versions at the given index. + */ + public java.lang.String getVersions(int index) { + return versions_.get(index); + } + + /** + * + * + *
+   * Optional. List of available versions for this module.
+   * 
+ * + * repeated string versions = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the versions at the given index. + */ + public com.google.protobuf.ByteString getVersionsBytes(int index) { + return versions_.getByteString(index); + } + + public static final int REVISIONS_FIELD_NUMBER = 20; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList revisions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Optional. List of available revisions for this module.
+   * 
+ * + * repeated string revisions = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the revisions. + */ + public com.google.protobuf.ProtocolStringList getRevisionsList() { + return revisions_; + } + + /** + * + * + *
+   * Optional. List of available revisions for this module.
+   * 
+ * + * repeated string revisions = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of revisions. + */ + public int getRevisionsCount() { + return revisions_.size(); + } + + /** + * + * + *
+   * Optional. List of available revisions for this module.
+   * 
+ * + * repeated string revisions = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The revisions at the given index. + */ + public java.lang.String getRevisions(int index) { + return revisions_.get(index); + } + + /** + * + * + *
+   * Optional. List of available revisions for this module.
+   * 
+ * + * repeated string revisions = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the revisions at the given index. + */ + public com.google.protobuf.ByteString getRevisionsBytes(int index) { + return revisions_.getByteString(index); + } + + public static final int CONNECTIONS_FIELD_NUMBER = 21; + + @SuppressWarnings("serial") + private java.util.List connections_; + + /** + * + * + *
+   * Optional. Terraform input connections.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getConnectionsList() { + return connections_; + } + + /** + * + * + *
+   * Optional. Terraform input connections.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.designcenter.v1.TerraformInputConnectionsOrBuilder> + getConnectionsOrBuilderList() { + return connections_; + } + + /** + * + * + *
+   * Optional. Terraform input connections.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getConnectionsCount() { + return connections_.size(); + } + + /** + * + * + *
+   * Optional. Terraform input connections.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformInputConnections getConnections(int index) { + return connections_.get(index); + } + + /** + * + * + *
+   * Optional. Terraform input connections.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformInputConnectionsOrBuilder + getConnectionsOrBuilder(int index) { + return connections_.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.GeneratedMessage.isStringEmpty(uri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, uri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(owner_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, owner_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(moduleNamespace_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, moduleNamespace_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(version_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, version_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(provider_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, provider_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 9, description_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(source_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 10, source_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tag_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 11, tag_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(15, getRoot()); + } + for (int i = 0; i < submodules_.size(); i++) { + output.writeMessage(16, submodules_.get(i)); + } + for (int i = 0; i < examples_.size(); i++) { + output.writeMessage(17, examples_.get(i)); + } + for (int i = 0; i < providers_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 18, providers_.getRaw(i)); + } + for (int i = 0; i < versions_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 19, versions_.getRaw(i)); + } + for (int i = 0; i < revisions_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 20, revisions_.getRaw(i)); + } + for (int i = 0; i < connections_.size(); i++) { + output.writeMessage(21, connections_.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.GeneratedMessage.isStringEmpty(uri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, uri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(owner_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, owner_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(moduleNamespace_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, moduleNamespace_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(version_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, version_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(provider_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, provider_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(9, description_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(source_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(10, source_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tag_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(11, tag_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getRoot()); + } + for (int i = 0; i < submodules_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, submodules_.get(i)); + } + for (int i = 0; i < examples_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, examples_.get(i)); + } + { + int dataSize = 0; + for (int i = 0; i < providers_.size(); i++) { + dataSize += computeStringSizeNoTag(providers_.getRaw(i)); + } + size += dataSize; + size += 2 * getProvidersList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < versions_.size(); i++) { + dataSize += computeStringSizeNoTag(versions_.getRaw(i)); + } + size += dataSize; + size += 2 * getVersionsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < revisions_.size(); i++) { + dataSize += computeStringSizeNoTag(revisions_.getRaw(i)); + } + size += dataSize; + size += 2 * getRevisionsList().size(); + } + for (int i = 0; i < connections_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, connections_.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.designcenter.v1.TerraformModuleMetadata)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.TerraformModuleMetadata other = + (com.google.cloud.designcenter.v1.TerraformModuleMetadata) obj; + + if (!getUri().equals(other.getUri())) return false; + if (!getId().equals(other.getId())) return false; + if (!getOwner().equals(other.getOwner())) return false; + if (!getModuleNamespace().equals(other.getModuleNamespace())) return false; + if (!getName().equals(other.getName())) return false; + if (!getVersion().equals(other.getVersion())) return false; + if (!getProvider().equals(other.getProvider())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getSource().equals(other.getSource())) return false; + if (!getTag().equals(other.getTag())) return false; + if (hasRoot() != other.hasRoot()) return false; + if (hasRoot()) { + if (!getRoot().equals(other.getRoot())) return false; + } + if (!getSubmodulesList().equals(other.getSubmodulesList())) return false; + if (!getExamplesList().equals(other.getExamplesList())) return false; + if (!getProvidersList().equals(other.getProvidersList())) return false; + if (!getVersionsList().equals(other.getVersionsList())) return false; + if (!getRevisionsList().equals(other.getRevisionsList())) return false; + if (!getConnectionsList().equals(other.getConnectionsList())) 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) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + OWNER_FIELD_NUMBER; + hash = (53 * hash) + getOwner().hashCode(); + hash = (37 * hash) + MODULE_NAMESPACE_FIELD_NUMBER; + hash = (53 * hash) + getModuleNamespace().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + hash = (37 * hash) + PROVIDER_FIELD_NUMBER; + hash = (53 * hash) + getProvider().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getSource().hashCode(); + hash = (37 * hash) + TAG_FIELD_NUMBER; + hash = (53 * hash) + getTag().hashCode(); + if (hasRoot()) { + hash = (37 * hash) + ROOT_FIELD_NUMBER; + hash = (53 * hash) + getRoot().hashCode(); + } + if (getSubmodulesCount() > 0) { + hash = (37 * hash) + SUBMODULES_FIELD_NUMBER; + hash = (53 * hash) + getSubmodulesList().hashCode(); + } + if (getExamplesCount() > 0) { + hash = (37 * hash) + EXAMPLES_FIELD_NUMBER; + hash = (53 * hash) + getExamplesList().hashCode(); + } + if (getProvidersCount() > 0) { + hash = (37 * hash) + PROVIDERS_FIELD_NUMBER; + hash = (53 * hash) + getProvidersList().hashCode(); + } + if (getVersionsCount() > 0) { + hash = (37 * hash) + VERSIONS_FIELD_NUMBER; + hash = (53 * hash) + getVersionsList().hashCode(); + } + if (getRevisionsCount() > 0) { + hash = (37 * hash) + REVISIONS_FIELD_NUMBER; + hash = (53 * hash) + getRevisionsList().hashCode(); + } + if (getConnectionsCount() > 0) { + hash = (37 * hash) + CONNECTIONS_FIELD_NUMBER; + hash = (53 * hash) + getConnectionsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.TerraformModuleMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.TerraformModuleMetadata 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.designcenter.v1.TerraformModuleMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.TerraformModuleMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TerraformModuleMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.TerraformModuleMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TerraformModuleMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.TerraformModuleMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TerraformModuleMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.TerraformModuleMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TerraformModuleMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.TerraformModuleMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.TerraformModuleMetadata 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Top-level message representing a Terraform module and its metadata.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.TerraformModuleMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.TerraformModuleMetadata) + com.google.cloud.designcenter.v1.TerraformModuleMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TerraformModuleMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TerraformModuleMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.TerraformModuleMetadata.class, + com.google.cloud.designcenter.v1.TerraformModuleMetadata.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.TerraformModuleMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetRootFieldBuilder(); + internalGetSubmodulesFieldBuilder(); + internalGetExamplesFieldBuilder(); + internalGetConnectionsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + uri_ = ""; + id_ = ""; + owner_ = ""; + moduleNamespace_ = ""; + name_ = ""; + version_ = ""; + provider_ = ""; + description_ = ""; + source_ = ""; + tag_ = ""; + root_ = null; + if (rootBuilder_ != null) { + rootBuilder_.dispose(); + rootBuilder_ = null; + } + if (submodulesBuilder_ == null) { + submodules_ = java.util.Collections.emptyList(); + } else { + submodules_ = null; + submodulesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000800); + if (examplesBuilder_ == null) { + examples_ = java.util.Collections.emptyList(); + } else { + examples_ = null; + examplesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00001000); + providers_ = com.google.protobuf.LazyStringArrayList.emptyList(); + versions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + revisions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + if (connectionsBuilder_ == null) { + connections_ = java.util.Collections.emptyList(); + } else { + connections_ = null; + connectionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00010000); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TerraformModuleMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformModuleMetadata getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.TerraformModuleMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformModuleMetadata build() { + com.google.cloud.designcenter.v1.TerraformModuleMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformModuleMetadata buildPartial() { + com.google.cloud.designcenter.v1.TerraformModuleMetadata result = + new com.google.cloud.designcenter.v1.TerraformModuleMetadata(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.designcenter.v1.TerraformModuleMetadata result) { + if (submodulesBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0)) { + submodules_ = java.util.Collections.unmodifiableList(submodules_); + bitField0_ = (bitField0_ & ~0x00000800); + } + result.submodules_ = submodules_; + } else { + result.submodules_ = submodulesBuilder_.build(); + } + if (examplesBuilder_ == null) { + if (((bitField0_ & 0x00001000) != 0)) { + examples_ = java.util.Collections.unmodifiableList(examples_); + bitField0_ = (bitField0_ & ~0x00001000); + } + result.examples_ = examples_; + } else { + result.examples_ = examplesBuilder_.build(); + } + if (connectionsBuilder_ == null) { + if (((bitField0_ & 0x00010000) != 0)) { + connections_ = java.util.Collections.unmodifiableList(connections_); + bitField0_ = (bitField0_ & ~0x00010000); + } + result.connections_ = connections_; + } else { + result.connections_ = connectionsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.designcenter.v1.TerraformModuleMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.uri_ = uri_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.owner_ = owner_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.moduleNamespace_ = moduleNamespace_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.version_ = version_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.provider_ = provider_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.source_ = source_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.tag_ = tag_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000400) != 0)) { + result.root_ = rootBuilder_ == null ? root_ : rootBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + providers_.makeImmutable(); + result.providers_ = providers_; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + versions_.makeImmutable(); + result.versions_ = versions_; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + revisions_.makeImmutable(); + result.revisions_ = revisions_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.TerraformModuleMetadata) { + return mergeFrom((com.google.cloud.designcenter.v1.TerraformModuleMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.TerraformModuleMetadata other) { + if (other == com.google.cloud.designcenter.v1.TerraformModuleMetadata.getDefaultInstance()) + return this; + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getOwner().isEmpty()) { + owner_ = other.owner_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getModuleNamespace().isEmpty()) { + moduleNamespace_ = other.moduleNamespace_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getProvider().isEmpty()) { + provider_ = other.provider_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (!other.getSource().isEmpty()) { + source_ = other.source_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (!other.getTag().isEmpty()) { + tag_ = other.tag_; + bitField0_ |= 0x00000200; + onChanged(); + } + if (other.hasRoot()) { + mergeRoot(other.getRoot()); + } + if (submodulesBuilder_ == null) { + if (!other.submodules_.isEmpty()) { + if (submodules_.isEmpty()) { + submodules_ = other.submodules_; + bitField0_ = (bitField0_ & ~0x00000800); + } else { + ensureSubmodulesIsMutable(); + submodules_.addAll(other.submodules_); + } + onChanged(); + } + } else { + if (!other.submodules_.isEmpty()) { + if (submodulesBuilder_.isEmpty()) { + submodulesBuilder_.dispose(); + submodulesBuilder_ = null; + submodules_ = other.submodules_; + bitField0_ = (bitField0_ & ~0x00000800); + submodulesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetSubmodulesFieldBuilder() + : null; + } else { + submodulesBuilder_.addAllMessages(other.submodules_); + } + } + } + if (examplesBuilder_ == null) { + if (!other.examples_.isEmpty()) { + if (examples_.isEmpty()) { + examples_ = other.examples_; + bitField0_ = (bitField0_ & ~0x00001000); + } else { + ensureExamplesIsMutable(); + examples_.addAll(other.examples_); + } + onChanged(); + } + } else { + if (!other.examples_.isEmpty()) { + if (examplesBuilder_.isEmpty()) { + examplesBuilder_.dispose(); + examplesBuilder_ = null; + examples_ = other.examples_; + bitField0_ = (bitField0_ & ~0x00001000); + examplesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetExamplesFieldBuilder() + : null; + } else { + examplesBuilder_.addAllMessages(other.examples_); + } + } + } + if (!other.providers_.isEmpty()) { + if (providers_.isEmpty()) { + providers_ = other.providers_; + bitField0_ |= 0x00002000; + } else { + ensureProvidersIsMutable(); + providers_.addAll(other.providers_); + } + onChanged(); + } + if (!other.versions_.isEmpty()) { + if (versions_.isEmpty()) { + versions_ = other.versions_; + bitField0_ |= 0x00004000; + } else { + ensureVersionsIsMutable(); + versions_.addAll(other.versions_); + } + onChanged(); + } + if (!other.revisions_.isEmpty()) { + if (revisions_.isEmpty()) { + revisions_ = other.revisions_; + bitField0_ |= 0x00008000; + } else { + ensureRevisionsIsMutable(); + revisions_.addAll(other.revisions_); + } + onChanged(); + } + if (connectionsBuilder_ == null) { + if (!other.connections_.isEmpty()) { + if (connections_.isEmpty()) { + connections_ = other.connections_; + bitField0_ = (bitField0_ & ~0x00010000); + } else { + ensureConnectionsIsMutable(); + connections_.addAll(other.connections_); + } + onChanged(); + } + } else { + if (!other.connections_.isEmpty()) { + if (connectionsBuilder_.isEmpty()) { + connectionsBuilder_.dispose(); + connectionsBuilder_ = null; + connections_ = other.connections_; + bitField0_ = (bitField0_ & ~0x00010000); + connectionsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetConnectionsFieldBuilder() + : null; + } else { + connectionsBuilder_.addAllMessages(other.connections_); + } + } + } + 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: + { + uri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + owner_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + moduleNamespace_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + version_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + provider_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 74: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 74 + case 82: + { + source_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 82 + case 90: + { + tag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 90 + case 122: + { + input.readMessage(internalGetRootFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 122 + case 130: + { + com.google.cloud.designcenter.v1.ModuleDetails m = + input.readMessage( + com.google.cloud.designcenter.v1.ModuleDetails.parser(), extensionRegistry); + if (submodulesBuilder_ == null) { + ensureSubmodulesIsMutable(); + submodules_.add(m); + } else { + submodulesBuilder_.addMessage(m); + } + break; + } // case 130 + case 138: + { + com.google.cloud.designcenter.v1.ModuleDetails m = + input.readMessage( + com.google.cloud.designcenter.v1.ModuleDetails.parser(), extensionRegistry); + if (examplesBuilder_ == null) { + ensureExamplesIsMutable(); + examples_.add(m); + } else { + examplesBuilder_.addMessage(m); + } + break; + } // case 138 + case 146: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureProvidersIsMutable(); + providers_.add(s); + break; + } // case 146 + case 154: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureVersionsIsMutable(); + versions_.add(s); + break; + } // case 154 + case 162: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureRevisionsIsMutable(); + revisions_.add(s); + break; + } // case 162 + case 170: + { + com.google.cloud.designcenter.v1.TerraformInputConnections m = + input.readMessage( + com.google.cloud.designcenter.v1.TerraformInputConnections.parser(), + extensionRegistry); + if (connectionsBuilder_ == null) { + ensureConnectionsIsMutable(); + connections_.add(m); + } else { + connectionsBuilder_.addMessage(m); + } + break; + } // case 170 + default: + { + 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 uri_ = ""; + + /** + * + * + *
+     * Optional. The URI of the Terraform module.
+     * 
+ * + * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The uri. + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The URI of the Terraform module.
+     * 
+ * + * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for uri. + */ + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The URI of the Terraform module.
+     * 
+ * + * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The uri to set. + * @return This builder for chaining. + */ + public Builder setUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The URI of the Terraform module.
+     * 
+ * + * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearUri() { + uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The URI of the Terraform module.
+     * 
+ * + * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for uri to set. + * @return This builder for chaining. + */ + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object id_ = ""; + + /** + * + * + *
+     * Optional. Unique identifier for the module version, e.g.,
+     * "GoogleCloudPlatform/secret-manager/google/0.9.0"
+     * 
+ * + * string id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Unique identifier for the module version, e.g.,
+     * "GoogleCloudPlatform/secret-manager/google/0.9.0"
+     * 
+ * + * string id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for id. + */ + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Unique identifier for the module version, e.g.,
+     * "GoogleCloudPlatform/secret-manager/google/0.9.0"
+     * 
+ * + * string id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Unique identifier for the module version, e.g.,
+     * "GoogleCloudPlatform/secret-manager/google/0.9.0"
+     * 
+ * + * string id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Unique identifier for the module version, e.g.,
+     * "GoogleCloudPlatform/secret-manager/google/0.9.0"
+     * 
+ * + * string id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object owner_ = ""; + + /** + * + * + *
+     * Optional. Owner of the module.
+     * 
+ * + * string owner = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The owner. + */ + public java.lang.String getOwner() { + java.lang.Object ref = owner_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + owner_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Owner of the module.
+     * 
+ * + * string owner = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for owner. + */ + public com.google.protobuf.ByteString getOwnerBytes() { + java.lang.Object ref = owner_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + owner_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Owner of the module.
+     * 
+ * + * string owner = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The owner to set. + * @return This builder for chaining. + */ + public Builder setOwner(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + owner_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Owner of the module.
+     * 
+ * + * string owner = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOwner() { + owner_ = getDefaultInstance().getOwner(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Owner of the module.
+     * 
+ * + * string owner = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for owner to set. + * @return This builder for chaining. + */ + public Builder setOwnerBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + owner_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object moduleNamespace_ = ""; + + /** + * + * + *
+     * Optional. Namespace for the module, often the organization.
+     * 
+ * + * string module_namespace = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The moduleNamespace. + */ + public java.lang.String getModuleNamespace() { + java.lang.Object ref = moduleNamespace_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + moduleNamespace_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Namespace for the module, often the organization.
+     * 
+ * + * string module_namespace = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for moduleNamespace. + */ + public com.google.protobuf.ByteString getModuleNamespaceBytes() { + java.lang.Object ref = moduleNamespace_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + moduleNamespace_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Namespace for the module, often the organization.
+     * 
+ * + * string module_namespace = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The moduleNamespace to set. + * @return This builder for chaining. + */ + public Builder setModuleNamespace(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + moduleNamespace_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Namespace for the module, often the organization.
+     * 
+ * + * string module_namespace = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearModuleNamespace() { + moduleNamespace_ = getDefaultInstance().getModuleNamespace(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Namespace for the module, often the organization.
+     * 
+ * + * string module_namespace = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for moduleNamespace to set. + * @return This builder for chaining. + */ + public Builder setModuleNamespaceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + moduleNamespace_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Optional. Name of the module.
+     * 
+ * + * string name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The name. + */ + public java.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; + } + } + + /** + * + * + *
+     * Optional. Name of the module.
+     * 
+ * + * string name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+     * Optional. Name of the module.
+     * 
+ * + * string name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Name of the module.
+     * 
+ * + * string name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Name of the module.
+     * 
+ * + * string name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object version_ = ""; + + /** + * + * + *
+     * Optional. Semantic version of the module.
+     * 
+ * + * string version = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+     * Optional. Semantic version of the module.
+     * 
+ * + * string version = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+     * Optional. Semantic version of the module.
+     * 
+ * + * string version = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Semantic version of the module.
+     * 
+ * + * string version = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearVersion() { + version_ = getDefaultInstance().getVersion(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Semantic version of the module.
+     * 
+ * + * string version = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object provider_ = ""; + + /** + * + * + *
+     * Optional. Primary provider used by the module, e.g., "google".
+     * 
+ * + * string provider = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The provider. + */ + public java.lang.String getProvider() { + java.lang.Object ref = provider_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + provider_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Primary provider used by the module, e.g., "google".
+     * 
+ * + * string provider = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for provider. + */ + public com.google.protobuf.ByteString getProviderBytes() { + java.lang.Object ref = provider_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + provider_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Primary provider used by the module, e.g., "google".
+     * 
+ * + * string provider = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The provider to set. + * @return This builder for chaining. + */ + public Builder setProvider(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + provider_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Primary provider used by the module, e.g., "google".
+     * 
+ * + * string provider = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearProvider() { + provider_ = getDefaultInstance().getProvider(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Primary provider used by the module, e.g., "google".
+     * 
+ * + * string provider = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for provider to set. + * @return This builder for chaining. + */ + public Builder setProviderBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + provider_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
+     * Optional. Description of the module's purpose.
+     * 
+ * + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Description of the module's purpose.
+     * 
+ * + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Description of the module's purpose.
+     * 
+ * + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Description of the module's purpose.
+     * 
+ * + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Description of the module's purpose.
+     * 
+ * + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private java.lang.Object source_ = ""; + + /** + * + * + *
+     * Optional. URL to the source repository.
+     * 
+ * + * string source = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The source. + */ + public java.lang.String getSource() { + java.lang.Object ref = source_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + source_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. URL to the source repository.
+     * 
+ * + * string source = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for source. + */ + public com.google.protobuf.ByteString getSourceBytes() { + java.lang.Object ref = source_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + source_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. URL to the source repository.
+     * 
+ * + * string source = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The source to set. + * @return This builder for chaining. + */ + public Builder setSource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. URL to the source repository.
+     * 
+ * + * string source = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSource() { + source_ = getDefaultInstance().getSource(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. URL to the source repository.
+     * 
+ * + * string source = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for source to set. + * @return This builder for chaining. + */ + public Builder setSourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + source_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private java.lang.Object tag_ = ""; + + /** + * + * + *
+     * Optional. Git tag or ref for this version.
+     * 
+ * + * string tag = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The tag. + */ + public java.lang.String getTag() { + java.lang.Object ref = tag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Git tag or ref for this version.
+     * 
+ * + * string tag = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for tag. + */ + public com.google.protobuf.ByteString getTagBytes() { + java.lang.Object ref = tag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Git tag or ref for this version.
+     * 
+ * + * string tag = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The tag to set. + * @return This builder for chaining. + */ + public Builder setTag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + tag_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Git tag or ref for this version.
+     * 
+ * + * string tag = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearTag() { + tag_ = getDefaultInstance().getTag(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Git tag or ref for this version.
+     * 
+ * + * string tag = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for tag to set. + * @return This builder for chaining. + */ + public Builder setTagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tag_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + private com.google.cloud.designcenter.v1.ModuleDetails root_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ModuleDetails, + com.google.cloud.designcenter.v1.ModuleDetails.Builder, + com.google.cloud.designcenter.v1.ModuleDetailsOrBuilder> + rootBuilder_; + + /** + * + * + *
+     * Optional. Details of the root module.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ModuleDetails root = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the root field is set. + */ + public boolean hasRoot() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
+     * Optional. Details of the root module.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ModuleDetails root = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The root. + */ + public com.google.cloud.designcenter.v1.ModuleDetails getRoot() { + if (rootBuilder_ == null) { + return root_ == null + ? com.google.cloud.designcenter.v1.ModuleDetails.getDefaultInstance() + : root_; + } else { + return rootBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Details of the root module.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ModuleDetails root = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRoot(com.google.cloud.designcenter.v1.ModuleDetails value) { + if (rootBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + root_ = value; + } else { + rootBuilder_.setMessage(value); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Details of the root module.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ModuleDetails root = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRoot(com.google.cloud.designcenter.v1.ModuleDetails.Builder builderForValue) { + if (rootBuilder_ == null) { + root_ = builderForValue.build(); + } else { + rootBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Details of the root module.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ModuleDetails root = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeRoot(com.google.cloud.designcenter.v1.ModuleDetails value) { + if (rootBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0) + && root_ != null + && root_ != com.google.cloud.designcenter.v1.ModuleDetails.getDefaultInstance()) { + getRootBuilder().mergeFrom(value); + } else { + root_ = value; + } + } else { + rootBuilder_.mergeFrom(value); + } + if (root_ != null) { + bitField0_ |= 0x00000400; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Details of the root module.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ModuleDetails root = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearRoot() { + bitField0_ = (bitField0_ & ~0x00000400); + root_ = null; + if (rootBuilder_ != null) { + rootBuilder_.dispose(); + rootBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Details of the root module.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ModuleDetails root = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ModuleDetails.Builder getRootBuilder() { + bitField0_ |= 0x00000400; + onChanged(); + return internalGetRootFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Details of the root module.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ModuleDetails root = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ModuleDetailsOrBuilder getRootOrBuilder() { + if (rootBuilder_ != null) { + return rootBuilder_.getMessageOrBuilder(); + } else { + return root_ == null + ? com.google.cloud.designcenter.v1.ModuleDetails.getDefaultInstance() + : root_; + } + } + + /** + * + * + *
+     * Optional. Details of the root module.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ModuleDetails root = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ModuleDetails, + com.google.cloud.designcenter.v1.ModuleDetails.Builder, + com.google.cloud.designcenter.v1.ModuleDetailsOrBuilder> + internalGetRootFieldBuilder() { + if (rootBuilder_ == null) { + rootBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ModuleDetails, + com.google.cloud.designcenter.v1.ModuleDetails.Builder, + com.google.cloud.designcenter.v1.ModuleDetailsOrBuilder>( + getRoot(), getParentForChildren(), isClean()); + root_ = null; + } + return rootBuilder_; + } + + private java.util.List submodules_ = + java.util.Collections.emptyList(); + + private void ensureSubmodulesIsMutable() { + if (!((bitField0_ & 0x00000800) != 0)) { + submodules_ = + new java.util.ArrayList(submodules_); + bitField0_ |= 0x00000800; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ModuleDetails, + com.google.cloud.designcenter.v1.ModuleDetails.Builder, + com.google.cloud.designcenter.v1.ModuleDetailsOrBuilder> + submodulesBuilder_; + + /** + * + * + *
+     * Optional. List of submodules within this module.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDetails submodules = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getSubmodulesList() { + if (submodulesBuilder_ == null) { + return java.util.Collections.unmodifiableList(submodules_); + } else { + return submodulesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. List of submodules within this module.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDetails submodules = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getSubmodulesCount() { + if (submodulesBuilder_ == null) { + return submodules_.size(); + } else { + return submodulesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. List of submodules within this module.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDetails submodules = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ModuleDetails getSubmodules(int index) { + if (submodulesBuilder_ == null) { + return submodules_.get(index); + } else { + return submodulesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. List of submodules within this module.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDetails submodules = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSubmodules(int index, com.google.cloud.designcenter.v1.ModuleDetails value) { + if (submodulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubmodulesIsMutable(); + submodules_.set(index, value); + onChanged(); + } else { + submodulesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. List of submodules within this module.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDetails submodules = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSubmodules( + int index, com.google.cloud.designcenter.v1.ModuleDetails.Builder builderForValue) { + if (submodulesBuilder_ == null) { + ensureSubmodulesIsMutable(); + submodules_.set(index, builderForValue.build()); + onChanged(); + } else { + submodulesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. List of submodules within this module.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDetails submodules = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSubmodules(com.google.cloud.designcenter.v1.ModuleDetails value) { + if (submodulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubmodulesIsMutable(); + submodules_.add(value); + onChanged(); + } else { + submodulesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. List of submodules within this module.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDetails submodules = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSubmodules(int index, com.google.cloud.designcenter.v1.ModuleDetails value) { + if (submodulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubmodulesIsMutable(); + submodules_.add(index, value); + onChanged(); + } else { + submodulesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. List of submodules within this module.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDetails submodules = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSubmodules( + com.google.cloud.designcenter.v1.ModuleDetails.Builder builderForValue) { + if (submodulesBuilder_ == null) { + ensureSubmodulesIsMutable(); + submodules_.add(builderForValue.build()); + onChanged(); + } else { + submodulesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. List of submodules within this module.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDetails submodules = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSubmodules( + int index, com.google.cloud.designcenter.v1.ModuleDetails.Builder builderForValue) { + if (submodulesBuilder_ == null) { + ensureSubmodulesIsMutable(); + submodules_.add(index, builderForValue.build()); + onChanged(); + } else { + submodulesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. List of submodules within this module.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDetails submodules = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllSubmodules( + java.lang.Iterable values) { + if (submodulesBuilder_ == null) { + ensureSubmodulesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, submodules_); + onChanged(); + } else { + submodulesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. List of submodules within this module.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDetails submodules = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSubmodules() { + if (submodulesBuilder_ == null) { + submodules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + } else { + submodulesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. List of submodules within this module.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDetails submodules = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeSubmodules(int index) { + if (submodulesBuilder_ == null) { + ensureSubmodulesIsMutable(); + submodules_.remove(index); + onChanged(); + } else { + submodulesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. List of submodules within this module.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDetails submodules = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ModuleDetails.Builder getSubmodulesBuilder(int index) { + return internalGetSubmodulesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. List of submodules within this module.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDetails submodules = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ModuleDetailsOrBuilder getSubmodulesOrBuilder( + int index) { + if (submodulesBuilder_ == null) { + return submodules_.get(index); + } else { + return submodulesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. List of submodules within this module.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDetails submodules = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getSubmodulesOrBuilderList() { + if (submodulesBuilder_ != null) { + return submodulesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(submodules_); + } + } + + /** + * + * + *
+     * Optional. List of submodules within this module.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDetails submodules = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ModuleDetails.Builder addSubmodulesBuilder() { + return internalGetSubmodulesFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.ModuleDetails.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. List of submodules within this module.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDetails submodules = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ModuleDetails.Builder addSubmodulesBuilder(int index) { + return internalGetSubmodulesFieldBuilder() + .addBuilder(index, com.google.cloud.designcenter.v1.ModuleDetails.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. List of submodules within this module.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDetails submodules = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getSubmodulesBuilderList() { + return internalGetSubmodulesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ModuleDetails, + com.google.cloud.designcenter.v1.ModuleDetails.Builder, + com.google.cloud.designcenter.v1.ModuleDetailsOrBuilder> + internalGetSubmodulesFieldBuilder() { + if (submodulesBuilder_ == null) { + submodulesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ModuleDetails, + com.google.cloud.designcenter.v1.ModuleDetails.Builder, + com.google.cloud.designcenter.v1.ModuleDetailsOrBuilder>( + submodules_, ((bitField0_ & 0x00000800) != 0), getParentForChildren(), isClean()); + submodules_ = null; + } + return submodulesBuilder_; + } + + private java.util.List examples_ = + java.util.Collections.emptyList(); + + private void ensureExamplesIsMutable() { + if (!((bitField0_ & 0x00001000) != 0)) { + examples_ = + new java.util.ArrayList(examples_); + bitField0_ |= 0x00001000; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ModuleDetails, + com.google.cloud.designcenter.v1.ModuleDetails.Builder, + com.google.cloud.designcenter.v1.ModuleDetailsOrBuilder> + examplesBuilder_; + + /** + * + * + *
+     * Optional. List of examples for this module.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDetails examples = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getExamplesList() { + if (examplesBuilder_ == null) { + return java.util.Collections.unmodifiableList(examples_); + } else { + return examplesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. List of examples for this module.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDetails examples = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getExamplesCount() { + if (examplesBuilder_ == null) { + return examples_.size(); + } else { + return examplesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. List of examples for this module.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDetails examples = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ModuleDetails getExamples(int index) { + if (examplesBuilder_ == null) { + return examples_.get(index); + } else { + return examplesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. List of examples for this module.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDetails examples = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setExamples(int index, com.google.cloud.designcenter.v1.ModuleDetails value) { + if (examplesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExamplesIsMutable(); + examples_.set(index, value); + onChanged(); + } else { + examplesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. List of examples for this module.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDetails examples = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setExamples( + int index, com.google.cloud.designcenter.v1.ModuleDetails.Builder builderForValue) { + if (examplesBuilder_ == null) { + ensureExamplesIsMutable(); + examples_.set(index, builderForValue.build()); + onChanged(); + } else { + examplesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. List of examples for this module.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDetails examples = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addExamples(com.google.cloud.designcenter.v1.ModuleDetails value) { + if (examplesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExamplesIsMutable(); + examples_.add(value); + onChanged(); + } else { + examplesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. List of examples for this module.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDetails examples = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addExamples(int index, com.google.cloud.designcenter.v1.ModuleDetails value) { + if (examplesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExamplesIsMutable(); + examples_.add(index, value); + onChanged(); + } else { + examplesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. List of examples for this module.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDetails examples = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addExamples( + com.google.cloud.designcenter.v1.ModuleDetails.Builder builderForValue) { + if (examplesBuilder_ == null) { + ensureExamplesIsMutable(); + examples_.add(builderForValue.build()); + onChanged(); + } else { + examplesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. List of examples for this module.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDetails examples = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addExamples( + int index, com.google.cloud.designcenter.v1.ModuleDetails.Builder builderForValue) { + if (examplesBuilder_ == null) { + ensureExamplesIsMutable(); + examples_.add(index, builderForValue.build()); + onChanged(); + } else { + examplesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. List of examples for this module.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDetails examples = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllExamples( + java.lang.Iterable values) { + if (examplesBuilder_ == null) { + ensureExamplesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, examples_); + onChanged(); + } else { + examplesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. List of examples for this module.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDetails examples = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearExamples() { + if (examplesBuilder_ == null) { + examples_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + } else { + examplesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. List of examples for this module.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDetails examples = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeExamples(int index) { + if (examplesBuilder_ == null) { + ensureExamplesIsMutable(); + examples_.remove(index); + onChanged(); + } else { + examplesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. List of examples for this module.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDetails examples = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ModuleDetails.Builder getExamplesBuilder(int index) { + return internalGetExamplesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. List of examples for this module.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDetails examples = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ModuleDetailsOrBuilder getExamplesOrBuilder(int index) { + if (examplesBuilder_ == null) { + return examples_.get(index); + } else { + return examplesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. List of examples for this module.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDetails examples = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getExamplesOrBuilderList() { + if (examplesBuilder_ != null) { + return examplesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(examples_); + } + } + + /** + * + * + *
+     * Optional. List of examples for this module.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDetails examples = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ModuleDetails.Builder addExamplesBuilder() { + return internalGetExamplesFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.ModuleDetails.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. List of examples for this module.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDetails examples = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.ModuleDetails.Builder addExamplesBuilder(int index) { + return internalGetExamplesFieldBuilder() + .addBuilder(index, com.google.cloud.designcenter.v1.ModuleDetails.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. List of examples for this module.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDetails examples = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getExamplesBuilderList() { + return internalGetExamplesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ModuleDetails, + com.google.cloud.designcenter.v1.ModuleDetails.Builder, + com.google.cloud.designcenter.v1.ModuleDetailsOrBuilder> + internalGetExamplesFieldBuilder() { + if (examplesBuilder_ == null) { + examplesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ModuleDetails, + com.google.cloud.designcenter.v1.ModuleDetails.Builder, + com.google.cloud.designcenter.v1.ModuleDetailsOrBuilder>( + examples_, ((bitField0_ & 0x00001000) != 0), getParentForChildren(), isClean()); + examples_ = null; + } + return examplesBuilder_; + } + + private com.google.protobuf.LazyStringArrayList providers_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureProvidersIsMutable() { + if (!providers_.isModifiable()) { + providers_ = new com.google.protobuf.LazyStringArrayList(providers_); + } + bitField0_ |= 0x00002000; + } + + /** + * + * + *
+     * Optional. List of provider names used.
+     * 
+ * + * repeated string providers = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the providers. + */ + public com.google.protobuf.ProtocolStringList getProvidersList() { + providers_.makeImmutable(); + return providers_; + } + + /** + * + * + *
+     * Optional. List of provider names used.
+     * 
+ * + * repeated string providers = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of providers. + */ + public int getProvidersCount() { + return providers_.size(); + } + + /** + * + * + *
+     * Optional. List of provider names used.
+     * 
+ * + * repeated string providers = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The providers at the given index. + */ + public java.lang.String getProviders(int index) { + return providers_.get(index); + } + + /** + * + * + *
+     * Optional. List of provider names used.
+     * 
+ * + * repeated string providers = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the providers at the given index. + */ + public com.google.protobuf.ByteString getProvidersBytes(int index) { + return providers_.getByteString(index); + } + + /** + * + * + *
+     * Optional. List of provider names used.
+     * 
+ * + * repeated string providers = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The providers to set. + * @return This builder for chaining. + */ + public Builder setProviders(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureProvidersIsMutable(); + providers_.set(index, value); + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. List of provider names used.
+     * 
+ * + * repeated string providers = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The providers to add. + * @return This builder for chaining. + */ + public Builder addProviders(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureProvidersIsMutable(); + providers_.add(value); + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. List of provider names used.
+     * 
+ * + * repeated string providers = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The providers to add. + * @return This builder for chaining. + */ + public Builder addAllProviders(java.lang.Iterable values) { + ensureProvidersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, providers_); + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. List of provider names used.
+     * 
+ * + * repeated string providers = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearProviders() { + providers_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00002000); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. List of provider names used.
+     * 
+ * + * repeated string providers = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the providers to add. + * @return This builder for chaining. + */ + public Builder addProvidersBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureProvidersIsMutable(); + providers_.add(value); + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList versions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureVersionsIsMutable() { + if (!versions_.isModifiable()) { + versions_ = new com.google.protobuf.LazyStringArrayList(versions_); + } + bitField0_ |= 0x00004000; + } + + /** + * + * + *
+     * Optional. List of available versions for this module.
+     * 
+ * + * repeated string versions = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the versions. + */ + public com.google.protobuf.ProtocolStringList getVersionsList() { + versions_.makeImmutable(); + return versions_; + } + + /** + * + * + *
+     * Optional. List of available versions for this module.
+     * 
+ * + * repeated string versions = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of versions. + */ + public int getVersionsCount() { + return versions_.size(); + } + + /** + * + * + *
+     * Optional. List of available versions for this module.
+     * 
+ * + * repeated string versions = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The versions at the given index. + */ + public java.lang.String getVersions(int index) { + return versions_.get(index); + } + + /** + * + * + *
+     * Optional. List of available versions for this module.
+     * 
+ * + * repeated string versions = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the versions at the given index. + */ + public com.google.protobuf.ByteString getVersionsBytes(int index) { + return versions_.getByteString(index); + } + + /** + * + * + *
+     * Optional. List of available versions for this module.
+     * 
+ * + * repeated string versions = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The versions to set. + * @return This builder for chaining. + */ + public Builder setVersions(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureVersionsIsMutable(); + versions_.set(index, value); + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. List of available versions for this module.
+     * 
+ * + * repeated string versions = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The versions to add. + * @return This builder for chaining. + */ + public Builder addVersions(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureVersionsIsMutable(); + versions_.add(value); + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. List of available versions for this module.
+     * 
+ * + * repeated string versions = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The versions to add. + * @return This builder for chaining. + */ + public Builder addAllVersions(java.lang.Iterable values) { + ensureVersionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, versions_); + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. List of available versions for this module.
+     * 
+ * + * repeated string versions = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearVersions() { + versions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00004000); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. List of available versions for this module.
+     * 
+ * + * repeated string versions = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the versions to add. + * @return This builder for chaining. + */ + public Builder addVersionsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureVersionsIsMutable(); + versions_.add(value); + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList revisions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureRevisionsIsMutable() { + if (!revisions_.isModifiable()) { + revisions_ = new com.google.protobuf.LazyStringArrayList(revisions_); + } + bitField0_ |= 0x00008000; + } + + /** + * + * + *
+     * Optional. List of available revisions for this module.
+     * 
+ * + * repeated string revisions = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the revisions. + */ + public com.google.protobuf.ProtocolStringList getRevisionsList() { + revisions_.makeImmutable(); + return revisions_; + } + + /** + * + * + *
+     * Optional. List of available revisions for this module.
+     * 
+ * + * repeated string revisions = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of revisions. + */ + public int getRevisionsCount() { + return revisions_.size(); + } + + /** + * + * + *
+     * Optional. List of available revisions for this module.
+     * 
+ * + * repeated string revisions = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The revisions at the given index. + */ + public java.lang.String getRevisions(int index) { + return revisions_.get(index); + } + + /** + * + * + *
+     * Optional. List of available revisions for this module.
+     * 
+ * + * repeated string revisions = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the revisions at the given index. + */ + public com.google.protobuf.ByteString getRevisionsBytes(int index) { + return revisions_.getByteString(index); + } + + /** + * + * + *
+     * Optional. List of available revisions for this module.
+     * 
+ * + * repeated string revisions = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The revisions to set. + * @return This builder for chaining. + */ + public Builder setRevisions(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRevisionsIsMutable(); + revisions_.set(index, value); + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. List of available revisions for this module.
+     * 
+ * + * repeated string revisions = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The revisions to add. + * @return This builder for chaining. + */ + public Builder addRevisions(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRevisionsIsMutable(); + revisions_.add(value); + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. List of available revisions for this module.
+     * 
+ * + * repeated string revisions = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The revisions to add. + * @return This builder for chaining. + */ + public Builder addAllRevisions(java.lang.Iterable values) { + ensureRevisionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, revisions_); + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. List of available revisions for this module.
+     * 
+ * + * repeated string revisions = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRevisions() { + revisions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00008000); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. List of available revisions for this module.
+     * 
+ * + * repeated string revisions = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the revisions to add. + * @return This builder for chaining. + */ + public Builder addRevisionsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureRevisionsIsMutable(); + revisions_.add(value); + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + private java.util.List + connections_ = java.util.Collections.emptyList(); + + private void ensureConnectionsIsMutable() { + if (!((bitField0_ & 0x00010000) != 0)) { + connections_ = + new java.util.ArrayList( + connections_); + bitField0_ |= 0x00010000; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.TerraformInputConnections, + com.google.cloud.designcenter.v1.TerraformInputConnections.Builder, + com.google.cloud.designcenter.v1.TerraformInputConnectionsOrBuilder> + connectionsBuilder_; + + /** + * + * + *
+     * Optional. Terraform input connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getConnectionsList() { + if (connectionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(connections_); + } else { + return connectionsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. Terraform input connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getConnectionsCount() { + if (connectionsBuilder_ == null) { + return connections_.size(); + } else { + return connectionsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. Terraform input connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.TerraformInputConnections getConnections(int index) { + if (connectionsBuilder_ == null) { + return connections_.get(index); + } else { + return connectionsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. Terraform input connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setConnections( + int index, com.google.cloud.designcenter.v1.TerraformInputConnections value) { + if (connectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConnectionsIsMutable(); + connections_.set(index, value); + onChanged(); + } else { + connectionsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Terraform input connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setConnections( + int index, + com.google.cloud.designcenter.v1.TerraformInputConnections.Builder builderForValue) { + if (connectionsBuilder_ == null) { + ensureConnectionsIsMutable(); + connections_.set(index, builderForValue.build()); + onChanged(); + } else { + connectionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Terraform input connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addConnections( + com.google.cloud.designcenter.v1.TerraformInputConnections value) { + if (connectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConnectionsIsMutable(); + connections_.add(value); + onChanged(); + } else { + connectionsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. Terraform input connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addConnections( + int index, com.google.cloud.designcenter.v1.TerraformInputConnections value) { + if (connectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConnectionsIsMutable(); + connections_.add(index, value); + onChanged(); + } else { + connectionsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Terraform input connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addConnections( + com.google.cloud.designcenter.v1.TerraformInputConnections.Builder builderForValue) { + if (connectionsBuilder_ == null) { + ensureConnectionsIsMutable(); + connections_.add(builderForValue.build()); + onChanged(); + } else { + connectionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Terraform input connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addConnections( + int index, + com.google.cloud.designcenter.v1.TerraformInputConnections.Builder builderForValue) { + if (connectionsBuilder_ == null) { + ensureConnectionsIsMutable(); + connections_.add(index, builderForValue.build()); + onChanged(); + } else { + connectionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Terraform input connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllConnections( + java.lang.Iterable + values) { + if (connectionsBuilder_ == null) { + ensureConnectionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, connections_); + onChanged(); + } else { + connectionsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. Terraform input connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearConnections() { + if (connectionsBuilder_ == null) { + connections_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00010000); + onChanged(); + } else { + connectionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Terraform input connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeConnections(int index) { + if (connectionsBuilder_ == null) { + ensureConnectionsIsMutable(); + connections_.remove(index); + onChanged(); + } else { + connectionsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. Terraform input connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.TerraformInputConnections.Builder getConnectionsBuilder( + int index) { + return internalGetConnectionsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. Terraform input connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.TerraformInputConnectionsOrBuilder + getConnectionsOrBuilder(int index) { + if (connectionsBuilder_ == null) { + return connections_.get(index); + } else { + return connectionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. Terraform input connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends com.google.cloud.designcenter.v1.TerraformInputConnectionsOrBuilder> + getConnectionsOrBuilderList() { + if (connectionsBuilder_ != null) { + return connectionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(connections_); + } + } + + /** + * + * + *
+     * Optional. Terraform input connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.TerraformInputConnections.Builder + addConnectionsBuilder() { + return internalGetConnectionsFieldBuilder() + .addBuilder( + com.google.cloud.designcenter.v1.TerraformInputConnections.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Terraform input connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.designcenter.v1.TerraformInputConnections.Builder addConnectionsBuilder( + int index) { + return internalGetConnectionsFieldBuilder() + .addBuilder( + index, + com.google.cloud.designcenter.v1.TerraformInputConnections.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Terraform input connections.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getConnectionsBuilderList() { + return internalGetConnectionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.TerraformInputConnections, + com.google.cloud.designcenter.v1.TerraformInputConnections.Builder, + com.google.cloud.designcenter.v1.TerraformInputConnectionsOrBuilder> + internalGetConnectionsFieldBuilder() { + if (connectionsBuilder_ == null) { + connectionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.TerraformInputConnections, + com.google.cloud.designcenter.v1.TerraformInputConnections.Builder, + com.google.cloud.designcenter.v1.TerraformInputConnectionsOrBuilder>( + connections_, ((bitField0_ & 0x00010000) != 0), getParentForChildren(), isClean()); + connections_ = null; + } + return connectionsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.TerraformModuleMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.TerraformModuleMetadata) + private static final com.google.cloud.designcenter.v1.TerraformModuleMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.TerraformModuleMetadata(); + } + + public static com.google.cloud.designcenter.v1.TerraformModuleMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TerraformModuleMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.TerraformModuleMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformModuleMetadataOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformModuleMetadataOrBuilder.java new file mode 100644 index 000000000000..a9c7dca28ea1 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformModuleMetadataOrBuilder.java @@ -0,0 +1,694 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface TerraformModuleMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.TerraformModuleMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The URI of the Terraform module.
+   * 
+ * + * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The uri. + */ + java.lang.String getUri(); + + /** + * + * + *
+   * Optional. The URI of the Terraform module.
+   * 
+ * + * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for uri. + */ + com.google.protobuf.ByteString getUriBytes(); + + /** + * + * + *
+   * Optional. Unique identifier for the module version, e.g.,
+   * "GoogleCloudPlatform/secret-manager/google/0.9.0"
+   * 
+ * + * string id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The id. + */ + java.lang.String getId(); + + /** + * + * + *
+   * Optional. Unique identifier for the module version, e.g.,
+   * "GoogleCloudPlatform/secret-manager/google/0.9.0"
+   * 
+ * + * string id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for id. + */ + com.google.protobuf.ByteString getIdBytes(); + + /** + * + * + *
+   * Optional. Owner of the module.
+   * 
+ * + * string owner = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The owner. + */ + java.lang.String getOwner(); + + /** + * + * + *
+   * Optional. Owner of the module.
+   * 
+ * + * string owner = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for owner. + */ + com.google.protobuf.ByteString getOwnerBytes(); + + /** + * + * + *
+   * Optional. Namespace for the module, often the organization.
+   * 
+ * + * string module_namespace = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The moduleNamespace. + */ + java.lang.String getModuleNamespace(); + + /** + * + * + *
+   * Optional. Namespace for the module, often the organization.
+   * 
+ * + * string module_namespace = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for moduleNamespace. + */ + com.google.protobuf.ByteString getModuleNamespaceBytes(); + + /** + * + * + *
+   * Optional. Name of the module.
+   * 
+ * + * string name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Optional. Name of the module.
+   * 
+ * + * string name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. Semantic version of the module.
+   * 
+ * + * string version = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The version. + */ + java.lang.String getVersion(); + + /** + * + * + *
+   * Optional. Semantic version of the module.
+   * 
+ * + * string version = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for version. + */ + com.google.protobuf.ByteString getVersionBytes(); + + /** + * + * + *
+   * Optional. Primary provider used by the module, e.g., "google".
+   * 
+ * + * string provider = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The provider. + */ + java.lang.String getProvider(); + + /** + * + * + *
+   * Optional. Primary provider used by the module, e.g., "google".
+   * 
+ * + * string provider = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for provider. + */ + com.google.protobuf.ByteString getProviderBytes(); + + /** + * + * + *
+   * Optional. Description of the module's purpose.
+   * 
+ * + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
+   * Optional. Description of the module's purpose.
+   * 
+ * + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Optional. URL to the source repository.
+   * 
+ * + * string source = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The source. + */ + java.lang.String getSource(); + + /** + * + * + *
+   * Optional. URL to the source repository.
+   * 
+ * + * string source = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for source. + */ + com.google.protobuf.ByteString getSourceBytes(); + + /** + * + * + *
+   * Optional. Git tag or ref for this version.
+   * 
+ * + * string tag = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The tag. + */ + java.lang.String getTag(); + + /** + * + * + *
+   * Optional. Git tag or ref for this version.
+   * 
+ * + * string tag = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for tag. + */ + com.google.protobuf.ByteString getTagBytes(); + + /** + * + * + *
+   * Optional. Details of the root module.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ModuleDetails root = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the root field is set. + */ + boolean hasRoot(); + + /** + * + * + *
+   * Optional. Details of the root module.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ModuleDetails root = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The root. + */ + com.google.cloud.designcenter.v1.ModuleDetails getRoot(); + + /** + * + * + *
+   * Optional. Details of the root module.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ModuleDetails root = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.ModuleDetailsOrBuilder getRootOrBuilder(); + + /** + * + * + *
+   * Optional. List of submodules within this module.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDetails submodules = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getSubmodulesList(); + + /** + * + * + *
+   * Optional. List of submodules within this module.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDetails submodules = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.ModuleDetails getSubmodules(int index); + + /** + * + * + *
+   * Optional. List of submodules within this module.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDetails submodules = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getSubmodulesCount(); + + /** + * + * + *
+   * Optional. List of submodules within this module.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDetails submodules = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getSubmodulesOrBuilderList(); + + /** + * + * + *
+   * Optional. List of submodules within this module.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDetails submodules = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.ModuleDetailsOrBuilder getSubmodulesOrBuilder(int index); + + /** + * + * + *
+   * Optional. List of examples for this module.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDetails examples = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getExamplesList(); + + /** + * + * + *
+   * Optional. List of examples for this module.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDetails examples = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.ModuleDetails getExamples(int index); + + /** + * + * + *
+   * Optional. List of examples for this module.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDetails examples = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getExamplesCount(); + + /** + * + * + *
+   * Optional. List of examples for this module.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDetails examples = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getExamplesOrBuilderList(); + + /** + * + * + *
+   * Optional. List of examples for this module.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ModuleDetails examples = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.ModuleDetailsOrBuilder getExamplesOrBuilder(int index); + + /** + * + * + *
+   * Optional. List of provider names used.
+   * 
+ * + * repeated string providers = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the providers. + */ + java.util.List getProvidersList(); + + /** + * + * + *
+   * Optional. List of provider names used.
+   * 
+ * + * repeated string providers = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of providers. + */ + int getProvidersCount(); + + /** + * + * + *
+   * Optional. List of provider names used.
+   * 
+ * + * repeated string providers = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The providers at the given index. + */ + java.lang.String getProviders(int index); + + /** + * + * + *
+   * Optional. List of provider names used.
+   * 
+ * + * repeated string providers = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the providers at the given index. + */ + com.google.protobuf.ByteString getProvidersBytes(int index); + + /** + * + * + *
+   * Optional. List of available versions for this module.
+   * 
+ * + * repeated string versions = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the versions. + */ + java.util.List getVersionsList(); + + /** + * + * + *
+   * Optional. List of available versions for this module.
+   * 
+ * + * repeated string versions = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of versions. + */ + int getVersionsCount(); + + /** + * + * + *
+   * Optional. List of available versions for this module.
+   * 
+ * + * repeated string versions = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The versions at the given index. + */ + java.lang.String getVersions(int index); + + /** + * + * + *
+   * Optional. List of available versions for this module.
+   * 
+ * + * repeated string versions = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the versions at the given index. + */ + com.google.protobuf.ByteString getVersionsBytes(int index); + + /** + * + * + *
+   * Optional. List of available revisions for this module.
+   * 
+ * + * repeated string revisions = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the revisions. + */ + java.util.List getRevisionsList(); + + /** + * + * + *
+   * Optional. List of available revisions for this module.
+   * 
+ * + * repeated string revisions = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of revisions. + */ + int getRevisionsCount(); + + /** + * + * + *
+   * Optional. List of available revisions for this module.
+   * 
+ * + * repeated string revisions = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The revisions at the given index. + */ + java.lang.String getRevisions(int index); + + /** + * + * + *
+   * Optional. List of available revisions for this module.
+   * 
+ * + * repeated string revisions = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the revisions at the given index. + */ + com.google.protobuf.ByteString getRevisionsBytes(int index); + + /** + * + * + *
+   * Optional. Terraform input connections.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getConnectionsList(); + + /** + * + * + *
+   * Optional. Terraform input connections.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.TerraformInputConnections getConnections(int index); + + /** + * + * + *
+   * Optional. Terraform input connections.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getConnectionsCount(); + + /** + * + * + *
+   * Optional. Terraform input connections.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getConnectionsOrBuilderList(); + + /** + * + * + *
+   * Optional. Terraform input connections.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.TerraformInputConnections connections = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.designcenter.v1.TerraformInputConnectionsOrBuilder getConnectionsOrBuilder( + int index); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformModuleOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformModuleOrBuilder.java new file mode 100644 index 000000000000..9e908798b38d --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformModuleOrBuilder.java @@ -0,0 +1,110 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/iac.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface TerraformModuleOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.TerraformModule) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The source of the Terraform module.
+   * 
+ * + * string source = 1; + * + * @return The source. + */ + java.lang.String getSource(); + + /** + * + * + *
+   * The source of the Terraform module.
+   * 
+ * + * string source = 1; + * + * @return The bytes for source. + */ + com.google.protobuf.ByteString getSourceBytes(); + + /** + * + * + *
+   * The files within the Terraform module.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformFile files = 2; + */ + java.util.List getFilesList(); + + /** + * + * + *
+   * The files within the Terraform module.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformFile files = 2; + */ + com.google.cloud.designcenter.v1.TerraformFile getFiles(int index); + + /** + * + * + *
+   * The files within the Terraform module.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformFile files = 2; + */ + int getFilesCount(); + + /** + * + * + *
+   * The files within the Terraform module.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformFile files = 2; + */ + java.util.List + getFilesOrBuilderList(); + + /** + * + * + *
+   * The files within the Terraform module.
+   * 
+ * + * repeated .google.cloud.designcenter.v1.TerraformFile files = 2; + */ + com.google.cloud.designcenter.v1.TerraformFileOrBuilder getFilesOrBuilder(int index); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformOutput.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformOutput.java new file mode 100644 index 000000000000..6ad92555cce2 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformOutput.java @@ -0,0 +1,1072 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Terraform outputs.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.TerraformOutput} + */ +@com.google.protobuf.Generated +public final class TerraformOutput extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.TerraformOutput) + TerraformOutputOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "TerraformOutput"); + } + + // Use TerraformOutput.newBuilder() to construct. + private TerraformOutput(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private TerraformOutput() { + terraformOutputVariable_ = ""; + description_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TerraformOutput_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TerraformOutput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.TerraformOutput.class, + com.google.cloud.designcenter.v1.TerraformOutput.Builder.class); + } + + private int bitField0_; + public static final int TYPE_FIELD_NUMBER = 1; + private com.google.protobuf.Value type_; + + /** + * + * + *
+   * Output only. Type of Terraform output.
+   * 
+ * + * .google.protobuf.Value type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the type field is set. + */ + @java.lang.Override + public boolean hasType() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. Type of Terraform output.
+   * 
+ * + * .google.protobuf.Value type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The type. + */ + @java.lang.Override + public com.google.protobuf.Value getType() { + return type_ == null ? com.google.protobuf.Value.getDefaultInstance() : type_; + } + + /** + * + * + *
+   * Output only. Type of Terraform output.
+   * 
+ * + * .google.protobuf.Value type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.protobuf.ValueOrBuilder getTypeOrBuilder() { + return type_ == null ? com.google.protobuf.Value.getDefaultInstance() : type_; + } + + public static final int TERRAFORM_OUTPUT_VARIABLE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object terraformOutputVariable_ = ""; + + /** + * + * + *
+   * Output only. Output variable name present in Terraform.
+   * 
+ * + * string terraform_output_variable = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The terraformOutputVariable. + */ + @java.lang.Override + public java.lang.String getTerraformOutputVariable() { + java.lang.Object ref = terraformOutputVariable_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + terraformOutputVariable_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. Output variable name present in Terraform.
+   * 
+ * + * string terraform_output_variable = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for terraformOutputVariable. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTerraformOutputVariableBytes() { + java.lang.Object ref = terraformOutputVariable_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + terraformOutputVariable_ = 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_ = ""; + + /** + * + * + *
+   * Output only. Description of the Terraform varaiable.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+   * Output only. Description of the Terraform varaiable.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getType()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(terraformOutputVariable_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, terraformOutputVariable_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, description_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getType()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(terraformOutputVariable_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, terraformOutputVariable_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, description_); + } + 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.designcenter.v1.TerraformOutput)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.TerraformOutput other = + (com.google.cloud.designcenter.v1.TerraformOutput) obj; + + if (hasType() != other.hasType()) return false; + if (hasType()) { + if (!getType().equals(other.getType())) return false; + } + if (!getTerraformOutputVariable().equals(other.getTerraformOutputVariable())) return false; + if (!getDescription().equals(other.getDescription())) 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 (hasType()) { + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + } + hash = (37 * hash) + TERRAFORM_OUTPUT_VARIABLE_FIELD_NUMBER; + hash = (53 * hash) + getTerraformOutputVariable().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.TerraformOutput parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.TerraformOutput 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.designcenter.v1.TerraformOutput parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.TerraformOutput parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TerraformOutput parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.TerraformOutput parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TerraformOutput parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.TerraformOutput parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TerraformOutput parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.TerraformOutput parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TerraformOutput parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.TerraformOutput parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.TerraformOutput 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Terraform outputs.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.TerraformOutput} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.TerraformOutput) + com.google.cloud.designcenter.v1.TerraformOutputOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TerraformOutput_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TerraformOutput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.TerraformOutput.class, + com.google.cloud.designcenter.v1.TerraformOutput.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.TerraformOutput.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetTypeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + type_ = null; + if (typeBuilder_ != null) { + typeBuilder_.dispose(); + typeBuilder_ = null; + } + terraformOutputVariable_ = ""; + description_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TerraformOutput_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformOutput getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.TerraformOutput.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformOutput build() { + com.google.cloud.designcenter.v1.TerraformOutput result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformOutput buildPartial() { + com.google.cloud.designcenter.v1.TerraformOutput result = + new com.google.cloud.designcenter.v1.TerraformOutput(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.TerraformOutput result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.type_ = typeBuilder_ == null ? type_ : typeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.terraformOutputVariable_ = terraformOutputVariable_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.description_ = description_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.TerraformOutput) { + return mergeFrom((com.google.cloud.designcenter.v1.TerraformOutput) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.TerraformOutput other) { + if (other == com.google.cloud.designcenter.v1.TerraformOutput.getDefaultInstance()) + return this; + if (other.hasType()) { + mergeType(other.getType()); + } + if (!other.getTerraformOutputVariable().isEmpty()) { + terraformOutputVariable_ = other.terraformOutputVariable_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + 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: + { + input.readMessage(internalGetTypeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + terraformOutputVariable_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + description_ = 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 com.google.protobuf.Value type_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder> + typeBuilder_; + + /** + * + * + *
+     * Output only. Type of Terraform output.
+     * 
+ * + * .google.protobuf.Value type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the type field is set. + */ + public boolean hasType() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Output only. Type of Terraform output.
+     * 
+ * + * .google.protobuf.Value type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The type. + */ + public com.google.protobuf.Value getType() { + if (typeBuilder_ == null) { + return type_ == null ? com.google.protobuf.Value.getDefaultInstance() : type_; + } else { + return typeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Type of Terraform output.
+     * 
+ * + * .google.protobuf.Value type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setType(com.google.protobuf.Value value) { + if (typeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + } else { + typeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Type of Terraform output.
+     * 
+ * + * .google.protobuf.Value type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setType(com.google.protobuf.Value.Builder builderForValue) { + if (typeBuilder_ == null) { + type_ = builderForValue.build(); + } else { + typeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Type of Terraform output.
+     * 
+ * + * .google.protobuf.Value type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder mergeType(com.google.protobuf.Value value) { + if (typeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && type_ != null + && type_ != com.google.protobuf.Value.getDefaultInstance()) { + getTypeBuilder().mergeFrom(value); + } else { + type_ = value; + } + } else { + typeBuilder_.mergeFrom(value); + } + if (type_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Type of Terraform output.
+     * 
+ * + * .google.protobuf.Value type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000001); + type_ = null; + if (typeBuilder_ != null) { + typeBuilder_.dispose(); + typeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Type of Terraform output.
+     * 
+ * + * .google.protobuf.Value type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.Value.Builder getTypeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetTypeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Type of Terraform output.
+     * 
+ * + * .google.protobuf.Value type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.ValueOrBuilder getTypeOrBuilder() { + if (typeBuilder_ != null) { + return typeBuilder_.getMessageOrBuilder(); + } else { + return type_ == null ? com.google.protobuf.Value.getDefaultInstance() : type_; + } + } + + /** + * + * + *
+     * Output only. Type of Terraform output.
+     * 
+ * + * .google.protobuf.Value type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder> + internalGetTypeFieldBuilder() { + if (typeBuilder_ == null) { + typeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder>(getType(), getParentForChildren(), isClean()); + type_ = null; + } + return typeBuilder_; + } + + private java.lang.Object terraformOutputVariable_ = ""; + + /** + * + * + *
+     * Output only. Output variable name present in Terraform.
+     * 
+ * + * string terraform_output_variable = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The terraformOutputVariable. + */ + public java.lang.String getTerraformOutputVariable() { + java.lang.Object ref = terraformOutputVariable_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + terraformOutputVariable_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Output variable name present in Terraform.
+     * 
+ * + * string terraform_output_variable = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for terraformOutputVariable. + */ + public com.google.protobuf.ByteString getTerraformOutputVariableBytes() { + java.lang.Object ref = terraformOutputVariable_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + terraformOutputVariable_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Output variable name present in Terraform.
+     * 
+ * + * string terraform_output_variable = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The terraformOutputVariable to set. + * @return This builder for chaining. + */ + public Builder setTerraformOutputVariable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + terraformOutputVariable_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Output variable name present in Terraform.
+     * 
+ * + * string terraform_output_variable = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearTerraformOutputVariable() { + terraformOutputVariable_ = getDefaultInstance().getTerraformOutputVariable(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Output variable name present in Terraform.
+     * 
+ * + * string terraform_output_variable = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for terraformOutputVariable to set. + * @return This builder for chaining. + */ + public Builder setTerraformOutputVariableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + terraformOutputVariable_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
+     * Output only. Description of the Terraform varaiable.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+     * Output only. Description of the Terraform varaiable.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+     * Output only. Description of the Terraform varaiable.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + + /** + * + * + *
+     * Output only. Description of the Terraform varaiable.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Description of the Terraform varaiable.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.TerraformOutput) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.TerraformOutput) + private static final com.google.cloud.designcenter.v1.TerraformOutput DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.TerraformOutput(); + } + + public static com.google.cloud.designcenter.v1.TerraformOutput getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TerraformOutput parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.TerraformOutput getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformOutputOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformOutputOrBuilder.java new file mode 100644 index 000000000000..7e77074c781f --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformOutputOrBuilder.java @@ -0,0 +1,117 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface TerraformOutputOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.TerraformOutput) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Type of Terraform output.
+   * 
+ * + * .google.protobuf.Value type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the type field is set. + */ + boolean hasType(); + + /** + * + * + *
+   * Output only. Type of Terraform output.
+   * 
+ * + * .google.protobuf.Value type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The type. + */ + com.google.protobuf.Value getType(); + + /** + * + * + *
+   * Output only. Type of Terraform output.
+   * 
+ * + * .google.protobuf.Value type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.protobuf.ValueOrBuilder getTypeOrBuilder(); + + /** + * + * + *
+   * Output only. Output variable name present in Terraform.
+   * 
+ * + * string terraform_output_variable = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The terraformOutputVariable. + */ + java.lang.String getTerraformOutputVariable(); + + /** + * + * + *
+   * Output only. Output variable name present in Terraform.
+   * 
+ * + * string terraform_output_variable = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for terraformOutputVariable. + */ + com.google.protobuf.ByteString getTerraformOutputVariableBytes(); + + /** + * + * + *
+   * Output only. Description of the Terraform varaiable.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
+   * Output only. Description of the Terraform varaiable.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformUiInput.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformUiInput.java new file mode 100644 index 000000000000..6778215a8200 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformUiInput.java @@ -0,0 +1,902 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Terraform blueprint UI input.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.TerraformUiInput} + */ +@com.google.protobuf.Generated +public final class TerraformUiInput extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.TerraformUiInput) + TerraformUiInputOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "TerraformUiInput"); + } + + // Use TerraformUiInput.newBuilder() to construct. + private TerraformUiInput(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private TerraformUiInput() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TerraformUiInput_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetTerraformUiInputs(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TerraformUiInput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.TerraformUiInput.class, + com.google.cloud.designcenter.v1.TerraformUiInput.Builder.class); + } + + public static final int TERRAFORM_UI_INPUTS_FIELD_NUMBER = 1; + + private static final class TerraformUiInputsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable> + defaultEntry = + com.google.protobuf.MapEntry + . + newDefaultInstance( + com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TerraformUiInput_TerraformUiInputsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable + .getDefaultInstance()); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable> + terraformUiInputs_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable> + internalGetTerraformUiInputs() { + if (terraformUiInputs_ == null) { + return com.google.protobuf.MapField.emptyMapField( + TerraformUiInputsDefaultEntryHolder.defaultEntry); + } + return terraformUiInputs_; + } + + public int getTerraformUiInputsCount() { + return internalGetTerraformUiInputs().getMap().size(); + } + + /** + * + * + *
+   * Output only. Terraform UI inputs.
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.TerraformUiInputDisplayVariable> terraform_ui_inputs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public boolean containsTerraformUiInputs(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetTerraformUiInputs().getMap().containsKey(key); + } + + /** Use {@link #getTerraformUiInputsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map< + java.lang.String, com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable> + getTerraformUiInputs() { + return getTerraformUiInputsMap(); + } + + /** + * + * + *
+   * Output only. Terraform UI inputs.
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.TerraformUiInputDisplayVariable> terraform_ui_inputs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.Map< + java.lang.String, com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable> + getTerraformUiInputsMap() { + return internalGetTerraformUiInputs().getMap(); + } + + /** + * + * + *
+   * Output only. Terraform UI inputs.
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.TerraformUiInputDisplayVariable> terraform_ui_inputs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable + getTerraformUiInputsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable> + map = internalGetTerraformUiInputs().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+   * Output only. Terraform UI inputs.
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.TerraformUiInputDisplayVariable> terraform_ui_inputs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable + getTerraformUiInputsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable> + map = internalGetTerraformUiInputs().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, + internalGetTerraformUiInputs(), + TerraformUiInputsDefaultEntryHolder.defaultEntry, + 1); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry< + java.lang.String, com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable> + entry : internalGetTerraformUiInputs().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable> + terraformUiInputs__ = + TerraformUiInputsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, terraformUiInputs__); + } + 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.designcenter.v1.TerraformUiInput)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.TerraformUiInput other = + (com.google.cloud.designcenter.v1.TerraformUiInput) obj; + + if (!internalGetTerraformUiInputs().equals(other.internalGetTerraformUiInputs())) 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 (!internalGetTerraformUiInputs().getMap().isEmpty()) { + hash = (37 * hash) + TERRAFORM_UI_INPUTS_FIELD_NUMBER; + hash = (53 * hash) + internalGetTerraformUiInputs().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.TerraformUiInput parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.TerraformUiInput 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.designcenter.v1.TerraformUiInput parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.TerraformUiInput parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TerraformUiInput parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.TerraformUiInput parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TerraformUiInput parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.TerraformUiInput parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TerraformUiInput parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.TerraformUiInput parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TerraformUiInput parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.TerraformUiInput parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.TerraformUiInput 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Terraform blueprint UI input.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.TerraformUiInput} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.TerraformUiInput) + com.google.cloud.designcenter.v1.TerraformUiInputOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TerraformUiInput_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetTerraformUiInputs(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetMutableTerraformUiInputs(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TerraformUiInput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.TerraformUiInput.class, + com.google.cloud.designcenter.v1.TerraformUiInput.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.TerraformUiInput.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + internalGetMutableTerraformUiInputs().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TerraformUiInput_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformUiInput getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.TerraformUiInput.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformUiInput build() { + com.google.cloud.designcenter.v1.TerraformUiInput result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformUiInput buildPartial() { + com.google.cloud.designcenter.v1.TerraformUiInput result = + new com.google.cloud.designcenter.v1.TerraformUiInput(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.TerraformUiInput result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.terraformUiInputs_ = + internalGetTerraformUiInputs().build(TerraformUiInputsDefaultEntryHolder.defaultEntry); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.TerraformUiInput) { + return mergeFrom((com.google.cloud.designcenter.v1.TerraformUiInput) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.TerraformUiInput other) { + if (other == com.google.cloud.designcenter.v1.TerraformUiInput.getDefaultInstance()) + return this; + internalGetMutableTerraformUiInputs().mergeFrom(other.internalGetTerraformUiInputs()); + bitField0_ |= 0x00000001; + 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.protobuf.MapEntry< + java.lang.String, + com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable> + terraformUiInputs__ = + input.readMessage( + TerraformUiInputsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableTerraformUiInputs() + .ensureBuilderMap() + .put(terraformUiInputs__.getKey(), terraformUiInputs__.getValue()); + 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 static final class TerraformUiInputsConverter + implements com.google.protobuf.MapFieldBuilder.Converter< + java.lang.String, + com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariableOrBuilder, + com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable> { + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable build( + com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariableOrBuilder val) { + if (val instanceof com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable) { + return (com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable) val; + } + return ((com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable.Builder) val) + .build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable> + defaultEntry() { + return TerraformUiInputsDefaultEntryHolder.defaultEntry; + } + } + ; + + private static final TerraformUiInputsConverter terraformUiInputsConverter = + new TerraformUiInputsConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariableOrBuilder, + com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable, + com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable.Builder> + terraformUiInputs_; + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariableOrBuilder, + com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable, + com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable.Builder> + internalGetTerraformUiInputs() { + if (terraformUiInputs_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(terraformUiInputsConverter); + } + return terraformUiInputs_; + } + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariableOrBuilder, + com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable, + com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable.Builder> + internalGetMutableTerraformUiInputs() { + if (terraformUiInputs_ == null) { + terraformUiInputs_ = new com.google.protobuf.MapFieldBuilder<>(terraformUiInputsConverter); + } + bitField0_ |= 0x00000001; + onChanged(); + return terraformUiInputs_; + } + + public int getTerraformUiInputsCount() { + return internalGetTerraformUiInputs().ensureBuilderMap().size(); + } + + /** + * + * + *
+     * Output only. Terraform UI inputs.
+     * 
+ * + * + * map<string, .google.cloud.designcenter.v1.TerraformUiInputDisplayVariable> terraform_ui_inputs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public boolean containsTerraformUiInputs(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetTerraformUiInputs().ensureBuilderMap().containsKey(key); + } + + /** Use {@link #getTerraformUiInputsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map< + java.lang.String, com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable> + getTerraformUiInputs() { + return getTerraformUiInputsMap(); + } + + /** + * + * + *
+     * Output only. Terraform UI inputs.
+     * 
+ * + * + * map<string, .google.cloud.designcenter.v1.TerraformUiInputDisplayVariable> terraform_ui_inputs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.Map< + java.lang.String, com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable> + getTerraformUiInputsMap() { + return internalGetTerraformUiInputs().getImmutableMap(); + } + + /** + * + * + *
+     * Output only. Terraform UI inputs.
+     * 
+ * + * + * map<string, .google.cloud.designcenter.v1.TerraformUiInputDisplayVariable> terraform_ui_inputs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable + getTerraformUiInputsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariableOrBuilder> + map = internalGetMutableTerraformUiInputs().ensureBuilderMap(); + return map.containsKey(key) ? terraformUiInputsConverter.build(map.get(key)) : defaultValue; + } + + /** + * + * + *
+     * Output only. Terraform UI inputs.
+     * 
+ * + * + * map<string, .google.cloud.designcenter.v1.TerraformUiInputDisplayVariable> terraform_ui_inputs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable + getTerraformUiInputsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariableOrBuilder> + map = internalGetMutableTerraformUiInputs().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return terraformUiInputsConverter.build(map.get(key)); + } + + public Builder clearTerraformUiInputs() { + bitField0_ = (bitField0_ & ~0x00000001); + internalGetMutableTerraformUiInputs().clear(); + return this; + } + + /** + * + * + *
+     * Output only. Terraform UI inputs.
+     * 
+ * + * + * map<string, .google.cloud.designcenter.v1.TerraformUiInputDisplayVariable> terraform_ui_inputs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeTerraformUiInputs(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableTerraformUiInputs().ensureBuilderMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map< + java.lang.String, com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable> + getMutableTerraformUiInputs() { + bitField0_ |= 0x00000001; + return internalGetMutableTerraformUiInputs().ensureMessageMap(); + } + + /** + * + * + *
+     * Output only. Terraform UI inputs.
+     * 
+ * + * + * map<string, .google.cloud.designcenter.v1.TerraformUiInputDisplayVariable> terraform_ui_inputs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder putTerraformUiInputs( + java.lang.String key, + com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableTerraformUiInputs().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00000001; + return this; + } + + /** + * + * + *
+     * Output only. Terraform UI inputs.
+     * 
+ * + * + * map<string, .google.cloud.designcenter.v1.TerraformUiInputDisplayVariable> terraform_ui_inputs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder putAllTerraformUiInputs( + java.util.Map< + java.lang.String, com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable> + values) { + for (java.util.Map.Entry< + java.lang.String, com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable> + e : values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableTerraformUiInputs().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00000001; + return this; + } + + /** + * + * + *
+     * Output only. Terraform UI inputs.
+     * 
+ * + * + * map<string, .google.cloud.designcenter.v1.TerraformUiInputDisplayVariable> terraform_ui_inputs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable.Builder + putTerraformUiInputsBuilderIfAbsent(java.lang.String key) { + java.util.Map< + java.lang.String, + com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariableOrBuilder> + builderMap = internalGetMutableTerraformUiInputs().ensureBuilderMap(); + com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariableOrBuilder entry = + builderMap.get(key); + if (entry == null) { + entry = com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable.newBuilder(); + builderMap.put(key, entry); + } + if (entry instanceof com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable) { + entry = + ((com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable) entry).toBuilder(); + builderMap.put(key, entry); + } + return (com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable.Builder) entry; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.TerraformUiInput) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.TerraformUiInput) + private static final com.google.cloud.designcenter.v1.TerraformUiInput DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.TerraformUiInput(); + } + + public static com.google.cloud.designcenter.v1.TerraformUiInput getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TerraformUiInput parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.TerraformUiInput getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformUiInputDisplayVariable.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformUiInputDisplayVariable.java new file mode 100644 index 000000000000..bf570d9642f0 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformUiInputDisplayVariable.java @@ -0,0 +1,3925 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Terraform blueprint UI input display variable.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.TerraformUiInputDisplayVariable} + */ +@com.google.protobuf.Generated +public final class TerraformUiInputDisplayVariable extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.TerraformUiInputDisplayVariable) + TerraformUiInputDisplayVariableOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "TerraformUiInputDisplayVariable"); + } + + // Use TerraformUiInputDisplayVariable.newBuilder() to construct. + private TerraformUiInputDisplayVariable(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private TerraformUiInputDisplayVariable() { + displayName_ = ""; + title_ = ""; + alternateDefaults_ = java.util.Collections.emptyList(); + regexValidation_ = ""; + validation_ = ""; + enumValueLabels_ = java.util.Collections.emptyList(); + subtext_ = ""; + toggleUsingVariables_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TerraformUiInputDisplayVariable_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 13: + return internalGetProperties(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TerraformUiInputDisplayVariable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable.class, + com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable.Builder.class); + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
+   * Output only. Display name of the input.
+   * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+   * Output only. Display name of the input.
+   * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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 TITLE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object title_ = ""; + + /** + * + * + *
+   * Output only. Title of the input.
+   * 
+ * + * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The title. + */ + @java.lang.Override + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. Title of the input.
+   * 
+ * + * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for title. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ALTERNATE_DEFAULTS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List alternateDefaults_; + + /** + * + * + *
+   * Output only. Alternate defaults for the input.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.AlternateDefault alternate_defaults = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getAlternateDefaultsList() { + return alternateDefaults_; + } + + /** + * + * + *
+   * Output only. Alternate defaults for the input.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.AlternateDefault alternate_defaults = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getAlternateDefaultsOrBuilderList() { + return alternateDefaults_; + } + + /** + * + * + *
+   * Output only. Alternate defaults for the input.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.AlternateDefault alternate_defaults = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getAlternateDefaultsCount() { + return alternateDefaults_.size(); + } + + /** + * + * + *
+   * Output only. Alternate defaults for the input.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.AlternateDefault alternate_defaults = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.AlternateDefault getAlternateDefaults(int index) { + return alternateDefaults_.get(index); + } + + /** + * + * + *
+   * Output only. Alternate defaults for the input.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.AlternateDefault alternate_defaults = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.AlternateDefaultOrBuilder getAlternateDefaultsOrBuilder( + int index) { + return alternateDefaults_.get(index); + } + + public static final int REGEX_VALIDATION_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object regexValidation_ = ""; + + /** + * + * + *
+   * Output only. Regex based validation rules for the variable.
+   * 
+ * + * string regex_validation = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The regexValidation. + */ + @java.lang.Override + public java.lang.String getRegexValidation() { + java.lang.Object ref = regexValidation_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + regexValidation_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. Regex based validation rules for the variable.
+   * 
+ * + * string regex_validation = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for regexValidation. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegexValidationBytes() { + java.lang.Object ref = regexValidation_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + regexValidation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MIN_FIELD_NUMBER = 6; + private float min_ = 0F; + + /** + * + * + *
+   * Output only. Minimum value for numeric types.
+   * 
+ * + * float min = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The min. + */ + @java.lang.Override + public float getMin() { + return min_; + } + + public static final int MAX_FIELD_NUMBER = 7; + private float max_ = 0F; + + /** + * + * + *
+   * Output only. Maximum value for numeric types.
+   * 
+ * + * float max = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The max. + */ + @java.lang.Override + public float getMax() { + return max_; + } + + public static final int VALIDATION_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object validation_ = ""; + + /** + * + * + *
+   * Output only. Text describing the validation rules for the property.
+   * Typically shown after an invalid input. Optional. UTF-8 text. No markup. At
+   * most 128 characters.
+   * 
+ * + * string validation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The validation. + */ + @java.lang.Override + public java.lang.String getValidation() { + java.lang.Object ref = validation_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + validation_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. Text describing the validation rules for the property.
+   * Typically shown after an invalid input. Optional. UTF-8 text. No markup. At
+   * most 128 characters.
+   * 
+ * + * string validation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for validation. + */ + @java.lang.Override + public com.google.protobuf.ByteString getValidationBytes() { + java.lang.Object ref = validation_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + validation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENUM_VALUE_LABELS_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private java.util.List enumValueLabels_; + + /** + * + * + *
+   * Output only. Labels for enum values.
+   * Values must be UTF-8 text with no markup, and at most 64 characters.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ValueLabel enum_value_labels = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getEnumValueLabelsList() { + return enumValueLabels_; + } + + /** + * + * + *
+   * Output only. Labels for enum values.
+   * Values must be UTF-8 text with no markup, and at most 64 characters.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ValueLabel enum_value_labels = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getEnumValueLabelsOrBuilderList() { + return enumValueLabels_; + } + + /** + * + * + *
+   * Output only. Labels for enum values.
+   * Values must be UTF-8 text with no markup, and at most 64 characters.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ValueLabel enum_value_labels = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getEnumValueLabelsCount() { + return enumValueLabels_.size(); + } + + /** + * + * + *
+   * Output only. Labels for enum values.
+   * Values must be UTF-8 text with no markup, and at most 64 characters.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ValueLabel enum_value_labels = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ValueLabel getEnumValueLabels(int index) { + return enumValueLabels_.get(index); + } + + /** + * + * + *
+   * Output only. Labels for enum values.
+   * Values must be UTF-8 text with no markup, and at most 64 characters.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ValueLabel enum_value_labels = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ValueLabelOrBuilder getEnumValueLabelsOrBuilder( + int index) { + return enumValueLabels_.get(index); + } + + public static final int LEVEL_FIELD_NUMBER = 10; + private int level_ = 0; + + /** + * + * + *
+   * Output only. Indicates the "advanced" level of the input property. Level 0
+   * (default) will always be shown. Level 1 corresponds to one expansion (user
+   * clicks "show advanced options" or "more options"). Higher levels correspond
+   * to further expansions, or they may be collapsed to level 1 by the UI
+   * implementation.
+   * Optional.
+   * 
+ * + * int32 level = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The level. + */ + @java.lang.Override + public int getLevel() { + return level_; + } + + public static final int SUBTEXT_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private volatile java.lang.Object subtext_ = ""; + + /** + * + * + *
+   * Output only. Property subtext, displayed below the title.
+   * 
+ * + * string subtext = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The subtext. + */ + @java.lang.Override + public java.lang.String getSubtext() { + java.lang.Object ref = subtext_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subtext_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. Property subtext, displayed below the title.
+   * 
+ * + * string subtext = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for subtext. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSubtextBytes() { + java.lang.Object ref = subtext_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + subtext_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOGGLE_USING_VARIABLES_FIELD_NUMBER = 12; + + @SuppressWarnings("serial") + private java.util.List + toggleUsingVariables_; + + /** + * + * + *
+   * Output only. Variables used to toggle the display of another variable.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.DisplayVariableToggle toggle_using_variables = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getToggleUsingVariablesList() { + return toggleUsingVariables_; + } + + /** + * + * + *
+   * Output only. Variables used to toggle the display of another variable.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.DisplayVariableToggle toggle_using_variables = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getToggleUsingVariablesOrBuilderList() { + return toggleUsingVariables_; + } + + /** + * + * + *
+   * Output only. Variables used to toggle the display of another variable.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.DisplayVariableToggle toggle_using_variables = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getToggleUsingVariablesCount() { + return toggleUsingVariables_.size(); + } + + /** + * + * + *
+   * Output only. Variables used to toggle the display of another variable.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.DisplayVariableToggle toggle_using_variables = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.DisplayVariableToggle getToggleUsingVariables(int index) { + return toggleUsingVariables_.get(index); + } + + /** + * + * + *
+   * Output only. Variables used to toggle the display of another variable.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.DisplayVariableToggle toggle_using_variables = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.DisplayVariableToggleOrBuilder + getToggleUsingVariablesOrBuilder(int index) { + return toggleUsingVariables_.get(index); + } + + public static final int PROPERTIES_FIELD_NUMBER = 13; + + private static final class PropertiesDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable> + defaultEntry = + com.google.protobuf.MapEntry + . + newDefaultInstance( + com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TerraformUiInputDisplayVariable_PropertiesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable + .getDefaultInstance()); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable> + properties_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable> + internalGetProperties() { + if (properties_ == null) { + return com.google.protobuf.MapField.emptyMapField(PropertiesDefaultEntryHolder.defaultEntry); + } + return properties_; + } + + public int getPropertiesCount() { + return internalGetProperties().getMap().size(); + } + + /** + * + * + *
+   * Output only. A map that defines all fields of the input variable.
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.TerraformUiInputDisplayVariable> properties = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public boolean containsProperties(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetProperties().getMap().containsKey(key); + } + + /** Use {@link #getPropertiesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map< + java.lang.String, com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable> + getProperties() { + return getPropertiesMap(); + } + + /** + * + * + *
+   * Output only. A map that defines all fields of the input variable.
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.TerraformUiInputDisplayVariable> properties = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.Map< + java.lang.String, com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable> + getPropertiesMap() { + return internalGetProperties().getMap(); + } + + /** + * + * + *
+   * Output only. A map that defines all fields of the input variable.
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.TerraformUiInputDisplayVariable> properties = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable + getPropertiesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable> + map = internalGetProperties().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+   * Output only. A map that defines all fields of the input variable.
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.TerraformUiInputDisplayVariable> properties = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable getPropertiesOrThrow( + java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable> + map = internalGetProperties().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, title_); + } + for (int i = 0; i < alternateDefaults_.size(); i++) { + output.writeMessage(3, alternateDefaults_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(regexValidation_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, regexValidation_); + } + if (java.lang.Float.floatToRawIntBits(min_) != 0) { + output.writeFloat(6, min_); + } + if (java.lang.Float.floatToRawIntBits(max_) != 0) { + output.writeFloat(7, max_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(validation_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 8, validation_); + } + for (int i = 0; i < enumValueLabels_.size(); i++) { + output.writeMessage(9, enumValueLabels_.get(i)); + } + if (level_ != 0) { + output.writeInt32(10, level_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(subtext_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 11, subtext_); + } + for (int i = 0; i < toggleUsingVariables_.size(); i++) { + output.writeMessage(12, toggleUsingVariables_.get(i)); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetProperties(), PropertiesDefaultEntryHolder.defaultEntry, 13); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, title_); + } + for (int i = 0; i < alternateDefaults_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, alternateDefaults_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(regexValidation_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, regexValidation_); + } + if (java.lang.Float.floatToRawIntBits(min_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(6, min_); + } + if (java.lang.Float.floatToRawIntBits(max_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(7, max_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(validation_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(8, validation_); + } + for (int i = 0; i < enumValueLabels_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, enumValueLabels_.get(i)); + } + if (level_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(10, level_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(subtext_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(11, subtext_); + } + for (int i = 0; i < toggleUsingVariables_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 12, toggleUsingVariables_.get(i)); + } + for (java.util.Map.Entry< + java.lang.String, com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable> + entry : internalGetProperties().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable> + properties__ = + PropertiesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, properties__); + } + 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.designcenter.v1.TerraformUiInputDisplayVariable)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable other = + (com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable) obj; + + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getTitle().equals(other.getTitle())) return false; + if (!getAlternateDefaultsList().equals(other.getAlternateDefaultsList())) return false; + if (!getRegexValidation().equals(other.getRegexValidation())) return false; + if (java.lang.Float.floatToIntBits(getMin()) != java.lang.Float.floatToIntBits(other.getMin())) + return false; + if (java.lang.Float.floatToIntBits(getMax()) != java.lang.Float.floatToIntBits(other.getMax())) + return false; + if (!getValidation().equals(other.getValidation())) return false; + if (!getEnumValueLabelsList().equals(other.getEnumValueLabelsList())) return false; + if (getLevel() != other.getLevel()) return false; + if (!getSubtext().equals(other.getSubtext())) return false; + if (!getToggleUsingVariablesList().equals(other.getToggleUsingVariablesList())) return false; + if (!internalGetProperties().equals(other.internalGetProperties())) 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) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + if (getAlternateDefaultsCount() > 0) { + hash = (37 * hash) + ALTERNATE_DEFAULTS_FIELD_NUMBER; + hash = (53 * hash) + getAlternateDefaultsList().hashCode(); + } + hash = (37 * hash) + REGEX_VALIDATION_FIELD_NUMBER; + hash = (53 * hash) + getRegexValidation().hashCode(); + hash = (37 * hash) + MIN_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getMin()); + hash = (37 * hash) + MAX_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getMax()); + hash = (37 * hash) + VALIDATION_FIELD_NUMBER; + hash = (53 * hash) + getValidation().hashCode(); + if (getEnumValueLabelsCount() > 0) { + hash = (37 * hash) + ENUM_VALUE_LABELS_FIELD_NUMBER; + hash = (53 * hash) + getEnumValueLabelsList().hashCode(); + } + hash = (37 * hash) + LEVEL_FIELD_NUMBER; + hash = (53 * hash) + getLevel(); + hash = (37 * hash) + SUBTEXT_FIELD_NUMBER; + hash = (53 * hash) + getSubtext().hashCode(); + if (getToggleUsingVariablesCount() > 0) { + hash = (37 * hash) + TOGGLE_USING_VARIABLES_FIELD_NUMBER; + hash = (53 * hash) + getToggleUsingVariablesList().hashCode(); + } + if (!internalGetProperties().getMap().isEmpty()) { + hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; + hash = (53 * hash) + internalGetProperties().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable 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.designcenter.v1.TerraformUiInputDisplayVariable parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.TerraformUiInputDisplayVariable 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Terraform blueprint UI input display variable.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.TerraformUiInputDisplayVariable} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.TerraformUiInputDisplayVariable) + com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariableOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TerraformUiInputDisplayVariable_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 13: + return internalGetProperties(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 13: + return internalGetMutableProperties(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TerraformUiInputDisplayVariable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable.class, + com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + displayName_ = ""; + title_ = ""; + if (alternateDefaultsBuilder_ == null) { + alternateDefaults_ = java.util.Collections.emptyList(); + } else { + alternateDefaults_ = null; + alternateDefaultsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + regexValidation_ = ""; + min_ = 0F; + max_ = 0F; + validation_ = ""; + if (enumValueLabelsBuilder_ == null) { + enumValueLabels_ = java.util.Collections.emptyList(); + } else { + enumValueLabels_ = null; + enumValueLabelsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000080); + level_ = 0; + subtext_ = ""; + if (toggleUsingVariablesBuilder_ == null) { + toggleUsingVariables_ = java.util.Collections.emptyList(); + } else { + toggleUsingVariables_ = null; + toggleUsingVariablesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000400); + internalGetMutableProperties().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TerraformUiInputDisplayVariable_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable build() { + com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable buildPartial() { + com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable result = + new com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable result) { + if (alternateDefaultsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + alternateDefaults_ = java.util.Collections.unmodifiableList(alternateDefaults_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.alternateDefaults_ = alternateDefaults_; + } else { + result.alternateDefaults_ = alternateDefaultsBuilder_.build(); + } + if (enumValueLabelsBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0)) { + enumValueLabels_ = java.util.Collections.unmodifiableList(enumValueLabels_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.enumValueLabels_ = enumValueLabels_; + } else { + result.enumValueLabels_ = enumValueLabelsBuilder_.build(); + } + if (toggleUsingVariablesBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0)) { + toggleUsingVariables_ = java.util.Collections.unmodifiableList(toggleUsingVariables_); + bitField0_ = (bitField0_ & ~0x00000400); + } + result.toggleUsingVariables_ = toggleUsingVariables_; + } else { + result.toggleUsingVariables_ = toggleUsingVariablesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.title_ = title_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.regexValidation_ = regexValidation_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.min_ = min_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.max_ = max_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.validation_ = validation_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.level_ = level_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.subtext_ = subtext_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.properties_ = + internalGetProperties().build(PropertiesDefaultEntryHolder.defaultEntry); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable) { + return mergeFrom((com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable other) { + if (other + == com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable.getDefaultInstance()) + return this; + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getTitle().isEmpty()) { + title_ = other.title_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (alternateDefaultsBuilder_ == null) { + if (!other.alternateDefaults_.isEmpty()) { + if (alternateDefaults_.isEmpty()) { + alternateDefaults_ = other.alternateDefaults_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureAlternateDefaultsIsMutable(); + alternateDefaults_.addAll(other.alternateDefaults_); + } + onChanged(); + } + } else { + if (!other.alternateDefaults_.isEmpty()) { + if (alternateDefaultsBuilder_.isEmpty()) { + alternateDefaultsBuilder_.dispose(); + alternateDefaultsBuilder_ = null; + alternateDefaults_ = other.alternateDefaults_; + bitField0_ = (bitField0_ & ~0x00000004); + alternateDefaultsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAlternateDefaultsFieldBuilder() + : null; + } else { + alternateDefaultsBuilder_.addAllMessages(other.alternateDefaults_); + } + } + } + if (!other.getRegexValidation().isEmpty()) { + regexValidation_ = other.regexValidation_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (java.lang.Float.floatToRawIntBits(other.getMin()) != 0) { + setMin(other.getMin()); + } + if (java.lang.Float.floatToRawIntBits(other.getMax()) != 0) { + setMax(other.getMax()); + } + if (!other.getValidation().isEmpty()) { + validation_ = other.validation_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (enumValueLabelsBuilder_ == null) { + if (!other.enumValueLabels_.isEmpty()) { + if (enumValueLabels_.isEmpty()) { + enumValueLabels_ = other.enumValueLabels_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureEnumValueLabelsIsMutable(); + enumValueLabels_.addAll(other.enumValueLabels_); + } + onChanged(); + } + } else { + if (!other.enumValueLabels_.isEmpty()) { + if (enumValueLabelsBuilder_.isEmpty()) { + enumValueLabelsBuilder_.dispose(); + enumValueLabelsBuilder_ = null; + enumValueLabels_ = other.enumValueLabels_; + bitField0_ = (bitField0_ & ~0x00000080); + enumValueLabelsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetEnumValueLabelsFieldBuilder() + : null; + } else { + enumValueLabelsBuilder_.addAllMessages(other.enumValueLabels_); + } + } + } + if (other.getLevel() != 0) { + setLevel(other.getLevel()); + } + if (!other.getSubtext().isEmpty()) { + subtext_ = other.subtext_; + bitField0_ |= 0x00000200; + onChanged(); + } + if (toggleUsingVariablesBuilder_ == null) { + if (!other.toggleUsingVariables_.isEmpty()) { + if (toggleUsingVariables_.isEmpty()) { + toggleUsingVariables_ = other.toggleUsingVariables_; + bitField0_ = (bitField0_ & ~0x00000400); + } else { + ensureToggleUsingVariablesIsMutable(); + toggleUsingVariables_.addAll(other.toggleUsingVariables_); + } + onChanged(); + } + } else { + if (!other.toggleUsingVariables_.isEmpty()) { + if (toggleUsingVariablesBuilder_.isEmpty()) { + toggleUsingVariablesBuilder_.dispose(); + toggleUsingVariablesBuilder_ = null; + toggleUsingVariables_ = other.toggleUsingVariables_; + bitField0_ = (bitField0_ & ~0x00000400); + toggleUsingVariablesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetToggleUsingVariablesFieldBuilder() + : null; + } else { + toggleUsingVariablesBuilder_.addAllMessages(other.toggleUsingVariables_); + } + } + } + internalGetMutableProperties().mergeFrom(other.internalGetProperties()); + bitField0_ |= 0x00000800; + 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: + { + title_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + com.google.cloud.designcenter.v1.AlternateDefault m = + input.readMessage( + com.google.cloud.designcenter.v1.AlternateDefault.parser(), + extensionRegistry); + if (alternateDefaultsBuilder_ == null) { + ensureAlternateDefaultsIsMutable(); + alternateDefaults_.add(m); + } else { + alternateDefaultsBuilder_.addMessage(m); + } + break; + } // case 26 + case 42: + { + regexValidation_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 53: + { + min_ = input.readFloat(); + bitField0_ |= 0x00000010; + break; + } // case 53 + case 61: + { + max_ = input.readFloat(); + bitField0_ |= 0x00000020; + break; + } // case 61 + case 66: + { + validation_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 66 + case 74: + { + com.google.cloud.designcenter.v1.ValueLabel m = + input.readMessage( + com.google.cloud.designcenter.v1.ValueLabel.parser(), extensionRegistry); + if (enumValueLabelsBuilder_ == null) { + ensureEnumValueLabelsIsMutable(); + enumValueLabels_.add(m); + } else { + enumValueLabelsBuilder_.addMessage(m); + } + break; + } // case 74 + case 80: + { + level_ = input.readInt32(); + bitField0_ |= 0x00000100; + break; + } // case 80 + case 90: + { + subtext_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 90 + case 98: + { + com.google.cloud.designcenter.v1.DisplayVariableToggle m = + input.readMessage( + com.google.cloud.designcenter.v1.DisplayVariableToggle.parser(), + extensionRegistry); + if (toggleUsingVariablesBuilder_ == null) { + ensureToggleUsingVariablesIsMutable(); + toggleUsingVariables_.add(m); + } else { + toggleUsingVariablesBuilder_.addMessage(m); + } + break; + } // case 98 + case 106: + { + com.google.protobuf.MapEntry< + java.lang.String, + com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable> + properties__ = + input.readMessage( + PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableProperties() + .ensureBuilderMap() + .put(properties__.getKey(), properties__.getValue()); + 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 displayName_ = ""; + + /** + * + * + *
+     * Output only. Display name of the input.
+     * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+     * Output only. Display name of the input.
+     * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+     * Output only. Display name of the input.
+     * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + + /** + * + * + *
+     * Output only. Display name of the input.
+     * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Display name of the input.
+     * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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 title_ = ""; + + /** + * + * + *
+     * Output only. Title of the input.
+     * 
+ * + * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The title. + */ + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Title of the input.
+     * 
+ * + * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for title. + */ + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Title of the input.
+     * 
+ * + * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The title to set. + * @return This builder for chaining. + */ + public Builder setTitle(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + title_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Title of the input.
+     * 
+ * + * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearTitle() { + title_ = getDefaultInstance().getTitle(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Title of the input.
+     * 
+ * + * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for title to set. + * @return This builder for chaining. + */ + public Builder setTitleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + title_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.util.List alternateDefaults_ = + java.util.Collections.emptyList(); + + private void ensureAlternateDefaultsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + alternateDefaults_ = + new java.util.ArrayList( + alternateDefaults_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.AlternateDefault, + com.google.cloud.designcenter.v1.AlternateDefault.Builder, + com.google.cloud.designcenter.v1.AlternateDefaultOrBuilder> + alternateDefaultsBuilder_; + + /** + * + * + *
+     * Output only. Alternate defaults for the input.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.AlternateDefault alternate_defaults = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getAlternateDefaultsList() { + if (alternateDefaultsBuilder_ == null) { + return java.util.Collections.unmodifiableList(alternateDefaults_); + } else { + return alternateDefaultsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Output only. Alternate defaults for the input.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.AlternateDefault alternate_defaults = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getAlternateDefaultsCount() { + if (alternateDefaultsBuilder_ == null) { + return alternateDefaults_.size(); + } else { + return alternateDefaultsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Output only. Alternate defaults for the input.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.AlternateDefault alternate_defaults = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.AlternateDefault getAlternateDefaults(int index) { + if (alternateDefaultsBuilder_ == null) { + return alternateDefaults_.get(index); + } else { + return alternateDefaultsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Output only. Alternate defaults for the input.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.AlternateDefault alternate_defaults = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAlternateDefaults( + int index, com.google.cloud.designcenter.v1.AlternateDefault value) { + if (alternateDefaultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAlternateDefaultsIsMutable(); + alternateDefaults_.set(index, value); + onChanged(); + } else { + alternateDefaultsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. Alternate defaults for the input.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.AlternateDefault alternate_defaults = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAlternateDefaults( + int index, com.google.cloud.designcenter.v1.AlternateDefault.Builder builderForValue) { + if (alternateDefaultsBuilder_ == null) { + ensureAlternateDefaultsIsMutable(); + alternateDefaults_.set(index, builderForValue.build()); + onChanged(); + } else { + alternateDefaultsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. Alternate defaults for the input.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.AlternateDefault alternate_defaults = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAlternateDefaults(com.google.cloud.designcenter.v1.AlternateDefault value) { + if (alternateDefaultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAlternateDefaultsIsMutable(); + alternateDefaults_.add(value); + onChanged(); + } else { + alternateDefaultsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Output only. Alternate defaults for the input.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.AlternateDefault alternate_defaults = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAlternateDefaults( + int index, com.google.cloud.designcenter.v1.AlternateDefault value) { + if (alternateDefaultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAlternateDefaultsIsMutable(); + alternateDefaults_.add(index, value); + onChanged(); + } else { + alternateDefaultsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. Alternate defaults for the input.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.AlternateDefault alternate_defaults = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAlternateDefaults( + com.google.cloud.designcenter.v1.AlternateDefault.Builder builderForValue) { + if (alternateDefaultsBuilder_ == null) { + ensureAlternateDefaultsIsMutable(); + alternateDefaults_.add(builderForValue.build()); + onChanged(); + } else { + alternateDefaultsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. Alternate defaults for the input.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.AlternateDefault alternate_defaults = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAlternateDefaults( + int index, com.google.cloud.designcenter.v1.AlternateDefault.Builder builderForValue) { + if (alternateDefaultsBuilder_ == null) { + ensureAlternateDefaultsIsMutable(); + alternateDefaults_.add(index, builderForValue.build()); + onChanged(); + } else { + alternateDefaultsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. Alternate defaults for the input.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.AlternateDefault alternate_defaults = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllAlternateDefaults( + java.lang.Iterable values) { + if (alternateDefaultsBuilder_ == null) { + ensureAlternateDefaultsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, alternateDefaults_); + onChanged(); + } else { + alternateDefaultsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Output only. Alternate defaults for the input.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.AlternateDefault alternate_defaults = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearAlternateDefaults() { + if (alternateDefaultsBuilder_ == null) { + alternateDefaults_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + alternateDefaultsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Output only. Alternate defaults for the input.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.AlternateDefault alternate_defaults = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeAlternateDefaults(int index) { + if (alternateDefaultsBuilder_ == null) { + ensureAlternateDefaultsIsMutable(); + alternateDefaults_.remove(index); + onChanged(); + } else { + alternateDefaultsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Output only. Alternate defaults for the input.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.AlternateDefault alternate_defaults = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.AlternateDefault.Builder getAlternateDefaultsBuilder( + int index) { + return internalGetAlternateDefaultsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Output only. Alternate defaults for the input.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.AlternateDefault alternate_defaults = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.AlternateDefaultOrBuilder getAlternateDefaultsOrBuilder( + int index) { + if (alternateDefaultsBuilder_ == null) { + return alternateDefaults_.get(index); + } else { + return alternateDefaultsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Output only. Alternate defaults for the input.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.AlternateDefault alternate_defaults = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getAlternateDefaultsOrBuilderList() { + if (alternateDefaultsBuilder_ != null) { + return alternateDefaultsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(alternateDefaults_); + } + } + + /** + * + * + *
+     * Output only. Alternate defaults for the input.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.AlternateDefault alternate_defaults = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.AlternateDefault.Builder addAlternateDefaultsBuilder() { + return internalGetAlternateDefaultsFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.AlternateDefault.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. Alternate defaults for the input.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.AlternateDefault alternate_defaults = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.AlternateDefault.Builder addAlternateDefaultsBuilder( + int index) { + return internalGetAlternateDefaultsFieldBuilder() + .addBuilder( + index, com.google.cloud.designcenter.v1.AlternateDefault.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. Alternate defaults for the input.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.AlternateDefault alternate_defaults = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getAlternateDefaultsBuilderList() { + return internalGetAlternateDefaultsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.AlternateDefault, + com.google.cloud.designcenter.v1.AlternateDefault.Builder, + com.google.cloud.designcenter.v1.AlternateDefaultOrBuilder> + internalGetAlternateDefaultsFieldBuilder() { + if (alternateDefaultsBuilder_ == null) { + alternateDefaultsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.AlternateDefault, + com.google.cloud.designcenter.v1.AlternateDefault.Builder, + com.google.cloud.designcenter.v1.AlternateDefaultOrBuilder>( + alternateDefaults_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + alternateDefaults_ = null; + } + return alternateDefaultsBuilder_; + } + + private java.lang.Object regexValidation_ = ""; + + /** + * + * + *
+     * Output only. Regex based validation rules for the variable.
+     * 
+ * + * string regex_validation = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The regexValidation. + */ + public java.lang.String getRegexValidation() { + java.lang.Object ref = regexValidation_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + regexValidation_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Regex based validation rules for the variable.
+     * 
+ * + * string regex_validation = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for regexValidation. + */ + public com.google.protobuf.ByteString getRegexValidationBytes() { + java.lang.Object ref = regexValidation_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + regexValidation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Regex based validation rules for the variable.
+     * 
+ * + * string regex_validation = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The regexValidation to set. + * @return This builder for chaining. + */ + public Builder setRegexValidation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + regexValidation_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Regex based validation rules for the variable.
+     * 
+ * + * string regex_validation = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearRegexValidation() { + regexValidation_ = getDefaultInstance().getRegexValidation(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Regex based validation rules for the variable.
+     * 
+ * + * string regex_validation = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for regexValidation to set. + * @return This builder for chaining. + */ + public Builder setRegexValidationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + regexValidation_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private float min_; + + /** + * + * + *
+     * Output only. Minimum value for numeric types.
+     * 
+ * + * float min = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The min. + */ + @java.lang.Override + public float getMin() { + return min_; + } + + /** + * + * + *
+     * Output only. Minimum value for numeric types.
+     * 
+ * + * float min = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The min to set. + * @return This builder for chaining. + */ + public Builder setMin(float value) { + + min_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Minimum value for numeric types.
+     * 
+ * + * float min = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearMin() { + bitField0_ = (bitField0_ & ~0x00000010); + min_ = 0F; + onChanged(); + return this; + } + + private float max_; + + /** + * + * + *
+     * Output only. Maximum value for numeric types.
+     * 
+ * + * float max = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The max. + */ + @java.lang.Override + public float getMax() { + return max_; + } + + /** + * + * + *
+     * Output only. Maximum value for numeric types.
+     * 
+ * + * float max = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The max to set. + * @return This builder for chaining. + */ + public Builder setMax(float value) { + + max_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Maximum value for numeric types.
+     * 
+ * + * float max = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearMax() { + bitField0_ = (bitField0_ & ~0x00000020); + max_ = 0F; + onChanged(); + return this; + } + + private java.lang.Object validation_ = ""; + + /** + * + * + *
+     * Output only. Text describing the validation rules for the property.
+     * Typically shown after an invalid input. Optional. UTF-8 text. No markup. At
+     * most 128 characters.
+     * 
+ * + * string validation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The validation. + */ + public java.lang.String getValidation() { + java.lang.Object ref = validation_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + validation_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Text describing the validation rules for the property.
+     * Typically shown after an invalid input. Optional. UTF-8 text. No markup. At
+     * most 128 characters.
+     * 
+ * + * string validation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for validation. + */ + public com.google.protobuf.ByteString getValidationBytes() { + java.lang.Object ref = validation_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + validation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Text describing the validation rules for the property.
+     * Typically shown after an invalid input. Optional. UTF-8 text. No markup. At
+     * most 128 characters.
+     * 
+ * + * string validation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The validation to set. + * @return This builder for chaining. + */ + public Builder setValidation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + validation_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Text describing the validation rules for the property.
+     * Typically shown after an invalid input. Optional. UTF-8 text. No markup. At
+     * most 128 characters.
+     * 
+ * + * string validation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearValidation() { + validation_ = getDefaultInstance().getValidation(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Text describing the validation rules for the property.
+     * Typically shown after an invalid input. Optional. UTF-8 text. No markup. At
+     * most 128 characters.
+     * 
+ * + * string validation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for validation to set. + * @return This builder for chaining. + */ + public Builder setValidationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + validation_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private java.util.List enumValueLabels_ = + java.util.Collections.emptyList(); + + private void ensureEnumValueLabelsIsMutable() { + if (!((bitField0_ & 0x00000080) != 0)) { + enumValueLabels_ = + new java.util.ArrayList(enumValueLabels_); + bitField0_ |= 0x00000080; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ValueLabel, + com.google.cloud.designcenter.v1.ValueLabel.Builder, + com.google.cloud.designcenter.v1.ValueLabelOrBuilder> + enumValueLabelsBuilder_; + + /** + * + * + *
+     * Output only. Labels for enum values.
+     * Values must be UTF-8 text with no markup, and at most 64 characters.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ValueLabel enum_value_labels = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getEnumValueLabelsList() { + if (enumValueLabelsBuilder_ == null) { + return java.util.Collections.unmodifiableList(enumValueLabels_); + } else { + return enumValueLabelsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Output only. Labels for enum values.
+     * Values must be UTF-8 text with no markup, and at most 64 characters.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ValueLabel enum_value_labels = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getEnumValueLabelsCount() { + if (enumValueLabelsBuilder_ == null) { + return enumValueLabels_.size(); + } else { + return enumValueLabelsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Output only. Labels for enum values.
+     * Values must be UTF-8 text with no markup, and at most 64 characters.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ValueLabel enum_value_labels = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ValueLabel getEnumValueLabels(int index) { + if (enumValueLabelsBuilder_ == null) { + return enumValueLabels_.get(index); + } else { + return enumValueLabelsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Output only. Labels for enum values.
+     * Values must be UTF-8 text with no markup, and at most 64 characters.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ValueLabel enum_value_labels = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEnumValueLabels( + int index, com.google.cloud.designcenter.v1.ValueLabel value) { + if (enumValueLabelsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnumValueLabelsIsMutable(); + enumValueLabels_.set(index, value); + onChanged(); + } else { + enumValueLabelsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. Labels for enum values.
+     * Values must be UTF-8 text with no markup, and at most 64 characters.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ValueLabel enum_value_labels = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEnumValueLabels( + int index, com.google.cloud.designcenter.v1.ValueLabel.Builder builderForValue) { + if (enumValueLabelsBuilder_ == null) { + ensureEnumValueLabelsIsMutable(); + enumValueLabels_.set(index, builderForValue.build()); + onChanged(); + } else { + enumValueLabelsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. Labels for enum values.
+     * Values must be UTF-8 text with no markup, and at most 64 characters.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ValueLabel enum_value_labels = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addEnumValueLabels(com.google.cloud.designcenter.v1.ValueLabel value) { + if (enumValueLabelsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnumValueLabelsIsMutable(); + enumValueLabels_.add(value); + onChanged(); + } else { + enumValueLabelsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Output only. Labels for enum values.
+     * Values must be UTF-8 text with no markup, and at most 64 characters.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ValueLabel enum_value_labels = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addEnumValueLabels( + int index, com.google.cloud.designcenter.v1.ValueLabel value) { + if (enumValueLabelsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnumValueLabelsIsMutable(); + enumValueLabels_.add(index, value); + onChanged(); + } else { + enumValueLabelsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. Labels for enum values.
+     * Values must be UTF-8 text with no markup, and at most 64 characters.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ValueLabel enum_value_labels = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addEnumValueLabels( + com.google.cloud.designcenter.v1.ValueLabel.Builder builderForValue) { + if (enumValueLabelsBuilder_ == null) { + ensureEnumValueLabelsIsMutable(); + enumValueLabels_.add(builderForValue.build()); + onChanged(); + } else { + enumValueLabelsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. Labels for enum values.
+     * Values must be UTF-8 text with no markup, and at most 64 characters.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ValueLabel enum_value_labels = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addEnumValueLabels( + int index, com.google.cloud.designcenter.v1.ValueLabel.Builder builderForValue) { + if (enumValueLabelsBuilder_ == null) { + ensureEnumValueLabelsIsMutable(); + enumValueLabels_.add(index, builderForValue.build()); + onChanged(); + } else { + enumValueLabelsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. Labels for enum values.
+     * Values must be UTF-8 text with no markup, and at most 64 characters.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ValueLabel enum_value_labels = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllEnumValueLabels( + java.lang.Iterable values) { + if (enumValueLabelsBuilder_ == null) { + ensureEnumValueLabelsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, enumValueLabels_); + onChanged(); + } else { + enumValueLabelsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Output only. Labels for enum values.
+     * Values must be UTF-8 text with no markup, and at most 64 characters.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ValueLabel enum_value_labels = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearEnumValueLabels() { + if (enumValueLabelsBuilder_ == null) { + enumValueLabels_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + } else { + enumValueLabelsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Output only. Labels for enum values.
+     * Values must be UTF-8 text with no markup, and at most 64 characters.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ValueLabel enum_value_labels = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeEnumValueLabels(int index) { + if (enumValueLabelsBuilder_ == null) { + ensureEnumValueLabelsIsMutable(); + enumValueLabels_.remove(index); + onChanged(); + } else { + enumValueLabelsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Output only. Labels for enum values.
+     * Values must be UTF-8 text with no markup, and at most 64 characters.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ValueLabel enum_value_labels = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ValueLabel.Builder getEnumValueLabelsBuilder( + int index) { + return internalGetEnumValueLabelsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Output only. Labels for enum values.
+     * Values must be UTF-8 text with no markup, and at most 64 characters.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ValueLabel enum_value_labels = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ValueLabelOrBuilder getEnumValueLabelsOrBuilder( + int index) { + if (enumValueLabelsBuilder_ == null) { + return enumValueLabels_.get(index); + } else { + return enumValueLabelsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Output only. Labels for enum values.
+     * Values must be UTF-8 text with no markup, and at most 64 characters.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ValueLabel enum_value_labels = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getEnumValueLabelsOrBuilderList() { + if (enumValueLabelsBuilder_ != null) { + return enumValueLabelsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(enumValueLabels_); + } + } + + /** + * + * + *
+     * Output only. Labels for enum values.
+     * Values must be UTF-8 text with no markup, and at most 64 characters.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ValueLabel enum_value_labels = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ValueLabel.Builder addEnumValueLabelsBuilder() { + return internalGetEnumValueLabelsFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.ValueLabel.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. Labels for enum values.
+     * Values must be UTF-8 text with no markup, and at most 64 characters.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ValueLabel enum_value_labels = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.ValueLabel.Builder addEnumValueLabelsBuilder( + int index) { + return internalGetEnumValueLabelsFieldBuilder() + .addBuilder(index, com.google.cloud.designcenter.v1.ValueLabel.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. Labels for enum values.
+     * Values must be UTF-8 text with no markup, and at most 64 characters.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.ValueLabel enum_value_labels = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getEnumValueLabelsBuilderList() { + return internalGetEnumValueLabelsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ValueLabel, + com.google.cloud.designcenter.v1.ValueLabel.Builder, + com.google.cloud.designcenter.v1.ValueLabelOrBuilder> + internalGetEnumValueLabelsFieldBuilder() { + if (enumValueLabelsBuilder_ == null) { + enumValueLabelsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.ValueLabel, + com.google.cloud.designcenter.v1.ValueLabel.Builder, + com.google.cloud.designcenter.v1.ValueLabelOrBuilder>( + enumValueLabels_, + ((bitField0_ & 0x00000080) != 0), + getParentForChildren(), + isClean()); + enumValueLabels_ = null; + } + return enumValueLabelsBuilder_; + } + + private int level_; + + /** + * + * + *
+     * Output only. Indicates the "advanced" level of the input property. Level 0
+     * (default) will always be shown. Level 1 corresponds to one expansion (user
+     * clicks "show advanced options" or "more options"). Higher levels correspond
+     * to further expansions, or they may be collapsed to level 1 by the UI
+     * implementation.
+     * Optional.
+     * 
+ * + * int32 level = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The level. + */ + @java.lang.Override + public int getLevel() { + return level_; + } + + /** + * + * + *
+     * Output only. Indicates the "advanced" level of the input property. Level 0
+     * (default) will always be shown. Level 1 corresponds to one expansion (user
+     * clicks "show advanced options" or "more options"). Higher levels correspond
+     * to further expansions, or they may be collapsed to level 1 by the UI
+     * implementation.
+     * Optional.
+     * 
+ * + * int32 level = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The level to set. + * @return This builder for chaining. + */ + public Builder setLevel(int value) { + + level_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Indicates the "advanced" level of the input property. Level 0
+     * (default) will always be shown. Level 1 corresponds to one expansion (user
+     * clicks "show advanced options" or "more options"). Higher levels correspond
+     * to further expansions, or they may be collapsed to level 1 by the UI
+     * implementation.
+     * Optional.
+     * 
+ * + * int32 level = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearLevel() { + bitField0_ = (bitField0_ & ~0x00000100); + level_ = 0; + onChanged(); + return this; + } + + private java.lang.Object subtext_ = ""; + + /** + * + * + *
+     * Output only. Property subtext, displayed below the title.
+     * 
+ * + * string subtext = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The subtext. + */ + public java.lang.String getSubtext() { + java.lang.Object ref = subtext_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subtext_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Property subtext, displayed below the title.
+     * 
+ * + * string subtext = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for subtext. + */ + public com.google.protobuf.ByteString getSubtextBytes() { + java.lang.Object ref = subtext_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + subtext_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Property subtext, displayed below the title.
+     * 
+ * + * string subtext = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The subtext to set. + * @return This builder for chaining. + */ + public Builder setSubtext(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + subtext_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Property subtext, displayed below the title.
+     * 
+ * + * string subtext = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSubtext() { + subtext_ = getDefaultInstance().getSubtext(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Property subtext, displayed below the title.
+     * 
+ * + * string subtext = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for subtext to set. + * @return This builder for chaining. + */ + public Builder setSubtextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + subtext_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + private java.util.List + toggleUsingVariables_ = java.util.Collections.emptyList(); + + private void ensureToggleUsingVariablesIsMutable() { + if (!((bitField0_ & 0x00000400) != 0)) { + toggleUsingVariables_ = + new java.util.ArrayList( + toggleUsingVariables_); + bitField0_ |= 0x00000400; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.DisplayVariableToggle, + com.google.cloud.designcenter.v1.DisplayVariableToggle.Builder, + com.google.cloud.designcenter.v1.DisplayVariableToggleOrBuilder> + toggleUsingVariablesBuilder_; + + /** + * + * + *
+     * Output only. Variables used to toggle the display of another variable.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.DisplayVariableToggle toggle_using_variables = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getToggleUsingVariablesList() { + if (toggleUsingVariablesBuilder_ == null) { + return java.util.Collections.unmodifiableList(toggleUsingVariables_); + } else { + return toggleUsingVariablesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Output only. Variables used to toggle the display of another variable.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.DisplayVariableToggle toggle_using_variables = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getToggleUsingVariablesCount() { + if (toggleUsingVariablesBuilder_ == null) { + return toggleUsingVariables_.size(); + } else { + return toggleUsingVariablesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Output only. Variables used to toggle the display of another variable.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.DisplayVariableToggle toggle_using_variables = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.DisplayVariableToggle getToggleUsingVariables( + int index) { + if (toggleUsingVariablesBuilder_ == null) { + return toggleUsingVariables_.get(index); + } else { + return toggleUsingVariablesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Output only. Variables used to toggle the display of another variable.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.DisplayVariableToggle toggle_using_variables = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setToggleUsingVariables( + int index, com.google.cloud.designcenter.v1.DisplayVariableToggle value) { + if (toggleUsingVariablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToggleUsingVariablesIsMutable(); + toggleUsingVariables_.set(index, value); + onChanged(); + } else { + toggleUsingVariablesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. Variables used to toggle the display of another variable.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.DisplayVariableToggle toggle_using_variables = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setToggleUsingVariables( + int index, com.google.cloud.designcenter.v1.DisplayVariableToggle.Builder builderForValue) { + if (toggleUsingVariablesBuilder_ == null) { + ensureToggleUsingVariablesIsMutable(); + toggleUsingVariables_.set(index, builderForValue.build()); + onChanged(); + } else { + toggleUsingVariablesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. Variables used to toggle the display of another variable.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.DisplayVariableToggle toggle_using_variables = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addToggleUsingVariables( + com.google.cloud.designcenter.v1.DisplayVariableToggle value) { + if (toggleUsingVariablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToggleUsingVariablesIsMutable(); + toggleUsingVariables_.add(value); + onChanged(); + } else { + toggleUsingVariablesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Output only. Variables used to toggle the display of another variable.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.DisplayVariableToggle toggle_using_variables = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addToggleUsingVariables( + int index, com.google.cloud.designcenter.v1.DisplayVariableToggle value) { + if (toggleUsingVariablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToggleUsingVariablesIsMutable(); + toggleUsingVariables_.add(index, value); + onChanged(); + } else { + toggleUsingVariablesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. Variables used to toggle the display of another variable.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.DisplayVariableToggle toggle_using_variables = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addToggleUsingVariables( + com.google.cloud.designcenter.v1.DisplayVariableToggle.Builder builderForValue) { + if (toggleUsingVariablesBuilder_ == null) { + ensureToggleUsingVariablesIsMutable(); + toggleUsingVariables_.add(builderForValue.build()); + onChanged(); + } else { + toggleUsingVariablesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. Variables used to toggle the display of another variable.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.DisplayVariableToggle toggle_using_variables = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addToggleUsingVariables( + int index, com.google.cloud.designcenter.v1.DisplayVariableToggle.Builder builderForValue) { + if (toggleUsingVariablesBuilder_ == null) { + ensureToggleUsingVariablesIsMutable(); + toggleUsingVariables_.add(index, builderForValue.build()); + onChanged(); + } else { + toggleUsingVariablesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. Variables used to toggle the display of another variable.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.DisplayVariableToggle toggle_using_variables = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllToggleUsingVariables( + java.lang.Iterable + values) { + if (toggleUsingVariablesBuilder_ == null) { + ensureToggleUsingVariablesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, toggleUsingVariables_); + onChanged(); + } else { + toggleUsingVariablesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Output only. Variables used to toggle the display of another variable.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.DisplayVariableToggle toggle_using_variables = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearToggleUsingVariables() { + if (toggleUsingVariablesBuilder_ == null) { + toggleUsingVariables_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + } else { + toggleUsingVariablesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Output only. Variables used to toggle the display of another variable.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.DisplayVariableToggle toggle_using_variables = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeToggleUsingVariables(int index) { + if (toggleUsingVariablesBuilder_ == null) { + ensureToggleUsingVariablesIsMutable(); + toggleUsingVariables_.remove(index); + onChanged(); + } else { + toggleUsingVariablesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Output only. Variables used to toggle the display of another variable.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.DisplayVariableToggle toggle_using_variables = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.DisplayVariableToggle.Builder + getToggleUsingVariablesBuilder(int index) { + return internalGetToggleUsingVariablesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Output only. Variables used to toggle the display of another variable.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.DisplayVariableToggle toggle_using_variables = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.DisplayVariableToggleOrBuilder + getToggleUsingVariablesOrBuilder(int index) { + if (toggleUsingVariablesBuilder_ == null) { + return toggleUsingVariables_.get(index); + } else { + return toggleUsingVariablesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Output only. Variables used to toggle the display of another variable.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.DisplayVariableToggle toggle_using_variables = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getToggleUsingVariablesOrBuilderList() { + if (toggleUsingVariablesBuilder_ != null) { + return toggleUsingVariablesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(toggleUsingVariables_); + } + } + + /** + * + * + *
+     * Output only. Variables used to toggle the display of another variable.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.DisplayVariableToggle toggle_using_variables = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.DisplayVariableToggle.Builder + addToggleUsingVariablesBuilder() { + return internalGetToggleUsingVariablesFieldBuilder() + .addBuilder(com.google.cloud.designcenter.v1.DisplayVariableToggle.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. Variables used to toggle the display of another variable.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.DisplayVariableToggle toggle_using_variables = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.DisplayVariableToggle.Builder + addToggleUsingVariablesBuilder(int index) { + return internalGetToggleUsingVariablesFieldBuilder() + .addBuilder( + index, com.google.cloud.designcenter.v1.DisplayVariableToggle.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. Variables used to toggle the display of another variable.
+     * 
+ * + * + * repeated .google.cloud.designcenter.v1.DisplayVariableToggle toggle_using_variables = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getToggleUsingVariablesBuilderList() { + return internalGetToggleUsingVariablesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.DisplayVariableToggle, + com.google.cloud.designcenter.v1.DisplayVariableToggle.Builder, + com.google.cloud.designcenter.v1.DisplayVariableToggleOrBuilder> + internalGetToggleUsingVariablesFieldBuilder() { + if (toggleUsingVariablesBuilder_ == null) { + toggleUsingVariablesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.designcenter.v1.DisplayVariableToggle, + com.google.cloud.designcenter.v1.DisplayVariableToggle.Builder, + com.google.cloud.designcenter.v1.DisplayVariableToggleOrBuilder>( + toggleUsingVariables_, + ((bitField0_ & 0x00000400) != 0), + getParentForChildren(), + isClean()); + toggleUsingVariables_ = null; + } + return toggleUsingVariablesBuilder_; + } + + private static final class PropertiesConverter + implements com.google.protobuf.MapFieldBuilder.Converter< + java.lang.String, + com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariableOrBuilder, + com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable> { + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable build( + com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariableOrBuilder val) { + if (val instanceof com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable) { + return (com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable) val; + } + return ((com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable.Builder) val) + .build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable> + defaultEntry() { + return PropertiesDefaultEntryHolder.defaultEntry; + } + } + ; + + private static final PropertiesConverter propertiesConverter = new PropertiesConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariableOrBuilder, + com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable, + com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable.Builder> + properties_; + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariableOrBuilder, + com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable, + com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable.Builder> + internalGetProperties() { + if (properties_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(propertiesConverter); + } + return properties_; + } + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariableOrBuilder, + com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable, + com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable.Builder> + internalGetMutableProperties() { + if (properties_ == null) { + properties_ = new com.google.protobuf.MapFieldBuilder<>(propertiesConverter); + } + bitField0_ |= 0x00000800; + onChanged(); + return properties_; + } + + public int getPropertiesCount() { + return internalGetProperties().ensureBuilderMap().size(); + } + + /** + * + * + *
+     * Output only. A map that defines all fields of the input variable.
+     * 
+ * + * + * map<string, .google.cloud.designcenter.v1.TerraformUiInputDisplayVariable> properties = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public boolean containsProperties(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetProperties().ensureBuilderMap().containsKey(key); + } + + /** Use {@link #getPropertiesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map< + java.lang.String, com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable> + getProperties() { + return getPropertiesMap(); + } + + /** + * + * + *
+     * Output only. A map that defines all fields of the input variable.
+     * 
+ * + * + * map<string, .google.cloud.designcenter.v1.TerraformUiInputDisplayVariable> properties = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.Map< + java.lang.String, com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable> + getPropertiesMap() { + return internalGetProperties().getImmutableMap(); + } + + /** + * + * + *
+     * Output only. A map that defines all fields of the input variable.
+     * 
+ * + * + * map<string, .google.cloud.designcenter.v1.TerraformUiInputDisplayVariable> properties = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable + getPropertiesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariableOrBuilder> + map = internalGetMutableProperties().ensureBuilderMap(); + return map.containsKey(key) ? propertiesConverter.build(map.get(key)) : defaultValue; + } + + /** + * + * + *
+     * Output only. A map that defines all fields of the input variable.
+     * 
+ * + * + * map<string, .google.cloud.designcenter.v1.TerraformUiInputDisplayVariable> properties = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable getPropertiesOrThrow( + java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariableOrBuilder> + map = internalGetMutableProperties().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return propertiesConverter.build(map.get(key)); + } + + public Builder clearProperties() { + bitField0_ = (bitField0_ & ~0x00000800); + internalGetMutableProperties().clear(); + return this; + } + + /** + * + * + *
+     * Output only. A map that defines all fields of the input variable.
+     * 
+ * + * + * map<string, .google.cloud.designcenter.v1.TerraformUiInputDisplayVariable> properties = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeProperties(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableProperties().ensureBuilderMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map< + java.lang.String, com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable> + getMutableProperties() { + bitField0_ |= 0x00000800; + return internalGetMutableProperties().ensureMessageMap(); + } + + /** + * + * + *
+     * Output only. A map that defines all fields of the input variable.
+     * 
+ * + * + * map<string, .google.cloud.designcenter.v1.TerraformUiInputDisplayVariable> properties = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder putProperties( + java.lang.String key, + com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableProperties().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00000800; + return this; + } + + /** + * + * + *
+     * Output only. A map that defines all fields of the input variable.
+     * 
+ * + * + * map<string, .google.cloud.designcenter.v1.TerraformUiInputDisplayVariable> properties = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder putAllProperties( + java.util.Map< + java.lang.String, com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable> + values) { + for (java.util.Map.Entry< + java.lang.String, com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable> + e : values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableProperties().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00000800; + return this; + } + + /** + * + * + *
+     * Output only. A map that defines all fields of the input variable.
+     * 
+ * + * + * map<string, .google.cloud.designcenter.v1.TerraformUiInputDisplayVariable> properties = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable.Builder + putPropertiesBuilderIfAbsent(java.lang.String key) { + java.util.Map< + java.lang.String, + com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariableOrBuilder> + builderMap = internalGetMutableProperties().ensureBuilderMap(); + com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariableOrBuilder entry = + builderMap.get(key); + if (entry == null) { + entry = com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable.newBuilder(); + builderMap.put(key, entry); + } + if (entry instanceof com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable) { + entry = + ((com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable) entry).toBuilder(); + builderMap.put(key, entry); + } + return (com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable.Builder) entry; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.TerraformUiInputDisplayVariable) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.TerraformUiInputDisplayVariable) + private static final com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable(); + } + + public static com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TerraformUiInputDisplayVariable parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.TerraformUiInputDisplayVariable + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformUiInputDisplayVariableOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformUiInputDisplayVariableOrBuilder.java new file mode 100644 index 000000000000..b29681d094ae --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformUiInputDisplayVariableOrBuilder.java @@ -0,0 +1,488 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface TerraformUiInputDisplayVariableOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.TerraformUiInputDisplayVariable) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Display name of the input.
+   * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
+   * Output only. Display name of the input.
+   * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Output only. Title of the input.
+   * 
+ * + * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The title. + */ + java.lang.String getTitle(); + + /** + * + * + *
+   * Output only. Title of the input.
+   * 
+ * + * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for title. + */ + com.google.protobuf.ByteString getTitleBytes(); + + /** + * + * + *
+   * Output only. Alternate defaults for the input.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.AlternateDefault alternate_defaults = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getAlternateDefaultsList(); + + /** + * + * + *
+   * Output only. Alternate defaults for the input.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.AlternateDefault alternate_defaults = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.AlternateDefault getAlternateDefaults(int index); + + /** + * + * + *
+   * Output only. Alternate defaults for the input.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.AlternateDefault alternate_defaults = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getAlternateDefaultsCount(); + + /** + * + * + *
+   * Output only. Alternate defaults for the input.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.AlternateDefault alternate_defaults = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getAlternateDefaultsOrBuilderList(); + + /** + * + * + *
+   * Output only. Alternate defaults for the input.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.AlternateDefault alternate_defaults = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.AlternateDefaultOrBuilder getAlternateDefaultsOrBuilder( + int index); + + /** + * + * + *
+   * Output only. Regex based validation rules for the variable.
+   * 
+ * + * string regex_validation = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The regexValidation. + */ + java.lang.String getRegexValidation(); + + /** + * + * + *
+   * Output only. Regex based validation rules for the variable.
+   * 
+ * + * string regex_validation = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for regexValidation. + */ + com.google.protobuf.ByteString getRegexValidationBytes(); + + /** + * + * + *
+   * Output only. Minimum value for numeric types.
+   * 
+ * + * float min = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The min. + */ + float getMin(); + + /** + * + * + *
+   * Output only. Maximum value for numeric types.
+   * 
+ * + * float max = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The max. + */ + float getMax(); + + /** + * + * + *
+   * Output only. Text describing the validation rules for the property.
+   * Typically shown after an invalid input. Optional. UTF-8 text. No markup. At
+   * most 128 characters.
+   * 
+ * + * string validation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The validation. + */ + java.lang.String getValidation(); + + /** + * + * + *
+   * Output only. Text describing the validation rules for the property.
+   * Typically shown after an invalid input. Optional. UTF-8 text. No markup. At
+   * most 128 characters.
+   * 
+ * + * string validation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for validation. + */ + com.google.protobuf.ByteString getValidationBytes(); + + /** + * + * + *
+   * Output only. Labels for enum values.
+   * Values must be UTF-8 text with no markup, and at most 64 characters.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ValueLabel enum_value_labels = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getEnumValueLabelsList(); + + /** + * + * + *
+   * Output only. Labels for enum values.
+   * Values must be UTF-8 text with no markup, and at most 64 characters.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ValueLabel enum_value_labels = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.ValueLabel getEnumValueLabels(int index); + + /** + * + * + *
+   * Output only. Labels for enum values.
+   * Values must be UTF-8 text with no markup, and at most 64 characters.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ValueLabel enum_value_labels = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getEnumValueLabelsCount(); + + /** + * + * + *
+   * Output only. Labels for enum values.
+   * Values must be UTF-8 text with no markup, and at most 64 characters.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ValueLabel enum_value_labels = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getEnumValueLabelsOrBuilderList(); + + /** + * + * + *
+   * Output only. Labels for enum values.
+   * Values must be UTF-8 text with no markup, and at most 64 characters.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.ValueLabel enum_value_labels = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.ValueLabelOrBuilder getEnumValueLabelsOrBuilder(int index); + + /** + * + * + *
+   * Output only. Indicates the "advanced" level of the input property. Level 0
+   * (default) will always be shown. Level 1 corresponds to one expansion (user
+   * clicks "show advanced options" or "more options"). Higher levels correspond
+   * to further expansions, or they may be collapsed to level 1 by the UI
+   * implementation.
+   * Optional.
+   * 
+ * + * int32 level = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The level. + */ + int getLevel(); + + /** + * + * + *
+   * Output only. Property subtext, displayed below the title.
+   * 
+ * + * string subtext = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The subtext. + */ + java.lang.String getSubtext(); + + /** + * + * + *
+   * Output only. Property subtext, displayed below the title.
+   * 
+ * + * string subtext = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for subtext. + */ + com.google.protobuf.ByteString getSubtextBytes(); + + /** + * + * + *
+   * Output only. Variables used to toggle the display of another variable.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.DisplayVariableToggle toggle_using_variables = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getToggleUsingVariablesList(); + + /** + * + * + *
+   * Output only. Variables used to toggle the display of another variable.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.DisplayVariableToggle toggle_using_variables = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.DisplayVariableToggle getToggleUsingVariables(int index); + + /** + * + * + *
+   * Output only. Variables used to toggle the display of another variable.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.DisplayVariableToggle toggle_using_variables = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getToggleUsingVariablesCount(); + + /** + * + * + *
+   * Output only. Variables used to toggle the display of another variable.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.DisplayVariableToggle toggle_using_variables = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getToggleUsingVariablesOrBuilderList(); + + /** + * + * + *
+   * Output only. Variables used to toggle the display of another variable.
+   * 
+ * + * + * repeated .google.cloud.designcenter.v1.DisplayVariableToggle toggle_using_variables = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.DisplayVariableToggleOrBuilder getToggleUsingVariablesOrBuilder( + int index); + + /** + * + * + *
+   * Output only. A map that defines all fields of the input variable.
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.TerraformUiInputDisplayVariable> properties = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getPropertiesCount(); + + /** + * + * + *
+   * Output only. A map that defines all fields of the input variable.
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.TerraformUiInputDisplayVariable> properties = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + boolean containsProperties(java.lang.String key); + + /** Use {@link #getPropertiesMap()} instead. */ + @java.lang.Deprecated + java.util.Map + getProperties(); + + /** + * + * + *
+   * Output only. A map that defines all fields of the input variable.
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.TerraformUiInputDisplayVariable> properties = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.Map + getPropertiesMap(); + + /** + * + * + *
+   * Output only. A map that defines all fields of the input variable.
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.TerraformUiInputDisplayVariable> properties = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + /* nullable */ + com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable getPropertiesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable defaultValue); + + /** + * + * + *
+   * Output only. A map that defines all fields of the input variable.
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.TerraformUiInputDisplayVariable> properties = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable getPropertiesOrThrow( + java.lang.String key); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformUiInputOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformUiInputOrBuilder.java new file mode 100644 index 000000000000..9d054a8a2ad9 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformUiInputOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface TerraformUiInputOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.TerraformUiInput) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Terraform UI inputs.
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.TerraformUiInputDisplayVariable> terraform_ui_inputs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getTerraformUiInputsCount(); + + /** + * + * + *
+   * Output only. Terraform UI inputs.
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.TerraformUiInputDisplayVariable> terraform_ui_inputs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + boolean containsTerraformUiInputs(java.lang.String key); + + /** Use {@link #getTerraformUiInputsMap()} instead. */ + @java.lang.Deprecated + java.util.Map + getTerraformUiInputs(); + + /** + * + * + *
+   * Output only. Terraform UI inputs.
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.TerraformUiInputDisplayVariable> terraform_ui_inputs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.Map + getTerraformUiInputsMap(); + + /** + * + * + *
+   * Output only. Terraform UI inputs.
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.TerraformUiInputDisplayVariable> terraform_ui_inputs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + /* nullable */ + com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable getTerraformUiInputsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable defaultValue); + + /** + * + * + *
+   * Output only. Terraform UI inputs.
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.TerraformUiInputDisplayVariable> terraform_ui_inputs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.TerraformUiInputDisplayVariable getTerraformUiInputsOrThrow( + java.lang.String key); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformUiOutput.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformUiOutput.java new file mode 100644 index 000000000000..29fa7519f4a6 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformUiOutput.java @@ -0,0 +1,1082 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Terraform blueprint UI output.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.TerraformUiOutput} + */ +@com.google.protobuf.Generated +public final class TerraformUiOutput extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.TerraformUiOutput) + TerraformUiOutputOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "TerraformUiOutput"); + } + + // Use TerraformUiOutput.newBuilder() to construct. + private TerraformUiOutput(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private TerraformUiOutput() { + outputMessage_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TerraformUiOutput_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 2: + return internalGetTerraformUiOutputs(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TerraformUiOutput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.TerraformUiOutput.class, + com.google.cloud.designcenter.v1.TerraformUiOutput.Builder.class); + } + + public static final int OUTPUT_MESSAGE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object outputMessage_ = ""; + + /** + * + * + *
+   * Output only. Message to be displayed in the UI.
+   * 
+ * + * string output_message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The outputMessage. + */ + @java.lang.Override + public java.lang.String getOutputMessage() { + java.lang.Object ref = outputMessage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outputMessage_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. Message to be displayed in the UI.
+   * 
+ * + * string output_message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for outputMessage. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOutputMessageBytes() { + java.lang.Object ref = outputMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + outputMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TERRAFORM_UI_OUTPUTS_FIELD_NUMBER = 2; + + private static final class TerraformUiOutputsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.designcenter.v1.TerraformUiOutputDisplay> + defaultEntry = + com.google.protobuf.MapEntry + . + newDefaultInstance( + com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TerraformUiOutput_TerraformUiOutputsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.designcenter.v1.TerraformUiOutputDisplay + .getDefaultInstance()); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.designcenter.v1.TerraformUiOutputDisplay> + terraformUiOutputs_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.designcenter.v1.TerraformUiOutputDisplay> + internalGetTerraformUiOutputs() { + if (terraformUiOutputs_ == null) { + return com.google.protobuf.MapField.emptyMapField( + TerraformUiOutputsDefaultEntryHolder.defaultEntry); + } + return terraformUiOutputs_; + } + + public int getTerraformUiOutputsCount() { + return internalGetTerraformUiOutputs().getMap().size(); + } + + /** + * + * + *
+   * Output only. Visibility of the output.
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.TerraformUiOutputDisplay> terraform_ui_outputs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public boolean containsTerraformUiOutputs(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetTerraformUiOutputs().getMap().containsKey(key); + } + + /** Use {@link #getTerraformUiOutputsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getTerraformUiOutputs() { + return getTerraformUiOutputsMap(); + } + + /** + * + * + *
+   * Output only. Visibility of the output.
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.TerraformUiOutputDisplay> terraform_ui_outputs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.Map + getTerraformUiOutputsMap() { + return internalGetTerraformUiOutputs().getMap(); + } + + /** + * + * + *
+   * Output only. Visibility of the output.
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.TerraformUiOutputDisplay> terraform_ui_outputs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.designcenter.v1.TerraformUiOutputDisplay + getTerraformUiOutputsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.designcenter.v1.TerraformUiOutputDisplay defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetTerraformUiOutputs().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+   * Output only. Visibility of the output.
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.TerraformUiOutputDisplay> terraform_ui_outputs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformUiOutputDisplay getTerraformUiOutputsOrThrow( + java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetTerraformUiOutputs().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(outputMessage_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, outputMessage_); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, + internalGetTerraformUiOutputs(), + TerraformUiOutputsDefaultEntryHolder.defaultEntry, + 2); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(outputMessage_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, outputMessage_); + } + for (java.util.Map.Entry< + java.lang.String, com.google.cloud.designcenter.v1.TerraformUiOutputDisplay> + entry : internalGetTerraformUiOutputs().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.designcenter.v1.TerraformUiOutputDisplay> + terraformUiOutputs__ = + TerraformUiOutputsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, terraformUiOutputs__); + } + 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.designcenter.v1.TerraformUiOutput)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.TerraformUiOutput other = + (com.google.cloud.designcenter.v1.TerraformUiOutput) obj; + + if (!getOutputMessage().equals(other.getOutputMessage())) return false; + if (!internalGetTerraformUiOutputs().equals(other.internalGetTerraformUiOutputs())) + 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) + OUTPUT_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getOutputMessage().hashCode(); + if (!internalGetTerraformUiOutputs().getMap().isEmpty()) { + hash = (37 * hash) + TERRAFORM_UI_OUTPUTS_FIELD_NUMBER; + hash = (53 * hash) + internalGetTerraformUiOutputs().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.TerraformUiOutput parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.TerraformUiOutput 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.designcenter.v1.TerraformUiOutput parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.TerraformUiOutput parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TerraformUiOutput parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.TerraformUiOutput parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TerraformUiOutput parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.TerraformUiOutput parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TerraformUiOutput parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.TerraformUiOutput parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TerraformUiOutput parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.TerraformUiOutput parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.TerraformUiOutput 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Terraform blueprint UI output.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.TerraformUiOutput} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.TerraformUiOutput) + com.google.cloud.designcenter.v1.TerraformUiOutputOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TerraformUiOutput_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 2: + return internalGetTerraformUiOutputs(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 2: + return internalGetMutableTerraformUiOutputs(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TerraformUiOutput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.TerraformUiOutput.class, + com.google.cloud.designcenter.v1.TerraformUiOutput.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.TerraformUiOutput.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + outputMessage_ = ""; + internalGetMutableTerraformUiOutputs().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TerraformUiOutput_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformUiOutput getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.TerraformUiOutput.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformUiOutput build() { + com.google.cloud.designcenter.v1.TerraformUiOutput result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformUiOutput buildPartial() { + com.google.cloud.designcenter.v1.TerraformUiOutput result = + new com.google.cloud.designcenter.v1.TerraformUiOutput(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.TerraformUiOutput result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.outputMessage_ = outputMessage_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.terraformUiOutputs_ = + internalGetTerraformUiOutputs() + .build(TerraformUiOutputsDefaultEntryHolder.defaultEntry); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.TerraformUiOutput) { + return mergeFrom((com.google.cloud.designcenter.v1.TerraformUiOutput) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.TerraformUiOutput other) { + if (other == com.google.cloud.designcenter.v1.TerraformUiOutput.getDefaultInstance()) + return this; + if (!other.getOutputMessage().isEmpty()) { + outputMessage_ = other.outputMessage_; + bitField0_ |= 0x00000001; + onChanged(); + } + internalGetMutableTerraformUiOutputs().mergeFrom(other.internalGetTerraformUiOutputs()); + bitField0_ |= 0x00000002; + 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: + { + outputMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.designcenter.v1.TerraformUiOutputDisplay> + terraformUiOutputs__ = + input.readMessage( + TerraformUiOutputsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableTerraformUiOutputs() + .ensureBuilderMap() + .put(terraformUiOutputs__.getKey(), terraformUiOutputs__.getValue()); + 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 outputMessage_ = ""; + + /** + * + * + *
+     * Output only. Message to be displayed in the UI.
+     * 
+ * + * string output_message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The outputMessage. + */ + public java.lang.String getOutputMessage() { + java.lang.Object ref = outputMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outputMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Message to be displayed in the UI.
+     * 
+ * + * string output_message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for outputMessage. + */ + public com.google.protobuf.ByteString getOutputMessageBytes() { + java.lang.Object ref = outputMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + outputMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Message to be displayed in the UI.
+     * 
+ * + * string output_message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The outputMessage to set. + * @return This builder for chaining. + */ + public Builder setOutputMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + outputMessage_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Message to be displayed in the UI.
+     * 
+ * + * string output_message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearOutputMessage() { + outputMessage_ = getDefaultInstance().getOutputMessage(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Message to be displayed in the UI.
+     * 
+ * + * string output_message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for outputMessage to set. + * @return This builder for chaining. + */ + public Builder setOutputMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputMessage_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private static final class TerraformUiOutputsConverter + implements com.google.protobuf.MapFieldBuilder.Converter< + java.lang.String, + com.google.cloud.designcenter.v1.TerraformUiOutputDisplayOrBuilder, + com.google.cloud.designcenter.v1.TerraformUiOutputDisplay> { + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformUiOutputDisplay build( + com.google.cloud.designcenter.v1.TerraformUiOutputDisplayOrBuilder val) { + if (val instanceof com.google.cloud.designcenter.v1.TerraformUiOutputDisplay) { + return (com.google.cloud.designcenter.v1.TerraformUiOutputDisplay) val; + } + return ((com.google.cloud.designcenter.v1.TerraformUiOutputDisplay.Builder) val).build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.designcenter.v1.TerraformUiOutputDisplay> + defaultEntry() { + return TerraformUiOutputsDefaultEntryHolder.defaultEntry; + } + } + ; + + private static final TerraformUiOutputsConverter terraformUiOutputsConverter = + new TerraformUiOutputsConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.designcenter.v1.TerraformUiOutputDisplayOrBuilder, + com.google.cloud.designcenter.v1.TerraformUiOutputDisplay, + com.google.cloud.designcenter.v1.TerraformUiOutputDisplay.Builder> + terraformUiOutputs_; + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.designcenter.v1.TerraformUiOutputDisplayOrBuilder, + com.google.cloud.designcenter.v1.TerraformUiOutputDisplay, + com.google.cloud.designcenter.v1.TerraformUiOutputDisplay.Builder> + internalGetTerraformUiOutputs() { + if (terraformUiOutputs_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(terraformUiOutputsConverter); + } + return terraformUiOutputs_; + } + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.designcenter.v1.TerraformUiOutputDisplayOrBuilder, + com.google.cloud.designcenter.v1.TerraformUiOutputDisplay, + com.google.cloud.designcenter.v1.TerraformUiOutputDisplay.Builder> + internalGetMutableTerraformUiOutputs() { + if (terraformUiOutputs_ == null) { + terraformUiOutputs_ = + new com.google.protobuf.MapFieldBuilder<>(terraformUiOutputsConverter); + } + bitField0_ |= 0x00000002; + onChanged(); + return terraformUiOutputs_; + } + + public int getTerraformUiOutputsCount() { + return internalGetTerraformUiOutputs().ensureBuilderMap().size(); + } + + /** + * + * + *
+     * Output only. Visibility of the output.
+     * 
+ * + * + * map<string, .google.cloud.designcenter.v1.TerraformUiOutputDisplay> terraform_ui_outputs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public boolean containsTerraformUiOutputs(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetTerraformUiOutputs().ensureBuilderMap().containsKey(key); + } + + /** Use {@link #getTerraformUiOutputsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map< + java.lang.String, com.google.cloud.designcenter.v1.TerraformUiOutputDisplay> + getTerraformUiOutputs() { + return getTerraformUiOutputsMap(); + } + + /** + * + * + *
+     * Output only. Visibility of the output.
+     * 
+ * + * + * map<string, .google.cloud.designcenter.v1.TerraformUiOutputDisplay> terraform_ui_outputs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.Map< + java.lang.String, com.google.cloud.designcenter.v1.TerraformUiOutputDisplay> + getTerraformUiOutputsMap() { + return internalGetTerraformUiOutputs().getImmutableMap(); + } + + /** + * + * + *
+     * Output only. Visibility of the output.
+     * 
+ * + * + * map<string, .google.cloud.designcenter.v1.TerraformUiOutputDisplay> terraform_ui_outputs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.designcenter.v1.TerraformUiOutputDisplay + getTerraformUiOutputsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.designcenter.v1.TerraformUiOutputDisplay defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, com.google.cloud.designcenter.v1.TerraformUiOutputDisplayOrBuilder> + map = internalGetMutableTerraformUiOutputs().ensureBuilderMap(); + return map.containsKey(key) ? terraformUiOutputsConverter.build(map.get(key)) : defaultValue; + } + + /** + * + * + *
+     * Output only. Visibility of the output.
+     * 
+ * + * + * map<string, .google.cloud.designcenter.v1.TerraformUiOutputDisplay> terraform_ui_outputs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformUiOutputDisplay getTerraformUiOutputsOrThrow( + java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, com.google.cloud.designcenter.v1.TerraformUiOutputDisplayOrBuilder> + map = internalGetMutableTerraformUiOutputs().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return terraformUiOutputsConverter.build(map.get(key)); + } + + public Builder clearTerraformUiOutputs() { + bitField0_ = (bitField0_ & ~0x00000002); + internalGetMutableTerraformUiOutputs().clear(); + return this; + } + + /** + * + * + *
+     * Output only. Visibility of the output.
+     * 
+ * + * + * map<string, .google.cloud.designcenter.v1.TerraformUiOutputDisplay> terraform_ui_outputs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeTerraformUiOutputs(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableTerraformUiOutputs().ensureBuilderMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map< + java.lang.String, com.google.cloud.designcenter.v1.TerraformUiOutputDisplay> + getMutableTerraformUiOutputs() { + bitField0_ |= 0x00000002; + return internalGetMutableTerraformUiOutputs().ensureMessageMap(); + } + + /** + * + * + *
+     * Output only. Visibility of the output.
+     * 
+ * + * + * map<string, .google.cloud.designcenter.v1.TerraformUiOutputDisplay> terraform_ui_outputs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder putTerraformUiOutputs( + java.lang.String key, com.google.cloud.designcenter.v1.TerraformUiOutputDisplay value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableTerraformUiOutputs().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00000002; + return this; + } + + /** + * + * + *
+     * Output only. Visibility of the output.
+     * 
+ * + * + * map<string, .google.cloud.designcenter.v1.TerraformUiOutputDisplay> terraform_ui_outputs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder putAllTerraformUiOutputs( + java.util.Map + values) { + for (java.util.Map.Entry< + java.lang.String, com.google.cloud.designcenter.v1.TerraformUiOutputDisplay> + e : values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableTerraformUiOutputs().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00000002; + return this; + } + + /** + * + * + *
+     * Output only. Visibility of the output.
+     * 
+ * + * + * map<string, .google.cloud.designcenter.v1.TerraformUiOutputDisplay> terraform_ui_outputs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.TerraformUiOutputDisplay.Builder + putTerraformUiOutputsBuilderIfAbsent(java.lang.String key) { + java.util.Map< + java.lang.String, com.google.cloud.designcenter.v1.TerraformUiOutputDisplayOrBuilder> + builderMap = internalGetMutableTerraformUiOutputs().ensureBuilderMap(); + com.google.cloud.designcenter.v1.TerraformUiOutputDisplayOrBuilder entry = + builderMap.get(key); + if (entry == null) { + entry = com.google.cloud.designcenter.v1.TerraformUiOutputDisplay.newBuilder(); + builderMap.put(key, entry); + } + if (entry instanceof com.google.cloud.designcenter.v1.TerraformUiOutputDisplay) { + entry = ((com.google.cloud.designcenter.v1.TerraformUiOutputDisplay) entry).toBuilder(); + builderMap.put(key, entry); + } + return (com.google.cloud.designcenter.v1.TerraformUiOutputDisplay.Builder) entry; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.TerraformUiOutput) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.TerraformUiOutput) + private static final com.google.cloud.designcenter.v1.TerraformUiOutput DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.TerraformUiOutput(); + } + + public static com.google.cloud.designcenter.v1.TerraformUiOutput getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TerraformUiOutput parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.TerraformUiOutput getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformUiOutputDisplay.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformUiOutputDisplay.java new file mode 100644 index 000000000000..feaa9e1e8190 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformUiOutputDisplay.java @@ -0,0 +1,587 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Terraform blueprint UI output display.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.TerraformUiOutputDisplay} + */ +@com.google.protobuf.Generated +public final class TerraformUiOutputDisplay extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.TerraformUiOutputDisplay) + TerraformUiOutputDisplayOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "TerraformUiOutputDisplay"); + } + + // Use TerraformUiOutputDisplay.newBuilder() to construct. + private TerraformUiOutputDisplay(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private TerraformUiOutputDisplay() { + visibility_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TerraformUiOutputDisplay_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TerraformUiOutputDisplay_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.TerraformUiOutputDisplay.class, + com.google.cloud.designcenter.v1.TerraformUiOutputDisplay.Builder.class); + } + + public static final int VISIBILITY_FIELD_NUMBER = 1; + private int visibility_ = 0; + + /** + * + * + *
+   * Output only. Visibility of the output.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DisplayVariableVisibility visibility = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for visibility. + */ + @java.lang.Override + public int getVisibilityValue() { + return visibility_; + } + + /** + * + * + *
+   * Output only. Visibility of the output.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DisplayVariableVisibility visibility = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The visibility. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.DisplayVariableVisibility getVisibility() { + com.google.cloud.designcenter.v1.DisplayVariableVisibility result = + com.google.cloud.designcenter.v1.DisplayVariableVisibility.forNumber(visibility_); + return result == null + ? com.google.cloud.designcenter.v1.DisplayVariableVisibility.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 (visibility_ + != com.google.cloud.designcenter.v1.DisplayVariableVisibility + .DISPLAY_VARIABLE_VISIBILITY_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, visibility_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (visibility_ + != com.google.cloud.designcenter.v1.DisplayVariableVisibility + .DISPLAY_VARIABLE_VISIBILITY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, visibility_); + } + 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.designcenter.v1.TerraformUiOutputDisplay)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.TerraformUiOutputDisplay other = + (com.google.cloud.designcenter.v1.TerraformUiOutputDisplay) obj; + + if (visibility_ != other.visibility_) 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) + VISIBILITY_FIELD_NUMBER; + hash = (53 * hash) + visibility_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.TerraformUiOutputDisplay parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.TerraformUiOutputDisplay 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.designcenter.v1.TerraformUiOutputDisplay parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.TerraformUiOutputDisplay parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TerraformUiOutputDisplay parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.TerraformUiOutputDisplay parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TerraformUiOutputDisplay parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.TerraformUiOutputDisplay parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TerraformUiOutputDisplay parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.TerraformUiOutputDisplay parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TerraformUiOutputDisplay parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.TerraformUiOutputDisplay parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.TerraformUiOutputDisplay 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Terraform blueprint UI output display.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.TerraformUiOutputDisplay} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.TerraformUiOutputDisplay) + com.google.cloud.designcenter.v1.TerraformUiOutputDisplayOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TerraformUiOutputDisplay_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TerraformUiOutputDisplay_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.TerraformUiOutputDisplay.class, + com.google.cloud.designcenter.v1.TerraformUiOutputDisplay.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.TerraformUiOutputDisplay.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + visibility_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TerraformUiOutputDisplay_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformUiOutputDisplay getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.TerraformUiOutputDisplay.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformUiOutputDisplay build() { + com.google.cloud.designcenter.v1.TerraformUiOutputDisplay result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformUiOutputDisplay buildPartial() { + com.google.cloud.designcenter.v1.TerraformUiOutputDisplay result = + new com.google.cloud.designcenter.v1.TerraformUiOutputDisplay(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.TerraformUiOutputDisplay result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.visibility_ = visibility_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.TerraformUiOutputDisplay) { + return mergeFrom((com.google.cloud.designcenter.v1.TerraformUiOutputDisplay) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.TerraformUiOutputDisplay other) { + if (other == com.google.cloud.designcenter.v1.TerraformUiOutputDisplay.getDefaultInstance()) + return this; + if (other.visibility_ != 0) { + setVisibilityValue(other.getVisibilityValue()); + } + 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: + { + visibility_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + 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 visibility_ = 0; + + /** + * + * + *
+     * Output only. Visibility of the output.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DisplayVariableVisibility visibility = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for visibility. + */ + @java.lang.Override + public int getVisibilityValue() { + return visibility_; + } + + /** + * + * + *
+     * Output only. Visibility of the output.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DisplayVariableVisibility visibility = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for visibility to set. + * @return This builder for chaining. + */ + public Builder setVisibilityValue(int value) { + visibility_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Visibility of the output.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DisplayVariableVisibility visibility = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The visibility. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.DisplayVariableVisibility getVisibility() { + com.google.cloud.designcenter.v1.DisplayVariableVisibility result = + com.google.cloud.designcenter.v1.DisplayVariableVisibility.forNumber(visibility_); + return result == null + ? com.google.cloud.designcenter.v1.DisplayVariableVisibility.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Output only. Visibility of the output.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DisplayVariableVisibility visibility = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The visibility to set. + * @return This builder for chaining. + */ + public Builder setVisibility(com.google.cloud.designcenter.v1.DisplayVariableVisibility value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + visibility_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Visibility of the output.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DisplayVariableVisibility visibility = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearVisibility() { + bitField0_ = (bitField0_ & ~0x00000001); + visibility_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.TerraformUiOutputDisplay) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.TerraformUiOutputDisplay) + private static final com.google.cloud.designcenter.v1.TerraformUiOutputDisplay DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.TerraformUiOutputDisplay(); + } + + public static com.google.cloud.designcenter.v1.TerraformUiOutputDisplay getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TerraformUiOutputDisplay parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.TerraformUiOutputDisplay getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformUiOutputDisplayOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformUiOutputDisplayOrBuilder.java new file mode 100644 index 000000000000..4a8e1e34b822 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformUiOutputDisplayOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface TerraformUiOutputDisplayOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.TerraformUiOutputDisplay) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Visibility of the output.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DisplayVariableVisibility visibility = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for visibility. + */ + int getVisibilityValue(); + + /** + * + * + *
+   * Output only. Visibility of the output.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DisplayVariableVisibility visibility = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The visibility. + */ + com.google.cloud.designcenter.v1.DisplayVariableVisibility getVisibility(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformUiOutputOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformUiOutputOrBuilder.java new file mode 100644 index 000000000000..6ae1ccbe8ae7 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformUiOutputOrBuilder.java @@ -0,0 +1,130 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface TerraformUiOutputOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.TerraformUiOutput) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Message to be displayed in the UI.
+   * 
+ * + * string output_message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The outputMessage. + */ + java.lang.String getOutputMessage(); + + /** + * + * + *
+   * Output only. Message to be displayed in the UI.
+   * 
+ * + * string output_message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for outputMessage. + */ + com.google.protobuf.ByteString getOutputMessageBytes(); + + /** + * + * + *
+   * Output only. Visibility of the output.
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.TerraformUiOutputDisplay> terraform_ui_outputs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getTerraformUiOutputsCount(); + + /** + * + * + *
+   * Output only. Visibility of the output.
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.TerraformUiOutputDisplay> terraform_ui_outputs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + boolean containsTerraformUiOutputs(java.lang.String key); + + /** Use {@link #getTerraformUiOutputsMap()} instead. */ + @java.lang.Deprecated + java.util.Map + getTerraformUiOutputs(); + + /** + * + * + *
+   * Output only. Visibility of the output.
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.TerraformUiOutputDisplay> terraform_ui_outputs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.Map + getTerraformUiOutputsMap(); + + /** + * + * + *
+   * Output only. Visibility of the output.
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.TerraformUiOutputDisplay> terraform_ui_outputs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + /* nullable */ + com.google.cloud.designcenter.v1.TerraformUiOutputDisplay getTerraformUiOutputsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.designcenter.v1.TerraformUiOutputDisplay defaultValue); + + /** + * + * + *
+   * Output only. Visibility of the output.
+   * 
+ * + * + * map<string, .google.cloud.designcenter.v1.TerraformUiOutputDisplay> terraform_ui_outputs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.TerraformUiOutputDisplay getTerraformUiOutputsOrThrow( + java.lang.String key); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformVariableValidation.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformVariableValidation.java new file mode 100644 index 000000000000..09d5b27a17a1 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformVariableValidation.java @@ -0,0 +1,797 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Represents a custom validation rule defined on a Terraform input variable.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.TerraformVariableValidation} + */ +@com.google.protobuf.Generated +public final class TerraformVariableValidation extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.TerraformVariableValidation) + TerraformVariableValidationOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "TerraformVariableValidation"); + } + + // Use TerraformVariableValidation.newBuilder() to construct. + private TerraformVariableValidation(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private TerraformVariableValidation() { + condition_ = ""; + errorMessage_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TerraformVariableValidation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TerraformVariableValidation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.TerraformVariableValidation.class, + com.google.cloud.designcenter.v1.TerraformVariableValidation.Builder.class); + } + + public static final int CONDITION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object condition_ = ""; + + /** + * + * + *
+   * Optional. The HCL expression for the validation condition (e.g.,
+   * "length(var.image_id) > 4").
+   * 
+ * + * string condition = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The condition. + */ + @java.lang.Override + public java.lang.String getCondition() { + java.lang.Object ref = condition_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + condition_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The HCL expression for the validation condition (e.g.,
+   * "length(var.image_id) > 4").
+   * 
+ * + * string condition = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for condition. + */ + @java.lang.Override + public com.google.protobuf.ByteString getConditionBytes() { + java.lang.Object ref = condition_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + condition_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ERROR_MESSAGE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object errorMessage_ = ""; + + /** + * + * + *
+   * Optional. The error message displayed when the condition is false.
+   * 
+ * + * string error_message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The errorMessage. + */ + @java.lang.Override + public java.lang.String getErrorMessage() { + java.lang.Object ref = errorMessage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + errorMessage_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The error message displayed when the condition is false.
+   * 
+ * + * string error_message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for errorMessage. + */ + @java.lang.Override + public com.google.protobuf.ByteString getErrorMessageBytes() { + java.lang.Object ref = errorMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + errorMessage_ = 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.GeneratedMessage.isStringEmpty(condition_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, condition_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(errorMessage_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, errorMessage_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(condition_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, condition_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(errorMessage_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, errorMessage_); + } + 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.designcenter.v1.TerraformVariableValidation)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.TerraformVariableValidation other = + (com.google.cloud.designcenter.v1.TerraformVariableValidation) obj; + + if (!getCondition().equals(other.getCondition())) return false; + if (!getErrorMessage().equals(other.getErrorMessage())) 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) + CONDITION_FIELD_NUMBER; + hash = (53 * hash) + getCondition().hashCode(); + hash = (37 * hash) + ERROR_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getErrorMessage().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.TerraformVariableValidation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.TerraformVariableValidation 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.designcenter.v1.TerraformVariableValidation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.TerraformVariableValidation parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TerraformVariableValidation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.TerraformVariableValidation parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TerraformVariableValidation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.TerraformVariableValidation parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TerraformVariableValidation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.TerraformVariableValidation parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.TerraformVariableValidation parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.TerraformVariableValidation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.TerraformVariableValidation 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Represents a custom validation rule defined on a Terraform input variable.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.TerraformVariableValidation} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.TerraformVariableValidation) + com.google.cloud.designcenter.v1.TerraformVariableValidationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TerraformVariableValidation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TerraformVariableValidation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.TerraformVariableValidation.class, + com.google.cloud.designcenter.v1.TerraformVariableValidation.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.TerraformVariableValidation.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + condition_ = ""; + errorMessage_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_TerraformVariableValidation_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformVariableValidation + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.TerraformVariableValidation.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformVariableValidation build() { + com.google.cloud.designcenter.v1.TerraformVariableValidation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.TerraformVariableValidation buildPartial() { + com.google.cloud.designcenter.v1.TerraformVariableValidation result = + new com.google.cloud.designcenter.v1.TerraformVariableValidation(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.TerraformVariableValidation result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.condition_ = condition_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.errorMessage_ = errorMessage_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.TerraformVariableValidation) { + return mergeFrom((com.google.cloud.designcenter.v1.TerraformVariableValidation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.TerraformVariableValidation other) { + if (other + == com.google.cloud.designcenter.v1.TerraformVariableValidation.getDefaultInstance()) + return this; + if (!other.getCondition().isEmpty()) { + condition_ = other.condition_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getErrorMessage().isEmpty()) { + errorMessage_ = other.errorMessage_; + 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: + { + condition_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + errorMessage_ = 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 condition_ = ""; + + /** + * + * + *
+     * Optional. The HCL expression for the validation condition (e.g.,
+     * "length(var.image_id) > 4").
+     * 
+ * + * string condition = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The condition. + */ + public java.lang.String getCondition() { + java.lang.Object ref = condition_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + condition_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The HCL expression for the validation condition (e.g.,
+     * "length(var.image_id) > 4").
+     * 
+ * + * string condition = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for condition. + */ + public com.google.protobuf.ByteString getConditionBytes() { + java.lang.Object ref = condition_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + condition_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The HCL expression for the validation condition (e.g.,
+     * "length(var.image_id) > 4").
+     * 
+ * + * string condition = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The condition to set. + * @return This builder for chaining. + */ + public Builder setCondition(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + condition_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The HCL expression for the validation condition (e.g.,
+     * "length(var.image_id) > 4").
+     * 
+ * + * string condition = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearCondition() { + condition_ = getDefaultInstance().getCondition(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The HCL expression for the validation condition (e.g.,
+     * "length(var.image_id) > 4").
+     * 
+ * + * string condition = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for condition to set. + * @return This builder for chaining. + */ + public Builder setConditionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + condition_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object errorMessage_ = ""; + + /** + * + * + *
+     * Optional. The error message displayed when the condition is false.
+     * 
+ * + * string error_message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The errorMessage. + */ + public java.lang.String getErrorMessage() { + java.lang.Object ref = errorMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + errorMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The error message displayed when the condition is false.
+     * 
+ * + * string error_message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for errorMessage. + */ + public com.google.protobuf.ByteString getErrorMessageBytes() { + java.lang.Object ref = errorMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + errorMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The error message displayed when the condition is false.
+     * 
+ * + * string error_message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The errorMessage to set. + * @return This builder for chaining. + */ + public Builder setErrorMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + errorMessage_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The error message displayed when the condition is false.
+     * 
+ * + * string error_message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearErrorMessage() { + errorMessage_ = getDefaultInstance().getErrorMessage(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The error message displayed when the condition is false.
+     * 
+ * + * string error_message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for errorMessage to set. + * @return This builder for chaining. + */ + public Builder setErrorMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + errorMessage_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.TerraformVariableValidation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.TerraformVariableValidation) + private static final com.google.cloud.designcenter.v1.TerraformVariableValidation + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.TerraformVariableValidation(); + } + + public static com.google.cloud.designcenter.v1.TerraformVariableValidation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TerraformVariableValidation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.TerraformVariableValidation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformVariableValidationOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformVariableValidationOrBuilder.java new file mode 100644 index 000000000000..90fd23343ae5 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/TerraformVariableValidationOrBuilder.java @@ -0,0 +1,82 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface TerraformVariableValidationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.TerraformVariableValidation) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The HCL expression for the validation condition (e.g.,
+   * "length(var.image_id) > 4").
+   * 
+ * + * string condition = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The condition. + */ + java.lang.String getCondition(); + + /** + * + * + *
+   * Optional. The HCL expression for the validation condition (e.g.,
+   * "length(var.image_id) > 4").
+   * 
+ * + * string condition = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for condition. + */ + com.google.protobuf.ByteString getConditionBytes(); + + /** + * + * + *
+   * Optional. The error message displayed when the condition is false.
+   * 
+ * + * string error_message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The errorMessage. + */ + java.lang.String getErrorMessage(); + + /** + * + * + *
+   * Optional. The error message displayed when the condition is false.
+   * 
+ * + * string error_message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for errorMessage. + */ + com.google.protobuf.ByteString getErrorMessageBytes(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UnregisteredResource.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UnregisteredResource.java new file mode 100644 index 000000000000..87b780781b1a --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UnregisteredResource.java @@ -0,0 +1,919 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/apphub_integration.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * UnregisteredResource represents a GCP resource that failed to register and
+ * apphub was not able to discover.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.UnregisteredResource} + */ +@com.google.protobuf.Generated +public final class UnregisteredResource extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.UnregisteredResource) + UnregisteredResourceOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "UnregisteredResource"); + } + + // Use UnregisteredResource.newBuilder() to construct. + private UnregisteredResource(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UnregisteredResource() { + reason_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.ApphubIntegrationProto + .internal_static_google_cloud_designcenter_v1_UnregisteredResource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.ApphubIntegrationProto + .internal_static_google_cloud_designcenter_v1_UnregisteredResource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.UnregisteredResource.class, + com.google.cloud.designcenter.v1.UnregisteredResource.Builder.class); + } + + private int bitField0_; + public static final int DEPLOYED_RESOURCE_FIELD_NUMBER = 1; + private com.google.cloud.designcenter.v1.DeployedResource deployedResource_; + + /** + * + * + *
+   * Output only. The deployed GCP resource that failed to register.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeployedResource deployed_resource = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the deployedResource field is set. + */ + @java.lang.Override + public boolean hasDeployedResource() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. The deployed GCP resource that failed to register.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeployedResource deployed_resource = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deployedResource. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.DeployedResource getDeployedResource() { + return deployedResource_ == null + ? com.google.cloud.designcenter.v1.DeployedResource.getDefaultInstance() + : deployedResource_; + } + + /** + * + * + *
+   * Output only. The deployed GCP resource that failed to register.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeployedResource deployed_resource = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.DeployedResourceOrBuilder getDeployedResourceOrBuilder() { + return deployedResource_ == null + ? com.google.cloud.designcenter.v1.DeployedResource.getDefaultInstance() + : deployedResource_; + } + + public static final int REASON_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object reason_ = ""; + + /** + * + * + *
+   * Output only. The reason for the failure of registration.
+   * 
+ * + * string reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The reason. + */ + @java.lang.Override + public java.lang.String getReason() { + java.lang.Object ref = reason_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + reason_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The reason for the failure of registration.
+   * 
+ * + * string reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for reason. + */ + @java.lang.Override + public com.google.protobuf.ByteString getReasonBytes() { + java.lang.Object ref = reason_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + reason_ = 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getDeployedResource()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(reason_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, reason_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDeployedResource()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(reason_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, reason_); + } + 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.designcenter.v1.UnregisteredResource)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.UnregisteredResource other = + (com.google.cloud.designcenter.v1.UnregisteredResource) obj; + + if (hasDeployedResource() != other.hasDeployedResource()) return false; + if (hasDeployedResource()) { + if (!getDeployedResource().equals(other.getDeployedResource())) return false; + } + if (!getReason().equals(other.getReason())) 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 (hasDeployedResource()) { + hash = (37 * hash) + DEPLOYED_RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getDeployedResource().hashCode(); + } + hash = (37 * hash) + REASON_FIELD_NUMBER; + hash = (53 * hash) + getReason().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.UnregisteredResource parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.UnregisteredResource 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.designcenter.v1.UnregisteredResource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.UnregisteredResource parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.UnregisteredResource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.UnregisteredResource parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.UnregisteredResource parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.UnregisteredResource parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.UnregisteredResource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.UnregisteredResource parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.UnregisteredResource parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.UnregisteredResource parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.UnregisteredResource 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * UnregisteredResource represents a GCP resource that failed to register and
+   * apphub was not able to discover.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.UnregisteredResource} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.UnregisteredResource) + com.google.cloud.designcenter.v1.UnregisteredResourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.ApphubIntegrationProto + .internal_static_google_cloud_designcenter_v1_UnregisteredResource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.ApphubIntegrationProto + .internal_static_google_cloud_designcenter_v1_UnregisteredResource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.UnregisteredResource.class, + com.google.cloud.designcenter.v1.UnregisteredResource.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.UnregisteredResource.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetDeployedResourceFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + deployedResource_ = null; + if (deployedResourceBuilder_ != null) { + deployedResourceBuilder_.dispose(); + deployedResourceBuilder_ = null; + } + reason_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.ApphubIntegrationProto + .internal_static_google_cloud_designcenter_v1_UnregisteredResource_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.UnregisteredResource getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.UnregisteredResource.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.UnregisteredResource build() { + com.google.cloud.designcenter.v1.UnregisteredResource result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.UnregisteredResource buildPartial() { + com.google.cloud.designcenter.v1.UnregisteredResource result = + new com.google.cloud.designcenter.v1.UnregisteredResource(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.UnregisteredResource result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.deployedResource_ = + deployedResourceBuilder_ == null ? deployedResource_ : deployedResourceBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.reason_ = reason_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.UnregisteredResource) { + return mergeFrom((com.google.cloud.designcenter.v1.UnregisteredResource) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.UnregisteredResource other) { + if (other == com.google.cloud.designcenter.v1.UnregisteredResource.getDefaultInstance()) + return this; + if (other.hasDeployedResource()) { + mergeDeployedResource(other.getDeployedResource()); + } + if (!other.getReason().isEmpty()) { + reason_ = other.reason_; + 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( + internalGetDeployedResourceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + reason_ = 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.designcenter.v1.DeployedResource deployedResource_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.DeployedResource, + com.google.cloud.designcenter.v1.DeployedResource.Builder, + com.google.cloud.designcenter.v1.DeployedResourceOrBuilder> + deployedResourceBuilder_; + + /** + * + * + *
+     * Output only. The deployed GCP resource that failed to register.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeployedResource deployed_resource = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the deployedResource field is set. + */ + public boolean hasDeployedResource() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Output only. The deployed GCP resource that failed to register.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeployedResource deployed_resource = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deployedResource. + */ + public com.google.cloud.designcenter.v1.DeployedResource getDeployedResource() { + if (deployedResourceBuilder_ == null) { + return deployedResource_ == null + ? com.google.cloud.designcenter.v1.DeployedResource.getDefaultInstance() + : deployedResource_; + } else { + return deployedResourceBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. The deployed GCP resource that failed to register.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeployedResource deployed_resource = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDeployedResource(com.google.cloud.designcenter.v1.DeployedResource value) { + if (deployedResourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deployedResource_ = value; + } else { + deployedResourceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The deployed GCP resource that failed to register.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeployedResource deployed_resource = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDeployedResource( + com.google.cloud.designcenter.v1.DeployedResource.Builder builderForValue) { + if (deployedResourceBuilder_ == null) { + deployedResource_ = builderForValue.build(); + } else { + deployedResourceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The deployed GCP resource that failed to register.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeployedResource deployed_resource = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeDeployedResource(com.google.cloud.designcenter.v1.DeployedResource value) { + if (deployedResourceBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && deployedResource_ != null + && deployedResource_ + != com.google.cloud.designcenter.v1.DeployedResource.getDefaultInstance()) { + getDeployedResourceBuilder().mergeFrom(value); + } else { + deployedResource_ = value; + } + } else { + deployedResourceBuilder_.mergeFrom(value); + } + if (deployedResource_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The deployed GCP resource that failed to register.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeployedResource deployed_resource = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDeployedResource() { + bitField0_ = (bitField0_ & ~0x00000001); + deployedResource_ = null; + if (deployedResourceBuilder_ != null) { + deployedResourceBuilder_.dispose(); + deployedResourceBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The deployed GCP resource that failed to register.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeployedResource deployed_resource = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.DeployedResource.Builder getDeployedResourceBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetDeployedResourceFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The deployed GCP resource that failed to register.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeployedResource deployed_resource = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.designcenter.v1.DeployedResourceOrBuilder + getDeployedResourceOrBuilder() { + if (deployedResourceBuilder_ != null) { + return deployedResourceBuilder_.getMessageOrBuilder(); + } else { + return deployedResource_ == null + ? com.google.cloud.designcenter.v1.DeployedResource.getDefaultInstance() + : deployedResource_; + } + } + + /** + * + * + *
+     * Output only. The deployed GCP resource that failed to register.
+     * 
+ * + * + * .google.cloud.designcenter.v1.DeployedResource deployed_resource = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.DeployedResource, + com.google.cloud.designcenter.v1.DeployedResource.Builder, + com.google.cloud.designcenter.v1.DeployedResourceOrBuilder> + internalGetDeployedResourceFieldBuilder() { + if (deployedResourceBuilder_ == null) { + deployedResourceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.DeployedResource, + com.google.cloud.designcenter.v1.DeployedResource.Builder, + com.google.cloud.designcenter.v1.DeployedResourceOrBuilder>( + getDeployedResource(), getParentForChildren(), isClean()); + deployedResource_ = null; + } + return deployedResourceBuilder_; + } + + private java.lang.Object reason_ = ""; + + /** + * + * + *
+     * Output only. The reason for the failure of registration.
+     * 
+ * + * string reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The reason. + */ + public java.lang.String getReason() { + java.lang.Object ref = reason_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + reason_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The reason for the failure of registration.
+     * 
+ * + * string reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for reason. + */ + public com.google.protobuf.ByteString getReasonBytes() { + java.lang.Object ref = reason_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + reason_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The reason for the failure of registration.
+     * 
+ * + * string reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The reason to set. + * @return This builder for chaining. + */ + public Builder setReason(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + reason_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The reason for the failure of registration.
+     * 
+ * + * string reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearReason() { + reason_ = getDefaultInstance().getReason(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The reason for the failure of registration.
+     * 
+ * + * string reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for reason to set. + * @return This builder for chaining. + */ + public Builder setReasonBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + reason_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.UnregisteredResource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.UnregisteredResource) + private static final com.google.cloud.designcenter.v1.UnregisteredResource DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.UnregisteredResource(); + } + + public static com.google.cloud.designcenter.v1.UnregisteredResource getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UnregisteredResource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.UnregisteredResource getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UnregisteredResourceOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UnregisteredResourceOrBuilder.java new file mode 100644 index 000000000000..f0e819c40104 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UnregisteredResourceOrBuilder.java @@ -0,0 +1,97 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/apphub_integration.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface UnregisteredResourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.UnregisteredResource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The deployed GCP resource that failed to register.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeployedResource deployed_resource = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the deployedResource field is set. + */ + boolean hasDeployedResource(); + + /** + * + * + *
+   * Output only. The deployed GCP resource that failed to register.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeployedResource deployed_resource = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deployedResource. + */ + com.google.cloud.designcenter.v1.DeployedResource getDeployedResource(); + + /** + * + * + *
+   * Output only. The deployed GCP resource that failed to register.
+   * 
+ * + * + * .google.cloud.designcenter.v1.DeployedResource deployed_resource = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.designcenter.v1.DeployedResourceOrBuilder getDeployedResourceOrBuilder(); + + /** + * + * + *
+   * Output only. The reason for the failure of registration.
+   * 
+ * + * string reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The reason. + */ + java.lang.String getReason(); + + /** + * + * + *
+   * Output only. The reason for the failure of registration.
+   * 
+ * + * string reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for reason. + */ + com.google.protobuf.ByteString getReasonBytes(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UpdateApplicationRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UpdateApplicationRequest.java new file mode 100644 index 000000000000..eee4762a5f66 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UpdateApplicationRequest.java @@ -0,0 +1,1026 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for updating an application.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.UpdateApplicationRequest} + */ +@com.google.protobuf.Generated +public final class UpdateApplicationRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.UpdateApplicationRequest) + UpdateApplicationRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "UpdateApplicationRequest"); + } + + // Use UpdateApplicationRequest.newBuilder() to construct. + private UpdateApplicationRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateApplicationRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_UpdateApplicationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_UpdateApplicationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.UpdateApplicationRequest.class, + com.google.cloud.designcenter.v1.UpdateApplicationRequest.Builder.class); + } + + private int bitField0_; + public static final int UPDATE_MASK_FIELD_NUMBER = 1; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
+   * Optional. The fields to overwrite in the application update. If you don't
+   * provide a mask, all fields are overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. The fields to overwrite in the application update. If you don't
+   * provide a mask, all fields are overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
+   * Optional. The fields to overwrite in the application update. If you don't
+   * provide a mask, all fields are overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + public static final int APPLICATION_FIELD_NUMBER = 2; + private com.google.cloud.designcenter.v1.Application application_; + + /** + * + * + *
+   * Required. The application to update.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Application application = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the application field is set. + */ + @java.lang.Override + public boolean hasApplication() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Required. The application to update.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Application application = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The application. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.Application getApplication() { + return application_ == null + ? com.google.cloud.designcenter.v1.Application.getDefaultInstance() + : application_; + } + + /** + * + * + *
+   * Required. The application to update.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Application application = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ApplicationOrBuilder getApplicationOrBuilder() { + return application_ == null + ? com.google.cloud.designcenter.v1.Application.getDefaultInstance() + : application_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getApplication()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getApplication()); + } + 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.designcenter.v1.UpdateApplicationRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.UpdateApplicationRequest other = + (com.google.cloud.designcenter.v1.UpdateApplicationRequest) obj; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasApplication() != other.hasApplication()) return false; + if (hasApplication()) { + if (!getApplication().equals(other.getApplication())) 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 (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasApplication()) { + hash = (37 * hash) + APPLICATION_FIELD_NUMBER; + hash = (53 * hash) + getApplication().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.UpdateApplicationRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.UpdateApplicationRequest 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.designcenter.v1.UpdateApplicationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.UpdateApplicationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.UpdateApplicationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.UpdateApplicationRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.UpdateApplicationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.UpdateApplicationRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.UpdateApplicationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.UpdateApplicationRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.UpdateApplicationRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.UpdateApplicationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.UpdateApplicationRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for updating an application.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.UpdateApplicationRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.UpdateApplicationRequest) + com.google.cloud.designcenter.v1.UpdateApplicationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_UpdateApplicationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_UpdateApplicationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.UpdateApplicationRequest.class, + com.google.cloud.designcenter.v1.UpdateApplicationRequest.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.UpdateApplicationRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetUpdateMaskFieldBuilder(); + internalGetApplicationFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + application_ = null; + if (applicationBuilder_ != null) { + applicationBuilder_.dispose(); + applicationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.DeploymentRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_UpdateApplicationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.UpdateApplicationRequest getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.UpdateApplicationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.UpdateApplicationRequest build() { + com.google.cloud.designcenter.v1.UpdateApplicationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.UpdateApplicationRequest buildPartial() { + com.google.cloud.designcenter.v1.UpdateApplicationRequest result = + new com.google.cloud.designcenter.v1.UpdateApplicationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.UpdateApplicationRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.application_ = + applicationBuilder_ == null ? application_ : applicationBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.UpdateApplicationRequest) { + return mergeFrom((com.google.cloud.designcenter.v1.UpdateApplicationRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.UpdateApplicationRequest other) { + if (other == com.google.cloud.designcenter.v1.UpdateApplicationRequest.getDefaultInstance()) + return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasApplication()) { + mergeApplication(other.getApplication()); + } + 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( + internalGetUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetApplicationFieldBuilder().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.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
+     * Optional. The fields to overwrite in the application update. If you don't
+     * provide a mask, all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Optional. The fields to overwrite in the application update. If you don't
+     * provide a mask, all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The fields to overwrite in the application update. If you don't
+     * provide a mask, all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The fields to overwrite in the application update. If you don't
+     * provide a mask, all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The fields to overwrite in the application update. If you don't
+     * provide a mask, all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The fields to overwrite in the application update. If you don't
+     * provide a mask, all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000001); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The fields to overwrite in the application update. If you don't
+     * provide a mask, all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The fields to overwrite in the application update. If you don't
+     * provide a mask, all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
+     * Optional. The fields to overwrite in the application update. If you don't
+     * provide a mask, all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private com.google.cloud.designcenter.v1.Application application_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.Application, + com.google.cloud.designcenter.v1.Application.Builder, + com.google.cloud.designcenter.v1.ApplicationOrBuilder> + applicationBuilder_; + + /** + * + * + *
+     * Required. The application to update.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Application application = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the application field is set. + */ + public boolean hasApplication() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Required. The application to update.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Application application = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The application. + */ + public com.google.cloud.designcenter.v1.Application getApplication() { + if (applicationBuilder_ == null) { + return application_ == null + ? com.google.cloud.designcenter.v1.Application.getDefaultInstance() + : application_; + } else { + return applicationBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The application to update.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Application application = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setApplication(com.google.cloud.designcenter.v1.Application value) { + if (applicationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + application_ = value; + } else { + applicationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The application to update.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Application application = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setApplication( + com.google.cloud.designcenter.v1.Application.Builder builderForValue) { + if (applicationBuilder_ == null) { + application_ = builderForValue.build(); + } else { + applicationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The application to update.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Application application = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeApplication(com.google.cloud.designcenter.v1.Application value) { + if (applicationBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && application_ != null + && application_ != com.google.cloud.designcenter.v1.Application.getDefaultInstance()) { + getApplicationBuilder().mergeFrom(value); + } else { + application_ = value; + } + } else { + applicationBuilder_.mergeFrom(value); + } + if (application_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The application to update.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Application application = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearApplication() { + bitField0_ = (bitField0_ & ~0x00000002); + application_ = null; + if (applicationBuilder_ != null) { + applicationBuilder_.dispose(); + applicationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The application to update.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Application application = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.Application.Builder getApplicationBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetApplicationFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The application to update.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Application application = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.ApplicationOrBuilder getApplicationOrBuilder() { + if (applicationBuilder_ != null) { + return applicationBuilder_.getMessageOrBuilder(); + } else { + return application_ == null + ? com.google.cloud.designcenter.v1.Application.getDefaultInstance() + : application_; + } + } + + /** + * + * + *
+     * Required. The application to update.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Application application = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.Application, + com.google.cloud.designcenter.v1.Application.Builder, + com.google.cloud.designcenter.v1.ApplicationOrBuilder> + internalGetApplicationFieldBuilder() { + if (applicationBuilder_ == null) { + applicationBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.Application, + com.google.cloud.designcenter.v1.Application.Builder, + com.google.cloud.designcenter.v1.ApplicationOrBuilder>( + getApplication(), getParentForChildren(), isClean()); + application_ = null; + } + return applicationBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.UpdateApplicationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.UpdateApplicationRequest) + private static final com.google.cloud.designcenter.v1.UpdateApplicationRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.UpdateApplicationRequest(); + } + + public static com.google.cloud.designcenter.v1.UpdateApplicationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateApplicationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.UpdateApplicationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UpdateApplicationRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UpdateApplicationRequestOrBuilder.java new file mode 100644 index 000000000000..418e8b2f6eb3 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UpdateApplicationRequestOrBuilder.java @@ -0,0 +1,114 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface UpdateApplicationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.UpdateApplicationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The fields to overwrite in the application update. If you don't
+   * provide a mask, all fields are overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
+   * Optional. The fields to overwrite in the application update. If you don't
+   * provide a mask, all fields are overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
+   * Optional. The fields to overwrite in the application update. If you don't
+   * provide a mask, all fields are overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
+   * Required. The application to update.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Application application = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the application field is set. + */ + boolean hasApplication(); + + /** + * + * + *
+   * Required. The application to update.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Application application = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The application. + */ + com.google.cloud.designcenter.v1.Application getApplication(); + + /** + * + * + *
+   * Required. The application to update.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Application application = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.designcenter.v1.ApplicationOrBuilder getApplicationOrBuilder(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UpdateApplicationTemplateRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UpdateApplicationTemplateRequest.java new file mode 100644 index 000000000000..2f35b024d32c --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UpdateApplicationTemplateRequest.java @@ -0,0 +1,1068 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for updating an application template.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.UpdateApplicationTemplateRequest} + */ +@com.google.protobuf.Generated +public final class UpdateApplicationTemplateRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.UpdateApplicationTemplateRequest) + UpdateApplicationTemplateRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "UpdateApplicationTemplateRequest"); + } + + // Use UpdateApplicationTemplateRequest.newBuilder() to construct. + private UpdateApplicationTemplateRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateApplicationTemplateRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_UpdateApplicationTemplateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_UpdateApplicationTemplateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.UpdateApplicationTemplateRequest.class, + com.google.cloud.designcenter.v1.UpdateApplicationTemplateRequest.Builder.class); + } + + private int bitField0_; + public static final int UPDATE_MASK_FIELD_NUMBER = 1; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
+   * Optional. The fields to overwrite in the application template update. The
+   * fields specified in the update_mask are relative to the resource, not the
+   * full request. A field will be overwritten if it is in the mask. If you
+   * don't provide a mask, all fields are overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. The fields to overwrite in the application template update. The
+   * fields specified in the update_mask are relative to the resource, not the
+   * full request. A field will be overwritten if it is in the mask. If you
+   * don't provide a mask, all fields are overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
+   * Optional. The fields to overwrite in the application template update. The
+   * fields specified in the update_mask are relative to the resource, not the
+   * full request. A field will be overwritten if it is in the mask. If you
+   * don't provide a mask, all fields are overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + public static final int APPLICATION_TEMPLATE_FIELD_NUMBER = 2; + private com.google.cloud.designcenter.v1.ApplicationTemplate applicationTemplate_; + + /** + * + * + *
+   * Required. The application template to update.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationTemplate application_template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the applicationTemplate field is set. + */ + @java.lang.Override + public boolean hasApplicationTemplate() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Required. The application template to update.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationTemplate application_template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The applicationTemplate. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ApplicationTemplate getApplicationTemplate() { + return applicationTemplate_ == null + ? com.google.cloud.designcenter.v1.ApplicationTemplate.getDefaultInstance() + : applicationTemplate_; + } + + /** + * + * + *
+   * Required. The application template to update.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationTemplate application_template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ApplicationTemplateOrBuilder + getApplicationTemplateOrBuilder() { + return applicationTemplate_ == null + ? com.google.cloud.designcenter.v1.ApplicationTemplate.getDefaultInstance() + : applicationTemplate_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getApplicationTemplate()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getApplicationTemplate()); + } + 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.designcenter.v1.UpdateApplicationTemplateRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.UpdateApplicationTemplateRequest other = + (com.google.cloud.designcenter.v1.UpdateApplicationTemplateRequest) obj; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasApplicationTemplate() != other.hasApplicationTemplate()) return false; + if (hasApplicationTemplate()) { + if (!getApplicationTemplate().equals(other.getApplicationTemplate())) 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 (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasApplicationTemplate()) { + hash = (37 * hash) + APPLICATION_TEMPLATE_FIELD_NUMBER; + hash = (53 * hash) + getApplicationTemplate().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.UpdateApplicationTemplateRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.UpdateApplicationTemplateRequest 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.designcenter.v1.UpdateApplicationTemplateRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.UpdateApplicationTemplateRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.UpdateApplicationTemplateRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.UpdateApplicationTemplateRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.UpdateApplicationTemplateRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.UpdateApplicationTemplateRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.UpdateApplicationTemplateRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.UpdateApplicationTemplateRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.UpdateApplicationTemplateRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.UpdateApplicationTemplateRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.UpdateApplicationTemplateRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for updating an application template.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.UpdateApplicationTemplateRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.UpdateApplicationTemplateRequest) + com.google.cloud.designcenter.v1.UpdateApplicationTemplateRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_UpdateApplicationTemplateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_UpdateApplicationTemplateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.UpdateApplicationTemplateRequest.class, + com.google.cloud.designcenter.v1.UpdateApplicationTemplateRequest.Builder.class); + } + + // Construct using + // com.google.cloud.designcenter.v1.UpdateApplicationTemplateRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetUpdateMaskFieldBuilder(); + internalGetApplicationTemplateFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + applicationTemplate_ = null; + if (applicationTemplateBuilder_ != null) { + applicationTemplateBuilder_.dispose(); + applicationTemplateBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_UpdateApplicationTemplateRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.UpdateApplicationTemplateRequest + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.UpdateApplicationTemplateRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.UpdateApplicationTemplateRequest build() { + com.google.cloud.designcenter.v1.UpdateApplicationTemplateRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.UpdateApplicationTemplateRequest buildPartial() { + com.google.cloud.designcenter.v1.UpdateApplicationTemplateRequest result = + new com.google.cloud.designcenter.v1.UpdateApplicationTemplateRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.UpdateApplicationTemplateRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.applicationTemplate_ = + applicationTemplateBuilder_ == null + ? applicationTemplate_ + : applicationTemplateBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.UpdateApplicationTemplateRequest) { + return mergeFrom((com.google.cloud.designcenter.v1.UpdateApplicationTemplateRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.designcenter.v1.UpdateApplicationTemplateRequest other) { + if (other + == com.google.cloud.designcenter.v1.UpdateApplicationTemplateRequest.getDefaultInstance()) + return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasApplicationTemplate()) { + mergeApplicationTemplate(other.getApplicationTemplate()); + } + 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( + internalGetUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetApplicationTemplateFieldBuilder().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.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
+     * Optional. The fields to overwrite in the application template update. The
+     * fields specified in the update_mask are relative to the resource, not the
+     * full request. A field will be overwritten if it is in the mask. If you
+     * don't provide a mask, all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Optional. The fields to overwrite in the application template update. The
+     * fields specified in the update_mask are relative to the resource, not the
+     * full request. A field will be overwritten if it is in the mask. If you
+     * don't provide a mask, all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The fields to overwrite in the application template update. The
+     * fields specified in the update_mask are relative to the resource, not the
+     * full request. A field will be overwritten if it is in the mask. If you
+     * don't provide a mask, all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The fields to overwrite in the application template update. The
+     * fields specified in the update_mask are relative to the resource, not the
+     * full request. A field will be overwritten if it is in the mask. If you
+     * don't provide a mask, all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The fields to overwrite in the application template update. The
+     * fields specified in the update_mask are relative to the resource, not the
+     * full request. A field will be overwritten if it is in the mask. If you
+     * don't provide a mask, all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The fields to overwrite in the application template update. The
+     * fields specified in the update_mask are relative to the resource, not the
+     * full request. A field will be overwritten if it is in the mask. If you
+     * don't provide a mask, all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000001); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The fields to overwrite in the application template update. The
+     * fields specified in the update_mask are relative to the resource, not the
+     * full request. A field will be overwritten if it is in the mask. If you
+     * don't provide a mask, all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The fields to overwrite in the application template update. The
+     * fields specified in the update_mask are relative to the resource, not the
+     * full request. A field will be overwritten if it is in the mask. If you
+     * don't provide a mask, all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
+     * Optional. The fields to overwrite in the application template update. The
+     * fields specified in the update_mask are relative to the resource, not the
+     * full request. A field will be overwritten if it is in the mask. If you
+     * don't provide a mask, all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private com.google.cloud.designcenter.v1.ApplicationTemplate applicationTemplate_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ApplicationTemplate, + com.google.cloud.designcenter.v1.ApplicationTemplate.Builder, + com.google.cloud.designcenter.v1.ApplicationTemplateOrBuilder> + applicationTemplateBuilder_; + + /** + * + * + *
+     * Required. The application template to update.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationTemplate application_template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the applicationTemplate field is set. + */ + public boolean hasApplicationTemplate() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Required. The application template to update.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationTemplate application_template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The applicationTemplate. + */ + public com.google.cloud.designcenter.v1.ApplicationTemplate getApplicationTemplate() { + if (applicationTemplateBuilder_ == null) { + return applicationTemplate_ == null + ? com.google.cloud.designcenter.v1.ApplicationTemplate.getDefaultInstance() + : applicationTemplate_; + } else { + return applicationTemplateBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The application template to update.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationTemplate application_template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setApplicationTemplate( + com.google.cloud.designcenter.v1.ApplicationTemplate value) { + if (applicationTemplateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + applicationTemplate_ = value; + } else { + applicationTemplateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The application template to update.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationTemplate application_template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setApplicationTemplate( + com.google.cloud.designcenter.v1.ApplicationTemplate.Builder builderForValue) { + if (applicationTemplateBuilder_ == null) { + applicationTemplate_ = builderForValue.build(); + } else { + applicationTemplateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The application template to update.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationTemplate application_template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeApplicationTemplate( + com.google.cloud.designcenter.v1.ApplicationTemplate value) { + if (applicationTemplateBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && applicationTemplate_ != null + && applicationTemplate_ + != com.google.cloud.designcenter.v1.ApplicationTemplate.getDefaultInstance()) { + getApplicationTemplateBuilder().mergeFrom(value); + } else { + applicationTemplate_ = value; + } + } else { + applicationTemplateBuilder_.mergeFrom(value); + } + if (applicationTemplate_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The application template to update.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationTemplate application_template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearApplicationTemplate() { + bitField0_ = (bitField0_ & ~0x00000002); + applicationTemplate_ = null; + if (applicationTemplateBuilder_ != null) { + applicationTemplateBuilder_.dispose(); + applicationTemplateBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The application template to update.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationTemplate application_template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.ApplicationTemplate.Builder + getApplicationTemplateBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetApplicationTemplateFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The application template to update.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationTemplate application_template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.ApplicationTemplateOrBuilder + getApplicationTemplateOrBuilder() { + if (applicationTemplateBuilder_ != null) { + return applicationTemplateBuilder_.getMessageOrBuilder(); + } else { + return applicationTemplate_ == null + ? com.google.cloud.designcenter.v1.ApplicationTemplate.getDefaultInstance() + : applicationTemplate_; + } + } + + /** + * + * + *
+     * Required. The application template to update.
+     * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationTemplate application_template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ApplicationTemplate, + com.google.cloud.designcenter.v1.ApplicationTemplate.Builder, + com.google.cloud.designcenter.v1.ApplicationTemplateOrBuilder> + internalGetApplicationTemplateFieldBuilder() { + if (applicationTemplateBuilder_ == null) { + applicationTemplateBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.ApplicationTemplate, + com.google.cloud.designcenter.v1.ApplicationTemplate.Builder, + com.google.cloud.designcenter.v1.ApplicationTemplateOrBuilder>( + getApplicationTemplate(), getParentForChildren(), isClean()); + applicationTemplate_ = null; + } + return applicationTemplateBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.UpdateApplicationTemplateRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.UpdateApplicationTemplateRequest) + private static final com.google.cloud.designcenter.v1.UpdateApplicationTemplateRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.UpdateApplicationTemplateRequest(); + } + + public static com.google.cloud.designcenter.v1.UpdateApplicationTemplateRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateApplicationTemplateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.UpdateApplicationTemplateRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UpdateApplicationTemplateRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UpdateApplicationTemplateRequestOrBuilder.java new file mode 100644 index 000000000000..13896b3a113b --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UpdateApplicationTemplateRequestOrBuilder.java @@ -0,0 +1,120 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface UpdateApplicationTemplateRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.UpdateApplicationTemplateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The fields to overwrite in the application template update. The
+   * fields specified in the update_mask are relative to the resource, not the
+   * full request. A field will be overwritten if it is in the mask. If you
+   * don't provide a mask, all fields are overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
+   * Optional. The fields to overwrite in the application template update. The
+   * fields specified in the update_mask are relative to the resource, not the
+   * full request. A field will be overwritten if it is in the mask. If you
+   * don't provide a mask, all fields are overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
+   * Optional. The fields to overwrite in the application template update. The
+   * fields specified in the update_mask are relative to the resource, not the
+   * full request. A field will be overwritten if it is in the mask. If you
+   * don't provide a mask, all fields are overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
+   * Required. The application template to update.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationTemplate application_template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the applicationTemplate field is set. + */ + boolean hasApplicationTemplate(); + + /** + * + * + *
+   * Required. The application template to update.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationTemplate application_template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The applicationTemplate. + */ + com.google.cloud.designcenter.v1.ApplicationTemplate getApplicationTemplate(); + + /** + * + * + *
+   * Required. The application template to update.
+   * 
+ * + * + * .google.cloud.designcenter.v1.ApplicationTemplate application_template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.designcenter.v1.ApplicationTemplateOrBuilder getApplicationTemplateOrBuilder(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UpdateCatalogRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UpdateCatalogRequest.java new file mode 100644 index 000000000000..e2d66081cc7d --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UpdateCatalogRequest.java @@ -0,0 +1,1023 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/catalog_management_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for updating a catalog.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.UpdateCatalogRequest} + */ +@com.google.protobuf.Generated +public final class UpdateCatalogRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.UpdateCatalogRequest) + UpdateCatalogRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "UpdateCatalogRequest"); + } + + // Use UpdateCatalogRequest.newBuilder() to construct. + private UpdateCatalogRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateCatalogRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_UpdateCatalogRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_UpdateCatalogRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.UpdateCatalogRequest.class, + com.google.cloud.designcenter.v1.UpdateCatalogRequest.Builder.class); + } + + private int bitField0_; + public static final int UPDATE_MASK_FIELD_NUMBER = 1; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
+   * Optional. The fields to overwrite in the catalog update. If you don't
+   * provide a mask, all fields are overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. The fields to overwrite in the catalog update. If you don't
+   * provide a mask, all fields are overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
+   * Optional. The fields to overwrite in the catalog update. If you don't
+   * provide a mask, all fields are overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + public static final int CATALOG_FIELD_NUMBER = 2; + private com.google.cloud.designcenter.v1.Catalog catalog_; + + /** + * + * + *
+   * Required. The catalog to update.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Catalog catalog = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the catalog field is set. + */ + @java.lang.Override + public boolean hasCatalog() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Required. The catalog to update.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Catalog catalog = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The catalog. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.Catalog getCatalog() { + return catalog_ == null + ? com.google.cloud.designcenter.v1.Catalog.getDefaultInstance() + : catalog_; + } + + /** + * + * + *
+   * Required. The catalog to update.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Catalog catalog = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.CatalogOrBuilder getCatalogOrBuilder() { + return catalog_ == null + ? com.google.cloud.designcenter.v1.Catalog.getDefaultInstance() + : catalog_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getCatalog()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCatalog()); + } + 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.designcenter.v1.UpdateCatalogRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.UpdateCatalogRequest other = + (com.google.cloud.designcenter.v1.UpdateCatalogRequest) obj; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasCatalog() != other.hasCatalog()) return false; + if (hasCatalog()) { + if (!getCatalog().equals(other.getCatalog())) 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 (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasCatalog()) { + hash = (37 * hash) + CATALOG_FIELD_NUMBER; + hash = (53 * hash) + getCatalog().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.UpdateCatalogRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.UpdateCatalogRequest 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.designcenter.v1.UpdateCatalogRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.UpdateCatalogRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.UpdateCatalogRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.UpdateCatalogRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.UpdateCatalogRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.UpdateCatalogRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.UpdateCatalogRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.UpdateCatalogRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.UpdateCatalogRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.UpdateCatalogRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.UpdateCatalogRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for updating a catalog.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.UpdateCatalogRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.UpdateCatalogRequest) + com.google.cloud.designcenter.v1.UpdateCatalogRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_UpdateCatalogRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_UpdateCatalogRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.UpdateCatalogRequest.class, + com.google.cloud.designcenter.v1.UpdateCatalogRequest.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.UpdateCatalogRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetUpdateMaskFieldBuilder(); + internalGetCatalogFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + catalog_ = null; + if (catalogBuilder_ != null) { + catalogBuilder_.dispose(); + catalogBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_UpdateCatalogRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.UpdateCatalogRequest getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.UpdateCatalogRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.UpdateCatalogRequest build() { + com.google.cloud.designcenter.v1.UpdateCatalogRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.UpdateCatalogRequest buildPartial() { + com.google.cloud.designcenter.v1.UpdateCatalogRequest result = + new com.google.cloud.designcenter.v1.UpdateCatalogRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.UpdateCatalogRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.catalog_ = catalogBuilder_ == null ? catalog_ : catalogBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.UpdateCatalogRequest) { + return mergeFrom((com.google.cloud.designcenter.v1.UpdateCatalogRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.UpdateCatalogRequest other) { + if (other == com.google.cloud.designcenter.v1.UpdateCatalogRequest.getDefaultInstance()) + return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasCatalog()) { + mergeCatalog(other.getCatalog()); + } + 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( + internalGetUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(internalGetCatalogFieldBuilder().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.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
+     * Optional. The fields to overwrite in the catalog update. If you don't
+     * provide a mask, all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Optional. The fields to overwrite in the catalog update. If you don't
+     * provide a mask, all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The fields to overwrite in the catalog update. If you don't
+     * provide a mask, all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The fields to overwrite in the catalog update. If you don't
+     * provide a mask, all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The fields to overwrite in the catalog update. If you don't
+     * provide a mask, all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The fields to overwrite in the catalog update. If you don't
+     * provide a mask, all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000001); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The fields to overwrite in the catalog update. If you don't
+     * provide a mask, all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The fields to overwrite in the catalog update. If you don't
+     * provide a mask, all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
+     * Optional. The fields to overwrite in the catalog update. If you don't
+     * provide a mask, all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private com.google.cloud.designcenter.v1.Catalog catalog_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.Catalog, + com.google.cloud.designcenter.v1.Catalog.Builder, + com.google.cloud.designcenter.v1.CatalogOrBuilder> + catalogBuilder_; + + /** + * + * + *
+     * Required. The catalog to update.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Catalog catalog = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the catalog field is set. + */ + public boolean hasCatalog() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Required. The catalog to update.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Catalog catalog = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The catalog. + */ + public com.google.cloud.designcenter.v1.Catalog getCatalog() { + if (catalogBuilder_ == null) { + return catalog_ == null + ? com.google.cloud.designcenter.v1.Catalog.getDefaultInstance() + : catalog_; + } else { + return catalogBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The catalog to update.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Catalog catalog = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCatalog(com.google.cloud.designcenter.v1.Catalog value) { + if (catalogBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + catalog_ = value; + } else { + catalogBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The catalog to update.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Catalog catalog = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCatalog(com.google.cloud.designcenter.v1.Catalog.Builder builderForValue) { + if (catalogBuilder_ == null) { + catalog_ = builderForValue.build(); + } else { + catalogBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The catalog to update.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Catalog catalog = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeCatalog(com.google.cloud.designcenter.v1.Catalog value) { + if (catalogBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && catalog_ != null + && catalog_ != com.google.cloud.designcenter.v1.Catalog.getDefaultInstance()) { + getCatalogBuilder().mergeFrom(value); + } else { + catalog_ = value; + } + } else { + catalogBuilder_.mergeFrom(value); + } + if (catalog_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The catalog to update.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Catalog catalog = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearCatalog() { + bitField0_ = (bitField0_ & ~0x00000002); + catalog_ = null; + if (catalogBuilder_ != null) { + catalogBuilder_.dispose(); + catalogBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The catalog to update.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Catalog catalog = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.Catalog.Builder getCatalogBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetCatalogFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The catalog to update.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Catalog catalog = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.CatalogOrBuilder getCatalogOrBuilder() { + if (catalogBuilder_ != null) { + return catalogBuilder_.getMessageOrBuilder(); + } else { + return catalog_ == null + ? com.google.cloud.designcenter.v1.Catalog.getDefaultInstance() + : catalog_; + } + } + + /** + * + * + *
+     * Required. The catalog to update.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Catalog catalog = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.Catalog, + com.google.cloud.designcenter.v1.Catalog.Builder, + com.google.cloud.designcenter.v1.CatalogOrBuilder> + internalGetCatalogFieldBuilder() { + if (catalogBuilder_ == null) { + catalogBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.Catalog, + com.google.cloud.designcenter.v1.Catalog.Builder, + com.google.cloud.designcenter.v1.CatalogOrBuilder>( + getCatalog(), getParentForChildren(), isClean()); + catalog_ = null; + } + return catalogBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.UpdateCatalogRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.UpdateCatalogRequest) + private static final com.google.cloud.designcenter.v1.UpdateCatalogRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.UpdateCatalogRequest(); + } + + public static com.google.cloud.designcenter.v1.UpdateCatalogRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateCatalogRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.UpdateCatalogRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UpdateCatalogRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UpdateCatalogRequestOrBuilder.java new file mode 100644 index 000000000000..b67736ea151f --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UpdateCatalogRequestOrBuilder.java @@ -0,0 +1,114 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/catalog_management_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface UpdateCatalogRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.UpdateCatalogRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The fields to overwrite in the catalog update. If you don't
+   * provide a mask, all fields are overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
+   * Optional. The fields to overwrite in the catalog update. If you don't
+   * provide a mask, all fields are overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
+   * Optional. The fields to overwrite in the catalog update. If you don't
+   * provide a mask, all fields are overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
+   * Required. The catalog to update.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Catalog catalog = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the catalog field is set. + */ + boolean hasCatalog(); + + /** + * + * + *
+   * Required. The catalog to update.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Catalog catalog = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The catalog. + */ + com.google.cloud.designcenter.v1.Catalog getCatalog(); + + /** + * + * + *
+   * Required. The catalog to update.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Catalog catalog = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.designcenter.v1.CatalogOrBuilder getCatalogOrBuilder(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UpdateCatalogTemplateRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UpdateCatalogTemplateRequest.java new file mode 100644 index 000000000000..c097ca8592e8 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UpdateCatalogTemplateRequest.java @@ -0,0 +1,1079 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/catalog_management_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for updating a catalog template.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.UpdateCatalogTemplateRequest} + */ +@com.google.protobuf.Generated +public final class UpdateCatalogTemplateRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.UpdateCatalogTemplateRequest) + UpdateCatalogTemplateRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "UpdateCatalogTemplateRequest"); + } + + // Use UpdateCatalogTemplateRequest.newBuilder() to construct. + private UpdateCatalogTemplateRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateCatalogTemplateRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_UpdateCatalogTemplateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_UpdateCatalogTemplateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.UpdateCatalogTemplateRequest.class, + com.google.cloud.designcenter.v1.UpdateCatalogTemplateRequest.Builder.class); + } + + private int bitField0_; + public static final int CATALOG_TEMPLATE_FIELD_NUMBER = 2; + private com.google.cloud.designcenter.v1.CatalogTemplate catalogTemplate_; + + /** + * + * + *
+   * Required. The catalog template to update.
+   * Format:
+   * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template`
+   * 
+ * + * + * .google.cloud.designcenter.v1.CatalogTemplate catalog_template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the catalogTemplate field is set. + */ + @java.lang.Override + public boolean hasCatalogTemplate() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The catalog template to update.
+   * Format:
+   * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template`
+   * 
+ * + * + * .google.cloud.designcenter.v1.CatalogTemplate catalog_template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The catalogTemplate. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.CatalogTemplate getCatalogTemplate() { + return catalogTemplate_ == null + ? com.google.cloud.designcenter.v1.CatalogTemplate.getDefaultInstance() + : catalogTemplate_; + } + + /** + * + * + *
+   * Required. The catalog template to update.
+   * Format:
+   * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template`
+   * 
+ * + * + * .google.cloud.designcenter.v1.CatalogTemplate catalog_template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.CatalogTemplateOrBuilder getCatalogTemplateOrBuilder() { + return catalogTemplate_ == null + ? com.google.cloud.designcenter.v1.CatalogTemplate.getDefaultInstance() + : catalogTemplate_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 1; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
+   * Optional. The fields to overwrite in the catalog template update. The
+   * fields specified in the update_mask are relative to the resource, not the
+   * full request. A field will be overwritten if it is in the mask. If you
+   * don't provide a mask, all fields are overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. The fields to overwrite in the catalog template update. The
+   * fields specified in the update_mask are relative to the resource, not the
+   * full request. A field will be overwritten if it is in the mask. If you
+   * don't provide a mask, all fields are overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
+   * Optional. The fields to overwrite in the catalog template update. The
+   * fields specified in the update_mask are relative to the resource, not the
+   * full request. A field will be overwritten if it is in the mask. If you
+   * don't provide a mask, all fields are overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @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 (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getCatalogTemplate()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCatalogTemplate()); + } + 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.designcenter.v1.UpdateCatalogTemplateRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.UpdateCatalogTemplateRequest other = + (com.google.cloud.designcenter.v1.UpdateCatalogTemplateRequest) obj; + + if (hasCatalogTemplate() != other.hasCatalogTemplate()) return false; + if (hasCatalogTemplate()) { + if (!getCatalogTemplate().equals(other.getCatalogTemplate())) 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 (hasCatalogTemplate()) { + hash = (37 * hash) + CATALOG_TEMPLATE_FIELD_NUMBER; + hash = (53 * hash) + getCatalogTemplate().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.designcenter.v1.UpdateCatalogTemplateRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.UpdateCatalogTemplateRequest 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.designcenter.v1.UpdateCatalogTemplateRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.UpdateCatalogTemplateRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.UpdateCatalogTemplateRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.UpdateCatalogTemplateRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.UpdateCatalogTemplateRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.UpdateCatalogTemplateRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.UpdateCatalogTemplateRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.UpdateCatalogTemplateRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.UpdateCatalogTemplateRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.UpdateCatalogTemplateRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.UpdateCatalogTemplateRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for updating a catalog template.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.UpdateCatalogTemplateRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.UpdateCatalogTemplateRequest) + com.google.cloud.designcenter.v1.UpdateCatalogTemplateRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_UpdateCatalogTemplateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_UpdateCatalogTemplateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.UpdateCatalogTemplateRequest.class, + com.google.cloud.designcenter.v1.UpdateCatalogTemplateRequest.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.UpdateCatalogTemplateRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCatalogTemplateFieldBuilder(); + internalGetUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + catalogTemplate_ = null; + if (catalogTemplateBuilder_ != null) { + catalogTemplateBuilder_.dispose(); + catalogTemplateBuilder_ = 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.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_UpdateCatalogTemplateRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.UpdateCatalogTemplateRequest + getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.UpdateCatalogTemplateRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.UpdateCatalogTemplateRequest build() { + com.google.cloud.designcenter.v1.UpdateCatalogTemplateRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.UpdateCatalogTemplateRequest buildPartial() { + com.google.cloud.designcenter.v1.UpdateCatalogTemplateRequest result = + new com.google.cloud.designcenter.v1.UpdateCatalogTemplateRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.designcenter.v1.UpdateCatalogTemplateRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.catalogTemplate_ = + catalogTemplateBuilder_ == null ? catalogTemplate_ : catalogTemplateBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.UpdateCatalogTemplateRequest) { + return mergeFrom((com.google.cloud.designcenter.v1.UpdateCatalogTemplateRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.UpdateCatalogTemplateRequest other) { + if (other + == com.google.cloud.designcenter.v1.UpdateCatalogTemplateRequest.getDefaultInstance()) + return this; + if (other.hasCatalogTemplate()) { + mergeCatalogTemplate(other.getCatalogTemplate()); + } + 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( + internalGetUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetCatalogTemplateFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + 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.designcenter.v1.CatalogTemplate catalogTemplate_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.CatalogTemplate, + com.google.cloud.designcenter.v1.CatalogTemplate.Builder, + com.google.cloud.designcenter.v1.CatalogTemplateOrBuilder> + catalogTemplateBuilder_; + + /** + * + * + *
+     * Required. The catalog template to update.
+     * Format:
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template`
+     * 
+ * + * + * .google.cloud.designcenter.v1.CatalogTemplate catalog_template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the catalogTemplate field is set. + */ + public boolean hasCatalogTemplate() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Required. The catalog template to update.
+     * Format:
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template`
+     * 
+ * + * + * .google.cloud.designcenter.v1.CatalogTemplate catalog_template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The catalogTemplate. + */ + public com.google.cloud.designcenter.v1.CatalogTemplate getCatalogTemplate() { + if (catalogTemplateBuilder_ == null) { + return catalogTemplate_ == null + ? com.google.cloud.designcenter.v1.CatalogTemplate.getDefaultInstance() + : catalogTemplate_; + } else { + return catalogTemplateBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The catalog template to update.
+     * Format:
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template`
+     * 
+ * + * + * .google.cloud.designcenter.v1.CatalogTemplate catalog_template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCatalogTemplate(com.google.cloud.designcenter.v1.CatalogTemplate value) { + if (catalogTemplateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + catalogTemplate_ = value; + } else { + catalogTemplateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The catalog template to update.
+     * Format:
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template`
+     * 
+ * + * + * .google.cloud.designcenter.v1.CatalogTemplate catalog_template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCatalogTemplate( + com.google.cloud.designcenter.v1.CatalogTemplate.Builder builderForValue) { + if (catalogTemplateBuilder_ == null) { + catalogTemplate_ = builderForValue.build(); + } else { + catalogTemplateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The catalog template to update.
+     * Format:
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template`
+     * 
+ * + * + * .google.cloud.designcenter.v1.CatalogTemplate catalog_template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeCatalogTemplate(com.google.cloud.designcenter.v1.CatalogTemplate value) { + if (catalogTemplateBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && catalogTemplate_ != null + && catalogTemplate_ + != com.google.cloud.designcenter.v1.CatalogTemplate.getDefaultInstance()) { + getCatalogTemplateBuilder().mergeFrom(value); + } else { + catalogTemplate_ = value; + } + } else { + catalogTemplateBuilder_.mergeFrom(value); + } + if (catalogTemplate_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The catalog template to update.
+     * Format:
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template`
+     * 
+ * + * + * .google.cloud.designcenter.v1.CatalogTemplate catalog_template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearCatalogTemplate() { + bitField0_ = (bitField0_ & ~0x00000001); + catalogTemplate_ = null; + if (catalogTemplateBuilder_ != null) { + catalogTemplateBuilder_.dispose(); + catalogTemplateBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The catalog template to update.
+     * Format:
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template`
+     * 
+ * + * + * .google.cloud.designcenter.v1.CatalogTemplate catalog_template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.CatalogTemplate.Builder getCatalogTemplateBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetCatalogTemplateFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The catalog template to update.
+     * Format:
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template`
+     * 
+ * + * + * .google.cloud.designcenter.v1.CatalogTemplate catalog_template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.CatalogTemplateOrBuilder getCatalogTemplateOrBuilder() { + if (catalogTemplateBuilder_ != null) { + return catalogTemplateBuilder_.getMessageOrBuilder(); + } else { + return catalogTemplate_ == null + ? com.google.cloud.designcenter.v1.CatalogTemplate.getDefaultInstance() + : catalogTemplate_; + } + } + + /** + * + * + *
+     * Required. The catalog template to update.
+     * Format:
+     * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template`
+     * 
+ * + * + * .google.cloud.designcenter.v1.CatalogTemplate catalog_template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.CatalogTemplate, + com.google.cloud.designcenter.v1.CatalogTemplate.Builder, + com.google.cloud.designcenter.v1.CatalogTemplateOrBuilder> + internalGetCatalogTemplateFieldBuilder() { + if (catalogTemplateBuilder_ == null) { + catalogTemplateBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.CatalogTemplate, + com.google.cloud.designcenter.v1.CatalogTemplate.Builder, + com.google.cloud.designcenter.v1.CatalogTemplateOrBuilder>( + getCatalogTemplate(), getParentForChildren(), isClean()); + catalogTemplate_ = null; + } + return catalogTemplateBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
+     * Optional. The fields to overwrite in the catalog template update. The
+     * fields specified in the update_mask are relative to the resource, not the
+     * full request. A field will be overwritten if it is in the mask. If you
+     * don't provide a mask, all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Optional. The fields to overwrite in the catalog template update. The
+     * fields specified in the update_mask are relative to the resource, not the
+     * full request. A field will be overwritten if it is in the mask. If you
+     * don't provide a mask, all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The fields to overwrite in the catalog template update. The
+     * fields specified in the update_mask are relative to the resource, not the
+     * full request. A field will be overwritten if it is in the mask. If you
+     * don't provide a mask, all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + 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; + } + + /** + * + * + *
+     * Optional. The fields to overwrite in the catalog template update. The
+     * fields specified in the update_mask are relative to the resource, not the
+     * full request. A field will be overwritten if it is in the mask. If you
+     * don't provide a mask, all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + 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; + } + + /** + * + * + *
+     * Optional. The fields to overwrite in the catalog template update. The
+     * fields specified in the update_mask are relative to the resource, not the
+     * full request. A field will be overwritten if it is in the mask. If you
+     * don't provide a mask, all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + 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); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The fields to overwrite in the catalog template update. The
+     * fields specified in the update_mask are relative to the resource, not the
+     * full request. A field will be overwritten if it is in the mask. If you
+     * don't provide a mask, all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The fields to overwrite in the catalog template update. The
+     * fields specified in the update_mask are relative to the resource, not the
+     * full request. A field will be overwritten if it is in the mask. If you
+     * don't provide a mask, all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The fields to overwrite in the catalog template update. The
+     * fields specified in the update_mask are relative to the resource, not the
+     * full request. A field will be overwritten if it is in the mask. If you
+     * don't provide a mask, all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
+     * Optional. The fields to overwrite in the catalog template update. The
+     * fields specified in the update_mask are relative to the resource, not the
+     * full request. A field will be overwritten if it is in the mask. If you
+     * don't provide a mask, all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.UpdateCatalogTemplateRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.UpdateCatalogTemplateRequest) + private static final com.google.cloud.designcenter.v1.UpdateCatalogTemplateRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.UpdateCatalogTemplateRequest(); + } + + public static com.google.cloud.designcenter.v1.UpdateCatalogTemplateRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateCatalogTemplateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.UpdateCatalogTemplateRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UpdateCatalogTemplateRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UpdateCatalogTemplateRequestOrBuilder.java new file mode 100644 index 000000000000..caed013e9914 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UpdateCatalogTemplateRequestOrBuilder.java @@ -0,0 +1,126 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/catalog_management_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface UpdateCatalogTemplateRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.UpdateCatalogTemplateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The catalog template to update.
+   * Format:
+   * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template`
+   * 
+ * + * + * .google.cloud.designcenter.v1.CatalogTemplate catalog_template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the catalogTemplate field is set. + */ + boolean hasCatalogTemplate(); + + /** + * + * + *
+   * Required. The catalog template to update.
+   * Format:
+   * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template`
+   * 
+ * + * + * .google.cloud.designcenter.v1.CatalogTemplate catalog_template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The catalogTemplate. + */ + com.google.cloud.designcenter.v1.CatalogTemplate getCatalogTemplate(); + + /** + * + * + *
+   * Required. The catalog template to update.
+   * Format:
+   * `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template`
+   * 
+ * + * + * .google.cloud.designcenter.v1.CatalogTemplate catalog_template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.designcenter.v1.CatalogTemplateOrBuilder getCatalogTemplateOrBuilder(); + + /** + * + * + *
+   * Optional. The fields to overwrite in the catalog template update. The
+   * fields specified in the update_mask are relative to the resource, not the
+   * full request. A field will be overwritten if it is in the mask. If you
+   * don't provide a mask, all fields are overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
+   * Optional. The fields to overwrite in the catalog template update. The
+   * fields specified in the update_mask are relative to the resource, not the
+   * full request. A field will be overwritten if it is in the mask. If you
+   * don't provide a mask, all fields are overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
+   * Optional. The fields to overwrite in the catalog template update. The
+   * fields specified in the update_mask are relative to the resource, not the
+   * full request. A field will be overwritten if it is in the mask. If you
+   * don't provide a mask, all fields are overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UpdateComponentRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UpdateComponentRequest.java new file mode 100644 index 000000000000..509f468473ec --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UpdateComponentRequest.java @@ -0,0 +1,1025 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for updating a component.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.UpdateComponentRequest} + */ +@com.google.protobuf.Generated +public final class UpdateComponentRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.UpdateComponentRequest) + UpdateComponentRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "UpdateComponentRequest"); + } + + // Use UpdateComponentRequest.newBuilder() to construct. + private UpdateComponentRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateComponentRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_UpdateComponentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_UpdateComponentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.UpdateComponentRequest.class, + com.google.cloud.designcenter.v1.UpdateComponentRequest.Builder.class); + } + + private int bitField0_; + public static final int UPDATE_MASK_FIELD_NUMBER = 1; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
+   * Optional. The fields to overwrite in the component update. If you don't
+   * provide a mask, all fields are overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. The fields to overwrite in the component update. If you don't
+   * provide a mask, all fields are overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
+   * Optional. The fields to overwrite in the component update. If you don't
+   * provide a mask, all fields are overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + public static final int COMPONENT_FIELD_NUMBER = 2; + private com.google.cloud.designcenter.v1.Component component_; + + /** + * + * + *
+   * Required. The component to update.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Component component = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the component field is set. + */ + @java.lang.Override + public boolean hasComponent() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Required. The component to update.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Component component = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The component. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.Component getComponent() { + return component_ == null + ? com.google.cloud.designcenter.v1.Component.getDefaultInstance() + : component_; + } + + /** + * + * + *
+   * Required. The component to update.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Component component = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ComponentOrBuilder getComponentOrBuilder() { + return component_ == null + ? com.google.cloud.designcenter.v1.Component.getDefaultInstance() + : component_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getComponent()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getComponent()); + } + 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.designcenter.v1.UpdateComponentRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.UpdateComponentRequest other = + (com.google.cloud.designcenter.v1.UpdateComponentRequest) obj; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasComponent() != other.hasComponent()) return false; + if (hasComponent()) { + if (!getComponent().equals(other.getComponent())) 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 (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasComponent()) { + hash = (37 * hash) + COMPONENT_FIELD_NUMBER; + hash = (53 * hash) + getComponent().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.UpdateComponentRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.UpdateComponentRequest 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.designcenter.v1.UpdateComponentRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.UpdateComponentRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.UpdateComponentRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.UpdateComponentRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.UpdateComponentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.UpdateComponentRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.UpdateComponentRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.UpdateComponentRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.UpdateComponentRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.UpdateComponentRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.UpdateComponentRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for updating a component.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.UpdateComponentRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.UpdateComponentRequest) + com.google.cloud.designcenter.v1.UpdateComponentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_UpdateComponentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_UpdateComponentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.UpdateComponentRequest.class, + com.google.cloud.designcenter.v1.UpdateComponentRequest.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.UpdateComponentRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetUpdateMaskFieldBuilder(); + internalGetComponentFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + component_ = null; + if (componentBuilder_ != null) { + componentBuilder_.dispose(); + componentBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_UpdateComponentRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.UpdateComponentRequest getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.UpdateComponentRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.UpdateComponentRequest build() { + com.google.cloud.designcenter.v1.UpdateComponentRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.UpdateComponentRequest buildPartial() { + com.google.cloud.designcenter.v1.UpdateComponentRequest result = + new com.google.cloud.designcenter.v1.UpdateComponentRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.UpdateComponentRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.component_ = componentBuilder_ == null ? component_ : componentBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.UpdateComponentRequest) { + return mergeFrom((com.google.cloud.designcenter.v1.UpdateComponentRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.UpdateComponentRequest other) { + if (other == com.google.cloud.designcenter.v1.UpdateComponentRequest.getDefaultInstance()) + return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasComponent()) { + mergeComponent(other.getComponent()); + } + 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( + internalGetUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetComponentFieldBuilder().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.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
+     * Optional. The fields to overwrite in the component update. If you don't
+     * provide a mask, all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Optional. The fields to overwrite in the component update. If you don't
+     * provide a mask, all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The fields to overwrite in the component update. If you don't
+     * provide a mask, all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The fields to overwrite in the component update. If you don't
+     * provide a mask, all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The fields to overwrite in the component update. If you don't
+     * provide a mask, all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The fields to overwrite in the component update. If you don't
+     * provide a mask, all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000001); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The fields to overwrite in the component update. If you don't
+     * provide a mask, all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The fields to overwrite in the component update. If you don't
+     * provide a mask, all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
+     * Optional. The fields to overwrite in the component update. If you don't
+     * provide a mask, all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private com.google.cloud.designcenter.v1.Component component_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.Component, + com.google.cloud.designcenter.v1.Component.Builder, + com.google.cloud.designcenter.v1.ComponentOrBuilder> + componentBuilder_; + + /** + * + * + *
+     * Required. The component to update.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Component component = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the component field is set. + */ + public boolean hasComponent() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Required. The component to update.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Component component = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The component. + */ + public com.google.cloud.designcenter.v1.Component getComponent() { + if (componentBuilder_ == null) { + return component_ == null + ? com.google.cloud.designcenter.v1.Component.getDefaultInstance() + : component_; + } else { + return componentBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The component to update.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Component component = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setComponent(com.google.cloud.designcenter.v1.Component value) { + if (componentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + component_ = value; + } else { + componentBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The component to update.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Component component = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setComponent( + com.google.cloud.designcenter.v1.Component.Builder builderForValue) { + if (componentBuilder_ == null) { + component_ = builderForValue.build(); + } else { + componentBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The component to update.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Component component = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeComponent(com.google.cloud.designcenter.v1.Component value) { + if (componentBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && component_ != null + && component_ != com.google.cloud.designcenter.v1.Component.getDefaultInstance()) { + getComponentBuilder().mergeFrom(value); + } else { + component_ = value; + } + } else { + componentBuilder_.mergeFrom(value); + } + if (component_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The component to update.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Component component = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearComponent() { + bitField0_ = (bitField0_ & ~0x00000002); + component_ = null; + if (componentBuilder_ != null) { + componentBuilder_.dispose(); + componentBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The component to update.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Component component = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.Component.Builder getComponentBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetComponentFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The component to update.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Component component = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.ComponentOrBuilder getComponentOrBuilder() { + if (componentBuilder_ != null) { + return componentBuilder_.getMessageOrBuilder(); + } else { + return component_ == null + ? com.google.cloud.designcenter.v1.Component.getDefaultInstance() + : component_; + } + } + + /** + * + * + *
+     * Required. The component to update.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Component component = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.Component, + com.google.cloud.designcenter.v1.Component.Builder, + com.google.cloud.designcenter.v1.ComponentOrBuilder> + internalGetComponentFieldBuilder() { + if (componentBuilder_ == null) { + componentBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.Component, + com.google.cloud.designcenter.v1.Component.Builder, + com.google.cloud.designcenter.v1.ComponentOrBuilder>( + getComponent(), getParentForChildren(), isClean()); + component_ = null; + } + return componentBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.UpdateComponentRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.UpdateComponentRequest) + private static final com.google.cloud.designcenter.v1.UpdateComponentRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.UpdateComponentRequest(); + } + + public static com.google.cloud.designcenter.v1.UpdateComponentRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateComponentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.UpdateComponentRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UpdateComponentRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UpdateComponentRequestOrBuilder.java new file mode 100644 index 000000000000..ff9656263e74 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UpdateComponentRequestOrBuilder.java @@ -0,0 +1,114 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface UpdateComponentRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.UpdateComponentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The fields to overwrite in the component update. If you don't
+   * provide a mask, all fields are overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
+   * Optional. The fields to overwrite in the component update. If you don't
+   * provide a mask, all fields are overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
+   * Optional. The fields to overwrite in the component update. If you don't
+   * provide a mask, all fields are overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
+   * Required. The component to update.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Component component = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the component field is set. + */ + boolean hasComponent(); + + /** + * + * + *
+   * Required. The component to update.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Component component = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The component. + */ + com.google.cloud.designcenter.v1.Component getComponent(); + + /** + * + * + *
+   * Required. The component to update.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Component component = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.designcenter.v1.ComponentOrBuilder getComponentOrBuilder(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UpdateConnectionRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UpdateConnectionRequest.java new file mode 100644 index 000000000000..a227d27bd1f0 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UpdateConnectionRequest.java @@ -0,0 +1,1049 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for updating a connection.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.UpdateConnectionRequest} + */ +@com.google.protobuf.Generated +public final class UpdateConnectionRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.UpdateConnectionRequest) + UpdateConnectionRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "UpdateConnectionRequest"); + } + + // Use UpdateConnectionRequest.newBuilder() to construct. + private UpdateConnectionRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateConnectionRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_UpdateConnectionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_UpdateConnectionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.UpdateConnectionRequest.class, + com.google.cloud.designcenter.v1.UpdateConnectionRequest.Builder.class); + } + + private int bitField0_; + public static final int UPDATE_MASK_FIELD_NUMBER = 1; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
+   * Optional. Fields to overwrite in the connection update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If you
+   * don't provide a mask, all fields are overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. Fields to overwrite in the connection update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If you
+   * don't provide a mask, all fields are overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
+   * Optional. Fields to overwrite in the connection update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If you
+   * don't provide a mask, all fields are overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + public static final int CONNECTION_FIELD_NUMBER = 2; + private com.google.cloud.designcenter.v1.Connection connection_; + + /** + * + * + *
+   * Required. The connection to update.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the connection field is set. + */ + @java.lang.Override + public boolean hasConnection() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Required. The connection to update.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The connection. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.Connection getConnection() { + return connection_ == null + ? com.google.cloud.designcenter.v1.Connection.getDefaultInstance() + : connection_; + } + + /** + * + * + *
+   * Required. The connection to update.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.ConnectionOrBuilder getConnectionOrBuilder() { + return connection_ == null + ? com.google.cloud.designcenter.v1.Connection.getDefaultInstance() + : connection_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getConnection()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getConnection()); + } + 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.designcenter.v1.UpdateConnectionRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.UpdateConnectionRequest other = + (com.google.cloud.designcenter.v1.UpdateConnectionRequest) obj; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasConnection() != other.hasConnection()) return false; + if (hasConnection()) { + if (!getConnection().equals(other.getConnection())) 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 (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasConnection()) { + hash = (37 * hash) + CONNECTION_FIELD_NUMBER; + hash = (53 * hash) + getConnection().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.UpdateConnectionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.UpdateConnectionRequest 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.designcenter.v1.UpdateConnectionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.UpdateConnectionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.UpdateConnectionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.UpdateConnectionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.UpdateConnectionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.UpdateConnectionRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.UpdateConnectionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.UpdateConnectionRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.UpdateConnectionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.UpdateConnectionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.UpdateConnectionRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for updating a connection.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.UpdateConnectionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.UpdateConnectionRequest) + com.google.cloud.designcenter.v1.UpdateConnectionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_UpdateConnectionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_UpdateConnectionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.UpdateConnectionRequest.class, + com.google.cloud.designcenter.v1.UpdateConnectionRequest.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.UpdateConnectionRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetUpdateMaskFieldBuilder(); + internalGetConnectionFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + connection_ = null; + if (connectionBuilder_ != null) { + connectionBuilder_.dispose(); + connectionBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.AuthoringRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_UpdateConnectionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.UpdateConnectionRequest getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.UpdateConnectionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.UpdateConnectionRequest build() { + com.google.cloud.designcenter.v1.UpdateConnectionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.UpdateConnectionRequest buildPartial() { + com.google.cloud.designcenter.v1.UpdateConnectionRequest result = + new com.google.cloud.designcenter.v1.UpdateConnectionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.UpdateConnectionRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.connection_ = connectionBuilder_ == null ? connection_ : connectionBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.UpdateConnectionRequest) { + return mergeFrom((com.google.cloud.designcenter.v1.UpdateConnectionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.UpdateConnectionRequest other) { + if (other == com.google.cloud.designcenter.v1.UpdateConnectionRequest.getDefaultInstance()) + return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasConnection()) { + mergeConnection(other.getConnection()); + } + 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( + internalGetUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetConnectionFieldBuilder().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.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
+     * Optional. Fields to overwrite in the connection update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If you
+     * don't provide a mask, all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Optional. Fields to overwrite in the connection update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If you
+     * don't provide a mask, all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Fields to overwrite in the connection update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If you
+     * don't provide a mask, all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Fields to overwrite in the connection update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If you
+     * don't provide a mask, all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Fields to overwrite in the connection update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If you
+     * don't provide a mask, all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Fields to overwrite in the connection update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If you
+     * don't provide a mask, all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000001); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Fields to overwrite in the connection update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If you
+     * don't provide a mask, all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Fields to overwrite in the connection update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If you
+     * don't provide a mask, all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
+     * Optional. Fields to overwrite in the connection update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If you
+     * don't provide a mask, all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private com.google.cloud.designcenter.v1.Connection connection_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.Connection, + com.google.cloud.designcenter.v1.Connection.Builder, + com.google.cloud.designcenter.v1.ConnectionOrBuilder> + connectionBuilder_; + + /** + * + * + *
+     * Required. The connection to update.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the connection field is set. + */ + public boolean hasConnection() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Required. The connection to update.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The connection. + */ + public com.google.cloud.designcenter.v1.Connection getConnection() { + if (connectionBuilder_ == null) { + return connection_ == null + ? com.google.cloud.designcenter.v1.Connection.getDefaultInstance() + : connection_; + } else { + return connectionBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The connection to update.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setConnection(com.google.cloud.designcenter.v1.Connection value) { + if (connectionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + connection_ = value; + } else { + connectionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The connection to update.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setConnection( + com.google.cloud.designcenter.v1.Connection.Builder builderForValue) { + if (connectionBuilder_ == null) { + connection_ = builderForValue.build(); + } else { + connectionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The connection to update.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeConnection(com.google.cloud.designcenter.v1.Connection value) { + if (connectionBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && connection_ != null + && connection_ != com.google.cloud.designcenter.v1.Connection.getDefaultInstance()) { + getConnectionBuilder().mergeFrom(value); + } else { + connection_ = value; + } + } else { + connectionBuilder_.mergeFrom(value); + } + if (connection_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The connection to update.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearConnection() { + bitField0_ = (bitField0_ & ~0x00000002); + connection_ = null; + if (connectionBuilder_ != null) { + connectionBuilder_.dispose(); + connectionBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The connection to update.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.Connection.Builder getConnectionBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetConnectionFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The connection to update.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.ConnectionOrBuilder getConnectionOrBuilder() { + if (connectionBuilder_ != null) { + return connectionBuilder_.getMessageOrBuilder(); + } else { + return connection_ == null + ? com.google.cloud.designcenter.v1.Connection.getDefaultInstance() + : connection_; + } + } + + /** + * + * + *
+     * Required. The connection to update.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.Connection, + com.google.cloud.designcenter.v1.Connection.Builder, + com.google.cloud.designcenter.v1.ConnectionOrBuilder> + internalGetConnectionFieldBuilder() { + if (connectionBuilder_ == null) { + connectionBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.Connection, + com.google.cloud.designcenter.v1.Connection.Builder, + com.google.cloud.designcenter.v1.ConnectionOrBuilder>( + getConnection(), getParentForChildren(), isClean()); + connection_ = null; + } + return connectionBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.UpdateConnectionRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.UpdateConnectionRequest) + private static final com.google.cloud.designcenter.v1.UpdateConnectionRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.UpdateConnectionRequest(); + } + + public static com.google.cloud.designcenter.v1.UpdateConnectionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateConnectionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.UpdateConnectionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UpdateConnectionRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UpdateConnectionRequestOrBuilder.java new file mode 100644 index 000000000000..cc7bedacb735 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UpdateConnectionRequestOrBuilder.java @@ -0,0 +1,120 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/authoring_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface UpdateConnectionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.UpdateConnectionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Fields to overwrite in the connection update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If you
+   * don't provide a mask, all fields are overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
+   * Optional. Fields to overwrite in the connection update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If you
+   * don't provide a mask, all fields are overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
+   * Optional. Fields to overwrite in the connection update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If you
+   * don't provide a mask, all fields are overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
+   * Required. The connection to update.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the connection field is set. + */ + boolean hasConnection(); + + /** + * + * + *
+   * Required. The connection to update.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The connection. + */ + com.google.cloud.designcenter.v1.Connection getConnection(); + + /** + * + * + *
+   * Required. The connection to update.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.designcenter.v1.ConnectionOrBuilder getConnectionOrBuilder(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UpdatePolicyRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UpdatePolicyRequest.java new file mode 100644 index 000000000000..c2937d989d31 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UpdatePolicyRequest.java @@ -0,0 +1,1042 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/best_practices_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for updating a policy.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.UpdatePolicyRequest} + */ +@com.google.protobuf.Generated +public final class UpdatePolicyRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.UpdatePolicyRequest) + UpdatePolicyRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "UpdatePolicyRequest"); + } + + // Use UpdatePolicyRequest.newBuilder() to construct. + private UpdatePolicyRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdatePolicyRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_UpdatePolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_UpdatePolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.UpdatePolicyRequest.class, + com.google.cloud.designcenter.v1.UpdatePolicyRequest.Builder.class); + } + + private int bitField0_; + public static final int UPDATE_MASK_FIELD_NUMBER = 1; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
+   * Optional. The fields to overwrite in the policy update. The fields
+   * specified in the update_mask are relative to the resource, not the full
+   * request. A field will be overwritten if it is in the mask. If you don't
+   * provide a mask, all fields are overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. The fields to overwrite in the policy update. The fields
+   * specified in the update_mask are relative to the resource, not the full
+   * request. A field will be overwritten if it is in the mask. If you don't
+   * provide a mask, all fields are overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
+   * Optional. The fields to overwrite in the policy update. The fields
+   * specified in the update_mask are relative to the resource, not the full
+   * request. A field will be overwritten if it is in the mask. If you don't
+   * provide a mask, all fields are overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + public static final int POLICY_FIELD_NUMBER = 2; + private com.google.cloud.designcenter.v1.Policy policy_; + + /** + * + * + *
+   * Required. The policy to update.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the policy field is set. + */ + @java.lang.Override + public boolean hasPolicy() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Required. The policy to update.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The policy. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.Policy getPolicy() { + return policy_ == null ? com.google.cloud.designcenter.v1.Policy.getDefaultInstance() : policy_; + } + + /** + * + * + *
+   * Required. The policy to update.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.PolicyOrBuilder getPolicyOrBuilder() { + return policy_ == null ? com.google.cloud.designcenter.v1.Policy.getDefaultInstance() : policy_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getPolicy()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPolicy()); + } + 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.designcenter.v1.UpdatePolicyRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.UpdatePolicyRequest other = + (com.google.cloud.designcenter.v1.UpdatePolicyRequest) obj; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasPolicy() != other.hasPolicy()) return false; + if (hasPolicy()) { + if (!getPolicy().equals(other.getPolicy())) 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 (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasPolicy()) { + hash = (37 * hash) + POLICY_FIELD_NUMBER; + hash = (53 * hash) + getPolicy().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.UpdatePolicyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.UpdatePolicyRequest 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.designcenter.v1.UpdatePolicyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.UpdatePolicyRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.UpdatePolicyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.UpdatePolicyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.UpdatePolicyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.UpdatePolicyRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.UpdatePolicyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.UpdatePolicyRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.UpdatePolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.UpdatePolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.UpdatePolicyRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for updating a policy.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.UpdatePolicyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.UpdatePolicyRequest) + com.google.cloud.designcenter.v1.UpdatePolicyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_UpdatePolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_UpdatePolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.UpdatePolicyRequest.class, + com.google.cloud.designcenter.v1.UpdatePolicyRequest.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.UpdatePolicyRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetUpdateMaskFieldBuilder(); + internalGetPolicyFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + policy_ = null; + if (policyBuilder_ != null) { + policyBuilder_.dispose(); + policyBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.BestPracticesRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_UpdatePolicyRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.UpdatePolicyRequest getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.UpdatePolicyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.UpdatePolicyRequest build() { + com.google.cloud.designcenter.v1.UpdatePolicyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.UpdatePolicyRequest buildPartial() { + com.google.cloud.designcenter.v1.UpdatePolicyRequest result = + new com.google.cloud.designcenter.v1.UpdatePolicyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.UpdatePolicyRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.policy_ = policyBuilder_ == null ? policy_ : policyBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.UpdatePolicyRequest) { + return mergeFrom((com.google.cloud.designcenter.v1.UpdatePolicyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.UpdatePolicyRequest other) { + if (other == com.google.cloud.designcenter.v1.UpdatePolicyRequest.getDefaultInstance()) + return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasPolicy()) { + mergePolicy(other.getPolicy()); + } + 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( + internalGetUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(internalGetPolicyFieldBuilder().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.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
+     * Optional. The fields to overwrite in the policy update. The fields
+     * specified in the update_mask are relative to the resource, not the full
+     * request. A field will be overwritten if it is in the mask. If you don't
+     * provide a mask, all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Optional. The fields to overwrite in the policy update. The fields
+     * specified in the update_mask are relative to the resource, not the full
+     * request. A field will be overwritten if it is in the mask. If you don't
+     * provide a mask, all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The fields to overwrite in the policy update. The fields
+     * specified in the update_mask are relative to the resource, not the full
+     * request. A field will be overwritten if it is in the mask. If you don't
+     * provide a mask, all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The fields to overwrite in the policy update. The fields
+     * specified in the update_mask are relative to the resource, not the full
+     * request. A field will be overwritten if it is in the mask. If you don't
+     * provide a mask, all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The fields to overwrite in the policy update. The fields
+     * specified in the update_mask are relative to the resource, not the full
+     * request. A field will be overwritten if it is in the mask. If you don't
+     * provide a mask, all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The fields to overwrite in the policy update. The fields
+     * specified in the update_mask are relative to the resource, not the full
+     * request. A field will be overwritten if it is in the mask. If you don't
+     * provide a mask, all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000001); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The fields to overwrite in the policy update. The fields
+     * specified in the update_mask are relative to the resource, not the full
+     * request. A field will be overwritten if it is in the mask. If you don't
+     * provide a mask, all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The fields to overwrite in the policy update. The fields
+     * specified in the update_mask are relative to the resource, not the full
+     * request. A field will be overwritten if it is in the mask. If you don't
+     * provide a mask, all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
+     * Optional. The fields to overwrite in the policy update. The fields
+     * specified in the update_mask are relative to the resource, not the full
+     * request. A field will be overwritten if it is in the mask. If you don't
+     * provide a mask, all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private com.google.cloud.designcenter.v1.Policy policy_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.Policy, + com.google.cloud.designcenter.v1.Policy.Builder, + com.google.cloud.designcenter.v1.PolicyOrBuilder> + policyBuilder_; + + /** + * + * + *
+     * Required. The policy to update.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the policy field is set. + */ + public boolean hasPolicy() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Required. The policy to update.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The policy. + */ + public com.google.cloud.designcenter.v1.Policy getPolicy() { + if (policyBuilder_ == null) { + return policy_ == null + ? com.google.cloud.designcenter.v1.Policy.getDefaultInstance() + : policy_; + } else { + return policyBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The policy to update.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPolicy(com.google.cloud.designcenter.v1.Policy value) { + if (policyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + policy_ = value; + } else { + policyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The policy to update.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPolicy(com.google.cloud.designcenter.v1.Policy.Builder builderForValue) { + if (policyBuilder_ == null) { + policy_ = builderForValue.build(); + } else { + policyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The policy to update.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergePolicy(com.google.cloud.designcenter.v1.Policy value) { + if (policyBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && policy_ != null + && policy_ != com.google.cloud.designcenter.v1.Policy.getDefaultInstance()) { + getPolicyBuilder().mergeFrom(value); + } else { + policy_ = value; + } + } else { + policyBuilder_.mergeFrom(value); + } + if (policy_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The policy to update.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearPolicy() { + bitField0_ = (bitField0_ & ~0x00000002); + policy_ = null; + if (policyBuilder_ != null) { + policyBuilder_.dispose(); + policyBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The policy to update.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.Policy.Builder getPolicyBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetPolicyFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The policy to update.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.PolicyOrBuilder getPolicyOrBuilder() { + if (policyBuilder_ != null) { + return policyBuilder_.getMessageOrBuilder(); + } else { + return policy_ == null + ? com.google.cloud.designcenter.v1.Policy.getDefaultInstance() + : policy_; + } + } + + /** + * + * + *
+     * Required. The policy to update.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.Policy, + com.google.cloud.designcenter.v1.Policy.Builder, + com.google.cloud.designcenter.v1.PolicyOrBuilder> + internalGetPolicyFieldBuilder() { + if (policyBuilder_ == null) { + policyBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.Policy, + com.google.cloud.designcenter.v1.Policy.Builder, + com.google.cloud.designcenter.v1.PolicyOrBuilder>( + getPolicy(), getParentForChildren(), isClean()); + policy_ = null; + } + return policyBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.UpdatePolicyRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.UpdatePolicyRequest) + private static final com.google.cloud.designcenter.v1.UpdatePolicyRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.UpdatePolicyRequest(); + } + + public static com.google.cloud.designcenter.v1.UpdatePolicyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdatePolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.UpdatePolicyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UpdatePolicyRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UpdatePolicyRequestOrBuilder.java new file mode 100644 index 000000000000..4089526c39d0 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UpdatePolicyRequestOrBuilder.java @@ -0,0 +1,120 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/best_practices_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface UpdatePolicyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.UpdatePolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The fields to overwrite in the policy update. The fields
+   * specified in the update_mask are relative to the resource, not the full
+   * request. A field will be overwritten if it is in the mask. If you don't
+   * provide a mask, all fields are overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
+   * Optional. The fields to overwrite in the policy update. The fields
+   * specified in the update_mask are relative to the resource, not the full
+   * request. A field will be overwritten if it is in the mask. If you don't
+   * provide a mask, all fields are overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
+   * Optional. The fields to overwrite in the policy update. The fields
+   * specified in the update_mask are relative to the resource, not the full
+   * request. A field will be overwritten if it is in the mask. If you don't
+   * provide a mask, all fields are overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
+   * Required. The policy to update.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the policy field is set. + */ + boolean hasPolicy(); + + /** + * + * + *
+   * Required. The policy to update.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The policy. + */ + com.google.cloud.designcenter.v1.Policy getPolicy(); + + /** + * + * + *
+   * Required. The policy to update.
+   * 
+ * + * + * .google.cloud.designcenter.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.designcenter.v1.PolicyOrBuilder getPolicyOrBuilder(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UpdateSpaceRequest.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UpdateSpaceRequest.java new file mode 100644 index 000000000000..38fd5a59dbc4 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UpdateSpaceRequest.java @@ -0,0 +1,1015 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/catalog_management_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Message for updating a space.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.UpdateSpaceRequest} + */ +@com.google.protobuf.Generated +public final class UpdateSpaceRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.UpdateSpaceRequest) + UpdateSpaceRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "UpdateSpaceRequest"); + } + + // Use UpdateSpaceRequest.newBuilder() to construct. + private UpdateSpaceRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateSpaceRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_UpdateSpaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_UpdateSpaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.UpdateSpaceRequest.class, + com.google.cloud.designcenter.v1.UpdateSpaceRequest.Builder.class); + } + + private int bitField0_; + public static final int UPDATE_MASK_FIELD_NUMBER = 1; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
+   * Optional. The fields to overwrite in the space update. If you don't provide
+   * a mask, all fields are overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. The fields to overwrite in the space update. If you don't provide
+   * a mask, all fields are overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
+   * Optional. The fields to overwrite in the space update. If you don't provide
+   * a mask, all fields are overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + public static final int SPACE_FIELD_NUMBER = 2; + private com.google.cloud.designcenter.v1.Space space_; + + /** + * + * + *
+   * Required. The space to update.
+   * 
+ * + * .google.cloud.designcenter.v1.Space space = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the space field is set. + */ + @java.lang.Override + public boolean hasSpace() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Required. The space to update.
+   * 
+ * + * .google.cloud.designcenter.v1.Space space = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The space. + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.Space getSpace() { + return space_ == null ? com.google.cloud.designcenter.v1.Space.getDefaultInstance() : space_; + } + + /** + * + * + *
+   * Required. The space to update.
+   * 
+ * + * .google.cloud.designcenter.v1.Space space = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.designcenter.v1.SpaceOrBuilder getSpaceOrBuilder() { + return space_ == null ? com.google.cloud.designcenter.v1.Space.getDefaultInstance() : space_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getSpace()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSpace()); + } + 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.designcenter.v1.UpdateSpaceRequest)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.UpdateSpaceRequest other = + (com.google.cloud.designcenter.v1.UpdateSpaceRequest) obj; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasSpace() != other.hasSpace()) return false; + if (hasSpace()) { + if (!getSpace().equals(other.getSpace())) 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 (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasSpace()) { + hash = (37 * hash) + SPACE_FIELD_NUMBER; + hash = (53 * hash) + getSpace().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.UpdateSpaceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.UpdateSpaceRequest 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.designcenter.v1.UpdateSpaceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.UpdateSpaceRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.UpdateSpaceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.UpdateSpaceRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.UpdateSpaceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.UpdateSpaceRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.UpdateSpaceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.UpdateSpaceRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.UpdateSpaceRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.UpdateSpaceRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.UpdateSpaceRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for updating a space.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.UpdateSpaceRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.UpdateSpaceRequest) + com.google.cloud.designcenter.v1.UpdateSpaceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_UpdateSpaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_UpdateSpaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.UpdateSpaceRequest.class, + com.google.cloud.designcenter.v1.UpdateSpaceRequest.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.UpdateSpaceRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetUpdateMaskFieldBuilder(); + internalGetSpaceFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + space_ = null; + if (spaceBuilder_ != null) { + spaceBuilder_.dispose(); + spaceBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.CatalogManagementRpcMessagesProto + .internal_static_google_cloud_designcenter_v1_UpdateSpaceRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.UpdateSpaceRequest getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.UpdateSpaceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.UpdateSpaceRequest build() { + com.google.cloud.designcenter.v1.UpdateSpaceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.UpdateSpaceRequest buildPartial() { + com.google.cloud.designcenter.v1.UpdateSpaceRequest result = + new com.google.cloud.designcenter.v1.UpdateSpaceRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.UpdateSpaceRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.space_ = spaceBuilder_ == null ? space_ : spaceBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.UpdateSpaceRequest) { + return mergeFrom((com.google.cloud.designcenter.v1.UpdateSpaceRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.UpdateSpaceRequest other) { + if (other == com.google.cloud.designcenter.v1.UpdateSpaceRequest.getDefaultInstance()) + return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasSpace()) { + mergeSpace(other.getSpace()); + } + 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( + internalGetUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(internalGetSpaceFieldBuilder().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.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
+     * Optional. The fields to overwrite in the space update. If you don't provide
+     * a mask, all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Optional. The fields to overwrite in the space update. If you don't provide
+     * a mask, all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The fields to overwrite in the space update. If you don't provide
+     * a mask, all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The fields to overwrite in the space update. If you don't provide
+     * a mask, all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The fields to overwrite in the space update. If you don't provide
+     * a mask, all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The fields to overwrite in the space update. If you don't provide
+     * a mask, all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000001); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The fields to overwrite in the space update. If you don't provide
+     * a mask, all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The fields to overwrite in the space update. If you don't provide
+     * a mask, all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
+     * Optional. The fields to overwrite in the space update. If you don't provide
+     * a mask, all fields are overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private com.google.cloud.designcenter.v1.Space space_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.Space, + com.google.cloud.designcenter.v1.Space.Builder, + com.google.cloud.designcenter.v1.SpaceOrBuilder> + spaceBuilder_; + + /** + * + * + *
+     * Required. The space to update.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Space space = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the space field is set. + */ + public boolean hasSpace() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Required. The space to update.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Space space = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The space. + */ + public com.google.cloud.designcenter.v1.Space getSpace() { + if (spaceBuilder_ == null) { + return space_ == null + ? com.google.cloud.designcenter.v1.Space.getDefaultInstance() + : space_; + } else { + return spaceBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The space to update.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Space space = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSpace(com.google.cloud.designcenter.v1.Space value) { + if (spaceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + space_ = value; + } else { + spaceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The space to update.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Space space = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSpace(com.google.cloud.designcenter.v1.Space.Builder builderForValue) { + if (spaceBuilder_ == null) { + space_ = builderForValue.build(); + } else { + spaceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The space to update.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Space space = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeSpace(com.google.cloud.designcenter.v1.Space value) { + if (spaceBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && space_ != null + && space_ != com.google.cloud.designcenter.v1.Space.getDefaultInstance()) { + getSpaceBuilder().mergeFrom(value); + } else { + space_ = value; + } + } else { + spaceBuilder_.mergeFrom(value); + } + if (space_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The space to update.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Space space = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearSpace() { + bitField0_ = (bitField0_ & ~0x00000002); + space_ = null; + if (spaceBuilder_ != null) { + spaceBuilder_.dispose(); + spaceBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The space to update.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Space space = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.Space.Builder getSpaceBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetSpaceFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The space to update.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Space space = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.designcenter.v1.SpaceOrBuilder getSpaceOrBuilder() { + if (spaceBuilder_ != null) { + return spaceBuilder_.getMessageOrBuilder(); + } else { + return space_ == null + ? com.google.cloud.designcenter.v1.Space.getDefaultInstance() + : space_; + } + } + + /** + * + * + *
+     * Required. The space to update.
+     * 
+ * + * + * .google.cloud.designcenter.v1.Space space = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.Space, + com.google.cloud.designcenter.v1.Space.Builder, + com.google.cloud.designcenter.v1.SpaceOrBuilder> + internalGetSpaceFieldBuilder() { + if (spaceBuilder_ == null) { + spaceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.designcenter.v1.Space, + com.google.cloud.designcenter.v1.Space.Builder, + com.google.cloud.designcenter.v1.SpaceOrBuilder>( + getSpace(), getParentForChildren(), isClean()); + space_ = null; + } + return spaceBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.UpdateSpaceRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.UpdateSpaceRequest) + private static final com.google.cloud.designcenter.v1.UpdateSpaceRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.UpdateSpaceRequest(); + } + + public static com.google.cloud.designcenter.v1.UpdateSpaceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateSpaceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.UpdateSpaceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UpdateSpaceRequestOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UpdateSpaceRequestOrBuilder.java new file mode 100644 index 000000000000..d35d1e09b0db --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UpdateSpaceRequestOrBuilder.java @@ -0,0 +1,111 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/catalog_management_messages.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface UpdateSpaceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.UpdateSpaceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The fields to overwrite in the space update. If you don't provide
+   * a mask, all fields are overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
+   * Optional. The fields to overwrite in the space update. If you don't provide
+   * a mask, all fields are overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
+   * Optional. The fields to overwrite in the space update. If you don't provide
+   * a mask, all fields are overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
+   * Required. The space to update.
+   * 
+ * + * .google.cloud.designcenter.v1.Space space = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the space field is set. + */ + boolean hasSpace(); + + /** + * + * + *
+   * Required. The space to update.
+   * 
+ * + * .google.cloud.designcenter.v1.Space space = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The space. + */ + com.google.cloud.designcenter.v1.Space getSpace(); + + /** + * + * + *
+   * Required. The space to update.
+   * 
+ * + * .google.cloud.designcenter.v1.Space space = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.designcenter.v1.SpaceOrBuilder getSpaceOrBuilder(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UpdatedTemplateRevision.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UpdatedTemplateRevision.java new file mode 100644 index 000000000000..9d3245581e9f --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UpdatedTemplateRevision.java @@ -0,0 +1,1102 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * The updated template revision, which results in an outdated application.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.UpdatedTemplateRevision} + */ +@com.google.protobuf.Generated +public final class UpdatedTemplateRevision extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.UpdatedTemplateRevision) + UpdatedTemplateRevisionOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "UpdatedTemplateRevision"); + } + + // Use UpdatedTemplateRevision.newBuilder() to construct. + private UpdatedTemplateRevision(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdatedTemplateRevision() { + templateRevision_ = ""; + templateDisplayName_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_UpdatedTemplateRevision_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_UpdatedTemplateRevision_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.UpdatedTemplateRevision.class, + com.google.cloud.designcenter.v1.UpdatedTemplateRevision.Builder.class); + } + + private int bitField0_; + public static final int TEMPLATE_REVISION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object templateRevision_ = ""; + + /** + * + * + *
+   * Output only. The details of the updated template revision.
+   * 
+ * + * string template_revision = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The templateRevision. + */ + @java.lang.Override + public java.lang.String getTemplateRevision() { + java.lang.Object ref = templateRevision_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + templateRevision_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The details of the updated template revision.
+   * 
+ * + * string template_revision = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for templateRevision. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTemplateRevisionBytes() { + java.lang.Object ref = templateRevision_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + templateRevision_ = 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. The time when the template was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. The time when the template was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
+   * Output only. The time when the template was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int TEMPLATE_DISPLAY_NAME_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object templateDisplayName_ = ""; + + /** + * + * + *
+   * Output only. The display name of the template. If the display name is not
+   * available, the template resource name is used.
+   * 
+ * + * string template_display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The templateDisplayName. + */ + @java.lang.Override + public java.lang.String getTemplateDisplayName() { + java.lang.Object ref = templateDisplayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + templateDisplayName_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The display name of the template. If the display name is not
+   * available, the template resource name is used.
+   * 
+ * + * string template_display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for templateDisplayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTemplateDisplayNameBytes() { + java.lang.Object ref = templateDisplayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + templateDisplayName_ = 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.GeneratedMessage.isStringEmpty(templateRevision_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, templateRevision_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getCreateTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(templateDisplayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, templateDisplayName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(templateRevision_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, templateRevision_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(templateDisplayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, templateDisplayName_); + } + 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.designcenter.v1.UpdatedTemplateRevision)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.UpdatedTemplateRevision other = + (com.google.cloud.designcenter.v1.UpdatedTemplateRevision) obj; + + if (!getTemplateRevision().equals(other.getTemplateRevision())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (!getTemplateDisplayName().equals(other.getTemplateDisplayName())) 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) + TEMPLATE_REVISION_FIELD_NUMBER; + hash = (53 * hash) + getTemplateRevision().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + hash = (37 * hash) + TEMPLATE_DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getTemplateDisplayName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.UpdatedTemplateRevision parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.UpdatedTemplateRevision 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.designcenter.v1.UpdatedTemplateRevision parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.UpdatedTemplateRevision parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.UpdatedTemplateRevision parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.UpdatedTemplateRevision parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.UpdatedTemplateRevision parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.UpdatedTemplateRevision parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.UpdatedTemplateRevision parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.UpdatedTemplateRevision parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.UpdatedTemplateRevision parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.UpdatedTemplateRevision parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.UpdatedTemplateRevision 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * The updated template revision, which results in an outdated application.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.UpdatedTemplateRevision} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.UpdatedTemplateRevision) + com.google.cloud.designcenter.v1.UpdatedTemplateRevisionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_UpdatedTemplateRevision_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_UpdatedTemplateRevision_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.UpdatedTemplateRevision.class, + com.google.cloud.designcenter.v1.UpdatedTemplateRevision.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.UpdatedTemplateRevision.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + templateRevision_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + templateDisplayName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.DeploymentProto + .internal_static_google_cloud_designcenter_v1_UpdatedTemplateRevision_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.UpdatedTemplateRevision getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.UpdatedTemplateRevision.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.UpdatedTemplateRevision build() { + com.google.cloud.designcenter.v1.UpdatedTemplateRevision result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.UpdatedTemplateRevision buildPartial() { + com.google.cloud.designcenter.v1.UpdatedTemplateRevision result = + new com.google.cloud.designcenter.v1.UpdatedTemplateRevision(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.UpdatedTemplateRevision result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.templateRevision_ = templateRevision_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.templateDisplayName_ = templateDisplayName_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.UpdatedTemplateRevision) { + return mergeFrom((com.google.cloud.designcenter.v1.UpdatedTemplateRevision) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.UpdatedTemplateRevision other) { + if (other == com.google.cloud.designcenter.v1.UpdatedTemplateRevision.getDefaultInstance()) + return this; + if (!other.getTemplateRevision().isEmpty()) { + templateRevision_ = other.templateRevision_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (!other.getTemplateDisplayName().isEmpty()) { + templateDisplayName_ = other.templateDisplayName_; + 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: + { + templateRevision_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + templateDisplayName_ = 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 templateRevision_ = ""; + + /** + * + * + *
+     * Output only. The details of the updated template revision.
+     * 
+ * + * string template_revision = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The templateRevision. + */ + public java.lang.String getTemplateRevision() { + java.lang.Object ref = templateRevision_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + templateRevision_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The details of the updated template revision.
+     * 
+ * + * string template_revision = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for templateRevision. + */ + public com.google.protobuf.ByteString getTemplateRevisionBytes() { + java.lang.Object ref = templateRevision_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + templateRevision_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The details of the updated template revision.
+     * 
+ * + * string template_revision = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The templateRevision to set. + * @return This builder for chaining. + */ + public Builder setTemplateRevision(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + templateRevision_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The details of the updated template revision.
+     * 
+ * + * string template_revision = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearTemplateRevision() { + templateRevision_ = getDefaultInstance().getTemplateRevision(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The details of the updated template revision.
+     * 
+ * + * string template_revision = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for templateRevision to set. + * @return This builder for chaining. + */ + public Builder setTemplateRevisionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + templateRevision_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
+     * Output only. The time when the template was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Output only. The time when the template was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. The time when the template was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The time when the template was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The time when the template was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The time when the template was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The time when the template was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The time when the template was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
+     * Output only. The time when the template was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private java.lang.Object templateDisplayName_ = ""; + + /** + * + * + *
+     * Output only. The display name of the template. If the display name is not
+     * available, the template resource name is used.
+     * 
+ * + * string template_display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The templateDisplayName. + */ + public java.lang.String getTemplateDisplayName() { + java.lang.Object ref = templateDisplayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + templateDisplayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The display name of the template. If the display name is not
+     * available, the template resource name is used.
+     * 
+ * + * string template_display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for templateDisplayName. + */ + public com.google.protobuf.ByteString getTemplateDisplayNameBytes() { + java.lang.Object ref = templateDisplayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + templateDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The display name of the template. If the display name is not
+     * available, the template resource name is used.
+     * 
+ * + * string template_display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The templateDisplayName to set. + * @return This builder for chaining. + */ + public Builder setTemplateDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + templateDisplayName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The display name of the template. If the display name is not
+     * available, the template resource name is used.
+     * 
+ * + * string template_display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearTemplateDisplayName() { + templateDisplayName_ = getDefaultInstance().getTemplateDisplayName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The display name of the template. If the display name is not
+     * available, the template resource name is used.
+     * 
+ * + * string template_display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for templateDisplayName to set. + * @return This builder for chaining. + */ + public Builder setTemplateDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + templateDisplayName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.UpdatedTemplateRevision) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.UpdatedTemplateRevision) + private static final com.google.cloud.designcenter.v1.UpdatedTemplateRevision DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.UpdatedTemplateRevision(); + } + + public static com.google.cloud.designcenter.v1.UpdatedTemplateRevision getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdatedTemplateRevision parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.UpdatedTemplateRevision getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UpdatedTemplateRevisionOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UpdatedTemplateRevisionOrBuilder.java new file mode 100644 index 000000000000..66cdf3069651 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/UpdatedTemplateRevisionOrBuilder.java @@ -0,0 +1,122 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/deployment.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface UpdatedTemplateRevisionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.UpdatedTemplateRevision) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The details of the updated template revision.
+   * 
+ * + * string template_revision = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The templateRevision. + */ + java.lang.String getTemplateRevision(); + + /** + * + * + *
+   * Output only. The details of the updated template revision.
+   * 
+ * + * string template_revision = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for templateRevision. + */ + com.google.protobuf.ByteString getTemplateRevisionBytes(); + + /** + * + * + *
+   * Output only. The time when the template was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
+   * Output only. The time when the template was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
+   * Output only. The time when the template was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The display name of the template. If the display name is not
+   * available, the template resource name is used.
+   * 
+ * + * string template_display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The templateDisplayName. + */ + java.lang.String getTemplateDisplayName(); + + /** + * + * + *
+   * Output only. The display name of the template. If the display name is not
+   * available, the template resource name is used.
+   * 
+ * + * string template_display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for templateDisplayName. + */ + com.google.protobuf.ByteString getTemplateDisplayNameBytes(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ValueLabel.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ValueLabel.java new file mode 100644 index 000000000000..34e643424920 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ValueLabel.java @@ -0,0 +1,784 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Value label for a UI input.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ValueLabel} + */ +@com.google.protobuf.Generated +public final class ValueLabel extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ValueLabel) + ValueLabelOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ValueLabel"); + } + + // Use ValueLabel.newBuilder() to construct. + private ValueLabel(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ValueLabel() { + value_ = ""; + label_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_ValueLabel_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_ValueLabel_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ValueLabel.class, + com.google.cloud.designcenter.v1.ValueLabel.Builder.class); + } + + public static final int VALUE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object value_ = ""; + + /** + * + * + *
+   * Output only. Value of the enum.
+   * 
+ * + * string value = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The value. + */ + @java.lang.Override + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. Value of the enum.
+   * 
+ * + * string value = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for value. + */ + @java.lang.Override + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LABEL_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object label_ = ""; + + /** + * + * + *
+   * Output only. Label of the enum.
+   * 
+ * + * string label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The label. + */ + @java.lang.Override + public java.lang.String getLabel() { + java.lang.Object ref = label_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + label_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. Label of the enum.
+   * 
+ * + * string label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for label. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLabelBytes() { + java.lang.Object ref = label_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + label_ = 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.GeneratedMessage.isStringEmpty(value_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, value_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(label_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, label_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(value_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, value_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(label_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, label_); + } + 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.designcenter.v1.ValueLabel)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ValueLabel other = + (com.google.cloud.designcenter.v1.ValueLabel) obj; + + if (!getValue().equals(other.getValue())) return false; + if (!getLabel().equals(other.getLabel())) 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) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (37 * hash) + LABEL_FIELD_NUMBER; + hash = (53 * hash) + getLabel().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.ValueLabel parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ValueLabel 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.designcenter.v1.ValueLabel parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ValueLabel parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ValueLabel parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ValueLabel parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ValueLabel parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ValueLabel parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ValueLabel parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ValueLabel parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ValueLabel parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ValueLabel parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ValueLabel 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Value label for a UI input.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ValueLabel} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ValueLabel) + com.google.cloud.designcenter.v1.ValueLabelOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_ValueLabel_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_ValueLabel_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ValueLabel.class, + com.google.cloud.designcenter.v1.ValueLabel.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.ValueLabel.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + value_ = ""; + label_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_ValueLabel_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ValueLabel getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ValueLabel.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ValueLabel build() { + com.google.cloud.designcenter.v1.ValueLabel result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ValueLabel buildPartial() { + com.google.cloud.designcenter.v1.ValueLabel result = + new com.google.cloud.designcenter.v1.ValueLabel(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.ValueLabel result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.value_ = value_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.label_ = label_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.ValueLabel) { + return mergeFrom((com.google.cloud.designcenter.v1.ValueLabel) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.ValueLabel other) { + if (other == com.google.cloud.designcenter.v1.ValueLabel.getDefaultInstance()) return this; + if (!other.getValue().isEmpty()) { + value_ = other.value_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getLabel().isEmpty()) { + label_ = other.label_; + 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: + { + value_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + label_ = 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 value_ = ""; + + /** + * + * + *
+     * Output only. Value of the enum.
+     * 
+ * + * string value = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The value. + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Value of the enum.
+     * 
+ * + * string value = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for value. + */ + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Value of the enum.
+     * 
+ * + * string value = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Value of the enum.
+     * 
+ * + * string value = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearValue() { + value_ = getDefaultInstance().getValue(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Value of the enum.
+     * 
+ * + * string value = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for value to set. + * @return This builder for chaining. + */ + public Builder setValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object label_ = ""; + + /** + * + * + *
+     * Output only. Label of the enum.
+     * 
+ * + * string label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The label. + */ + public java.lang.String getLabel() { + java.lang.Object ref = label_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + label_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Label of the enum.
+     * 
+ * + * string label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for label. + */ + public com.google.protobuf.ByteString getLabelBytes() { + java.lang.Object ref = label_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + label_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Label of the enum.
+     * 
+ * + * string label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The label to set. + * @return This builder for chaining. + */ + public Builder setLabel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + label_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Label of the enum.
+     * 
+ * + * string label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearLabel() { + label_ = getDefaultInstance().getLabel(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Label of the enum.
+     * 
+ * + * string label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for label to set. + * @return This builder for chaining. + */ + public Builder setLabelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + label_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ValueLabel) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ValueLabel) + private static final com.google.cloud.designcenter.v1.ValueLabel DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.ValueLabel(); + } + + public static com.google.cloud.designcenter.v1.ValueLabel getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ValueLabel parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ValueLabel getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ValueLabelInput.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ValueLabelInput.java new file mode 100644 index 000000000000..aaba34ae6dd6 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ValueLabelInput.java @@ -0,0 +1,785 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +/** + * + * + *
+ * Value label input for a UI.
+ * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ValueLabelInput} + */ +@com.google.protobuf.Generated +public final class ValueLabelInput extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.designcenter.v1.ValueLabelInput) + ValueLabelInputOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ValueLabelInput"); + } + + // Use ValueLabelInput.newBuilder() to construct. + private ValueLabelInput(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ValueLabelInput() { + value_ = ""; + label_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_ValueLabelInput_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_ValueLabelInput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ValueLabelInput.class, + com.google.cloud.designcenter.v1.ValueLabelInput.Builder.class); + } + + public static final int VALUE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object value_ = ""; + + /** + * + * + *
+   * Optional. Value of the enum.
+   * 
+ * + * string value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The value. + */ + @java.lang.Override + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Value of the enum.
+   * 
+ * + * string value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for value. + */ + @java.lang.Override + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LABEL_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object label_ = ""; + + /** + * + * + *
+   * Optional. Label of the enum.
+   * 
+ * + * string label = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The label. + */ + @java.lang.Override + public java.lang.String getLabel() { + java.lang.Object ref = label_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + label_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Label of the enum.
+   * 
+ * + * string label = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for label. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLabelBytes() { + java.lang.Object ref = label_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + label_ = 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.GeneratedMessage.isStringEmpty(value_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, value_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(label_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, label_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(value_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, value_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(label_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, label_); + } + 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.designcenter.v1.ValueLabelInput)) { + return super.equals(obj); + } + com.google.cloud.designcenter.v1.ValueLabelInput other = + (com.google.cloud.designcenter.v1.ValueLabelInput) obj; + + if (!getValue().equals(other.getValue())) return false; + if (!getLabel().equals(other.getLabel())) 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) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (37 * hash) + LABEL_FIELD_NUMBER; + hash = (53 * hash) + getLabel().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.designcenter.v1.ValueLabelInput parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ValueLabelInput 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.designcenter.v1.ValueLabelInput parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ValueLabelInput parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ValueLabelInput parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.designcenter.v1.ValueLabelInput parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ValueLabelInput parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ValueLabelInput parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ValueLabelInput parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ValueLabelInput parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.designcenter.v1.ValueLabelInput parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.designcenter.v1.ValueLabelInput parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.designcenter.v1.ValueLabelInput 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Value label input for a UI.
+   * 
+ * + * Protobuf type {@code google.cloud.designcenter.v1.ValueLabelInput} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.designcenter.v1.ValueLabelInput) + com.google.cloud.designcenter.v1.ValueLabelInputOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_ValueLabelInput_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_ValueLabelInput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.designcenter.v1.ValueLabelInput.class, + com.google.cloud.designcenter.v1.ValueLabelInput.Builder.class); + } + + // Construct using com.google.cloud.designcenter.v1.ValueLabelInput.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + value_ = ""; + label_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.designcenter.v1.MetadataProto + .internal_static_google_cloud_designcenter_v1_ValueLabelInput_descriptor; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ValueLabelInput getDefaultInstanceForType() { + return com.google.cloud.designcenter.v1.ValueLabelInput.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ValueLabelInput build() { + com.google.cloud.designcenter.v1.ValueLabelInput result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.designcenter.v1.ValueLabelInput buildPartial() { + com.google.cloud.designcenter.v1.ValueLabelInput result = + new com.google.cloud.designcenter.v1.ValueLabelInput(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.designcenter.v1.ValueLabelInput result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.value_ = value_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.label_ = label_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.designcenter.v1.ValueLabelInput) { + return mergeFrom((com.google.cloud.designcenter.v1.ValueLabelInput) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.designcenter.v1.ValueLabelInput other) { + if (other == com.google.cloud.designcenter.v1.ValueLabelInput.getDefaultInstance()) + return this; + if (!other.getValue().isEmpty()) { + value_ = other.value_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getLabel().isEmpty()) { + label_ = other.label_; + 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: + { + value_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + label_ = 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 value_ = ""; + + /** + * + * + *
+     * Optional. Value of the enum.
+     * 
+ * + * string value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The value. + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Value of the enum.
+     * 
+ * + * string value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for value. + */ + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Value of the enum.
+     * 
+ * + * string value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Value of the enum.
+     * 
+ * + * string value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearValue() { + value_ = getDefaultInstance().getValue(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Value of the enum.
+     * 
+ * + * string value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for value to set. + * @return This builder for chaining. + */ + public Builder setValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object label_ = ""; + + /** + * + * + *
+     * Optional. Label of the enum.
+     * 
+ * + * string label = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The label. + */ + public java.lang.String getLabel() { + java.lang.Object ref = label_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + label_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Label of the enum.
+     * 
+ * + * string label = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for label. + */ + public com.google.protobuf.ByteString getLabelBytes() { + java.lang.Object ref = label_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + label_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Label of the enum.
+     * 
+ * + * string label = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The label to set. + * @return This builder for chaining. + */ + public Builder setLabel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + label_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Label of the enum.
+     * 
+ * + * string label = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearLabel() { + label_ = getDefaultInstance().getLabel(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Label of the enum.
+     * 
+ * + * string label = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for label to set. + * @return This builder for chaining. + */ + public Builder setLabelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + label_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.designcenter.v1.ValueLabelInput) + } + + // @@protoc_insertion_point(class_scope:google.cloud.designcenter.v1.ValueLabelInput) + private static final com.google.cloud.designcenter.v1.ValueLabelInput DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.designcenter.v1.ValueLabelInput(); + } + + public static com.google.cloud.designcenter.v1.ValueLabelInput getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ValueLabelInput parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.designcenter.v1.ValueLabelInput getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ValueLabelInputOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ValueLabelInputOrBuilder.java new file mode 100644 index 000000000000..f6b151dbc9e7 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ValueLabelInputOrBuilder.java @@ -0,0 +1,80 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ValueLabelInputOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ValueLabelInput) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Value of the enum.
+   * 
+ * + * string value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The value. + */ + java.lang.String getValue(); + + /** + * + * + *
+   * Optional. Value of the enum.
+   * 
+ * + * string value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for value. + */ + com.google.protobuf.ByteString getValueBytes(); + + /** + * + * + *
+   * Optional. Label of the enum.
+   * 
+ * + * string label = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The label. + */ + java.lang.String getLabel(); + + /** + * + * + *
+   * Optional. Label of the enum.
+   * 
+ * + * string label = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for label. + */ + com.google.protobuf.ByteString getLabelBytes(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ValueLabelOrBuilder.java b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ValueLabelOrBuilder.java new file mode 100644 index 000000000000..1c49a3cb15bd --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/java/com/google/cloud/designcenter/v1/ValueLabelOrBuilder.java @@ -0,0 +1,80 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/designcenter/v1/metadata.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.designcenter.v1; + +@com.google.protobuf.Generated +public interface ValueLabelOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.designcenter.v1.ValueLabel) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Value of the enum.
+   * 
+ * + * string value = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The value. + */ + java.lang.String getValue(); + + /** + * + * + *
+   * Output only. Value of the enum.
+   * 
+ * + * string value = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for value. + */ + com.google.protobuf.ByteString getValueBytes(); + + /** + * + * + *
+   * Output only. Label of the enum.
+   * 
+ * + * string label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The label. + */ + java.lang.String getLabel(); + + /** + * + * + *
+   * Output only. Label of the enum.
+   * 
+ * + * string label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for label. + */ + com.google.protobuf.ByteString getLabelBytes(); +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/apphub_integration.proto b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/apphub_integration.proto new file mode 100644 index 000000000000..ba90262c9136 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/apphub_integration.proto @@ -0,0 +1,51 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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.designcenter.v1; + +import "google/api/field_behavior.proto"; + +option csharp_namespace = "Google.Cloud.DesignCenter.V1"; +option go_package = "cloud.google.com/go/designcenter/apiv1/designcenterpb;designcenterpb"; +option java_multiple_files = true; +option java_outer_classname = "ApphubIntegrationProto"; +option java_package = "com.google.cloud.designcenter.v1"; +option php_namespace = "Google\\Cloud\\DesignCenter\\V1"; +option ruby_package = "Google::Cloud::DesignCenter::V1"; + +// UnregisteredResource represents a GCP resource that failed to register and +// apphub was not able to discover. +message UnregisteredResource { + // Output only. The deployed GCP resource that failed to register. + DeployedResource deployed_resource = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The reason for the failure of registration. + string reason = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// DeployedResource represents a single deployed GCP resource. +message DeployedResource { + // Required. The full resource name of the deployed GCP resource. + // Example: projects/my-project/locations/us-central1-a/instances/my-instance + string resource_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The project ID of the deployed resource. + string project = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The location of the deployed resource. + string location = 3 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/apphub_integration_messages.proto b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/apphub_integration_messages.proto new file mode 100644 index 000000000000..ed171cba0303 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/apphub_integration_messages.proto @@ -0,0 +1,79 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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.designcenter.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/designcenter/v1/apphub_integration.proto"; + +option csharp_namespace = "Google.Cloud.DesignCenter.V1"; +option go_package = "cloud.google.com/go/designcenter/apiv1/designcenterpb;designcenterpb"; +option java_multiple_files = true; +option java_outer_classname = "ApphubIntegrationRpcMessagesProto"; +option java_package = "com.google.cloud.designcenter.v1"; +option php_namespace = "Google\\Cloud\\DesignCenter\\V1"; +option ruby_package = "Google::Cloud::DesignCenter::V1"; + +// Request message for RegisterAppHubApplicationResources method. +message RegisterAppHubApplicationResourcesRequest { + // The Terraform state (tfstate) source. + oneof tfstate_source { + // Optional. The Terraform state (tfstate) content as a raw string. + // For large state files exceeding 10MB, use the 'tfstate_signed_gcs_uri' + // field instead. + string tfstate_content = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A securely signed Cloud Storage URI pointing to the tfstate + // file. The URI must be signed to grant the service temporary read access + // to the state file. Application Design Center imposes a limit on the + // maximum size of the state file accessed via this URI. + string tfstate_signed_gcs_uri = 3 [(google.api.field_behavior) = OPTIONAL]; + } + + // Required. The parent location. + // Format: projects/{project}/locations/{location} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Required. The name of the AppHub Application. + // Format: + // projects/{project}/locations/{location}/applications/{application} + string apphub_application = 4 [(google.api.field_behavior) = REQUIRED]; +} + +// Response message for RegisterAppHubApplicationResources method. +message RegisterAppHubApplicationResourcesResponse { + // The response for the registration of deployed resources of a given AppHub + // application. + DeployedResourceResponse response = 1; +} + +// Common response message for the resource registration methods. +message DeployedResourceResponse { + // The App Hub application name. + string apphub_application = 1; + + // The list of successfully registered GCP resources. + repeated string registered_resources = 2; + + // The list of unregistered GCP resources with error details. + repeated UnregisteredResource unregistered_resources = 3; +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/assessment.proto b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/assessment.proto new file mode 100644 index 000000000000..923ad37caa5a --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/assessment.proto @@ -0,0 +1,477 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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.designcenter.v1; + +import "google/api/field_behavior.proto"; +import "google/cloud/designcenter/v1/parameters.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.DesignCenter.V1"; +option go_package = "cloud.google.com/go/designcenter/apiv1/designcenterpb;designcenterpb"; +option java_multiple_files = true; +option java_outer_classname = "AssessmentProto"; +option java_package = "com.google.cloud.designcenter.v1"; +option php_namespace = "Google\\Cloud\\DesignCenter\\V1"; +option ruby_package = "Google::Cloud::DesignCenter::V1"; + +// The assessment report for each domain. +message DomainAssessmentReport { + // Information on how to redirect to domain. + message DomainRedirectInfo { + // Required. URL to the domain page. + string url = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Text to display in UI on the redirect URL. + string url_text = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Flag to open the URL in new tab. Default: false. + bool open_in_same_tab = 3 [(google.api.field_behavior) = OPTIONAL]; + } + + // Status of domain assessment report. + enum Status { + // No status specified. + STATUS_UNSPECIFIED = 0; + + // Pending domain assessment. + PENDING = 1; + + // Complete domain assessment. + COMPLETED = 2; + + // Failed domain assessment. + FAILED = 3; + } + + // Optional. The report name as per Application Design Center. + string report_name = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The ID of the domain. + string domain_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time at which the report was created. + google.protobuf.Timestamp create_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time at which the report was last updated. + google.protobuf.Timestamp update_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Status of assessment report. + Status status = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Specific information and metadata. + AdcMetadata adc_metadata = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. List of frameworks assessed and their findings. + repeated AssessedFramework assessed_frameworks = 14 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. Additional information about the report. + string additional_info = 11 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. List of asset types skipped during assessment. + repeated string skipped_asset_types = 12 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Information on how to redirect to domain. + DomainRedirectInfo domain_redirect_info = 13 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Score card associated with the report. + ScoreCard report_score = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Score card associated with the report. +message ScoreCard { + // Required. Calculated score of the report. + int32 report_score = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Maximum score of the report. + // For example, for a score of 75/100, report_score is 75 and max_score is + // 100. + int32 max_score = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Minimum score required to pass assessment. + int32 min_score_required = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Average score for similar reports. + int32 average_score = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Condition for applying the policy. Accepts the `criticality` +// and `environment` parameters from the application template. +message ApplyCondition { + // Required. The key of the parameter for the condition. + string condition_key = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The value of the parameter for the condition. + string condition_value = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Domains skipped during the best practice assessment. +message SkippedDomain { + // Reason for skipping the domain from assessment. + enum Reason { + // No reason specified. + REASON_UNSPECIFIED = 0; + + // Domain is unavailable. + UNAVAILABLE = 1; + + // Domain assessment failed. + FAILURE = 2; + + // Domain assessment timed out. + TIMEOUT = 3; + } + + // Output only. Details of the domain skipped. + Domain domain = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Reason for skipping the domain from assessment. + Reason skip_reason = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Domain for assessment. +message Domain { + // Required. The domain name. Uniquely identifies the domain. + string domain_name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The domain display name is user friendly name used for UI. + string display_name = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The domain description. + string description = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The frameworks that are applicable in this domain. + repeated Framework frameworks = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Whether the domain is inactive. + // Default: false. + bool inactive = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Framework for assessment. +message Framework { + // Enum for deployment status of a framework. + enum DeploymentStatus { + // Deployment status unspecified. + DEPLOYMENT_STATUS_UNSPECIFIED = 0; + + // Framework is deployed. + DEPLOYED = 1; + + // Framework is undeployed. + UNDEPLOYED = 2; + } + + // Required. The framework name. + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The major revision id of the framework. + int32 major_revision_id = 11 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The domain to which this framework belongs. + Domain parent_domain = 9 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The framework display name. + string display_name = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The framework description. + string description = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The URL to a framework. + string url = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Whether the framework is active. + bool active = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The cloud controls that are associated with the framework. + repeated CloudControl cloud_control_details = 12 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The deployment status of the framework. + DeploymentStatus deployment_status = 10 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Indicates if the framework is defined in the managed project. + // Only managed-project frameworks can be manually attached. + bool managed_project_applicable = 13 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Cloud control for a framework. +message CloudControl { + // Enum for enforcement mode of a cloud control. + enum EnforcementMode { + // Enforcement type unspecified. + ENFORCEMENT_MODE_UNSPECIFIED = 0; + + // The cloud control is enforced to prevent non-compliance. + PREVENTIVE = 1; + + // The cloud control is enforced to detect non-compliance. + DETECTIVE = 2; + + // The cloud control is enforced to audit for non-compliance. + AUDIT = 3; + } + + // Required. The name of the cloud control. + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The description of the cloud control. + string description = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The major revision id of the cloud control. + int32 major_revision_id = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The enforcement mode of the cloud control. + EnforcementMode enforcement_mode = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The specifications of the parameters supported by the cloud + // control. + repeated ParameterSpec parameter_specs = 5 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The parameter values that are already configured for the cloud + // control, if any. Used to pre-populate the parameter values presented to the + // user. + repeated Parameter parameters = 6 [(google.api.field_behavior) = OPTIONAL]; +} + +// The specification of a parameter that can be configured on a cloud control +// or a framework. +message ParameterSpec { + // The type of value that the parameter accepts. + enum ValueType { + // Default. This value is unused. + VALUE_TYPE_UNSPECIFIED = 0; + + // A string value. + STRING = 3; + + // A boolean value. + BOOLEAN = 4; + + // A list of string values. + STRINGLIST = 5; + + // A numeric value. + NUMBER = 6; + + // Exactly one of the sub-parameters must be provided. + ONEOF = 7; + } + + // Required. The key of the parameter, matching + // [Parameter.key][google.cloud.designcenter.v1.Parameter.key] of the + // value supplied for it. + string key = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The parameter display name, which is a user friendly name used + // for UI. + string display_name = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The parameter description. + string description = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Whether a value must be provided for the parameter. + bool required = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The type of value that the parameter accepts. + ValueType value_type = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The default value of the parameter, used when the user does not + // provide one. + google.protobuf.Value default_value = 6 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The specifications of the sub-parameters. Only set when + // `value_type` is `ONEOF`. + repeated ParameterSpec sub_parameter_specs = 8 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Application Design Center specific information and metadata. +message AdcMetadata { + // Application or ApplicationTemplate URI + oneof app_uri { + // Output only. Application URI + string application_uri = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. ApplicationTemplate URI + string application_template_uri = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Space URI + string space_uri = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. CatalogTemplateRevision URI + string catalog_template_revision_uri = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } +} + +// Framework assessed and their findings. +message AssessedFramework { + // Required. The framework that was assessed. + Framework framework = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. A list of every Finding found during the assessment. + repeated AssessmentFinding findings = 2 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. Score card associated with the report. + ScoreCard score_card = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Whether the framework was skipped during assessment. + bool skipped = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Reason for skipping the framework during assessment. + string skipped_reason = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Details of an Assessment Finding. +message AssessmentFinding { + // Metadata related to the Application Design Center with the finding. + message FindingADCMetadata { + // Output only. Component the finding belongs to. + string component_name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // The type of finding. + enum Type { + // Default value. This value is unused. + TYPE_UNSPECIFIED = 0; + + // Warning finding. Deployment will not be blocked. + WARNING = 1; + + // Error finding. Deployment will be blocked on ERROR. + ERROR = 2; + } + + // The severity of a finding. + enum Severity { + // Default value. This value is unused. + SEVERITY_UNSPECIFIED = 0; + + // Critical severity. + CRITICAL = 1; + + // High severity. + HIGH = 2; + + // Medium severity. + MEDIUM = 3; + + // Low severity. + LOW = 4; + } + + // Next steps related to the findings. + oneof next_step { + // Optional. A description of the steps that users can take to fix the + // finding. + RemediationStep remediation_step = 6 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Additional details about the finding. + oneof additional_details { + // Optional. A description of the additional details about finding. + string additional_notes = 10 [(google.api.field_behavior) = OPTIONAL]; + } + + // Output only. The Finding ID. + string id = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The framework that was assessed. + string assessed_framework_id = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Metadata related to the Application Design Center with the + // finding. + FindingADCMetadata adc_metadata = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. The type of the finding. Findings can be informational, + // warning, or error. + Type finding_type = 4 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The severity of the finding. + Severity severity = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Required. Details of the Cloud Asset Inventory asset that was assessed. + AssetDetails assessed_asset = 7 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Details of the framework that was assessed. + Framework assessed_framework = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Description of the finding. + string description = 9 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Link to the findings, if persisted by the domain. + string findings_uri = 11 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. SCC related metadata for the finding. + SCCMetadata scc_metadata = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// SCC metadata for the assessment finding. +message SCCMetadata { + // Optional. The SCC finding class. Also known as category. + string finding_class = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The SCC finding type. + string finding_type = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Details of a Cloud Asset Inventory asset that caused the finding. +message AssetDetails { + // Required. Information about the Cloud Asset Inventory asset that the + // framework is assessed against. The full resource name of the asset in CAIS + // format. + // + // For details about the format of the full resource name for each asset type, + // see [Resource name + // format] + // (https://cloud.google.com/asset-inventory/docs/resource-name-format). + string asset_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The type of Cloud Asset Inventory asset. For a list of asset + // types, see [Supported asset + // types](https://cloud.google.com/asset-inventory/docs/supported-asset-types). + string asset_type = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Remediation steps that can be taken to rectify the finding. +message RemediationStep { + // Required. A description of the steps that users can take to remediate the + // findings. + repeated string remediation_steps = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. Remediation documentation URL. + string remediation_documentation_url = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Any other note related to the remediation. + string note = 3 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/authoring.proto b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/authoring.proto new file mode 100644 index 000000000000..e4b06ad02db5 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/authoring.proto @@ -0,0 +1,565 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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.designcenter.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/apphub/v1/application.proto"; +import "google/cloud/apphub/v1/attributes.proto"; +import "google/cloud/designcenter/v1/assessment.proto"; +import "google/cloud/designcenter/v1/deployment.proto"; +import "google/cloud/designcenter/v1/enums.proto"; +import "google/cloud/designcenter/v1/export.proto"; +import "google/cloud/designcenter/v1/metadata.proto"; +import "google/cloud/designcenter/v1/parameters.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.DesignCenter.V1"; +option go_package = "cloud.google.com/go/designcenter/apiv1/designcenterpb;designcenterpb"; +option java_multiple_files = true; +option java_outer_classname = "AuthoringResourcesProto"; +option java_package = "com.google.cloud.designcenter.v1"; +option php_namespace = "Google\\Cloud\\DesignCenter\\V1"; +option ruby_package = "Google::Cloud::DesignCenter::V1"; + +// Application template resource. +message ApplicationTemplate { + option (google.api.resource) = { + type: "designcenter.googleapis.com/ApplicationTemplate" + pattern: "projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}" + plural: "applicationTemplates" + singular: "applicationTemplate" + }; + + // The IaC format of the application template. + enum IACFormat { + // IaC format is unspecified. + IAC_FORMAT_UNSPECIFIED = 0; + + // IaC format is Terraform. + TERRAFORM = 1; + + // IaC format is Helm. + HELM = 2; + } + + // Identifier. Application template name. + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Optional. Application template display name. + string display_name = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Application template description. + string description = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Application template creation timestamp. + google.protobuf.Timestamp create_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Application template update timestamp. + google.protobuf.Timestamp update_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Parameters to apply to all components in an application. You can + // specify projectID and region. + repeated Parameter application_parameters = 6 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The IaC format of the application template. + IACFormat iac_format = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The serialized application template. + SerializedApplicationTemplate serialized_application_template = 11 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The latest application template revision. + string latest_revision = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Details of the location where the IaC for this + // ApplicationTemplate was last successfully exported. + ArtifactLocation artifact_location = 14 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Immutable. The composition type of the applicationTemplate: + // STANDARD OR COMPOSITE. This is a create time only param. + ApplicationCompositionType composition_type = 15 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Optional. Root level input variables of the application template. + repeated ComponentVariable root_input_variables = 16 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Root level output variables of the application template. + repeated ComponentVariable root_output_variables = 17 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. SaaS runtime context for the application template. + SaaSRuntimeContext saas_runtime_context = 18 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The URI of the most recent System Revision generated for this + // ApplicationTemplate. This ID corresponds to the `name` field in the + // ApplicationTemplateSystemRevision resource. + string latest_system_revision_uri = 19 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "designcenter.googleapis.com/ApplicationTemplateSystemRevision" + } + ]; + + // Output only. Indicates the IaC source format of this application template. + IACSource iac_source = 20 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The input output variables parsed from the imported terraform + // code. + TFBlueprintMetadata template_metadata = 21 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. If true, exposes all inputs as root module variables. + // This is only supported for STANDARD composition type templates. + bool inputs_as_root_module_variables = 22 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Serialized application template. +message SerializedApplicationTemplate { + // Optional. The application template URI. + string uri = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The application template display name. + string display_name = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The application template description. + string description = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Parameters to apply to all components in the application + // template. + repeated Parameter application_parameters = 4 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The IaC format of the application template. + ApplicationTemplate.IACFormat iac_format = 7 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The application template components. + repeated SerializedComponent components = 8 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The App Hub application parameters. + AppHubApplicationParameters apphub_application_parameters = 10 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Whether the application template is compatible with regional + // scope. + bool has_global_resource = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The composition type of the applicationTemplate: STANDARD OR + // COMPOSITE. + ApplicationCompositionType composition_type = 12 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Root level input variables of the application template. + repeated ComponentVariable root_input_variables = 13 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Root level output variables of the application template. + repeated ComponentVariable root_output_variables = 14 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. SaaS runtime context for the application template. + SaaSRuntimeContext saas_runtime_context = 15 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Policies of the application template. + repeated SerializedPolicy serialized_policies = 16 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Custom provider configurations imported from IaC. + repeated SerializedProvider providers = 17 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Custom variables imported from variables.tf. + repeated TerraformInput custom_variables = 18 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Custom variable values imported from terraform.tfvars. + repeated Parameter custom_tfvars = 19 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If true, exposes all inputs as root module variables. + // This is only supported for STANDARD composition type templates. + bool inputs_as_root_module_variables = 20 + [(google.api.field_behavior) = OPTIONAL]; +} + +// App Hub application parameters. +message AppHubApplicationParameters { + // Optional. The App Hub application ID. + string application_id = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The App Hub application scope. + google.cloud.apphub.v1.Scope scope = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The App Hub application attributes. + google.cloud.apphub.v1.Attributes attributes = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The App Hub application location. Only used for applications with + // REGIONAL scope. + string location = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The host project ID where the App Hub application is created. + string host_project_id = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Input variable alias mapping for a component in a composite application +// template. +message InputVariableAlias { + // Required. Name of the input variable inside the component's underlying + // template or module. + string variable = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Alias for the variable name to be exposed at the root level of + // the composite template. + string alias = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Serialized component. +message SerializedComponent { + // Optional. The component URI. + string uri = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The shared template used to generate the component. + string shared_template_revision_uri = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The component parameters. + repeated Parameter parameters = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The component connections. + repeated SerializedConnection connections = 4 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. IAM roles required by the service account to deploy the + // component. + repeated string roles = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. APIs required to be enabled to deploy the component, in the form + // of "*.googleapis.com". + repeated string apis = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The component display name. + string display_name = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The connection parameters of the component. + repeated ConnectionParameters connections_parameters = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The component parameter schema, which includes possible + // parameter values. + repeated ComponentParameterSchema component_parameter_schema = 9 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The application associated with the component. + ComponentApplicationInfo application_info = 10 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Whether the component is exported as a separate terraform root + // module in a composite application template. If this is false, then native + // components will be exported as a submodule of a separate terraform root + // module. + bool use_as_root_module = 11 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Input variable aliases defined for this serialized component. + repeated InputVariableAlias input_variable_aliases = 12 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The application template revision used to generate the component. + string application_template_revision_uri = 13 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Serialized connection. +message SerializedConnection { + // Optional. The connection URI. + string uri = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The destination component URI used to generate the connection. + string destination_component_uri = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The parameters of the connection associated with the source + // component. + repeated Parameter source_component_parameters = 4 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The parameters of the connection associated with the destination + // component. + repeated Parameter destination_component_parameters = 5 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The type of the connection (data or logical). + ConnectionDependencyType dependency_type = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Serialized policy. +message SerializedPolicy { + // The serialized policy type. + enum PolicyType { + // Default. + POLICY_TYPE_UNSPECIFIED = 0; + + // Compliance framework policy. + COMPLIANCE_FRAMEWORK = 1; + } + + // Source uri of the policy or the policy revision. + oneof source_uri { + // Optional. URI of the policy. + string policy_uri = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. URI of the policy revision. + string policy_revision_uri = 6 [(google.api.field_behavior) = OPTIONAL]; + } + + // Required. The uri of the policy in application template. + // Format: + // `projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/policies/{policy}` + string uri = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The serialized policy display name. + // The number of characters should be less than 128 characters. + string display_name = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The serialized policy description. + // At most 2048 characters. + string description = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Required. Policy type will be used to determine the domain of the policy. + PolicyType policy_type = 4 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The serialized policy apply conditions. + repeated ApplyCondition apply_conditions = 7 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Stored parameter values grouped by cloud control. + repeated CloudControlConfig cloud_control_configs = 8 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Application template revision resource. +message ApplicationTemplateRevision { + option (google.api.resource) = { + type: "designcenter.googleapis.com/ApplicationTemplateRevision" + pattern: "projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/revisions/{revision}" + plural: "applicationTemplateRevisions" + singular: "applicationTemplateRevision" + }; + + // Identifier. The application template revision name. + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. The application template revision creation timestamp. + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The serialized application template. + SerializedApplicationTemplate snapshot = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Details of the location where the IaC for this + // ApplicationTemplate Revision was last successfully exported. + ArtifactLocation artifact_location = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The input output variables parsed from the imported terraform + // code. + TFBlueprintMetadata template_metadata = 21 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The values provided for the input variables. + repeated Parameter application_parameters = 22 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Indicates the IaC source format of this application template + // revision. + IACSource iac_source = 23 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Application template system revision resource. +message ApplicationTemplateSystemRevision { + option (google.api.resource) = { + type: "designcenter.googleapis.com/ApplicationTemplateSystemRevision" + pattern: "projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/systemRevisions/{system_revision}" + plural: "applicationTemplateSystemRevisions" + singular: "applicationTemplateSystemRevision" + }; + + // Identifier. The application template system revision name. + // Format: + // projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/systemRevisions/{system_revision} + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. The application template system revision creation timestamp. + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Annotations from agentic workflows or other system processes. + // For example: + // { + // "designcenter.googleapis.com/agent_id": "gemini-3-flash-v1", + // "designcenter.googleapis.com/llm_agent_summary": "Added a Cloud SQL + // instance", "designcenter.googleapis.com/external_ref_id": + // "trace-uuid-88921-xyz" + // } + map annotations = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The serialized application template snapshot at this revision. + SerializedApplicationTemplate snapshot = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Component resource. +message Component { + option (google.api.resource) = { + type: "designcenter.googleapis.com/Component" + pattern: "projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/components/{component}" + plural: "components" + singular: "component" + }; + + // Identifier. The component name. + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Required. Immutable. The shared template used to generate the component. + string shared_template_revision_uri = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Optional. The component parameters. + repeated Parameter parameters = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The component creation timestamp. + google.protobuf.Timestamp create_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The component update timestamp. + google.protobuf.Timestamp update_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. IAM roles required by the service account to deploy the + // component. + repeated string roles = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. APIs required to be enabled to deploy the component, in the + // form of "*.googleapis.com". + repeated string apis = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The component display name. + string display_name = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The connection parameters of the component. + repeated ConnectionParameters connections_parameters = 9 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The component parameter schema, which includes possible + // parameter values. values. + repeated ComponentParameterSchema component_parameter_schema = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The application associated with the component. + ComponentApplicationInfo application_info = 11 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Whether the component is exported as a separate terraform root + // module in a composite application template. If this is false, then native + // components will be exported as a submodule of a separate terraform root + // module. + bool use_as_root_module = 12 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Input variable aliases defined on this live component. + repeated InputVariableAlias input_variable_aliases = 13 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The application template revision used to generate the component. + string application_template_revision_uri = 14 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Connection resource. +message Connection { + option (google.api.resource) = { + type: "designcenter.googleapis.com/Connection" + pattern: "projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/components/{component}/connections/{connection}" + plural: "connections" + singular: "connection" + }; + + // Identifier. The connection name. + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Required. The destination component URI used to generate the connection. + // Format is + // `projects/$project/locations/$location/spaces/$space/applicationTemplates/$application_template/components/$component` + string destination_component_uri = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "designcenter.googleapis.com/Component" + } + ]; + + // Output only. The connection creation timestamp. + google.protobuf.Timestamp create_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The connection update timestamp. + google.protobuf.Timestamp update_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The parameters of the connection associated with the source + // component. + repeated Parameter source_component_parameters = 6 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The parameters of the connection associated with the destination + // component. + repeated Parameter destination_component_parameters = 7 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The type of the connection (data or logical). + ConnectionDependencyType dependency_type = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Represents a serialized Terraform provider configuration. +message SerializedProvider { + // Required. Name of the provider (e.g., `"google"`, `"google-beta"`, + // `"google-nightly"`). + string provider = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Optional alias for the provider (supports multi-region setups). + string provider_alias = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Configuration parameters of the provider. Reuses the standard + // Parameter message. + repeated Parameter parameters = 3 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/authoring_messages.proto b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/authoring_messages.proto new file mode 100644 index 000000000000..d25ab843e967 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/authoring_messages.proto @@ -0,0 +1,806 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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.designcenter.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/designcenter/v1/authoring.proto"; +import "google/cloud/designcenter/v1/export.proto"; +import "google/cloud/designcenter/v1/iac.proto"; +import "google/cloud/designcenter/v1/ingestion.proto"; +import "google/protobuf/field_mask.proto"; + +option csharp_namespace = "Google.Cloud.DesignCenter.V1"; +option go_package = "cloud.google.com/go/designcenter/apiv1/designcenterpb;designcenterpb"; +option java_multiple_files = true; +option java_outer_classname = "AuthoringRpcMessagesProto"; +option java_package = "com.google.cloud.designcenter.v1"; +option php_namespace = "Google\\Cloud\\DesignCenter\\V1"; +option ruby_package = "Google::Cloud::DesignCenter::V1"; + +// Message for requesting a list of application templates. +message ListApplicationTemplatesRequest { + // Required. The parent resource from which to list application templates. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "designcenter.googleapis.com/ApplicationTemplate" + } + ]; + + // Optional. The maximum number of results to return from this request. + // Non-positive + // values are ignored. The presence of nextPageToken in the response + // indicates that more results might be available. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If present, then retrieve the next batch of results from the + // preceding call to this method. pageToken must be the value of nextPageToken + // from the previous response. The values of other method parameters should be + // identical to those in the previous call. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A filter that chooses which shared template revisions to return. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. How the results should be sorted. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Message for response to listing application templates. +message ListApplicationTemplatesResponse { + // The list of application templates. + repeated ApplicationTemplate application_templates = 1; + + // If there might be more results than those appearing in this response, then + // nextPageToken is included. To get the next set of results, call this method + // again using the value of nextPageToken as pageToken. + string next_page_token = 2; + + // Locations that could not be reached. + repeated string unreachable = 3; +} + +// Message for getting an application template. +message GetApplicationTemplateRequest { + // Required. The application template name. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "designcenter.googleapis.com/ApplicationTemplate" + } + ]; +} + +// Message for creating an application template. +message CreateApplicationTemplateRequest { + // Required. The parent resource in which to create the application template. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "designcenter.googleapis.com/ApplicationTemplate" + } + ]; + + // Required. The ID of the application template to create. + string application_template_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The application template to create. + ApplicationTemplate application_template = 3 + [(google.api.field_behavior) = REQUIRED]; +} + +// Message for updating an application template. +message UpdateApplicationTemplateRequest { + // Optional. The fields to overwrite in the application template update. The + // fields specified in the update_mask are relative to the resource, not the + // full request. A field will be overwritten if it is in the mask. If you + // don't provide a mask, all fields are overwritten. + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. The application template to update. + ApplicationTemplate application_template = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Message for deleting an application template. +message DeleteApplicationTemplateRequest { + // Required. The application template name. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "designcenter.googleapis.com/ApplicationTemplate" + } + ]; + + // Optional. If set to true, the application template's children are also + // deleted. If false, the application template is only deleted if it has no + // children. + bool force = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for CommitApplicationTemplate method. +message CommitApplicationTemplateRequest { + // Required. The name of the application template. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "designcenter.googleapis.com/ApplicationTemplate" + } + ]; +} + +// Message for snapshotting an application template asynchronously. +message SnapshotApplicationTemplateRequest { + // Required. The name of the application template. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "designcenter.googleapis.com/ApplicationTemplate" + } + ]; +} + +// Response message for snapshotting an application template asynchronously. +message SnapshotApplicationTemplateResponse { + // The created application template revision. + ApplicationTemplateRevision application_template_revision = 1; +} + +// Request message for ImportApplicationTemplate method. +message ImportApplicationTemplateRequest { + // The source for setting application template components/connections. + oneof source { + // Optional. The source URI for application template revision. + string application_template_revision_uri = 3 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "designcenter.googleapis.com/ApplicationTemplateRevision" + } + ]; + + // Optional. The source URI for catalog template. + string shared_template_revision_uri = 4 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "designcenter.googleapis.com/SharedTemplateRevision" + } + ]; + + // Optional. The serialized application template to be imported. + SerializedApplicationTemplate serialized_application_template = 5 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The system revision to be imported. Used when user tries to + // Restore (rev X) or perform Undo/Redo operations. + string application_template_system_revision = 6 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "designcenter.googleapis.com/ApplicationTemplateSystemRevision" + } + ]; + } + + // Required. The name of the application template. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "designcenter.googleapis.com/ApplicationTemplate" + } + ]; + + // Optional. Annotations to be stored with the new system revision created as + // a result of this import. Sample annotations from agentic workflows might + // look like + // { + // "designcenter.googleapis.com/agent_id": "gemini-3-flash-v1", + // "designcenter.googleapis.com/llm_agent_summary": "Restored to revision + // Rev-100", "designcenter.googleapis.com/external_ref_id": + // "trace-uuid-88921-xyz", + // } + map annotations = 7 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for GenerateApplicationTemplateRevisionIaC method. +message GenerateApplicationTemplateRevisionIaCRequest { + // The IaC format to generate. + enum IACFormat { + // IaC format is unspecified. + IAC_FORMAT_UNSPECIFIED = 0; + + // IaC format is Terraform. + TERRAFORM = 1; + + // IaC format is HELM. + HELM = 2; + } + + // Required. The name of the application template revision. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "designcenter.googleapis.com/ApplicationTemplateRevision" + } + ]; + + // Optional. The IaC format to generate. + IACFormat iac_format = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specifies the destination for the generated IaC, which can be + // Cloud Storage or a Developer Connect repository. + ArtifactLocation artifact_location = 3 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for GenerateApplicationTemplateRevisionIaC method. +message GenerateApplicationTemplateRevisionIaCResponse { + // The destination where the generated IaC was written. + ArtifactLocation artifact_location = 1; + + // Root modules metadata of the application template revision. + RootModulesMetadata root_modules_metadata = 2; +} + +// Request message for GenerateApplicationTemplateIaC method. +message GenerateApplicationTemplateIaCRequest { + // The IaC format to generate. + enum IACFormat { + // IaC format is unspecified. + IAC_FORMAT_UNSPECIFIED = 0; + + // IaC format is Terraform. + TERRAFORM = 1; + + // IaC format is HELM. + HELM = 2; + } + + // Required. The name of the application template. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "designcenter.googleapis.com/ApplicationTemplate" + } + ]; + + // Optional. The IaC format to generate. + IACFormat iac_format = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. DEPRECATED: Use the 'artifact_location' field instead. + // The Cloud Storage URI to write the generated IaC to. + string gcs_uri = 3 + [deprecated = true, (google.api.field_behavior) = OPTIONAL]; + + // Optional. Specifies the destination for the generated IaC, which can be + // Cloud Storage or a Developer Connect repository. + ArtifactLocation artifact_location = 4 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for GenerateApplicationTemplateIaC method. +message GenerateApplicationTemplateIaCResponse { + // DEPRECATED: Use the 'artifact_location' field instead. + // The Cloud Storage URI of the generated IaC. + string gcs_uri = 1 [deprecated = true]; + + // The destination where the generated IaC was written. + ArtifactLocation artifact_location = 2; + + // Root modules metadata of the application template. + RootModulesMetadata root_modules_metadata = 3; +} + +// Request message for ExportApplicationTemplateIaC method. +message ExportApplicationTemplateIaCRequest { + // Required. The name of the application template. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "designcenter.googleapis.com/ApplicationTemplate" + } + ]; + + // Optional. Specifies the destination for the generated IaC, which can be + // Cloud Storage or a Developer Connect repository. + // Default is Google Cloud Storage. + ArtifactLocation artifact_location = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Configuration for exporting IaC. + ExportIaCConfig export_iac_config = 5 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for ExportApplicationTemplateIaC method. +message ExportApplicationTemplateIaCResponse { + // The destination where the generated IaC was written. + ArtifactLocation artifact_location = 1; + + // Root modules metadata of the application template. + RootModulesMetadata root_modules_metadata = 2; +} + +// Request message for ExportApplicationTemplateRevisionIaC method. +message ExportApplicationTemplateRevisionIaCRequest { + // Required. The name of the application template revision. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "designcenter.googleapis.com/ApplicationTemplateRevision" + } + ]; + + // Optional. Specifies the destination for the generated IaC, which can be + // Cloud Storage or a Developer Connect repository. + // Default is Google Cloud Storage. + ArtifactLocation artifact_location = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Configuration for exporting IaC. + ExportIaCConfig export_iac_config = 5 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for ExportApplicationTemplateRevisionIaC method. +message ExportApplicationTemplateRevisionIaCResponse { + // The destination where the generated IaC was written. + ArtifactLocation artifact_location = 1; + + // Root modules metadata of the application template revision. + RootModulesMetadata root_modules_metadata = 2; +} + +// Request message for ImportApplicationTemplateIaC method. +message ImportApplicationTemplateIaCRequest { + // The source location of terraform code. + oneof source { + // Optional. The Cloud Storage URI of the terraform code. + string gcs_uri = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The IaC module to import. + IaCModule iac_module = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Configuration for fetching content from source code repository + // such as GitHub or Bitbucket through Developer Connect. + DeveloperConnectSourceConfig developer_connect_source_config = 7 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Required. The name of the application template. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "designcenter.googleapis.com/ApplicationTemplate" + } + ]; + + // Optional. If set to true, partially imports the valid edits in the IaC and + // ignores the invalid changes. Defaults to false, which means any edits which + // can't be imported must result in an error. + bool allow_partial_import = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If set to true, the IaC is validated against the golden terraform + // without importing. Defaults to false. + bool validate_iac = 6 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for ImportApplicationTemplateIaC method. +message ImportApplicationTemplateIaCResponse { + // State of Import. + enum State { + // Default. + STATE_UNSPECIFIED = 0; + + // The import was successful. + SUCCEEDED = 1; + + // The import failed. + FAILED = 2; + } + + // Application template corresponding to the imported IaC. + ApplicationTemplate application_template = 1; + + // Errors encountered during import. + repeated ImportIaCError errors = 2; + + // The state of the import. + State state = 3; +} + +// Request message for IngestApplicationTemplateIaC method. +message IngestApplicationTemplateIaCRequest { + // The source location of terraform code. + oneof source { + // Optional. The Cloud Storage URI of the terraform code. + string gcs_uri = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The IaC configuration to import. + IaCModule iac_module = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Configuration for fetching content from source code repository + // such as GitHub or Bitbucket through Developer Connect. + DeveloperConnectSourceConfig devconnect_source_config = 4 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The git source. + GitSource git_source = 5 [(google.api.field_behavior) = OPTIONAL]; + } + + // Required. The name of the application template. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "designcenter.googleapis.com/ApplicationTemplate" + } + ]; + + // Optional. If set to true, validates if the imported IaC is compatible with + // the catalog. + bool validate_catalog_compatibility = 6 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If set to true, imports the IaC as raw terraform and does not + // attempt SAT conversion. + bool raw_terraform_import_enabled = 7 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for IngestApplicationTemplateIaC method. +message IngestApplicationTemplateIaCResponse { + // Application template corresponding to the imported IaC. + ApplicationTemplate application_template = 1; + + // Errors encountered during import. + repeated ImportIaCError errors = 2; + + // The state of the import. + ImportApplicationTemplateIaCResponse.State state = 3; +} + +// Message for requesting a list of components. +message ListComponentsRequest { + // Required. The parent resource from which the list of components is + // requested. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "designcenter.googleapis.com/Component" + } + ]; + + // Optional. The maximum number of results to return from this request. + // Non-positive + // values are ignored. The presence of nextPageToken in the response + // indicates that more results might be available. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If present, then retrieve the next batch of results from the + // preceding call to this method. pageToken must be the value of nextPageToken + // from the previous response. The values of other method parameters should be + // identical to those in the previous call. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A filter that chooses which components to return. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. How the results should be sorted. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Message for response to listing components. +message ListComponentsResponse { + // The list of components. + repeated Component components = 1; + + // If there might be more results than those appearing in this response, then + // nextPageToken is included. To get the next set of results, call this method + // again using the value of nextPageToken as pageToken. + string next_page_token = 2; + + // Locations that could not be reached. + repeated string unreachable = 3; +} + +// Message for getting a component. +message GetComponentRequest { + // Required. The component name. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "designcenter.googleapis.com/Component" + } + ]; +} + +// Message for creating a component. +message CreateComponentRequest { + // Required. The parent resource in which to create the component. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "designcenter.googleapis.com/Component" + } + ]; + + // Required. The ID of the component to create. + string component_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The component to create. + Component component = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Message for updating a component. +message UpdateComponentRequest { + // Optional. The fields to overwrite in the component update. If you don't + // provide a mask, all fields are overwritten. + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. The component to update. + Component component = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Message for deleting a component. +message DeleteComponentRequest { + // Required. The component name. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "designcenter.googleapis.com/Component" + } + ]; + + // Optional. If set to true, the component's children are also deleted. If + // false, the component is only deleted if it has no children. + bool force = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Message for requesting a list of connections. +message ListConnectionsRequest { + // Required. The parent resource from which to request a list of connections. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "designcenter.googleapis.com/Connection" + } + ]; + + // Optional. The maximum number of results to return from this request. + // Non-positive values are ignored. The presence of nextPageToken in the + // response indicates that more results might be available. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If present, then retrieve the next batch of results from the + // preceding call to this method. pageToken must be the value of nextPageToken + // from the previous response. The values of other method parameters should be + // identical to those in the previous call. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A filter that chooses which connections to return. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. How the results should be sorted. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Message for response to listing connections. +message ListConnectionsResponse { + // The list of connections. + repeated Connection connections = 1; + + // If there might be more results than those appearing in this response, then + // nextPageToken is included. To get the next set of results, call this method + // again using the value of nextPageToken as pageToken. + string next_page_token = 2; + + // Locations that could not be reached. + repeated string unreachable = 3; +} + +// Message for getting a connection. +message GetConnectionRequest { + // Required. Name of the resource + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "designcenter.googleapis.com/Connection" + } + ]; +} + +// Message for creating a connection. +message CreateConnectionRequest { + // Required. The parent resource in which to create a connection. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "designcenter.googleapis.com/Connection" + } + ]; + + // Required. The ID of the connection to create. + string connection_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The connection to create. + Connection connection = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Message for updating a connection. +message UpdateConnectionRequest { + // Optional. Fields to overwrite in the connection update. + // The fields specified in the update_mask are relative to the resource, not + // the full request. A field will be overwritten if it is in the mask. If you + // don't provide a mask, all fields are overwritten. + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. The connection to update. + Connection connection = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Message for deleting a connection. +message DeleteConnectionRequest { + // Required. The connection name. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "designcenter.googleapis.com/Connection" + } + ]; +} + +// Request message for ImportSerializedApplicationTemplate. +message ImportSerializedApplicationTemplateRequest { + // Required. The name of the application template. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "designcenter.googleapis.com/ApplicationTemplate" + } + ]; + + // Required. The serialized application template to be imported. + SerializedApplicationTemplate serialized_application_template = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Message for requesting a list of application template revisions. +message ListApplicationTemplateRevisionsRequest { + // Required. The parent from which to list application template revisions. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "designcenter.googleapis.com/ApplicationTemplateRevision" + } + ]; + + // Optional. The maximum number of results to return from this request. + // Non-positive + // values are ignored. The presence of nextPageToken in the response + // indicates that more results might be available. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If present, then retrieve the next batch of results from the + // preceding call to this method. pageToken must be the value of nextPageToken + // from the previous response. The values of other method parameters should be + // identical to those in the previous call. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A filter that chooses which application template revisions to + // return. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. How the results should be sorted. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Message for response to listing application template revisions. +message ListApplicationTemplateRevisionsResponse { + // The list of application template revisions. + repeated ApplicationTemplateRevision application_template_revisions = 1; + + // If there might be more results than those appearing in this response, then + // nextPageToken is included. To get the next set of results, call this method + // again using the value of nextPageToken as pageToken. + string next_page_token = 2; + + // Locations that could not be reached. + repeated string unreachable = 3; +} + +// Message for getting an application template revision. +message GetApplicationTemplateRevisionRequest { + // Required. The application template revision name. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "designcenter.googleapis.com/ApplicationTemplateRevision" + } + ]; +} + +// Message for deleting an application template revision. +message DeleteApplicationTemplateRevisionRequest { + // Required. The application template revision name. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "designcenter.googleapis.com/ApplicationTemplateRevision" + } + ]; +} + +// Message for requesting a list of application template system revisions. +message ListApplicationTemplateSystemRevisionsRequest { + // Required. The parent Application Template from which to list the system + // revisions. Format: + // projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "designcenter.googleapis.com/ApplicationTemplateSystemRevision" + } + ]; + + // Optional. The maximum number of system revisions to return. The service may + // return fewer than this value. If unspecified, at most 50 system revisions + // will be returned. The maximum value is 1000; values above 1000 will be + // coerced to 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If present, then retrieve the next batch of results from the + // preceding call to this method. pageToken must be the value of nextPageToken + // from the previous response. The values of other method parameters should be + // identical to those in the previous call. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A filter expression that filters system revisions listed in the + // response. See https://google.aip.dev/160 for more information on the + // grammar. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Message for response to listing application template system revisions. +message ListApplicationTemplateSystemRevisionsResponse { + // The list of application template system revisions. + repeated ApplicationTemplateSystemRevision + application_template_system_revisions = 1; + + // If there might be more results than those appearing in this response, then + // nextPageToken is included. To get the next set of results, call this method + // again using the value of nextPageToken as pageToken. + string next_page_token = 2; + + // Unordered list. Locations that could not be reached. + repeated string unreachable = 3 + [(google.api.field_behavior) = UNORDERED_LIST]; +} + +// Message for getting an ApplicationTemplateSystemRevision. +message GetApplicationTemplateSystemRevisionRequest { + // Required. The name of the ApplicationTemplateSystemRevision to retrieve. + // Format: + // projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/systemRevisions/{system_revision} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "designcenter.googleapis.com/ApplicationTemplateSystemRevision" + } + ]; +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/best_practices.proto b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/best_practices.proto new file mode 100644 index 000000000000..43cd0cce0c40 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/best_practices.proto @@ -0,0 +1,134 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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.designcenter.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/designcenter/v1/assessment.proto"; +import "google/cloud/designcenter/v1/parameters.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.DesignCenter.V1"; +option go_package = "cloud.google.com/go/designcenter/apiv1/designcenterpb;designcenterpb"; +option java_multiple_files = true; +option java_outer_classname = "BestPracticesResourcesProto"; +option java_package = "com.google.cloud.designcenter.v1"; +option php_namespace = "Google\\Cloud\\DesignCenter\\V1"; +option ruby_package = "Google::Cloud::DesignCenter::V1"; + +// Aggregated assessment report from all domains. +message AssessmentReport { + // Resource associated with the report. + oneof adc_resource_uri { + // Output only. Application URI. + string adc_application_uri = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Application Template URI. + string adc_application_template_uri = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Catalog Template URI. + string adc_catalog_template_uri = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Space URI. + string adc_space_uri = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Output only. Generated best practice reports. + repeated DomainAssessmentReport domain_assessment_reports = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Skipped domains. + repeated SkippedDomain skipped_domains = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time at which the report was created. + google.protobuf.Timestamp create_time = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// A Policy is a resource within an Application Template that refers to a Policy +// that you author outside of Application Design Center and attach to an +// application template. +message Policy { + option (google.api.resource) = { + type: "designcenter.googleapis.com/Policy" + pattern: "projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/policies/{policy}" + plural: "policies" + singular: "policy" + }; + + // The policy type. + enum PolicyType { + // Default. + POLICY_TYPE_UNSPECIFIED = 0; + + // Compliance framework policy. + COMPLIANCE_FRAMEWORK = 1; + } + + // URI of the policy or the policy revision. + oneof uri { + // Optional. URI of the policy. + string policy_uri = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. URI of the policy revision. + string policy_revision_uri = 6 [(google.api.field_behavior) = OPTIONAL]; + } + + // Identifier. The policy name in the following format: + // `projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate/policies/$policy` + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Optional. The policy display name. + string display_name = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The policy description. + string description = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The policy type. + // Policy type is used to determine the domain of the policy. + PolicyType policy_type = 4 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Conditions for applying the policy. Condition accepts the + // `criticality` and `environment` parameters from the application template. + repeated ApplyCondition apply_conditions = 7 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The policy creation timestamp. + google.protobuf.Timestamp create_time = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The policy update timestamp. + google.protobuf.Timestamp update_time = 9 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Input only. Parameter values for the cloud controls of the + // policy's framework, grouped by cloud control. Only honored when framework + // parameter support is enabled for the project; ignored otherwise. + // + // The values are saved with the application template and are not returned on + // the policy. On update, they replace the saved values. If they are empty, + // the saved values are cleared if `cloud_control_configs` is named in the + // update mask. Otherwise, the saved values are kept, unless the policy's + // framework changes. + repeated CloudControlConfig cloud_control_configs = 10 [ + (google.api.field_behavior) = INPUT_ONLY, + (google.api.field_behavior) = OPTIONAL + ]; +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/best_practices_messages.proto b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/best_practices_messages.proto new file mode 100644 index 000000000000..034af8bdc3d7 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/best_practices_messages.proto @@ -0,0 +1,298 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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.designcenter.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/config/v1/config.proto"; +import "google/cloud/designcenter/v1/assessment.proto"; +import "google/cloud/designcenter/v1/best_practices.proto"; +import "google/protobuf/field_mask.proto"; + +option csharp_namespace = "Google.Cloud.DesignCenter.V1"; +option go_package = "cloud.google.com/go/designcenter/apiv1/designcenterpb;designcenterpb"; +option java_multiple_files = true; +option java_outer_classname = "BestPracticesRpcMessagesProto"; +option java_package = "com.google.cloud.designcenter.v1"; +option php_namespace = "Google\\Cloud\\DesignCenter\\V1"; +option ruby_package = "Google::Cloud::DesignCenter::V1"; + +// Message for fetching an application assessment report. +message FetchApplicationAssessmentReportRequest { + // Required. The application name in the following format: + // `projects/$project/locations/$location/spaces/$space/applications/$application` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "designcenter.googleapis.com/Application" + } + ]; +} + +// Message for response of fetching an application assessment report. +message FetchApplicationAssessmentReportResponse { + // Assessment report for the application. + AssessmentReport assessment_report = 1; +} + +// Message for generating an application assessment report. +message GenerateApplicationAssessmentReportRequest { + // Required. The application name in the following format: + // `projects/$project/locations/$location/spaces/$space/applications/$application` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "designcenter.googleapis.com/Application" + } + ]; +} + +// Response for GenerateApplicationAssessmentReport. +message GenerateApplicationAssessmentReportResponse { + // Output only. Best practices by Design Assessment report + AssessmentReport assessment_report = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Message for generate assessment report application template. +message GenerateApplicationTemplateAssessmentReportRequest { + // Required. The application template name in the following format: + // `projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "designcenter.googleapis.com/ApplicationTemplate" + } + ]; + + // Optional. Deprecated: This field is no longer used since we moved to fast + // plan assessment. + // + // - This service account will be used to execute the preview + // process. + // - The caller must have the 'iam.serviceAccounts.actAs' permission on this + // service account. + // Format: projects/{PROJECT}/serviceAccounts/{EMAIL_ADDRESS} + string service_account = 2 + [deprecated = true, (google.api.field_behavior) = OPTIONAL]; +} + +// Response for GenerateAssessmentReport for application template. +message GenerateApplicationTemplateAssessmentReportResponse { + // Deprecated: This field is no longer used since we moved to fast plan + // assessment. + // Infrastructure Manager preview. + google.cloud.config.v1.Preview preview = 1 [deprecated = true]; + + // Best practices by Design Assessment report + AssessmentReport assessment_report = 2; +} + +// Deprecated: Use GenerateTerraformPlanAssessmentReportRequest instead. +// +// Message for the request to generate a best practice report for a given +// Terraform plan. +message GenerateAssessmentReportRequest { + option deprecated = true; + + // Required. Terraform plan bytes. + bytes terraform_plan = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Additional Frameworks to run assessment against. If empty, run + // against default frameworks. Frameworks refers to the policies. + repeated string additional_frameworks = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. The name of the space at which Generate Assessment Report is + // called. Format: `projects/$project/locations/$location/spaces/$space` + string space_name = 3 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "designcenter.googleapis.com/Space" + } + ]; +} + +// Deprecated: Use GenerateTerraformPlanAssessmentReportResponse instead. +// +// Response for GenerateAssessmentReport. +message GenerateAssessmentReportResponse { + option deprecated = true; + + // Aggregated assessment report from all domains. + AssessmentReport assessment_report = 1; +} + +// Message for the request to generate a best practice report for a given +// Terraform plan at the collection level. +message GenerateTerraformPlanAssessmentReportRequest { + // Required. The parent resource in which to generate the assessment report. + // Format: projects/$project/locations/$location/spaces/$space + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "designcenter.googleapis.com/Space" + } + ]; + + // Required. The raw JSON representation of the generated Terraform plan, + // provided as bytes. + bytes terraform_plan = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Additional Frameworks to run assessment against. If empty, run + // against default frameworks. Frameworks refers to the policies. + repeated string additional_frameworks = 3 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Response for GenerateTerraformPlanAssessmentReport. +message GenerateTerraformPlanAssessmentReportResponse { + // Aggregated assessment report from all domains. + AssessmentReport assessment_report = 1; +} + +// Request for FetchFrameworks rpc +message FetchFrameworksRequest { + // Required. The parent resource name. + // Format: projects/{project}/locations/{location} + string parent = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Projects to fetch frameworks for. + // Format: projects/{project} + repeated string projects = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The maximum number of results to return from this request. + // Non-positive values are ignored. The presence of nextPageToken in the + // response indicates that more results might be available. + int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If present, then retrieve the next batch of results from the + // preceding call to this method. pageToken must be the value of nextPageToken + // from the previous response. The values of other method parameters should be + // identical to those in the previous call. + string page_token = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Filter for frameworks list. + string filter = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response for FetchFrameworks rpc +message FetchFrameworksResponse { + // The list of frameworks. + repeated Framework frameworks = 1; + + // A token, which 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; +} + +// Message for getting a policy. +message GetPolicyRequest { + // Required. The policy name in the following format: + // `projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate/policies/$policy` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "designcenter.googleapis.com/Policy" + } + ]; +} + +// Message for requesting a list of policies. +message ListPoliciesRequest { + // Required. The parent application template from which policies are listed in + // the following format: + // `projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "designcenter.googleapis.com/Policy" + } + ]; + + // Optional. The maximum number of results to return from this request. + // Non-positive values are ignored. The presence of nextPageToken in the + // response indicates that more results might be available. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If present, retrieve the next batch of results from the preceding + // call to this method. pageToken must be the value of nextPageToken from the + // previous response. The values of other method parameters should be + // identical to those in the previous call. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A filter that chooses which policies to return. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. How the results should be sorted. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Message for response to listing policies. +message ListPoliciesResponse { + // A list of policies. + repeated Policy policies = 1; + + // If there might be more results than those appearing in this response, then + // nextPageToken is included. To get the next set of results, call this method + // again using the value of nextPageToken as pageToken. + string next_page_token = 2; +} + +// Message for creating a policy. +message CreatePolicyRequest { + // Required. The parent resource in which to create the policy in the + // following format: + // `projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "designcenter.googleapis.com/Policy" + } + ]; + + // Required. The ID of the policy to create. + string policy_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The policy to create. + Policy policy = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Message for updating a policy. +message UpdatePolicyRequest { + // Optional. The fields to overwrite in the policy update. The fields + // specified in the update_mask are relative to the resource, not the full + // request. A field will be overwritten if it is in the mask. If you don't + // provide a mask, all fields are overwritten. + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. The policy to update. + Policy policy = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Message for deleting a policy. +message DeletePolicyRequest { + // Required. The policy name in the following format: + // `projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate/policies/$policy` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "designcenter.googleapis.com/Policy" + } + ]; +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/catalog_management.proto b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/catalog_management.proto new file mode 100644 index 000000000000..eb7e269af0fa --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/catalog_management.proto @@ -0,0 +1,285 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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.designcenter.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/designcenter/v1/authoring.proto"; +import "google/cloud/designcenter/v1/enums.proto"; +import "google/cloud/designcenter/v1/ingestion.proto"; +import "google/cloud/designcenter/v1/metadata.proto"; +import "google/cloud/designcenter/v1/parameters.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.DesignCenter.V1"; +option go_package = "cloud.google.com/go/designcenter/apiv1/designcenterpb;designcenterpb"; +option java_multiple_files = true; +option java_outer_classname = "CatalogManagementResourcesProto"; +option java_package = "com.google.cloud.designcenter.v1"; +option php_namespace = "Google\\Cloud\\DesignCenter\\V1"; +option ruby_package = "Google::Cloud::DesignCenter::V1"; + +// Space is a top level resource for managing teams building applications +// through Application Design Center. +message Space { + option (google.api.resource) = { + type: "designcenter.googleapis.com/Space" + pattern: "projects/{project}/locations/{location}/spaces/{space}" + plural: "spaces" + singular: "space" + }; + + // Identifier. The space name. + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Optional. Display name for the space. + string display_name = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Description for the space. + string description = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Space creation timestamp. + google.protobuf.Timestamp create_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Space update timestamp + google.protobuf.Timestamp update_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Flag to enable Google opinionated shared templates. + optional bool enable_gcp_shared_templates = 6 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. An existing Google Cloud Storage bucket that you want to use + // instead of creating a new bucket during Application Design Center setup. If + // not provided, a default bucket is created during setup. The bucket must + // exist in the same project as the space. If the bucket name does not exist + // in the same project as the space, the request fails with an + // INVALID_ARGUMENT error. If you do not have access to the bucket, the + // request fails with a PERMISSION_DENIED error. Format: {$bucket_name} For + // example, if the Cloud Storage bucket URI is gs:\/\/{$bucket_name}, the + // format is {$bucket_name}. + string gcs_bucket = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Input only. Immutable. Tags are key/values bound to space + // resource. Example: + // ``` + // "123/environment": "production" + // "123/costCenter": "marketing" + // ``` + // + // For more information on tag creation and management, see + // https://cloud.google.com/resource-manager/docs/tags/tags-overview. + map tags = 8 [ + (google.api.field_behavior) = INPUT_ONLY, + (google.api.field_behavior) = IMMUTABLE, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// A catalog is a collection of templates. +message Catalog { + option (google.api.resource) = { + type: "designcenter.googleapis.com/Catalog" + pattern: "projects/{project}/locations/{location}/spaces/{space}/catalogs/{catalog}" + plural: "catalogs" + singular: "catalog" + }; + + // Identifier. The catalog name in the following format: + // `projects/$project/locations/$location/spaces/$space/catalogs/$catalog` + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Optional. The catalog display name. + string display_name = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The catalog description. + string description = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The catalog creation timestamp. + google.protobuf.Timestamp create_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The catalog update timestamp. + google.protobuf.Timestamp update_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// A template inside a catalog. +message CatalogTemplate { + option (google.api.resource) = { + type: "designcenter.googleapis.com/CatalogTemplate" + pattern: "projects/{project}/locations/{location}/spaces/{space}/catalogs/{catalog}/templates/{catalog_template}" + plural: "catalogTemplates" + singular: "catalogTemplate" + }; + + // Identifier. The catalog template name in following format: + // `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template` + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Optional. The display name of a catalog template. + string display_name = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The catalog template description. + string description = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The template revisions UUID. + string uuid = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The catalog template creation timestamp. + google.protobuf.Timestamp create_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The catalog template update timestamp. + google.protobuf.Timestamp update_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Latest revision of the template. + string latest_revision_id = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. The category of the Application Design Center application + // template. + TemplateCategory template_category = 8 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. The Application Design Center application template type. + TemplateType type = 9 [(google.api.field_behavior) = OPTIONAL]; +} + +// Template revisions inside a catalog. +message CatalogTemplateRevision { + option (google.api.resource) = { + type: "designcenter.googleapis.com/CatalogTemplateRevision" + pattern: "projects/{project}/locations/{location}/spaces/{space}/catalogs/{catalog}/templates/{catalog_template}/revisions/{revision}" + plural: "catalogTemplateRevisions" + singular: "catalogTemplateRevision" + }; + + // The template state. + enum State { + // Default. + STATE_UNSPECIFIED = 0; + + // The template is being validated. + VALIDATING = 1; + + // The template is ready to be used. + ACTIVE = 2; + + // The template is invalid. + INVALID = 3; + } + + // The artifact location of the Terraform in the template. + oneof artifact_location { + // Optional. The git source. + GitSource git_source = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Deprecated: Added new field tf_module_gcs_uri. + // The Cloud Storage URI, which must be in the format gs://[bucket] or + // gs://[bucket]/[object]. + string gcs_source_uri = 20 + [deprecated = true, (google.api.field_behavior) = OPTIONAL]; + + // Optional. The application template revision source. + string application_template_revision_source = 11 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "designcenter.googleapis.com/ApplicationTemplateRevision" + } + ]; + + // Optional. Configuration for fetching content from source code repository + // such as GitHub or Bitbucket through Developer Connect. + DeveloperConnectSourceConfig developer_connect_source_config = 15 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The Open Container Initiative (OCI) repo source that contains + // helm charts. + OciRepo oci_repo = 17 [(google.api.field_behavior) = OPTIONAL]; + } + + // Identifier. The catalog template revision name. + // `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template/revisions/$revision` + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Optional. The catalog template revision description. + string description = 14 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The Application Design Center application template type. + TemplateType type = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The catalog template creation timestamp. + google.protobuf.Timestamp create_time = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The catalog template update timestamp. + google.protobuf.Timestamp update_time = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Template metadata related to Terraform input and output. + TFBlueprintMetadata template_metadata = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The template state (validating/ready/invalid). + State state = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The application template revision. + SerializedApplicationTemplate application_template_revision = 12 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The helm chart metadata. + HelmChartMetadata helm_chart_metadata = 16 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. UUID of the template revision. + string uuid = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Metadata input. + MetadataInput metadata_input = 18 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The category of the template. + TemplateCategory template_category = 19 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The Product Main logical product type information. + repeated LogicalProduct logical_products = 21 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The annotations of the template revision. + // Key is the annotation name. Value is the annotation value. + map annotations = 22 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Metadata that was automatically inferred from the template + // content. This field can be updated by the system as it gets new + // information. + InferredMetadata inferred_metadata = 23 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The resource types present in the template revision. + repeated ResourceType resource_types = 24 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Indicates the IaC source format of this catalog template + // revision. + IACSource iac_source = 27 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The values provided for the input variables. + repeated Parameter application_parameters = 28 + [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/catalog_management_messages.proto b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/catalog_management_messages.proto new file mode 100644 index 000000000000..47e51e83de7d --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/catalog_management_messages.proto @@ -0,0 +1,459 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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.designcenter.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/designcenter/v1/best_practices.proto"; +import "google/cloud/designcenter/v1/catalog_management.proto"; +import "google/cloud/designcenter/v1/iac.proto"; +import "google/protobuf/field_mask.proto"; + +option csharp_namespace = "Google.Cloud.DesignCenter.V1"; +option go_package = "cloud.google.com/go/designcenter/apiv1/designcenterpb;designcenterpb"; +option java_multiple_files = true; +option java_outer_classname = "CatalogManagementRpcMessagesProto"; +option java_package = "com.google.cloud.designcenter.v1"; +option php_namespace = "Google\\Cloud\\DesignCenter\\V1"; +option ruby_package = "Google::Cloud::DesignCenter::V1"; + +// Message for requesting a list of spaces. +message ListSpacesRequest { + // Required. The name of the parent resource, for which spaces are listed. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "designcenter.googleapis.com/Space" + } + ]; + + // Optional. The maximum number of pages to return from this request. + // If unspecified, the value automatically reflects the number of results + // returned. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If present, retrieve the next batch of results from the preceding + // call to this method. pageToken must be the value of nextPageToken from the + // previous response. The values of other method parameters should be + // identical to those in the previous call. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A filter that chooses which spaces to return. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. How the results are sorted. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Results returned from projects.locations.spaces.list. +message ListSpacesResponse { + // A list of spaces. + repeated Space spaces = 1; + + // If there might be more results than those appearing in this response, + // nextPageToken is included. To get the next set of results, call this method + // again using the value of nextPageToken as pageToken. + string next_page_token = 2; + + // Unordered list. Locations that could not be reached. + repeated string unreachable = 3 + [(google.api.field_behavior) = UNORDERED_LIST]; +} + +// Results returned from projects.locations.spaces.get. +message GetSpaceRequest { + // Required. The space name. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "designcenter.googleapis.com/Space" + } + ]; +} + +// Message for creating a space. +message CreateSpaceRequest { + // Required. The parent in which to create a space. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "designcenter.googleapis.com/Space" + } + ]; + + // Required. The ID of the space to create. + string space_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The space to create. + Space space = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Message for updating a space. +message UpdateSpaceRequest { + // Optional. The fields to overwrite in the space update. If you don't provide + // a mask, all fields are overwritten. + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. The space to update. + Space space = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Message for deleting a space. +message DeleteSpaceRequest { + // Required. The space name. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "designcenter.googleapis.com/Space" + } + ]; + + // Optional. If set to true, the space's children are also deleted. If false, + // the space is only deleted if it has no children. + bool force = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Message for getting a catalog. +message GetCatalogRequest { + // Required. The catalog name in the following format: + // `projects/$project/locations/$location/spaces/$space/catalogs/$catalog` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "designcenter.googleapis.com/Catalog" + } + ]; +} + +// Message for requesting a list of catalogs. +message ListCatalogsRequest { + // Required. The parent space from which catalogs are listed. + // Format: `projects/$project/locations/$location/spaces/$space` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "designcenter.googleapis.com/Catalog" + } + ]; + + // Optional. The maximum number of results to return from this request. + // Non-positive values are ignored. The presence of nextPageToken in the + // response indicates that more results might be available. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If present, retrieve the next batch of results from the preceding + // call to this method. pageToken must be the value of nextPageToken from the + // previous response. The values of other method parameters should be + // identical to those in the previous call. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A filter that chooses which catalogs to return. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. How the results should be sorted. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Results returned from catalogs.list. +message ListCatalogsResponse { + // A list of catalogs + repeated Catalog catalogs = 1; + + // If there might be more results than those appearing in this response, + // nextPageToken is included. To get the next set of results, call this method + // again using the value of nextPageToken as pageToken. + string next_page_token = 2; +} + +// Message for creating a catalog. +message CreateCatalogRequest { + // Required. The parent space in which a catalog is created in the following + // format: `projects/$project/locations/$location/spaces/$space` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "designcenter.googleapis.com/Catalog" + } + ]; + + // Required. The ID of the catalog to create. + string catalog_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The catalog to create. + Catalog catalog = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Message for updating a catalog. +message UpdateCatalogRequest { + // Optional. The fields to overwrite in the catalog update. If you don't + // provide a mask, all fields are overwritten. + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. The catalog to update. + Catalog catalog = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Message for deleting a catalog. +message DeleteCatalogRequest { + // Required. The catalog name in the following format: + // `projects/$project/locations/$location/spaces/$space/catalogs/$catalog` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "designcenter.googleapis.com/Catalog" + } + ]; + + // Optional. If set to true, the catalog's children are also deleted. If + // false, the catalog is only deleted if it has no children. + bool force = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Message for creating a catalog template. +message CreateCatalogTemplateRequest { + // Required. The parent resource in which the catalog template is created. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "designcenter.googleapis.com/CatalogTemplate" + } + ]; + + // Required. The ID of the catalog template to create. The ID is appended to + // the catalog template's name. + string catalog_template_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The catalog template to create. + CatalogTemplate catalog_template = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Message for getting a catalog template resource. +message GetCatalogTemplateRequest { + // Required. The catalog template name in the following format: + // `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "designcenter.googleapis.com/CatalogTemplate" + } + ]; +} + +// Message for requesting a list of catalog templates. +message ListCatalogTemplatesRequest { + // Required. The parent from which the catalog templates are listed in the + // following format: + // `projects/$project/locations/$location/spaces/$space/catalogs/$catalog` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "designcenter.googleapis.com/CatalogTemplate" + } + ]; + + // Optional. The maximum number of results to return from this request. + // Non-positive + // values are ignored. The presence of nextPageToken in the response + // indicates that more results might be available. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If present, then retrieve the next batch of results from the + // preceding call to this method. pageToken must be the value of nextPageToken + // from the previous response. The values of other method parameters should be + // identical to those in the previous call. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A filter that chooses the catalog templates to return. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. How the results should be sorted. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Message for response to listing catalog templates. +message ListCatalogTemplatesResponse { + // The list of catalog templates. + repeated CatalogTemplate catalog_templates = 1; + + // If there might be more results than those appearing in this response, then + // nextPageToken is included. To get the next set of results, call this method + // again using the value of nextPageToken as pageToken. + string next_page_token = 2; +} + +// Message for updating a catalog template. +message UpdateCatalogTemplateRequest { + // Required. The catalog template to update. + // Format: + // `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template` + CatalogTemplate catalog_template = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The fields to overwrite in the catalog template update. The + // fields specified in the update_mask are relative to the resource, not the + // full request. A field will be overwritten if it is in the mask. If you + // don't provide a mask, all fields are overwritten. + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Message for deleting a catalog template. +message DeleteCatalogTemplateRequest { + // Required. The catalog template name. + // Format: + // `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "designcenter.googleapis.com/CatalogTemplate" + } + ]; + + // Optional. If set to true, the catalog template's children are also deleted. + // If false, the catalog template is only deleted if it has no children. + bool force = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Message for creating a template revisions request. +message CreateCatalogTemplateRevisionRequest { + // Required. The parent in which the catalog template revisions request is + // created in following format: + // `projects/$project/locations/$location/spaces/$space/templates/$template` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "designcenter.googleapis.com/CatalogTemplateRevision" + } + ]; + + // Required. The ID of the template revision to create. + string catalog_template_revision_id = 2 + [(google.api.field_behavior) = REQUIRED]; + + // Required. The template revision to create. + CatalogTemplateRevision catalog_template_revision = 3 + [(google.api.field_behavior) = REQUIRED]; +} + +// Message for GetTemplateRevision Request +message GetCatalogTemplateRevisionRequest { + // Required. The catalog template revisions name. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "designcenter.googleapis.com/CatalogTemplateRevision" + } + ]; +} + +// Message for requesting list of template revisions. +message ListCatalogTemplateRevisionsRequest { + // Required. The parent resource from which a list of catalog template + // revisions is requested. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "designcenter.googleapis.com/CatalogTemplateRevision" + } + ]; + + // Optional. The maximum number of results to return from this request. + // Non-positive + // values are ignored. The presence of nextPageToken in the response + // indicates that more results might be available. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If present, then retrieve the next batch of results from the + // preceding call to this method. pageToken must be the value of nextPageToken + // from the previous response. The values of other method parameters should be + // identical to those in the previous call. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A filter that chooses which catalog template revisions to return. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. How the results should be sorted. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Message for response to listing template revisions. +message ListCatalogTemplateRevisionsResponse { + // The list of template revisions. + repeated CatalogTemplateRevision catalog_template_revisions = 1; + + // If there might be more results than those appearing in this response, then + // nextPageToken is included. To get the next set of results, call this method + // again using the value of nextPageToken as pageToken. + string next_page_token = 2; + + // Locations that could not be reached. + repeated string unreachable = 3; +} + +// Message for deleting a template revision. +message DeleteCatalogTemplateRevisionRequest { + // Required. The template revision name. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "designcenter.googleapis.com/CatalogTemplateRevision" + } + ]; +} + +// Request message for fetching the Terraform source of a catalog template +// revision. +message FetchCatalogTemplateRevisionTFSourceRequest { + // Required. Name of the resource + // Eg: + // `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template/revisions/$revision` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "designcenter.googleapis.com/CatalogTemplateRevision" + } + ]; +} + +// Response message for getting the Terraform source of a catalog template +// revision. +message FetchCatalogTemplateRevisionTFSourceResponse { + // The root Terraform module of the catalog template revision. + TerraformModule root_module = 1; + + // The dependent Terraform modules used by the root module. + repeated TerraformModule modules = 2; +} + +// Request message for FetchCatalogTemplateRevisionAssessmentReport. +message FetchCatalogTemplateRevisionAssessmentReportRequest { + // Required. The catalog template revision name in the following format: + // `projects/{project}/locations/{location}/spaces/{space}/catalogs/{catalog}/templates/{template}/revisions/{revision}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "designcenter.googleapis.com/CatalogTemplateRevision" + } + ]; +} + +// Response message for FetchCatalogTemplateRevisionAssessmentReport. +message FetchCatalogTemplateRevisionAssessmentReportResponse { + // Assessment report for the catalog template revision. + AssessmentReport assessment_report = 1; +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/deployment.proto b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/deployment.proto new file mode 100644 index 000000000000..245bd65e59a1 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/deployment.proto @@ -0,0 +1,426 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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.designcenter.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/apphub/v1/application.proto"; +import "google/cloud/apphub/v1/attributes.proto"; +import "google/cloud/config/v1/config.proto"; +import "google/cloud/designcenter/v1/parameters.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.DesignCenter.V1"; +option go_package = "cloud.google.com/go/designcenter/apiv1/designcenterpb;designcenterpb"; +option java_multiple_files = true; +option java_outer_classname = "DeploymentProto"; +option java_package = "com.google.cloud.designcenter.v1"; +option php_namespace = "Google\\Cloud\\DesignCenter\\V1"; +option ruby_package = "Google::Cloud::DesignCenter::V1"; + +// Source template information for the deployment. +message DeploymentSource { + // The source for the IaC deployment. + oneof source { + // Application template revision URI. + string application_template_revision = 4; + + // Shared template revision URI. + string shared_template_revision_uri = 6; + } +} + +// The error associated with the deployment. +message DeploymentError { + // Possible values for the deployment error types. + // This categorization is based on the error code returned by Infrastructure + // Manager. + enum ErrorType { + // Unspecified error type. + ERROR_TYPE_UNSPECIFIED = 0; + + // Permission related error. + PERMISSION = 1; + + // Quota related error. + QUOTA = 2; + + // Resource already exists. + ALREADY_EXISTS = 3; + + // Resource is unavailable. + RESOURCE_UNAVAILABLE = 4; + + // Billing related error. + BILLING = 5; + + // Generic error if error does not fall under any of the above. + GENERIC = 6; + + // Terraform related error. + TERRAFORM = 7; + + // Bad input error. + BAD_INPUT = 8; + + // Platform related error. + PLATFORM = 9; + + // API enablement error. + API_ENABLEMENT = 10; + + // Bad request error. + BAD_REQUEST = 11; + } + + // Output only. The error type based on the deployment error code. + ErrorType type = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The deployment error code. Based on Infrastructure Manager + // error codes. + google.cloud.config.v1.Deployment.ErrorCode code = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The error message associated with the deployment. + repeated google.cloud.config.v1.TerraformError tf_errors = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Human readable string that summarizes the deployment error + // issue. + string detail = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The call to actions associated with the deployment issue. + repeated DeploymentFailureResolutionInfo deployment_failure_resolution_info = + 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Stores errors generated by Infra Manager, as well as all + // non-internal errors (such as INVALID_ARGUMENT) that occur before + // initiating the deployment. + string error_message = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The call to action associated with the deployment issue. +message DeploymentFailureResolutionInfo { + // Output only. Link for the call to action. + string resolution_link = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Elaborative error resolution message. + string resolution_message = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Call to action link text. + string resolution_link_text = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The application output parameters of the deployment. +message ApplicationOutputParameters { + // The output parameters of the application. + oneof parameters { + // Output only. Helm application output parameters. + HelmApplicationOutputParameters helm_application_output_parameters = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } +} + +// The helm application output parameters of the deployment. +message HelmApplicationOutputParameters { + // Output only. The output parameters of the helm application. + repeated Parameter parameters = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The updated template revision, which results in an outdated application. +message UpdatedTemplateRevision { + // Output only. The details of the updated template revision. + string template_revision = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time when the template was created. + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The display name of the template. If the display name is not + // available, the template resource name is used. + string template_display_name = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Connection configuration for the application. +message ConnectionConfig { + // Required. The connection URI. + string connection_uri = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The parameters of the connection associated with the source + // component. + repeated Parameter source_component_parameters = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The parameters of the connection associated with the destination + // component. + repeated Parameter destination_component_parameters = 3 + [(google.api.field_behavior) = OPTIONAL]; +} + +// The deployment target of the application. +message DeploymentTarget { + // Different deployment targets for the application. + oneof target { + // Optional. The GKE deployment target. + GKEDeploymentTarget gke_deployment_target = 1 + [(google.api.field_behavior) = OPTIONAL]; + } +} + +// The GKE deployment target. +message GKEDeploymentTarget { + // Required. The self link of the cluster where GKE based application is + // deployed. + string cluster_self_link = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The namespace where the application is deployed. + string namespace = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The kubernetes service account that is created within the + // namespace provided above. Example: default or node-sa + string kubernetes_service_account = 3 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. Whether to create the provided KSA. + // If true, the KSA will be created in the namespace provided above. + // If false, the KSA is expected to already exist in the namespace provided + // above. + bool kubernetes_service_account_creation = 4 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Holds parameters that are specific to composite applications. +message CompositeApplicationParameters { + // Optional. A map from a component's URI to the deployment service account + // for composite application. key format: + // projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/components/{component} + // value format: + // projects/{project}/serviceAccounts/{email_address} + map service_account_map = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. A map from a component's URI to its project parameters. + // The key format is: + // projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/components/{component} + map project_parameters_map = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Provides the list of project parameters needed to deploy an application. +message ProjectParametersList { + // Output only. List of project parameters for the application. + repeated ProjectParameters project_parameters = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Metadata for the infra manager deployment group. A deployment group in +// Infrastructure Manager is a logical grouping of one or more deployments. +message DeploymentGroupMetadata { + // Output only. The deployment group name. + // Format: + // projects/{project}/locations/{location}/deploymentGroup/{deployment_group} + string deployment_group = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Map of component name to deployment metadata for the + // component. Key format: + // projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/components/{component} + map deployment_metadata_map = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Deployment information for the application. +message DeploymentMetadata { + // Output only. The revision of the deployment associated with the + // Application. + string revision = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The component output parameters of the deployment. + repeated ComponentOutputParameters component_output_parameters = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The error associated with the deployment. + DeploymentError error = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Cloud Build instance UUID associated with this deployment. + string build = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The user-specified Cloud Build worker pool resource used, + // which the system uses to deploy the application. Format: + // `projects/{project}/locations/{location}/workerPools/{workerPoolId}`. + string worker_pool = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The attempted number of deployment retries. + int32 retry_attempts = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The application output parameters of the deployment. + ApplicationOutputParameters application_output_parameters = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The component output parameters of the deployment. +message ComponentOutputParameters { + // Output only. The component name of the output parameters. + string component = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The output parameters of the component. + repeated Parameter parameters = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The ProjectParameters provides the parameters needed to deploy the +// application in the given project. +message ProjectParameters { + // Output only. The project ID of the project. + string project_id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. IAM roles required by the service account to deploy the + // application in given project. + repeated string roles = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. APIs required to be enabled to deploy the application, in the + // form of "*.googleapis.com". + repeated string apis = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Information about the component level parameters for an application. +message ComponentParameters { + // Possible values of deployment state of the component. + enum State { + // Unspecified component deployment state. + STATE_UNSPECIFIED = 0; + + // Component is in draft. + DRAFT = 1; + + // New deployment is in progress. + CREATING_DEPLOYMENT = 2; + + // Update is in progress. + UPDATING_DEPLOYMENT = 3; + + // Deletion is in progress. + DELETING = 4; + + // Component deployment is completed. + DEPLOYED = 5; + + // Component deployment is deleted. + DELETED = 6; + + // Component deployment is failed. + FAILED = 7; + } + + // Required. The name of the component parameter. + string component = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. A list of parameters associated with the component. + repeated Parameter parameters = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. A list of connections associated with the component. + repeated ConnectionParameters connections_parameters = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Deployment state of the component. + State state = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The component parameter schema, which includes possible + // parameter values. + repeated ComponentParameterSchema component_parameter_schema = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The application associated with the component. + ComponentApplicationInfo application_info = 6 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The effective application associated with the component. This + // is the server set application field. + ComponentApplicationInfo effective_application_info = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// This captures the apphub application details associated with the component. +message ComponentApplicationInfo { + // Required. The application ID of the apphub application. The ID must be 1-63 + // characters long and should match the regular expression + // `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. + string apphub_application_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Display name for the application. The number of characters should + // be less than 64 characters. + string display_name = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Scope of apphub application. + google.cloud.apphub.v1.Scope scope = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Attributes of apphub application. + google.cloud.apphub.v1.Attributes attributes = 4 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Deployment region for the component. If the scope is set to + // REGIONAL, then the apphub application is created in this region, e.g. + // `us-central1`. + string deployment_region = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// RoleInfo represents an IAM role along with its origin. +message RoleInfo { + // Required. IAM role name, such as `roles/editor`. + string role = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "iam.googleapis.com/Role" } + ]; + + // Output only. When `true`, indicates that this role is automatically added + // by Application Design Center. When you provide a role, this field is set to + // `false`. + bool system_provided = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The list of permissions that this role is recommended for. + // This includes only the permissions of this role that are part of the + // recommendation. + repeated string permissions = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// ApiInfo represents an API along with its origin. +message ApiInfo { + // Required. API name, such as `compute.googleapis.com`. + string api = 1 [(google.api.field_behavior) = REQUIRED]; + + // Output only. When `true`, indicates that this API is automatically added by + // Application Design Center. When you provide an API, this field is set to + // `false`. + bool system_provided = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Represents configurations required within a specific project to deploy the +// application. +message RolesAndApisConfig { + // Required. The project ID to which these configurations apply. + string project_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. IAM roles that the deployment service account needs to deploy + // the application within this project. + // Each role must be a valid IAM role name, such as `roles/editor`. + // The maximum number of roles allowed is 500. + repeated RoleInfo roles = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. APIs that you must enable in this project before you deploy the + // application, in the form of "*.googleapis.com". The maximum number of APIs + // allowed is 500. + repeated ApiInfo apis = 3 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/deployment_messages.proto b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/deployment_messages.proto new file mode 100644 index 000000000000..d068cda86f4b --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/deployment_messages.proto @@ -0,0 +1,488 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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.designcenter.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/config/v1/config.proto"; +import "google/cloud/designcenter/v1/best_practices.proto"; +import "google/cloud/designcenter/v1/deployment.proto"; +import "google/cloud/designcenter/v1/deployment_resources.proto"; +import "google/cloud/designcenter/v1/enums.proto"; +import "google/cloud/designcenter/v1/export.proto"; +import "google/cloud/designcenter/v1/iac.proto"; +import "google/cloud/designcenter/v1/ingestion.proto"; +import "google/cloud/designcenter/v1/parameters.proto"; +import "google/protobuf/field_mask.proto"; + +option csharp_namespace = "Google.Cloud.DesignCenter.V1"; +option go_package = "cloud.google.com/go/designcenter/apiv1/designcenterpb;designcenterpb"; +option java_multiple_files = true; +option java_outer_classname = "DeploymentRpcMessagesProto"; +option java_package = "com.google.cloud.designcenter.v1"; +option php_namespace = "Google\\Cloud\\DesignCenter\\V1"; +option ruby_package = "Google::Cloud::DesignCenter::V1"; + +// Message for creating an application. +message CreateApplicationRequest { + // Required. The parent resource in which to create the application. + // Format: `projects/$project/locations/$location/spaces/$space` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "designcenter.googleapis.com/Application" + } + ]; + + // Required. The ID of the application to create. + string application_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The application to create. + Application application = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Message for getting an application. +message GetApplicationRequest { + // Required. The application name. + // Format: + // `projects/$project/locations/$location/spaces/$space/applications/$application` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "designcenter.googleapis.com/Application" + } + ]; +} + +// Message for requesting a list of applications. +message ListApplicationsRequest { + // Required. The parent resource from which to request a list of applications. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "designcenter.googleapis.com/Application" + } + ]; + + // Optional. The maximum number of results to return from this request. + // Non-positive + // values are ignored. The presence of nextPageToken in the response + // indicates that more results might be available. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If present, then retrieve the next batch of results from the + // preceding call to this method. pageToken must be the value of nextPageToken + // from the previous response. The values of other method parameters should be + // identical to those in the previous call. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A filter that chooses which applications to return. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. How the results should be sorted. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Message for response to listing applications. +message ListApplicationsResponse { + // The list of applications. + repeated Application applications = 1; + + // If there might be more results than those appearing in this response, then + // nextPageToken is included. To get the next set of results, call this method + // again using the value of nextPageToken as pageToken. + string next_page_token = 2; + + // Unordered list. Locations that could not be reached. + repeated string unreachable = 3 + [(google.api.field_behavior) = UNORDERED_LIST]; +} + +// Message for updating an application. +message UpdateApplicationRequest { + // Optional. The fields to overwrite in the application update. If you don't + // provide a mask, all fields are overwritten. + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. The application to update. + Application application = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Message for deleting an application. +message DeleteApplicationRequest { + // Required. The application name. + // Format: + // `projects/$project/locations/$location/spaces/$space/applications/$application` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "designcenter.googleapis.com/Application" + } + ]; + + // Optional. If set to true, the application's children are also deleted. If + // false, the application is only deleted if it has no children. + bool force = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Message for deploying an application. +message DeployApplicationRequest { + // Required. The application name. + // Format: + // `projects/$project/locations/$location/spaces/$space/applications/$application` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "designcenter.googleapis.com/Application" + } + ]; + + // Optional. Flag to update the existing deployment. If not set or false, + // deploy will fail if application `state` is in the `DEPLOYED` state. + bool replace = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The user-specified Worker Pool resource in which the Cloud Build + // job will execute. Format: + // projects/{project}/locations/{location}/workerPools/{workerPoolId} If this + // flag is omitted, the worker pool already defined on the application will be + // used. If no worker pool is defined on the application, the default Cloud + // Build worker pool is used. The worker pool must exist in the same region as + // the application. + string worker_pool = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The email address of the service account to use for this + // deployment. + // + // - If provided, this service account will be used to execute the deployment + // process, taking precedence over any service_account specified on the + // Application resource. + // - The caller must have the 'iam.serviceAccounts.actAs' permission on this + // service account. + // - If this field is omitted, the system will use the 'service_account' + // defined within the Application resource. + // - We recommend that you provide a service account here or on the + // Application resource. If you don't provide a service account, the + // deployment will fail. + // Format: projects/{PROJECT}/serviceAccounts/{EMAIL_ADDRESS} + string service_account = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If set to true, the request is validated, but no actual + // deployment will occur. See https://google.aip.dev/163 for more details. + bool validate_only = 6 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response for DeployApplication. +message DeployApplicationResponse { + // Infrastructure Manager deployment. + google.cloud.config.v1.Deployment deployment = 1; + + // Cloud Build deployment id. + string build_id = 2; + + // Infrastructure Manager deployment group. + // Used for composite application deployment response. + google.cloud.config.v1.DeploymentGroup deployment_group = 3; +} + +// Status of the [Resources][]s in the deployment. +message Resource { + option (google.api.resource) = { + type: "designcenter.googleapis.com/Resource" + pattern: "projects/{project}/locations/{location}/spaces/{space}/applications/{application}/resources/{resource}" + plural: "resources" + singular: "resource" + }; + + // Possible states of a resource. + enum State { + // The default value. This value is used if the state is omitted. + STATE_UNSPECIFIED = 0; + + // Resource has been planned for reconcile. + PLANNED = 1; + + // Resource is actively reconciling into the intended state. + IN_PROGRESS = 2; + + // Resource has reconciled to intended state. + RECONCILED = 3; + + // Resource failed to reconcile. + FAILED = 4; + + // Drift is detected in the resourece state. + DRIFTED = 5; + + // Resource is intended state. + INTENDED = 6; + } + + // Output only. Identifier. The name of the resource. + string name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.field_behavior) = IDENTIFIER + ]; + + // Output only. The type of the resource. + string type = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Current state of the resource. + State state = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Request message for GenerateApplicationIaC method. +message GenerateApplicationIaCRequest { + // Required. The name of the application. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "designcenter.googleapis.com/Application" + } + ]; + + // Optional. The IaC format to generate. + IACFormat iac_format = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. DEPRECATED: Use the 'artifact_location' field instead. + // The Cloud Storage URI to write the generated IaC to. + string gcs_uri = 3 + [deprecated = true, (google.api.field_behavior) = OPTIONAL]; + + // Optional. Specifies the destination for the generated IaC, which can be + // Cloud Storage or a Developer Connect repository. + ArtifactLocation artifact_location = 4 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for GenerateApplicationIaC method. +message GenerateApplicationIaCResponse { + // DEPRECATED: Use the 'artifact_location' field instead. + // The Cloud Storage URI of the generated IaC. + string gcs_uri = 1 [deprecated = true]; + + // The destination where the generated IaC was written. + ArtifactLocation artifact_location = 2; + + // Root modules metadata of the application. + RootModulesMetadata root_modules_metadata = 3; +} + +// Request message for ExportApplicationIaC method. +message ExportApplicationIaCRequest { + // Required. The name of the application. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "designcenter.googleapis.com/Application" + } + ]; + + // Optional. The IaC format to generate. + IACFormat iac_format = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specifies the destination for the generated IaC, which can be + // Cloud Storage or a Developer Connect repository. + ArtifactLocation artifact_location = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Configuration for exporting IaC. + ExportIaCConfig export_iac_config = 4 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for ExportApplicationIaC method. +message ExportApplicationIaCResponse { + // The destination where the generated IaC was written. + ArtifactLocation artifact_location = 1; + + // Root modules metadata of the application. + RootModulesMetadata root_modules_metadata = 2; +} + +// Request message for ImportApplicationIaC method. +message ImportApplicationIaCRequest { + // The source location of terraform code. + oneof source { + // Optional. The Cloud Storage URI of the terraform code. + string gcs_uri = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The IaC module to import. + IaCModule iac_module = 5 [(google.api.field_behavior) = OPTIONAL]; + } + + // Required. The name of the application. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "designcenter.googleapis.com/Application" + } + ]; + + // Optional. If set to true, partially imports the valid edits in the IaC and + // ignores the invalid changes. Defaults to false, which means any edits which + // can't be imported must result in an error. + bool allow_partial_import = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If set to true, the IaC is validated against the golden terraform + // without importing. Defaults to false. + bool validate_iac = 6 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for ImportApplicationIaC method. +message ImportApplicationIaCResponse { + // State of Import. + enum State { + // Default. + STATE_UNSPECIFIED = 0; + + // The import was successful. + SUCCEEDED = 1; + + // The import failed. + FAILED = 2; + } + + // Application template corresponding to the imported IaC. + Application application = 1; + + // Errors encountered during import. + repeated ImportIaCError errors = 2; + + // The state of the import. + State state = 3; +} + +// Message for previewing an application. +message PreviewApplicationRequest { + // Required. The application name in the following format: + // `projects/$project/locations/$location/spaces/$space/applications/$application` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "designcenter.googleapis.com/Application" + } + ]; + + // Optional. The user-specified Worker Pool resource in which the Cloud Build + // job will execute. Format: + // projects/{project}/locations/{location}/workerPools/{workerPoolId} If this + // flag is omitted, the worker pool already defined on the application will be + // used. If no worker pool is defined on the application, the default Cloud + // Build worker pool is used. The worker pool must exist in the same region as + // the application. + string worker_pool = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The email address of the service account to use for this preview + // operation. + // + // - If provided, this service account will be used to execute the preview + // process, taking precedence over any service_account specified on the + // Application resource. + // - The caller must have the 'iam.serviceAccounts.actAs' permission on this + // service account. + // - If this field is omitted, the system will use the 'service_account' + // defined within the Application resource. + // - We recommend that you provide a service account here or on the + // Application resource. If you don't provide a service account, the preview + // will fail. + // Format: projects/{PROJECT}/serviceAccounts/{EMAIL_ADDRESS} + string service_account = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response for PreviewApplication. +message PreviewApplicationResponse { + // Infrastructure Manager preview. + google.cloud.config.v1.Preview preview = 1; + + // Best practices by Design Assessment report + AssessmentReport assessment_report = 2; +} + +// Request message for `RecommendIAMRoles`. +message RecommendIAMRolesRequest { + // Required. The name of the application resource for which to recommend IAM + // roles. Format: + // projects/$project/locations/$location/spaces/$space/applications/$application + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "designcenter.googleapis.com/Application" + } + ]; +} + +// Response message for `RecommendIAMRoles`. +message RecommendIAMRolesResponse { + // A list of project configurations containing recommended IAM roles and + // required APIs for each target Google Cloud project in the application + // infrastructure. + repeated RolesAndApisConfig project_configurations = 1; +} + +// Request message for ConfigureAndDeployTemplate. +message ConfigureAndDeployTemplateRequest { + // Required. The parent resource where the template will be deployed. + // Format: `projects/{project}/locations/{location}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Required. The URI or identifier of the template to configure and deploy. + string template_uri = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The space ID where the template and application will be created. + string space_id = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Template configuration parameters (key-value pairs). + repeated Parameter template_parameters = 4 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The resource name of the service account to use for this + // deployment. + // + // - If provided, this service account will be used to execute the deployment + // process. + // - The caller must have the `iam.serviceAccounts.actAs` permission on this + // service account. + // - If this field is omitted, a default system service account will be used. + // Format: projects/{PROJECT}/serviceAccounts/{EMAIL_ADDRESS} + string service_account = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for ConfigureAndDeployTemplate. +// Populated inside Operation.response upon LRO completion. +message ConfigureAndDeployTemplateResponse { + // The URI of the deployed application. + string application_uri = 1 [(google.api.resource_reference) = { + type: "designcenter.googleapis.com/Application" + }]; + + // The URI of the application template. + string application_template_uri = 2 [(google.api.resource_reference) = { + type: "designcenter.googleapis.com/ApplicationTemplate" + }]; + + // The deployment metadata of the deployed application. + DeploymentMetadata deployment_metadata = 3; + + // The deployment state of the deployed application. + Application.State deployment_state = 4; +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/deployment_resources.proto b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/deployment_resources.proto new file mode 100644 index 000000000000..1fb81668c99f --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/deployment_resources.proto @@ -0,0 +1,216 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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.designcenter.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/apphub/v1/application.proto"; +import "google/cloud/apphub/v1/attributes.proto"; +import "google/cloud/designcenter/v1/authoring.proto"; +import "google/cloud/designcenter/v1/deployment.proto"; +import "google/cloud/designcenter/v1/enums.proto"; +import "google/cloud/designcenter/v1/export.proto"; +import "google/cloud/designcenter/v1/metadata.proto"; +import "google/cloud/designcenter/v1/parameters.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.DesignCenter.V1"; +option go_package = "cloud.google.com/go/designcenter/apiv1/designcenterpb;designcenterpb"; +option java_multiple_files = true; +option java_outer_classname = "DeploymentResourcesProto"; +option java_package = "com.google.cloud.designcenter.v1"; +option php_namespace = "Google\\Cloud\\DesignCenter\\V1"; +option ruby_package = "Google::Cloud::DesignCenter::V1"; + +// Represents the application resource. +message Application { + option (google.api.resource) = { + type: "designcenter.googleapis.com/Application" + pattern: "projects/{project}/locations/{location}/spaces/{space}/applications/{application}" + plural: "applications" + singular: "application" + }; + + // Possible values for the application deployment state. + enum State { + // Unspecified application deployment state. + STATE_UNSPECIFIED = 0; + + // Application is in draft. + DRAFT = 1; + + // New application deployment is in progress. + CREATING_DEPLOYMENT = 2; + + // Update application deployment is in progress. + UPDATING_DEPLOYMENT = 3; + + // Delete application deployment is in progress. + DELETING = 4; + + // Application deployment is completed. + DEPLOYED = 5; + + // Application deployment is deleted. + DELETED = 6; + + // Application deployment is failed. + FAILED = 7; + + // Application deployment is in progress. + DEPLOYING = 8; + } + + // Specifies the strategy to use when updating an application. + enum UpdateStrategy { + // Retains the existing value for the field. + UPDATE_STRATEGY_UNSPECIFIED = 0; + + // Replaces the existing field values with the provided ones. + REPLACE = 2; + } + + // Identifier. The name of the application. + // Format: + // projects/{project}/locations/{location}/spaces/{space}/applications/{application} + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. Create timestamp. + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Update timestamp. + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. The application deployment source. + DeploymentSource source = 4 [(google.api.field_behavior) = REQUIRED]; + + // Optional. A list of parameters to attach to the deployment source object, + // which is a catalog entry or application template snapshot. + repeated Parameter app_parameters = 5 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A list of component parameters to associate with the application. + repeated ComponentParameters component_parameters = 10 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Your own service account that you use to deploy an application. + string service_account = 11 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Display name of the application. + string display_name = 12 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Description of the application. + string description = 13 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Attributes of the application. + google.cloud.apphub.v1.Attributes attributes = 14 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. Scope of the application. + google.cloud.apphub.v1.Scope scope = 15 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. Import existing resources into the application. + bool import_existing_resources = 16 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Preview reference for the application. + string preview_reference = 17 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. [Output only] Optional Infra Manager deployment Id with + // revision + string deployment_revision = 18 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The App Hub App associated with the application. + string apphub_application = 19 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. [Output only] Serialized application template. + SerializedApplicationTemplate serialized_application_template = 20 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Deployment state of the application. + State state = 21 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Deployment metadata of the application. + DeploymentMetadata deployment_metadata = 22 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. List of project parameters for the application. + repeated ProjectParameters project_parameters = 23 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The region where the application is deployed. + string deployment_region = 24 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The updated template revision because of which the application + // is outdated. + UpdatedTemplateRevision updated_template_revision = 26 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Deployment project of the application. + string deployment_project = 27 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Connection configuration for the application. + repeated ConnectionConfig connection_configs = 28 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Details of the location where the IaC for this application was + // last successfully exported. + ArtifactLocation artifact_location = 29 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The type of the application. + ApplicationType type = 30 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The deployment target of the application. + DeploymentTarget deployment_target = 31 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The composition type of the application: STANDARD OR + // COMPOSITE. + ApplicationCompositionType composition_type = 32 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Parameters that are required for composite applications. + CompositeApplicationParameters composite_application_parameters = 33 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The deployment group metadata of the application. This is + // applicable only for composite applications. + DeploymentGroupMetadata deployment_group_metadata = 34 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Specifies the strategy to use when updating the application + // parameters while updating the application template revision. + UpdateStrategy params_update_strategy = 35 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Project-specific configurations required for application + // deployment, including IAM roles and APIs. The list can contain up to 100 + // items. + repeated RolesAndApisConfig roles_apis_config = 36 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The input output variables parsed from the imported terraform + // code. + TFBlueprintMetadata template_metadata = 37 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Indicates the IaC source format of this application. + IACSource iac_source = 38 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/designcenter.proto b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/designcenter.proto new file mode 100644 index 000000000000..06b952e7e835 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/designcenter.proto @@ -0,0 +1,1118 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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.designcenter.v1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/field_info.proto"; +import "google/api/resource.proto"; +import "google/cloud/designcenter/v1/apphub_integration_messages.proto"; +import "google/cloud/designcenter/v1/authoring.proto"; +import "google/cloud/designcenter/v1/authoring_messages.proto"; +import "google/cloud/designcenter/v1/best_practices.proto"; +import "google/cloud/designcenter/v1/best_practices_messages.proto"; +import "google/cloud/designcenter/v1/catalog_management.proto"; +import "google/cloud/designcenter/v1/catalog_management_messages.proto"; +import "google/cloud/designcenter/v1/deployment_messages.proto"; +import "google/cloud/designcenter/v1/deployment_resources.proto"; +import "google/cloud/designcenter/v1/sharing.proto"; +import "google/cloud/designcenter/v1/sharing_messages.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.DesignCenter.V1"; +option go_package = "cloud.google.com/go/designcenter/apiv1/designcenterpb;designcenterpb"; +option java_multiple_files = true; +option java_outer_classname = "DesigncenterProto"; +option java_package = "com.google.cloud.designcenter.v1"; +option php_namespace = "Google\\Cloud\\DesignCenter\\V1"; +option ruby_package = "Google::Cloud::DesignCenter::V1"; +option (google.api.resource_definition) = { + type: "iam.googleapis.com/Role" + pattern: "organizations/{organization}/roles/{role}" + pattern: "projects/{project}/roles/{role}" + pattern: "roles/{role}" +}; +option (google.api.resource_definition) = { + type: "cloudsecuritycompliance.googleapis.com/CloudControl" + pattern: "organizations/{organization}/locations/{location}/cloudControls/{cloud_control}" + pattern: "projects/{project}/locations/{location}/cloudControls/{cloud_control}" +}; + +// Service describing handlers for resources +service DesignCenter { + option (google.api.default_host) = "designcenter.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Gets details about a space. + rpc GetSpace(GetSpaceRequest) returns (Space) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/spaces/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists spaces in a given project and location. + rpc ListSpaces(ListSpacesRequest) returns (ListSpacesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/spaces" + }; + option (google.api.method_signature) = "parent"; + } + + // Creates a space. + rpc CreateSpace(CreateSpaceRequest) returns (Space) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/spaces" + body: "space" + }; + option (google.api.method_signature) = "parent,space,space_id"; + } + + // Updates a space. + rpc UpdateSpace(UpdateSpaceRequest) returns (Space) { + option (google.api.http) = { + patch: "/v1/{space.name=projects/*/locations/*/spaces/*}" + body: "space" + }; + option (google.api.method_signature) = "space,update_mask"; + } + + // Deletes a space. + rpc DeleteSpace(DeleteSpaceRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/spaces/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Gets details about an application template. + rpc GetApplicationTemplate(GetApplicationTemplateRequest) + returns (ApplicationTemplate) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/spaces/*/applicationTemplates/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists application templates in a given space. + rpc ListApplicationTemplates(ListApplicationTemplatesRequest) + returns (ListApplicationTemplatesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/spaces/*}/applicationTemplates" + }; + option (google.api.method_signature) = "parent"; + } + + // Creates an application template. + rpc CreateApplicationTemplate(CreateApplicationTemplateRequest) + returns (ApplicationTemplate) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/spaces/*}/applicationTemplates" + body: "application_template" + }; + option (google.api.method_signature) = + "parent,application_template,application_template_id"; + } + + // Updates an application template. + rpc UpdateApplicationTemplate(UpdateApplicationTemplateRequest) + returns (ApplicationTemplate) { + option (google.api.http) = { + patch: "/v1/{application_template.name=projects/*/locations/*/spaces/*/applicationTemplates/*}" + body: "application_template" + }; + option (google.api.method_signature) = "application_template,update_mask"; + } + + // Imports to an existing application template from a given shared template. + rpc ImportApplicationTemplate(ImportApplicationTemplateRequest) + returns (ApplicationTemplate) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/spaces/*/applicationTemplates/*}:import" + body: "*" + }; + option (google.api.method_signature) = + "name,application_template_revision_uri"; + } + + // Deletes an application template. + rpc DeleteApplicationTemplate(DeleteApplicationTemplateRequest) + returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/spaces/*/applicationTemplates/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Commits an application template to create a new revision. + rpc CommitApplicationTemplate(CommitApplicationTemplateRequest) + returns (ApplicationTemplateRevision) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/spaces/*/applicationTemplates/*}:commit" + body: "*" + }; + option (google.api.method_signature) = "name"; + } + + // Snapshots an application template to create a new revision asynchronously. + rpc SnapshotApplicationTemplate(SnapshotApplicationTemplateRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/spaces/*/applicationTemplates/*}:snapshot" + body: "*" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "SnapshotApplicationTemplateResponse" + metadata_type: "OperationMetadata" + }; + } + + // Generates Terraform files for an application template. + // This is a SYNCHRONOUS operation and returns the generated IaC + // directly in the response. It + // does NOT download external module sources; it only uses remote sources. + rpc GenerateApplicationTemplateIaC(GenerateApplicationTemplateIaCRequest) + returns (GenerateApplicationTemplateIaCResponse) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/spaces/*/applicationTemplates/*}:generate" + body: "*" + }; + option (google.api.method_signature) = "name"; + } + + // Exports Terraform files for an application template. The generated + // modules can have remote sources or local sources downloaded from remote. + // This is an ASYNCHRONOUS operation that returns a Long Running Operation. + rpc ExportApplicationTemplateIaC(ExportApplicationTemplateIaCRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/spaces/*/applicationTemplates/*}:export" + body: "*" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "ExportApplicationTemplateIaCResponse" + metadata_type: "OperationMetadata" + }; + } + + // Generates Terraform files for an application template revision. + // This is a SYNCHRONOUS operation and returns the generated IaC + // directly in the response. It + // does NOT download external module sources; it only uses remote sources. + rpc GenerateApplicationTemplateRevisionIaC( + GenerateApplicationTemplateRevisionIaCRequest) + returns (GenerateApplicationTemplateRevisionIaCResponse) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/spaces/*/applicationTemplates/*/revisions/*}:generate" + body: "*" + }; + option (google.api.method_signature) = "name"; + } + + // Exports Terraform files for an application template revision. The generated + // modules can have remote sources or local sources downloaded from remote. + // This is an ASYNCHRONOUS operation that returns a Long Running Operation. + rpc ExportApplicationTemplateRevisionIaC( + ExportApplicationTemplateRevisionIaCRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/spaces/*/applicationTemplates/*/revisions/*}:export" + body: "*" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "ExportApplicationTemplateRevisionIaCResponse" + metadata_type: "OperationMetadata" + }; + } + + // Gets details about a Component. + rpc GetComponent(GetComponentRequest) returns (Component) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/spaces/*/applicationTemplates/*/components/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists components in an application template. + rpc ListComponents(ListComponentsRequest) returns (ListComponentsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/spaces/*/applicationTemplates/*}/components" + }; + option (google.api.method_signature) = "parent"; + } + + // Creates a component. + rpc CreateComponent(CreateComponentRequest) returns (Component) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/spaces/*/applicationTemplates/*}/components" + body: "component" + }; + option (google.api.method_signature) = "parent,component,component_id"; + } + + // Updates a component. + rpc UpdateComponent(UpdateComponentRequest) returns (Component) { + option (google.api.http) = { + patch: "/v1/{component.name=projects/*/locations/*/spaces/*/applicationTemplates/*/components/*}" + body: "component" + }; + option (google.api.method_signature) = "component,update_mask"; + } + + // Deletes a component. + rpc DeleteComponent(DeleteComponentRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/spaces/*/applicationTemplates/*/components/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Gets details about a connection. + rpc GetConnection(GetConnectionRequest) returns (Connection) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/spaces/*/applicationTemplates/*/components/*/connections/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists connections in an application template. + rpc ListConnections(ListConnectionsRequest) + returns (ListConnectionsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/spaces/*/applicationTemplates/*/components/*}/connections" + }; + option (google.api.method_signature) = "parent"; + } + + // Creates a connection. + rpc CreateConnection(CreateConnectionRequest) returns (Connection) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/spaces/*/applicationTemplates/*/components/*}/connections" + body: "connection" + }; + option (google.api.method_signature) = "parent,connection,connection_id"; + } + + // Updates a connection. + rpc UpdateConnection(UpdateConnectionRequest) returns (Connection) { + option (google.api.http) = { + patch: "/v1/{connection.name=projects/*/locations/*/spaces/*/applicationTemplates/*/components/*/connections/*}" + body: "connection" + }; + option (google.api.method_signature) = "connection,update_mask"; + } + + // Deletes a connection. + rpc DeleteConnection(DeleteConnectionRequest) + returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/spaces/*/applicationTemplates/*/components/*/connections/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Gets details about an application template revision. + rpc GetApplicationTemplateRevision(GetApplicationTemplateRevisionRequest) + returns (ApplicationTemplateRevision) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/spaces/*/applicationTemplates/*/revisions/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists application template revisions in a given application template. + rpc ListApplicationTemplateRevisions(ListApplicationTemplateRevisionsRequest) + returns (ListApplicationTemplateRevisionsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/spaces/*/applicationTemplates/*}/revisions" + }; + option (google.api.method_signature) = "parent"; + } + + // Deletes an application template revision. + rpc DeleteApplicationTemplateRevision( + DeleteApplicationTemplateRevisionRequest) + returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/spaces/*/applicationTemplates/*/revisions/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Gets details about a catalog. + rpc GetCatalog(GetCatalogRequest) returns (Catalog) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/spaces/*/catalogs/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists catalogs in a given space. + rpc ListCatalogs(ListCatalogsRequest) returns (ListCatalogsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/spaces/*}/catalogs" + }; + option (google.api.method_signature) = "parent"; + } + + // Creates a catalog. + rpc CreateCatalog(CreateCatalogRequest) returns (Catalog) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/spaces/*}/catalogs" + body: "catalog" + }; + option (google.api.method_signature) = "parent,catalog,catalog_id"; + } + + // Updates a catalog. + rpc UpdateCatalog(UpdateCatalogRequest) returns (Catalog) { + option (google.api.http) = { + patch: "/v1/{catalog.name=projects/*/locations/*/spaces/*/catalogs/*}" + body: "catalog" + }; + option (google.api.method_signature) = "catalog,update_mask"; + } + + // Deletes a catalog. + rpc DeleteCatalog(DeleteCatalogRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/spaces/*/catalogs/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Adds a template to a catalog. + rpc CreateCatalogTemplate(CreateCatalogTemplateRequest) + returns (CatalogTemplate) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/spaces/*/catalogs/*}/templates" + body: "catalog_template" + }; + option (google.api.method_signature) = + "parent,catalog_template,catalog_template_id"; + } + + // Gets a catalog template. + rpc GetCatalogTemplate(GetCatalogTemplateRequest) returns (CatalogTemplate) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/spaces/*/catalogs/*/templates/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists catalog templates. + rpc ListCatalogTemplates(ListCatalogTemplatesRequest) + returns (ListCatalogTemplatesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/spaces/*/catalogs/*}/templates" + }; + option (google.api.method_signature) = "parent"; + } + + // Updates a catalog template resource. + rpc UpdateCatalogTemplate(UpdateCatalogTemplateRequest) + returns (CatalogTemplate) { + option (google.api.http) = { + patch: "/v1/{catalog_template.name=projects/*/locations/*/spaces/*/catalogs/*/templates/*}" + body: "catalog_template" + }; + option (google.api.method_signature) = "catalog_template,update_mask"; + } + + // Deletes a catalog template. + rpc DeleteCatalogTemplate(DeleteCatalogTemplateRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/spaces/*/catalogs/*/templates/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Shares a catalog from one space to another space. + rpc CreateShare(CreateShareRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/spaces/*/catalogs/*}/shares" + body: "share" + }; + option (google.api.method_signature) = "parent,share,share_id"; + option (google.longrunning.operation_info) = { + response_type: "Share" + metadata_type: "OperationMetadata" + }; + } + + // Lists catalog share objects for the space. + rpc ListShares(ListSharesRequest) returns (ListSharesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/spaces/*/catalogs/*}/shares" + }; + option (google.api.method_signature) = "parent"; + } + + // Get catalog share object for the space. + rpc GetShare(GetShareRequest) returns (Share) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/spaces/*/catalogs/*/shares/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Deletes a catalog share. + rpc DeleteShare(DeleteShareRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/spaces/*/catalogs/*/shares/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Synchronizes a share and updates the destination workspace to reflect. + // reflect the most recent changes to the catalog. + rpc SyncShare(SyncShareRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/spaces/*/catalogs/*/shares/*}:sync" + body: "*" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "Share" + metadata_type: "OperationMetadata" + }; + } + + // Gets details about a shared template. + rpc GetSharedTemplate(GetSharedTemplateRequest) returns (SharedTemplate) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/spaces/*/sharedTemplates/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists shared templates in a given space. + rpc ListSharedTemplates(ListSharedTemplatesRequest) + returns (ListSharedTemplatesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/spaces/*}/sharedTemplates" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details about a shared template revision. + rpc GetSharedTemplateRevision(GetSharedTemplateRevisionRequest) + returns (SharedTemplateRevision) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/spaces/*/sharedTemplates/*/revisions/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists shared template revisions in a given space. + rpc ListSharedTemplateRevisions(ListSharedTemplateRevisionsRequest) + returns (ListSharedTemplateRevisionsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/spaces/*/sharedTemplates/*}/revisions" + }; + option (google.api.method_signature) = "parent"; + } + + // Creates a template revision. + rpc CreateCatalogTemplateRevision(CreateCatalogTemplateRevisionRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/spaces/*/catalogs/*/templates/*}/revisions" + body: "catalog_template_revision" + }; + option (google.api.method_signature) = + "parent,catalog_template_revision,catalog_template_revision_id"; + option (google.longrunning.operation_info) = { + response_type: "CatalogTemplateRevision" + metadata_type: "OperationMetadata" + }; + } + + // Gets details about a template revision. + rpc GetCatalogTemplateRevision(GetCatalogTemplateRevisionRequest) + returns (CatalogTemplateRevision) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/spaces/*/catalogs/*/templates/*/revisions/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists template revisions. + rpc ListCatalogTemplateRevisions(ListCatalogTemplateRevisionsRequest) + returns (ListCatalogTemplateRevisionsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/spaces/*/catalogs/*/templates/*}/revisions" + }; + option (google.api.method_signature) = "parent"; + } + + // Deletes a template revision. + rpc DeleteCatalogTemplateRevision(DeleteCatalogTemplateRevisionRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/spaces/*/catalogs/*/templates/*/revisions/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Creates an application. + rpc CreateApplication(CreateApplicationRequest) returns (Application) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/spaces/*}/applications" + body: "application" + }; + option (google.api.method_signature) = "parent,application,application_id"; + } + + // Gets details about an application. + rpc GetApplication(GetApplicationRequest) returns (Application) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/spaces/*/applications/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists applications in a given space. + rpc ListApplications(ListApplicationsRequest) + returns (ListApplicationsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/spaces/*}/applications" + }; + option (google.api.method_signature) = "parent"; + } + + // Updates an application. + rpc UpdateApplication(UpdateApplicationRequest) returns (Application) { + option (google.api.http) = { + patch: "/v1/{application.name=projects/*/locations/*/spaces/*/applications/*}" + body: "application" + }; + option (google.api.method_signature) = "application,update_mask"; + } + + // Deletes an application. + rpc DeleteApplication(DeleteApplicationRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/spaces/*/applications/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Deploys an application. + rpc DeployApplication(DeployApplicationRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/spaces/*/applications/*}:deploy" + body: "*" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "DeployApplicationResponse" + metadata_type: "OperationMetadata" + }; + } + + // Previews deployment of an application. + rpc PreviewApplication(PreviewApplicationRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/spaces/*/applications/*}:preview" + body: "*" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "PreviewApplicationResponse" + metadata_type: "OperationMetadata" + }; + } + + // Fetches the assessment report of a deployed application if present. + rpc FetchApplicationAssessmentReport(FetchApplicationAssessmentReportRequest) + returns (FetchApplicationAssessmentReportResponse) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/spaces/*/applications/*}:fetchAssessmentReport" + }; + option (google.api.method_signature) = "name"; + } + + // Generate Assessment Reports of an application. + rpc GenerateApplicationAssessmentReport( + GenerateApplicationAssessmentReportRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/spaces/*/applications/*}:generateAssessmentReport" + body: "*" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "GenerateApplicationAssessmentReportResponse" + metadata_type: "OperationMetadata" + }; + } + + // Generate Assessment Reports of an application template. + rpc GenerateApplicationTemplateAssessmentReport( + GenerateApplicationTemplateAssessmentReportRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/spaces/*/applicationTemplates/*}:generateAssessmentReport" + body: "*" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "GenerateApplicationTemplateAssessmentReportResponse" + metadata_type: "OperationMetadata" + }; + } + + // Deprecated: Use GenerateTerraformPlanAssessmentReport instead. + // + // Generate a best practice report for a given Terraform plan. + rpc GenerateAssessmentReport(GenerateAssessmentReportRequest) + returns (google.longrunning.Operation) { + option deprecated = true; + option (google.api.http) = { + post: "/v1/{space_name=projects/*/locations/*/spaces/*}:generateAssessmentReport" + body: "*" + }; + option (google.api.method_signature) = "space_name"; + option (google.longrunning.operation_info) = { + response_type: "GenerateAssessmentReportResponse" + metadata_type: "OperationMetadata" + }; + } + + // Generate a Terraform plan assessment report for a given Terraform plan. + rpc GenerateTerraformPlanAssessmentReport( + GenerateTerraformPlanAssessmentReportRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/spaces/*}:generateTerraformPlanAssessmentReport" + body: "*" + }; + option (google.api.method_signature) = "name,terraform_plan"; + option (google.longrunning.operation_info) = { + response_type: "GenerateTerraformPlanAssessmentReportResponse" + metadata_type: "OperationMetadata" + }; + } + + // Policy related APIs. + // Get a policy for an application template. + rpc GetPolicy(GetPolicyRequest) returns (Policy) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/spaces/*/applicationTemplates/*/policies/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists policies for an application template. + rpc ListPolicies(ListPoliciesRequest) returns (ListPoliciesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/spaces/*/applicationTemplates/*}/policies" + }; + option (google.api.method_signature) = "parent"; + } + + // Creates a policy for an application template. + rpc CreatePolicy(CreatePolicyRequest) returns (Policy) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/spaces/*/applicationTemplates/*}/policies" + body: "policy" + }; + option (google.api.method_signature) = "parent,policy,policy_id"; + } + + // Updates a policy. + rpc UpdatePolicy(UpdatePolicyRequest) returns (Policy) { + option (google.api.http) = { + patch: "/v1/{policy.name=projects/*/locations/*/spaces/*/applicationTemplates/*/policies/*}" + body: "policy" + }; + option (google.api.method_signature) = "policy,update_mask"; + } + + // Deletes a policy. + rpc DeletePolicy(DeletePolicyRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/spaces/*/applicationTemplates/*/policies/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Fetches all frameworks for assessment report. + rpc FetchFrameworks(FetchFrameworksRequest) + returns (FetchFrameworksResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}:fetchFrameworks" + }; + option (google.api.method_signature) = "parent"; + } + + // Generates Terraform files for an application. + rpc GenerateApplicationIaC(GenerateApplicationIaCRequest) + returns (GenerateApplicationIaCResponse) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/spaces/*/applications/*}:generate" + body: "*" + }; + option (google.api.method_signature) = "name"; + } + + // Exports Terraform files for an application asynchronously. + rpc ExportApplicationIaC(ExportApplicationIaCRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/spaces/*/applications/*}:export" + body: "*" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "ExportApplicationIaCResponse" + metadata_type: "OperationMetadata" + }; + } + + // Imports IaC for an application template. + rpc ImportApplicationTemplateIaC(ImportApplicationTemplateIaCRequest) + returns (ImportApplicationTemplateIaCResponse) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/spaces/*/applicationTemplates/*}:importIaC" + body: "*" + }; + option (google.api.method_signature) = "name"; + } + + // Ingests IaC for an application template asynchronously. + rpc IngestApplicationTemplateIaC(IngestApplicationTemplateIaCRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/spaces/*/applicationTemplates/*}:ingestIaC" + body: "*" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "IngestApplicationTemplateIaCResponse" + metadata_type: "OperationMetadata" + }; + } + + // Imports IaC for an application resource. + rpc ImportApplicationIaC(ImportApplicationIaCRequest) + returns (ImportApplicationIaCResponse) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/spaces/*/applications/*}:importIaC" + body: "*" + }; + option (google.api.method_signature) = "name"; + } + + // Register deployed resources from terraform state file with App Hub + // without needing a space. + rpc RegisterAppHubApplicationResources( + RegisterAppHubApplicationResourcesRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/spaces:registerAppHubApplicationResources" + body: "*" + }; + option (google.api.method_signature) = + "parent,apphub_application,tfstate_content"; + option (google.longrunning.operation_info) = { + response_type: "RegisterAppHubApplicationResourcesResponse" + metadata_type: "OperationMetadata" + }; + } + + // Lists application template system revisions in a given application + // template. + rpc ListApplicationTemplateSystemRevisions( + ListApplicationTemplateSystemRevisionsRequest) + returns (ListApplicationTemplateSystemRevisionsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/spaces/*/applicationTemplates/*}/systemRevisions" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets the given application template system revision. + rpc GetApplicationTemplateSystemRevision( + GetApplicationTemplateSystemRevisionRequest) + returns (ApplicationTemplateSystemRevision) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/spaces/*/applicationTemplates/*/systemRevisions/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Gets recommended IAM roles for an application. + // + // Evaluates the infrastructure resources defined by an application (including + // its template configuration and parameters) to determine the set of IAM + // roles and Google Cloud APIs that you must configure before you deploy + // across target projects. + // + // The operation is asynchronous and returns a `google.longrunning.Operation`. + // Upon completion, the operation result contains a + // `RecommendIAMRolesResponse` with project-level IAM role and API + // recommendations. + rpc RecommendIAMRoles(RecommendIAMRolesRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/spaces/*/applications/*}:recommendIAMRoles" + body: "*" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "RecommendIAMRolesResponse" + metadata_type: "OperationMetadata" + }; + } +} + + +// Represents the metadata of the long-running operation. +message OperationMetadata { + // Metadata about the state of an operation for a particular + // resource. + oneof resource_metadata { + // Output only. The application deployment metadata this operation is + // associated with. + DeploymentOperationMetadata deployment_metadata = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The application preview metadata this operation is + // associated with. + PreviewOperationMetadata preview_metadata = 9 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The application delete metadata this operation is associated + // with. + ApplicationOperationMetadata application_metadata = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The Provision Deployment Group Metadata this operation is + // associated with. + ProvisionDeploymentGroupOperationMetadata deployment_group_metadata = 11 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The Generate Assessment Report Metadata this operation is + // associated with. + GenerateAssessmentReportOperationMetadata + generate_assessment_report_metadata = 12 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // 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. The 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]; +} + +// Ephemeral metadata depicting the state of the preview operation. +message PreviewOperationMetadata { + // Output only. The current step of the preview. + // The possible steps a preview may be running as returned by the + // Infrastructure. Manager. + string preview_step = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Cloud Build instance UUID associated with the preview + // operation. + string preview_build = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Location of the preview operation logs in + // `gs://{bucket}/{object}` format. + string preview_logs = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Details of the [Resources][]s in the deployment. + repeated Resource resources = 8; +} + +// Ephemeral metadata depicting the state of assessment report generation. +message GenerateAssessmentReportOperationMetadata { + // Steps in generating an assessment report. + enum AssessmentStep { + // Unspecified step. + ASSESSMENT_STEP_UNSPECIFIED = 0; + + // Generating Terraform fast plan. + FAST_PLAN = 1; + + // Generating BPBD assessment report. + ASSESSMENT_REPORT = 2; + + // Succeeded. + SUCCEEDED = 3; + + // Failed. + FAILED = 4; + } + + // Output only. The current step of the generate assessment report operation. + AssessmentStep step = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Ephemeral metadata depicting the state of the delete operation. +message ApplicationOperationMetadata { + // Output only. The current step of the delete operation. Associated with + // Infrastructure Manager and App Hub. + string step = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Cloud Build instance UUID associated with the delete + // operation. + string build = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Represents the Provision Deployment Group operation metadata. +message ProvisionDeploymentGroupOperationMetadata { + // Current Deployment Operation Step + enum DeploymentStep { + // Unspecified deployment step. + DEPLOYMENT_STEP_UNSPECIFIED = 0; + + // Generating Terraform content for the application. + GENERATING_TERRAFORM_CONTENT = 1; + + // Deploying the application. + DEPLOYING = 2; + + // Operation was successful. + SUCCEEDED = 3; + + // Operation failed. + FAILED = 4; + } + + // Output only. Current step of deploying composite application + DeploymentStep deployment_step = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. List of deployment unit deployment progress + repeated DeploymentUnitProgress deployment_unit_progress = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Single deployment unit progress info +message DeploymentUnitProgress { + // Output only. Deployment unit ID + string unit_id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Deployment resource of deploying unit ID + string deployment = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Current deployment unit step + string deployment_unit_step = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Deployment build uuid + string deployment_build = 4 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OUTPUT_ONLY + ]; + + // Output only. Current deployment step + string deployment_step = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Ephemeral metadata depicting the state of the deployment operation. +message DeploymentOperationMetadata { + // Output only. The name of the deployment associated with the application. + string deployment = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The current step of the deployment. + // This will mimic the DeploymentStep enum in the deployment proto. + string deployment_step = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Cloud Build instance UUID associated with this deployment. + string deployment_build = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Location of the deployment operation logs in + // `gs://{bucket}/{object}` format. + string deployment_logs = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Details of the [Resources][]s in the deployment. + repeated Resource resources = 8; + + // Previous deployment attempt metadata. + DeploymentAttemptMetadata previous_attempt = 9; +} + +// DeploymentAttemptMetadata represents a previous deployment attempt for an +// operation that failed due to a retryable error. +message DeploymentAttemptMetadata { + // The sequential number of the attempt (starting from 1). + int32 attempt = 1; + + // Human readable string that summarizes the deployment error issue. + string error_detail = 2; + + // The build or execution ID associated with this specific attempt. + // This can be used to link back to logs or trace information. + string build = 3; +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/enums.proto b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/enums.proto new file mode 100644 index 000000000000..a099639bac16 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/enums.proto @@ -0,0 +1,222 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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.designcenter.v1; + +option csharp_namespace = "Google.Cloud.DesignCenter.V1"; +option go_package = "cloud.google.com/go/designcenter/apiv1/designcenterpb;designcenterpb"; +option java_multiple_files = true; +option java_outer_classname = "EnumsProto"; +option java_package = "com.google.cloud.designcenter.v1"; +option php_namespace = "Google\\Cloud\\DesignCenter\\V1"; +option ruby_package = "Google::Cloud::DesignCenter::V1"; + +// Represents the type of operation to perform on an application. +enum ApplicationOperation { + // The default value. This value is unused. + APPLICATION_OPERATION_UNSPECIFIED = 0; + + // Creates a new application. + APPLICATION_OPERATION_CREATE = 1; + + // Updates an existing application. + APPLICATION_OPERATION_UPDATE = 2; + + // Previews a deployment of an application. + APPLICATION_OPERATION_PREVIEW = 3; + + // Deploys an application. + APPLICATION_OPERATION_DEPLOY = 4; + + // Gets an application. + APPLICATION_OPERATION_GET = 5; + + // Generates IaC for an application. + APPLICATION_OPERATION_GENERATE_IAC = 6; +} + +// Represents the type of operation to perform on an application template. +enum ApplicationTemplateOperation { + // The default value. This value is unused. + APPLICATION_TEMPLATE_OPERATION_UNSPECIFIED = 0; + + // Creates a new application template. + APPLICATION_TEMPLATE_OPERATION_CREATE = 1; + + // Updates an existing application template. + APPLICATION_TEMPLATE_OPERATION_UPDATE = 2; + + // Commits an application template to create a new revision. + APPLICATION_TEMPLATE_OPERATION_COMMIT = 3; + + // Generates IaC for an application template. + APPLICATION_TEMPLATE_OPERATION_GENERATE_IAC = 4; + + // Gets an application template. + APPLICATION_TEMPLATE_OPERATION_GET = 5; + + // Imports an application template from IaC. + APPLICATION_TEMPLATE_OPERATION_IMPORT_IAC = 6; + + // Updates component parameters from IaC. + APPLICATION_TEMPLATE_OPERATION_UPDATE_COMPONENT_PARAMETERS = 7; +} + +// Supported categories in Application Design Center. +enum TemplateCategory { + // Unspecified category. + TEMPLATE_CATEGORY_UNSPECIFIED = 0; + + // Component template. + COMPONENT_TEMPLATE = 1; + + // Application template. + APPLICATION_TEMPLATE = 2; + + // Imported as a single, complex unit without disassembling into components. + COMPOSITE_SOLUTION_TEMPLATE = 3 [deprecated = true]; + + // Instance template. + INSTANCE_TEMPLATE = 4; +} + +// The composition type of the applicationTemplate or application: STANDARD OR +// COMPOSITE. +enum ApplicationCompositionType { + // ApplicationCompositionType is UNSPECIFIED. + APPLICATION_COMPOSITION_TYPE_UNSPECIFIED = 0; + + // ApplicationCompositionType is STANDARD. The applicationTemplate or + // application is composed of components only of type service/workload/asset + // and has a single root module in terraform code. + STANDARD = 1; + + // ApplicationCompositionType is COMPOSITE. The template is composed of + // STANDARD applicationTemplate(s) and might be having multiple root modules + // in terraform code. + COMPOSITE = 2; +} + +// Assembly template types. +enum TemplateType { + // Default. + TEMPLATE_TYPE_UNSPECIFIED = 0; + + // A service template is an App Hub service. + SERVICE = 1; + + // A workload template is an App Hub workload. + WORKLOAD = 2; + + // An asset template can be used to provision resources that are not services + // or workloads. + ASSET = 3; + + // An application template is a composition of workload/service/asset + // templates. + APPLICATION = 4 [deprecated = true]; + + // A Jumpstart Solution template. + JSS_SOLUTION = 5 [deprecated = true]; + + // A service data source template. + SERVICE_DATA_SOURCE = 6 [deprecated = true]; + + // A helm chart based template. + HELM_APPLICATION = 7 [deprecated = true]; + + // A standard application template. + STANDARD_APPLICATION_TEMPLATE = 8; + + // A composite application template. + COMPOSITE_APPLICATION_TEMPLATE = 9; + + // A helm chart based template. + HELM_CHART = 10; +} + +// Alternate default value type. +// Allows you to define an alternative value for predefined use cases, such as +// security. If specified, this value can be used instead of the default value +// in BlueprintVariable. +enum DisplayVariableAlternateType { + // Default + DISPLAY_VARIABLE_ALTERNATE_TYPE_UNSPECIFIED = 0; + + // A more secure default. + DISPLAY_VARIABLE_ALTERNATE_TYPE_SECURITY = 1; + + // A default specifically needed for Application Design center. + DISPLAY_VARIABLE_ALTERNATE_TYPE_DC = 2; +} + +// Visibility defines how the output is exposed. +enum DisplayVariableVisibility { + // Default + DISPLAY_VARIABLE_VISIBILITY_UNSPECIFIED = 0; + + // Expose output as root module output. + DISPLAY_VARIABLE_VISIBILITY_ROOT = 1; +} + +// The IaC format to generate. +enum IACFormat { + // IaC format is unspecified. + IAC_FORMAT_UNSPECIFIED = 0; + + // IaC format is Terraform. + TERRAFORM = 1; + + // IaC format is HELM. + HELM = 2; +} + +// The type of the application. +enum ApplicationType { + // Application type is unspecified. + APPLICATION_TYPE_UNSPECIFIED = 0; + + // Application type is terraform application. + TERRAFORM_APP = 1; + + // Application type is helm application. + HELM_APP = 2; +} + +// Enum to specify the source format of the IaC. +enum IACSource { + // The source is not specified. + IAC_SOURCE_UNSPECIFIED = 0; + + // The IaC source is SAT. This is used to generate equivalent Terraform. + IAC_SOURCE_SAT = 1; + + // The IaC source is Terraform. + IAC_SOURCE_TERRAFORM = 2; +} + +// Indicates the dependency type of the connection. +enum ConnectionDependencyType { + // The dependency type is unspecified. + CONNECTION_DEPENDENCY_TYPE_UNSPECIFIED = 0; + + // Data dependency: output parameter of one module is input to another. + CONNECTION_DEPENDENCY_TYPE_DATA = 1; + + // Logical dependency: explicitly declared execution order dependency + // (depends_on). + CONNECTION_DEPENDENCY_TYPE_LOGICAL = 2; +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/export.proto b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/export.proto new file mode 100644 index 000000000000..4595202e3116 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/export.proto @@ -0,0 +1,110 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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.designcenter.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/designcenter/v1/enums.proto"; + +option csharp_namespace = "Google.Cloud.DesignCenter.V1"; +option go_package = "cloud.google.com/go/designcenter/apiv1/designcenterpb;designcenterpb"; +option java_multiple_files = true; +option java_outer_classname = "ExportProto"; +option java_package = "com.google.cloud.designcenter.v1"; +option php_namespace = "Google\\Cloud\\DesignCenter\\V1"; +option ruby_package = "Google::Cloud::DesignCenter::V1"; + +// Defines the location for storing an artifact, such as generated IaC. +message ArtifactLocation { + // Specifies the type of destination for the artifact. + oneof location { + // Optional. Source Code Management(SCM) config for storing the content, + // such as generated IaC. Supports sources integrated with Developer Connect + // like GitHub, GitHub Enterprise, GitLab, and Bitbucket. + DeveloperConnectExportConfig developer_connect_export_config = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The Cloud Storage URI for storing the generated IaC. + string gcs_uri = 2 [(google.api.field_behavior) = OPTIONAL]; + } +} + +// Through Developer Connect, defines a location where content such as +// Infrastructure as Code (IaC) is stored. +message DeveloperConnectExportConfig { + // Required. The Developer Connect Git repository link, formatted as + // `projects/*/locations/*/connections/*/gitRepositoryLinks/*`. + string developer_connect_repo_uri = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "developerconnect.googleapis.com/GitRepositoryLink" + } + ]; + + // Optional. The branch in repo to which the content such as Infrastructure as + // Code (IaC) should be written to. If empty, Application Design Center will + // create a branch and push the changes. + string branch = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Required. Directory, relative to the source repo, where content such as + // Infrastructure as Code (IaC) will be stored. + // This must be a relative path.To specify the root directory, use '/'. + // If the path or any subdirectories do not exist, they will be created. + string dir = 3 [(google.api.field_behavior) = REQUIRED]; + + // Output only. The SHA of the Git commit that contains the exported content + // such as Infrastructure as Code (IaC). + string commit_sha = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Configuration for exporting a resource as IAC. +message ExportIaCConfig { + // Configuration for the export based on the IaC format. + oneof config_payload { + // Optional. Configuration on how to handle terraform IaC export. + TerraformConfig tf_config = 2 [(google.api.field_behavior) = OPTIONAL]; + } + + // Optional. IaC format of the export. Default is [IACFormat.TERRAFORM]. + IACFormat iac_format = 1 [(google.api.field_behavior) = OPTIONAL]; +} + +// Configuration for exporting a resource as Terraform IAC. +message TerraformConfig { + // Optional. Configuration on how terraform module should be handled during + // export. + TerraformModuleConfig tf_module_config = 1 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Configuration on how terraform module should be handled during +// export. +message TerraformModuleConfig { + // Specifies an override for the default module source handling. + // If no override is set, the default behavior is to keep the original + // module references. + oneof source_override { + // Optional. This is typically only valid for 3P components if ingested via + // devconnect URI. Typically, for 1P components, since they are sourced from + // public git repos, this field is not applicable. + bool git_proxy_enabled = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If set, all the dependent modules will be downloaded from the + // target repository and referenced locally. + bool local_references_enabled = 2 [(google.api.field_behavior) = OPTIONAL]; + } +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/iac.proto b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/iac.proto new file mode 100644 index 000000000000..ab218fe1cc8b --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/iac.proto @@ -0,0 +1,119 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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.designcenter.v1; + +import "google/cloud/designcenter/v1/parameters.proto"; +import "google/protobuf/struct.proto"; + +option csharp_namespace = "Google.Cloud.DesignCenter.V1"; +option go_package = "cloud.google.com/go/designcenter/apiv1/designcenterpb;designcenterpb"; +option java_multiple_files = true; +option java_outer_classname = "IacProto"; +option java_package = "com.google.cloud.designcenter.v1"; +option php_namespace = "Google\\Cloud\\DesignCenter\\V1"; +option ruby_package = "Google::Cloud::DesignCenter::V1"; + +// Root modules metadata. +message RootModulesMetadata { + // List of terraform root modules. + repeated RootModule root_modules = 1; +} + +// Metadata for a root module. +message RootModule { + // Identifier of the root module. This is the directory name of the root + // module in the generated terraform which is also same as the corresponding + // component ID. + string id = 1; + + // List of Application Design Center component names associated with this root + // module. For standard app template type components, this list will have a + // single element. For service / workload / asset components, this list will + // contain all such component names. + repeated string components = 2; + + // Dependencies of this root module. The dependency graph of root modules + // must be acyclic. + repeated RootModuleDependency dependencies = 3; + + // List of input variables of this root module. + repeated RootInputVariable input_variables = 4; + + // List of output variables of this root module. + repeated RootOutputVariable output_variables = 5; +} + +// Root module dependency. +message RootModuleDependency { + // Identifier of the root module. + string root_module_id = 1; + + // Parameters associated with this dependency. + repeated Parameter parameters = 2; +} + +// Input variable of a root module. +message RootInputVariable { + // Name of the input variable. + string variable = 1; + + // Type of the input variable. + string variable_type = 2; + + // Value for the input variable. + google.protobuf.Value value = 3; + + // Default value of the input variable. + google.protobuf.Value default_value = 4; + + // Alias for the variable name. + string alias = 5; +} + +// Output variable of a root module. +message RootOutputVariable { + // Name of the output variable. + string variable = 1; +} + +// Represents a Terraform module, which is a collection of Terraform files. +// Eg: +// { +// "source": "git::https://github.com/my-org/my-repo", +// "files": [ +// { +// "path": "/path/to/file/main.tf", +// "content": "tf file content" +// } +// ] +// } +message TerraformModule { + // The source of the Terraform module. + string source = 1; + + // The files within the Terraform module. + repeated TerraformFile files = 2; +} + +// Represents a single Terraform file. +message TerraformFile { + // The path of the Terraform file. + string path = 1; + + // The content of the Terraform file. + string content = 2; +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/ingestion.proto b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/ingestion.proto new file mode 100644 index 000000000000..d48a8cbbcea4 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/ingestion.proto @@ -0,0 +1,255 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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.designcenter.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Cloud.DesignCenter.V1"; +option go_package = "cloud.google.com/go/designcenter/apiv1/designcenterpb;designcenterpb"; +option java_multiple_files = true; +option java_outer_classname = "IngestionProto"; +option java_package = "com.google.cloud.designcenter.v1"; +option php_namespace = "Google\\Cloud\\DesignCenter\\V1"; +option ruby_package = "Google::Cloud::DesignCenter::V1"; +option (google.api.resource_definition) = { + type: "developerconnect.googleapis.com/GitRepositoryLink" + pattern: "projects/{project}/locations/{location}/connections/{connection}/gitRepositoryLinks/{git_repository_link}" +}; + +// Defines how to access a Git source. +message GitSource { + // Required. Location of the git repo to build. + string repo = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Directory, relative to the source root, in which to run the + // build. This must be a relative path. If a step's `dir` is specified and is + // an absolute path, this value is ignored for that step's execution. + string dir = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The commit SHA of the git repo deduced from given ref_tag. + string commit_sha = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. This config defines the location of a source through Developer + // Connect. Used to access private git repos. + DeveloperConnectConfig developer_connect_config = 4 + [deprecated = true, (google.api.field_behavior) = OPTIONAL]; + + // Required. The reference tag of the git repo. + string ref_tag = 5 [(google.api.field_behavior) = REQUIRED]; +} + +// This config defines the location of a source through Developer Connect. +message DeveloperConnectConfig { + // Required. The Developer Connect Git repository link, formatted as + // `projects/*/locations/*/connections/*/gitRepositoryLink/*`. + string git_repository_link = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// This config specifies the location of a source (such as GitHub or Bitbucket) +// through Developer Connect. +message DeveloperConnectSourceConfig { + // Required. The Developer Connect Git repository link, formatted as + // `projects/*/locations/*/connections/*/gitRepositoryLinks/*`. + string developer_connect_repo_uri = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "developerconnect.googleapis.com/GitRepositoryLink" + } + ]; + + // Required. The reference (for example, a branch, tag, or commit SHA) from + // which the content should be read. + GitReference reference = 8 [(google.api.field_behavior) = REQUIRED]; + + // Required. The sub-directory within the repository from which to read + // content. The path must be relative to the repository's root such as + // dir1/dir2. To read content from the root dir, provide "/" as the value of + // the field. + string dir = 5 [(google.api.field_behavior) = REQUIRED]; + + // Output only. The SHA of the commit deduced from GitReference. + string fetched_commit_sha = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The Git reference. Can be a commit SHA, branch name, or tag name. +message GitReference { + // The reference from which the content such as Infrastructure as Code (IaC) + // should be read. + oneof reference { + // Optional. The name of the branch from which content should be read. + // For example: "main" + string branch = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The reference tag from which content should be read. + // For example: "v1.2.3" + string ref_tag = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The full SHA hash of a specific commit from which content + // should be read. + string commit_sha = 3 [(google.api.field_behavior) = OPTIONAL]; + } +} + +// Open Container Initiative (OCI) repo. +message OciRepo { + // Required. Path to Open Container Initiative (OCI) repo. + // Example: oci://us-west1-docker.pkg.dev/nyap-test/helm-repo/my-chart + string uri = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The version of the helm chart. + string version = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Field for containing the references to the source from which the + // OCI repo was created. + string module_source_uri = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// IaCModule represents a single infrastructure as code module. +message IaCModule { + // Optional. The files in the module. + repeated IaCFile files = 1 [(google.api.field_behavior) = OPTIONAL]; +} + +// IaCFile represents a single infrastructure as code file. +message IaCFile { + // Required. The name of the file. + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The content of the file. The content of the file can be read and + // passed as a string. For example, for a Terraform file, the content is the + // HCL content of the file. + string content = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Message representing the error encountered during import. +// Example: A variable with name "name" is expected to be of type string, but is +// provided as number, inside a module named "my_module". +// { +// resource_address: "module.my_module.name" +// file: "gs://my_bucket/main.tf" +// range: { +// start: { +// line: 2 +// byte_offset: 1 +// column: 2 +// } +// end: { +// line: 2 +// byte_offset: 10 +// column: 10 +// } +// } +// description: "Error parsing field: \"name\". Expected type \"string\" but got +// \"number\"." +// type: INVALID +// } +message ImportIaCError { + // The type of error. + enum Type { + // Default. + TYPE_UNSPECIFIED = 0; + + // The change is invalid. + // Example: a string value provided for a number input parameter type, + // which would be caught by Terraform validation. + INVALID = 1; + + // The change is not supported. + // Example: a user directly adding a Terraform resource in main.tf + // that Design Center does not support importing. + NOT_SUPPORTED = 2; + } + + // Specific error code for UI and programmatic handling. + enum ErrorCode { + // Default. + ERROR_CODE_UNSPECIFIED = 0; + + // HCL Syntax errors (e.g. unclosed blocks, bad characters) + ERROR_CODE_SYNTAX_ERROR = 1; + + // Top-level block is e.g. "resource", "data", "locals" + ERROR_CODE_UNSUPPORTED_BLOCK_TYPE = 2; + + // Attributes defined outside of allowed blocks + ERROR_CODE_TOP_LEVEL_ATTRIBUTE = 3; + + // Module not present in catalog + ERROR_CODE_UNSUPPORTED_MODULE = 4; + + // Attribute defined inside module that is not in the shared template + ERROR_CODE_MODULE_UNSUPPORTED_ATTRIBUTE_ADDED = 5; + + // Mandatory attribute of shared template is missing in module block + ERROR_CODE_MODULE_REQUIRED_ATTRIBUTE_REMOVED = 6; + + // Value fails shared template schema checks (regex, range, etc.) + ERROR_CODE_PARAMETER_VALUE_INVALID = 7; + + // Variable in variables.tf is added, removed or schema changed + ERROR_CODE_UNSUPPORTED_VARIABLE_CHANGE = 8; + + // Output in outputs.tf is added, removed or schema changed + ERROR_CODE_UNSUPPORTED_OUTPUT_CHANGE = 9; + + // Provider in providers.tf has added blocks or modified attributes + ERROR_CODE_UNSUPPORTED_PROVIDER_CHANGE = 10; + + // Value modified for variables defined in terraform.tfvars + ERROR_CODE_UNSUPPORTED_TFVAR_CHANGE = 11; + } + + // Output only. The resource address of the error. + string resource_address = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The file where the error has occurred. + string file = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The code portion where this error occurs. + CodeRange range = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The description of the error. + string description = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The type of error. + Type type = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Specific error code for the import error. + ErrorCode error_code = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// CodeRange represents a portion of code. +message CodeRange { + // Output only. Start position. + CodePosition start = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. End position. + CodePosition end = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// CodePosition represents a code location. +message CodePosition { + // Output only. One-based line count of the relevant position. + int32 line = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Byte offset in the content. + int32 byte_offset = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. One-based column count of the relevant position. + int32 column = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/metadata.proto b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/metadata.proto new file mode 100644 index 000000000000..34c568e77f0d --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/metadata.proto @@ -0,0 +1,797 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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.designcenter.v1; + +import "google/api/field_behavior.proto"; +import "google/cloud/designcenter/v1/enums.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.DesignCenter.V1"; +option go_package = "cloud.google.com/go/designcenter/apiv1/designcenterpb;designcenterpb"; +option java_multiple_files = true; +option java_outer_classname = "MetadataProto"; +option java_package = "com.google.cloud.designcenter.v1"; +option php_namespace = "Google\\Cloud\\DesignCenter\\V1"; +option ruby_package = "Google::Cloud::DesignCenter::V1"; + +// Terraform input and output metadata. +message TFBlueprintMetadata { + // Output only. Terraform inputs. + repeated TerraformInput terraform_input = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Terraform outputs. + repeated TerraformOutput terraform_output = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. APIs that must be enabled to deploy the template, in the form + // of "compute.googleapis.com". + repeated string apis = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. IAM roles required by the service account deploying the + // template, in the form of "roles/compute.admin". + repeated string roles = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The time estimate for deploying the blueprint. + google.protobuf.Duration deployment_duration = 6 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The icon URI for the blueprint. + string icon_uri = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Union of all the Terraform input connections. + repeated TerraformInputConnections connections = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. UI metadata for the blueprint. + TerraformBlueprintUiMetadata ui_metadata = 11 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Provider versions required to deploy the blueprint. + repeated ProviderVersion provider_versions = 12 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// ProviderVersion defines the required version for a provider. +message ProviderVersion { + // Output only. The provider source in the format: + // [hostname]/[namespace]/[name]. Hostname is optional, and defaults to the + // Terraform registry. + string source = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Version constraint string. + string version = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Terraform inputs. +message TerraformInput { + // Output only. Input variable name present in Terraform. + string terraform_input_variable = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Terraform variable description. + string description = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The Terraform input data type. + string type = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The default value of the Terraform input variable. + google.protobuf.Value default_value = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Terraform input connections. + repeated TerraformInputConnections connections = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Indicates if input is required. + bool is_required = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Indicates if the Terraform variable is sensitive. + bool sensitive = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Optional validation rules defined on the variable. + repeated TerraformVariableValidation validation_rules = 8 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Represents a custom validation rule defined on a Terraform input variable. +message TerraformVariableValidation { + // Optional. The HCL expression for the validation condition (e.g., + // "length(var.image_id) > 4"). + string condition = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The error message displayed when the condition is false. + string error_message = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// TerraformInputConnections +message TerraformInputConnections { + // Output only. List of other templates that can be connected to. + string cft_template_uri = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Version of the other template that can be connected to. + string cft_template_version = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Output variable name present in Terraform. + string output_var = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Input path of the other template that can be connected to. + string input_path = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Terraform outputs. +message TerraformOutput { + // Output only. Type of Terraform output. + google.protobuf.Value type = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Output variable name present in Terraform. + string terraform_output_variable = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Description of the Terraform varaiable. + string description = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Terraform blueprint UI metadata. +message TerraformBlueprintUiMetadata { + // Output only. Terraform UI inputs. + TerraformUiInput terraform_ui_input = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Terraform UI outputs. + TerraformUiOutput terraform_ui_output = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Alternate default for a UI input. +message AlternateDefault { + // Output only. Type of alternate default. + DisplayVariableAlternateType type = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Value of the alternate default. + google.protobuf.Value value = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Value label for a UI input. +message ValueLabel { + // Output only. Value of the enum. + string value = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Label of the enum. + string label = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Display variable toggle. +message DisplayVariableToggle { + // Toogle variable type enum. + enum ToggleVariableType { + // Default + TOGGLE_VARIABLE_TYPE_UNSPECIFIED = 0; + + // Boolean + TOGGLE_VARIABLE_TYPE_BOOLEAN = 1; + + // String + TOGGLE_VARIABLE_TYPE_STRING = 2; + + // Integer + TOGGLE_VARIABLE_TYPE_INTEGER = 3; + } + + // Output only. The name of the variable used to toggle the display of another + // variable. + string variable = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The value of the variable used to toggle the display of + // another variable. + repeated string variable_values = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The type of the variable used to toggle the display of another + // variable. + ToggleVariableType variable_type = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Terraform blueprint UI input. +message TerraformUiInput { + // Output only. Terraform UI inputs. + map terraform_ui_inputs = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Terraform blueprint UI input display variable. +message TerraformUiInputDisplayVariable { + // Output only. Display name of the input. + string display_name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Title of the input. + string title = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Alternate defaults for the input. + repeated AlternateDefault alternate_defaults = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Regex based validation rules for the variable. + string regex_validation = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Minimum value for numeric types. + float min = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Maximum value for numeric types. + float max = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Text describing the validation rules for the property. + // Typically shown after an invalid input. Optional. UTF-8 text. No markup. At + // most 128 characters. + string validation = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Labels for enum values. + // Values must be UTF-8 text with no markup, and at most 64 characters. + repeated ValueLabel enum_value_labels = 9 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Indicates the "advanced" level of the input property. Level 0 + // (default) will always be shown. Level 1 corresponds to one expansion (user + // clicks "show advanced options" or "more options"). Higher levels correspond + // to further expansions, or they may be collapsed to level 1 by the UI + // implementation. + // Optional. + int32 level = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Property subtext, displayed below the title. + string subtext = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Variables used to toggle the display of another variable. + repeated DisplayVariableToggle toggle_using_variables = 12 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A map that defines all fields of the input variable. + map properties = 13 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Terraform blueprint UI output. +message TerraformUiOutput { + // Output only. Message to be displayed in the UI. + string output_message = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Visibility of the output. + map terraform_ui_outputs = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Terraform blueprint UI output display. +message TerraformUiOutputDisplay { + // Output only. Visibility of the output. + DisplayVariableVisibility visibility = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Helm Chart metadata. +message HelmChartMetadata { + // Output only. Helm Chart inputs. + repeated HelmChartInput helm_input = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Helm Chart outputs. + repeated HelmChartOutput helm_output = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Helm Chart inputs. +// Documentation: https://helm.sh/docs/ +message HelmChartInput { + // Output only. Input variable name present in Helm Chart values.yaml + string helm_input_variable = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Input variable description. + string description = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Input data type. + string type = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The default value of the input variable. + google.protobuf.Value default_value = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Indicates if input is required. + bool is_required = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Contains details of nested inputs. + map nested_inputs = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Helm Chart outputs. +message HelmChartOutput { + // Output only. Type of output. + google.protobuf.Value value = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Output variable name present. + string helm_output_variable = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Description of the variable. + string description = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Metadata for the input +message MetadataInput { + // Required. spec containing the metadata + MetadataInputSpec spec = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// Specifications for the input +message MetadataInputSpec { + // Optional. TemplateInfo provides the actuation tool information. + TemplateInfo info = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. TemplateSchemas provides the input variables lists and connection + // information. + TemplateSchema interfaces = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Required. TemplateRequirements defines the roles required and the provider + // versions. + TemplateRequirements requirements = 4 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. TemplateUi defines the UI related information for the Template. + TemplateUi ui = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// TemplateInfo provides the actuation tool information. +message TemplateInfo { + // Required. IaCFormatInfo defines the actuation tool used to provision the + // Template. + IacFormatInfo actuation_tool = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// IacFormatInfo defines the actuation tool used to provision the +// Template. +message IacFormatInfo { + // Required. Flavor is the type of the actuation tool. + string flavor = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Required version for the actuation tool. + // required_version = ">= 0.13" + string version = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// TemplateSchema provides the input variables lists and connection +// information. +message TemplateSchema { + // Required. All defined variables for the Template + repeated TemplateVariable variables = 1 + [(google.api.field_behavior) = REQUIRED]; +} + +// TemplateTerraform inputs. +message TemplateVariable { + // Required. Input variable name present in Terraform. + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Terraform input connections. + repeated TemplateConnections connections = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// TemplateConnections +message TemplateConnections { + // Required. Source of the connection. + ConnectionSource source = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Connection specifications. + ConnectionSpec spec = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Defines the source of a connection. +message ConnectionSource { + // Required. Source of the connection. Defined using the same format as module + // source of form [hostname]/namespace/name/provider for registry references + // and unprefixed github.com URLs for github references. + string source = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Version constraint syntax using the same format as module version + // constraints. + string version = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Defines the specifications of a connection. +message ConnectionSpec { + // Required. Output expression identifying output being connected to variable. + string output_expr = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Optional dot separated attribuite notation to connect to a + // specific object field of the input variable. + optional string input_path = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// TemplateRequirements defines the roles required and the associated services +// that need to be enabled to provision Template resources. +message TemplateRequirements { + // Required. All roles required for the component + repeated TemplateRoles roles = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Required provider versions. + repeated ProviderVersion provider_versions = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Template Roles provide the level and roles +message TemplateRoles { + // Required. Level of the role. + string level = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. List of roles. + repeated string roles = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// TemplateUi defines the UI related information for the Template. +message TemplateUi { + // Required. The top-level input section that defines the list of variables + // and their sections on the deployment page. + TemplateUiInput input = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The top-level output section that defines the list of outputs and + // their visibility on the deployment page. + TemplateUiOutput runtime = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// TemplateUiInput defines the list of variables and their sections on the +// deployment page. +message TemplateUiInput { + // Required. variables is a map defining all inputs on the UI. + map variables = 1 + [(google.api.field_behavior) = REQUIRED]; +} + +// TemplateUiOutput defines the list of outputs and their visibility on the +// deployment page. +message TemplateUiOutput { + // Optional. Message to be displayed in the UI. + string output_message = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Required. outputs is a map defining all outputs on the UI. + map outputs = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Additional display specific Template pertaining to a particular output +// variable. +message TemplateUiOutputDisplayVariable { + // Required. Visibility of the output. + DisplayVariableVisibility visibility = 1 + [(google.api.field_behavior) = REQUIRED]; +} + +// Additional display specific Template pertaining to a particular input +// variable. +message DisplayVariable { + // Required. The variable name from the corresponding standard Template file. + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Visible title for the variable on the UI. + string title = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Alternate defaults for the input. + repeated AlternateDefaultInput alternate_defaults = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Regex based validation rules for the variable. + string regex_validation = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Minimum value for numeric types. + optional float min = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Maximum value for numeric types. + optional float max = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Text describing the validation rules for the property. Typically + // shown after an invalid input. Optional. UTF-8 text. No markup. At most 128 + // characters. + string validation = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Labels for enum values. + // Values must be UTF-8 text with no markup, and at most 64 characters. + repeated ValueLabelInput enum_value_labels = 8 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Indicates the "advanced" level of the input property. Level 0 + // (default) will always be shown. Level 1 corresponds to one expansion (user + // clicks "show advanced options" or "more options"). Higher levels correspond + // to further expansions, or they may be collapsed to level 1 by the UI + // implementation. + // Optional. + int32 level = 9 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Property subtext, displayed below the title. + string subtext = 10 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. properties is a map defining all the fields of the input + // variable. + map properties = 11 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Value label input for a UI. +message ValueLabelInput { + // Optional. Value of the enum. + string value = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Label of the enum. + string label = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Alternate default input for a UI. +message AlternateDefaultInput { + // Optional. Type of alternate default. + DisplayVariableAlternateType type = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Value of the alternate default. + google.protobuf.Value value = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Represents a Product Main logical product. +message LogicalProduct { + // Output only. The resource name of the logical product. + // Format: logicalProducts/{logical_product} + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The display name of the logical product. + string title = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A short description of the logical product. + string short_description = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Inferred metadata. +message InferredMetadata { + // Output only. Inferred description. + string description = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Inferred template metadata related to Terraform input and + // output. + TFBlueprintMetadata template_metadata = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Inferred metadata creation timestamp. + google.protobuf.Timestamp create_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Inferred metadata update timestamp. + google.protobuf.Timestamp update_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Represents the type of a resource within a component template. +message ResourceType { + // Output only. The Terraform resource type. For example: + // "google_compute_instance". + string tf_resource = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The CAIS resource type. + string cais_resource = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Top-level message representing a Terraform module and its metadata. +message TerraformModuleMetadata { + // Optional. The URI of the Terraform module. + string uri = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Unique identifier for the module version, e.g., + // "GoogleCloudPlatform/secret-manager/google/0.9.0" + string id = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Owner of the module. + string owner = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Namespace for the module, often the organization. + string module_namespace = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Name of the module. + string name = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Semantic version of the module. + string version = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Primary provider used by the module, e.g., "google". + string provider = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Description of the module's purpose. + string description = 9 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. URL to the source repository. + string source = 10 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Git tag or ref for this version. + string tag = 11 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Details of the root module. + ModuleDetails root = 15 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. List of submodules within this module. + repeated ModuleDetails submodules = 16 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. List of examples for this module. + repeated ModuleDetails examples = 17 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. List of provider names used. + repeated string providers = 18 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. List of available versions for this module. + repeated string versions = 19 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. List of available revisions for this module. + repeated string revisions = 20 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Terraform input connections. + repeated TerraformInputConnections connections = 21 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Details about a specific module, submodule, or example. +message ModuleDetails { + // Optional. Relative path to the module/example. + string path = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Name of the module/example. + string name = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Content of the README file. + string readme = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Indicates if the module/example directory is empty of .tf files. + bool empty = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. List of input variables. + repeated ModuleInput inputs = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. List of outputs. + repeated ModuleOutput outputs = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. List of module dependencies. + repeated ModuleDependency module_dependencies = 7 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. List of provider dependencies. + repeated ProviderDependency provider_dependencies = 8 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. List of resources defined. + repeated ModuleResource resources = 9 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Represents an input variable for a module. +message ModuleInput { + // Optional. Name of the input variable. + string name = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Terraform type of the variable. + string type = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Description of the variable. + string description = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Default value of the variable as a string representation. + // Using google.protobuf.Value to allow for different types, though a string + // is common. + google.protobuf.Value default_value = 4 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Whether the input variable is required. + bool required = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Represents an output value from a module. +message ModuleOutput { + // Optional. Name of the output. + string name = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Description of the output. + string description = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Represents a dependency on another Terraform module. +message ModuleDependency { + // Optional. Local name of the module instance. + string name = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Source of the module. + string source = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Version constraint for the module. + string version = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Represents a dependency on a Terraform provider. +message ProviderDependency { + // Optional. Name of the provider. + string name = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Namespace of the provider (e.g., "hashicorp"). + string provider_namespace = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Source path of the provider. + string source = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Version constraints for the provider. + string version = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Represents a resource declared within a module. +message ModuleResource { + // Optional. Local name of the resource instance. + string name = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Type of the resource (e.g., "google_secret_manager_secret"). + string type = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for ListCatalogTemplateRevisionMetadata. +message ListCatalogTemplateRevisionMetadataResponse { + // List of catalog template revisions. + repeated CatalogTemplateRevisionMetadata catalog_template_revision_metadata = + 1; + + // If there might be more results than those appearing in this response, then + // nextPageToken is included. To get the next set of results, call this method + // again using the value of nextPageToken as pageToken. + string next_page_token = 2; + + // Locations that could not be reached. + repeated string unreachable = 3; +} + +// Represents metadata of a catalog template revision in the management context. +message CatalogTemplateRevisionMetadata { + // Output only. The catalog template name in following format: + // `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template` + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The catalog template creation timestamp. + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The catalog template update timestamp. + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The template revisions UUID. + string uuid = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Latest revision of the template. + string latest_revision_id = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The display name of the catalog template. + string display_name = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The category of the catalog template. + TemplateCategory template_category = 7 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. The Git source URI where the template repository is hosted. + string git_source_uri = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The catalog template description. + string description = 9 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/parameters.proto b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/parameters.proto new file mode 100644 index 000000000000..bad6404be28d --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/parameters.proto @@ -0,0 +1,103 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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.designcenter.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/struct.proto"; + +option csharp_namespace = "Google.Cloud.DesignCenter.V1"; +option go_package = "cloud.google.com/go/designcenter/apiv1/designcenterpb;designcenterpb"; +option java_multiple_files = true; +option java_outer_classname = "ParametersProto"; +option java_package = "com.google.cloud.designcenter.v1"; +option php_namespace = "Google\\Cloud\\DesignCenter\\V1"; +option ruby_package = "Google::Cloud::DesignCenter::V1"; + +// The details of an input/output variable: the variable and the component Uri. +// name. +message ComponentVariable { + // Required. Name of the variable. + string variable = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Component to which this variable belongs. + string component_uri = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// SaaS runtime context. +message SaaSRuntimeContext { + // Optional. The SaaS names. Format for each SaaS: + // projects/{project}/locations/{location}/saas/{saas} + repeated string saas_names = 1 [(google.api.field_behavior) = OPTIONAL]; +} + +// Connection level parameters associated with each component within an +// application. +message ConnectionParameters { + // Required. The name of the connection parameter. + string connection = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. A list of parameters associated with the connection. + repeated Parameter parameters = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Component parameter schema, which contains a list of all component +// parameters. +message ComponentParameterSchema { + // Output only. The key of the parameter. + string key = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The default value of the parameter. + google.protobuf.Value default_value = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Whether the parameter is required. + bool is_required = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The type of the parameter. + string type = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Parameter resource. +message Parameter { + // Required. The key of the parameter. + string key = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The value of the parameter. + google.protobuf.Value value = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Indicates if the parameter is read-only (driven by + // expression). + bool read_only = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Parameter values stored for a single cloud control of a policy. +message CloudControlConfig { + // Required. Resource name of the cloud control that these parameter values + // apply to. Format: + // organizations/{organization}/locations/{location}/cloudControls/{cloud_control} + // or projects/{project}/locations/{location}/cloudControls/{cloud_control} + string cloud_control = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudsecuritycompliance.googleapis.com/CloudControl" + } + ]; + + // Optional. Parameter values for this specific control. + repeated Parameter parameters = 2 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/sharing.proto b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/sharing.proto new file mode 100644 index 000000000000..46de7a5559e9 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/sharing.proto @@ -0,0 +1,226 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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.designcenter.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/designcenter/v1/authoring.proto"; +import "google/cloud/designcenter/v1/enums.proto"; +import "google/cloud/designcenter/v1/ingestion.proto"; +import "google/cloud/designcenter/v1/metadata.proto"; +import "google/cloud/designcenter/v1/parameters.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.DesignCenter.V1"; +option go_package = "cloud.google.com/go/designcenter/apiv1/designcenterpb;designcenterpb"; +option java_multiple_files = true; +option java_outer_classname = "SharingResourcesProto"; +option java_package = "com.google.cloud.designcenter.v1"; +option php_namespace = "Google\\Cloud\\DesignCenter\\V1"; +option ruby_package = "Google::Cloud::DesignCenter::V1"; + +// A catalog share between spaces. +message Share { + option (google.api.resource) = { + type: "designcenter.googleapis.com/Share" + pattern: "projects/{project}/locations/{location}/spaces/{space}/catalogs/{catalog}/shares/{share}" + plural: "shares" + singular: "share" + }; + + // The share status, which indicates whether the catalog is in sync. + enum State { + // The state of the share is unknown. + STATE_UNSPECIFIED = 0; + + // The share is in sync with the shared template catalog. + IN_SYNC = 1; + + // The share is out of sync with the shared template catalog. + OUT_OF_SYNC = 2; + } + + // Identifier. The share name in the following format: + // `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/shares/$share` + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Required. The space resource path to which the catalog is shared. + // Format is `projects/$project/locations/$location/spaces/$space` + string destination_space = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "designcenter.googleapis.com/Space" + } + ]; + + // Output only. The share creation timestamp. + google.protobuf.Timestamp create_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The state of the share. + State state = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// A read-only template that is shared with a space. +message SharedTemplate { + option (google.api.resource) = { + type: "designcenter.googleapis.com/SharedTemplate" + pattern: "projects/{project}/locations/{location}/spaces/{space}/sharedTemplates/{shared_template}" + plural: "sharedTemplates" + singular: "sharedTemplate" + }; + + // Identifier. The shared template name. + // `projects/$project/locations/$location/spaces/$space/sharedTemplates/$sharedTemplate` + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Optional. The shared template display name. + string display_name = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The shared template description. + string description = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The origin template of the shared template. + string origin_template = 3 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "designcenter.googleapis.com/CatalogTemplate" + } + ]; + + // Output only. The shared template creation timestamp. + google.protobuf.Timestamp create_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The shared template update timestamp. + google.protobuf.Timestamp update_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Latest revision of the shared template. + string latest_revision_id = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. The category of the template. + TemplateCategory template_category = 8 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. The Application Design Center assembly template type. + TemplateType type = 9 [(google.api.field_behavior) = OPTIONAL]; +} + +// A read-only template revision that is shared with a space. +message SharedTemplateRevision { + option (google.api.resource) = { + type: "designcenter.googleapis.com/SharedTemplateRevision" + pattern: "projects/{project}/locations/{location}/spaces/{space}/sharedTemplates/{shared_template}/revisions/{revision}" + plural: "sharedTemplateRevisions" + singular: "sharedTemplateRevision" + }; + + // The artifact location of the Terraform in the template. + oneof artifact_location { + // Optional. The git source. + GitSource git_source = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Deprecated: Added new field tf_module_gcs_uri. + // The Cloud Storage URI, which must be in the format gs://[bucket] or + // gs://[bucket]/[object]. + string gcs_source_uri = 20 + [deprecated = true, (google.api.field_behavior) = OPTIONAL]; + + // Optional. The application template revision source. + string application_template_revision_source = 10 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "designcenter.googleapis.com/ApplicationTemplateRevision" + } + ]; + + // Optional. Configuration for fetching content from source code repository + // such as GitHub or Bitbucket through Developer Connect. + DeveloperConnectSourceConfig developer_connect_source_config = 13 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The Open Container Initiative (OCI) repo source that contains + // helm charts. + OciRepo oci_repo = 15 [(google.api.field_behavior) = OPTIONAL]; + } + + // Identifier. The shared template revision name. + // $sharedTemplate is a server-generated UUID. + // `projects/$project/locations/$location/spaces/$space/sharedTemplates/$sharedTemplate/revisions/$revision` + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Optional. The shared template revision description. + string description = 12 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The Application Design Center assembly template type. + TemplateType type = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The shared template metadata. + TFBlueprintMetadata shared_template_metadata = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The shared template revision refers to the following catalog + // template revision. + string origin_template_revision = 7 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "designcenter.googleapis.com/CatalogTemplateRevision" + } + ]; + + // Output only. The shared template revision creation timestamp. + google.protobuf.Timestamp create_time = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The serialized application template revision. + SerializedApplicationTemplate application_template_revision = 11 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The helm chart metadata. + HelmChartMetadata helm_chart_metadata = 14 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The category of the template. + TemplateCategory template_category = 16 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The Product Main logical product type information. + repeated LogicalProduct logical_products = 17 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The annotations of the shared template revision. + // Key is the annotation name. Value is the annotation value. + map annotations = 18 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Metadata that was automatically inferred from the template + // content. + InferredMetadata inferred_metadata = 19 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The resource types present in the template revision. + repeated ResourceType resource_types = 21 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Indicates the IaC source format of this shared template + // revision. + IACSource iac_source = 24 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The values provided for the input variables. + repeated Parameter application_parameters = 25 + [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/sharing_messages.proto b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/sharing_messages.proto new file mode 100644 index 000000000000..1aea0cd79f31 --- /dev/null +++ b/java-designcenter/proto-google-cloud-designcenter-v1/src/main/proto/google/cloud/designcenter/v1/sharing_messages.proto @@ -0,0 +1,270 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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.designcenter.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/designcenter/v1/best_practices.proto"; +import "google/cloud/designcenter/v1/iac.proto"; +import "google/cloud/designcenter/v1/sharing.proto"; + +option csharp_namespace = "Google.Cloud.DesignCenter.V1"; +option go_package = "cloud.google.com/go/designcenter/apiv1/designcenterpb;designcenterpb"; +option java_multiple_files = true; +option java_outer_classname = "SharingProto"; +option java_package = "com.google.cloud.designcenter.v1"; +option php_namespace = "Google\\Cloud\\DesignCenter\\V1"; +option ruby_package = "Google::Cloud::DesignCenter::V1"; + +// Message for creating a share of a catalog. +message CreateShareRequest { + // Required. The parent resource in which shares are created. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "designcenter.googleapis.com/Share" + } + ]; + + // Required. The ID of the share to create. + string share_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The share to create. + Share share = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Message for listing shares of a catalog. +message ListSharesRequest { + // Required. The parent resource from which a list of shares is requested. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "designcenter.googleapis.com/Share" + } + ]; + + // Optional. The maximum number of results to return from this request. + // Non-positive + // values are ignored. The presence of nextPageToken in the response + // indicates that more results might be available. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If present, then retrieve the next batch of results from the + // preceding call to this method. pageToken must be the value of nextPageToken + // from the previous response. The values of other method parameters should be + // identical to those in the previous call. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. How the results should be sorted. + string order_by = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Message for response to listing shares of a catalog. +message ListSharesResponse { + // The list of shares. + repeated Share shares = 1; + + // If there might be more results than those appearing in this response, then + // nextPageToken is included. To get the next set of results, call this method + // again using the value of nextPageToken as pageToken. + string next_page_token = 2; +} + +// Message for getting a share of a catalog. +message GetShareRequest { + // Required. The share name in the following format: + // `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/shares/$share` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "designcenter.googleapis.com/Share" + } + ]; +} + +// Message for deleting a share of a catalog. +message DeleteShareRequest { + // Required. The share name in the following format: + // `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/shares/$share` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "designcenter.googleapis.com/Share" + } + ]; +} + +// Message for syncing a share of a catalog. +message SyncShareRequest { + // Required. The share name in the following format: + // `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/shares/$share` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "designcenter.googleapis.com/Share" + } + ]; +} + +// Message for getting a shared template. +message GetSharedTemplateRequest { + // Required. The shared template name. + // Format: + // `projects/$project/locations/$location/spaces/$space/sharedTemplates/$sharedTemplate` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "designcenter.googleapis.com/SharedTemplate" + } + ]; +} + +// Message for requesting list of shared templates. +message ListSharedTemplatesRequest { + // Required. The parent space for which shared templates are listed in the + // following format: `projects/$project/locations/$location/spaces/$space` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "designcenter.googleapis.com/SharedTemplate" + } + ]; + + // Optional. The maximum number of results to return from this request. + // Non-positive values are ignored. The presence of nextPageToken in the + // response indicates that more results might be available. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If present, then retrieve the next batch of results from the + // preceding call to this method. pageToken must be the value of nextPageToken + // from the previous response. The values of other method parameters should be + // identical to those in the previous call. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A filter that chooses which shared templates to return. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. How the results should be sorted. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Message for response to listing shared templates. +message ListSharedTemplatesResponse { + // The list of shared templates. + repeated SharedTemplate shared_templates = 1; + + // If there might be more results than those appearing in this response, then + // nextPageToken is included. To get the next set of results, call this method + // again using the value of nextPageToken as pageToken. + string next_page_token = 2; +} + +// Message for getting a shared template revisions. +message GetSharedTemplateRevisionRequest { + // Required. The shared template revision name, in the following format: + // `projects/$project/locations/$location/spaces/$space/sharedTemplates/$sharedTemplate/revisions/$revision` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "designcenter.googleapis.com/SharedTemplateRevision" + } + ]; +} + +// Message for requesting a list of shared template revisions. +message ListSharedTemplateRevisionsRequest { + // Required. The parent resource from which to list shared template revisions, + // in the following format: + // `projects/$project/locations/$location/spaces/$space/sharedTemplates/$sharedTemplate` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "designcenter.googleapis.com/SharedTemplateRevision" + } + ]; + + // Optional. The maximum number of results to return from this request. + // Non-positive + // values are ignored. The presence of nextPageToken in the response + // indicates that more results might be available. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If present, then retrieve the next batch of results from the + // preceding call to this method. pageToken must be the value of nextPageToken + // from the previous response. The values of other method parameters should be + // identical to those in the previous call. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A filter that chooses which shared template revisions to return. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. How the results should be sorted. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Message for response to listing shared templates. +message ListSharedTemplateRevisionsResponse { + // The list of shared templates. + repeated SharedTemplateRevision shared_template_revisions = 1; + + // If there might be more results than those appearing in this response, then + // nextPageToken is included. To get the next set of results, call this method + // again using the value of nextPageToken as pageToken. + string next_page_token = 2; +} + +// Request message for fetching the Terraform source of a shared template +// revision. +message FetchSharedTemplateRevisionTFSourceRequest { + // Required. Name of the resource + // Eg: + // `projects/$project/locations/$location/spaces/$space/sharedTemplates/$template/revisions/$revision` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "designcenter.googleapis.com/SharedTemplateRevision" + } + ]; +} + +// Response message for getting the Terraform source of a shared template +// revision. +message FetchSharedTemplateRevisionTFSourceResponse { + // The root Terraform module of the catalog template revision. + TerraformModule root_module = 1; + + // The dependent Terraform modules used by the root module. + repeated TerraformModule modules = 2; +} + +// Request message for FetchSharedTemplateRevisionAssessmentReport. +message FetchSharedTemplateRevisionAssessmentReportRequest { + // Required. The shared template revision name in the following format: + // `projects/{project}/locations/{location}/spaces/{space}/sharedTemplates/{shared_template}/revisions/{revision}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "designcenter.googleapis.com/SharedTemplateRevision" + } + ]; +} + +// Response message for FetchSharedTemplateRevisionAssessmentReport. +message FetchSharedTemplateRevisionAssessmentReportResponse { + // Assessment report for the shared template revision. + AssessmentReport assessment_report = 1; +} diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/commitapplicationtemplate/AsyncCommitApplicationTemplate.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/commitapplicationtemplate/AsyncCommitApplicationTemplate.java new file mode 100644 index 000000000000..047c6d5ddab5 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/commitapplicationtemplate/AsyncCommitApplicationTemplate.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_CommitApplicationTemplate_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.ApplicationTemplateName; +import com.google.cloud.designcenter.v1.ApplicationTemplateRevision; +import com.google.cloud.designcenter.v1.CommitApplicationTemplateRequest; +import com.google.cloud.designcenter.v1.DesignCenterClient; + +public class AsyncCommitApplicationTemplate { + + public static void main(String[] args) throws Exception { + asyncCommitApplicationTemplate(); + } + + public static void asyncCommitApplicationTemplate() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + CommitApplicationTemplateRequest request = + CommitApplicationTemplateRequest.newBuilder() + .setName( + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString()) + .build(); + ApiFuture future = + designCenterClient.commitApplicationTemplateCallable().futureCall(request); + // Do something. + ApplicationTemplateRevision response = future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_CommitApplicationTemplate_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/commitapplicationtemplate/SyncCommitApplicationTemplate.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/commitapplicationtemplate/SyncCommitApplicationTemplate.java new file mode 100644 index 000000000000..8449e4cad98f --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/commitapplicationtemplate/SyncCommitApplicationTemplate.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_CommitApplicationTemplate_sync] +import com.google.cloud.designcenter.v1.ApplicationTemplateName; +import com.google.cloud.designcenter.v1.ApplicationTemplateRevision; +import com.google.cloud.designcenter.v1.CommitApplicationTemplateRequest; +import com.google.cloud.designcenter.v1.DesignCenterClient; + +public class SyncCommitApplicationTemplate { + + public static void main(String[] args) throws Exception { + syncCommitApplicationTemplate(); + } + + public static void syncCommitApplicationTemplate() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + CommitApplicationTemplateRequest request = + CommitApplicationTemplateRequest.newBuilder() + .setName( + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString()) + .build(); + ApplicationTemplateRevision response = designCenterClient.commitApplicationTemplate(request); + } + } +} +// [END designcenter_v1_generated_DesignCenter_CommitApplicationTemplate_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/commitapplicationtemplate/SyncCommitApplicationTemplateApplicationtemplatename.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/commitapplicationtemplate/SyncCommitApplicationTemplateApplicationtemplatename.java new file mode 100644 index 000000000000..761645176db1 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/commitapplicationtemplate/SyncCommitApplicationTemplateApplicationtemplatename.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_CommitApplicationTemplate_Applicationtemplatename_sync] +import com.google.cloud.designcenter.v1.ApplicationTemplateName; +import com.google.cloud.designcenter.v1.ApplicationTemplateRevision; +import com.google.cloud.designcenter.v1.DesignCenterClient; + +public class SyncCommitApplicationTemplateApplicationtemplatename { + + public static void main(String[] args) throws Exception { + syncCommitApplicationTemplateApplicationtemplatename(); + } + + public static void syncCommitApplicationTemplateApplicationtemplatename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ApplicationTemplateName name = + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + ApplicationTemplateRevision response = designCenterClient.commitApplicationTemplate(name); + } + } +} +// [END designcenter_v1_generated_DesignCenter_CommitApplicationTemplate_Applicationtemplatename_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/commitapplicationtemplate/SyncCommitApplicationTemplateString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/commitapplicationtemplate/SyncCommitApplicationTemplateString.java new file mode 100644 index 000000000000..ceb0d200d97d --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/commitapplicationtemplate/SyncCommitApplicationTemplateString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_CommitApplicationTemplate_String_sync] +import com.google.cloud.designcenter.v1.ApplicationTemplateName; +import com.google.cloud.designcenter.v1.ApplicationTemplateRevision; +import com.google.cloud.designcenter.v1.DesignCenterClient; + +public class SyncCommitApplicationTemplateString { + + public static void main(String[] args) throws Exception { + syncCommitApplicationTemplateString(); + } + + public static void syncCommitApplicationTemplateString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + String name = + ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString(); + ApplicationTemplateRevision response = designCenterClient.commitApplicationTemplate(name); + } + } +} +// [END designcenter_v1_generated_DesignCenter_CommitApplicationTemplate_String_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/create/SyncCreateSetCredentialsProvider.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..a4b65c241468 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.DesignCenterSettings; +import com.google.cloud.designcenter.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 + DesignCenterSettings designCenterSettings = + DesignCenterSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + DesignCenterClient designCenterClient = DesignCenterClient.create(designCenterSettings); + } +} +// [END designcenter_v1_generated_DesignCenter_Create_SetCredentialsProvider_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/create/SyncCreateSetEndpoint.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..5b195f879e2a --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/create/SyncCreateSetEndpoint.java @@ -0,0 +1,41 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_Create_SetEndpoint_sync] +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.DesignCenterSettings; +import com.google.cloud.designcenter.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 + DesignCenterSettings designCenterSettings = + DesignCenterSettings.newBuilder().setEndpoint(myEndpoint).build(); + DesignCenterClient designCenterClient = DesignCenterClient.create(designCenterSettings); + } +} +// [END designcenter_v1_generated_DesignCenter_Create_SetEndpoint_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/create/SyncCreateUseHttpJsonTransport.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..fdb459a40dcb --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_Create_UseHttpJsonTransport_sync] +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.DesignCenterSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DesignCenterSettings designCenterSettings = DesignCenterSettings.newHttpJsonBuilder().build(); + DesignCenterClient designCenterClient = DesignCenterClient.create(designCenterSettings); + } +} +// [END designcenter_v1_generated_DesignCenter_Create_UseHttpJsonTransport_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createapplication/AsyncCreateApplication.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createapplication/AsyncCreateApplication.java new file mode 100644 index 000000000000..009d0b6f5f7f --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createapplication/AsyncCreateApplication.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_CreateApplication_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.Application; +import com.google.cloud.designcenter.v1.CreateApplicationRequest; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.SpaceName; + +public class AsyncCreateApplication { + + public static void main(String[] args) throws Exception { + asyncCreateApplication(); + } + + public static void asyncCreateApplication() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + CreateApplicationRequest request = + CreateApplicationRequest.newBuilder() + .setParent(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString()) + .setApplicationId("applicationId-1011352949") + .setApplication(Application.newBuilder().build()) + .build(); + ApiFuture future = + designCenterClient.createApplicationCallable().futureCall(request); + // Do something. + Application response = future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_CreateApplication_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createapplication/SyncCreateApplication.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createapplication/SyncCreateApplication.java new file mode 100644 index 000000000000..72b2e12c12d7 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createapplication/SyncCreateApplication.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_CreateApplication_sync] +import com.google.cloud.designcenter.v1.Application; +import com.google.cloud.designcenter.v1.CreateApplicationRequest; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.SpaceName; + +public class SyncCreateApplication { + + public static void main(String[] args) throws Exception { + syncCreateApplication(); + } + + public static void syncCreateApplication() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + CreateApplicationRequest request = + CreateApplicationRequest.newBuilder() + .setParent(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString()) + .setApplicationId("applicationId-1011352949") + .setApplication(Application.newBuilder().build()) + .build(); + Application response = designCenterClient.createApplication(request); + } + } +} +// [END designcenter_v1_generated_DesignCenter_CreateApplication_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createapplication/SyncCreateApplicationSpacenameApplicationString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createapplication/SyncCreateApplicationSpacenameApplicationString.java new file mode 100644 index 000000000000..70e82e98da66 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createapplication/SyncCreateApplicationSpacenameApplicationString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_CreateApplication_SpacenameApplicationString_sync] +import com.google.cloud.designcenter.v1.Application; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.SpaceName; + +public class SyncCreateApplicationSpacenameApplicationString { + + public static void main(String[] args) throws Exception { + syncCreateApplicationSpacenameApplicationString(); + } + + public static void syncCreateApplicationSpacenameApplicationString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + SpaceName parent = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]"); + Application application = Application.newBuilder().build(); + String applicationId = "applicationId-1011352949"; + Application response = + designCenterClient.createApplication(parent, application, applicationId); + } + } +} +// [END designcenter_v1_generated_DesignCenter_CreateApplication_SpacenameApplicationString_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createapplication/SyncCreateApplicationStringApplicationString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createapplication/SyncCreateApplicationStringApplicationString.java new file mode 100644 index 000000000000..80d7162d5137 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createapplication/SyncCreateApplicationStringApplicationString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_CreateApplication_StringApplicationString_sync] +import com.google.cloud.designcenter.v1.Application; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.SpaceName; + +public class SyncCreateApplicationStringApplicationString { + + public static void main(String[] args) throws Exception { + syncCreateApplicationStringApplicationString(); + } + + public static void syncCreateApplicationStringApplicationString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + String parent = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString(); + Application application = Application.newBuilder().build(); + String applicationId = "applicationId-1011352949"; + Application response = + designCenterClient.createApplication(parent, application, applicationId); + } + } +} +// [END designcenter_v1_generated_DesignCenter_CreateApplication_StringApplicationString_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createapplicationtemplate/AsyncCreateApplicationTemplate.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createapplicationtemplate/AsyncCreateApplicationTemplate.java new file mode 100644 index 000000000000..f157a5eafc29 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createapplicationtemplate/AsyncCreateApplicationTemplate.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_CreateApplicationTemplate_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.ApplicationTemplate; +import com.google.cloud.designcenter.v1.CreateApplicationTemplateRequest; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.SpaceName; + +public class AsyncCreateApplicationTemplate { + + public static void main(String[] args) throws Exception { + asyncCreateApplicationTemplate(); + } + + public static void asyncCreateApplicationTemplate() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + CreateApplicationTemplateRequest request = + CreateApplicationTemplateRequest.newBuilder() + .setParent(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString()) + .setApplicationTemplateId("applicationTemplateId-1557848923") + .setApplicationTemplate(ApplicationTemplate.newBuilder().build()) + .build(); + ApiFuture future = + designCenterClient.createApplicationTemplateCallable().futureCall(request); + // Do something. + ApplicationTemplate response = future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_CreateApplicationTemplate_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createapplicationtemplate/SyncCreateApplicationTemplate.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createapplicationtemplate/SyncCreateApplicationTemplate.java new file mode 100644 index 000000000000..32c6a02cd4c3 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createapplicationtemplate/SyncCreateApplicationTemplate.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_CreateApplicationTemplate_sync] +import com.google.cloud.designcenter.v1.ApplicationTemplate; +import com.google.cloud.designcenter.v1.CreateApplicationTemplateRequest; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.SpaceName; + +public class SyncCreateApplicationTemplate { + + public static void main(String[] args) throws Exception { + syncCreateApplicationTemplate(); + } + + public static void syncCreateApplicationTemplate() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + CreateApplicationTemplateRequest request = + CreateApplicationTemplateRequest.newBuilder() + .setParent(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString()) + .setApplicationTemplateId("applicationTemplateId-1557848923") + .setApplicationTemplate(ApplicationTemplate.newBuilder().build()) + .build(); + ApplicationTemplate response = designCenterClient.createApplicationTemplate(request); + } + } +} +// [END designcenter_v1_generated_DesignCenter_CreateApplicationTemplate_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createapplicationtemplate/SyncCreateApplicationTemplateSpacenameApplicationtemplateString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createapplicationtemplate/SyncCreateApplicationTemplateSpacenameApplicationtemplateString.java new file mode 100644 index 000000000000..0a0c0f45f0dd --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createapplicationtemplate/SyncCreateApplicationTemplateSpacenameApplicationtemplateString.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_CreateApplicationTemplate_SpacenameApplicationtemplateString_sync] +import com.google.cloud.designcenter.v1.ApplicationTemplate; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.SpaceName; + +public class SyncCreateApplicationTemplateSpacenameApplicationtemplateString { + + public static void main(String[] args) throws Exception { + syncCreateApplicationTemplateSpacenameApplicationtemplateString(); + } + + public static void syncCreateApplicationTemplateSpacenameApplicationtemplateString() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + SpaceName parent = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]"); + ApplicationTemplate applicationTemplate = ApplicationTemplate.newBuilder().build(); + String applicationTemplateId = "applicationTemplateId-1557848923"; + ApplicationTemplate response = + designCenterClient.createApplicationTemplate( + parent, applicationTemplate, applicationTemplateId); + } + } +} +// [END designcenter_v1_generated_DesignCenter_CreateApplicationTemplate_SpacenameApplicationtemplateString_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createapplicationtemplate/SyncCreateApplicationTemplateStringApplicationtemplateString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createapplicationtemplate/SyncCreateApplicationTemplateStringApplicationtemplateString.java new file mode 100644 index 000000000000..4cfad2869e81 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createapplicationtemplate/SyncCreateApplicationTemplateStringApplicationtemplateString.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_CreateApplicationTemplate_StringApplicationtemplateString_sync] +import com.google.cloud.designcenter.v1.ApplicationTemplate; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.SpaceName; + +public class SyncCreateApplicationTemplateStringApplicationtemplateString { + + public static void main(String[] args) throws Exception { + syncCreateApplicationTemplateStringApplicationtemplateString(); + } + + public static void syncCreateApplicationTemplateStringApplicationtemplateString() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + String parent = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString(); + ApplicationTemplate applicationTemplate = ApplicationTemplate.newBuilder().build(); + String applicationTemplateId = "applicationTemplateId-1557848923"; + ApplicationTemplate response = + designCenterClient.createApplicationTemplate( + parent, applicationTemplate, applicationTemplateId); + } + } +} +// [END designcenter_v1_generated_DesignCenter_CreateApplicationTemplate_StringApplicationtemplateString_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createcatalog/AsyncCreateCatalog.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createcatalog/AsyncCreateCatalog.java new file mode 100644 index 000000000000..47f7eb5ab85f --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createcatalog/AsyncCreateCatalog.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_CreateCatalog_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.Catalog; +import com.google.cloud.designcenter.v1.CreateCatalogRequest; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.SpaceName; + +public class AsyncCreateCatalog { + + public static void main(String[] args) throws Exception { + asyncCreateCatalog(); + } + + public static void asyncCreateCatalog() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + CreateCatalogRequest request = + CreateCatalogRequest.newBuilder() + .setParent(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString()) + .setCatalogId("catalogId1455933204") + .setCatalog(Catalog.newBuilder().build()) + .build(); + ApiFuture future = designCenterClient.createCatalogCallable().futureCall(request); + // Do something. + Catalog response = future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_CreateCatalog_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createcatalog/SyncCreateCatalog.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createcatalog/SyncCreateCatalog.java new file mode 100644 index 000000000000..682df7e7b5de --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createcatalog/SyncCreateCatalog.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_CreateCatalog_sync] +import com.google.cloud.designcenter.v1.Catalog; +import com.google.cloud.designcenter.v1.CreateCatalogRequest; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.SpaceName; + +public class SyncCreateCatalog { + + public static void main(String[] args) throws Exception { + syncCreateCatalog(); + } + + public static void syncCreateCatalog() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + CreateCatalogRequest request = + CreateCatalogRequest.newBuilder() + .setParent(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString()) + .setCatalogId("catalogId1455933204") + .setCatalog(Catalog.newBuilder().build()) + .build(); + Catalog response = designCenterClient.createCatalog(request); + } + } +} +// [END designcenter_v1_generated_DesignCenter_CreateCatalog_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createcatalog/SyncCreateCatalogSpacenameCatalogString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createcatalog/SyncCreateCatalogSpacenameCatalogString.java new file mode 100644 index 000000000000..0949c57d1503 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createcatalog/SyncCreateCatalogSpacenameCatalogString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_CreateCatalog_SpacenameCatalogString_sync] +import com.google.cloud.designcenter.v1.Catalog; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.SpaceName; + +public class SyncCreateCatalogSpacenameCatalogString { + + public static void main(String[] args) throws Exception { + syncCreateCatalogSpacenameCatalogString(); + } + + public static void syncCreateCatalogSpacenameCatalogString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + SpaceName parent = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]"); + Catalog catalog = Catalog.newBuilder().build(); + String catalogId = "catalogId1455933204"; + Catalog response = designCenterClient.createCatalog(parent, catalog, catalogId); + } + } +} +// [END designcenter_v1_generated_DesignCenter_CreateCatalog_SpacenameCatalogString_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createcatalog/SyncCreateCatalogStringCatalogString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createcatalog/SyncCreateCatalogStringCatalogString.java new file mode 100644 index 000000000000..336850ece1f1 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createcatalog/SyncCreateCatalogStringCatalogString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_CreateCatalog_StringCatalogString_sync] +import com.google.cloud.designcenter.v1.Catalog; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.SpaceName; + +public class SyncCreateCatalogStringCatalogString { + + public static void main(String[] args) throws Exception { + syncCreateCatalogStringCatalogString(); + } + + public static void syncCreateCatalogStringCatalogString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + String parent = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString(); + Catalog catalog = Catalog.newBuilder().build(); + String catalogId = "catalogId1455933204"; + Catalog response = designCenterClient.createCatalog(parent, catalog, catalogId); + } + } +} +// [END designcenter_v1_generated_DesignCenter_CreateCatalog_StringCatalogString_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createcatalogtemplate/AsyncCreateCatalogTemplate.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createcatalogtemplate/AsyncCreateCatalogTemplate.java new file mode 100644 index 000000000000..218b3b6e6f14 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createcatalogtemplate/AsyncCreateCatalogTemplate.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_CreateCatalogTemplate_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.CatalogName; +import com.google.cloud.designcenter.v1.CatalogTemplate; +import com.google.cloud.designcenter.v1.CreateCatalogTemplateRequest; +import com.google.cloud.designcenter.v1.DesignCenterClient; + +public class AsyncCreateCatalogTemplate { + + public static void main(String[] args) throws Exception { + asyncCreateCatalogTemplate(); + } + + public static void asyncCreateCatalogTemplate() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + CreateCatalogTemplateRequest request = + CreateCatalogTemplateRequest.newBuilder() + .setParent( + CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]").toString()) + .setCatalogTemplateId("catalogTemplateId-1740091346") + .setCatalogTemplate(CatalogTemplate.newBuilder().build()) + .build(); + ApiFuture future = + designCenterClient.createCatalogTemplateCallable().futureCall(request); + // Do something. + CatalogTemplate response = future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_CreateCatalogTemplate_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createcatalogtemplate/SyncCreateCatalogTemplate.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createcatalogtemplate/SyncCreateCatalogTemplate.java new file mode 100644 index 000000000000..454ac4257d7a --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createcatalogtemplate/SyncCreateCatalogTemplate.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_CreateCatalogTemplate_sync] +import com.google.cloud.designcenter.v1.CatalogName; +import com.google.cloud.designcenter.v1.CatalogTemplate; +import com.google.cloud.designcenter.v1.CreateCatalogTemplateRequest; +import com.google.cloud.designcenter.v1.DesignCenterClient; + +public class SyncCreateCatalogTemplate { + + public static void main(String[] args) throws Exception { + syncCreateCatalogTemplate(); + } + + public static void syncCreateCatalogTemplate() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + CreateCatalogTemplateRequest request = + CreateCatalogTemplateRequest.newBuilder() + .setParent( + CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]").toString()) + .setCatalogTemplateId("catalogTemplateId-1740091346") + .setCatalogTemplate(CatalogTemplate.newBuilder().build()) + .build(); + CatalogTemplate response = designCenterClient.createCatalogTemplate(request); + } + } +} +// [END designcenter_v1_generated_DesignCenter_CreateCatalogTemplate_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createcatalogtemplate/SyncCreateCatalogTemplateCatalognameCatalogtemplateString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createcatalogtemplate/SyncCreateCatalogTemplateCatalognameCatalogtemplateString.java new file mode 100644 index 000000000000..4b8279a3b797 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createcatalogtemplate/SyncCreateCatalogTemplateCatalognameCatalogtemplateString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_CreateCatalogTemplate_CatalognameCatalogtemplateString_sync] +import com.google.cloud.designcenter.v1.CatalogName; +import com.google.cloud.designcenter.v1.CatalogTemplate; +import com.google.cloud.designcenter.v1.DesignCenterClient; + +public class SyncCreateCatalogTemplateCatalognameCatalogtemplateString { + + public static void main(String[] args) throws Exception { + syncCreateCatalogTemplateCatalognameCatalogtemplateString(); + } + + public static void syncCreateCatalogTemplateCatalognameCatalogtemplateString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + CatalogName parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]"); + CatalogTemplate catalogTemplate = CatalogTemplate.newBuilder().build(); + String catalogTemplateId = "catalogTemplateId-1740091346"; + CatalogTemplate response = + designCenterClient.createCatalogTemplate(parent, catalogTemplate, catalogTemplateId); + } + } +} +// [END designcenter_v1_generated_DesignCenter_CreateCatalogTemplate_CatalognameCatalogtemplateString_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createcatalogtemplate/SyncCreateCatalogTemplateStringCatalogtemplateString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createcatalogtemplate/SyncCreateCatalogTemplateStringCatalogtemplateString.java new file mode 100644 index 000000000000..9d8a33ef0890 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createcatalogtemplate/SyncCreateCatalogTemplateStringCatalogtemplateString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_CreateCatalogTemplate_StringCatalogtemplateString_sync] +import com.google.cloud.designcenter.v1.CatalogName; +import com.google.cloud.designcenter.v1.CatalogTemplate; +import com.google.cloud.designcenter.v1.DesignCenterClient; + +public class SyncCreateCatalogTemplateStringCatalogtemplateString { + + public static void main(String[] args) throws Exception { + syncCreateCatalogTemplateStringCatalogtemplateString(); + } + + public static void syncCreateCatalogTemplateStringCatalogtemplateString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + String parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]").toString(); + CatalogTemplate catalogTemplate = CatalogTemplate.newBuilder().build(); + String catalogTemplateId = "catalogTemplateId-1740091346"; + CatalogTemplate response = + designCenterClient.createCatalogTemplate(parent, catalogTemplate, catalogTemplateId); + } + } +} +// [END designcenter_v1_generated_DesignCenter_CreateCatalogTemplate_StringCatalogtemplateString_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createcatalogtemplaterevision/AsyncCreateCatalogTemplateRevision.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createcatalogtemplaterevision/AsyncCreateCatalogTemplateRevision.java new file mode 100644 index 000000000000..20cff1ff7ad6 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createcatalogtemplaterevision/AsyncCreateCatalogTemplateRevision.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_CreateCatalogTemplateRevision_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.CatalogTemplateName; +import com.google.cloud.designcenter.v1.CatalogTemplateRevision; +import com.google.cloud.designcenter.v1.CreateCatalogTemplateRevisionRequest; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.longrunning.Operation; + +public class AsyncCreateCatalogTemplateRevision { + + public static void main(String[] args) throws Exception { + asyncCreateCatalogTemplateRevision(); + } + + public static void asyncCreateCatalogTemplateRevision() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + CreateCatalogTemplateRevisionRequest request = + CreateCatalogTemplateRevisionRequest.newBuilder() + .setParent( + CatalogTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]") + .toString()) + .setCatalogTemplateRevisionId("catalogTemplateRevisionId1620031081") + .setCatalogTemplateRevision(CatalogTemplateRevision.newBuilder().build()) + .build(); + ApiFuture future = + designCenterClient.createCatalogTemplateRevisionCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_CreateCatalogTemplateRevision_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createcatalogtemplaterevision/AsyncCreateCatalogTemplateRevisionLRO.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createcatalogtemplaterevision/AsyncCreateCatalogTemplateRevisionLRO.java new file mode 100644 index 000000000000..2218d87444fe --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createcatalogtemplaterevision/AsyncCreateCatalogTemplateRevisionLRO.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_CreateCatalogTemplateRevision_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.designcenter.v1.CatalogTemplateName; +import com.google.cloud.designcenter.v1.CatalogTemplateRevision; +import com.google.cloud.designcenter.v1.CreateCatalogTemplateRevisionRequest; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.OperationMetadata; + +public class AsyncCreateCatalogTemplateRevisionLRO { + + public static void main(String[] args) throws Exception { + asyncCreateCatalogTemplateRevisionLRO(); + } + + public static void asyncCreateCatalogTemplateRevisionLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + CreateCatalogTemplateRevisionRequest request = + CreateCatalogTemplateRevisionRequest.newBuilder() + .setParent( + CatalogTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]") + .toString()) + .setCatalogTemplateRevisionId("catalogTemplateRevisionId1620031081") + .setCatalogTemplateRevision(CatalogTemplateRevision.newBuilder().build()) + .build(); + OperationFuture future = + designCenterClient.createCatalogTemplateRevisionOperationCallable().futureCall(request); + // Do something. + CatalogTemplateRevision response = future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_CreateCatalogTemplateRevision_LRO_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createcatalogtemplaterevision/SyncCreateCatalogTemplateRevision.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createcatalogtemplaterevision/SyncCreateCatalogTemplateRevision.java new file mode 100644 index 000000000000..fe2b86d18c5a --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createcatalogtemplaterevision/SyncCreateCatalogTemplateRevision.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_CreateCatalogTemplateRevision_sync] +import com.google.cloud.designcenter.v1.CatalogTemplateName; +import com.google.cloud.designcenter.v1.CatalogTemplateRevision; +import com.google.cloud.designcenter.v1.CreateCatalogTemplateRevisionRequest; +import com.google.cloud.designcenter.v1.DesignCenterClient; + +public class SyncCreateCatalogTemplateRevision { + + public static void main(String[] args) throws Exception { + syncCreateCatalogTemplateRevision(); + } + + public static void syncCreateCatalogTemplateRevision() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + CreateCatalogTemplateRevisionRequest request = + CreateCatalogTemplateRevisionRequest.newBuilder() + .setParent( + CatalogTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]") + .toString()) + .setCatalogTemplateRevisionId("catalogTemplateRevisionId1620031081") + .setCatalogTemplateRevision(CatalogTemplateRevision.newBuilder().build()) + .build(); + CatalogTemplateRevision response = + designCenterClient.createCatalogTemplateRevisionAsync(request).get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_CreateCatalogTemplateRevision_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createcatalogtemplaterevision/SyncCreateCatalogTemplateRevisionCatalogtemplatenameCatalogtemplaterevisionString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createcatalogtemplaterevision/SyncCreateCatalogTemplateRevisionCatalogtemplatenameCatalogtemplaterevisionString.java new file mode 100644 index 000000000000..5a559e059c08 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createcatalogtemplaterevision/SyncCreateCatalogTemplateRevisionCatalogtemplatenameCatalogtemplaterevisionString.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_CreateCatalogTemplateRevision_CatalogtemplatenameCatalogtemplaterevisionString_sync] +import com.google.cloud.designcenter.v1.CatalogTemplateName; +import com.google.cloud.designcenter.v1.CatalogTemplateRevision; +import com.google.cloud.designcenter.v1.DesignCenterClient; + +public class SyncCreateCatalogTemplateRevisionCatalogtemplatenameCatalogtemplaterevisionString { + + public static void main(String[] args) throws Exception { + syncCreateCatalogTemplateRevisionCatalogtemplatenameCatalogtemplaterevisionString(); + } + + public static void + syncCreateCatalogTemplateRevisionCatalogtemplatenameCatalogtemplaterevisionString() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + CatalogTemplateName parent = + CatalogTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]"); + CatalogTemplateRevision catalogTemplateRevision = + CatalogTemplateRevision.newBuilder().build(); + String catalogTemplateRevisionId = "catalogTemplateRevisionId1620031081"; + CatalogTemplateRevision response = + designCenterClient + .createCatalogTemplateRevisionAsync( + parent, catalogTemplateRevision, catalogTemplateRevisionId) + .get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_CreateCatalogTemplateRevision_CatalogtemplatenameCatalogtemplaterevisionString_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createcatalogtemplaterevision/SyncCreateCatalogTemplateRevisionStringCatalogtemplaterevisionString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createcatalogtemplaterevision/SyncCreateCatalogTemplateRevisionStringCatalogtemplaterevisionString.java new file mode 100644 index 000000000000..5d5ce54cfffc --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createcatalogtemplaterevision/SyncCreateCatalogTemplateRevisionStringCatalogtemplaterevisionString.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_CreateCatalogTemplateRevision_StringCatalogtemplaterevisionString_sync] +import com.google.cloud.designcenter.v1.CatalogTemplateName; +import com.google.cloud.designcenter.v1.CatalogTemplateRevision; +import com.google.cloud.designcenter.v1.DesignCenterClient; + +public class SyncCreateCatalogTemplateRevisionStringCatalogtemplaterevisionString { + + public static void main(String[] args) throws Exception { + syncCreateCatalogTemplateRevisionStringCatalogtemplaterevisionString(); + } + + public static void syncCreateCatalogTemplateRevisionStringCatalogtemplaterevisionString() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + String parent = + CatalogTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]") + .toString(); + CatalogTemplateRevision catalogTemplateRevision = + CatalogTemplateRevision.newBuilder().build(); + String catalogTemplateRevisionId = "catalogTemplateRevisionId1620031081"; + CatalogTemplateRevision response = + designCenterClient + .createCatalogTemplateRevisionAsync( + parent, catalogTemplateRevision, catalogTemplateRevisionId) + .get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_CreateCatalogTemplateRevision_StringCatalogtemplaterevisionString_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createcomponent/AsyncCreateComponent.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createcomponent/AsyncCreateComponent.java new file mode 100644 index 000000000000..d1fb2ec3f6f3 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createcomponent/AsyncCreateComponent.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_CreateComponent_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.ApplicationTemplateName; +import com.google.cloud.designcenter.v1.Component; +import com.google.cloud.designcenter.v1.CreateComponentRequest; +import com.google.cloud.designcenter.v1.DesignCenterClient; + +public class AsyncCreateComponent { + + public static void main(String[] args) throws Exception { + asyncCreateComponent(); + } + + public static void asyncCreateComponent() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + CreateComponentRequest request = + CreateComponentRequest.newBuilder() + .setParent( + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString()) + .setComponentId("componentId-985933064") + .setComponent(Component.newBuilder().build()) + .build(); + ApiFuture future = + designCenterClient.createComponentCallable().futureCall(request); + // Do something. + Component response = future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_CreateComponent_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createcomponent/SyncCreateComponent.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createcomponent/SyncCreateComponent.java new file mode 100644 index 000000000000..8b5e45531c5a --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createcomponent/SyncCreateComponent.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_CreateComponent_sync] +import com.google.cloud.designcenter.v1.ApplicationTemplateName; +import com.google.cloud.designcenter.v1.Component; +import com.google.cloud.designcenter.v1.CreateComponentRequest; +import com.google.cloud.designcenter.v1.DesignCenterClient; + +public class SyncCreateComponent { + + public static void main(String[] args) throws Exception { + syncCreateComponent(); + } + + public static void syncCreateComponent() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + CreateComponentRequest request = + CreateComponentRequest.newBuilder() + .setParent( + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString()) + .setComponentId("componentId-985933064") + .setComponent(Component.newBuilder().build()) + .build(); + Component response = designCenterClient.createComponent(request); + } + } +} +// [END designcenter_v1_generated_DesignCenter_CreateComponent_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createcomponent/SyncCreateComponentApplicationtemplatenameComponentString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createcomponent/SyncCreateComponentApplicationtemplatenameComponentString.java new file mode 100644 index 000000000000..12f34845f0e2 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createcomponent/SyncCreateComponentApplicationtemplatenameComponentString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_CreateComponent_ApplicationtemplatenameComponentString_sync] +import com.google.cloud.designcenter.v1.ApplicationTemplateName; +import com.google.cloud.designcenter.v1.Component; +import com.google.cloud.designcenter.v1.DesignCenterClient; + +public class SyncCreateComponentApplicationtemplatenameComponentString { + + public static void main(String[] args) throws Exception { + syncCreateComponentApplicationtemplatenameComponentString(); + } + + public static void syncCreateComponentApplicationtemplatenameComponentString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ApplicationTemplateName parent = + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + Component component = Component.newBuilder().build(); + String componentId = "componentId-985933064"; + Component response = designCenterClient.createComponent(parent, component, componentId); + } + } +} +// [END designcenter_v1_generated_DesignCenter_CreateComponent_ApplicationtemplatenameComponentString_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createcomponent/SyncCreateComponentStringComponentString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createcomponent/SyncCreateComponentStringComponentString.java new file mode 100644 index 000000000000..f20d3d5e71ff --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createcomponent/SyncCreateComponentStringComponentString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_CreateComponent_StringComponentString_sync] +import com.google.cloud.designcenter.v1.ApplicationTemplateName; +import com.google.cloud.designcenter.v1.Component; +import com.google.cloud.designcenter.v1.DesignCenterClient; + +public class SyncCreateComponentStringComponentString { + + public static void main(String[] args) throws Exception { + syncCreateComponentStringComponentString(); + } + + public static void syncCreateComponentStringComponentString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + String parent = + ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString(); + Component component = Component.newBuilder().build(); + String componentId = "componentId-985933064"; + Component response = designCenterClient.createComponent(parent, component, componentId); + } + } +} +// [END designcenter_v1_generated_DesignCenter_CreateComponent_StringComponentString_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createconnection/AsyncCreateConnection.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createconnection/AsyncCreateConnection.java new file mode 100644 index 000000000000..4b90897d14d1 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createconnection/AsyncCreateConnection.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_CreateConnection_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.ComponentName; +import com.google.cloud.designcenter.v1.Connection; +import com.google.cloud.designcenter.v1.CreateConnectionRequest; +import com.google.cloud.designcenter.v1.DesignCenterClient; + +public class AsyncCreateConnection { + + public static void main(String[] args) throws Exception { + asyncCreateConnection(); + } + + public static void asyncCreateConnection() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + CreateConnectionRequest request = + CreateConnectionRequest.newBuilder() + .setParent( + ComponentName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[COMPONENT]") + .toString()) + .setConnectionId("connectionId1923106969") + .setConnection(Connection.newBuilder().build()) + .build(); + ApiFuture future = + designCenterClient.createConnectionCallable().futureCall(request); + // Do something. + Connection response = future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_CreateConnection_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createconnection/SyncCreateConnection.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createconnection/SyncCreateConnection.java new file mode 100644 index 000000000000..e89a4ca128fb --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createconnection/SyncCreateConnection.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_CreateConnection_sync] +import com.google.cloud.designcenter.v1.ComponentName; +import com.google.cloud.designcenter.v1.Connection; +import com.google.cloud.designcenter.v1.CreateConnectionRequest; +import com.google.cloud.designcenter.v1.DesignCenterClient; + +public class SyncCreateConnection { + + public static void main(String[] args) throws Exception { + syncCreateConnection(); + } + + public static void syncCreateConnection() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + CreateConnectionRequest request = + CreateConnectionRequest.newBuilder() + .setParent( + ComponentName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[COMPONENT]") + .toString()) + .setConnectionId("connectionId1923106969") + .setConnection(Connection.newBuilder().build()) + .build(); + Connection response = designCenterClient.createConnection(request); + } + } +} +// [END designcenter_v1_generated_DesignCenter_CreateConnection_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createconnection/SyncCreateConnectionComponentnameConnectionString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createconnection/SyncCreateConnectionComponentnameConnectionString.java new file mode 100644 index 000000000000..64a32663960a --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createconnection/SyncCreateConnectionComponentnameConnectionString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_CreateConnection_ComponentnameConnectionString_sync] +import com.google.cloud.designcenter.v1.ComponentName; +import com.google.cloud.designcenter.v1.Connection; +import com.google.cloud.designcenter.v1.DesignCenterClient; + +public class SyncCreateConnectionComponentnameConnectionString { + + public static void main(String[] args) throws Exception { + syncCreateConnectionComponentnameConnectionString(); + } + + public static void syncCreateConnectionComponentnameConnectionString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ComponentName parent = + ComponentName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[COMPONENT]"); + Connection connection = Connection.newBuilder().build(); + String connectionId = "connectionId1923106969"; + Connection response = designCenterClient.createConnection(parent, connection, connectionId); + } + } +} +// [END designcenter_v1_generated_DesignCenter_CreateConnection_ComponentnameConnectionString_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createconnection/SyncCreateConnectionStringConnectionString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createconnection/SyncCreateConnectionStringConnectionString.java new file mode 100644 index 000000000000..cd3ff22ba893 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createconnection/SyncCreateConnectionStringConnectionString.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_CreateConnection_StringConnectionString_sync] +import com.google.cloud.designcenter.v1.ComponentName; +import com.google.cloud.designcenter.v1.Connection; +import com.google.cloud.designcenter.v1.DesignCenterClient; + +public class SyncCreateConnectionStringConnectionString { + + public static void main(String[] args) throws Exception { + syncCreateConnectionStringConnectionString(); + } + + public static void syncCreateConnectionStringConnectionString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + String parent = + ComponentName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[COMPONENT]") + .toString(); + Connection connection = Connection.newBuilder().build(); + String connectionId = "connectionId1923106969"; + Connection response = designCenterClient.createConnection(parent, connection, connectionId); + } + } +} +// [END designcenter_v1_generated_DesignCenter_CreateConnection_StringConnectionString_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createpolicy/AsyncCreatePolicy.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createpolicy/AsyncCreatePolicy.java new file mode 100644 index 000000000000..20cb04525c61 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createpolicy/AsyncCreatePolicy.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_CreatePolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.ApplicationTemplateName; +import com.google.cloud.designcenter.v1.CreatePolicyRequest; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.Policy; + +public class AsyncCreatePolicy { + + public static void main(String[] args) throws Exception { + asyncCreatePolicy(); + } + + public static void asyncCreatePolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + CreatePolicyRequest request = + CreatePolicyRequest.newBuilder() + .setParent( + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString()) + .setPolicyId("policyId546908653") + .setPolicy(Policy.newBuilder().build()) + .build(); + ApiFuture future = designCenterClient.createPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_CreatePolicy_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createpolicy/SyncCreatePolicy.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createpolicy/SyncCreatePolicy.java new file mode 100644 index 000000000000..1e67142fee92 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createpolicy/SyncCreatePolicy.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_CreatePolicy_sync] +import com.google.cloud.designcenter.v1.ApplicationTemplateName; +import com.google.cloud.designcenter.v1.CreatePolicyRequest; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.Policy; + +public class SyncCreatePolicy { + + public static void main(String[] args) throws Exception { + syncCreatePolicy(); + } + + public static void syncCreatePolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + CreatePolicyRequest request = + CreatePolicyRequest.newBuilder() + .setParent( + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString()) + .setPolicyId("policyId546908653") + .setPolicy(Policy.newBuilder().build()) + .build(); + Policy response = designCenterClient.createPolicy(request); + } + } +} +// [END designcenter_v1_generated_DesignCenter_CreatePolicy_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createpolicy/SyncCreatePolicyApplicationtemplatenamePolicyString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createpolicy/SyncCreatePolicyApplicationtemplatenamePolicyString.java new file mode 100644 index 000000000000..42602505cf91 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createpolicy/SyncCreatePolicyApplicationtemplatenamePolicyString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_CreatePolicy_ApplicationtemplatenamePolicyString_sync] +import com.google.cloud.designcenter.v1.ApplicationTemplateName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.Policy; + +public class SyncCreatePolicyApplicationtemplatenamePolicyString { + + public static void main(String[] args) throws Exception { + syncCreatePolicyApplicationtemplatenamePolicyString(); + } + + public static void syncCreatePolicyApplicationtemplatenamePolicyString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ApplicationTemplateName parent = + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + Policy policy = Policy.newBuilder().build(); + String policyId = "policyId546908653"; + Policy response = designCenterClient.createPolicy(parent, policy, policyId); + } + } +} +// [END designcenter_v1_generated_DesignCenter_CreatePolicy_ApplicationtemplatenamePolicyString_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createpolicy/SyncCreatePolicyStringPolicyString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createpolicy/SyncCreatePolicyStringPolicyString.java new file mode 100644 index 000000000000..f13a6114cf61 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createpolicy/SyncCreatePolicyStringPolicyString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_CreatePolicy_StringPolicyString_sync] +import com.google.cloud.designcenter.v1.ApplicationTemplateName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.Policy; + +public class SyncCreatePolicyStringPolicyString { + + public static void main(String[] args) throws Exception { + syncCreatePolicyStringPolicyString(); + } + + public static void syncCreatePolicyStringPolicyString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + String parent = + ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString(); + Policy policy = Policy.newBuilder().build(); + String policyId = "policyId546908653"; + Policy response = designCenterClient.createPolicy(parent, policy, policyId); + } + } +} +// [END designcenter_v1_generated_DesignCenter_CreatePolicy_StringPolicyString_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createshare/AsyncCreateShare.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createshare/AsyncCreateShare.java new file mode 100644 index 000000000000..3467b28ae875 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createshare/AsyncCreateShare.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_CreateShare_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.CatalogName; +import com.google.cloud.designcenter.v1.CreateShareRequest; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.Share; +import com.google.longrunning.Operation; + +public class AsyncCreateShare { + + public static void main(String[] args) throws Exception { + asyncCreateShare(); + } + + public static void asyncCreateShare() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + CreateShareRequest request = + CreateShareRequest.newBuilder() + .setParent( + CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]").toString()) + .setShareId("shareId2054217050") + .setShare(Share.newBuilder().build()) + .build(); + ApiFuture future = designCenterClient.createShareCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_CreateShare_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createshare/AsyncCreateShareLRO.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createshare/AsyncCreateShareLRO.java new file mode 100644 index 000000000000..feae56f87b76 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createshare/AsyncCreateShareLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_CreateShare_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.designcenter.v1.CatalogName; +import com.google.cloud.designcenter.v1.CreateShareRequest; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.OperationMetadata; +import com.google.cloud.designcenter.v1.Share; + +public class AsyncCreateShareLRO { + + public static void main(String[] args) throws Exception { + asyncCreateShareLRO(); + } + + public static void asyncCreateShareLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + CreateShareRequest request = + CreateShareRequest.newBuilder() + .setParent( + CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]").toString()) + .setShareId("shareId2054217050") + .setShare(Share.newBuilder().build()) + .build(); + OperationFuture future = + designCenterClient.createShareOperationCallable().futureCall(request); + // Do something. + Share response = future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_CreateShare_LRO_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createshare/SyncCreateShare.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createshare/SyncCreateShare.java new file mode 100644 index 000000000000..2df5b3a9067f --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createshare/SyncCreateShare.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_CreateShare_sync] +import com.google.cloud.designcenter.v1.CatalogName; +import com.google.cloud.designcenter.v1.CreateShareRequest; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.Share; + +public class SyncCreateShare { + + public static void main(String[] args) throws Exception { + syncCreateShare(); + } + + public static void syncCreateShare() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + CreateShareRequest request = + CreateShareRequest.newBuilder() + .setParent( + CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]").toString()) + .setShareId("shareId2054217050") + .setShare(Share.newBuilder().build()) + .build(); + Share response = designCenterClient.createShareAsync(request).get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_CreateShare_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createshare/SyncCreateShareCatalognameShareString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createshare/SyncCreateShareCatalognameShareString.java new file mode 100644 index 000000000000..0c8baf70705b --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createshare/SyncCreateShareCatalognameShareString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_CreateShare_CatalognameShareString_sync] +import com.google.cloud.designcenter.v1.CatalogName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.Share; + +public class SyncCreateShareCatalognameShareString { + + public static void main(String[] args) throws Exception { + syncCreateShareCatalognameShareString(); + } + + public static void syncCreateShareCatalognameShareString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + CatalogName parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]"); + Share share = Share.newBuilder().build(); + String shareId = "shareId2054217050"; + Share response = designCenterClient.createShareAsync(parent, share, shareId).get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_CreateShare_CatalognameShareString_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createshare/SyncCreateShareStringShareString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createshare/SyncCreateShareStringShareString.java new file mode 100644 index 000000000000..4aac0def0e15 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createshare/SyncCreateShareStringShareString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_CreateShare_StringShareString_sync] +import com.google.cloud.designcenter.v1.CatalogName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.Share; + +public class SyncCreateShareStringShareString { + + public static void main(String[] args) throws Exception { + syncCreateShareStringShareString(); + } + + public static void syncCreateShareStringShareString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + String parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]").toString(); + Share share = Share.newBuilder().build(); + String shareId = "shareId2054217050"; + Share response = designCenterClient.createShareAsync(parent, share, shareId).get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_CreateShare_StringShareString_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createspace/AsyncCreateSpace.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createspace/AsyncCreateSpace.java new file mode 100644 index 000000000000..342521aca161 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createspace/AsyncCreateSpace.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_CreateSpace_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.CreateSpaceRequest; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.LocationName; +import com.google.cloud.designcenter.v1.Space; + +public class AsyncCreateSpace { + + public static void main(String[] args) throws Exception { + asyncCreateSpace(); + } + + public static void asyncCreateSpace() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + CreateSpaceRequest request = + CreateSpaceRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setSpaceId("spaceId-2012163903") + .setSpace(Space.newBuilder().build()) + .build(); + ApiFuture future = designCenterClient.createSpaceCallable().futureCall(request); + // Do something. + Space response = future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_CreateSpace_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createspace/SyncCreateSpace.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createspace/SyncCreateSpace.java new file mode 100644 index 000000000000..ac9b63cb4feb --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createspace/SyncCreateSpace.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_CreateSpace_sync] +import com.google.cloud.designcenter.v1.CreateSpaceRequest; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.LocationName; +import com.google.cloud.designcenter.v1.Space; + +public class SyncCreateSpace { + + public static void main(String[] args) throws Exception { + syncCreateSpace(); + } + + public static void syncCreateSpace() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + CreateSpaceRequest request = + CreateSpaceRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setSpaceId("spaceId-2012163903") + .setSpace(Space.newBuilder().build()) + .build(); + Space response = designCenterClient.createSpace(request); + } + } +} +// [END designcenter_v1_generated_DesignCenter_CreateSpace_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createspace/SyncCreateSpaceLocationnameSpaceString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createspace/SyncCreateSpaceLocationnameSpaceString.java new file mode 100644 index 000000000000..bb1475fd582a --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createspace/SyncCreateSpaceLocationnameSpaceString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_CreateSpace_LocationnameSpaceString_sync] +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.LocationName; +import com.google.cloud.designcenter.v1.Space; + +public class SyncCreateSpaceLocationnameSpaceString { + + public static void main(String[] args) throws Exception { + syncCreateSpaceLocationnameSpaceString(); + } + + public static void syncCreateSpaceLocationnameSpaceString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Space space = Space.newBuilder().build(); + String spaceId = "spaceId-2012163903"; + Space response = designCenterClient.createSpace(parent, space, spaceId); + } + } +} +// [END designcenter_v1_generated_DesignCenter_CreateSpace_LocationnameSpaceString_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createspace/SyncCreateSpaceStringSpaceString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createspace/SyncCreateSpaceStringSpaceString.java new file mode 100644 index 000000000000..1f55b039e3eb --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/createspace/SyncCreateSpaceStringSpaceString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_CreateSpace_StringSpaceString_sync] +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.LocationName; +import com.google.cloud.designcenter.v1.Space; + +public class SyncCreateSpaceStringSpaceString { + + public static void main(String[] args) throws Exception { + syncCreateSpaceStringSpaceString(); + } + + public static void syncCreateSpaceStringSpaceString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + Space space = Space.newBuilder().build(); + String spaceId = "spaceId-2012163903"; + Space response = designCenterClient.createSpace(parent, space, spaceId); + } + } +} +// [END designcenter_v1_generated_DesignCenter_CreateSpace_StringSpaceString_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteapplication/AsyncDeleteApplication.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteapplication/AsyncDeleteApplication.java new file mode 100644 index 000000000000..f99fd4348cf6 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteapplication/AsyncDeleteApplication.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_DeleteApplication_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.ApplicationName; +import com.google.cloud.designcenter.v1.DeleteApplicationRequest; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.longrunning.Operation; + +public class AsyncDeleteApplication { + + public static void main(String[] args) throws Exception { + asyncDeleteApplication(); + } + + public static void asyncDeleteApplication() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + DeleteApplicationRequest request = + DeleteApplicationRequest.newBuilder() + .setName( + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]") + .toString()) + .setForce(true) + .build(); + ApiFuture future = + designCenterClient.deleteApplicationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_DeleteApplication_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteapplication/AsyncDeleteApplicationLRO.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteapplication/AsyncDeleteApplicationLRO.java new file mode 100644 index 000000000000..63129a21be88 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteapplication/AsyncDeleteApplicationLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_DeleteApplication_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.designcenter.v1.ApplicationName; +import com.google.cloud.designcenter.v1.DeleteApplicationRequest; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.OperationMetadata; +import com.google.protobuf.Empty; + +public class AsyncDeleteApplicationLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteApplicationLRO(); + } + + public static void asyncDeleteApplicationLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + DeleteApplicationRequest request = + DeleteApplicationRequest.newBuilder() + .setName( + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]") + .toString()) + .setForce(true) + .build(); + OperationFuture future = + designCenterClient.deleteApplicationOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_DeleteApplication_LRO_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteapplication/SyncDeleteApplication.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteapplication/SyncDeleteApplication.java new file mode 100644 index 000000000000..400abdfbd11f --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteapplication/SyncDeleteApplication.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_DeleteApplication_sync] +import com.google.cloud.designcenter.v1.ApplicationName; +import com.google.cloud.designcenter.v1.DeleteApplicationRequest; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.protobuf.Empty; + +public class SyncDeleteApplication { + + public static void main(String[] args) throws Exception { + syncDeleteApplication(); + } + + public static void syncDeleteApplication() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + DeleteApplicationRequest request = + DeleteApplicationRequest.newBuilder() + .setName( + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]") + .toString()) + .setForce(true) + .build(); + designCenterClient.deleteApplicationAsync(request).get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_DeleteApplication_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteapplication/SyncDeleteApplicationApplicationname.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteapplication/SyncDeleteApplicationApplicationname.java new file mode 100644 index 000000000000..7005e21a7dc7 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteapplication/SyncDeleteApplicationApplicationname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_DeleteApplication_Applicationname_sync] +import com.google.cloud.designcenter.v1.ApplicationName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.protobuf.Empty; + +public class SyncDeleteApplicationApplicationname { + + public static void main(String[] args) throws Exception { + syncDeleteApplicationApplicationname(); + } + + public static void syncDeleteApplicationApplicationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ApplicationName name = + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]"); + designCenterClient.deleteApplicationAsync(name).get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_DeleteApplication_Applicationname_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteapplication/SyncDeleteApplicationString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteapplication/SyncDeleteApplicationString.java new file mode 100644 index 000000000000..b277b8a062ed --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteapplication/SyncDeleteApplicationString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_DeleteApplication_String_sync] +import com.google.cloud.designcenter.v1.ApplicationName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.protobuf.Empty; + +public class SyncDeleteApplicationString { + + public static void main(String[] args) throws Exception { + syncDeleteApplicationString(); + } + + public static void syncDeleteApplicationString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + String name = + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]").toString(); + designCenterClient.deleteApplicationAsync(name).get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_DeleteApplication_String_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteapplicationtemplate/AsyncDeleteApplicationTemplate.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteapplicationtemplate/AsyncDeleteApplicationTemplate.java new file mode 100644 index 000000000000..30c9c02a5319 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteapplicationtemplate/AsyncDeleteApplicationTemplate.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_DeleteApplicationTemplate_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.ApplicationTemplateName; +import com.google.cloud.designcenter.v1.DeleteApplicationTemplateRequest; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.protobuf.Empty; + +public class AsyncDeleteApplicationTemplate { + + public static void main(String[] args) throws Exception { + asyncDeleteApplicationTemplate(); + } + + public static void asyncDeleteApplicationTemplate() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + DeleteApplicationTemplateRequest request = + DeleteApplicationTemplateRequest.newBuilder() + .setName( + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString()) + .setForce(true) + .build(); + ApiFuture future = + designCenterClient.deleteApplicationTemplateCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_DeleteApplicationTemplate_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteapplicationtemplate/SyncDeleteApplicationTemplate.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteapplicationtemplate/SyncDeleteApplicationTemplate.java new file mode 100644 index 000000000000..daf57bdd3fd0 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteapplicationtemplate/SyncDeleteApplicationTemplate.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_DeleteApplicationTemplate_sync] +import com.google.cloud.designcenter.v1.ApplicationTemplateName; +import com.google.cloud.designcenter.v1.DeleteApplicationTemplateRequest; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.protobuf.Empty; + +public class SyncDeleteApplicationTemplate { + + public static void main(String[] args) throws Exception { + syncDeleteApplicationTemplate(); + } + + public static void syncDeleteApplicationTemplate() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + DeleteApplicationTemplateRequest request = + DeleteApplicationTemplateRequest.newBuilder() + .setName( + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString()) + .setForce(true) + .build(); + designCenterClient.deleteApplicationTemplate(request); + } + } +} +// [END designcenter_v1_generated_DesignCenter_DeleteApplicationTemplate_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteapplicationtemplate/SyncDeleteApplicationTemplateApplicationtemplatename.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteapplicationtemplate/SyncDeleteApplicationTemplateApplicationtemplatename.java new file mode 100644 index 000000000000..b807f31c4472 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteapplicationtemplate/SyncDeleteApplicationTemplateApplicationtemplatename.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_DeleteApplicationTemplate_Applicationtemplatename_sync] +import com.google.cloud.designcenter.v1.ApplicationTemplateName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.protobuf.Empty; + +public class SyncDeleteApplicationTemplateApplicationtemplatename { + + public static void main(String[] args) throws Exception { + syncDeleteApplicationTemplateApplicationtemplatename(); + } + + public static void syncDeleteApplicationTemplateApplicationtemplatename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ApplicationTemplateName name = + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + designCenterClient.deleteApplicationTemplate(name); + } + } +} +// [END designcenter_v1_generated_DesignCenter_DeleteApplicationTemplate_Applicationtemplatename_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteapplicationtemplate/SyncDeleteApplicationTemplateString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteapplicationtemplate/SyncDeleteApplicationTemplateString.java new file mode 100644 index 000000000000..eb16d125e5e3 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteapplicationtemplate/SyncDeleteApplicationTemplateString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_DeleteApplicationTemplate_String_sync] +import com.google.cloud.designcenter.v1.ApplicationTemplateName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.protobuf.Empty; + +public class SyncDeleteApplicationTemplateString { + + public static void main(String[] args) throws Exception { + syncDeleteApplicationTemplateString(); + } + + public static void syncDeleteApplicationTemplateString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + String name = + ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString(); + designCenterClient.deleteApplicationTemplate(name); + } + } +} +// [END designcenter_v1_generated_DesignCenter_DeleteApplicationTemplate_String_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteapplicationtemplaterevision/AsyncDeleteApplicationTemplateRevision.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteapplicationtemplaterevision/AsyncDeleteApplicationTemplateRevision.java new file mode 100644 index 000000000000..e815cf0b6cec --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteapplicationtemplaterevision/AsyncDeleteApplicationTemplateRevision.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_DeleteApplicationTemplateRevision_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.ApplicationTemplateRevisionName; +import com.google.cloud.designcenter.v1.DeleteApplicationTemplateRevisionRequest; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.protobuf.Empty; + +public class AsyncDeleteApplicationTemplateRevision { + + public static void main(String[] args) throws Exception { + asyncDeleteApplicationTemplateRevision(); + } + + public static void asyncDeleteApplicationTemplateRevision() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + DeleteApplicationTemplateRevisionRequest request = + DeleteApplicationTemplateRevisionRequest.newBuilder() + .setName( + ApplicationTemplateRevisionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[REVISION]") + .toString()) + .build(); + ApiFuture future = + designCenterClient.deleteApplicationTemplateRevisionCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_DeleteApplicationTemplateRevision_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteapplicationtemplaterevision/SyncDeleteApplicationTemplateRevision.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteapplicationtemplaterevision/SyncDeleteApplicationTemplateRevision.java new file mode 100644 index 000000000000..9587de3665ec --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteapplicationtemplaterevision/SyncDeleteApplicationTemplateRevision.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_DeleteApplicationTemplateRevision_sync] +import com.google.cloud.designcenter.v1.ApplicationTemplateRevisionName; +import com.google.cloud.designcenter.v1.DeleteApplicationTemplateRevisionRequest; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.protobuf.Empty; + +public class SyncDeleteApplicationTemplateRevision { + + public static void main(String[] args) throws Exception { + syncDeleteApplicationTemplateRevision(); + } + + public static void syncDeleteApplicationTemplateRevision() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + DeleteApplicationTemplateRevisionRequest request = + DeleteApplicationTemplateRevisionRequest.newBuilder() + .setName( + ApplicationTemplateRevisionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[REVISION]") + .toString()) + .build(); + designCenterClient.deleteApplicationTemplateRevision(request); + } + } +} +// [END designcenter_v1_generated_DesignCenter_DeleteApplicationTemplateRevision_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteapplicationtemplaterevision/SyncDeleteApplicationTemplateRevisionApplicationtemplaterevisionname.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteapplicationtemplaterevision/SyncDeleteApplicationTemplateRevisionApplicationtemplaterevisionname.java new file mode 100644 index 000000000000..7edc347f64cc --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteapplicationtemplaterevision/SyncDeleteApplicationTemplateRevisionApplicationtemplaterevisionname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_DeleteApplicationTemplateRevision_Applicationtemplaterevisionname_sync] +import com.google.cloud.designcenter.v1.ApplicationTemplateRevisionName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.protobuf.Empty; + +public class SyncDeleteApplicationTemplateRevisionApplicationtemplaterevisionname { + + public static void main(String[] args) throws Exception { + syncDeleteApplicationTemplateRevisionApplicationtemplaterevisionname(); + } + + public static void syncDeleteApplicationTemplateRevisionApplicationtemplaterevisionname() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ApplicationTemplateRevisionName name = + ApplicationTemplateRevisionName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[REVISION]"); + designCenterClient.deleteApplicationTemplateRevision(name); + } + } +} +// [END designcenter_v1_generated_DesignCenter_DeleteApplicationTemplateRevision_Applicationtemplaterevisionname_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteapplicationtemplaterevision/SyncDeleteApplicationTemplateRevisionString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteapplicationtemplaterevision/SyncDeleteApplicationTemplateRevisionString.java new file mode 100644 index 000000000000..77ba52e2fc2c --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteapplicationtemplaterevision/SyncDeleteApplicationTemplateRevisionString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_DeleteApplicationTemplateRevision_String_sync] +import com.google.cloud.designcenter.v1.ApplicationTemplateRevisionName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.protobuf.Empty; + +public class SyncDeleteApplicationTemplateRevisionString { + + public static void main(String[] args) throws Exception { + syncDeleteApplicationTemplateRevisionString(); + } + + public static void syncDeleteApplicationTemplateRevisionString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + String name = + ApplicationTemplateRevisionName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[REVISION]") + .toString(); + designCenterClient.deleteApplicationTemplateRevision(name); + } + } +} +// [END designcenter_v1_generated_DesignCenter_DeleteApplicationTemplateRevision_String_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletecatalog/AsyncDeleteCatalog.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletecatalog/AsyncDeleteCatalog.java new file mode 100644 index 000000000000..ad5d2d5b90ae --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletecatalog/AsyncDeleteCatalog.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_DeleteCatalog_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.CatalogName; +import com.google.cloud.designcenter.v1.DeleteCatalogRequest; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.longrunning.Operation; + +public class AsyncDeleteCatalog { + + public static void main(String[] args) throws Exception { + asyncDeleteCatalog(); + } + + public static void asyncDeleteCatalog() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + DeleteCatalogRequest request = + DeleteCatalogRequest.newBuilder() + .setName(CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]").toString()) + .setForce(true) + .build(); + ApiFuture future = designCenterClient.deleteCatalogCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_DeleteCatalog_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletecatalog/AsyncDeleteCatalogLRO.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletecatalog/AsyncDeleteCatalogLRO.java new file mode 100644 index 000000000000..288490b9ace7 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletecatalog/AsyncDeleteCatalogLRO.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_DeleteCatalog_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.designcenter.v1.CatalogName; +import com.google.cloud.designcenter.v1.DeleteCatalogRequest; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.OperationMetadata; +import com.google.protobuf.Empty; + +public class AsyncDeleteCatalogLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteCatalogLRO(); + } + + public static void asyncDeleteCatalogLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + DeleteCatalogRequest request = + DeleteCatalogRequest.newBuilder() + .setName(CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]").toString()) + .setForce(true) + .build(); + OperationFuture future = + designCenterClient.deleteCatalogOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_DeleteCatalog_LRO_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletecatalog/SyncDeleteCatalog.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletecatalog/SyncDeleteCatalog.java new file mode 100644 index 000000000000..b404088c5960 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletecatalog/SyncDeleteCatalog.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_DeleteCatalog_sync] +import com.google.cloud.designcenter.v1.CatalogName; +import com.google.cloud.designcenter.v1.DeleteCatalogRequest; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.protobuf.Empty; + +public class SyncDeleteCatalog { + + public static void main(String[] args) throws Exception { + syncDeleteCatalog(); + } + + public static void syncDeleteCatalog() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + DeleteCatalogRequest request = + DeleteCatalogRequest.newBuilder() + .setName(CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]").toString()) + .setForce(true) + .build(); + designCenterClient.deleteCatalogAsync(request).get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_DeleteCatalog_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletecatalog/SyncDeleteCatalogCatalogname.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletecatalog/SyncDeleteCatalogCatalogname.java new file mode 100644 index 000000000000..fdc5c35c8e41 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletecatalog/SyncDeleteCatalogCatalogname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_DeleteCatalog_Catalogname_sync] +import com.google.cloud.designcenter.v1.CatalogName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.protobuf.Empty; + +public class SyncDeleteCatalogCatalogname { + + public static void main(String[] args) throws Exception { + syncDeleteCatalogCatalogname(); + } + + public static void syncDeleteCatalogCatalogname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + CatalogName name = CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]"); + designCenterClient.deleteCatalogAsync(name).get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_DeleteCatalog_Catalogname_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletecatalog/SyncDeleteCatalogString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletecatalog/SyncDeleteCatalogString.java new file mode 100644 index 000000000000..2d909b41f541 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletecatalog/SyncDeleteCatalogString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_DeleteCatalog_String_sync] +import com.google.cloud.designcenter.v1.CatalogName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.protobuf.Empty; + +public class SyncDeleteCatalogString { + + public static void main(String[] args) throws Exception { + syncDeleteCatalogString(); + } + + public static void syncDeleteCatalogString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + String name = CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]").toString(); + designCenterClient.deleteCatalogAsync(name).get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_DeleteCatalog_String_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletecatalogtemplate/AsyncDeleteCatalogTemplate.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletecatalogtemplate/AsyncDeleteCatalogTemplate.java new file mode 100644 index 000000000000..136fedc44a5f --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletecatalogtemplate/AsyncDeleteCatalogTemplate.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_DeleteCatalogTemplate_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.CatalogTemplateName; +import com.google.cloud.designcenter.v1.DeleteCatalogTemplateRequest; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.longrunning.Operation; + +public class AsyncDeleteCatalogTemplate { + + public static void main(String[] args) throws Exception { + asyncDeleteCatalogTemplate(); + } + + public static void asyncDeleteCatalogTemplate() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + DeleteCatalogTemplateRequest request = + DeleteCatalogTemplateRequest.newBuilder() + .setName( + CatalogTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]") + .toString()) + .setForce(true) + .build(); + ApiFuture future = + designCenterClient.deleteCatalogTemplateCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_DeleteCatalogTemplate_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletecatalogtemplate/AsyncDeleteCatalogTemplateLRO.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletecatalogtemplate/AsyncDeleteCatalogTemplateLRO.java new file mode 100644 index 000000000000..c1807c00c501 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletecatalogtemplate/AsyncDeleteCatalogTemplateLRO.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_DeleteCatalogTemplate_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.designcenter.v1.CatalogTemplateName; +import com.google.cloud.designcenter.v1.DeleteCatalogTemplateRequest; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.OperationMetadata; +import com.google.protobuf.Empty; + +public class AsyncDeleteCatalogTemplateLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteCatalogTemplateLRO(); + } + + public static void asyncDeleteCatalogTemplateLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + DeleteCatalogTemplateRequest request = + DeleteCatalogTemplateRequest.newBuilder() + .setName( + CatalogTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]") + .toString()) + .setForce(true) + .build(); + OperationFuture future = + designCenterClient.deleteCatalogTemplateOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_DeleteCatalogTemplate_LRO_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletecatalogtemplate/SyncDeleteCatalogTemplate.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletecatalogtemplate/SyncDeleteCatalogTemplate.java new file mode 100644 index 000000000000..3c18f886e362 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletecatalogtemplate/SyncDeleteCatalogTemplate.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_DeleteCatalogTemplate_sync] +import com.google.cloud.designcenter.v1.CatalogTemplateName; +import com.google.cloud.designcenter.v1.DeleteCatalogTemplateRequest; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.protobuf.Empty; + +public class SyncDeleteCatalogTemplate { + + public static void main(String[] args) throws Exception { + syncDeleteCatalogTemplate(); + } + + public static void syncDeleteCatalogTemplate() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + DeleteCatalogTemplateRequest request = + DeleteCatalogTemplateRequest.newBuilder() + .setName( + CatalogTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]") + .toString()) + .setForce(true) + .build(); + designCenterClient.deleteCatalogTemplateAsync(request).get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_DeleteCatalogTemplate_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletecatalogtemplate/SyncDeleteCatalogTemplateCatalogtemplatename.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletecatalogtemplate/SyncDeleteCatalogTemplateCatalogtemplatename.java new file mode 100644 index 000000000000..6b850a37bf33 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletecatalogtemplate/SyncDeleteCatalogTemplateCatalogtemplatename.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_DeleteCatalogTemplate_Catalogtemplatename_sync] +import com.google.cloud.designcenter.v1.CatalogTemplateName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.protobuf.Empty; + +public class SyncDeleteCatalogTemplateCatalogtemplatename { + + public static void main(String[] args) throws Exception { + syncDeleteCatalogTemplateCatalogtemplatename(); + } + + public static void syncDeleteCatalogTemplateCatalogtemplatename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + CatalogTemplateName name = + CatalogTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]"); + designCenterClient.deleteCatalogTemplateAsync(name).get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_DeleteCatalogTemplate_Catalogtemplatename_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletecatalogtemplate/SyncDeleteCatalogTemplateString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletecatalogtemplate/SyncDeleteCatalogTemplateString.java new file mode 100644 index 000000000000..ab560dfa648f --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletecatalogtemplate/SyncDeleteCatalogTemplateString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_DeleteCatalogTemplate_String_sync] +import com.google.cloud.designcenter.v1.CatalogTemplateName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.protobuf.Empty; + +public class SyncDeleteCatalogTemplateString { + + public static void main(String[] args) throws Exception { + syncDeleteCatalogTemplateString(); + } + + public static void syncDeleteCatalogTemplateString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + String name = + CatalogTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]") + .toString(); + designCenterClient.deleteCatalogTemplateAsync(name).get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_DeleteCatalogTemplate_String_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletecatalogtemplaterevision/AsyncDeleteCatalogTemplateRevision.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletecatalogtemplaterevision/AsyncDeleteCatalogTemplateRevision.java new file mode 100644 index 000000000000..1998236fec12 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletecatalogtemplaterevision/AsyncDeleteCatalogTemplateRevision.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_DeleteCatalogTemplateRevision_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.CatalogTemplateRevisionName; +import com.google.cloud.designcenter.v1.DeleteCatalogTemplateRevisionRequest; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.longrunning.Operation; + +public class AsyncDeleteCatalogTemplateRevision { + + public static void main(String[] args) throws Exception { + asyncDeleteCatalogTemplateRevision(); + } + + public static void asyncDeleteCatalogTemplateRevision() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + DeleteCatalogTemplateRevisionRequest request = + DeleteCatalogTemplateRevisionRequest.newBuilder() + .setName( + CatalogTemplateRevisionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[CATALOG]", + "[CATALOG_TEMPLATE]", + "[REVISION]") + .toString()) + .build(); + ApiFuture future = + designCenterClient.deleteCatalogTemplateRevisionCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_DeleteCatalogTemplateRevision_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletecatalogtemplaterevision/AsyncDeleteCatalogTemplateRevisionLRO.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletecatalogtemplaterevision/AsyncDeleteCatalogTemplateRevisionLRO.java new file mode 100644 index 000000000000..71f54ab030ff --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletecatalogtemplaterevision/AsyncDeleteCatalogTemplateRevisionLRO.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_DeleteCatalogTemplateRevision_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.designcenter.v1.CatalogTemplateRevisionName; +import com.google.cloud.designcenter.v1.DeleteCatalogTemplateRevisionRequest; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.OperationMetadata; +import com.google.protobuf.Empty; + +public class AsyncDeleteCatalogTemplateRevisionLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteCatalogTemplateRevisionLRO(); + } + + public static void asyncDeleteCatalogTemplateRevisionLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + DeleteCatalogTemplateRevisionRequest request = + DeleteCatalogTemplateRevisionRequest.newBuilder() + .setName( + CatalogTemplateRevisionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[CATALOG]", + "[CATALOG_TEMPLATE]", + "[REVISION]") + .toString()) + .build(); + OperationFuture future = + designCenterClient.deleteCatalogTemplateRevisionOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_DeleteCatalogTemplateRevision_LRO_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletecatalogtemplaterevision/SyncDeleteCatalogTemplateRevision.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletecatalogtemplaterevision/SyncDeleteCatalogTemplateRevision.java new file mode 100644 index 000000000000..2fc536dc6852 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletecatalogtemplaterevision/SyncDeleteCatalogTemplateRevision.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_DeleteCatalogTemplateRevision_sync] +import com.google.cloud.designcenter.v1.CatalogTemplateRevisionName; +import com.google.cloud.designcenter.v1.DeleteCatalogTemplateRevisionRequest; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.protobuf.Empty; + +public class SyncDeleteCatalogTemplateRevision { + + public static void main(String[] args) throws Exception { + syncDeleteCatalogTemplateRevision(); + } + + public static void syncDeleteCatalogTemplateRevision() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + DeleteCatalogTemplateRevisionRequest request = + DeleteCatalogTemplateRevisionRequest.newBuilder() + .setName( + CatalogTemplateRevisionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[CATALOG]", + "[CATALOG_TEMPLATE]", + "[REVISION]") + .toString()) + .build(); + designCenterClient.deleteCatalogTemplateRevisionAsync(request).get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_DeleteCatalogTemplateRevision_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletecatalogtemplaterevision/SyncDeleteCatalogTemplateRevisionCatalogtemplaterevisionname.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletecatalogtemplaterevision/SyncDeleteCatalogTemplateRevisionCatalogtemplaterevisionname.java new file mode 100644 index 000000000000..1326b5ca20a0 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletecatalogtemplaterevision/SyncDeleteCatalogTemplateRevisionCatalogtemplaterevisionname.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_DeleteCatalogTemplateRevision_Catalogtemplaterevisionname_sync] +import com.google.cloud.designcenter.v1.CatalogTemplateRevisionName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.protobuf.Empty; + +public class SyncDeleteCatalogTemplateRevisionCatalogtemplaterevisionname { + + public static void main(String[] args) throws Exception { + syncDeleteCatalogTemplateRevisionCatalogtemplaterevisionname(); + } + + public static void syncDeleteCatalogTemplateRevisionCatalogtemplaterevisionname() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + CatalogTemplateRevisionName name = + CatalogTemplateRevisionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[CATALOG]", + "[CATALOG_TEMPLATE]", + "[REVISION]"); + designCenterClient.deleteCatalogTemplateRevisionAsync(name).get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_DeleteCatalogTemplateRevision_Catalogtemplaterevisionname_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletecatalogtemplaterevision/SyncDeleteCatalogTemplateRevisionString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletecatalogtemplaterevision/SyncDeleteCatalogTemplateRevisionString.java new file mode 100644 index 000000000000..d284b65df646 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletecatalogtemplaterevision/SyncDeleteCatalogTemplateRevisionString.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_DeleteCatalogTemplateRevision_String_sync] +import com.google.cloud.designcenter.v1.CatalogTemplateRevisionName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.protobuf.Empty; + +public class SyncDeleteCatalogTemplateRevisionString { + + public static void main(String[] args) throws Exception { + syncDeleteCatalogTemplateRevisionString(); + } + + public static void syncDeleteCatalogTemplateRevisionString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + String name = + CatalogTemplateRevisionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[CATALOG]", + "[CATALOG_TEMPLATE]", + "[REVISION]") + .toString(); + designCenterClient.deleteCatalogTemplateRevisionAsync(name).get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_DeleteCatalogTemplateRevision_String_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletecomponent/AsyncDeleteComponent.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletecomponent/AsyncDeleteComponent.java new file mode 100644 index 000000000000..7d5488cfde72 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletecomponent/AsyncDeleteComponent.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_DeleteComponent_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.ComponentName; +import com.google.cloud.designcenter.v1.DeleteComponentRequest; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.protobuf.Empty; + +public class AsyncDeleteComponent { + + public static void main(String[] args) throws Exception { + asyncDeleteComponent(); + } + + public static void asyncDeleteComponent() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + DeleteComponentRequest request = + DeleteComponentRequest.newBuilder() + .setName( + ComponentName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[COMPONENT]") + .toString()) + .setForce(true) + .build(); + ApiFuture future = designCenterClient.deleteComponentCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_DeleteComponent_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletecomponent/SyncDeleteComponent.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletecomponent/SyncDeleteComponent.java new file mode 100644 index 000000000000..d2cf09a90abc --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletecomponent/SyncDeleteComponent.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_DeleteComponent_sync] +import com.google.cloud.designcenter.v1.ComponentName; +import com.google.cloud.designcenter.v1.DeleteComponentRequest; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.protobuf.Empty; + +public class SyncDeleteComponent { + + public static void main(String[] args) throws Exception { + syncDeleteComponent(); + } + + public static void syncDeleteComponent() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + DeleteComponentRequest request = + DeleteComponentRequest.newBuilder() + .setName( + ComponentName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[COMPONENT]") + .toString()) + .setForce(true) + .build(); + designCenterClient.deleteComponent(request); + } + } +} +// [END designcenter_v1_generated_DesignCenter_DeleteComponent_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletecomponent/SyncDeleteComponentComponentname.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletecomponent/SyncDeleteComponentComponentname.java new file mode 100644 index 000000000000..4c78311d62c0 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletecomponent/SyncDeleteComponentComponentname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_DeleteComponent_Componentname_sync] +import com.google.cloud.designcenter.v1.ComponentName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.protobuf.Empty; + +public class SyncDeleteComponentComponentname { + + public static void main(String[] args) throws Exception { + syncDeleteComponentComponentname(); + } + + public static void syncDeleteComponentComponentname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ComponentName name = + ComponentName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[COMPONENT]"); + designCenterClient.deleteComponent(name); + } + } +} +// [END designcenter_v1_generated_DesignCenter_DeleteComponent_Componentname_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletecomponent/SyncDeleteComponentString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletecomponent/SyncDeleteComponentString.java new file mode 100644 index 000000000000..bbd3721928aa --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletecomponent/SyncDeleteComponentString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_DeleteComponent_String_sync] +import com.google.cloud.designcenter.v1.ComponentName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.protobuf.Empty; + +public class SyncDeleteComponentString { + + public static void main(String[] args) throws Exception { + syncDeleteComponentString(); + } + + public static void syncDeleteComponentString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + String name = + ComponentName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[COMPONENT]") + .toString(); + designCenterClient.deleteComponent(name); + } + } +} +// [END designcenter_v1_generated_DesignCenter_DeleteComponent_String_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteconnection/AsyncDeleteConnection.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteconnection/AsyncDeleteConnection.java new file mode 100644 index 000000000000..e0a301bd281f --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteconnection/AsyncDeleteConnection.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_DeleteConnection_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.ConnectionName; +import com.google.cloud.designcenter.v1.DeleteConnectionRequest; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.protobuf.Empty; + +public class AsyncDeleteConnection { + + public static void main(String[] args) throws Exception { + asyncDeleteConnection(); + } + + public static void asyncDeleteConnection() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + DeleteConnectionRequest request = + DeleteConnectionRequest.newBuilder() + .setName( + ConnectionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[COMPONENT]", + "[CONNECTION]") + .toString()) + .build(); + ApiFuture future = designCenterClient.deleteConnectionCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_DeleteConnection_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteconnection/SyncDeleteConnection.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteconnection/SyncDeleteConnection.java new file mode 100644 index 000000000000..7f6f9107172e --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteconnection/SyncDeleteConnection.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_DeleteConnection_sync] +import com.google.cloud.designcenter.v1.ConnectionName; +import com.google.cloud.designcenter.v1.DeleteConnectionRequest; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.protobuf.Empty; + +public class SyncDeleteConnection { + + public static void main(String[] args) throws Exception { + syncDeleteConnection(); + } + + public static void syncDeleteConnection() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + DeleteConnectionRequest request = + DeleteConnectionRequest.newBuilder() + .setName( + ConnectionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[COMPONENT]", + "[CONNECTION]") + .toString()) + .build(); + designCenterClient.deleteConnection(request); + } + } +} +// [END designcenter_v1_generated_DesignCenter_DeleteConnection_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteconnection/SyncDeleteConnectionConnectionname.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteconnection/SyncDeleteConnectionConnectionname.java new file mode 100644 index 000000000000..279762cf065d --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteconnection/SyncDeleteConnectionConnectionname.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_DeleteConnection_Connectionname_sync] +import com.google.cloud.designcenter.v1.ConnectionName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.protobuf.Empty; + +public class SyncDeleteConnectionConnectionname { + + public static void main(String[] args) throws Exception { + syncDeleteConnectionConnectionname(); + } + + public static void syncDeleteConnectionConnectionname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ConnectionName name = + ConnectionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[COMPONENT]", + "[CONNECTION]"); + designCenterClient.deleteConnection(name); + } + } +} +// [END designcenter_v1_generated_DesignCenter_DeleteConnection_Connectionname_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteconnection/SyncDeleteConnectionString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteconnection/SyncDeleteConnectionString.java new file mode 100644 index 000000000000..85e82915fabc --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteconnection/SyncDeleteConnectionString.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_DeleteConnection_String_sync] +import com.google.cloud.designcenter.v1.ConnectionName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.protobuf.Empty; + +public class SyncDeleteConnectionString { + + public static void main(String[] args) throws Exception { + syncDeleteConnectionString(); + } + + public static void syncDeleteConnectionString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + String name = + ConnectionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[COMPONENT]", + "[CONNECTION]") + .toString(); + designCenterClient.deleteConnection(name); + } + } +} +// [END designcenter_v1_generated_DesignCenter_DeleteConnection_String_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletepolicy/AsyncDeletePolicy.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletepolicy/AsyncDeletePolicy.java new file mode 100644 index 000000000000..054c2c7af831 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletepolicy/AsyncDeletePolicy.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_DeletePolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.DeletePolicyRequest; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.PolicyName; +import com.google.protobuf.Empty; + +public class AsyncDeletePolicy { + + public static void main(String[] args) throws Exception { + asyncDeletePolicy(); + } + + public static void asyncDeletePolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + DeletePolicyRequest request = + DeletePolicyRequest.newBuilder() + .setName( + PolicyName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[POLICY]") + .toString()) + .build(); + ApiFuture future = designCenterClient.deletePolicyCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_DeletePolicy_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletepolicy/SyncDeletePolicy.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletepolicy/SyncDeletePolicy.java new file mode 100644 index 000000000000..b52b0b779737 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletepolicy/SyncDeletePolicy.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_DeletePolicy_sync] +import com.google.cloud.designcenter.v1.DeletePolicyRequest; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.PolicyName; +import com.google.protobuf.Empty; + +public class SyncDeletePolicy { + + public static void main(String[] args) throws Exception { + syncDeletePolicy(); + } + + public static void syncDeletePolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + DeletePolicyRequest request = + DeletePolicyRequest.newBuilder() + .setName( + PolicyName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[POLICY]") + .toString()) + .build(); + designCenterClient.deletePolicy(request); + } + } +} +// [END designcenter_v1_generated_DesignCenter_DeletePolicy_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletepolicy/SyncDeletePolicyPolicyname.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletepolicy/SyncDeletePolicyPolicyname.java new file mode 100644 index 000000000000..2dbe9d1315ab --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletepolicy/SyncDeletePolicyPolicyname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_DeletePolicy_Policyname_sync] +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.PolicyName; +import com.google.protobuf.Empty; + +public class SyncDeletePolicyPolicyname { + + public static void main(String[] args) throws Exception { + syncDeletePolicyPolicyname(); + } + + public static void syncDeletePolicyPolicyname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + PolicyName name = + PolicyName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[POLICY]"); + designCenterClient.deletePolicy(name); + } + } +} +// [END designcenter_v1_generated_DesignCenter_DeletePolicy_Policyname_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletepolicy/SyncDeletePolicyString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletepolicy/SyncDeletePolicyString.java new file mode 100644 index 000000000000..b309db474064 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletepolicy/SyncDeletePolicyString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_DeletePolicy_String_sync] +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.PolicyName; +import com.google.protobuf.Empty; + +public class SyncDeletePolicyString { + + public static void main(String[] args) throws Exception { + syncDeletePolicyString(); + } + + public static void syncDeletePolicyString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + String name = + PolicyName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[POLICY]") + .toString(); + designCenterClient.deletePolicy(name); + } + } +} +// [END designcenter_v1_generated_DesignCenter_DeletePolicy_String_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteshare/AsyncDeleteShare.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteshare/AsyncDeleteShare.java new file mode 100644 index 000000000000..59beedf78d8b --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteshare/AsyncDeleteShare.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_DeleteShare_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.DeleteShareRequest; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.ShareName; +import com.google.longrunning.Operation; + +public class AsyncDeleteShare { + + public static void main(String[] args) throws Exception { + asyncDeleteShare(); + } + + public static void asyncDeleteShare() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + DeleteShareRequest request = + DeleteShareRequest.newBuilder() + .setName( + ShareName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[SHARE]") + .toString()) + .build(); + ApiFuture future = designCenterClient.deleteShareCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_DeleteShare_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteshare/AsyncDeleteShareLRO.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteshare/AsyncDeleteShareLRO.java new file mode 100644 index 000000000000..0f08e85cbdd9 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteshare/AsyncDeleteShareLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_DeleteShare_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.designcenter.v1.DeleteShareRequest; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.OperationMetadata; +import com.google.cloud.designcenter.v1.ShareName; +import com.google.protobuf.Empty; + +public class AsyncDeleteShareLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteShareLRO(); + } + + public static void asyncDeleteShareLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + DeleteShareRequest request = + DeleteShareRequest.newBuilder() + .setName( + ShareName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[SHARE]") + .toString()) + .build(); + OperationFuture future = + designCenterClient.deleteShareOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_DeleteShare_LRO_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteshare/SyncDeleteShare.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteshare/SyncDeleteShare.java new file mode 100644 index 000000000000..902fc8374a07 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteshare/SyncDeleteShare.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_DeleteShare_sync] +import com.google.cloud.designcenter.v1.DeleteShareRequest; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.ShareName; +import com.google.protobuf.Empty; + +public class SyncDeleteShare { + + public static void main(String[] args) throws Exception { + syncDeleteShare(); + } + + public static void syncDeleteShare() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + DeleteShareRequest request = + DeleteShareRequest.newBuilder() + .setName( + ShareName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[SHARE]") + .toString()) + .build(); + designCenterClient.deleteShareAsync(request).get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_DeleteShare_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteshare/SyncDeleteShareSharename.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteshare/SyncDeleteShareSharename.java new file mode 100644 index 000000000000..7341cc5dee61 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteshare/SyncDeleteShareSharename.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_DeleteShare_Sharename_sync] +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.ShareName; +import com.google.protobuf.Empty; + +public class SyncDeleteShareSharename { + + public static void main(String[] args) throws Exception { + syncDeleteShareSharename(); + } + + public static void syncDeleteShareSharename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ShareName name = ShareName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[SHARE]"); + designCenterClient.deleteShareAsync(name).get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_DeleteShare_Sharename_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteshare/SyncDeleteShareString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteshare/SyncDeleteShareString.java new file mode 100644 index 000000000000..09814ff959b3 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deleteshare/SyncDeleteShareString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_DeleteShare_String_sync] +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.ShareName; +import com.google.protobuf.Empty; + +public class SyncDeleteShareString { + + public static void main(String[] args) throws Exception { + syncDeleteShareString(); + } + + public static void syncDeleteShareString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + String name = + ShareName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[SHARE]").toString(); + designCenterClient.deleteShareAsync(name).get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_DeleteShare_String_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletespace/AsyncDeleteSpace.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletespace/AsyncDeleteSpace.java new file mode 100644 index 000000000000..6a0cf29eb6bc --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletespace/AsyncDeleteSpace.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_DeleteSpace_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.DeleteSpaceRequest; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.SpaceName; +import com.google.protobuf.Empty; + +public class AsyncDeleteSpace { + + public static void main(String[] args) throws Exception { + asyncDeleteSpace(); + } + + public static void asyncDeleteSpace() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + DeleteSpaceRequest request = + DeleteSpaceRequest.newBuilder() + .setName(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString()) + .setForce(true) + .build(); + ApiFuture future = designCenterClient.deleteSpaceCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_DeleteSpace_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletespace/SyncDeleteSpace.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletespace/SyncDeleteSpace.java new file mode 100644 index 000000000000..198545aa8cc3 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletespace/SyncDeleteSpace.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_DeleteSpace_sync] +import com.google.cloud.designcenter.v1.DeleteSpaceRequest; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.SpaceName; +import com.google.protobuf.Empty; + +public class SyncDeleteSpace { + + public static void main(String[] args) throws Exception { + syncDeleteSpace(); + } + + public static void syncDeleteSpace() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + DeleteSpaceRequest request = + DeleteSpaceRequest.newBuilder() + .setName(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString()) + .setForce(true) + .build(); + designCenterClient.deleteSpace(request); + } + } +} +// [END designcenter_v1_generated_DesignCenter_DeleteSpace_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletespace/SyncDeleteSpaceSpacename.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletespace/SyncDeleteSpaceSpacename.java new file mode 100644 index 000000000000..9e25b92d30a6 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletespace/SyncDeleteSpaceSpacename.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_DeleteSpace_Spacename_sync] +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.SpaceName; +import com.google.protobuf.Empty; + +public class SyncDeleteSpaceSpacename { + + public static void main(String[] args) throws Exception { + syncDeleteSpaceSpacename(); + } + + public static void syncDeleteSpaceSpacename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + SpaceName name = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]"); + designCenterClient.deleteSpace(name); + } + } +} +// [END designcenter_v1_generated_DesignCenter_DeleteSpace_Spacename_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletespace/SyncDeleteSpaceString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletespace/SyncDeleteSpaceString.java new file mode 100644 index 000000000000..1cd14f0c844b --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deletespace/SyncDeleteSpaceString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_DeleteSpace_String_sync] +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.SpaceName; +import com.google.protobuf.Empty; + +public class SyncDeleteSpaceString { + + public static void main(String[] args) throws Exception { + syncDeleteSpaceString(); + } + + public static void syncDeleteSpaceString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + String name = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString(); + designCenterClient.deleteSpace(name); + } + } +} +// [END designcenter_v1_generated_DesignCenter_DeleteSpace_String_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deployapplication/AsyncDeployApplication.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deployapplication/AsyncDeployApplication.java new file mode 100644 index 000000000000..4486266518e7 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deployapplication/AsyncDeployApplication.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_DeployApplication_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.ApplicationName; +import com.google.cloud.designcenter.v1.DeployApplicationRequest; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.longrunning.Operation; + +public class AsyncDeployApplication { + + public static void main(String[] args) throws Exception { + asyncDeployApplication(); + } + + public static void asyncDeployApplication() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + DeployApplicationRequest request = + DeployApplicationRequest.newBuilder() + .setName( + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]") + .toString()) + .setReplace(true) + .setWorkerPool("workerPool-384405318") + .setServiceAccount("serviceAccount1079137720") + .setValidateOnly(true) + .build(); + ApiFuture future = + designCenterClient.deployApplicationCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_DeployApplication_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deployapplication/AsyncDeployApplicationLRO.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deployapplication/AsyncDeployApplicationLRO.java new file mode 100644 index 000000000000..6fba456d930d --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deployapplication/AsyncDeployApplicationLRO.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_DeployApplication_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.designcenter.v1.ApplicationName; +import com.google.cloud.designcenter.v1.DeployApplicationRequest; +import com.google.cloud.designcenter.v1.DeployApplicationResponse; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.OperationMetadata; + +public class AsyncDeployApplicationLRO { + + public static void main(String[] args) throws Exception { + asyncDeployApplicationLRO(); + } + + public static void asyncDeployApplicationLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + DeployApplicationRequest request = + DeployApplicationRequest.newBuilder() + .setName( + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]") + .toString()) + .setReplace(true) + .setWorkerPool("workerPool-384405318") + .setServiceAccount("serviceAccount1079137720") + .setValidateOnly(true) + .build(); + OperationFuture future = + designCenterClient.deployApplicationOperationCallable().futureCall(request); + // Do something. + DeployApplicationResponse response = future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_DeployApplication_LRO_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deployapplication/SyncDeployApplication.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deployapplication/SyncDeployApplication.java new file mode 100644 index 000000000000..f0b5f0900c03 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deployapplication/SyncDeployApplication.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_DeployApplication_sync] +import com.google.cloud.designcenter.v1.ApplicationName; +import com.google.cloud.designcenter.v1.DeployApplicationRequest; +import com.google.cloud.designcenter.v1.DeployApplicationResponse; +import com.google.cloud.designcenter.v1.DesignCenterClient; + +public class SyncDeployApplication { + + public static void main(String[] args) throws Exception { + syncDeployApplication(); + } + + public static void syncDeployApplication() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + DeployApplicationRequest request = + DeployApplicationRequest.newBuilder() + .setName( + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]") + .toString()) + .setReplace(true) + .setWorkerPool("workerPool-384405318") + .setServiceAccount("serviceAccount1079137720") + .setValidateOnly(true) + .build(); + DeployApplicationResponse response = designCenterClient.deployApplicationAsync(request).get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_DeployApplication_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deployapplication/SyncDeployApplicationApplicationname.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deployapplication/SyncDeployApplicationApplicationname.java new file mode 100644 index 000000000000..40dfce790296 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deployapplication/SyncDeployApplicationApplicationname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_DeployApplication_Applicationname_sync] +import com.google.cloud.designcenter.v1.ApplicationName; +import com.google.cloud.designcenter.v1.DeployApplicationResponse; +import com.google.cloud.designcenter.v1.DesignCenterClient; + +public class SyncDeployApplicationApplicationname { + + public static void main(String[] args) throws Exception { + syncDeployApplicationApplicationname(); + } + + public static void syncDeployApplicationApplicationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ApplicationName name = + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]"); + DeployApplicationResponse response = designCenterClient.deployApplicationAsync(name).get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_DeployApplication_Applicationname_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deployapplication/SyncDeployApplicationString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deployapplication/SyncDeployApplicationString.java new file mode 100644 index 000000000000..3facf406f746 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/deployapplication/SyncDeployApplicationString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_DeployApplication_String_sync] +import com.google.cloud.designcenter.v1.ApplicationName; +import com.google.cloud.designcenter.v1.DeployApplicationResponse; +import com.google.cloud.designcenter.v1.DesignCenterClient; + +public class SyncDeployApplicationString { + + public static void main(String[] args) throws Exception { + syncDeployApplicationString(); + } + + public static void syncDeployApplicationString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + String name = + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]").toString(); + DeployApplicationResponse response = designCenterClient.deployApplicationAsync(name).get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_DeployApplication_String_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/exportapplicationiac/AsyncExportApplicationIaC.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/exportapplicationiac/AsyncExportApplicationIaC.java new file mode 100644 index 000000000000..ee61e7323223 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/exportapplicationiac/AsyncExportApplicationIaC.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ExportApplicationIaC_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.ApplicationName; +import com.google.cloud.designcenter.v1.ArtifactLocation; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.ExportApplicationIaCRequest; +import com.google.cloud.designcenter.v1.ExportIaCConfig; +import com.google.cloud.designcenter.v1.IACFormat; +import com.google.longrunning.Operation; + +public class AsyncExportApplicationIaC { + + public static void main(String[] args) throws Exception { + asyncExportApplicationIaC(); + } + + public static void asyncExportApplicationIaC() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ExportApplicationIaCRequest request = + ExportApplicationIaCRequest.newBuilder() + .setName( + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]") + .toString()) + .setIacFormat(IACFormat.forNumber(0)) + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .setExportIacConfig(ExportIaCConfig.newBuilder().build()) + .build(); + ApiFuture future = + designCenterClient.exportApplicationIaCCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_ExportApplicationIaC_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/exportapplicationiac/AsyncExportApplicationIaCLRO.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/exportapplicationiac/AsyncExportApplicationIaCLRO.java new file mode 100644 index 000000000000..dfe1f816af3d --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/exportapplicationiac/AsyncExportApplicationIaCLRO.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ExportApplicationIaC_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.designcenter.v1.ApplicationName; +import com.google.cloud.designcenter.v1.ArtifactLocation; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.ExportApplicationIaCRequest; +import com.google.cloud.designcenter.v1.ExportApplicationIaCResponse; +import com.google.cloud.designcenter.v1.ExportIaCConfig; +import com.google.cloud.designcenter.v1.IACFormat; +import com.google.cloud.designcenter.v1.OperationMetadata; + +public class AsyncExportApplicationIaCLRO { + + public static void main(String[] args) throws Exception { + asyncExportApplicationIaCLRO(); + } + + public static void asyncExportApplicationIaCLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ExportApplicationIaCRequest request = + ExportApplicationIaCRequest.newBuilder() + .setName( + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]") + .toString()) + .setIacFormat(IACFormat.forNumber(0)) + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .setExportIacConfig(ExportIaCConfig.newBuilder().build()) + .build(); + OperationFuture future = + designCenterClient.exportApplicationIaCOperationCallable().futureCall(request); + // Do something. + ExportApplicationIaCResponse response = future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_ExportApplicationIaC_LRO_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/exportapplicationiac/SyncExportApplicationIaC.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/exportapplicationiac/SyncExportApplicationIaC.java new file mode 100644 index 000000000000..3fbfb5c13547 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/exportapplicationiac/SyncExportApplicationIaC.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ExportApplicationIaC_sync] +import com.google.cloud.designcenter.v1.ApplicationName; +import com.google.cloud.designcenter.v1.ArtifactLocation; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.ExportApplicationIaCRequest; +import com.google.cloud.designcenter.v1.ExportApplicationIaCResponse; +import com.google.cloud.designcenter.v1.ExportIaCConfig; +import com.google.cloud.designcenter.v1.IACFormat; + +public class SyncExportApplicationIaC { + + public static void main(String[] args) throws Exception { + syncExportApplicationIaC(); + } + + public static void syncExportApplicationIaC() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ExportApplicationIaCRequest request = + ExportApplicationIaCRequest.newBuilder() + .setName( + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]") + .toString()) + .setIacFormat(IACFormat.forNumber(0)) + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .setExportIacConfig(ExportIaCConfig.newBuilder().build()) + .build(); + ExportApplicationIaCResponse response = + designCenterClient.exportApplicationIaCAsync(request).get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_ExportApplicationIaC_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/exportapplicationiac/SyncExportApplicationIaCApplicationname.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/exportapplicationiac/SyncExportApplicationIaCApplicationname.java new file mode 100644 index 000000000000..572b3ec42559 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/exportapplicationiac/SyncExportApplicationIaCApplicationname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ExportApplicationIaC_Applicationname_sync] +import com.google.cloud.designcenter.v1.ApplicationName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.ExportApplicationIaCResponse; + +public class SyncExportApplicationIaCApplicationname { + + public static void main(String[] args) throws Exception { + syncExportApplicationIaCApplicationname(); + } + + public static void syncExportApplicationIaCApplicationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ApplicationName name = + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]"); + ExportApplicationIaCResponse response = + designCenterClient.exportApplicationIaCAsync(name).get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_ExportApplicationIaC_Applicationname_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/exportapplicationiac/SyncExportApplicationIaCString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/exportapplicationiac/SyncExportApplicationIaCString.java new file mode 100644 index 000000000000..a31a1343f173 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/exportapplicationiac/SyncExportApplicationIaCString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ExportApplicationIaC_String_sync] +import com.google.cloud.designcenter.v1.ApplicationName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.ExportApplicationIaCResponse; + +public class SyncExportApplicationIaCString { + + public static void main(String[] args) throws Exception { + syncExportApplicationIaCString(); + } + + public static void syncExportApplicationIaCString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + String name = + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]").toString(); + ExportApplicationIaCResponse response = + designCenterClient.exportApplicationIaCAsync(name).get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_ExportApplicationIaC_String_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/exportapplicationtemplateiac/AsyncExportApplicationTemplateIaC.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/exportapplicationtemplateiac/AsyncExportApplicationTemplateIaC.java new file mode 100644 index 000000000000..2b3963af50b8 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/exportapplicationtemplateiac/AsyncExportApplicationTemplateIaC.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ExportApplicationTemplateIaC_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.ApplicationTemplateName; +import com.google.cloud.designcenter.v1.ArtifactLocation; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCRequest; +import com.google.cloud.designcenter.v1.ExportIaCConfig; +import com.google.longrunning.Operation; + +public class AsyncExportApplicationTemplateIaC { + + public static void main(String[] args) throws Exception { + asyncExportApplicationTemplateIaC(); + } + + public static void asyncExportApplicationTemplateIaC() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ExportApplicationTemplateIaCRequest request = + ExportApplicationTemplateIaCRequest.newBuilder() + .setName( + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString()) + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .setExportIacConfig(ExportIaCConfig.newBuilder().build()) + .build(); + ApiFuture future = + designCenterClient.exportApplicationTemplateIaCCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_ExportApplicationTemplateIaC_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/exportapplicationtemplateiac/AsyncExportApplicationTemplateIaCLRO.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/exportapplicationtemplateiac/AsyncExportApplicationTemplateIaCLRO.java new file mode 100644 index 000000000000..687025c9e36d --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/exportapplicationtemplateiac/AsyncExportApplicationTemplateIaCLRO.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ExportApplicationTemplateIaC_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.designcenter.v1.ApplicationTemplateName; +import com.google.cloud.designcenter.v1.ArtifactLocation; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCRequest; +import com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCResponse; +import com.google.cloud.designcenter.v1.ExportIaCConfig; +import com.google.cloud.designcenter.v1.OperationMetadata; + +public class AsyncExportApplicationTemplateIaCLRO { + + public static void main(String[] args) throws Exception { + asyncExportApplicationTemplateIaCLRO(); + } + + public static void asyncExportApplicationTemplateIaCLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ExportApplicationTemplateIaCRequest request = + ExportApplicationTemplateIaCRequest.newBuilder() + .setName( + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString()) + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .setExportIacConfig(ExportIaCConfig.newBuilder().build()) + .build(); + OperationFuture future = + designCenterClient.exportApplicationTemplateIaCOperationCallable().futureCall(request); + // Do something. + ExportApplicationTemplateIaCResponse response = future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_ExportApplicationTemplateIaC_LRO_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/exportapplicationtemplateiac/SyncExportApplicationTemplateIaC.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/exportapplicationtemplateiac/SyncExportApplicationTemplateIaC.java new file mode 100644 index 000000000000..283d43c082a2 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/exportapplicationtemplateiac/SyncExportApplicationTemplateIaC.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ExportApplicationTemplateIaC_sync] +import com.google.cloud.designcenter.v1.ApplicationTemplateName; +import com.google.cloud.designcenter.v1.ArtifactLocation; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCRequest; +import com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCResponse; +import com.google.cloud.designcenter.v1.ExportIaCConfig; + +public class SyncExportApplicationTemplateIaC { + + public static void main(String[] args) throws Exception { + syncExportApplicationTemplateIaC(); + } + + public static void syncExportApplicationTemplateIaC() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ExportApplicationTemplateIaCRequest request = + ExportApplicationTemplateIaCRequest.newBuilder() + .setName( + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString()) + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .setExportIacConfig(ExportIaCConfig.newBuilder().build()) + .build(); + ExportApplicationTemplateIaCResponse response = + designCenterClient.exportApplicationTemplateIaCAsync(request).get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_ExportApplicationTemplateIaC_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/exportapplicationtemplateiac/SyncExportApplicationTemplateIaCApplicationtemplatename.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/exportapplicationtemplateiac/SyncExportApplicationTemplateIaCApplicationtemplatename.java new file mode 100644 index 000000000000..4ec1f8e50f1d --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/exportapplicationtemplateiac/SyncExportApplicationTemplateIaCApplicationtemplatename.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ExportApplicationTemplateIaC_Applicationtemplatename_sync] +import com.google.cloud.designcenter.v1.ApplicationTemplateName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCResponse; + +public class SyncExportApplicationTemplateIaCApplicationtemplatename { + + public static void main(String[] args) throws Exception { + syncExportApplicationTemplateIaCApplicationtemplatename(); + } + + public static void syncExportApplicationTemplateIaCApplicationtemplatename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ApplicationTemplateName name = + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + ExportApplicationTemplateIaCResponse response = + designCenterClient.exportApplicationTemplateIaCAsync(name).get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_ExportApplicationTemplateIaC_Applicationtemplatename_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/exportapplicationtemplateiac/SyncExportApplicationTemplateIaCString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/exportapplicationtemplateiac/SyncExportApplicationTemplateIaCString.java new file mode 100644 index 000000000000..4a5ceee68593 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/exportapplicationtemplateiac/SyncExportApplicationTemplateIaCString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ExportApplicationTemplateIaC_String_sync] +import com.google.cloud.designcenter.v1.ApplicationTemplateName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.ExportApplicationTemplateIaCResponse; + +public class SyncExportApplicationTemplateIaCString { + + public static void main(String[] args) throws Exception { + syncExportApplicationTemplateIaCString(); + } + + public static void syncExportApplicationTemplateIaCString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + String name = + ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString(); + ExportApplicationTemplateIaCResponse response = + designCenterClient.exportApplicationTemplateIaCAsync(name).get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_ExportApplicationTemplateIaC_String_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/exportapplicationtemplaterevisioniac/AsyncExportApplicationTemplateRevisionIaC.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/exportapplicationtemplaterevisioniac/AsyncExportApplicationTemplateRevisionIaC.java new file mode 100644 index 000000000000..3c1ea2815b77 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/exportapplicationtemplaterevisioniac/AsyncExportApplicationTemplateRevisionIaC.java @@ -0,0 +1,61 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ExportApplicationTemplateRevisionIaC_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.ApplicationTemplateRevisionName; +import com.google.cloud.designcenter.v1.ArtifactLocation; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCRequest; +import com.google.cloud.designcenter.v1.ExportIaCConfig; +import com.google.longrunning.Operation; + +public class AsyncExportApplicationTemplateRevisionIaC { + + public static void main(String[] args) throws Exception { + asyncExportApplicationTemplateRevisionIaC(); + } + + public static void asyncExportApplicationTemplateRevisionIaC() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ExportApplicationTemplateRevisionIaCRequest request = + ExportApplicationTemplateRevisionIaCRequest.newBuilder() + .setName( + ApplicationTemplateRevisionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[REVISION]") + .toString()) + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .setExportIacConfig(ExportIaCConfig.newBuilder().build()) + .build(); + ApiFuture future = + designCenterClient.exportApplicationTemplateRevisionIaCCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_ExportApplicationTemplateRevisionIaC_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/exportapplicationtemplaterevisioniac/AsyncExportApplicationTemplateRevisionIaCLRO.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/exportapplicationtemplaterevisioniac/AsyncExportApplicationTemplateRevisionIaCLRO.java new file mode 100644 index 000000000000..fbbac707cd0c --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/exportapplicationtemplaterevisioniac/AsyncExportApplicationTemplateRevisionIaCLRO.java @@ -0,0 +1,64 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ExportApplicationTemplateRevisionIaC_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.designcenter.v1.ApplicationTemplateRevisionName; +import com.google.cloud.designcenter.v1.ArtifactLocation; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCRequest; +import com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCResponse; +import com.google.cloud.designcenter.v1.ExportIaCConfig; +import com.google.cloud.designcenter.v1.OperationMetadata; + +public class AsyncExportApplicationTemplateRevisionIaCLRO { + + public static void main(String[] args) throws Exception { + asyncExportApplicationTemplateRevisionIaCLRO(); + } + + public static void asyncExportApplicationTemplateRevisionIaCLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ExportApplicationTemplateRevisionIaCRequest request = + ExportApplicationTemplateRevisionIaCRequest.newBuilder() + .setName( + ApplicationTemplateRevisionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[REVISION]") + .toString()) + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .setExportIacConfig(ExportIaCConfig.newBuilder().build()) + .build(); + OperationFuture future = + designCenterClient + .exportApplicationTemplateRevisionIaCOperationCallable() + .futureCall(request); + // Do something. + ExportApplicationTemplateRevisionIaCResponse response = future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_ExportApplicationTemplateRevisionIaC_LRO_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/exportapplicationtemplaterevisioniac/SyncExportApplicationTemplateRevisionIaC.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/exportapplicationtemplaterevisioniac/SyncExportApplicationTemplateRevisionIaC.java new file mode 100644 index 000000000000..1464b24421c6 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/exportapplicationtemplaterevisioniac/SyncExportApplicationTemplateRevisionIaC.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ExportApplicationTemplateRevisionIaC_sync] +import com.google.cloud.designcenter.v1.ApplicationTemplateRevisionName; +import com.google.cloud.designcenter.v1.ArtifactLocation; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCRequest; +import com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCResponse; +import com.google.cloud.designcenter.v1.ExportIaCConfig; + +public class SyncExportApplicationTemplateRevisionIaC { + + public static void main(String[] args) throws Exception { + syncExportApplicationTemplateRevisionIaC(); + } + + public static void syncExportApplicationTemplateRevisionIaC() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ExportApplicationTemplateRevisionIaCRequest request = + ExportApplicationTemplateRevisionIaCRequest.newBuilder() + .setName( + ApplicationTemplateRevisionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[REVISION]") + .toString()) + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .setExportIacConfig(ExportIaCConfig.newBuilder().build()) + .build(); + ExportApplicationTemplateRevisionIaCResponse response = + designCenterClient.exportApplicationTemplateRevisionIaCAsync(request).get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_ExportApplicationTemplateRevisionIaC_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/exportapplicationtemplaterevisioniac/SyncExportApplicationTemplateRevisionIaCApplicationtemplaterevisionname.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/exportapplicationtemplaterevisioniac/SyncExportApplicationTemplateRevisionIaCApplicationtemplaterevisionname.java new file mode 100644 index 000000000000..fd4c50969f27 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/exportapplicationtemplaterevisioniac/SyncExportApplicationTemplateRevisionIaCApplicationtemplaterevisionname.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ExportApplicationTemplateRevisionIaC_Applicationtemplaterevisionname_sync] +import com.google.cloud.designcenter.v1.ApplicationTemplateRevisionName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCResponse; + +public class SyncExportApplicationTemplateRevisionIaCApplicationtemplaterevisionname { + + public static void main(String[] args) throws Exception { + syncExportApplicationTemplateRevisionIaCApplicationtemplaterevisionname(); + } + + public static void syncExportApplicationTemplateRevisionIaCApplicationtemplaterevisionname() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ApplicationTemplateRevisionName name = + ApplicationTemplateRevisionName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[REVISION]"); + ExportApplicationTemplateRevisionIaCResponse response = + designCenterClient.exportApplicationTemplateRevisionIaCAsync(name).get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_ExportApplicationTemplateRevisionIaC_Applicationtemplaterevisionname_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/exportapplicationtemplaterevisioniac/SyncExportApplicationTemplateRevisionIaCString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/exportapplicationtemplaterevisioniac/SyncExportApplicationTemplateRevisionIaCString.java new file mode 100644 index 000000000000..48b0a1e8fe49 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/exportapplicationtemplaterevisioniac/SyncExportApplicationTemplateRevisionIaCString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ExportApplicationTemplateRevisionIaC_String_sync] +import com.google.cloud.designcenter.v1.ApplicationTemplateRevisionName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.ExportApplicationTemplateRevisionIaCResponse; + +public class SyncExportApplicationTemplateRevisionIaCString { + + public static void main(String[] args) throws Exception { + syncExportApplicationTemplateRevisionIaCString(); + } + + public static void syncExportApplicationTemplateRevisionIaCString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + String name = + ApplicationTemplateRevisionName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[REVISION]") + .toString(); + ExportApplicationTemplateRevisionIaCResponse response = + designCenterClient.exportApplicationTemplateRevisionIaCAsync(name).get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_ExportApplicationTemplateRevisionIaC_String_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/fetchapplicationassessmentreport/AsyncFetchApplicationAssessmentReport.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/fetchapplicationassessmentreport/AsyncFetchApplicationAssessmentReport.java new file mode 100644 index 000000000000..b28c72d44a80 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/fetchapplicationassessmentreport/AsyncFetchApplicationAssessmentReport.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_FetchApplicationAssessmentReport_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.ApplicationName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportRequest; +import com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportResponse; + +public class AsyncFetchApplicationAssessmentReport { + + public static void main(String[] args) throws Exception { + asyncFetchApplicationAssessmentReport(); + } + + public static void asyncFetchApplicationAssessmentReport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + FetchApplicationAssessmentReportRequest request = + FetchApplicationAssessmentReportRequest.newBuilder() + .setName( + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]") + .toString()) + .build(); + ApiFuture future = + designCenterClient.fetchApplicationAssessmentReportCallable().futureCall(request); + // Do something. + FetchApplicationAssessmentReportResponse response = future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_FetchApplicationAssessmentReport_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/fetchapplicationassessmentreport/SyncFetchApplicationAssessmentReport.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/fetchapplicationassessmentreport/SyncFetchApplicationAssessmentReport.java new file mode 100644 index 000000000000..ea19bc9726f5 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/fetchapplicationassessmentreport/SyncFetchApplicationAssessmentReport.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_FetchApplicationAssessmentReport_sync] +import com.google.cloud.designcenter.v1.ApplicationName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportRequest; +import com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportResponse; + +public class SyncFetchApplicationAssessmentReport { + + public static void main(String[] args) throws Exception { + syncFetchApplicationAssessmentReport(); + } + + public static void syncFetchApplicationAssessmentReport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + FetchApplicationAssessmentReportRequest request = + FetchApplicationAssessmentReportRequest.newBuilder() + .setName( + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]") + .toString()) + .build(); + FetchApplicationAssessmentReportResponse response = + designCenterClient.fetchApplicationAssessmentReport(request); + } + } +} +// [END designcenter_v1_generated_DesignCenter_FetchApplicationAssessmentReport_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/fetchapplicationassessmentreport/SyncFetchApplicationAssessmentReportApplicationname.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/fetchapplicationassessmentreport/SyncFetchApplicationAssessmentReportApplicationname.java new file mode 100644 index 000000000000..d0e379bdf487 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/fetchapplicationassessmentreport/SyncFetchApplicationAssessmentReportApplicationname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_FetchApplicationAssessmentReport_Applicationname_sync] +import com.google.cloud.designcenter.v1.ApplicationName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportResponse; + +public class SyncFetchApplicationAssessmentReportApplicationname { + + public static void main(String[] args) throws Exception { + syncFetchApplicationAssessmentReportApplicationname(); + } + + public static void syncFetchApplicationAssessmentReportApplicationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ApplicationName name = + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]"); + FetchApplicationAssessmentReportResponse response = + designCenterClient.fetchApplicationAssessmentReport(name); + } + } +} +// [END designcenter_v1_generated_DesignCenter_FetchApplicationAssessmentReport_Applicationname_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/fetchapplicationassessmentreport/SyncFetchApplicationAssessmentReportString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/fetchapplicationassessmentreport/SyncFetchApplicationAssessmentReportString.java new file mode 100644 index 000000000000..716a2b9f55c4 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/fetchapplicationassessmentreport/SyncFetchApplicationAssessmentReportString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_FetchApplicationAssessmentReport_String_sync] +import com.google.cloud.designcenter.v1.ApplicationName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.FetchApplicationAssessmentReportResponse; + +public class SyncFetchApplicationAssessmentReportString { + + public static void main(String[] args) throws Exception { + syncFetchApplicationAssessmentReportString(); + } + + public static void syncFetchApplicationAssessmentReportString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + String name = + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]").toString(); + FetchApplicationAssessmentReportResponse response = + designCenterClient.fetchApplicationAssessmentReport(name); + } + } +} +// [END designcenter_v1_generated_DesignCenter_FetchApplicationAssessmentReport_String_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/fetchframeworks/AsyncFetchFrameworks.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/fetchframeworks/AsyncFetchFrameworks.java new file mode 100644 index 000000000000..48e2e6e7a1d9 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/fetchframeworks/AsyncFetchFrameworks.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_FetchFrameworks_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.FetchFrameworksRequest; +import com.google.cloud.designcenter.v1.Framework; +import java.util.ArrayList; + +public class AsyncFetchFrameworks { + + public static void main(String[] args) throws Exception { + asyncFetchFrameworks(); + } + + public static void asyncFetchFrameworks() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + FetchFrameworksRequest request = + FetchFrameworksRequest.newBuilder() + .setParent("parent-995424086") + .addAllProjects(new ArrayList()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + ApiFuture future = + designCenterClient.fetchFrameworksPagedCallable().futureCall(request); + // Do something. + for (Framework element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END designcenter_v1_generated_DesignCenter_FetchFrameworks_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/fetchframeworks/AsyncFetchFrameworksPaged.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/fetchframeworks/AsyncFetchFrameworksPaged.java new file mode 100644 index 000000000000..93e02323d33b --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/fetchframeworks/AsyncFetchFrameworksPaged.java @@ -0,0 +1,64 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_FetchFrameworks_Paged_async] +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.FetchFrameworksRequest; +import com.google.cloud.designcenter.v1.FetchFrameworksResponse; +import com.google.cloud.designcenter.v1.Framework; +import com.google.common.base.Strings; +import java.util.ArrayList; + +public class AsyncFetchFrameworksPaged { + + public static void main(String[] args) throws Exception { + asyncFetchFrameworksPaged(); + } + + public static void asyncFetchFrameworksPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + FetchFrameworksRequest request = + FetchFrameworksRequest.newBuilder() + .setParent("parent-995424086") + .addAllProjects(new ArrayList()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + while (true) { + FetchFrameworksResponse response = + designCenterClient.fetchFrameworksCallable().call(request); + for (Framework element : response.getFrameworksList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END designcenter_v1_generated_DesignCenter_FetchFrameworks_Paged_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/fetchframeworks/SyncFetchFrameworks.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/fetchframeworks/SyncFetchFrameworks.java new file mode 100644 index 000000000000..bf2e6a0a0b36 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/fetchframeworks/SyncFetchFrameworks.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_FetchFrameworks_sync] +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.FetchFrameworksRequest; +import com.google.cloud.designcenter.v1.Framework; +import java.util.ArrayList; + +public class SyncFetchFrameworks { + + public static void main(String[] args) throws Exception { + syncFetchFrameworks(); + } + + public static void syncFetchFrameworks() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + FetchFrameworksRequest request = + FetchFrameworksRequest.newBuilder() + .setParent("parent-995424086") + .addAllProjects(new ArrayList()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + for (Framework element : designCenterClient.fetchFrameworks(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END designcenter_v1_generated_DesignCenter_FetchFrameworks_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/fetchframeworks/SyncFetchFrameworksString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/fetchframeworks/SyncFetchFrameworksString.java new file mode 100644 index 000000000000..7d9b76b4fc2c --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/fetchframeworks/SyncFetchFrameworksString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_FetchFrameworks_String_sync] +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.Framework; + +public class SyncFetchFrameworksString { + + public static void main(String[] args) throws Exception { + syncFetchFrameworksString(); + } + + public static void syncFetchFrameworksString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + String parent = "parent-995424086"; + for (Framework element : designCenterClient.fetchFrameworks(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END designcenter_v1_generated_DesignCenter_FetchFrameworks_String_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationassessmentreport/AsyncGenerateApplicationAssessmentReport.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationassessmentreport/AsyncGenerateApplicationAssessmentReport.java new file mode 100644 index 000000000000..dc90b0698ae3 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationassessmentreport/AsyncGenerateApplicationAssessmentReport.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GenerateApplicationAssessmentReport_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.ApplicationName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportRequest; +import com.google.longrunning.Operation; + +public class AsyncGenerateApplicationAssessmentReport { + + public static void main(String[] args) throws Exception { + asyncGenerateApplicationAssessmentReport(); + } + + public static void asyncGenerateApplicationAssessmentReport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + GenerateApplicationAssessmentReportRequest request = + GenerateApplicationAssessmentReportRequest.newBuilder() + .setName( + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]") + .toString()) + .build(); + ApiFuture future = + designCenterClient.generateApplicationAssessmentReportCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GenerateApplicationAssessmentReport_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationassessmentreport/AsyncGenerateApplicationAssessmentReportLRO.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationassessmentreport/AsyncGenerateApplicationAssessmentReportLRO.java new file mode 100644 index 000000000000..1207cca031bf --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationassessmentreport/AsyncGenerateApplicationAssessmentReportLRO.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GenerateApplicationAssessmentReport_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.designcenter.v1.ApplicationName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportRequest; +import com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportResponse; +import com.google.cloud.designcenter.v1.OperationMetadata; + +public class AsyncGenerateApplicationAssessmentReportLRO { + + public static void main(String[] args) throws Exception { + asyncGenerateApplicationAssessmentReportLRO(); + } + + public static void asyncGenerateApplicationAssessmentReportLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + GenerateApplicationAssessmentReportRequest request = + GenerateApplicationAssessmentReportRequest.newBuilder() + .setName( + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]") + .toString()) + .build(); + OperationFuture future = + designCenterClient + .generateApplicationAssessmentReportOperationCallable() + .futureCall(request); + // Do something. + GenerateApplicationAssessmentReportResponse response = future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GenerateApplicationAssessmentReport_LRO_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationassessmentreport/SyncGenerateApplicationAssessmentReport.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationassessmentreport/SyncGenerateApplicationAssessmentReport.java new file mode 100644 index 000000000000..f830e2e7a10f --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationassessmentreport/SyncGenerateApplicationAssessmentReport.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GenerateApplicationAssessmentReport_sync] +import com.google.cloud.designcenter.v1.ApplicationName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportRequest; +import com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportResponse; + +public class SyncGenerateApplicationAssessmentReport { + + public static void main(String[] args) throws Exception { + syncGenerateApplicationAssessmentReport(); + } + + public static void syncGenerateApplicationAssessmentReport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + GenerateApplicationAssessmentReportRequest request = + GenerateApplicationAssessmentReportRequest.newBuilder() + .setName( + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]") + .toString()) + .build(); + GenerateApplicationAssessmentReportResponse response = + designCenterClient.generateApplicationAssessmentReportAsync(request).get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GenerateApplicationAssessmentReport_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationassessmentreport/SyncGenerateApplicationAssessmentReportApplicationname.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationassessmentreport/SyncGenerateApplicationAssessmentReportApplicationname.java new file mode 100644 index 000000000000..ea9ac377cee0 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationassessmentreport/SyncGenerateApplicationAssessmentReportApplicationname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GenerateApplicationAssessmentReport_Applicationname_sync] +import com.google.cloud.designcenter.v1.ApplicationName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportResponse; + +public class SyncGenerateApplicationAssessmentReportApplicationname { + + public static void main(String[] args) throws Exception { + syncGenerateApplicationAssessmentReportApplicationname(); + } + + public static void syncGenerateApplicationAssessmentReportApplicationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ApplicationName name = + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]"); + GenerateApplicationAssessmentReportResponse response = + designCenterClient.generateApplicationAssessmentReportAsync(name).get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GenerateApplicationAssessmentReport_Applicationname_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationassessmentreport/SyncGenerateApplicationAssessmentReportString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationassessmentreport/SyncGenerateApplicationAssessmentReportString.java new file mode 100644 index 000000000000..356d5025a5f9 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationassessmentreport/SyncGenerateApplicationAssessmentReportString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GenerateApplicationAssessmentReport_String_sync] +import com.google.cloud.designcenter.v1.ApplicationName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.GenerateApplicationAssessmentReportResponse; + +public class SyncGenerateApplicationAssessmentReportString { + + public static void main(String[] args) throws Exception { + syncGenerateApplicationAssessmentReportString(); + } + + public static void syncGenerateApplicationAssessmentReportString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + String name = + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]").toString(); + GenerateApplicationAssessmentReportResponse response = + designCenterClient.generateApplicationAssessmentReportAsync(name).get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GenerateApplicationAssessmentReport_String_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationiac/AsyncGenerateApplicationIaC.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationiac/AsyncGenerateApplicationIaC.java new file mode 100644 index 000000000000..4e8a121422c7 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationiac/AsyncGenerateApplicationIaC.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GenerateApplicationIaC_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.ApplicationName; +import com.google.cloud.designcenter.v1.ArtifactLocation; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.GenerateApplicationIaCRequest; +import com.google.cloud.designcenter.v1.GenerateApplicationIaCResponse; +import com.google.cloud.designcenter.v1.IACFormat; + +public class AsyncGenerateApplicationIaC { + + public static void main(String[] args) throws Exception { + asyncGenerateApplicationIaC(); + } + + public static void asyncGenerateApplicationIaC() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + GenerateApplicationIaCRequest request = + GenerateApplicationIaCRequest.newBuilder() + .setName( + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]") + .toString()) + .setIacFormat(IACFormat.forNumber(0)) + .setGcsUri("gcsUri-1251224875") + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .build(); + ApiFuture future = + designCenterClient.generateApplicationIaCCallable().futureCall(request); + // Do something. + GenerateApplicationIaCResponse response = future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GenerateApplicationIaC_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationiac/SyncGenerateApplicationIaC.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationiac/SyncGenerateApplicationIaC.java new file mode 100644 index 000000000000..003c63c6c74e --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationiac/SyncGenerateApplicationIaC.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GenerateApplicationIaC_sync] +import com.google.cloud.designcenter.v1.ApplicationName; +import com.google.cloud.designcenter.v1.ArtifactLocation; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.GenerateApplicationIaCRequest; +import com.google.cloud.designcenter.v1.GenerateApplicationIaCResponse; +import com.google.cloud.designcenter.v1.IACFormat; + +public class SyncGenerateApplicationIaC { + + public static void main(String[] args) throws Exception { + syncGenerateApplicationIaC(); + } + + public static void syncGenerateApplicationIaC() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + GenerateApplicationIaCRequest request = + GenerateApplicationIaCRequest.newBuilder() + .setName( + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]") + .toString()) + .setIacFormat(IACFormat.forNumber(0)) + .setGcsUri("gcsUri-1251224875") + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .build(); + GenerateApplicationIaCResponse response = designCenterClient.generateApplicationIaC(request); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GenerateApplicationIaC_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationiac/SyncGenerateApplicationIaCApplicationname.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationiac/SyncGenerateApplicationIaCApplicationname.java new file mode 100644 index 000000000000..0a60f66842b0 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationiac/SyncGenerateApplicationIaCApplicationname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GenerateApplicationIaC_Applicationname_sync] +import com.google.cloud.designcenter.v1.ApplicationName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.GenerateApplicationIaCResponse; + +public class SyncGenerateApplicationIaCApplicationname { + + public static void main(String[] args) throws Exception { + syncGenerateApplicationIaCApplicationname(); + } + + public static void syncGenerateApplicationIaCApplicationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ApplicationName name = + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]"); + GenerateApplicationIaCResponse response = designCenterClient.generateApplicationIaC(name); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GenerateApplicationIaC_Applicationname_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationiac/SyncGenerateApplicationIaCString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationiac/SyncGenerateApplicationIaCString.java new file mode 100644 index 000000000000..b26d748c4027 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationiac/SyncGenerateApplicationIaCString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GenerateApplicationIaC_String_sync] +import com.google.cloud.designcenter.v1.ApplicationName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.GenerateApplicationIaCResponse; + +public class SyncGenerateApplicationIaCString { + + public static void main(String[] args) throws Exception { + syncGenerateApplicationIaCString(); + } + + public static void syncGenerateApplicationIaCString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + String name = + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]").toString(); + GenerateApplicationIaCResponse response = designCenterClient.generateApplicationIaC(name); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GenerateApplicationIaC_String_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationtemplateassessmentreport/AsyncGenerateApplicationTemplateAssessmentReport.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationtemplateassessmentreport/AsyncGenerateApplicationTemplateAssessmentReport.java new file mode 100644 index 000000000000..88c69680ee07 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationtemplateassessmentreport/AsyncGenerateApplicationTemplateAssessmentReport.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GenerateApplicationTemplateAssessmentReport_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.ApplicationTemplateName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportRequest; +import com.google.longrunning.Operation; + +public class AsyncGenerateApplicationTemplateAssessmentReport { + + public static void main(String[] args) throws Exception { + asyncGenerateApplicationTemplateAssessmentReport(); + } + + public static void asyncGenerateApplicationTemplateAssessmentReport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + GenerateApplicationTemplateAssessmentReportRequest request = + GenerateApplicationTemplateAssessmentReportRequest.newBuilder() + .setName( + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString()) + .setServiceAccount("serviceAccount1079137720") + .build(); + ApiFuture future = + designCenterClient + .generateApplicationTemplateAssessmentReportCallable() + .futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GenerateApplicationTemplateAssessmentReport_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationtemplateassessmentreport/AsyncGenerateApplicationTemplateAssessmentReportLRO.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationtemplateassessmentreport/AsyncGenerateApplicationTemplateAssessmentReportLRO.java new file mode 100644 index 000000000000..85fc29ce0cf1 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationtemplateassessmentreport/AsyncGenerateApplicationTemplateAssessmentReportLRO.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GenerateApplicationTemplateAssessmentReport_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.designcenter.v1.ApplicationTemplateName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportRequest; +import com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportResponse; +import com.google.cloud.designcenter.v1.OperationMetadata; + +public class AsyncGenerateApplicationTemplateAssessmentReportLRO { + + public static void main(String[] args) throws Exception { + asyncGenerateApplicationTemplateAssessmentReportLRO(); + } + + public static void asyncGenerateApplicationTemplateAssessmentReportLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + GenerateApplicationTemplateAssessmentReportRequest request = + GenerateApplicationTemplateAssessmentReportRequest.newBuilder() + .setName( + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString()) + .setServiceAccount("serviceAccount1079137720") + .build(); + OperationFuture + future = + designCenterClient + .generateApplicationTemplateAssessmentReportOperationCallable() + .futureCall(request); + // Do something. + GenerateApplicationTemplateAssessmentReportResponse response = future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GenerateApplicationTemplateAssessmentReport_LRO_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationtemplateassessmentreport/SyncGenerateApplicationTemplateAssessmentReport.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationtemplateassessmentreport/SyncGenerateApplicationTemplateAssessmentReport.java new file mode 100644 index 000000000000..19b964de3c67 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationtemplateassessmentreport/SyncGenerateApplicationTemplateAssessmentReport.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GenerateApplicationTemplateAssessmentReport_sync] +import com.google.cloud.designcenter.v1.ApplicationTemplateName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportRequest; +import com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportResponse; + +public class SyncGenerateApplicationTemplateAssessmentReport { + + public static void main(String[] args) throws Exception { + syncGenerateApplicationTemplateAssessmentReport(); + } + + public static void syncGenerateApplicationTemplateAssessmentReport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + GenerateApplicationTemplateAssessmentReportRequest request = + GenerateApplicationTemplateAssessmentReportRequest.newBuilder() + .setName( + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString()) + .setServiceAccount("serviceAccount1079137720") + .build(); + GenerateApplicationTemplateAssessmentReportResponse response = + designCenterClient.generateApplicationTemplateAssessmentReportAsync(request).get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GenerateApplicationTemplateAssessmentReport_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationtemplateassessmentreport/SyncGenerateApplicationTemplateAssessmentReportApplicationtemplatename.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationtemplateassessmentreport/SyncGenerateApplicationTemplateAssessmentReportApplicationtemplatename.java new file mode 100644 index 000000000000..0a487aaee7e6 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationtemplateassessmentreport/SyncGenerateApplicationTemplateAssessmentReportApplicationtemplatename.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GenerateApplicationTemplateAssessmentReport_Applicationtemplatename_sync] +import com.google.cloud.designcenter.v1.ApplicationTemplateName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportResponse; + +public class SyncGenerateApplicationTemplateAssessmentReportApplicationtemplatename { + + public static void main(String[] args) throws Exception { + syncGenerateApplicationTemplateAssessmentReportApplicationtemplatename(); + } + + public static void syncGenerateApplicationTemplateAssessmentReportApplicationtemplatename() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ApplicationTemplateName name = + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + GenerateApplicationTemplateAssessmentReportResponse response = + designCenterClient.generateApplicationTemplateAssessmentReportAsync(name).get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GenerateApplicationTemplateAssessmentReport_Applicationtemplatename_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationtemplateassessmentreport/SyncGenerateApplicationTemplateAssessmentReportString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationtemplateassessmentreport/SyncGenerateApplicationTemplateAssessmentReportString.java new file mode 100644 index 000000000000..e9178861062d --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationtemplateassessmentreport/SyncGenerateApplicationTemplateAssessmentReportString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GenerateApplicationTemplateAssessmentReport_String_sync] +import com.google.cloud.designcenter.v1.ApplicationTemplateName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.GenerateApplicationTemplateAssessmentReportResponse; + +public class SyncGenerateApplicationTemplateAssessmentReportString { + + public static void main(String[] args) throws Exception { + syncGenerateApplicationTemplateAssessmentReportString(); + } + + public static void syncGenerateApplicationTemplateAssessmentReportString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + String name = + ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString(); + GenerateApplicationTemplateAssessmentReportResponse response = + designCenterClient.generateApplicationTemplateAssessmentReportAsync(name).get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GenerateApplicationTemplateAssessmentReport_String_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationtemplateiac/AsyncGenerateApplicationTemplateIaC.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationtemplateiac/AsyncGenerateApplicationTemplateIaC.java new file mode 100644 index 000000000000..a6cad1ae27c4 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationtemplateiac/AsyncGenerateApplicationTemplateIaC.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GenerateApplicationTemplateIaC_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.ApplicationTemplateName; +import com.google.cloud.designcenter.v1.ArtifactLocation; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest; +import com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCResponse; + +public class AsyncGenerateApplicationTemplateIaC { + + public static void main(String[] args) throws Exception { + asyncGenerateApplicationTemplateIaC(); + } + + public static void asyncGenerateApplicationTemplateIaC() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + GenerateApplicationTemplateIaCRequest request = + GenerateApplicationTemplateIaCRequest.newBuilder() + .setName( + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString()) + .setGcsUri("gcsUri-1251224875") + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .build(); + ApiFuture future = + designCenterClient.generateApplicationTemplateIaCCallable().futureCall(request); + // Do something. + GenerateApplicationTemplateIaCResponse response = future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GenerateApplicationTemplateIaC_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationtemplateiac/SyncGenerateApplicationTemplateIaC.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationtemplateiac/SyncGenerateApplicationTemplateIaC.java new file mode 100644 index 000000000000..bf8249f9f952 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationtemplateiac/SyncGenerateApplicationTemplateIaC.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GenerateApplicationTemplateIaC_sync] +import com.google.cloud.designcenter.v1.ApplicationTemplateName; +import com.google.cloud.designcenter.v1.ArtifactLocation; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCRequest; +import com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCResponse; + +public class SyncGenerateApplicationTemplateIaC { + + public static void main(String[] args) throws Exception { + syncGenerateApplicationTemplateIaC(); + } + + public static void syncGenerateApplicationTemplateIaC() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + GenerateApplicationTemplateIaCRequest request = + GenerateApplicationTemplateIaCRequest.newBuilder() + .setName( + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString()) + .setGcsUri("gcsUri-1251224875") + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .build(); + GenerateApplicationTemplateIaCResponse response = + designCenterClient.generateApplicationTemplateIaC(request); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GenerateApplicationTemplateIaC_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationtemplateiac/SyncGenerateApplicationTemplateIaCApplicationtemplatename.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationtemplateiac/SyncGenerateApplicationTemplateIaCApplicationtemplatename.java new file mode 100644 index 000000000000..67247d635a42 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationtemplateiac/SyncGenerateApplicationTemplateIaCApplicationtemplatename.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GenerateApplicationTemplateIaC_Applicationtemplatename_sync] +import com.google.cloud.designcenter.v1.ApplicationTemplateName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCResponse; + +public class SyncGenerateApplicationTemplateIaCApplicationtemplatename { + + public static void main(String[] args) throws Exception { + syncGenerateApplicationTemplateIaCApplicationtemplatename(); + } + + public static void syncGenerateApplicationTemplateIaCApplicationtemplatename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ApplicationTemplateName name = + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + GenerateApplicationTemplateIaCResponse response = + designCenterClient.generateApplicationTemplateIaC(name); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GenerateApplicationTemplateIaC_Applicationtemplatename_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationtemplateiac/SyncGenerateApplicationTemplateIaCString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationtemplateiac/SyncGenerateApplicationTemplateIaCString.java new file mode 100644 index 000000000000..f0491e0b9cd5 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationtemplateiac/SyncGenerateApplicationTemplateIaCString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GenerateApplicationTemplateIaC_String_sync] +import com.google.cloud.designcenter.v1.ApplicationTemplateName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.GenerateApplicationTemplateIaCResponse; + +public class SyncGenerateApplicationTemplateIaCString { + + public static void main(String[] args) throws Exception { + syncGenerateApplicationTemplateIaCString(); + } + + public static void syncGenerateApplicationTemplateIaCString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + String name = + ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString(); + GenerateApplicationTemplateIaCResponse response = + designCenterClient.generateApplicationTemplateIaC(name); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GenerateApplicationTemplateIaC_String_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationtemplaterevisioniac/AsyncGenerateApplicationTemplateRevisionIaC.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationtemplaterevisioniac/AsyncGenerateApplicationTemplateRevisionIaC.java new file mode 100644 index 000000000000..0a33fe41830b --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationtemplaterevisioniac/AsyncGenerateApplicationTemplateRevisionIaC.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GenerateApplicationTemplateRevisionIaC_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.ApplicationTemplateRevisionName; +import com.google.cloud.designcenter.v1.ArtifactLocation; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest; +import com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCResponse; + +public class AsyncGenerateApplicationTemplateRevisionIaC { + + public static void main(String[] args) throws Exception { + asyncGenerateApplicationTemplateRevisionIaC(); + } + + public static void asyncGenerateApplicationTemplateRevisionIaC() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + GenerateApplicationTemplateRevisionIaCRequest request = + GenerateApplicationTemplateRevisionIaCRequest.newBuilder() + .setName( + ApplicationTemplateRevisionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[REVISION]") + .toString()) + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .build(); + ApiFuture future = + designCenterClient.generateApplicationTemplateRevisionIaCCallable().futureCall(request); + // Do something. + GenerateApplicationTemplateRevisionIaCResponse response = future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GenerateApplicationTemplateRevisionIaC_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationtemplaterevisioniac/SyncGenerateApplicationTemplateRevisionIaC.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationtemplaterevisioniac/SyncGenerateApplicationTemplateRevisionIaC.java new file mode 100644 index 000000000000..a7fe09e11984 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationtemplaterevisioniac/SyncGenerateApplicationTemplateRevisionIaC.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GenerateApplicationTemplateRevisionIaC_sync] +import com.google.cloud.designcenter.v1.ApplicationTemplateRevisionName; +import com.google.cloud.designcenter.v1.ArtifactLocation; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCRequest; +import com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCResponse; + +public class SyncGenerateApplicationTemplateRevisionIaC { + + public static void main(String[] args) throws Exception { + syncGenerateApplicationTemplateRevisionIaC(); + } + + public static void syncGenerateApplicationTemplateRevisionIaC() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + GenerateApplicationTemplateRevisionIaCRequest request = + GenerateApplicationTemplateRevisionIaCRequest.newBuilder() + .setName( + ApplicationTemplateRevisionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[REVISION]") + .toString()) + .setArtifactLocation(ArtifactLocation.newBuilder().build()) + .build(); + GenerateApplicationTemplateRevisionIaCResponse response = + designCenterClient.generateApplicationTemplateRevisionIaC(request); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GenerateApplicationTemplateRevisionIaC_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationtemplaterevisioniac/SyncGenerateApplicationTemplateRevisionIaCApplicationtemplaterevisionname.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationtemplaterevisioniac/SyncGenerateApplicationTemplateRevisionIaCApplicationtemplaterevisionname.java new file mode 100644 index 000000000000..8138e2972c5a --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationtemplaterevisioniac/SyncGenerateApplicationTemplateRevisionIaCApplicationtemplaterevisionname.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GenerateApplicationTemplateRevisionIaC_Applicationtemplaterevisionname_sync] +import com.google.cloud.designcenter.v1.ApplicationTemplateRevisionName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCResponse; + +public class SyncGenerateApplicationTemplateRevisionIaCApplicationtemplaterevisionname { + + public static void main(String[] args) throws Exception { + syncGenerateApplicationTemplateRevisionIaCApplicationtemplaterevisionname(); + } + + public static void syncGenerateApplicationTemplateRevisionIaCApplicationtemplaterevisionname() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ApplicationTemplateRevisionName name = + ApplicationTemplateRevisionName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[REVISION]"); + GenerateApplicationTemplateRevisionIaCResponse response = + designCenterClient.generateApplicationTemplateRevisionIaC(name); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GenerateApplicationTemplateRevisionIaC_Applicationtemplaterevisionname_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationtemplaterevisioniac/SyncGenerateApplicationTemplateRevisionIaCString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationtemplaterevisioniac/SyncGenerateApplicationTemplateRevisionIaCString.java new file mode 100644 index 000000000000..80388dc0c169 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateapplicationtemplaterevisioniac/SyncGenerateApplicationTemplateRevisionIaCString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GenerateApplicationTemplateRevisionIaC_String_sync] +import com.google.cloud.designcenter.v1.ApplicationTemplateRevisionName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.GenerateApplicationTemplateRevisionIaCResponse; + +public class SyncGenerateApplicationTemplateRevisionIaCString { + + public static void main(String[] args) throws Exception { + syncGenerateApplicationTemplateRevisionIaCString(); + } + + public static void syncGenerateApplicationTemplateRevisionIaCString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + String name = + ApplicationTemplateRevisionName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[REVISION]") + .toString(); + GenerateApplicationTemplateRevisionIaCResponse response = + designCenterClient.generateApplicationTemplateRevisionIaC(name); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GenerateApplicationTemplateRevisionIaC_String_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateassessmentreport/AsyncGenerateAssessmentReport.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateassessmentreport/AsyncGenerateAssessmentReport.java new file mode 100644 index 000000000000..26d38494522b --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateassessmentreport/AsyncGenerateAssessmentReport.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GenerateAssessmentReport_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.GenerateAssessmentReportRequest; +import com.google.cloud.designcenter.v1.SpaceName; +import com.google.longrunning.Operation; +import com.google.protobuf.ByteString; +import java.util.ArrayList; + +public class AsyncGenerateAssessmentReport { + + public static void main(String[] args) throws Exception { + asyncGenerateAssessmentReport(); + } + + public static void asyncGenerateAssessmentReport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + GenerateAssessmentReportRequest request = + GenerateAssessmentReportRequest.newBuilder() + .setTerraformPlan(ByteString.EMPTY) + .addAllAdditionalFrameworks(new ArrayList()) + .setSpaceName(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString()) + .build(); + ApiFuture future = + designCenterClient.generateAssessmentReportCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GenerateAssessmentReport_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateassessmentreport/AsyncGenerateAssessmentReportLRO.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateassessmentreport/AsyncGenerateAssessmentReportLRO.java new file mode 100644 index 000000000000..017d115e4de0 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateassessmentreport/AsyncGenerateAssessmentReportLRO.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GenerateAssessmentReport_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.GenerateAssessmentReportRequest; +import com.google.cloud.designcenter.v1.GenerateAssessmentReportResponse; +import com.google.cloud.designcenter.v1.OperationMetadata; +import com.google.cloud.designcenter.v1.SpaceName; +import com.google.protobuf.ByteString; +import java.util.ArrayList; + +public class AsyncGenerateAssessmentReportLRO { + + public static void main(String[] args) throws Exception { + asyncGenerateAssessmentReportLRO(); + } + + public static void asyncGenerateAssessmentReportLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + GenerateAssessmentReportRequest request = + GenerateAssessmentReportRequest.newBuilder() + .setTerraformPlan(ByteString.EMPTY) + .addAllAdditionalFrameworks(new ArrayList()) + .setSpaceName(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString()) + .build(); + OperationFuture future = + designCenterClient.generateAssessmentReportOperationCallable().futureCall(request); + // Do something. + GenerateAssessmentReportResponse response = future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GenerateAssessmentReport_LRO_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateassessmentreport/SyncGenerateAssessmentReport.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateassessmentreport/SyncGenerateAssessmentReport.java new file mode 100644 index 000000000000..844748d4857a --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateassessmentreport/SyncGenerateAssessmentReport.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GenerateAssessmentReport_sync] +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.GenerateAssessmentReportRequest; +import com.google.cloud.designcenter.v1.GenerateAssessmentReportResponse; +import com.google.cloud.designcenter.v1.SpaceName; +import com.google.protobuf.ByteString; +import java.util.ArrayList; + +public class SyncGenerateAssessmentReport { + + public static void main(String[] args) throws Exception { + syncGenerateAssessmentReport(); + } + + public static void syncGenerateAssessmentReport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + GenerateAssessmentReportRequest request = + GenerateAssessmentReportRequest.newBuilder() + .setTerraformPlan(ByteString.EMPTY) + .addAllAdditionalFrameworks(new ArrayList()) + .setSpaceName(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString()) + .build(); + GenerateAssessmentReportResponse response = + designCenterClient.generateAssessmentReportAsync(request).get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GenerateAssessmentReport_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateassessmentreport/SyncGenerateAssessmentReportSpacename.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateassessmentreport/SyncGenerateAssessmentReportSpacename.java new file mode 100644 index 000000000000..a40aad5a032c --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateassessmentreport/SyncGenerateAssessmentReportSpacename.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GenerateAssessmentReport_Spacename_sync] +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.GenerateAssessmentReportResponse; +import com.google.cloud.designcenter.v1.SpaceName; + +public class SyncGenerateAssessmentReportSpacename { + + public static void main(String[] args) throws Exception { + syncGenerateAssessmentReportSpacename(); + } + + public static void syncGenerateAssessmentReportSpacename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + SpaceName spaceName = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]"); + GenerateAssessmentReportResponse response = + designCenterClient.generateAssessmentReportAsync(spaceName).get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GenerateAssessmentReport_Spacename_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateassessmentreport/SyncGenerateAssessmentReportString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateassessmentreport/SyncGenerateAssessmentReportString.java new file mode 100644 index 000000000000..49d008b60271 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateassessmentreport/SyncGenerateAssessmentReportString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GenerateAssessmentReport_String_sync] +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.GenerateAssessmentReportResponse; +import com.google.cloud.designcenter.v1.SpaceName; + +public class SyncGenerateAssessmentReportString { + + public static void main(String[] args) throws Exception { + syncGenerateAssessmentReportString(); + } + + public static void syncGenerateAssessmentReportString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + String spaceName = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString(); + GenerateAssessmentReportResponse response = + designCenterClient.generateAssessmentReportAsync(spaceName).get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GenerateAssessmentReport_String_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateterraformplanassessmentreport/AsyncGenerateTerraformPlanAssessmentReport.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateterraformplanassessmentreport/AsyncGenerateTerraformPlanAssessmentReport.java new file mode 100644 index 000000000000..7b0678b1b304 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateterraformplanassessmentreport/AsyncGenerateTerraformPlanAssessmentReport.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GenerateTerraformPlanAssessmentReport_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportRequest; +import com.google.cloud.designcenter.v1.SpaceName; +import com.google.longrunning.Operation; +import com.google.protobuf.ByteString; +import java.util.ArrayList; + +public class AsyncGenerateTerraformPlanAssessmentReport { + + public static void main(String[] args) throws Exception { + asyncGenerateTerraformPlanAssessmentReport(); + } + + public static void asyncGenerateTerraformPlanAssessmentReport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + GenerateTerraformPlanAssessmentReportRequest request = + GenerateTerraformPlanAssessmentReportRequest.newBuilder() + .setName(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString()) + .setTerraformPlan(ByteString.EMPTY) + .addAllAdditionalFrameworks(new ArrayList()) + .build(); + ApiFuture future = + designCenterClient.generateTerraformPlanAssessmentReportCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GenerateTerraformPlanAssessmentReport_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateterraformplanassessmentreport/AsyncGenerateTerraformPlanAssessmentReportLRO.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateterraformplanassessmentreport/AsyncGenerateTerraformPlanAssessmentReportLRO.java new file mode 100644 index 000000000000..6e31b747cf66 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateterraformplanassessmentreport/AsyncGenerateTerraformPlanAssessmentReportLRO.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GenerateTerraformPlanAssessmentReport_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportRequest; +import com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportResponse; +import com.google.cloud.designcenter.v1.OperationMetadata; +import com.google.cloud.designcenter.v1.SpaceName; +import com.google.protobuf.ByteString; +import java.util.ArrayList; + +public class AsyncGenerateTerraformPlanAssessmentReportLRO { + + public static void main(String[] args) throws Exception { + asyncGenerateTerraformPlanAssessmentReportLRO(); + } + + public static void asyncGenerateTerraformPlanAssessmentReportLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + GenerateTerraformPlanAssessmentReportRequest request = + GenerateTerraformPlanAssessmentReportRequest.newBuilder() + .setName(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString()) + .setTerraformPlan(ByteString.EMPTY) + .addAllAdditionalFrameworks(new ArrayList()) + .build(); + OperationFuture future = + designCenterClient + .generateTerraformPlanAssessmentReportOperationCallable() + .futureCall(request); + // Do something. + GenerateTerraformPlanAssessmentReportResponse response = future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GenerateTerraformPlanAssessmentReport_LRO_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateterraformplanassessmentreport/SyncGenerateTerraformPlanAssessmentReport.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateterraformplanassessmentreport/SyncGenerateTerraformPlanAssessmentReport.java new file mode 100644 index 000000000000..b4ab8c6e7f5b --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateterraformplanassessmentreport/SyncGenerateTerraformPlanAssessmentReport.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GenerateTerraformPlanAssessmentReport_sync] +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportRequest; +import com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportResponse; +import com.google.cloud.designcenter.v1.SpaceName; +import com.google.protobuf.ByteString; +import java.util.ArrayList; + +public class SyncGenerateTerraformPlanAssessmentReport { + + public static void main(String[] args) throws Exception { + syncGenerateTerraformPlanAssessmentReport(); + } + + public static void syncGenerateTerraformPlanAssessmentReport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + GenerateTerraformPlanAssessmentReportRequest request = + GenerateTerraformPlanAssessmentReportRequest.newBuilder() + .setName(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString()) + .setTerraformPlan(ByteString.EMPTY) + .addAllAdditionalFrameworks(new ArrayList()) + .build(); + GenerateTerraformPlanAssessmentReportResponse response = + designCenterClient.generateTerraformPlanAssessmentReportAsync(request).get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GenerateTerraformPlanAssessmentReport_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateterraformplanassessmentreport/SyncGenerateTerraformPlanAssessmentReportSpacenameBytestring.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateterraformplanassessmentreport/SyncGenerateTerraformPlanAssessmentReportSpacenameBytestring.java new file mode 100644 index 000000000000..a31dec966932 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateterraformplanassessmentreport/SyncGenerateTerraformPlanAssessmentReportSpacenameBytestring.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GenerateTerraformPlanAssessmentReport_SpacenameBytestring_sync] +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportResponse; +import com.google.cloud.designcenter.v1.SpaceName; +import com.google.protobuf.ByteString; + +public class SyncGenerateTerraformPlanAssessmentReportSpacenameBytestring { + + public static void main(String[] args) throws Exception { + syncGenerateTerraformPlanAssessmentReportSpacenameBytestring(); + } + + public static void syncGenerateTerraformPlanAssessmentReportSpacenameBytestring() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + SpaceName name = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]"); + ByteString terraformPlan = ByteString.EMPTY; + GenerateTerraformPlanAssessmentReportResponse response = + designCenterClient.generateTerraformPlanAssessmentReportAsync(name, terraformPlan).get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GenerateTerraformPlanAssessmentReport_SpacenameBytestring_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateterraformplanassessmentreport/SyncGenerateTerraformPlanAssessmentReportStringBytestring.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateterraformplanassessmentreport/SyncGenerateTerraformPlanAssessmentReportStringBytestring.java new file mode 100644 index 000000000000..f93dafce334f --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/generateterraformplanassessmentreport/SyncGenerateTerraformPlanAssessmentReportStringBytestring.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GenerateTerraformPlanAssessmentReport_StringBytestring_sync] +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.GenerateTerraformPlanAssessmentReportResponse; +import com.google.cloud.designcenter.v1.SpaceName; +import com.google.protobuf.ByteString; + +public class SyncGenerateTerraformPlanAssessmentReportStringBytestring { + + public static void main(String[] args) throws Exception { + syncGenerateTerraformPlanAssessmentReportStringBytestring(); + } + + public static void syncGenerateTerraformPlanAssessmentReportStringBytestring() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + String name = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString(); + ByteString terraformPlan = ByteString.EMPTY; + GenerateTerraformPlanAssessmentReportResponse response = + designCenterClient.generateTerraformPlanAssessmentReportAsync(name, terraformPlan).get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GenerateTerraformPlanAssessmentReport_StringBytestring_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getapplication/AsyncGetApplication.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getapplication/AsyncGetApplication.java new file mode 100644 index 000000000000..235dc2c0a2c7 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getapplication/AsyncGetApplication.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GetApplication_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.Application; +import com.google.cloud.designcenter.v1.ApplicationName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.GetApplicationRequest; + +public class AsyncGetApplication { + + public static void main(String[] args) throws Exception { + asyncGetApplication(); + } + + public static void asyncGetApplication() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + GetApplicationRequest request = + GetApplicationRequest.newBuilder() + .setName( + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]") + .toString()) + .build(); + ApiFuture future = + designCenterClient.getApplicationCallable().futureCall(request); + // Do something. + Application response = future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GetApplication_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getapplication/SyncGetApplication.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getapplication/SyncGetApplication.java new file mode 100644 index 000000000000..cd0670d083d7 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getapplication/SyncGetApplication.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GetApplication_sync] +import com.google.cloud.designcenter.v1.Application; +import com.google.cloud.designcenter.v1.ApplicationName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.GetApplicationRequest; + +public class SyncGetApplication { + + public static void main(String[] args) throws Exception { + syncGetApplication(); + } + + public static void syncGetApplication() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + GetApplicationRequest request = + GetApplicationRequest.newBuilder() + .setName( + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]") + .toString()) + .build(); + Application response = designCenterClient.getApplication(request); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GetApplication_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getapplication/SyncGetApplicationApplicationname.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getapplication/SyncGetApplicationApplicationname.java new file mode 100644 index 000000000000..b75dfb84ff76 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getapplication/SyncGetApplicationApplicationname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GetApplication_Applicationname_sync] +import com.google.cloud.designcenter.v1.Application; +import com.google.cloud.designcenter.v1.ApplicationName; +import com.google.cloud.designcenter.v1.DesignCenterClient; + +public class SyncGetApplicationApplicationname { + + public static void main(String[] args) throws Exception { + syncGetApplicationApplicationname(); + } + + public static void syncGetApplicationApplicationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ApplicationName name = + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]"); + Application response = designCenterClient.getApplication(name); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GetApplication_Applicationname_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getapplication/SyncGetApplicationString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getapplication/SyncGetApplicationString.java new file mode 100644 index 000000000000..0fe8b3367011 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getapplication/SyncGetApplicationString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GetApplication_String_sync] +import com.google.cloud.designcenter.v1.Application; +import com.google.cloud.designcenter.v1.ApplicationName; +import com.google.cloud.designcenter.v1.DesignCenterClient; + +public class SyncGetApplicationString { + + public static void main(String[] args) throws Exception { + syncGetApplicationString(); + } + + public static void syncGetApplicationString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + String name = + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]").toString(); + Application response = designCenterClient.getApplication(name); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GetApplication_String_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getapplicationtemplate/AsyncGetApplicationTemplate.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getapplicationtemplate/AsyncGetApplicationTemplate.java new file mode 100644 index 000000000000..09acbb2b84ab --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getapplicationtemplate/AsyncGetApplicationTemplate.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GetApplicationTemplate_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.ApplicationTemplate; +import com.google.cloud.designcenter.v1.ApplicationTemplateName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.GetApplicationTemplateRequest; + +public class AsyncGetApplicationTemplate { + + public static void main(String[] args) throws Exception { + asyncGetApplicationTemplate(); + } + + public static void asyncGetApplicationTemplate() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + GetApplicationTemplateRequest request = + GetApplicationTemplateRequest.newBuilder() + .setName( + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString()) + .build(); + ApiFuture future = + designCenterClient.getApplicationTemplateCallable().futureCall(request); + // Do something. + ApplicationTemplate response = future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GetApplicationTemplate_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getapplicationtemplate/SyncGetApplicationTemplate.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getapplicationtemplate/SyncGetApplicationTemplate.java new file mode 100644 index 000000000000..e868669d1fae --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getapplicationtemplate/SyncGetApplicationTemplate.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GetApplicationTemplate_sync] +import com.google.cloud.designcenter.v1.ApplicationTemplate; +import com.google.cloud.designcenter.v1.ApplicationTemplateName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.GetApplicationTemplateRequest; + +public class SyncGetApplicationTemplate { + + public static void main(String[] args) throws Exception { + syncGetApplicationTemplate(); + } + + public static void syncGetApplicationTemplate() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + GetApplicationTemplateRequest request = + GetApplicationTemplateRequest.newBuilder() + .setName( + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString()) + .build(); + ApplicationTemplate response = designCenterClient.getApplicationTemplate(request); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GetApplicationTemplate_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getapplicationtemplate/SyncGetApplicationTemplateApplicationtemplatename.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getapplicationtemplate/SyncGetApplicationTemplateApplicationtemplatename.java new file mode 100644 index 000000000000..84c1e4638501 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getapplicationtemplate/SyncGetApplicationTemplateApplicationtemplatename.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GetApplicationTemplate_Applicationtemplatename_sync] +import com.google.cloud.designcenter.v1.ApplicationTemplate; +import com.google.cloud.designcenter.v1.ApplicationTemplateName; +import com.google.cloud.designcenter.v1.DesignCenterClient; + +public class SyncGetApplicationTemplateApplicationtemplatename { + + public static void main(String[] args) throws Exception { + syncGetApplicationTemplateApplicationtemplatename(); + } + + public static void syncGetApplicationTemplateApplicationtemplatename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ApplicationTemplateName name = + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + ApplicationTemplate response = designCenterClient.getApplicationTemplate(name); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GetApplicationTemplate_Applicationtemplatename_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getapplicationtemplate/SyncGetApplicationTemplateString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getapplicationtemplate/SyncGetApplicationTemplateString.java new file mode 100644 index 000000000000..788f544fbd56 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getapplicationtemplate/SyncGetApplicationTemplateString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GetApplicationTemplate_String_sync] +import com.google.cloud.designcenter.v1.ApplicationTemplate; +import com.google.cloud.designcenter.v1.ApplicationTemplateName; +import com.google.cloud.designcenter.v1.DesignCenterClient; + +public class SyncGetApplicationTemplateString { + + public static void main(String[] args) throws Exception { + syncGetApplicationTemplateString(); + } + + public static void syncGetApplicationTemplateString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + String name = + ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString(); + ApplicationTemplate response = designCenterClient.getApplicationTemplate(name); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GetApplicationTemplate_String_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getapplicationtemplaterevision/AsyncGetApplicationTemplateRevision.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getapplicationtemplaterevision/AsyncGetApplicationTemplateRevision.java new file mode 100644 index 000000000000..e506ab585347 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getapplicationtemplaterevision/AsyncGetApplicationTemplateRevision.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GetApplicationTemplateRevision_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.ApplicationTemplateRevision; +import com.google.cloud.designcenter.v1.ApplicationTemplateRevisionName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.GetApplicationTemplateRevisionRequest; + +public class AsyncGetApplicationTemplateRevision { + + public static void main(String[] args) throws Exception { + asyncGetApplicationTemplateRevision(); + } + + public static void asyncGetApplicationTemplateRevision() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + GetApplicationTemplateRevisionRequest request = + GetApplicationTemplateRevisionRequest.newBuilder() + .setName( + ApplicationTemplateRevisionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[REVISION]") + .toString()) + .build(); + ApiFuture future = + designCenterClient.getApplicationTemplateRevisionCallable().futureCall(request); + // Do something. + ApplicationTemplateRevision response = future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GetApplicationTemplateRevision_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getapplicationtemplaterevision/SyncGetApplicationTemplateRevision.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getapplicationtemplaterevision/SyncGetApplicationTemplateRevision.java new file mode 100644 index 000000000000..5223b363b2d4 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getapplicationtemplaterevision/SyncGetApplicationTemplateRevision.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GetApplicationTemplateRevision_sync] +import com.google.cloud.designcenter.v1.ApplicationTemplateRevision; +import com.google.cloud.designcenter.v1.ApplicationTemplateRevisionName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.GetApplicationTemplateRevisionRequest; + +public class SyncGetApplicationTemplateRevision { + + public static void main(String[] args) throws Exception { + syncGetApplicationTemplateRevision(); + } + + public static void syncGetApplicationTemplateRevision() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + GetApplicationTemplateRevisionRequest request = + GetApplicationTemplateRevisionRequest.newBuilder() + .setName( + ApplicationTemplateRevisionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[REVISION]") + .toString()) + .build(); + ApplicationTemplateRevision response = + designCenterClient.getApplicationTemplateRevision(request); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GetApplicationTemplateRevision_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getapplicationtemplaterevision/SyncGetApplicationTemplateRevisionApplicationtemplaterevisionname.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getapplicationtemplaterevision/SyncGetApplicationTemplateRevisionApplicationtemplaterevisionname.java new file mode 100644 index 000000000000..15cde9d4ea72 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getapplicationtemplaterevision/SyncGetApplicationTemplateRevisionApplicationtemplaterevisionname.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GetApplicationTemplateRevision_Applicationtemplaterevisionname_sync] +import com.google.cloud.designcenter.v1.ApplicationTemplateRevision; +import com.google.cloud.designcenter.v1.ApplicationTemplateRevisionName; +import com.google.cloud.designcenter.v1.DesignCenterClient; + +public class SyncGetApplicationTemplateRevisionApplicationtemplaterevisionname { + + public static void main(String[] args) throws Exception { + syncGetApplicationTemplateRevisionApplicationtemplaterevisionname(); + } + + public static void syncGetApplicationTemplateRevisionApplicationtemplaterevisionname() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ApplicationTemplateRevisionName name = + ApplicationTemplateRevisionName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[REVISION]"); + ApplicationTemplateRevision response = + designCenterClient.getApplicationTemplateRevision(name); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GetApplicationTemplateRevision_Applicationtemplaterevisionname_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getapplicationtemplaterevision/SyncGetApplicationTemplateRevisionString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getapplicationtemplaterevision/SyncGetApplicationTemplateRevisionString.java new file mode 100644 index 000000000000..8628d9ef7b69 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getapplicationtemplaterevision/SyncGetApplicationTemplateRevisionString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GetApplicationTemplateRevision_String_sync] +import com.google.cloud.designcenter.v1.ApplicationTemplateRevision; +import com.google.cloud.designcenter.v1.ApplicationTemplateRevisionName; +import com.google.cloud.designcenter.v1.DesignCenterClient; + +public class SyncGetApplicationTemplateRevisionString { + + public static void main(String[] args) throws Exception { + syncGetApplicationTemplateRevisionString(); + } + + public static void syncGetApplicationTemplateRevisionString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + String name = + ApplicationTemplateRevisionName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[REVISION]") + .toString(); + ApplicationTemplateRevision response = + designCenterClient.getApplicationTemplateRevision(name); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GetApplicationTemplateRevision_String_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getapplicationtemplatesystemrevision/AsyncGetApplicationTemplateSystemRevision.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getapplicationtemplatesystemrevision/AsyncGetApplicationTemplateSystemRevision.java new file mode 100644 index 000000000000..384418756ee6 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getapplicationtemplatesystemrevision/AsyncGetApplicationTemplateSystemRevision.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GetApplicationTemplateSystemRevision_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision; +import com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevisionName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.GetApplicationTemplateSystemRevisionRequest; + +public class AsyncGetApplicationTemplateSystemRevision { + + public static void main(String[] args) throws Exception { + asyncGetApplicationTemplateSystemRevision(); + } + + public static void asyncGetApplicationTemplateSystemRevision() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + GetApplicationTemplateSystemRevisionRequest request = + GetApplicationTemplateSystemRevisionRequest.newBuilder() + .setName( + ApplicationTemplateSystemRevisionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[SYSTEM_REVISION]") + .toString()) + .build(); + ApiFuture future = + designCenterClient.getApplicationTemplateSystemRevisionCallable().futureCall(request); + // Do something. + ApplicationTemplateSystemRevision response = future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GetApplicationTemplateSystemRevision_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getapplicationtemplatesystemrevision/SyncGetApplicationTemplateSystemRevision.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getapplicationtemplatesystemrevision/SyncGetApplicationTemplateSystemRevision.java new file mode 100644 index 000000000000..75e4865c7ea5 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getapplicationtemplatesystemrevision/SyncGetApplicationTemplateSystemRevision.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GetApplicationTemplateSystemRevision_sync] +import com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision; +import com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevisionName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.GetApplicationTemplateSystemRevisionRequest; + +public class SyncGetApplicationTemplateSystemRevision { + + public static void main(String[] args) throws Exception { + syncGetApplicationTemplateSystemRevision(); + } + + public static void syncGetApplicationTemplateSystemRevision() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + GetApplicationTemplateSystemRevisionRequest request = + GetApplicationTemplateSystemRevisionRequest.newBuilder() + .setName( + ApplicationTemplateSystemRevisionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[SYSTEM_REVISION]") + .toString()) + .build(); + ApplicationTemplateSystemRevision response = + designCenterClient.getApplicationTemplateSystemRevision(request); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GetApplicationTemplateSystemRevision_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getapplicationtemplatesystemrevision/SyncGetApplicationTemplateSystemRevisionApplicationtemplatesystemrevisionname.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getapplicationtemplatesystemrevision/SyncGetApplicationTemplateSystemRevisionApplicationtemplatesystemrevisionname.java new file mode 100644 index 000000000000..a7c51914770f --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getapplicationtemplatesystemrevision/SyncGetApplicationTemplateSystemRevisionApplicationtemplatesystemrevisionname.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GetApplicationTemplateSystemRevision_Applicationtemplatesystemrevisionname_sync] +import com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision; +import com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevisionName; +import com.google.cloud.designcenter.v1.DesignCenterClient; + +public class SyncGetApplicationTemplateSystemRevisionApplicationtemplatesystemrevisionname { + + public static void main(String[] args) throws Exception { + syncGetApplicationTemplateSystemRevisionApplicationtemplatesystemrevisionname(); + } + + public static void syncGetApplicationTemplateSystemRevisionApplicationtemplatesystemrevisionname() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ApplicationTemplateSystemRevisionName name = + ApplicationTemplateSystemRevisionName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[SYSTEM_REVISION]"); + ApplicationTemplateSystemRevision response = + designCenterClient.getApplicationTemplateSystemRevision(name); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GetApplicationTemplateSystemRevision_Applicationtemplatesystemrevisionname_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getapplicationtemplatesystemrevision/SyncGetApplicationTemplateSystemRevisionString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getapplicationtemplatesystemrevision/SyncGetApplicationTemplateSystemRevisionString.java new file mode 100644 index 000000000000..016e96162911 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getapplicationtemplatesystemrevision/SyncGetApplicationTemplateSystemRevisionString.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GetApplicationTemplateSystemRevision_String_sync] +import com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision; +import com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevisionName; +import com.google.cloud.designcenter.v1.DesignCenterClient; + +public class SyncGetApplicationTemplateSystemRevisionString { + + public static void main(String[] args) throws Exception { + syncGetApplicationTemplateSystemRevisionString(); + } + + public static void syncGetApplicationTemplateSystemRevisionString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + String name = + ApplicationTemplateSystemRevisionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[SYSTEM_REVISION]") + .toString(); + ApplicationTemplateSystemRevision response = + designCenterClient.getApplicationTemplateSystemRevision(name); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GetApplicationTemplateSystemRevision_String_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getcatalog/AsyncGetCatalog.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getcatalog/AsyncGetCatalog.java new file mode 100644 index 000000000000..ae4b4472f4bf --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getcatalog/AsyncGetCatalog.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GetCatalog_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.Catalog; +import com.google.cloud.designcenter.v1.CatalogName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.GetCatalogRequest; + +public class AsyncGetCatalog { + + public static void main(String[] args) throws Exception { + asyncGetCatalog(); + } + + public static void asyncGetCatalog() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + GetCatalogRequest request = + GetCatalogRequest.newBuilder() + .setName(CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]").toString()) + .build(); + ApiFuture future = designCenterClient.getCatalogCallable().futureCall(request); + // Do something. + Catalog response = future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GetCatalog_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getcatalog/SyncGetCatalog.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getcatalog/SyncGetCatalog.java new file mode 100644 index 000000000000..385e7f92e97b --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getcatalog/SyncGetCatalog.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GetCatalog_sync] +import com.google.cloud.designcenter.v1.Catalog; +import com.google.cloud.designcenter.v1.CatalogName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.GetCatalogRequest; + +public class SyncGetCatalog { + + public static void main(String[] args) throws Exception { + syncGetCatalog(); + } + + public static void syncGetCatalog() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + GetCatalogRequest request = + GetCatalogRequest.newBuilder() + .setName(CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]").toString()) + .build(); + Catalog response = designCenterClient.getCatalog(request); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GetCatalog_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getcatalog/SyncGetCatalogCatalogname.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getcatalog/SyncGetCatalogCatalogname.java new file mode 100644 index 000000000000..6604299f143d --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getcatalog/SyncGetCatalogCatalogname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GetCatalog_Catalogname_sync] +import com.google.cloud.designcenter.v1.Catalog; +import com.google.cloud.designcenter.v1.CatalogName; +import com.google.cloud.designcenter.v1.DesignCenterClient; + +public class SyncGetCatalogCatalogname { + + public static void main(String[] args) throws Exception { + syncGetCatalogCatalogname(); + } + + public static void syncGetCatalogCatalogname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + CatalogName name = CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]"); + Catalog response = designCenterClient.getCatalog(name); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GetCatalog_Catalogname_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getcatalog/SyncGetCatalogString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getcatalog/SyncGetCatalogString.java new file mode 100644 index 000000000000..c771b645a3ef --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getcatalog/SyncGetCatalogString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GetCatalog_String_sync] +import com.google.cloud.designcenter.v1.Catalog; +import com.google.cloud.designcenter.v1.CatalogName; +import com.google.cloud.designcenter.v1.DesignCenterClient; + +public class SyncGetCatalogString { + + public static void main(String[] args) throws Exception { + syncGetCatalogString(); + } + + public static void syncGetCatalogString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + String name = CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]").toString(); + Catalog response = designCenterClient.getCatalog(name); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GetCatalog_String_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getcatalogtemplate/AsyncGetCatalogTemplate.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getcatalogtemplate/AsyncGetCatalogTemplate.java new file mode 100644 index 000000000000..6e1b88c94d78 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getcatalogtemplate/AsyncGetCatalogTemplate.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GetCatalogTemplate_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.CatalogTemplate; +import com.google.cloud.designcenter.v1.CatalogTemplateName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.GetCatalogTemplateRequest; + +public class AsyncGetCatalogTemplate { + + public static void main(String[] args) throws Exception { + asyncGetCatalogTemplate(); + } + + public static void asyncGetCatalogTemplate() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + GetCatalogTemplateRequest request = + GetCatalogTemplateRequest.newBuilder() + .setName( + CatalogTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]") + .toString()) + .build(); + ApiFuture future = + designCenterClient.getCatalogTemplateCallable().futureCall(request); + // Do something. + CatalogTemplate response = future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GetCatalogTemplate_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getcatalogtemplate/SyncGetCatalogTemplate.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getcatalogtemplate/SyncGetCatalogTemplate.java new file mode 100644 index 000000000000..3604bc06e91e --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getcatalogtemplate/SyncGetCatalogTemplate.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GetCatalogTemplate_sync] +import com.google.cloud.designcenter.v1.CatalogTemplate; +import com.google.cloud.designcenter.v1.CatalogTemplateName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.GetCatalogTemplateRequest; + +public class SyncGetCatalogTemplate { + + public static void main(String[] args) throws Exception { + syncGetCatalogTemplate(); + } + + public static void syncGetCatalogTemplate() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + GetCatalogTemplateRequest request = + GetCatalogTemplateRequest.newBuilder() + .setName( + CatalogTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]") + .toString()) + .build(); + CatalogTemplate response = designCenterClient.getCatalogTemplate(request); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GetCatalogTemplate_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getcatalogtemplate/SyncGetCatalogTemplateCatalogtemplatename.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getcatalogtemplate/SyncGetCatalogTemplateCatalogtemplatename.java new file mode 100644 index 000000000000..428f8a940c73 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getcatalogtemplate/SyncGetCatalogTemplateCatalogtemplatename.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GetCatalogTemplate_Catalogtemplatename_sync] +import com.google.cloud.designcenter.v1.CatalogTemplate; +import com.google.cloud.designcenter.v1.CatalogTemplateName; +import com.google.cloud.designcenter.v1.DesignCenterClient; + +public class SyncGetCatalogTemplateCatalogtemplatename { + + public static void main(String[] args) throws Exception { + syncGetCatalogTemplateCatalogtemplatename(); + } + + public static void syncGetCatalogTemplateCatalogtemplatename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + CatalogTemplateName name = + CatalogTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]"); + CatalogTemplate response = designCenterClient.getCatalogTemplate(name); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GetCatalogTemplate_Catalogtemplatename_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getcatalogtemplate/SyncGetCatalogTemplateString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getcatalogtemplate/SyncGetCatalogTemplateString.java new file mode 100644 index 000000000000..0bfa07088132 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getcatalogtemplate/SyncGetCatalogTemplateString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GetCatalogTemplate_String_sync] +import com.google.cloud.designcenter.v1.CatalogTemplate; +import com.google.cloud.designcenter.v1.CatalogTemplateName; +import com.google.cloud.designcenter.v1.DesignCenterClient; + +public class SyncGetCatalogTemplateString { + + public static void main(String[] args) throws Exception { + syncGetCatalogTemplateString(); + } + + public static void syncGetCatalogTemplateString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + String name = + CatalogTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]") + .toString(); + CatalogTemplate response = designCenterClient.getCatalogTemplate(name); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GetCatalogTemplate_String_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getcatalogtemplaterevision/AsyncGetCatalogTemplateRevision.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getcatalogtemplaterevision/AsyncGetCatalogTemplateRevision.java new file mode 100644 index 000000000000..51860b1fd12b --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getcatalogtemplaterevision/AsyncGetCatalogTemplateRevision.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GetCatalogTemplateRevision_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.CatalogTemplateRevision; +import com.google.cloud.designcenter.v1.CatalogTemplateRevisionName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.GetCatalogTemplateRevisionRequest; + +public class AsyncGetCatalogTemplateRevision { + + public static void main(String[] args) throws Exception { + asyncGetCatalogTemplateRevision(); + } + + public static void asyncGetCatalogTemplateRevision() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + GetCatalogTemplateRevisionRequest request = + GetCatalogTemplateRevisionRequest.newBuilder() + .setName( + CatalogTemplateRevisionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[CATALOG]", + "[CATALOG_TEMPLATE]", + "[REVISION]") + .toString()) + .build(); + ApiFuture future = + designCenterClient.getCatalogTemplateRevisionCallable().futureCall(request); + // Do something. + CatalogTemplateRevision response = future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GetCatalogTemplateRevision_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getcatalogtemplaterevision/SyncGetCatalogTemplateRevision.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getcatalogtemplaterevision/SyncGetCatalogTemplateRevision.java new file mode 100644 index 000000000000..0b5e78303469 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getcatalogtemplaterevision/SyncGetCatalogTemplateRevision.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GetCatalogTemplateRevision_sync] +import com.google.cloud.designcenter.v1.CatalogTemplateRevision; +import com.google.cloud.designcenter.v1.CatalogTemplateRevisionName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.GetCatalogTemplateRevisionRequest; + +public class SyncGetCatalogTemplateRevision { + + public static void main(String[] args) throws Exception { + syncGetCatalogTemplateRevision(); + } + + public static void syncGetCatalogTemplateRevision() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + GetCatalogTemplateRevisionRequest request = + GetCatalogTemplateRevisionRequest.newBuilder() + .setName( + CatalogTemplateRevisionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[CATALOG]", + "[CATALOG_TEMPLATE]", + "[REVISION]") + .toString()) + .build(); + CatalogTemplateRevision response = designCenterClient.getCatalogTemplateRevision(request); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GetCatalogTemplateRevision_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getcatalogtemplaterevision/SyncGetCatalogTemplateRevisionCatalogtemplaterevisionname.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getcatalogtemplaterevision/SyncGetCatalogTemplateRevisionCatalogtemplaterevisionname.java new file mode 100644 index 000000000000..5fc195d87e39 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getcatalogtemplaterevision/SyncGetCatalogTemplateRevisionCatalogtemplaterevisionname.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GetCatalogTemplateRevision_Catalogtemplaterevisionname_sync] +import com.google.cloud.designcenter.v1.CatalogTemplateRevision; +import com.google.cloud.designcenter.v1.CatalogTemplateRevisionName; +import com.google.cloud.designcenter.v1.DesignCenterClient; + +public class SyncGetCatalogTemplateRevisionCatalogtemplaterevisionname { + + public static void main(String[] args) throws Exception { + syncGetCatalogTemplateRevisionCatalogtemplaterevisionname(); + } + + public static void syncGetCatalogTemplateRevisionCatalogtemplaterevisionname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + CatalogTemplateRevisionName name = + CatalogTemplateRevisionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[CATALOG]", + "[CATALOG_TEMPLATE]", + "[REVISION]"); + CatalogTemplateRevision response = designCenterClient.getCatalogTemplateRevision(name); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GetCatalogTemplateRevision_Catalogtemplaterevisionname_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getcatalogtemplaterevision/SyncGetCatalogTemplateRevisionString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getcatalogtemplaterevision/SyncGetCatalogTemplateRevisionString.java new file mode 100644 index 000000000000..d73f0b24858c --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getcatalogtemplaterevision/SyncGetCatalogTemplateRevisionString.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GetCatalogTemplateRevision_String_sync] +import com.google.cloud.designcenter.v1.CatalogTemplateRevision; +import com.google.cloud.designcenter.v1.CatalogTemplateRevisionName; +import com.google.cloud.designcenter.v1.DesignCenterClient; + +public class SyncGetCatalogTemplateRevisionString { + + public static void main(String[] args) throws Exception { + syncGetCatalogTemplateRevisionString(); + } + + public static void syncGetCatalogTemplateRevisionString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + String name = + CatalogTemplateRevisionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[CATALOG]", + "[CATALOG_TEMPLATE]", + "[REVISION]") + .toString(); + CatalogTemplateRevision response = designCenterClient.getCatalogTemplateRevision(name); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GetCatalogTemplateRevision_String_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getcomponent/AsyncGetComponent.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getcomponent/AsyncGetComponent.java new file mode 100644 index 000000000000..9de26746f1d2 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getcomponent/AsyncGetComponent.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GetComponent_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.Component; +import com.google.cloud.designcenter.v1.ComponentName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.GetComponentRequest; + +public class AsyncGetComponent { + + public static void main(String[] args) throws Exception { + asyncGetComponent(); + } + + public static void asyncGetComponent() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + GetComponentRequest request = + GetComponentRequest.newBuilder() + .setName( + ComponentName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[COMPONENT]") + .toString()) + .build(); + ApiFuture future = designCenterClient.getComponentCallable().futureCall(request); + // Do something. + Component response = future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GetComponent_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getcomponent/SyncGetComponent.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getcomponent/SyncGetComponent.java new file mode 100644 index 000000000000..ac573cb3b01e --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getcomponent/SyncGetComponent.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GetComponent_sync] +import com.google.cloud.designcenter.v1.Component; +import com.google.cloud.designcenter.v1.ComponentName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.GetComponentRequest; + +public class SyncGetComponent { + + public static void main(String[] args) throws Exception { + syncGetComponent(); + } + + public static void syncGetComponent() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + GetComponentRequest request = + GetComponentRequest.newBuilder() + .setName( + ComponentName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[COMPONENT]") + .toString()) + .build(); + Component response = designCenterClient.getComponent(request); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GetComponent_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getcomponent/SyncGetComponentComponentname.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getcomponent/SyncGetComponentComponentname.java new file mode 100644 index 000000000000..8b7fedaee3c3 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getcomponent/SyncGetComponentComponentname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GetComponent_Componentname_sync] +import com.google.cloud.designcenter.v1.Component; +import com.google.cloud.designcenter.v1.ComponentName; +import com.google.cloud.designcenter.v1.DesignCenterClient; + +public class SyncGetComponentComponentname { + + public static void main(String[] args) throws Exception { + syncGetComponentComponentname(); + } + + public static void syncGetComponentComponentname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ComponentName name = + ComponentName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[COMPONENT]"); + Component response = designCenterClient.getComponent(name); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GetComponent_Componentname_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getcomponent/SyncGetComponentString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getcomponent/SyncGetComponentString.java new file mode 100644 index 000000000000..7de70da443d4 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getcomponent/SyncGetComponentString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GetComponent_String_sync] +import com.google.cloud.designcenter.v1.Component; +import com.google.cloud.designcenter.v1.ComponentName; +import com.google.cloud.designcenter.v1.DesignCenterClient; + +public class SyncGetComponentString { + + public static void main(String[] args) throws Exception { + syncGetComponentString(); + } + + public static void syncGetComponentString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + String name = + ComponentName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[COMPONENT]") + .toString(); + Component response = designCenterClient.getComponent(name); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GetComponent_String_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getconnection/AsyncGetConnection.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getconnection/AsyncGetConnection.java new file mode 100644 index 000000000000..677cfaf2f126 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getconnection/AsyncGetConnection.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GetConnection_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.Connection; +import com.google.cloud.designcenter.v1.ConnectionName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.GetConnectionRequest; + +public class AsyncGetConnection { + + public static void main(String[] args) throws Exception { + asyncGetConnection(); + } + + public static void asyncGetConnection() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + GetConnectionRequest request = + GetConnectionRequest.newBuilder() + .setName( + ConnectionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[COMPONENT]", + "[CONNECTION]") + .toString()) + .build(); + ApiFuture future = designCenterClient.getConnectionCallable().futureCall(request); + // Do something. + Connection response = future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GetConnection_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getconnection/SyncGetConnection.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getconnection/SyncGetConnection.java new file mode 100644 index 000000000000..5212e4020664 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getconnection/SyncGetConnection.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GetConnection_sync] +import com.google.cloud.designcenter.v1.Connection; +import com.google.cloud.designcenter.v1.ConnectionName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.GetConnectionRequest; + +public class SyncGetConnection { + + public static void main(String[] args) throws Exception { + syncGetConnection(); + } + + public static void syncGetConnection() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + GetConnectionRequest request = + GetConnectionRequest.newBuilder() + .setName( + ConnectionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[COMPONENT]", + "[CONNECTION]") + .toString()) + .build(); + Connection response = designCenterClient.getConnection(request); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GetConnection_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getconnection/SyncGetConnectionConnectionname.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getconnection/SyncGetConnectionConnectionname.java new file mode 100644 index 000000000000..9170cc16473a --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getconnection/SyncGetConnectionConnectionname.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GetConnection_Connectionname_sync] +import com.google.cloud.designcenter.v1.Connection; +import com.google.cloud.designcenter.v1.ConnectionName; +import com.google.cloud.designcenter.v1.DesignCenterClient; + +public class SyncGetConnectionConnectionname { + + public static void main(String[] args) throws Exception { + syncGetConnectionConnectionname(); + } + + public static void syncGetConnectionConnectionname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ConnectionName name = + ConnectionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[COMPONENT]", + "[CONNECTION]"); + Connection response = designCenterClient.getConnection(name); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GetConnection_Connectionname_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getconnection/SyncGetConnectionString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getconnection/SyncGetConnectionString.java new file mode 100644 index 000000000000..c6305ad23e5e --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getconnection/SyncGetConnectionString.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GetConnection_String_sync] +import com.google.cloud.designcenter.v1.Connection; +import com.google.cloud.designcenter.v1.ConnectionName; +import com.google.cloud.designcenter.v1.DesignCenterClient; + +public class SyncGetConnectionString { + + public static void main(String[] args) throws Exception { + syncGetConnectionString(); + } + + public static void syncGetConnectionString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + String name = + ConnectionName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[COMPONENT]", + "[CONNECTION]") + .toString(); + Connection response = designCenterClient.getConnection(name); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GetConnection_String_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getiampolicy/AsyncGetIamPolicy.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getiampolicy/AsyncGetIamPolicy.java new file mode 100644 index 000000000000..edabbf49a5c8 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getiampolicy/AsyncGetIamPolicy.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.SpaceName; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; + +public class AsyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncGetIamPolicy(); + } + + public static void asyncGetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + ApiFuture future = designCenterClient.getIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GetIamPolicy_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getiampolicy/SyncGetIamPolicy.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getiampolicy/SyncGetIamPolicy.java new file mode 100644 index 000000000000..d11a73be20bc --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getiampolicy/SyncGetIamPolicy.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GetIamPolicy_sync] +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.SpaceName; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; + +public class SyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + syncGetIamPolicy(); + } + + public static void syncGetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + Policy response = designCenterClient.getIamPolicy(request); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GetIamPolicy_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getlocation/AsyncGetLocation.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getlocation/AsyncGetLocation.java new file mode 100644 index 000000000000..3c070e477741 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getlocation/AsyncGetLocation.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GetLocation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; + +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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + ApiFuture future = designCenterClient.getLocationCallable().futureCall(request); + // Do something. + Location response = future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GetLocation_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getlocation/SyncGetLocation.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getlocation/SyncGetLocation.java new file mode 100644 index 000000000000..2a487abd6dc1 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getlocation/SyncGetLocation.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GetLocation_sync] +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; + +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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + Location response = designCenterClient.getLocation(request); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GetLocation_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getpolicy/AsyncGetPolicy.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getpolicy/AsyncGetPolicy.java new file mode 100644 index 000000000000..2bda4a8981ae --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getpolicy/AsyncGetPolicy.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GetPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.GetPolicyRequest; +import com.google.cloud.designcenter.v1.Policy; +import com.google.cloud.designcenter.v1.PolicyName; + +public class AsyncGetPolicy { + + public static void main(String[] args) throws Exception { + asyncGetPolicy(); + } + + public static void asyncGetPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + GetPolicyRequest request = + GetPolicyRequest.newBuilder() + .setName( + PolicyName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[POLICY]") + .toString()) + .build(); + ApiFuture future = designCenterClient.getPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GetPolicy_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getpolicy/SyncGetPolicy.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getpolicy/SyncGetPolicy.java new file mode 100644 index 000000000000..2a4623a2ace4 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getpolicy/SyncGetPolicy.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GetPolicy_sync] +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.GetPolicyRequest; +import com.google.cloud.designcenter.v1.Policy; +import com.google.cloud.designcenter.v1.PolicyName; + +public class SyncGetPolicy { + + public static void main(String[] args) throws Exception { + syncGetPolicy(); + } + + public static void syncGetPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + GetPolicyRequest request = + GetPolicyRequest.newBuilder() + .setName( + PolicyName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[POLICY]") + .toString()) + .build(); + Policy response = designCenterClient.getPolicy(request); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GetPolicy_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getpolicy/SyncGetPolicyPolicyname.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getpolicy/SyncGetPolicyPolicyname.java new file mode 100644 index 000000000000..760e5ba2b2a8 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getpolicy/SyncGetPolicyPolicyname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GetPolicy_Policyname_sync] +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.Policy; +import com.google.cloud.designcenter.v1.PolicyName; + +public class SyncGetPolicyPolicyname { + + public static void main(String[] args) throws Exception { + syncGetPolicyPolicyname(); + } + + public static void syncGetPolicyPolicyname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + PolicyName name = + PolicyName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[POLICY]"); + Policy response = designCenterClient.getPolicy(name); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GetPolicy_Policyname_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getpolicy/SyncGetPolicyString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getpolicy/SyncGetPolicyString.java new file mode 100644 index 000000000000..836952854cf1 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getpolicy/SyncGetPolicyString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GetPolicy_String_sync] +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.Policy; +import com.google.cloud.designcenter.v1.PolicyName; + +public class SyncGetPolicyString { + + public static void main(String[] args) throws Exception { + syncGetPolicyString(); + } + + public static void syncGetPolicyString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + String name = + PolicyName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[POLICY]") + .toString(); + Policy response = designCenterClient.getPolicy(name); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GetPolicy_String_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getshare/AsyncGetShare.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getshare/AsyncGetShare.java new file mode 100644 index 000000000000..3624df91f7de --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getshare/AsyncGetShare.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GetShare_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.GetShareRequest; +import com.google.cloud.designcenter.v1.Share; +import com.google.cloud.designcenter.v1.ShareName; + +public class AsyncGetShare { + + public static void main(String[] args) throws Exception { + asyncGetShare(); + } + + public static void asyncGetShare() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + GetShareRequest request = + GetShareRequest.newBuilder() + .setName( + ShareName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[SHARE]") + .toString()) + .build(); + ApiFuture future = designCenterClient.getShareCallable().futureCall(request); + // Do something. + Share response = future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GetShare_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getshare/SyncGetShare.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getshare/SyncGetShare.java new file mode 100644 index 000000000000..f994e84ba289 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getshare/SyncGetShare.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GetShare_sync] +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.GetShareRequest; +import com.google.cloud.designcenter.v1.Share; +import com.google.cloud.designcenter.v1.ShareName; + +public class SyncGetShare { + + public static void main(String[] args) throws Exception { + syncGetShare(); + } + + public static void syncGetShare() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + GetShareRequest request = + GetShareRequest.newBuilder() + .setName( + ShareName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[SHARE]") + .toString()) + .build(); + Share response = designCenterClient.getShare(request); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GetShare_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getshare/SyncGetShareSharename.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getshare/SyncGetShareSharename.java new file mode 100644 index 000000000000..5922b9ca3dd9 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getshare/SyncGetShareSharename.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GetShare_Sharename_sync] +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.Share; +import com.google.cloud.designcenter.v1.ShareName; + +public class SyncGetShareSharename { + + public static void main(String[] args) throws Exception { + syncGetShareSharename(); + } + + public static void syncGetShareSharename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ShareName name = ShareName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[SHARE]"); + Share response = designCenterClient.getShare(name); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GetShare_Sharename_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getshare/SyncGetShareString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getshare/SyncGetShareString.java new file mode 100644 index 000000000000..8ad881418550 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getshare/SyncGetShareString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GetShare_String_sync] +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.Share; +import com.google.cloud.designcenter.v1.ShareName; + +public class SyncGetShareString { + + public static void main(String[] args) throws Exception { + syncGetShareString(); + } + + public static void syncGetShareString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + String name = + ShareName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[SHARE]").toString(); + Share response = designCenterClient.getShare(name); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GetShare_String_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getsharedtemplate/AsyncGetSharedTemplate.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getsharedtemplate/AsyncGetSharedTemplate.java new file mode 100644 index 000000000000..6b7bd8308a5e --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getsharedtemplate/AsyncGetSharedTemplate.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GetSharedTemplate_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.GetSharedTemplateRequest; +import com.google.cloud.designcenter.v1.SharedTemplate; +import com.google.cloud.designcenter.v1.SharedTemplateName; + +public class AsyncGetSharedTemplate { + + public static void main(String[] args) throws Exception { + asyncGetSharedTemplate(); + } + + public static void asyncGetSharedTemplate() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + GetSharedTemplateRequest request = + GetSharedTemplateRequest.newBuilder() + .setName( + SharedTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[SHARED_TEMPLATE]") + .toString()) + .build(); + ApiFuture future = + designCenterClient.getSharedTemplateCallable().futureCall(request); + // Do something. + SharedTemplate response = future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GetSharedTemplate_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getsharedtemplate/SyncGetSharedTemplate.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getsharedtemplate/SyncGetSharedTemplate.java new file mode 100644 index 000000000000..025c8100250d --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getsharedtemplate/SyncGetSharedTemplate.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GetSharedTemplate_sync] +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.GetSharedTemplateRequest; +import com.google.cloud.designcenter.v1.SharedTemplate; +import com.google.cloud.designcenter.v1.SharedTemplateName; + +public class SyncGetSharedTemplate { + + public static void main(String[] args) throws Exception { + syncGetSharedTemplate(); + } + + public static void syncGetSharedTemplate() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + GetSharedTemplateRequest request = + GetSharedTemplateRequest.newBuilder() + .setName( + SharedTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[SHARED_TEMPLATE]") + .toString()) + .build(); + SharedTemplate response = designCenterClient.getSharedTemplate(request); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GetSharedTemplate_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getsharedtemplate/SyncGetSharedTemplateSharedtemplatename.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getsharedtemplate/SyncGetSharedTemplateSharedtemplatename.java new file mode 100644 index 000000000000..3bbb2d6fc329 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getsharedtemplate/SyncGetSharedTemplateSharedtemplatename.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GetSharedTemplate_Sharedtemplatename_sync] +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.SharedTemplate; +import com.google.cloud.designcenter.v1.SharedTemplateName; + +public class SyncGetSharedTemplateSharedtemplatename { + + public static void main(String[] args) throws Exception { + syncGetSharedTemplateSharedtemplatename(); + } + + public static void syncGetSharedTemplateSharedtemplatename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + SharedTemplateName name = + SharedTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[SHARED_TEMPLATE]"); + SharedTemplate response = designCenterClient.getSharedTemplate(name); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GetSharedTemplate_Sharedtemplatename_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getsharedtemplate/SyncGetSharedTemplateString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getsharedtemplate/SyncGetSharedTemplateString.java new file mode 100644 index 000000000000..abef55cfe0da --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getsharedtemplate/SyncGetSharedTemplateString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GetSharedTemplate_String_sync] +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.SharedTemplate; +import com.google.cloud.designcenter.v1.SharedTemplateName; + +public class SyncGetSharedTemplateString { + + public static void main(String[] args) throws Exception { + syncGetSharedTemplateString(); + } + + public static void syncGetSharedTemplateString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + String name = + SharedTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[SHARED_TEMPLATE]") + .toString(); + SharedTemplate response = designCenterClient.getSharedTemplate(name); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GetSharedTemplate_String_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getsharedtemplaterevision/AsyncGetSharedTemplateRevision.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getsharedtemplaterevision/AsyncGetSharedTemplateRevision.java new file mode 100644 index 000000000000..6aaef4a06e34 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getsharedtemplaterevision/AsyncGetSharedTemplateRevision.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GetSharedTemplateRevision_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.GetSharedTemplateRevisionRequest; +import com.google.cloud.designcenter.v1.SharedTemplateRevision; +import com.google.cloud.designcenter.v1.SharedTemplateRevisionName; + +public class AsyncGetSharedTemplateRevision { + + public static void main(String[] args) throws Exception { + asyncGetSharedTemplateRevision(); + } + + public static void asyncGetSharedTemplateRevision() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + GetSharedTemplateRevisionRequest request = + GetSharedTemplateRevisionRequest.newBuilder() + .setName( + SharedTemplateRevisionName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[SHARED_TEMPLATE]", "[REVISION]") + .toString()) + .build(); + ApiFuture future = + designCenterClient.getSharedTemplateRevisionCallable().futureCall(request); + // Do something. + SharedTemplateRevision response = future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GetSharedTemplateRevision_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getsharedtemplaterevision/SyncGetSharedTemplateRevision.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getsharedtemplaterevision/SyncGetSharedTemplateRevision.java new file mode 100644 index 000000000000..91f510240f04 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getsharedtemplaterevision/SyncGetSharedTemplateRevision.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GetSharedTemplateRevision_sync] +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.GetSharedTemplateRevisionRequest; +import com.google.cloud.designcenter.v1.SharedTemplateRevision; +import com.google.cloud.designcenter.v1.SharedTemplateRevisionName; + +public class SyncGetSharedTemplateRevision { + + public static void main(String[] args) throws Exception { + syncGetSharedTemplateRevision(); + } + + public static void syncGetSharedTemplateRevision() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + GetSharedTemplateRevisionRequest request = + GetSharedTemplateRevisionRequest.newBuilder() + .setName( + SharedTemplateRevisionName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[SHARED_TEMPLATE]", "[REVISION]") + .toString()) + .build(); + SharedTemplateRevision response = designCenterClient.getSharedTemplateRevision(request); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GetSharedTemplateRevision_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getsharedtemplaterevision/SyncGetSharedTemplateRevisionSharedtemplaterevisionname.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getsharedtemplaterevision/SyncGetSharedTemplateRevisionSharedtemplaterevisionname.java new file mode 100644 index 000000000000..d4126368a315 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getsharedtemplaterevision/SyncGetSharedTemplateRevisionSharedtemplaterevisionname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GetSharedTemplateRevision_Sharedtemplaterevisionname_sync] +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.SharedTemplateRevision; +import com.google.cloud.designcenter.v1.SharedTemplateRevisionName; + +public class SyncGetSharedTemplateRevisionSharedtemplaterevisionname { + + public static void main(String[] args) throws Exception { + syncGetSharedTemplateRevisionSharedtemplaterevisionname(); + } + + public static void syncGetSharedTemplateRevisionSharedtemplaterevisionname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + SharedTemplateRevisionName name = + SharedTemplateRevisionName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[SHARED_TEMPLATE]", "[REVISION]"); + SharedTemplateRevision response = designCenterClient.getSharedTemplateRevision(name); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GetSharedTemplateRevision_Sharedtemplaterevisionname_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getsharedtemplaterevision/SyncGetSharedTemplateRevisionString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getsharedtemplaterevision/SyncGetSharedTemplateRevisionString.java new file mode 100644 index 000000000000..53eaf8d4d91d --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getsharedtemplaterevision/SyncGetSharedTemplateRevisionString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GetSharedTemplateRevision_String_sync] +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.SharedTemplateRevision; +import com.google.cloud.designcenter.v1.SharedTemplateRevisionName; + +public class SyncGetSharedTemplateRevisionString { + + public static void main(String[] args) throws Exception { + syncGetSharedTemplateRevisionString(); + } + + public static void syncGetSharedTemplateRevisionString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + String name = + SharedTemplateRevisionName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[SHARED_TEMPLATE]", "[REVISION]") + .toString(); + SharedTemplateRevision response = designCenterClient.getSharedTemplateRevision(name); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GetSharedTemplateRevision_String_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getspace/AsyncGetSpace.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getspace/AsyncGetSpace.java new file mode 100644 index 000000000000..5bb0c766e279 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getspace/AsyncGetSpace.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GetSpace_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.GetSpaceRequest; +import com.google.cloud.designcenter.v1.Space; +import com.google.cloud.designcenter.v1.SpaceName; + +public class AsyncGetSpace { + + public static void main(String[] args) throws Exception { + asyncGetSpace(); + } + + public static void asyncGetSpace() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + GetSpaceRequest request = + GetSpaceRequest.newBuilder() + .setName(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString()) + .build(); + ApiFuture future = designCenterClient.getSpaceCallable().futureCall(request); + // Do something. + Space response = future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GetSpace_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getspace/SyncGetSpace.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getspace/SyncGetSpace.java new file mode 100644 index 000000000000..6d347eb588fd --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getspace/SyncGetSpace.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GetSpace_sync] +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.GetSpaceRequest; +import com.google.cloud.designcenter.v1.Space; +import com.google.cloud.designcenter.v1.SpaceName; + +public class SyncGetSpace { + + public static void main(String[] args) throws Exception { + syncGetSpace(); + } + + public static void syncGetSpace() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + GetSpaceRequest request = + GetSpaceRequest.newBuilder() + .setName(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString()) + .build(); + Space response = designCenterClient.getSpace(request); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GetSpace_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getspace/SyncGetSpaceSpacename.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getspace/SyncGetSpaceSpacename.java new file mode 100644 index 000000000000..a2c57f8b06bf --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getspace/SyncGetSpaceSpacename.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GetSpace_Spacename_sync] +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.Space; +import com.google.cloud.designcenter.v1.SpaceName; + +public class SyncGetSpaceSpacename { + + public static void main(String[] args) throws Exception { + syncGetSpaceSpacename(); + } + + public static void syncGetSpaceSpacename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + SpaceName name = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]"); + Space response = designCenterClient.getSpace(name); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GetSpace_Spacename_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getspace/SyncGetSpaceString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getspace/SyncGetSpaceString.java new file mode 100644 index 000000000000..b586b87a897a --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/getspace/SyncGetSpaceString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_GetSpace_String_sync] +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.Space; +import com.google.cloud.designcenter.v1.SpaceName; + +public class SyncGetSpaceString { + + public static void main(String[] args) throws Exception { + syncGetSpaceString(); + } + + public static void syncGetSpaceString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + String name = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString(); + Space response = designCenterClient.getSpace(name); + } + } +} +// [END designcenter_v1_generated_DesignCenter_GetSpace_String_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/importapplicationiac/AsyncImportApplicationIaC.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/importapplicationiac/AsyncImportApplicationIaC.java new file mode 100644 index 000000000000..446a5a6f89dc --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/importapplicationiac/AsyncImportApplicationIaC.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ImportApplicationIaC_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.ApplicationName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.ImportApplicationIaCRequest; +import com.google.cloud.designcenter.v1.ImportApplicationIaCResponse; + +public class AsyncImportApplicationIaC { + + public static void main(String[] args) throws Exception { + asyncImportApplicationIaC(); + } + + public static void asyncImportApplicationIaC() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ImportApplicationIaCRequest request = + ImportApplicationIaCRequest.newBuilder() + .setName( + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]") + .toString()) + .setAllowPartialImport(true) + .setValidateIac(true) + .build(); + ApiFuture future = + designCenterClient.importApplicationIaCCallable().futureCall(request); + // Do something. + ImportApplicationIaCResponse response = future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_ImportApplicationIaC_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/importapplicationiac/SyncImportApplicationIaC.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/importapplicationiac/SyncImportApplicationIaC.java new file mode 100644 index 000000000000..7f545f7a9390 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/importapplicationiac/SyncImportApplicationIaC.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ImportApplicationIaC_sync] +import com.google.cloud.designcenter.v1.ApplicationName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.ImportApplicationIaCRequest; +import com.google.cloud.designcenter.v1.ImportApplicationIaCResponse; + +public class SyncImportApplicationIaC { + + public static void main(String[] args) throws Exception { + syncImportApplicationIaC(); + } + + public static void syncImportApplicationIaC() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ImportApplicationIaCRequest request = + ImportApplicationIaCRequest.newBuilder() + .setName( + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]") + .toString()) + .setAllowPartialImport(true) + .setValidateIac(true) + .build(); + ImportApplicationIaCResponse response = designCenterClient.importApplicationIaC(request); + } + } +} +// [END designcenter_v1_generated_DesignCenter_ImportApplicationIaC_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/importapplicationiac/SyncImportApplicationIaCApplicationname.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/importapplicationiac/SyncImportApplicationIaCApplicationname.java new file mode 100644 index 000000000000..5cb2370f9978 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/importapplicationiac/SyncImportApplicationIaCApplicationname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ImportApplicationIaC_Applicationname_sync] +import com.google.cloud.designcenter.v1.ApplicationName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.ImportApplicationIaCResponse; + +public class SyncImportApplicationIaCApplicationname { + + public static void main(String[] args) throws Exception { + syncImportApplicationIaCApplicationname(); + } + + public static void syncImportApplicationIaCApplicationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ApplicationName name = + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]"); + ImportApplicationIaCResponse response = designCenterClient.importApplicationIaC(name); + } + } +} +// [END designcenter_v1_generated_DesignCenter_ImportApplicationIaC_Applicationname_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/importapplicationiac/SyncImportApplicationIaCString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/importapplicationiac/SyncImportApplicationIaCString.java new file mode 100644 index 000000000000..c580dbabced0 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/importapplicationiac/SyncImportApplicationIaCString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ImportApplicationIaC_String_sync] +import com.google.cloud.designcenter.v1.ApplicationName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.ImportApplicationIaCResponse; + +public class SyncImportApplicationIaCString { + + public static void main(String[] args) throws Exception { + syncImportApplicationIaCString(); + } + + public static void syncImportApplicationIaCString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + String name = + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]").toString(); + ImportApplicationIaCResponse response = designCenterClient.importApplicationIaC(name); + } + } +} +// [END designcenter_v1_generated_DesignCenter_ImportApplicationIaC_String_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/importapplicationtemplate/AsyncImportApplicationTemplate.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/importapplicationtemplate/AsyncImportApplicationTemplate.java new file mode 100644 index 000000000000..f1410ef5b734 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/importapplicationtemplate/AsyncImportApplicationTemplate.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ImportApplicationTemplate_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.ApplicationTemplate; +import com.google.cloud.designcenter.v1.ApplicationTemplateName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.ImportApplicationTemplateRequest; +import java.util.HashMap; + +public class AsyncImportApplicationTemplate { + + public static void main(String[] args) throws Exception { + asyncImportApplicationTemplate(); + } + + public static void asyncImportApplicationTemplate() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ImportApplicationTemplateRequest request = + ImportApplicationTemplateRequest.newBuilder() + .setName( + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString()) + .putAllAnnotations(new HashMap()) + .build(); + ApiFuture future = + designCenterClient.importApplicationTemplateCallable().futureCall(request); + // Do something. + ApplicationTemplate response = future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_ImportApplicationTemplate_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/importapplicationtemplate/SyncImportApplicationTemplate.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/importapplicationtemplate/SyncImportApplicationTemplate.java new file mode 100644 index 000000000000..116ea989e667 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/importapplicationtemplate/SyncImportApplicationTemplate.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ImportApplicationTemplate_sync] +import com.google.cloud.designcenter.v1.ApplicationTemplate; +import com.google.cloud.designcenter.v1.ApplicationTemplateName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.ImportApplicationTemplateRequest; +import java.util.HashMap; + +public class SyncImportApplicationTemplate { + + public static void main(String[] args) throws Exception { + syncImportApplicationTemplate(); + } + + public static void syncImportApplicationTemplate() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ImportApplicationTemplateRequest request = + ImportApplicationTemplateRequest.newBuilder() + .setName( + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString()) + .putAllAnnotations(new HashMap()) + .build(); + ApplicationTemplate response = designCenterClient.importApplicationTemplate(request); + } + } +} +// [END designcenter_v1_generated_DesignCenter_ImportApplicationTemplate_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/importapplicationtemplate/SyncImportApplicationTemplateApplicationtemplatenameApplicationtemplaterevisionname.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/importapplicationtemplate/SyncImportApplicationTemplateApplicationtemplatenameApplicationtemplaterevisionname.java new file mode 100644 index 000000000000..7a972b6d53ec --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/importapplicationtemplate/SyncImportApplicationTemplateApplicationtemplatenameApplicationtemplaterevisionname.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ImportApplicationTemplate_ApplicationtemplatenameApplicationtemplaterevisionname_sync] +import com.google.cloud.designcenter.v1.ApplicationTemplate; +import com.google.cloud.designcenter.v1.ApplicationTemplateName; +import com.google.cloud.designcenter.v1.ApplicationTemplateRevisionName; +import com.google.cloud.designcenter.v1.DesignCenterClient; + +public class SyncImportApplicationTemplateApplicationtemplatenameApplicationtemplaterevisionname { + + public static void main(String[] args) throws Exception { + syncImportApplicationTemplateApplicationtemplatenameApplicationtemplaterevisionname(); + } + + public static void + syncImportApplicationTemplateApplicationtemplatenameApplicationtemplaterevisionname() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ApplicationTemplateName name = + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + ApplicationTemplateRevisionName applicationTemplateRevisionUri = + ApplicationTemplateRevisionName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[REVISION]"); + ApplicationTemplate response = + designCenterClient.importApplicationTemplate(name, applicationTemplateRevisionUri); + } + } +} +// [END designcenter_v1_generated_DesignCenter_ImportApplicationTemplate_ApplicationtemplatenameApplicationtemplaterevisionname_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/importapplicationtemplate/SyncImportApplicationTemplateApplicationtemplatenameString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/importapplicationtemplate/SyncImportApplicationTemplateApplicationtemplatenameString.java new file mode 100644 index 000000000000..c1db6d12384e --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/importapplicationtemplate/SyncImportApplicationTemplateApplicationtemplatenameString.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ImportApplicationTemplate_ApplicationtemplatenameString_sync] +import com.google.cloud.designcenter.v1.ApplicationTemplate; +import com.google.cloud.designcenter.v1.ApplicationTemplateName; +import com.google.cloud.designcenter.v1.ApplicationTemplateRevisionName; +import com.google.cloud.designcenter.v1.DesignCenterClient; + +public class SyncImportApplicationTemplateApplicationtemplatenameString { + + public static void main(String[] args) throws Exception { + syncImportApplicationTemplateApplicationtemplatenameString(); + } + + public static void syncImportApplicationTemplateApplicationtemplatenameString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ApplicationTemplateName name = + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + String applicationTemplateRevisionUri = + ApplicationTemplateRevisionName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[REVISION]") + .toString(); + ApplicationTemplate response = + designCenterClient.importApplicationTemplate(name, applicationTemplateRevisionUri); + } + } +} +// [END designcenter_v1_generated_DesignCenter_ImportApplicationTemplate_ApplicationtemplatenameString_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/importapplicationtemplate/SyncImportApplicationTemplateStringApplicationtemplaterevisionname.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/importapplicationtemplate/SyncImportApplicationTemplateStringApplicationtemplaterevisionname.java new file mode 100644 index 000000000000..91e80dae363c --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/importapplicationtemplate/SyncImportApplicationTemplateStringApplicationtemplaterevisionname.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ImportApplicationTemplate_StringApplicationtemplaterevisionname_sync] +import com.google.cloud.designcenter.v1.ApplicationTemplate; +import com.google.cloud.designcenter.v1.ApplicationTemplateName; +import com.google.cloud.designcenter.v1.ApplicationTemplateRevisionName; +import com.google.cloud.designcenter.v1.DesignCenterClient; + +public class SyncImportApplicationTemplateStringApplicationtemplaterevisionname { + + public static void main(String[] args) throws Exception { + syncImportApplicationTemplateStringApplicationtemplaterevisionname(); + } + + public static void syncImportApplicationTemplateStringApplicationtemplaterevisionname() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + String name = + ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString(); + ApplicationTemplateRevisionName applicationTemplateRevisionUri = + ApplicationTemplateRevisionName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[REVISION]"); + ApplicationTemplate response = + designCenterClient.importApplicationTemplate(name, applicationTemplateRevisionUri); + } + } +} +// [END designcenter_v1_generated_DesignCenter_ImportApplicationTemplate_StringApplicationtemplaterevisionname_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/importapplicationtemplate/SyncImportApplicationTemplateStringString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/importapplicationtemplate/SyncImportApplicationTemplateStringString.java new file mode 100644 index 000000000000..d947fe9cfa6b --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/importapplicationtemplate/SyncImportApplicationTemplateStringString.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ImportApplicationTemplate_StringString_sync] +import com.google.cloud.designcenter.v1.ApplicationTemplate; +import com.google.cloud.designcenter.v1.ApplicationTemplateName; +import com.google.cloud.designcenter.v1.ApplicationTemplateRevisionName; +import com.google.cloud.designcenter.v1.DesignCenterClient; + +public class SyncImportApplicationTemplateStringString { + + public static void main(String[] args) throws Exception { + syncImportApplicationTemplateStringString(); + } + + public static void syncImportApplicationTemplateStringString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + String name = + ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString(); + String applicationTemplateRevisionUri = + ApplicationTemplateRevisionName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[REVISION]") + .toString(); + ApplicationTemplate response = + designCenterClient.importApplicationTemplate(name, applicationTemplateRevisionUri); + } + } +} +// [END designcenter_v1_generated_DesignCenter_ImportApplicationTemplate_StringString_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/importapplicationtemplateiac/AsyncImportApplicationTemplateIaC.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/importapplicationtemplateiac/AsyncImportApplicationTemplateIaC.java new file mode 100644 index 000000000000..9fb88f1b3eb2 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/importapplicationtemplateiac/AsyncImportApplicationTemplateIaC.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ImportApplicationTemplateIaC_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.ApplicationTemplateName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCRequest; +import com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse; + +public class AsyncImportApplicationTemplateIaC { + + public static void main(String[] args) throws Exception { + asyncImportApplicationTemplateIaC(); + } + + public static void asyncImportApplicationTemplateIaC() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ImportApplicationTemplateIaCRequest request = + ImportApplicationTemplateIaCRequest.newBuilder() + .setName( + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString()) + .setAllowPartialImport(true) + .setValidateIac(true) + .build(); + ApiFuture future = + designCenterClient.importApplicationTemplateIaCCallable().futureCall(request); + // Do something. + ImportApplicationTemplateIaCResponse response = future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_ImportApplicationTemplateIaC_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/importapplicationtemplateiac/SyncImportApplicationTemplateIaC.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/importapplicationtemplateiac/SyncImportApplicationTemplateIaC.java new file mode 100644 index 000000000000..1960cafb005f --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/importapplicationtemplateiac/SyncImportApplicationTemplateIaC.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ImportApplicationTemplateIaC_sync] +import com.google.cloud.designcenter.v1.ApplicationTemplateName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCRequest; +import com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse; + +public class SyncImportApplicationTemplateIaC { + + public static void main(String[] args) throws Exception { + syncImportApplicationTemplateIaC(); + } + + public static void syncImportApplicationTemplateIaC() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ImportApplicationTemplateIaCRequest request = + ImportApplicationTemplateIaCRequest.newBuilder() + .setName( + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString()) + .setAllowPartialImport(true) + .setValidateIac(true) + .build(); + ImportApplicationTemplateIaCResponse response = + designCenterClient.importApplicationTemplateIaC(request); + } + } +} +// [END designcenter_v1_generated_DesignCenter_ImportApplicationTemplateIaC_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/importapplicationtemplateiac/SyncImportApplicationTemplateIaCApplicationtemplatename.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/importapplicationtemplateiac/SyncImportApplicationTemplateIaCApplicationtemplatename.java new file mode 100644 index 000000000000..3406019d12b0 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/importapplicationtemplateiac/SyncImportApplicationTemplateIaCApplicationtemplatename.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ImportApplicationTemplateIaC_Applicationtemplatename_sync] +import com.google.cloud.designcenter.v1.ApplicationTemplateName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse; + +public class SyncImportApplicationTemplateIaCApplicationtemplatename { + + public static void main(String[] args) throws Exception { + syncImportApplicationTemplateIaCApplicationtemplatename(); + } + + public static void syncImportApplicationTemplateIaCApplicationtemplatename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ApplicationTemplateName name = + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + ImportApplicationTemplateIaCResponse response = + designCenterClient.importApplicationTemplateIaC(name); + } + } +} +// [END designcenter_v1_generated_DesignCenter_ImportApplicationTemplateIaC_Applicationtemplatename_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/importapplicationtemplateiac/SyncImportApplicationTemplateIaCString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/importapplicationtemplateiac/SyncImportApplicationTemplateIaCString.java new file mode 100644 index 000000000000..20281df114f4 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/importapplicationtemplateiac/SyncImportApplicationTemplateIaCString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ImportApplicationTemplateIaC_String_sync] +import com.google.cloud.designcenter.v1.ApplicationTemplateName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.ImportApplicationTemplateIaCResponse; + +public class SyncImportApplicationTemplateIaCString { + + public static void main(String[] args) throws Exception { + syncImportApplicationTemplateIaCString(); + } + + public static void syncImportApplicationTemplateIaCString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + String name = + ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString(); + ImportApplicationTemplateIaCResponse response = + designCenterClient.importApplicationTemplateIaC(name); + } + } +} +// [END designcenter_v1_generated_DesignCenter_ImportApplicationTemplateIaC_String_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/ingestapplicationtemplateiac/AsyncIngestApplicationTemplateIaC.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/ingestapplicationtemplateiac/AsyncIngestApplicationTemplateIaC.java new file mode 100644 index 000000000000..168e04805a53 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/ingestapplicationtemplateiac/AsyncIngestApplicationTemplateIaC.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_IngestApplicationTemplateIaC_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.ApplicationTemplateName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCRequest; +import com.google.longrunning.Operation; + +public class AsyncIngestApplicationTemplateIaC { + + public static void main(String[] args) throws Exception { + asyncIngestApplicationTemplateIaC(); + } + + public static void asyncIngestApplicationTemplateIaC() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + IngestApplicationTemplateIaCRequest request = + IngestApplicationTemplateIaCRequest.newBuilder() + .setName( + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString()) + .setValidateCatalogCompatibility(true) + .setRawTerraformImportEnabled(true) + .build(); + ApiFuture future = + designCenterClient.ingestApplicationTemplateIaCCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_IngestApplicationTemplateIaC_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/ingestapplicationtemplateiac/AsyncIngestApplicationTemplateIaCLRO.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/ingestapplicationtemplateiac/AsyncIngestApplicationTemplateIaCLRO.java new file mode 100644 index 000000000000..582442a58a62 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/ingestapplicationtemplateiac/AsyncIngestApplicationTemplateIaCLRO.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_IngestApplicationTemplateIaC_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.designcenter.v1.ApplicationTemplateName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCRequest; +import com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCResponse; +import com.google.cloud.designcenter.v1.OperationMetadata; + +public class AsyncIngestApplicationTemplateIaCLRO { + + public static void main(String[] args) throws Exception { + asyncIngestApplicationTemplateIaCLRO(); + } + + public static void asyncIngestApplicationTemplateIaCLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + IngestApplicationTemplateIaCRequest request = + IngestApplicationTemplateIaCRequest.newBuilder() + .setName( + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString()) + .setValidateCatalogCompatibility(true) + .setRawTerraformImportEnabled(true) + .build(); + OperationFuture future = + designCenterClient.ingestApplicationTemplateIaCOperationCallable().futureCall(request); + // Do something. + IngestApplicationTemplateIaCResponse response = future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_IngestApplicationTemplateIaC_LRO_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/ingestapplicationtemplateiac/SyncIngestApplicationTemplateIaC.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/ingestapplicationtemplateiac/SyncIngestApplicationTemplateIaC.java new file mode 100644 index 000000000000..783d46301dba --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/ingestapplicationtemplateiac/SyncIngestApplicationTemplateIaC.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_IngestApplicationTemplateIaC_sync] +import com.google.cloud.designcenter.v1.ApplicationTemplateName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCRequest; +import com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCResponse; + +public class SyncIngestApplicationTemplateIaC { + + public static void main(String[] args) throws Exception { + syncIngestApplicationTemplateIaC(); + } + + public static void syncIngestApplicationTemplateIaC() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + IngestApplicationTemplateIaCRequest request = + IngestApplicationTemplateIaCRequest.newBuilder() + .setName( + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString()) + .setValidateCatalogCompatibility(true) + .setRawTerraformImportEnabled(true) + .build(); + IngestApplicationTemplateIaCResponse response = + designCenterClient.ingestApplicationTemplateIaCAsync(request).get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_IngestApplicationTemplateIaC_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/ingestapplicationtemplateiac/SyncIngestApplicationTemplateIaCApplicationtemplatename.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/ingestapplicationtemplateiac/SyncIngestApplicationTemplateIaCApplicationtemplatename.java new file mode 100644 index 000000000000..95fe1d5ffcc7 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/ingestapplicationtemplateiac/SyncIngestApplicationTemplateIaCApplicationtemplatename.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_IngestApplicationTemplateIaC_Applicationtemplatename_sync] +import com.google.cloud.designcenter.v1.ApplicationTemplateName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCResponse; + +public class SyncIngestApplicationTemplateIaCApplicationtemplatename { + + public static void main(String[] args) throws Exception { + syncIngestApplicationTemplateIaCApplicationtemplatename(); + } + + public static void syncIngestApplicationTemplateIaCApplicationtemplatename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ApplicationTemplateName name = + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + IngestApplicationTemplateIaCResponse response = + designCenterClient.ingestApplicationTemplateIaCAsync(name).get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_IngestApplicationTemplateIaC_Applicationtemplatename_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/ingestapplicationtemplateiac/SyncIngestApplicationTemplateIaCString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/ingestapplicationtemplateiac/SyncIngestApplicationTemplateIaCString.java new file mode 100644 index 000000000000..b293c0fb77c8 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/ingestapplicationtemplateiac/SyncIngestApplicationTemplateIaCString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_IngestApplicationTemplateIaC_String_sync] +import com.google.cloud.designcenter.v1.ApplicationTemplateName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.IngestApplicationTemplateIaCResponse; + +public class SyncIngestApplicationTemplateIaCString { + + public static void main(String[] args) throws Exception { + syncIngestApplicationTemplateIaCString(); + } + + public static void syncIngestApplicationTemplateIaCString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + String name = + ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString(); + IngestApplicationTemplateIaCResponse response = + designCenterClient.ingestApplicationTemplateIaCAsync(name).get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_IngestApplicationTemplateIaC_String_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplications/AsyncListApplications.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplications/AsyncListApplications.java new file mode 100644 index 000000000000..61af4cce04e1 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplications/AsyncListApplications.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ListApplications_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.Application; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.ListApplicationsRequest; +import com.google.cloud.designcenter.v1.SpaceName; + +public class AsyncListApplications { + + public static void main(String[] args) throws Exception { + asyncListApplications(); + } + + public static void asyncListApplications() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ListApplicationsRequest request = + ListApplicationsRequest.newBuilder() + .setParent(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + designCenterClient.listApplicationsPagedCallable().futureCall(request); + // Do something. + for (Application element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END designcenter_v1_generated_DesignCenter_ListApplications_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplications/AsyncListApplicationsPaged.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplications/AsyncListApplicationsPaged.java new file mode 100644 index 000000000000..1ad590a0edd7 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplications/AsyncListApplicationsPaged.java @@ -0,0 +1,64 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ListApplications_Paged_async] +import com.google.cloud.designcenter.v1.Application; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.ListApplicationsRequest; +import com.google.cloud.designcenter.v1.ListApplicationsResponse; +import com.google.cloud.designcenter.v1.SpaceName; +import com.google.common.base.Strings; + +public class AsyncListApplicationsPaged { + + public static void main(String[] args) throws Exception { + asyncListApplicationsPaged(); + } + + public static void asyncListApplicationsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ListApplicationsRequest request = + ListApplicationsRequest.newBuilder() + .setParent(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListApplicationsResponse response = + designCenterClient.listApplicationsCallable().call(request); + for (Application element : response.getApplicationsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END designcenter_v1_generated_DesignCenter_ListApplications_Paged_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplications/SyncListApplications.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplications/SyncListApplications.java new file mode 100644 index 000000000000..bf89940c40ee --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplications/SyncListApplications.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ListApplications_sync] +import com.google.cloud.designcenter.v1.Application; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.ListApplicationsRequest; +import com.google.cloud.designcenter.v1.SpaceName; + +public class SyncListApplications { + + public static void main(String[] args) throws Exception { + syncListApplications(); + } + + public static void syncListApplications() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ListApplicationsRequest request = + ListApplicationsRequest.newBuilder() + .setParent(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (Application element : designCenterClient.listApplications(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END designcenter_v1_generated_DesignCenter_ListApplications_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplications/SyncListApplicationsSpacename.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplications/SyncListApplicationsSpacename.java new file mode 100644 index 000000000000..a7736500f0aa --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplications/SyncListApplicationsSpacename.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ListApplications_Spacename_sync] +import com.google.cloud.designcenter.v1.Application; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.SpaceName; + +public class SyncListApplicationsSpacename { + + public static void main(String[] args) throws Exception { + syncListApplicationsSpacename(); + } + + public static void syncListApplicationsSpacename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + SpaceName parent = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]"); + for (Application element : designCenterClient.listApplications(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END designcenter_v1_generated_DesignCenter_ListApplications_Spacename_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplications/SyncListApplicationsString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplications/SyncListApplicationsString.java new file mode 100644 index 000000000000..bfe1ec5bc360 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplications/SyncListApplicationsString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ListApplications_String_sync] +import com.google.cloud.designcenter.v1.Application; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.SpaceName; + +public class SyncListApplicationsString { + + public static void main(String[] args) throws Exception { + syncListApplicationsString(); + } + + public static void syncListApplicationsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + String parent = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString(); + for (Application element : designCenterClient.listApplications(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END designcenter_v1_generated_DesignCenter_ListApplications_String_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplicationtemplaterevisions/AsyncListApplicationTemplateRevisions.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplicationtemplaterevisions/AsyncListApplicationTemplateRevisions.java new file mode 100644 index 000000000000..2a0281cbf594 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplicationtemplaterevisions/AsyncListApplicationTemplateRevisions.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ListApplicationTemplateRevisions_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.ApplicationTemplateName; +import com.google.cloud.designcenter.v1.ApplicationTemplateRevision; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsRequest; + +public class AsyncListApplicationTemplateRevisions { + + public static void main(String[] args) throws Exception { + asyncListApplicationTemplateRevisions(); + } + + public static void asyncListApplicationTemplateRevisions() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ListApplicationTemplateRevisionsRequest request = + ListApplicationTemplateRevisionsRequest.newBuilder() + .setParent( + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + designCenterClient.listApplicationTemplateRevisionsPagedCallable().futureCall(request); + // Do something. + for (ApplicationTemplateRevision element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END designcenter_v1_generated_DesignCenter_ListApplicationTemplateRevisions_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplicationtemplaterevisions/AsyncListApplicationTemplateRevisionsPaged.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplicationtemplaterevisions/AsyncListApplicationTemplateRevisionsPaged.java new file mode 100644 index 000000000000..bc8fe686e6f0 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplicationtemplaterevisions/AsyncListApplicationTemplateRevisionsPaged.java @@ -0,0 +1,67 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ListApplicationTemplateRevisions_Paged_async] +import com.google.cloud.designcenter.v1.ApplicationTemplateName; +import com.google.cloud.designcenter.v1.ApplicationTemplateRevision; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsRequest; +import com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsResponse; +import com.google.common.base.Strings; + +public class AsyncListApplicationTemplateRevisionsPaged { + + public static void main(String[] args) throws Exception { + asyncListApplicationTemplateRevisionsPaged(); + } + + public static void asyncListApplicationTemplateRevisionsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ListApplicationTemplateRevisionsRequest request = + ListApplicationTemplateRevisionsRequest.newBuilder() + .setParent( + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListApplicationTemplateRevisionsResponse response = + designCenterClient.listApplicationTemplateRevisionsCallable().call(request); + for (ApplicationTemplateRevision element : response.getApplicationTemplateRevisionsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END designcenter_v1_generated_DesignCenter_ListApplicationTemplateRevisions_Paged_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplicationtemplaterevisions/SyncListApplicationTemplateRevisions.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplicationtemplaterevisions/SyncListApplicationTemplateRevisions.java new file mode 100644 index 000000000000..75e2034f368c --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplicationtemplaterevisions/SyncListApplicationTemplateRevisions.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ListApplicationTemplateRevisions_sync] +import com.google.cloud.designcenter.v1.ApplicationTemplateName; +import com.google.cloud.designcenter.v1.ApplicationTemplateRevision; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.ListApplicationTemplateRevisionsRequest; + +public class SyncListApplicationTemplateRevisions { + + public static void main(String[] args) throws Exception { + syncListApplicationTemplateRevisions(); + } + + public static void syncListApplicationTemplateRevisions() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ListApplicationTemplateRevisionsRequest request = + ListApplicationTemplateRevisionsRequest.newBuilder() + .setParent( + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (ApplicationTemplateRevision element : + designCenterClient.listApplicationTemplateRevisions(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END designcenter_v1_generated_DesignCenter_ListApplicationTemplateRevisions_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplicationtemplaterevisions/SyncListApplicationTemplateRevisionsApplicationtemplatename.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplicationtemplaterevisions/SyncListApplicationTemplateRevisionsApplicationtemplatename.java new file mode 100644 index 000000000000..99cf0fb4d745 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplicationtemplaterevisions/SyncListApplicationTemplateRevisionsApplicationtemplatename.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ListApplicationTemplateRevisions_Applicationtemplatename_sync] +import com.google.cloud.designcenter.v1.ApplicationTemplateName; +import com.google.cloud.designcenter.v1.ApplicationTemplateRevision; +import com.google.cloud.designcenter.v1.DesignCenterClient; + +public class SyncListApplicationTemplateRevisionsApplicationtemplatename { + + public static void main(String[] args) throws Exception { + syncListApplicationTemplateRevisionsApplicationtemplatename(); + } + + public static void syncListApplicationTemplateRevisionsApplicationtemplatename() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ApplicationTemplateName parent = + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + for (ApplicationTemplateRevision element : + designCenterClient.listApplicationTemplateRevisions(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END designcenter_v1_generated_DesignCenter_ListApplicationTemplateRevisions_Applicationtemplatename_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplicationtemplaterevisions/SyncListApplicationTemplateRevisionsString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplicationtemplaterevisions/SyncListApplicationTemplateRevisionsString.java new file mode 100644 index 000000000000..0eaa5d296fd4 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplicationtemplaterevisions/SyncListApplicationTemplateRevisionsString.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ListApplicationTemplateRevisions_String_sync] +import com.google.cloud.designcenter.v1.ApplicationTemplateName; +import com.google.cloud.designcenter.v1.ApplicationTemplateRevision; +import com.google.cloud.designcenter.v1.DesignCenterClient; + +public class SyncListApplicationTemplateRevisionsString { + + public static void main(String[] args) throws Exception { + syncListApplicationTemplateRevisionsString(); + } + + public static void syncListApplicationTemplateRevisionsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + String parent = + ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString(); + for (ApplicationTemplateRevision element : + designCenterClient.listApplicationTemplateRevisions(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END designcenter_v1_generated_DesignCenter_ListApplicationTemplateRevisions_String_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplicationtemplates/AsyncListApplicationTemplates.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplicationtemplates/AsyncListApplicationTemplates.java new file mode 100644 index 000000000000..4cd847a379f1 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplicationtemplates/AsyncListApplicationTemplates.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ListApplicationTemplates_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.ApplicationTemplate; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.ListApplicationTemplatesRequest; +import com.google.cloud.designcenter.v1.SpaceName; + +public class AsyncListApplicationTemplates { + + public static void main(String[] args) throws Exception { + asyncListApplicationTemplates(); + } + + public static void asyncListApplicationTemplates() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ListApplicationTemplatesRequest request = + ListApplicationTemplatesRequest.newBuilder() + .setParent(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + designCenterClient.listApplicationTemplatesPagedCallable().futureCall(request); + // Do something. + for (ApplicationTemplate element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END designcenter_v1_generated_DesignCenter_ListApplicationTemplates_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplicationtemplates/AsyncListApplicationTemplatesPaged.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplicationtemplates/AsyncListApplicationTemplatesPaged.java new file mode 100644 index 000000000000..b4d2a844b172 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplicationtemplates/AsyncListApplicationTemplatesPaged.java @@ -0,0 +1,64 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ListApplicationTemplates_Paged_async] +import com.google.cloud.designcenter.v1.ApplicationTemplate; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.ListApplicationTemplatesRequest; +import com.google.cloud.designcenter.v1.ListApplicationTemplatesResponse; +import com.google.cloud.designcenter.v1.SpaceName; +import com.google.common.base.Strings; + +public class AsyncListApplicationTemplatesPaged { + + public static void main(String[] args) throws Exception { + asyncListApplicationTemplatesPaged(); + } + + public static void asyncListApplicationTemplatesPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ListApplicationTemplatesRequest request = + ListApplicationTemplatesRequest.newBuilder() + .setParent(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListApplicationTemplatesResponse response = + designCenterClient.listApplicationTemplatesCallable().call(request); + for (ApplicationTemplate element : response.getApplicationTemplatesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END designcenter_v1_generated_DesignCenter_ListApplicationTemplates_Paged_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplicationtemplates/SyncListApplicationTemplates.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplicationtemplates/SyncListApplicationTemplates.java new file mode 100644 index 000000000000..1b92cc4c6ad4 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplicationtemplates/SyncListApplicationTemplates.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ListApplicationTemplates_sync] +import com.google.cloud.designcenter.v1.ApplicationTemplate; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.ListApplicationTemplatesRequest; +import com.google.cloud.designcenter.v1.SpaceName; + +public class SyncListApplicationTemplates { + + public static void main(String[] args) throws Exception { + syncListApplicationTemplates(); + } + + public static void syncListApplicationTemplates() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ListApplicationTemplatesRequest request = + ListApplicationTemplatesRequest.newBuilder() + .setParent(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (ApplicationTemplate element : + designCenterClient.listApplicationTemplates(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END designcenter_v1_generated_DesignCenter_ListApplicationTemplates_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplicationtemplates/SyncListApplicationTemplatesSpacename.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplicationtemplates/SyncListApplicationTemplatesSpacename.java new file mode 100644 index 000000000000..ed9d02316799 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplicationtemplates/SyncListApplicationTemplatesSpacename.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ListApplicationTemplates_Spacename_sync] +import com.google.cloud.designcenter.v1.ApplicationTemplate; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.SpaceName; + +public class SyncListApplicationTemplatesSpacename { + + public static void main(String[] args) throws Exception { + syncListApplicationTemplatesSpacename(); + } + + public static void syncListApplicationTemplatesSpacename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + SpaceName parent = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]"); + for (ApplicationTemplate element : + designCenterClient.listApplicationTemplates(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END designcenter_v1_generated_DesignCenter_ListApplicationTemplates_Spacename_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplicationtemplates/SyncListApplicationTemplatesString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplicationtemplates/SyncListApplicationTemplatesString.java new file mode 100644 index 000000000000..9260d34c4734 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplicationtemplates/SyncListApplicationTemplatesString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ListApplicationTemplates_String_sync] +import com.google.cloud.designcenter.v1.ApplicationTemplate; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.SpaceName; + +public class SyncListApplicationTemplatesString { + + public static void main(String[] args) throws Exception { + syncListApplicationTemplatesString(); + } + + public static void syncListApplicationTemplatesString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + String parent = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString(); + for (ApplicationTemplate element : + designCenterClient.listApplicationTemplates(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END designcenter_v1_generated_DesignCenter_ListApplicationTemplates_String_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplicationtemplatesystemrevisions/AsyncListApplicationTemplateSystemRevisions.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplicationtemplatesystemrevisions/AsyncListApplicationTemplateSystemRevisions.java new file mode 100644 index 000000000000..4f6f66e37086 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplicationtemplatesystemrevisions/AsyncListApplicationTemplateSystemRevisions.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ListApplicationTemplateSystemRevisions_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.ApplicationTemplateName; +import com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsRequest; + +public class AsyncListApplicationTemplateSystemRevisions { + + public static void main(String[] args) throws Exception { + asyncListApplicationTemplateSystemRevisions(); + } + + public static void asyncListApplicationTemplateSystemRevisions() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ListApplicationTemplateSystemRevisionsRequest request = + ListApplicationTemplateSystemRevisionsRequest.newBuilder() + .setParent( + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + ApiFuture future = + designCenterClient + .listApplicationTemplateSystemRevisionsPagedCallable() + .futureCall(request); + // Do something. + for (ApplicationTemplateSystemRevision element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END designcenter_v1_generated_DesignCenter_ListApplicationTemplateSystemRevisions_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplicationtemplatesystemrevisions/AsyncListApplicationTemplateSystemRevisionsPaged.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplicationtemplatesystemrevisions/AsyncListApplicationTemplateSystemRevisionsPaged.java new file mode 100644 index 000000000000..b60bff7df3b3 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplicationtemplatesystemrevisions/AsyncListApplicationTemplateSystemRevisionsPaged.java @@ -0,0 +1,67 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ListApplicationTemplateSystemRevisions_Paged_async] +import com.google.cloud.designcenter.v1.ApplicationTemplateName; +import com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsRequest; +import com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsResponse; +import com.google.common.base.Strings; + +public class AsyncListApplicationTemplateSystemRevisionsPaged { + + public static void main(String[] args) throws Exception { + asyncListApplicationTemplateSystemRevisionsPaged(); + } + + public static void asyncListApplicationTemplateSystemRevisionsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ListApplicationTemplateSystemRevisionsRequest request = + ListApplicationTemplateSystemRevisionsRequest.newBuilder() + .setParent( + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + while (true) { + ListApplicationTemplateSystemRevisionsResponse response = + designCenterClient.listApplicationTemplateSystemRevisionsCallable().call(request); + for (ApplicationTemplateSystemRevision element : + response.getApplicationTemplateSystemRevisionsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END designcenter_v1_generated_DesignCenter_ListApplicationTemplateSystemRevisions_Paged_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplicationtemplatesystemrevisions/SyncListApplicationTemplateSystemRevisions.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplicationtemplatesystemrevisions/SyncListApplicationTemplateSystemRevisions.java new file mode 100644 index 000000000000..f2e667b8d1d1 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplicationtemplatesystemrevisions/SyncListApplicationTemplateSystemRevisions.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ListApplicationTemplateSystemRevisions_sync] +import com.google.cloud.designcenter.v1.ApplicationTemplateName; +import com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.ListApplicationTemplateSystemRevisionsRequest; + +public class SyncListApplicationTemplateSystemRevisions { + + public static void main(String[] args) throws Exception { + syncListApplicationTemplateSystemRevisions(); + } + + public static void syncListApplicationTemplateSystemRevisions() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ListApplicationTemplateSystemRevisionsRequest request = + ListApplicationTemplateSystemRevisionsRequest.newBuilder() + .setParent( + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + for (ApplicationTemplateSystemRevision element : + designCenterClient.listApplicationTemplateSystemRevisions(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END designcenter_v1_generated_DesignCenter_ListApplicationTemplateSystemRevisions_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplicationtemplatesystemrevisions/SyncListApplicationTemplateSystemRevisionsApplicationtemplatename.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplicationtemplatesystemrevisions/SyncListApplicationTemplateSystemRevisionsApplicationtemplatename.java new file mode 100644 index 000000000000..b41afb85827f --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplicationtemplatesystemrevisions/SyncListApplicationTemplateSystemRevisionsApplicationtemplatename.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ListApplicationTemplateSystemRevisions_Applicationtemplatename_sync] +import com.google.cloud.designcenter.v1.ApplicationTemplateName; +import com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision; +import com.google.cloud.designcenter.v1.DesignCenterClient; + +public class SyncListApplicationTemplateSystemRevisionsApplicationtemplatename { + + public static void main(String[] args) throws Exception { + syncListApplicationTemplateSystemRevisionsApplicationtemplatename(); + } + + public static void syncListApplicationTemplateSystemRevisionsApplicationtemplatename() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ApplicationTemplateName parent = + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + for (ApplicationTemplateSystemRevision element : + designCenterClient.listApplicationTemplateSystemRevisions(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END designcenter_v1_generated_DesignCenter_ListApplicationTemplateSystemRevisions_Applicationtemplatename_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplicationtemplatesystemrevisions/SyncListApplicationTemplateSystemRevisionsString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplicationtemplatesystemrevisions/SyncListApplicationTemplateSystemRevisionsString.java new file mode 100644 index 000000000000..fe06f56123e8 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listapplicationtemplatesystemrevisions/SyncListApplicationTemplateSystemRevisionsString.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ListApplicationTemplateSystemRevisions_String_sync] +import com.google.cloud.designcenter.v1.ApplicationTemplateName; +import com.google.cloud.designcenter.v1.ApplicationTemplateSystemRevision; +import com.google.cloud.designcenter.v1.DesignCenterClient; + +public class SyncListApplicationTemplateSystemRevisionsString { + + public static void main(String[] args) throws Exception { + syncListApplicationTemplateSystemRevisionsString(); + } + + public static void syncListApplicationTemplateSystemRevisionsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + String parent = + ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString(); + for (ApplicationTemplateSystemRevision element : + designCenterClient.listApplicationTemplateSystemRevisions(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END designcenter_v1_generated_DesignCenter_ListApplicationTemplateSystemRevisions_String_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcatalogs/AsyncListCatalogs.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcatalogs/AsyncListCatalogs.java new file mode 100644 index 000000000000..dffa9cc5a8cd --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcatalogs/AsyncListCatalogs.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ListCatalogs_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.Catalog; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.ListCatalogsRequest; +import com.google.cloud.designcenter.v1.SpaceName; + +public class AsyncListCatalogs { + + public static void main(String[] args) throws Exception { + asyncListCatalogs(); + } + + public static void asyncListCatalogs() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ListCatalogsRequest request = + ListCatalogsRequest.newBuilder() + .setParent(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + designCenterClient.listCatalogsPagedCallable().futureCall(request); + // Do something. + for (Catalog element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END designcenter_v1_generated_DesignCenter_ListCatalogs_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcatalogs/AsyncListCatalogsPaged.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcatalogs/AsyncListCatalogsPaged.java new file mode 100644 index 000000000000..e4014d9d5334 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcatalogs/AsyncListCatalogsPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ListCatalogs_Paged_async] +import com.google.cloud.designcenter.v1.Catalog; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.ListCatalogsRequest; +import com.google.cloud.designcenter.v1.ListCatalogsResponse; +import com.google.cloud.designcenter.v1.SpaceName; +import com.google.common.base.Strings; + +public class AsyncListCatalogsPaged { + + public static void main(String[] args) throws Exception { + asyncListCatalogsPaged(); + } + + public static void asyncListCatalogsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ListCatalogsRequest request = + ListCatalogsRequest.newBuilder() + .setParent(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListCatalogsResponse response = designCenterClient.listCatalogsCallable().call(request); + for (Catalog element : response.getCatalogsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END designcenter_v1_generated_DesignCenter_ListCatalogs_Paged_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcatalogs/SyncListCatalogs.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcatalogs/SyncListCatalogs.java new file mode 100644 index 000000000000..2366381735db --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcatalogs/SyncListCatalogs.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ListCatalogs_sync] +import com.google.cloud.designcenter.v1.Catalog; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.ListCatalogsRequest; +import com.google.cloud.designcenter.v1.SpaceName; + +public class SyncListCatalogs { + + public static void main(String[] args) throws Exception { + syncListCatalogs(); + } + + public static void syncListCatalogs() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ListCatalogsRequest request = + ListCatalogsRequest.newBuilder() + .setParent(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (Catalog element : designCenterClient.listCatalogs(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END designcenter_v1_generated_DesignCenter_ListCatalogs_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcatalogs/SyncListCatalogsSpacename.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcatalogs/SyncListCatalogsSpacename.java new file mode 100644 index 000000000000..afeed37ba660 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcatalogs/SyncListCatalogsSpacename.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ListCatalogs_Spacename_sync] +import com.google.cloud.designcenter.v1.Catalog; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.SpaceName; + +public class SyncListCatalogsSpacename { + + public static void main(String[] args) throws Exception { + syncListCatalogsSpacename(); + } + + public static void syncListCatalogsSpacename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + SpaceName parent = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]"); + for (Catalog element : designCenterClient.listCatalogs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END designcenter_v1_generated_DesignCenter_ListCatalogs_Spacename_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcatalogs/SyncListCatalogsString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcatalogs/SyncListCatalogsString.java new file mode 100644 index 000000000000..9406b9d83ef2 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcatalogs/SyncListCatalogsString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ListCatalogs_String_sync] +import com.google.cloud.designcenter.v1.Catalog; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.SpaceName; + +public class SyncListCatalogsString { + + public static void main(String[] args) throws Exception { + syncListCatalogsString(); + } + + public static void syncListCatalogsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + String parent = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString(); + for (Catalog element : designCenterClient.listCatalogs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END designcenter_v1_generated_DesignCenter_ListCatalogs_String_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcatalogtemplaterevisions/AsyncListCatalogTemplateRevisions.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcatalogtemplaterevisions/AsyncListCatalogTemplateRevisions.java new file mode 100644 index 000000000000..3c4d54c52288 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcatalogtemplaterevisions/AsyncListCatalogTemplateRevisions.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ListCatalogTemplateRevisions_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.CatalogTemplateName; +import com.google.cloud.designcenter.v1.CatalogTemplateRevision; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsRequest; + +public class AsyncListCatalogTemplateRevisions { + + public static void main(String[] args) throws Exception { + asyncListCatalogTemplateRevisions(); + } + + public static void asyncListCatalogTemplateRevisions() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ListCatalogTemplateRevisionsRequest request = + ListCatalogTemplateRevisionsRequest.newBuilder() + .setParent( + CatalogTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + designCenterClient.listCatalogTemplateRevisionsPagedCallable().futureCall(request); + // Do something. + for (CatalogTemplateRevision element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END designcenter_v1_generated_DesignCenter_ListCatalogTemplateRevisions_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcatalogtemplaterevisions/AsyncListCatalogTemplateRevisionsPaged.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcatalogtemplaterevisions/AsyncListCatalogTemplateRevisionsPaged.java new file mode 100644 index 000000000000..9086733d8b9e --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcatalogtemplaterevisions/AsyncListCatalogTemplateRevisionsPaged.java @@ -0,0 +1,67 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ListCatalogTemplateRevisions_Paged_async] +import com.google.cloud.designcenter.v1.CatalogTemplateName; +import com.google.cloud.designcenter.v1.CatalogTemplateRevision; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsRequest; +import com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsResponse; +import com.google.common.base.Strings; + +public class AsyncListCatalogTemplateRevisionsPaged { + + public static void main(String[] args) throws Exception { + asyncListCatalogTemplateRevisionsPaged(); + } + + public static void asyncListCatalogTemplateRevisionsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ListCatalogTemplateRevisionsRequest request = + ListCatalogTemplateRevisionsRequest.newBuilder() + .setParent( + CatalogTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListCatalogTemplateRevisionsResponse response = + designCenterClient.listCatalogTemplateRevisionsCallable().call(request); + for (CatalogTemplateRevision element : response.getCatalogTemplateRevisionsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END designcenter_v1_generated_DesignCenter_ListCatalogTemplateRevisions_Paged_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcatalogtemplaterevisions/SyncListCatalogTemplateRevisions.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcatalogtemplaterevisions/SyncListCatalogTemplateRevisions.java new file mode 100644 index 000000000000..5ae85982cba0 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcatalogtemplaterevisions/SyncListCatalogTemplateRevisions.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ListCatalogTemplateRevisions_sync] +import com.google.cloud.designcenter.v1.CatalogTemplateName; +import com.google.cloud.designcenter.v1.CatalogTemplateRevision; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.ListCatalogTemplateRevisionsRequest; + +public class SyncListCatalogTemplateRevisions { + + public static void main(String[] args) throws Exception { + syncListCatalogTemplateRevisions(); + } + + public static void syncListCatalogTemplateRevisions() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ListCatalogTemplateRevisionsRequest request = + ListCatalogTemplateRevisionsRequest.newBuilder() + .setParent( + CatalogTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (CatalogTemplateRevision element : + designCenterClient.listCatalogTemplateRevisions(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END designcenter_v1_generated_DesignCenter_ListCatalogTemplateRevisions_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcatalogtemplaterevisions/SyncListCatalogTemplateRevisionsCatalogtemplatename.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcatalogtemplaterevisions/SyncListCatalogTemplateRevisionsCatalogtemplatename.java new file mode 100644 index 000000000000..7ceb8001e385 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcatalogtemplaterevisions/SyncListCatalogTemplateRevisionsCatalogtemplatename.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ListCatalogTemplateRevisions_Catalogtemplatename_sync] +import com.google.cloud.designcenter.v1.CatalogTemplateName; +import com.google.cloud.designcenter.v1.CatalogTemplateRevision; +import com.google.cloud.designcenter.v1.DesignCenterClient; + +public class SyncListCatalogTemplateRevisionsCatalogtemplatename { + + public static void main(String[] args) throws Exception { + syncListCatalogTemplateRevisionsCatalogtemplatename(); + } + + public static void syncListCatalogTemplateRevisionsCatalogtemplatename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + CatalogTemplateName parent = + CatalogTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]"); + for (CatalogTemplateRevision element : + designCenterClient.listCatalogTemplateRevisions(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END designcenter_v1_generated_DesignCenter_ListCatalogTemplateRevisions_Catalogtemplatename_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcatalogtemplaterevisions/SyncListCatalogTemplateRevisionsString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcatalogtemplaterevisions/SyncListCatalogTemplateRevisionsString.java new file mode 100644 index 000000000000..6a9f2d72f60f --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcatalogtemplaterevisions/SyncListCatalogTemplateRevisionsString.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ListCatalogTemplateRevisions_String_sync] +import com.google.cloud.designcenter.v1.CatalogTemplateName; +import com.google.cloud.designcenter.v1.CatalogTemplateRevision; +import com.google.cloud.designcenter.v1.DesignCenterClient; + +public class SyncListCatalogTemplateRevisionsString { + + public static void main(String[] args) throws Exception { + syncListCatalogTemplateRevisionsString(); + } + + public static void syncListCatalogTemplateRevisionsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + String parent = + CatalogTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[CATALOG_TEMPLATE]") + .toString(); + for (CatalogTemplateRevision element : + designCenterClient.listCatalogTemplateRevisions(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END designcenter_v1_generated_DesignCenter_ListCatalogTemplateRevisions_String_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcatalogtemplates/AsyncListCatalogTemplates.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcatalogtemplates/AsyncListCatalogTemplates.java new file mode 100644 index 000000000000..ac116265f440 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcatalogtemplates/AsyncListCatalogTemplates.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ListCatalogTemplates_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.CatalogName; +import com.google.cloud.designcenter.v1.CatalogTemplate; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.ListCatalogTemplatesRequest; + +public class AsyncListCatalogTemplates { + + public static void main(String[] args) throws Exception { + asyncListCatalogTemplates(); + } + + public static void asyncListCatalogTemplates() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ListCatalogTemplatesRequest request = + ListCatalogTemplatesRequest.newBuilder() + .setParent( + CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + designCenterClient.listCatalogTemplatesPagedCallable().futureCall(request); + // Do something. + for (CatalogTemplate element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END designcenter_v1_generated_DesignCenter_ListCatalogTemplates_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcatalogtemplates/AsyncListCatalogTemplatesPaged.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcatalogtemplates/AsyncListCatalogTemplatesPaged.java new file mode 100644 index 000000000000..7bb6bc408be1 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcatalogtemplates/AsyncListCatalogTemplatesPaged.java @@ -0,0 +1,65 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ListCatalogTemplates_Paged_async] +import com.google.cloud.designcenter.v1.CatalogName; +import com.google.cloud.designcenter.v1.CatalogTemplate; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.ListCatalogTemplatesRequest; +import com.google.cloud.designcenter.v1.ListCatalogTemplatesResponse; +import com.google.common.base.Strings; + +public class AsyncListCatalogTemplatesPaged { + + public static void main(String[] args) throws Exception { + asyncListCatalogTemplatesPaged(); + } + + public static void asyncListCatalogTemplatesPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ListCatalogTemplatesRequest request = + ListCatalogTemplatesRequest.newBuilder() + .setParent( + CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListCatalogTemplatesResponse response = + designCenterClient.listCatalogTemplatesCallable().call(request); + for (CatalogTemplate element : response.getCatalogTemplatesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END designcenter_v1_generated_DesignCenter_ListCatalogTemplates_Paged_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcatalogtemplates/SyncListCatalogTemplates.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcatalogtemplates/SyncListCatalogTemplates.java new file mode 100644 index 000000000000..bcd79f6e9ea6 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcatalogtemplates/SyncListCatalogTemplates.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ListCatalogTemplates_sync] +import com.google.cloud.designcenter.v1.CatalogName; +import com.google.cloud.designcenter.v1.CatalogTemplate; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.ListCatalogTemplatesRequest; + +public class SyncListCatalogTemplates { + + public static void main(String[] args) throws Exception { + syncListCatalogTemplates(); + } + + public static void syncListCatalogTemplates() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ListCatalogTemplatesRequest request = + ListCatalogTemplatesRequest.newBuilder() + .setParent( + CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (CatalogTemplate element : + designCenterClient.listCatalogTemplates(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END designcenter_v1_generated_DesignCenter_ListCatalogTemplates_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcatalogtemplates/SyncListCatalogTemplatesCatalogname.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcatalogtemplates/SyncListCatalogTemplatesCatalogname.java new file mode 100644 index 000000000000..dbda189a1bb9 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcatalogtemplates/SyncListCatalogTemplatesCatalogname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ListCatalogTemplates_Catalogname_sync] +import com.google.cloud.designcenter.v1.CatalogName; +import com.google.cloud.designcenter.v1.CatalogTemplate; +import com.google.cloud.designcenter.v1.DesignCenterClient; + +public class SyncListCatalogTemplatesCatalogname { + + public static void main(String[] args) throws Exception { + syncListCatalogTemplatesCatalogname(); + } + + public static void syncListCatalogTemplatesCatalogname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + CatalogName parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]"); + for (CatalogTemplate element : designCenterClient.listCatalogTemplates(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END designcenter_v1_generated_DesignCenter_ListCatalogTemplates_Catalogname_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcatalogtemplates/SyncListCatalogTemplatesString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcatalogtemplates/SyncListCatalogTemplatesString.java new file mode 100644 index 000000000000..2a7423752909 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcatalogtemplates/SyncListCatalogTemplatesString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ListCatalogTemplates_String_sync] +import com.google.cloud.designcenter.v1.CatalogName; +import com.google.cloud.designcenter.v1.CatalogTemplate; +import com.google.cloud.designcenter.v1.DesignCenterClient; + +public class SyncListCatalogTemplatesString { + + public static void main(String[] args) throws Exception { + syncListCatalogTemplatesString(); + } + + public static void syncListCatalogTemplatesString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + String parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]").toString(); + for (CatalogTemplate element : designCenterClient.listCatalogTemplates(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END designcenter_v1_generated_DesignCenter_ListCatalogTemplates_String_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcomponents/AsyncListComponents.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcomponents/AsyncListComponents.java new file mode 100644 index 000000000000..26c6b3a96241 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcomponents/AsyncListComponents.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ListComponents_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.ApplicationTemplateName; +import com.google.cloud.designcenter.v1.Component; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.ListComponentsRequest; + +public class AsyncListComponents { + + public static void main(String[] args) throws Exception { + asyncListComponents(); + } + + public static void asyncListComponents() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ListComponentsRequest request = + ListComponentsRequest.newBuilder() + .setParent( + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + designCenterClient.listComponentsPagedCallable().futureCall(request); + // Do something. + for (Component element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END designcenter_v1_generated_DesignCenter_ListComponents_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcomponents/AsyncListComponentsPaged.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcomponents/AsyncListComponentsPaged.java new file mode 100644 index 000000000000..f890a762a4ac --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcomponents/AsyncListComponentsPaged.java @@ -0,0 +1,66 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ListComponents_Paged_async] +import com.google.cloud.designcenter.v1.ApplicationTemplateName; +import com.google.cloud.designcenter.v1.Component; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.ListComponentsRequest; +import com.google.cloud.designcenter.v1.ListComponentsResponse; +import com.google.common.base.Strings; + +public class AsyncListComponentsPaged { + + public static void main(String[] args) throws Exception { + asyncListComponentsPaged(); + } + + public static void asyncListComponentsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ListComponentsRequest request = + ListComponentsRequest.newBuilder() + .setParent( + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListComponentsResponse response = designCenterClient.listComponentsCallable().call(request); + for (Component element : response.getComponentsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END designcenter_v1_generated_DesignCenter_ListComponents_Paged_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcomponents/SyncListComponents.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcomponents/SyncListComponents.java new file mode 100644 index 000000000000..7ab8b635794c --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcomponents/SyncListComponents.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ListComponents_sync] +import com.google.cloud.designcenter.v1.ApplicationTemplateName; +import com.google.cloud.designcenter.v1.Component; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.ListComponentsRequest; + +public class SyncListComponents { + + public static void main(String[] args) throws Exception { + syncListComponents(); + } + + public static void syncListComponents() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ListComponentsRequest request = + ListComponentsRequest.newBuilder() + .setParent( + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (Component element : designCenterClient.listComponents(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END designcenter_v1_generated_DesignCenter_ListComponents_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcomponents/SyncListComponentsApplicationtemplatename.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcomponents/SyncListComponentsApplicationtemplatename.java new file mode 100644 index 000000000000..fbc43233cdb0 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcomponents/SyncListComponentsApplicationtemplatename.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ListComponents_Applicationtemplatename_sync] +import com.google.cloud.designcenter.v1.ApplicationTemplateName; +import com.google.cloud.designcenter.v1.Component; +import com.google.cloud.designcenter.v1.DesignCenterClient; + +public class SyncListComponentsApplicationtemplatename { + + public static void main(String[] args) throws Exception { + syncListComponentsApplicationtemplatename(); + } + + public static void syncListComponentsApplicationtemplatename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ApplicationTemplateName parent = + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + for (Component element : designCenterClient.listComponents(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END designcenter_v1_generated_DesignCenter_ListComponents_Applicationtemplatename_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcomponents/SyncListComponentsString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcomponents/SyncListComponentsString.java new file mode 100644 index 000000000000..f5903c1b507b --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listcomponents/SyncListComponentsString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ListComponents_String_sync] +import com.google.cloud.designcenter.v1.ApplicationTemplateName; +import com.google.cloud.designcenter.v1.Component; +import com.google.cloud.designcenter.v1.DesignCenterClient; + +public class SyncListComponentsString { + + public static void main(String[] args) throws Exception { + syncListComponentsString(); + } + + public static void syncListComponentsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + String parent = + ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString(); + for (Component element : designCenterClient.listComponents(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END designcenter_v1_generated_DesignCenter_ListComponents_String_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listconnections/AsyncListConnections.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listconnections/AsyncListConnections.java new file mode 100644 index 000000000000..298526256ebc --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listconnections/AsyncListConnections.java @@ -0,0 +1,63 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ListConnections_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.ComponentName; +import com.google.cloud.designcenter.v1.Connection; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.ListConnectionsRequest; + +public class AsyncListConnections { + + public static void main(String[] args) throws Exception { + asyncListConnections(); + } + + public static void asyncListConnections() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ListConnectionsRequest request = + ListConnectionsRequest.newBuilder() + .setParent( + ComponentName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[COMPONENT]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + designCenterClient.listConnectionsPagedCallable().futureCall(request); + // Do something. + for (Connection element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END designcenter_v1_generated_DesignCenter_ListConnections_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listconnections/AsyncListConnectionsPaged.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listconnections/AsyncListConnectionsPaged.java new file mode 100644 index 000000000000..c610e8716293 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listconnections/AsyncListConnectionsPaged.java @@ -0,0 +1,71 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ListConnections_Paged_async] +import com.google.cloud.designcenter.v1.ComponentName; +import com.google.cloud.designcenter.v1.Connection; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.ListConnectionsRequest; +import com.google.cloud.designcenter.v1.ListConnectionsResponse; +import com.google.common.base.Strings; + +public class AsyncListConnectionsPaged { + + public static void main(String[] args) throws Exception { + asyncListConnectionsPaged(); + } + + public static void asyncListConnectionsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ListConnectionsRequest request = + ListConnectionsRequest.newBuilder() + .setParent( + ComponentName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[COMPONENT]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListConnectionsResponse response = + designCenterClient.listConnectionsCallable().call(request); + for (Connection element : response.getConnectionsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END designcenter_v1_generated_DesignCenter_ListConnections_Paged_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listconnections/SyncListConnections.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listconnections/SyncListConnections.java new file mode 100644 index 000000000000..898dd5c1a93a --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listconnections/SyncListConnections.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ListConnections_sync] +import com.google.cloud.designcenter.v1.ComponentName; +import com.google.cloud.designcenter.v1.Connection; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.ListConnectionsRequest; + +public class SyncListConnections { + + public static void main(String[] args) throws Exception { + syncListConnections(); + } + + public static void syncListConnections() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ListConnectionsRequest request = + ListConnectionsRequest.newBuilder() + .setParent( + ComponentName.of( + "[PROJECT]", + "[LOCATION]", + "[SPACE]", + "[APPLICATION_TEMPLATE]", + "[COMPONENT]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (Connection element : designCenterClient.listConnections(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END designcenter_v1_generated_DesignCenter_ListConnections_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listconnections/SyncListConnectionsComponentname.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listconnections/SyncListConnectionsComponentname.java new file mode 100644 index 000000000000..ed06b344b0c3 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listconnections/SyncListConnectionsComponentname.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ListConnections_Componentname_sync] +import com.google.cloud.designcenter.v1.ComponentName; +import com.google.cloud.designcenter.v1.Connection; +import com.google.cloud.designcenter.v1.DesignCenterClient; + +public class SyncListConnectionsComponentname { + + public static void main(String[] args) throws Exception { + syncListConnectionsComponentname(); + } + + public static void syncListConnectionsComponentname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ComponentName parent = + ComponentName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[COMPONENT]"); + for (Connection element : designCenterClient.listConnections(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END designcenter_v1_generated_DesignCenter_ListConnections_Componentname_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listconnections/SyncListConnectionsString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listconnections/SyncListConnectionsString.java new file mode 100644 index 000000000000..3e3cbc79289a --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listconnections/SyncListConnectionsString.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ListConnections_String_sync] +import com.google.cloud.designcenter.v1.ComponentName; +import com.google.cloud.designcenter.v1.Connection; +import com.google.cloud.designcenter.v1.DesignCenterClient; + +public class SyncListConnectionsString { + + public static void main(String[] args) throws Exception { + syncListConnectionsString(); + } + + public static void syncListConnectionsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + String parent = + ComponentName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]", "[COMPONENT]") + .toString(); + for (Connection element : designCenterClient.listConnections(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END designcenter_v1_generated_DesignCenter_ListConnections_String_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listlocations/AsyncListLocations.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listlocations/AsyncListLocations.java new file mode 100644 index 000000000000..375076a989eb --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listlocations/AsyncListLocations.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ListLocations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; + +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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + designCenterClient.listLocationsPagedCallable().futureCall(request); + // Do something. + for (Location element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END designcenter_v1_generated_DesignCenter_ListLocations_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listlocations/AsyncListLocationsPaged.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listlocations/AsyncListLocationsPaged.java new file mode 100644 index 000000000000..6f6978b7219e --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listlocations/AsyncListLocationsPaged.java @@ -0,0 +1,61 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ListLocations_Paged_async] +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListLocationsResponse response = designCenterClient.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 designcenter_v1_generated_DesignCenter_ListLocations_Paged_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listlocations/SyncListLocations.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listlocations/SyncListLocations.java new file mode 100644 index 000000000000..35edcb57badb --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listlocations/SyncListLocations.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ListLocations_sync] +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; + +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 (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Location element : designCenterClient.listLocations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END designcenter_v1_generated_DesignCenter_ListLocations_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listpolicies/AsyncListPolicies.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listpolicies/AsyncListPolicies.java new file mode 100644 index 000000000000..c61a829a44ef --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listpolicies/AsyncListPolicies.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ListPolicies_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.ApplicationTemplateName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.ListPoliciesRequest; +import com.google.cloud.designcenter.v1.Policy; + +public class AsyncListPolicies { + + public static void main(String[] args) throws Exception { + asyncListPolicies(); + } + + public static void asyncListPolicies() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ListPoliciesRequest request = + ListPoliciesRequest.newBuilder() + .setParent( + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = designCenterClient.listPoliciesPagedCallable().futureCall(request); + // Do something. + for (Policy element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END designcenter_v1_generated_DesignCenter_ListPolicies_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listpolicies/AsyncListPoliciesPaged.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listpolicies/AsyncListPoliciesPaged.java new file mode 100644 index 000000000000..2797133e29e8 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listpolicies/AsyncListPoliciesPaged.java @@ -0,0 +1,66 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ListPolicies_Paged_async] +import com.google.cloud.designcenter.v1.ApplicationTemplateName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.ListPoliciesRequest; +import com.google.cloud.designcenter.v1.ListPoliciesResponse; +import com.google.cloud.designcenter.v1.Policy; +import com.google.common.base.Strings; + +public class AsyncListPoliciesPaged { + + public static void main(String[] args) throws Exception { + asyncListPoliciesPaged(); + } + + public static void asyncListPoliciesPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ListPoliciesRequest request = + ListPoliciesRequest.newBuilder() + .setParent( + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListPoliciesResponse response = designCenterClient.listPoliciesCallable().call(request); + for (Policy element : response.getPoliciesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END designcenter_v1_generated_DesignCenter_ListPolicies_Paged_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listpolicies/SyncListPolicies.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listpolicies/SyncListPolicies.java new file mode 100644 index 000000000000..802933816431 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listpolicies/SyncListPolicies.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ListPolicies_sync] +import com.google.cloud.designcenter.v1.ApplicationTemplateName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.ListPoliciesRequest; +import com.google.cloud.designcenter.v1.Policy; + +public class SyncListPolicies { + + public static void main(String[] args) throws Exception { + syncListPolicies(); + } + + public static void syncListPolicies() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ListPoliciesRequest request = + ListPoliciesRequest.newBuilder() + .setParent( + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (Policy element : designCenterClient.listPolicies(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END designcenter_v1_generated_DesignCenter_ListPolicies_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listpolicies/SyncListPoliciesApplicationtemplatename.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listpolicies/SyncListPoliciesApplicationtemplatename.java new file mode 100644 index 000000000000..fe652afc9db6 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listpolicies/SyncListPoliciesApplicationtemplatename.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ListPolicies_Applicationtemplatename_sync] +import com.google.cloud.designcenter.v1.ApplicationTemplateName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.Policy; + +public class SyncListPoliciesApplicationtemplatename { + + public static void main(String[] args) throws Exception { + syncListPoliciesApplicationtemplatename(); + } + + public static void syncListPoliciesApplicationtemplatename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ApplicationTemplateName parent = + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + for (Policy element : designCenterClient.listPolicies(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END designcenter_v1_generated_DesignCenter_ListPolicies_Applicationtemplatename_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listpolicies/SyncListPoliciesString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listpolicies/SyncListPoliciesString.java new file mode 100644 index 000000000000..c96190018e86 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listpolicies/SyncListPoliciesString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ListPolicies_String_sync] +import com.google.cloud.designcenter.v1.ApplicationTemplateName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.Policy; + +public class SyncListPoliciesString { + + public static void main(String[] args) throws Exception { + syncListPoliciesString(); + } + + public static void syncListPoliciesString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + String parent = + ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString(); + for (Policy element : designCenterClient.listPolicies(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END designcenter_v1_generated_DesignCenter_ListPolicies_String_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listsharedtemplaterevisions/AsyncListSharedTemplateRevisions.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listsharedtemplaterevisions/AsyncListSharedTemplateRevisions.java new file mode 100644 index 000000000000..3b04356042fb --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listsharedtemplaterevisions/AsyncListSharedTemplateRevisions.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ListSharedTemplateRevisions_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsRequest; +import com.google.cloud.designcenter.v1.SharedTemplateName; +import com.google.cloud.designcenter.v1.SharedTemplateRevision; + +public class AsyncListSharedTemplateRevisions { + + public static void main(String[] args) throws Exception { + asyncListSharedTemplateRevisions(); + } + + public static void asyncListSharedTemplateRevisions() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ListSharedTemplateRevisionsRequest request = + ListSharedTemplateRevisionsRequest.newBuilder() + .setParent( + SharedTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[SHARED_TEMPLATE]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + designCenterClient.listSharedTemplateRevisionsPagedCallable().futureCall(request); + // Do something. + for (SharedTemplateRevision element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END designcenter_v1_generated_DesignCenter_ListSharedTemplateRevisions_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listsharedtemplaterevisions/AsyncListSharedTemplateRevisionsPaged.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listsharedtemplaterevisions/AsyncListSharedTemplateRevisionsPaged.java new file mode 100644 index 000000000000..6d1e323b84e9 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listsharedtemplaterevisions/AsyncListSharedTemplateRevisionsPaged.java @@ -0,0 +1,66 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ListSharedTemplateRevisions_Paged_async] +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsRequest; +import com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsResponse; +import com.google.cloud.designcenter.v1.SharedTemplateName; +import com.google.cloud.designcenter.v1.SharedTemplateRevision; +import com.google.common.base.Strings; + +public class AsyncListSharedTemplateRevisionsPaged { + + public static void main(String[] args) throws Exception { + asyncListSharedTemplateRevisionsPaged(); + } + + public static void asyncListSharedTemplateRevisionsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ListSharedTemplateRevisionsRequest request = + ListSharedTemplateRevisionsRequest.newBuilder() + .setParent( + SharedTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[SHARED_TEMPLATE]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListSharedTemplateRevisionsResponse response = + designCenterClient.listSharedTemplateRevisionsCallable().call(request); + for (SharedTemplateRevision element : response.getSharedTemplateRevisionsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END designcenter_v1_generated_DesignCenter_ListSharedTemplateRevisions_Paged_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listsharedtemplaterevisions/SyncListSharedTemplateRevisions.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listsharedtemplaterevisions/SyncListSharedTemplateRevisions.java new file mode 100644 index 000000000000..ed1e44393560 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listsharedtemplaterevisions/SyncListSharedTemplateRevisions.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ListSharedTemplateRevisions_sync] +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.ListSharedTemplateRevisionsRequest; +import com.google.cloud.designcenter.v1.SharedTemplateName; +import com.google.cloud.designcenter.v1.SharedTemplateRevision; + +public class SyncListSharedTemplateRevisions { + + public static void main(String[] args) throws Exception { + syncListSharedTemplateRevisions(); + } + + public static void syncListSharedTemplateRevisions() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ListSharedTemplateRevisionsRequest request = + ListSharedTemplateRevisionsRequest.newBuilder() + .setParent( + SharedTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[SHARED_TEMPLATE]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (SharedTemplateRevision element : + designCenterClient.listSharedTemplateRevisions(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END designcenter_v1_generated_DesignCenter_ListSharedTemplateRevisions_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listsharedtemplaterevisions/SyncListSharedTemplateRevisionsSharedtemplatename.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listsharedtemplaterevisions/SyncListSharedTemplateRevisionsSharedtemplatename.java new file mode 100644 index 000000000000..2e40aa81cd2e --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listsharedtemplaterevisions/SyncListSharedTemplateRevisionsSharedtemplatename.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ListSharedTemplateRevisions_Sharedtemplatename_sync] +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.SharedTemplateName; +import com.google.cloud.designcenter.v1.SharedTemplateRevision; + +public class SyncListSharedTemplateRevisionsSharedtemplatename { + + public static void main(String[] args) throws Exception { + syncListSharedTemplateRevisionsSharedtemplatename(); + } + + public static void syncListSharedTemplateRevisionsSharedtemplatename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + SharedTemplateName parent = + SharedTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[SHARED_TEMPLATE]"); + for (SharedTemplateRevision element : + designCenterClient.listSharedTemplateRevisions(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END designcenter_v1_generated_DesignCenter_ListSharedTemplateRevisions_Sharedtemplatename_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listsharedtemplaterevisions/SyncListSharedTemplateRevisionsString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listsharedtemplaterevisions/SyncListSharedTemplateRevisionsString.java new file mode 100644 index 000000000000..0c7ac38b2f20 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listsharedtemplaterevisions/SyncListSharedTemplateRevisionsString.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ListSharedTemplateRevisions_String_sync] +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.SharedTemplateName; +import com.google.cloud.designcenter.v1.SharedTemplateRevision; + +public class SyncListSharedTemplateRevisionsString { + + public static void main(String[] args) throws Exception { + syncListSharedTemplateRevisionsString(); + } + + public static void syncListSharedTemplateRevisionsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + String parent = + SharedTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[SHARED_TEMPLATE]") + .toString(); + for (SharedTemplateRevision element : + designCenterClient.listSharedTemplateRevisions(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END designcenter_v1_generated_DesignCenter_ListSharedTemplateRevisions_String_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listsharedtemplates/AsyncListSharedTemplates.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listsharedtemplates/AsyncListSharedTemplates.java new file mode 100644 index 000000000000..68378e5051bd --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listsharedtemplates/AsyncListSharedTemplates.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ListSharedTemplates_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.ListSharedTemplatesRequest; +import com.google.cloud.designcenter.v1.SharedTemplate; +import com.google.cloud.designcenter.v1.SpaceName; + +public class AsyncListSharedTemplates { + + public static void main(String[] args) throws Exception { + asyncListSharedTemplates(); + } + + public static void asyncListSharedTemplates() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ListSharedTemplatesRequest request = + ListSharedTemplatesRequest.newBuilder() + .setParent(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + designCenterClient.listSharedTemplatesPagedCallable().futureCall(request); + // Do something. + for (SharedTemplate element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END designcenter_v1_generated_DesignCenter_ListSharedTemplates_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listsharedtemplates/AsyncListSharedTemplatesPaged.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listsharedtemplates/AsyncListSharedTemplatesPaged.java new file mode 100644 index 000000000000..2635e6df2a09 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listsharedtemplates/AsyncListSharedTemplatesPaged.java @@ -0,0 +1,64 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ListSharedTemplates_Paged_async] +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.ListSharedTemplatesRequest; +import com.google.cloud.designcenter.v1.ListSharedTemplatesResponse; +import com.google.cloud.designcenter.v1.SharedTemplate; +import com.google.cloud.designcenter.v1.SpaceName; +import com.google.common.base.Strings; + +public class AsyncListSharedTemplatesPaged { + + public static void main(String[] args) throws Exception { + asyncListSharedTemplatesPaged(); + } + + public static void asyncListSharedTemplatesPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ListSharedTemplatesRequest request = + ListSharedTemplatesRequest.newBuilder() + .setParent(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListSharedTemplatesResponse response = + designCenterClient.listSharedTemplatesCallable().call(request); + for (SharedTemplate element : response.getSharedTemplatesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END designcenter_v1_generated_DesignCenter_ListSharedTemplates_Paged_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listsharedtemplates/SyncListSharedTemplates.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listsharedtemplates/SyncListSharedTemplates.java new file mode 100644 index 000000000000..e68f0aa40839 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listsharedtemplates/SyncListSharedTemplates.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ListSharedTemplates_sync] +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.ListSharedTemplatesRequest; +import com.google.cloud.designcenter.v1.SharedTemplate; +import com.google.cloud.designcenter.v1.SpaceName; + +public class SyncListSharedTemplates { + + public static void main(String[] args) throws Exception { + syncListSharedTemplates(); + } + + public static void syncListSharedTemplates() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ListSharedTemplatesRequest request = + ListSharedTemplatesRequest.newBuilder() + .setParent(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (SharedTemplate element : designCenterClient.listSharedTemplates(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END designcenter_v1_generated_DesignCenter_ListSharedTemplates_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listsharedtemplates/SyncListSharedTemplatesSpacename.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listsharedtemplates/SyncListSharedTemplatesSpacename.java new file mode 100644 index 000000000000..e425c86afcad --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listsharedtemplates/SyncListSharedTemplatesSpacename.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ListSharedTemplates_Spacename_sync] +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.SharedTemplate; +import com.google.cloud.designcenter.v1.SpaceName; + +public class SyncListSharedTemplatesSpacename { + + public static void main(String[] args) throws Exception { + syncListSharedTemplatesSpacename(); + } + + public static void syncListSharedTemplatesSpacename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + SpaceName parent = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]"); + for (SharedTemplate element : designCenterClient.listSharedTemplates(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END designcenter_v1_generated_DesignCenter_ListSharedTemplates_Spacename_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listsharedtemplates/SyncListSharedTemplatesString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listsharedtemplates/SyncListSharedTemplatesString.java new file mode 100644 index 000000000000..49bd919cfc19 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listsharedtemplates/SyncListSharedTemplatesString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ListSharedTemplates_String_sync] +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.SharedTemplate; +import com.google.cloud.designcenter.v1.SpaceName; + +public class SyncListSharedTemplatesString { + + public static void main(String[] args) throws Exception { + syncListSharedTemplatesString(); + } + + public static void syncListSharedTemplatesString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + String parent = SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString(); + for (SharedTemplate element : designCenterClient.listSharedTemplates(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END designcenter_v1_generated_DesignCenter_ListSharedTemplates_String_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listshares/AsyncListShares.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listshares/AsyncListShares.java new file mode 100644 index 000000000000..085525820cae --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listshares/AsyncListShares.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ListShares_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.CatalogName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.ListSharesRequest; +import com.google.cloud.designcenter.v1.Share; + +public class AsyncListShares { + + public static void main(String[] args) throws Exception { + asyncListShares(); + } + + public static void asyncListShares() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ListSharesRequest request = + ListSharesRequest.newBuilder() + .setParent( + CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = designCenterClient.listSharesPagedCallable().futureCall(request); + // Do something. + for (Share element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END designcenter_v1_generated_DesignCenter_ListShares_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listshares/AsyncListSharesPaged.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listshares/AsyncListSharesPaged.java new file mode 100644 index 000000000000..e1f8e762bd7b --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listshares/AsyncListSharesPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ListShares_Paged_async] +import com.google.cloud.designcenter.v1.CatalogName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.ListSharesRequest; +import com.google.cloud.designcenter.v1.ListSharesResponse; +import com.google.cloud.designcenter.v1.Share; +import com.google.common.base.Strings; + +public class AsyncListSharesPaged { + + public static void main(String[] args) throws Exception { + asyncListSharesPaged(); + } + + public static void asyncListSharesPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ListSharesRequest request = + ListSharesRequest.newBuilder() + .setParent( + CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListSharesResponse response = designCenterClient.listSharesCallable().call(request); + for (Share element : response.getSharesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END designcenter_v1_generated_DesignCenter_ListShares_Paged_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listshares/SyncListShares.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listshares/SyncListShares.java new file mode 100644 index 000000000000..daf405023e01 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listshares/SyncListShares.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ListShares_sync] +import com.google.cloud.designcenter.v1.CatalogName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.ListSharesRequest; +import com.google.cloud.designcenter.v1.Share; + +public class SyncListShares { + + public static void main(String[] args) throws Exception { + syncListShares(); + } + + public static void syncListShares() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ListSharesRequest request = + ListSharesRequest.newBuilder() + .setParent( + CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .build(); + for (Share element : designCenterClient.listShares(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END designcenter_v1_generated_DesignCenter_ListShares_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listshares/SyncListSharesCatalogname.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listshares/SyncListSharesCatalogname.java new file mode 100644 index 000000000000..c506921da3e1 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listshares/SyncListSharesCatalogname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ListShares_Catalogname_sync] +import com.google.cloud.designcenter.v1.CatalogName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.Share; + +public class SyncListSharesCatalogname { + + public static void main(String[] args) throws Exception { + syncListSharesCatalogname(); + } + + public static void syncListSharesCatalogname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + CatalogName parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]"); + for (Share element : designCenterClient.listShares(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END designcenter_v1_generated_DesignCenter_ListShares_Catalogname_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listshares/SyncListSharesString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listshares/SyncListSharesString.java new file mode 100644 index 000000000000..6eb71f551187 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listshares/SyncListSharesString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ListShares_String_sync] +import com.google.cloud.designcenter.v1.CatalogName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.Share; + +public class SyncListSharesString { + + public static void main(String[] args) throws Exception { + syncListSharesString(); + } + + public static void syncListSharesString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + String parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]").toString(); + for (Share element : designCenterClient.listShares(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END designcenter_v1_generated_DesignCenter_ListShares_String_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listspaces/AsyncListSpaces.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listspaces/AsyncListSpaces.java new file mode 100644 index 000000000000..1796e54c34b2 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listspaces/AsyncListSpaces.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ListSpaces_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.ListSpacesRequest; +import com.google.cloud.designcenter.v1.LocationName; +import com.google.cloud.designcenter.v1.Space; + +public class AsyncListSpaces { + + public static void main(String[] args) throws Exception { + asyncListSpaces(); + } + + public static void asyncListSpaces() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ListSpacesRequest request = + ListSpacesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = designCenterClient.listSpacesPagedCallable().futureCall(request); + // Do something. + for (Space element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END designcenter_v1_generated_DesignCenter_ListSpaces_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listspaces/AsyncListSpacesPaged.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listspaces/AsyncListSpacesPaged.java new file mode 100644 index 000000000000..3aab58baea29 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listspaces/AsyncListSpacesPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ListSpaces_Paged_async] +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.ListSpacesRequest; +import com.google.cloud.designcenter.v1.ListSpacesResponse; +import com.google.cloud.designcenter.v1.LocationName; +import com.google.cloud.designcenter.v1.Space; +import com.google.common.base.Strings; + +public class AsyncListSpacesPaged { + + public static void main(String[] args) throws Exception { + asyncListSpacesPaged(); + } + + public static void asyncListSpacesPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ListSpacesRequest request = + ListSpacesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListSpacesResponse response = designCenterClient.listSpacesCallable().call(request); + for (Space element : response.getSpacesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END designcenter_v1_generated_DesignCenter_ListSpaces_Paged_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listspaces/SyncListSpaces.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listspaces/SyncListSpaces.java new file mode 100644 index 000000000000..622210fef6b6 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listspaces/SyncListSpaces.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ListSpaces_sync] +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.ListSpacesRequest; +import com.google.cloud.designcenter.v1.LocationName; +import com.google.cloud.designcenter.v1.Space; + +public class SyncListSpaces { + + public static void main(String[] args) throws Exception { + syncListSpaces(); + } + + public static void syncListSpaces() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ListSpacesRequest request = + ListSpacesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (Space element : designCenterClient.listSpaces(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END designcenter_v1_generated_DesignCenter_ListSpaces_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listspaces/SyncListSpacesLocationname.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listspaces/SyncListSpacesLocationname.java new file mode 100644 index 000000000000..d5230ece6408 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listspaces/SyncListSpacesLocationname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ListSpaces_Locationname_sync] +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.LocationName; +import com.google.cloud.designcenter.v1.Space; + +public class SyncListSpacesLocationname { + + public static void main(String[] args) throws Exception { + syncListSpacesLocationname(); + } + + public static void syncListSpacesLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (Space element : designCenterClient.listSpaces(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END designcenter_v1_generated_DesignCenter_ListSpaces_Locationname_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listspaces/SyncListSpacesString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listspaces/SyncListSpacesString.java new file mode 100644 index 000000000000..191612ec42a5 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/listspaces/SyncListSpacesString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_ListSpaces_String_sync] +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.LocationName; +import com.google.cloud.designcenter.v1.Space; + +public class SyncListSpacesString { + + public static void main(String[] args) throws Exception { + syncListSpacesString(); + } + + public static void syncListSpacesString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (Space element : designCenterClient.listSpaces(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END designcenter_v1_generated_DesignCenter_ListSpaces_String_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/previewapplication/AsyncPreviewApplication.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/previewapplication/AsyncPreviewApplication.java new file mode 100644 index 000000000000..f00161ea6cbf --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/previewapplication/AsyncPreviewApplication.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_PreviewApplication_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.ApplicationName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.PreviewApplicationRequest; +import com.google.longrunning.Operation; + +public class AsyncPreviewApplication { + + public static void main(String[] args) throws Exception { + asyncPreviewApplication(); + } + + public static void asyncPreviewApplication() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + PreviewApplicationRequest request = + PreviewApplicationRequest.newBuilder() + .setName( + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]") + .toString()) + .setWorkerPool("workerPool-384405318") + .setServiceAccount("serviceAccount1079137720") + .build(); + ApiFuture future = + designCenterClient.previewApplicationCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_PreviewApplication_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/previewapplication/AsyncPreviewApplicationLRO.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/previewapplication/AsyncPreviewApplicationLRO.java new file mode 100644 index 000000000000..6900b9e231d1 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/previewapplication/AsyncPreviewApplicationLRO.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_PreviewApplication_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.designcenter.v1.ApplicationName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.OperationMetadata; +import com.google.cloud.designcenter.v1.PreviewApplicationRequest; +import com.google.cloud.designcenter.v1.PreviewApplicationResponse; + +public class AsyncPreviewApplicationLRO { + + public static void main(String[] args) throws Exception { + asyncPreviewApplicationLRO(); + } + + public static void asyncPreviewApplicationLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + PreviewApplicationRequest request = + PreviewApplicationRequest.newBuilder() + .setName( + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]") + .toString()) + .setWorkerPool("workerPool-384405318") + .setServiceAccount("serviceAccount1079137720") + .build(); + OperationFuture future = + designCenterClient.previewApplicationOperationCallable().futureCall(request); + // Do something. + PreviewApplicationResponse response = future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_PreviewApplication_LRO_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/previewapplication/SyncPreviewApplication.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/previewapplication/SyncPreviewApplication.java new file mode 100644 index 000000000000..bd3c3a3e2553 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/previewapplication/SyncPreviewApplication.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_PreviewApplication_sync] +import com.google.cloud.designcenter.v1.ApplicationName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.PreviewApplicationRequest; +import com.google.cloud.designcenter.v1.PreviewApplicationResponse; + +public class SyncPreviewApplication { + + public static void main(String[] args) throws Exception { + syncPreviewApplication(); + } + + public static void syncPreviewApplication() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + PreviewApplicationRequest request = + PreviewApplicationRequest.newBuilder() + .setName( + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]") + .toString()) + .setWorkerPool("workerPool-384405318") + .setServiceAccount("serviceAccount1079137720") + .build(); + PreviewApplicationResponse response = + designCenterClient.previewApplicationAsync(request).get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_PreviewApplication_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/previewapplication/SyncPreviewApplicationApplicationname.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/previewapplication/SyncPreviewApplicationApplicationname.java new file mode 100644 index 000000000000..28ac9e01b835 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/previewapplication/SyncPreviewApplicationApplicationname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_PreviewApplication_Applicationname_sync] +import com.google.cloud.designcenter.v1.ApplicationName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.PreviewApplicationResponse; + +public class SyncPreviewApplicationApplicationname { + + public static void main(String[] args) throws Exception { + syncPreviewApplicationApplicationname(); + } + + public static void syncPreviewApplicationApplicationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ApplicationName name = + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]"); + PreviewApplicationResponse response = designCenterClient.previewApplicationAsync(name).get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_PreviewApplication_Applicationname_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/previewapplication/SyncPreviewApplicationString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/previewapplication/SyncPreviewApplicationString.java new file mode 100644 index 000000000000..52749cc5929f --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/previewapplication/SyncPreviewApplicationString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_PreviewApplication_String_sync] +import com.google.cloud.designcenter.v1.ApplicationName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.PreviewApplicationResponse; + +public class SyncPreviewApplicationString { + + public static void main(String[] args) throws Exception { + syncPreviewApplicationString(); + } + + public static void syncPreviewApplicationString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + String name = + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]").toString(); + PreviewApplicationResponse response = designCenterClient.previewApplicationAsync(name).get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_PreviewApplication_String_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/recommendiamroles/AsyncRecommendIAMRoles.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/recommendiamroles/AsyncRecommendIAMRoles.java new file mode 100644 index 000000000000..120a90e8d559 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/recommendiamroles/AsyncRecommendIAMRoles.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_RecommendIAMRoles_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.ApplicationName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.RecommendIAMRolesRequest; +import com.google.longrunning.Operation; + +public class AsyncRecommendIAMRoles { + + public static void main(String[] args) throws Exception { + asyncRecommendIAMRoles(); + } + + public static void asyncRecommendIAMRoles() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + RecommendIAMRolesRequest request = + RecommendIAMRolesRequest.newBuilder() + .setName( + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]") + .toString()) + .build(); + ApiFuture future = + designCenterClient.recommendIAMRolesCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_RecommendIAMRoles_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/recommendiamroles/AsyncRecommendIAMRolesLRO.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/recommendiamroles/AsyncRecommendIAMRolesLRO.java new file mode 100644 index 000000000000..b18000cc18d3 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/recommendiamroles/AsyncRecommendIAMRolesLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_RecommendIAMRoles_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.designcenter.v1.ApplicationName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.OperationMetadata; +import com.google.cloud.designcenter.v1.RecommendIAMRolesRequest; +import com.google.cloud.designcenter.v1.RecommendIAMRolesResponse; + +public class AsyncRecommendIAMRolesLRO { + + public static void main(String[] args) throws Exception { + asyncRecommendIAMRolesLRO(); + } + + public static void asyncRecommendIAMRolesLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + RecommendIAMRolesRequest request = + RecommendIAMRolesRequest.newBuilder() + .setName( + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]") + .toString()) + .build(); + OperationFuture future = + designCenterClient.recommendIAMRolesOperationCallable().futureCall(request); + // Do something. + RecommendIAMRolesResponse response = future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_RecommendIAMRoles_LRO_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/recommendiamroles/SyncRecommendIAMRoles.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/recommendiamroles/SyncRecommendIAMRoles.java new file mode 100644 index 000000000000..6a7c904a808d --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/recommendiamroles/SyncRecommendIAMRoles.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_RecommendIAMRoles_sync] +import com.google.cloud.designcenter.v1.ApplicationName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.RecommendIAMRolesRequest; +import com.google.cloud.designcenter.v1.RecommendIAMRolesResponse; + +public class SyncRecommendIAMRoles { + + public static void main(String[] args) throws Exception { + syncRecommendIAMRoles(); + } + + public static void syncRecommendIAMRoles() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + RecommendIAMRolesRequest request = + RecommendIAMRolesRequest.newBuilder() + .setName( + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]") + .toString()) + .build(); + RecommendIAMRolesResponse response = designCenterClient.recommendIAMRolesAsync(request).get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_RecommendIAMRoles_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/recommendiamroles/SyncRecommendIAMRolesApplicationname.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/recommendiamroles/SyncRecommendIAMRolesApplicationname.java new file mode 100644 index 000000000000..8f4c0e93dedc --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/recommendiamroles/SyncRecommendIAMRolesApplicationname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_RecommendIAMRoles_Applicationname_sync] +import com.google.cloud.designcenter.v1.ApplicationName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.RecommendIAMRolesResponse; + +public class SyncRecommendIAMRolesApplicationname { + + public static void main(String[] args) throws Exception { + syncRecommendIAMRolesApplicationname(); + } + + public static void syncRecommendIAMRolesApplicationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ApplicationName name = + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]"); + RecommendIAMRolesResponse response = designCenterClient.recommendIAMRolesAsync(name).get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_RecommendIAMRoles_Applicationname_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/recommendiamroles/SyncRecommendIAMRolesString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/recommendiamroles/SyncRecommendIAMRolesString.java new file mode 100644 index 000000000000..2651b7bfed32 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/recommendiamroles/SyncRecommendIAMRolesString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_RecommendIAMRoles_String_sync] +import com.google.cloud.designcenter.v1.ApplicationName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.RecommendIAMRolesResponse; + +public class SyncRecommendIAMRolesString { + + public static void main(String[] args) throws Exception { + syncRecommendIAMRolesString(); + } + + public static void syncRecommendIAMRolesString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + String name = + ApplicationName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION]").toString(); + RecommendIAMRolesResponse response = designCenterClient.recommendIAMRolesAsync(name).get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_RecommendIAMRoles_String_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/registerapphubapplicationresources/AsyncRegisterAppHubApplicationResources.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/registerapphubapplicationresources/AsyncRegisterAppHubApplicationResources.java new file mode 100644 index 000000000000..2aa0324a77d3 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/registerapphubapplicationresources/AsyncRegisterAppHubApplicationResources.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_RegisterAppHubApplicationResources_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.LocationName; +import com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesRequest; +import com.google.longrunning.Operation; + +public class AsyncRegisterAppHubApplicationResources { + + public static void main(String[] args) throws Exception { + asyncRegisterAppHubApplicationResources(); + } + + public static void asyncRegisterAppHubApplicationResources() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + RegisterAppHubApplicationResourcesRequest request = + RegisterAppHubApplicationResourcesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setApphubApplication("apphubApplication104302972") + .build(); + ApiFuture future = + designCenterClient.registerAppHubApplicationResourcesCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_RegisterAppHubApplicationResources_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/registerapphubapplicationresources/AsyncRegisterAppHubApplicationResourcesLRO.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/registerapphubapplicationresources/AsyncRegisterAppHubApplicationResourcesLRO.java new file mode 100644 index 000000000000..15b48793a751 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/registerapphubapplicationresources/AsyncRegisterAppHubApplicationResourcesLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_RegisterAppHubApplicationResources_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.LocationName; +import com.google.cloud.designcenter.v1.OperationMetadata; +import com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesRequest; +import com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesResponse; + +public class AsyncRegisterAppHubApplicationResourcesLRO { + + public static void main(String[] args) throws Exception { + asyncRegisterAppHubApplicationResourcesLRO(); + } + + public static void asyncRegisterAppHubApplicationResourcesLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + RegisterAppHubApplicationResourcesRequest request = + RegisterAppHubApplicationResourcesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setApphubApplication("apphubApplication104302972") + .build(); + OperationFuture future = + designCenterClient + .registerAppHubApplicationResourcesOperationCallable() + .futureCall(request); + // Do something. + RegisterAppHubApplicationResourcesResponse response = future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_RegisterAppHubApplicationResources_LRO_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/registerapphubapplicationresources/SyncRegisterAppHubApplicationResources.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/registerapphubapplicationresources/SyncRegisterAppHubApplicationResources.java new file mode 100644 index 000000000000..9b90339e4365 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/registerapphubapplicationresources/SyncRegisterAppHubApplicationResources.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_RegisterAppHubApplicationResources_sync] +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.LocationName; +import com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesRequest; +import com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesResponse; + +public class SyncRegisterAppHubApplicationResources { + + public static void main(String[] args) throws Exception { + syncRegisterAppHubApplicationResources(); + } + + public static void syncRegisterAppHubApplicationResources() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + RegisterAppHubApplicationResourcesRequest request = + RegisterAppHubApplicationResourcesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setApphubApplication("apphubApplication104302972") + .build(); + RegisterAppHubApplicationResourcesResponse response = + designCenterClient.registerAppHubApplicationResourcesAsync(request).get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_RegisterAppHubApplicationResources_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/registerapphubapplicationresources/SyncRegisterAppHubApplicationResourcesLocationnameStringString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/registerapphubapplicationresources/SyncRegisterAppHubApplicationResourcesLocationnameStringString.java new file mode 100644 index 000000000000..00ca58e35fdb --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/registerapphubapplicationresources/SyncRegisterAppHubApplicationResourcesLocationnameStringString.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_RegisterAppHubApplicationResources_LocationnameStringString_sync] +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.LocationName; +import com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesResponse; + +public class SyncRegisterAppHubApplicationResourcesLocationnameStringString { + + public static void main(String[] args) throws Exception { + syncRegisterAppHubApplicationResourcesLocationnameStringString(); + } + + public static void syncRegisterAppHubApplicationResourcesLocationnameStringString() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String apphubApplication = "apphubApplication104302972"; + String tfstateContent = "tfstateContent-1547770342"; + RegisterAppHubApplicationResourcesResponse response = + designCenterClient + .registerAppHubApplicationResourcesAsync(parent, apphubApplication, tfstateContent) + .get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_RegisterAppHubApplicationResources_LocationnameStringString_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/registerapphubapplicationresources/SyncRegisterAppHubApplicationResourcesStringStringString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/registerapphubapplicationresources/SyncRegisterAppHubApplicationResourcesStringStringString.java new file mode 100644 index 000000000000..4b5f57eb69c0 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/registerapphubapplicationresources/SyncRegisterAppHubApplicationResourcesStringStringString.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_RegisterAppHubApplicationResources_StringStringString_sync] +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.LocationName; +import com.google.cloud.designcenter.v1.RegisterAppHubApplicationResourcesResponse; + +public class SyncRegisterAppHubApplicationResourcesStringStringString { + + public static void main(String[] args) throws Exception { + syncRegisterAppHubApplicationResourcesStringStringString(); + } + + public static void syncRegisterAppHubApplicationResourcesStringStringString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + String apphubApplication = "apphubApplication104302972"; + String tfstateContent = "tfstateContent-1547770342"; + RegisterAppHubApplicationResourcesResponse response = + designCenterClient + .registerAppHubApplicationResourcesAsync(parent, apphubApplication, tfstateContent) + .get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_RegisterAppHubApplicationResources_StringStringString_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/setiampolicy/AsyncSetIamPolicy.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/setiampolicy/AsyncSetIamPolicy.java new file mode 100644 index 000000000000..e6b97ca38b3b --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/setiampolicy/AsyncSetIamPolicy.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_SetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.SpaceName; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; + +public class AsyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncSetIamPolicy(); + } + + public static void asyncSetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = designCenterClient.setIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_SetIamPolicy_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/setiampolicy/SyncSetIamPolicy.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/setiampolicy/SyncSetIamPolicy.java new file mode 100644 index 000000000000..4504777d95fb --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/setiampolicy/SyncSetIamPolicy.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_SetIamPolicy_sync] +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.SpaceName; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; + +public class SyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + syncSetIamPolicy(); + } + + public static void syncSetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Policy response = designCenterClient.setIamPolicy(request); + } + } +} +// [END designcenter_v1_generated_DesignCenter_SetIamPolicy_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/snapshotapplicationtemplate/AsyncSnapshotApplicationTemplate.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/snapshotapplicationtemplate/AsyncSnapshotApplicationTemplate.java new file mode 100644 index 000000000000..99afb831a5f9 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/snapshotapplicationtemplate/AsyncSnapshotApplicationTemplate.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_SnapshotApplicationTemplate_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.ApplicationTemplateName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.SnapshotApplicationTemplateRequest; +import com.google.longrunning.Operation; + +public class AsyncSnapshotApplicationTemplate { + + public static void main(String[] args) throws Exception { + asyncSnapshotApplicationTemplate(); + } + + public static void asyncSnapshotApplicationTemplate() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + SnapshotApplicationTemplateRequest request = + SnapshotApplicationTemplateRequest.newBuilder() + .setName( + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString()) + .build(); + ApiFuture future = + designCenterClient.snapshotApplicationTemplateCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_SnapshotApplicationTemplate_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/snapshotapplicationtemplate/AsyncSnapshotApplicationTemplateLRO.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/snapshotapplicationtemplate/AsyncSnapshotApplicationTemplateLRO.java new file mode 100644 index 000000000000..47426122079a --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/snapshotapplicationtemplate/AsyncSnapshotApplicationTemplateLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_SnapshotApplicationTemplate_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.designcenter.v1.ApplicationTemplateName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.OperationMetadata; +import com.google.cloud.designcenter.v1.SnapshotApplicationTemplateRequest; +import com.google.cloud.designcenter.v1.SnapshotApplicationTemplateResponse; + +public class AsyncSnapshotApplicationTemplateLRO { + + public static void main(String[] args) throws Exception { + asyncSnapshotApplicationTemplateLRO(); + } + + public static void asyncSnapshotApplicationTemplateLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + SnapshotApplicationTemplateRequest request = + SnapshotApplicationTemplateRequest.newBuilder() + .setName( + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString()) + .build(); + OperationFuture future = + designCenterClient.snapshotApplicationTemplateOperationCallable().futureCall(request); + // Do something. + SnapshotApplicationTemplateResponse response = future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_SnapshotApplicationTemplate_LRO_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/snapshotapplicationtemplate/SyncSnapshotApplicationTemplate.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/snapshotapplicationtemplate/SyncSnapshotApplicationTemplate.java new file mode 100644 index 000000000000..9c491fe32adf --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/snapshotapplicationtemplate/SyncSnapshotApplicationTemplate.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_SnapshotApplicationTemplate_sync] +import com.google.cloud.designcenter.v1.ApplicationTemplateName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.SnapshotApplicationTemplateRequest; +import com.google.cloud.designcenter.v1.SnapshotApplicationTemplateResponse; + +public class SyncSnapshotApplicationTemplate { + + public static void main(String[] args) throws Exception { + syncSnapshotApplicationTemplate(); + } + + public static void syncSnapshotApplicationTemplate() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + SnapshotApplicationTemplateRequest request = + SnapshotApplicationTemplateRequest.newBuilder() + .setName( + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString()) + .build(); + SnapshotApplicationTemplateResponse response = + designCenterClient.snapshotApplicationTemplateAsync(request).get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_SnapshotApplicationTemplate_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/snapshotapplicationtemplate/SyncSnapshotApplicationTemplateApplicationtemplatename.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/snapshotapplicationtemplate/SyncSnapshotApplicationTemplateApplicationtemplatename.java new file mode 100644 index 000000000000..73bd039fd084 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/snapshotapplicationtemplate/SyncSnapshotApplicationTemplateApplicationtemplatename.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_SnapshotApplicationTemplate_Applicationtemplatename_sync] +import com.google.cloud.designcenter.v1.ApplicationTemplateName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.SnapshotApplicationTemplateResponse; + +public class SyncSnapshotApplicationTemplateApplicationtemplatename { + + public static void main(String[] args) throws Exception { + syncSnapshotApplicationTemplateApplicationtemplatename(); + } + + public static void syncSnapshotApplicationTemplateApplicationtemplatename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ApplicationTemplateName name = + ApplicationTemplateName.of( + "[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]"); + SnapshotApplicationTemplateResponse response = + designCenterClient.snapshotApplicationTemplateAsync(name).get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_SnapshotApplicationTemplate_Applicationtemplatename_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/snapshotapplicationtemplate/SyncSnapshotApplicationTemplateString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/snapshotapplicationtemplate/SyncSnapshotApplicationTemplateString.java new file mode 100644 index 000000000000..39663c4bb576 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/snapshotapplicationtemplate/SyncSnapshotApplicationTemplateString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_SnapshotApplicationTemplate_String_sync] +import com.google.cloud.designcenter.v1.ApplicationTemplateName; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.SnapshotApplicationTemplateResponse; + +public class SyncSnapshotApplicationTemplateString { + + public static void main(String[] args) throws Exception { + syncSnapshotApplicationTemplateString(); + } + + public static void syncSnapshotApplicationTemplateString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + String name = + ApplicationTemplateName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[APPLICATION_TEMPLATE]") + .toString(); + SnapshotApplicationTemplateResponse response = + designCenterClient.snapshotApplicationTemplateAsync(name).get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_SnapshotApplicationTemplate_String_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/syncshare/AsyncSyncShare.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/syncshare/AsyncSyncShare.java new file mode 100644 index 000000000000..0582647aa31e --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/syncshare/AsyncSyncShare.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_SyncShare_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.ShareName; +import com.google.cloud.designcenter.v1.SyncShareRequest; +import com.google.longrunning.Operation; + +public class AsyncSyncShare { + + public static void main(String[] args) throws Exception { + asyncSyncShare(); + } + + public static void asyncSyncShare() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + SyncShareRequest request = + SyncShareRequest.newBuilder() + .setName( + ShareName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[SHARE]") + .toString()) + .build(); + ApiFuture future = designCenterClient.syncShareCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_SyncShare_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/syncshare/AsyncSyncShareLRO.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/syncshare/AsyncSyncShareLRO.java new file mode 100644 index 000000000000..8c0a47f60529 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/syncshare/AsyncSyncShareLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_SyncShare_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.OperationMetadata; +import com.google.cloud.designcenter.v1.Share; +import com.google.cloud.designcenter.v1.ShareName; +import com.google.cloud.designcenter.v1.SyncShareRequest; + +public class AsyncSyncShareLRO { + + public static void main(String[] args) throws Exception { + asyncSyncShareLRO(); + } + + public static void asyncSyncShareLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + SyncShareRequest request = + SyncShareRequest.newBuilder() + .setName( + ShareName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[SHARE]") + .toString()) + .build(); + OperationFuture future = + designCenterClient.syncShareOperationCallable().futureCall(request); + // Do something. + Share response = future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_SyncShare_LRO_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/syncshare/SyncSyncShare.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/syncshare/SyncSyncShare.java new file mode 100644 index 000000000000..fede649524de --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/syncshare/SyncSyncShare.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_SyncShare_sync] +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.Share; +import com.google.cloud.designcenter.v1.ShareName; +import com.google.cloud.designcenter.v1.SyncShareRequest; + +public class SyncSyncShare { + + public static void main(String[] args) throws Exception { + syncSyncShare(); + } + + public static void syncSyncShare() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + SyncShareRequest request = + SyncShareRequest.newBuilder() + .setName( + ShareName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[SHARE]") + .toString()) + .build(); + Share response = designCenterClient.syncShareAsync(request).get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_SyncShare_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/syncshare/SyncSyncShareSharename.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/syncshare/SyncSyncShareSharename.java new file mode 100644 index 000000000000..f51a513d3195 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/syncshare/SyncSyncShareSharename.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_SyncShare_Sharename_sync] +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.Share; +import com.google.cloud.designcenter.v1.ShareName; + +public class SyncSyncShareSharename { + + public static void main(String[] args) throws Exception { + syncSyncShareSharename(); + } + + public static void syncSyncShareSharename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ShareName name = ShareName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[SHARE]"); + Share response = designCenterClient.syncShareAsync(name).get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_SyncShare_Sharename_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/syncshare/SyncSyncShareString.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/syncshare/SyncSyncShareString.java new file mode 100644 index 000000000000..4444d62388bb --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/syncshare/SyncSyncShareString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_SyncShare_String_sync] +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.Share; +import com.google.cloud.designcenter.v1.ShareName; + +public class SyncSyncShareString { + + public static void main(String[] args) throws Exception { + syncSyncShareString(); + } + + public static void syncSyncShareString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + String name = + ShareName.of("[PROJECT]", "[LOCATION]", "[SPACE]", "[CATALOG]", "[SHARE]").toString(); + Share response = designCenterClient.syncShareAsync(name).get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_SyncShare_String_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/testiampermissions/AsyncTestIamPermissions.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/testiampermissions/AsyncTestIamPermissions.java new file mode 100644 index 000000000000..9231ab3d2233 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/testiampermissions/AsyncTestIamPermissions.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_TestIamPermissions_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.SpaceName; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import java.util.ArrayList; + +public class AsyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + asyncTestIamPermissions(); + } + + public static void asyncTestIamPermissions() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + ApiFuture future = + designCenterClient.testIamPermissionsCallable().futureCall(request); + // Do something. + TestIamPermissionsResponse response = future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_TestIamPermissions_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/testiampermissions/SyncTestIamPermissions.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/testiampermissions/SyncTestIamPermissions.java new file mode 100644 index 000000000000..9269a95cb3ea --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/testiampermissions/SyncTestIamPermissions.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_TestIamPermissions_sync] +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.SpaceName; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import java.util.ArrayList; + +public class SyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + syncTestIamPermissions(); + } + + public static void syncTestIamPermissions() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(SpaceName.of("[PROJECT]", "[LOCATION]", "[SPACE]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + TestIamPermissionsResponse response = designCenterClient.testIamPermissions(request); + } + } +} +// [END designcenter_v1_generated_DesignCenter_TestIamPermissions_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updateapplication/AsyncUpdateApplication.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updateapplication/AsyncUpdateApplication.java new file mode 100644 index 000000000000..2dc865313a58 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updateapplication/AsyncUpdateApplication.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_UpdateApplication_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.Application; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.UpdateApplicationRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateApplication { + + public static void main(String[] args) throws Exception { + asyncUpdateApplication(); + } + + public static void asyncUpdateApplication() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + UpdateApplicationRequest request = + UpdateApplicationRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setApplication(Application.newBuilder().build()) + .build(); + ApiFuture future = + designCenterClient.updateApplicationCallable().futureCall(request); + // Do something. + Application response = future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_UpdateApplication_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updateapplication/SyncUpdateApplication.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updateapplication/SyncUpdateApplication.java new file mode 100644 index 000000000000..3c29932b91ae --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updateapplication/SyncUpdateApplication.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_UpdateApplication_sync] +import com.google.cloud.designcenter.v1.Application; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.UpdateApplicationRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateApplication { + + public static void main(String[] args) throws Exception { + syncUpdateApplication(); + } + + public static void syncUpdateApplication() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + UpdateApplicationRequest request = + UpdateApplicationRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setApplication(Application.newBuilder().build()) + .build(); + Application response = designCenterClient.updateApplication(request); + } + } +} +// [END designcenter_v1_generated_DesignCenter_UpdateApplication_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updateapplication/SyncUpdateApplicationApplicationFieldmask.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updateapplication/SyncUpdateApplicationApplicationFieldmask.java new file mode 100644 index 000000000000..0d1c350ad96a --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updateapplication/SyncUpdateApplicationApplicationFieldmask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_UpdateApplication_ApplicationFieldmask_sync] +import com.google.cloud.designcenter.v1.Application; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateApplicationApplicationFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateApplicationApplicationFieldmask(); + } + + public static void syncUpdateApplicationApplicationFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + Application application = Application.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Application response = designCenterClient.updateApplication(application, updateMask); + } + } +} +// [END designcenter_v1_generated_DesignCenter_UpdateApplication_ApplicationFieldmask_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updateapplicationtemplate/AsyncUpdateApplicationTemplate.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updateapplicationtemplate/AsyncUpdateApplicationTemplate.java new file mode 100644 index 000000000000..82935ad5b312 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updateapplicationtemplate/AsyncUpdateApplicationTemplate.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_UpdateApplicationTemplate_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.ApplicationTemplate; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.UpdateApplicationTemplateRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateApplicationTemplate { + + public static void main(String[] args) throws Exception { + asyncUpdateApplicationTemplate(); + } + + public static void asyncUpdateApplicationTemplate() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + UpdateApplicationTemplateRequest request = + UpdateApplicationTemplateRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setApplicationTemplate(ApplicationTemplate.newBuilder().build()) + .build(); + ApiFuture future = + designCenterClient.updateApplicationTemplateCallable().futureCall(request); + // Do something. + ApplicationTemplate response = future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_UpdateApplicationTemplate_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updateapplicationtemplate/SyncUpdateApplicationTemplate.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updateapplicationtemplate/SyncUpdateApplicationTemplate.java new file mode 100644 index 000000000000..015a8a9853af --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updateapplicationtemplate/SyncUpdateApplicationTemplate.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_UpdateApplicationTemplate_sync] +import com.google.cloud.designcenter.v1.ApplicationTemplate; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.UpdateApplicationTemplateRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateApplicationTemplate { + + public static void main(String[] args) throws Exception { + syncUpdateApplicationTemplate(); + } + + public static void syncUpdateApplicationTemplate() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + UpdateApplicationTemplateRequest request = + UpdateApplicationTemplateRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setApplicationTemplate(ApplicationTemplate.newBuilder().build()) + .build(); + ApplicationTemplate response = designCenterClient.updateApplicationTemplate(request); + } + } +} +// [END designcenter_v1_generated_DesignCenter_UpdateApplicationTemplate_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updateapplicationtemplate/SyncUpdateApplicationTemplateApplicationtemplateFieldmask.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updateapplicationtemplate/SyncUpdateApplicationTemplateApplicationtemplateFieldmask.java new file mode 100644 index 000000000000..5f8cf20b505d --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updateapplicationtemplate/SyncUpdateApplicationTemplateApplicationtemplateFieldmask.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_UpdateApplicationTemplate_ApplicationtemplateFieldmask_sync] +import com.google.cloud.designcenter.v1.ApplicationTemplate; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateApplicationTemplateApplicationtemplateFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateApplicationTemplateApplicationtemplateFieldmask(); + } + + public static void syncUpdateApplicationTemplateApplicationtemplateFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + ApplicationTemplate applicationTemplate = ApplicationTemplate.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + ApplicationTemplate response = + designCenterClient.updateApplicationTemplate(applicationTemplate, updateMask); + } + } +} +// [END designcenter_v1_generated_DesignCenter_UpdateApplicationTemplate_ApplicationtemplateFieldmask_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updatecatalog/AsyncUpdateCatalog.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updatecatalog/AsyncUpdateCatalog.java new file mode 100644 index 000000000000..e1aa2fe15c8e --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updatecatalog/AsyncUpdateCatalog.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_UpdateCatalog_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.Catalog; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.UpdateCatalogRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateCatalog { + + public static void main(String[] args) throws Exception { + asyncUpdateCatalog(); + } + + public static void asyncUpdateCatalog() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + UpdateCatalogRequest request = + UpdateCatalogRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setCatalog(Catalog.newBuilder().build()) + .build(); + ApiFuture future = designCenterClient.updateCatalogCallable().futureCall(request); + // Do something. + Catalog response = future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_UpdateCatalog_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updatecatalog/SyncUpdateCatalog.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updatecatalog/SyncUpdateCatalog.java new file mode 100644 index 000000000000..e3e1d49e796d --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updatecatalog/SyncUpdateCatalog.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_UpdateCatalog_sync] +import com.google.cloud.designcenter.v1.Catalog; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.UpdateCatalogRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateCatalog { + + public static void main(String[] args) throws Exception { + syncUpdateCatalog(); + } + + public static void syncUpdateCatalog() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + UpdateCatalogRequest request = + UpdateCatalogRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setCatalog(Catalog.newBuilder().build()) + .build(); + Catalog response = designCenterClient.updateCatalog(request); + } + } +} +// [END designcenter_v1_generated_DesignCenter_UpdateCatalog_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updatecatalog/SyncUpdateCatalogCatalogFieldmask.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updatecatalog/SyncUpdateCatalogCatalogFieldmask.java new file mode 100644 index 000000000000..b44de754c439 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updatecatalog/SyncUpdateCatalogCatalogFieldmask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_UpdateCatalog_CatalogFieldmask_sync] +import com.google.cloud.designcenter.v1.Catalog; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateCatalogCatalogFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateCatalogCatalogFieldmask(); + } + + public static void syncUpdateCatalogCatalogFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + Catalog catalog = Catalog.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Catalog response = designCenterClient.updateCatalog(catalog, updateMask); + } + } +} +// [END designcenter_v1_generated_DesignCenter_UpdateCatalog_CatalogFieldmask_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updatecatalogtemplate/AsyncUpdateCatalogTemplate.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updatecatalogtemplate/AsyncUpdateCatalogTemplate.java new file mode 100644 index 000000000000..a5029165baf9 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updatecatalogtemplate/AsyncUpdateCatalogTemplate.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_UpdateCatalogTemplate_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.CatalogTemplate; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.UpdateCatalogTemplateRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateCatalogTemplate { + + public static void main(String[] args) throws Exception { + asyncUpdateCatalogTemplate(); + } + + public static void asyncUpdateCatalogTemplate() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + UpdateCatalogTemplateRequest request = + UpdateCatalogTemplateRequest.newBuilder() + .setCatalogTemplate(CatalogTemplate.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + designCenterClient.updateCatalogTemplateCallable().futureCall(request); + // Do something. + CatalogTemplate response = future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_UpdateCatalogTemplate_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updatecatalogtemplate/SyncUpdateCatalogTemplate.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updatecatalogtemplate/SyncUpdateCatalogTemplate.java new file mode 100644 index 000000000000..be166948232e --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updatecatalogtemplate/SyncUpdateCatalogTemplate.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_UpdateCatalogTemplate_sync] +import com.google.cloud.designcenter.v1.CatalogTemplate; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.UpdateCatalogTemplateRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateCatalogTemplate { + + public static void main(String[] args) throws Exception { + syncUpdateCatalogTemplate(); + } + + public static void syncUpdateCatalogTemplate() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + UpdateCatalogTemplateRequest request = + UpdateCatalogTemplateRequest.newBuilder() + .setCatalogTemplate(CatalogTemplate.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + CatalogTemplate response = designCenterClient.updateCatalogTemplate(request); + } + } +} +// [END designcenter_v1_generated_DesignCenter_UpdateCatalogTemplate_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updatecatalogtemplate/SyncUpdateCatalogTemplateCatalogtemplateFieldmask.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updatecatalogtemplate/SyncUpdateCatalogTemplateCatalogtemplateFieldmask.java new file mode 100644 index 000000000000..73317de56a44 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updatecatalogtemplate/SyncUpdateCatalogTemplateCatalogtemplateFieldmask.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_UpdateCatalogTemplate_CatalogtemplateFieldmask_sync] +import com.google.cloud.designcenter.v1.CatalogTemplate; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateCatalogTemplateCatalogtemplateFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateCatalogTemplateCatalogtemplateFieldmask(); + } + + public static void syncUpdateCatalogTemplateCatalogtemplateFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + CatalogTemplate catalogTemplate = CatalogTemplate.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + CatalogTemplate response = + designCenterClient.updateCatalogTemplate(catalogTemplate, updateMask); + } + } +} +// [END designcenter_v1_generated_DesignCenter_UpdateCatalogTemplate_CatalogtemplateFieldmask_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updatecomponent/AsyncUpdateComponent.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updatecomponent/AsyncUpdateComponent.java new file mode 100644 index 000000000000..53cdd34ae868 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updatecomponent/AsyncUpdateComponent.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_UpdateComponent_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.Component; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.UpdateComponentRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateComponent { + + public static void main(String[] args) throws Exception { + asyncUpdateComponent(); + } + + public static void asyncUpdateComponent() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + UpdateComponentRequest request = + UpdateComponentRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setComponent(Component.newBuilder().build()) + .build(); + ApiFuture future = + designCenterClient.updateComponentCallable().futureCall(request); + // Do something. + Component response = future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_UpdateComponent_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updatecomponent/SyncUpdateComponent.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updatecomponent/SyncUpdateComponent.java new file mode 100644 index 000000000000..9fd5656f8bce --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updatecomponent/SyncUpdateComponent.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_UpdateComponent_sync] +import com.google.cloud.designcenter.v1.Component; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.UpdateComponentRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateComponent { + + public static void main(String[] args) throws Exception { + syncUpdateComponent(); + } + + public static void syncUpdateComponent() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + UpdateComponentRequest request = + UpdateComponentRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setComponent(Component.newBuilder().build()) + .build(); + Component response = designCenterClient.updateComponent(request); + } + } +} +// [END designcenter_v1_generated_DesignCenter_UpdateComponent_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updatecomponent/SyncUpdateComponentComponentFieldmask.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updatecomponent/SyncUpdateComponentComponentFieldmask.java new file mode 100644 index 000000000000..0cc0e75a5af6 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updatecomponent/SyncUpdateComponentComponentFieldmask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_UpdateComponent_ComponentFieldmask_sync] +import com.google.cloud.designcenter.v1.Component; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateComponentComponentFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateComponentComponentFieldmask(); + } + + public static void syncUpdateComponentComponentFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + Component component = Component.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Component response = designCenterClient.updateComponent(component, updateMask); + } + } +} +// [END designcenter_v1_generated_DesignCenter_UpdateComponent_ComponentFieldmask_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updateconnection/AsyncUpdateConnection.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updateconnection/AsyncUpdateConnection.java new file mode 100644 index 000000000000..38919e06a32b --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updateconnection/AsyncUpdateConnection.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_UpdateConnection_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.Connection; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.UpdateConnectionRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateConnection { + + public static void main(String[] args) throws Exception { + asyncUpdateConnection(); + } + + public static void asyncUpdateConnection() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + UpdateConnectionRequest request = + UpdateConnectionRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setConnection(Connection.newBuilder().build()) + .build(); + ApiFuture future = + designCenterClient.updateConnectionCallable().futureCall(request); + // Do something. + Connection response = future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_UpdateConnection_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updateconnection/SyncUpdateConnection.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updateconnection/SyncUpdateConnection.java new file mode 100644 index 000000000000..5ca7432085a5 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updateconnection/SyncUpdateConnection.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_UpdateConnection_sync] +import com.google.cloud.designcenter.v1.Connection; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.UpdateConnectionRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateConnection { + + public static void main(String[] args) throws Exception { + syncUpdateConnection(); + } + + public static void syncUpdateConnection() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + UpdateConnectionRequest request = + UpdateConnectionRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setConnection(Connection.newBuilder().build()) + .build(); + Connection response = designCenterClient.updateConnection(request); + } + } +} +// [END designcenter_v1_generated_DesignCenter_UpdateConnection_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updateconnection/SyncUpdateConnectionConnectionFieldmask.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updateconnection/SyncUpdateConnectionConnectionFieldmask.java new file mode 100644 index 000000000000..cb73bea4dc94 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updateconnection/SyncUpdateConnectionConnectionFieldmask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_UpdateConnection_ConnectionFieldmask_sync] +import com.google.cloud.designcenter.v1.Connection; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateConnectionConnectionFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateConnectionConnectionFieldmask(); + } + + public static void syncUpdateConnectionConnectionFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + Connection connection = Connection.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Connection response = designCenterClient.updateConnection(connection, updateMask); + } + } +} +// [END designcenter_v1_generated_DesignCenter_UpdateConnection_ConnectionFieldmask_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updatepolicy/AsyncUpdatePolicy.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updatepolicy/AsyncUpdatePolicy.java new file mode 100644 index 000000000000..57c107476e93 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updatepolicy/AsyncUpdatePolicy.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_UpdatePolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.Policy; +import com.google.cloud.designcenter.v1.UpdatePolicyRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdatePolicy { + + public static void main(String[] args) throws Exception { + asyncUpdatePolicy(); + } + + public static void asyncUpdatePolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + UpdatePolicyRequest request = + UpdatePolicyRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setPolicy(Policy.newBuilder().build()) + .build(); + ApiFuture future = designCenterClient.updatePolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_UpdatePolicy_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updatepolicy/SyncUpdatePolicy.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updatepolicy/SyncUpdatePolicy.java new file mode 100644 index 000000000000..881f8ccc9d13 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updatepolicy/SyncUpdatePolicy.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_UpdatePolicy_sync] +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.Policy; +import com.google.cloud.designcenter.v1.UpdatePolicyRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdatePolicy { + + public static void main(String[] args) throws Exception { + syncUpdatePolicy(); + } + + public static void syncUpdatePolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + UpdatePolicyRequest request = + UpdatePolicyRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setPolicy(Policy.newBuilder().build()) + .build(); + Policy response = designCenterClient.updatePolicy(request); + } + } +} +// [END designcenter_v1_generated_DesignCenter_UpdatePolicy_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updatepolicy/SyncUpdatePolicyPolicyFieldmask.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updatepolicy/SyncUpdatePolicyPolicyFieldmask.java new file mode 100644 index 000000000000..7fdaa9fde6a8 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updatepolicy/SyncUpdatePolicyPolicyFieldmask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_UpdatePolicy_PolicyFieldmask_sync] +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.Policy; +import com.google.protobuf.FieldMask; + +public class SyncUpdatePolicyPolicyFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdatePolicyPolicyFieldmask(); + } + + public static void syncUpdatePolicyPolicyFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + Policy policy = Policy.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Policy response = designCenterClient.updatePolicy(policy, updateMask); + } + } +} +// [END designcenter_v1_generated_DesignCenter_UpdatePolicy_PolicyFieldmask_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updatespace/AsyncUpdateSpace.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updatespace/AsyncUpdateSpace.java new file mode 100644 index 000000000000..a7573b404439 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updatespace/AsyncUpdateSpace.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_UpdateSpace_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.Space; +import com.google.cloud.designcenter.v1.UpdateSpaceRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateSpace { + + public static void main(String[] args) throws Exception { + asyncUpdateSpace(); + } + + public static void asyncUpdateSpace() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + UpdateSpaceRequest request = + UpdateSpaceRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setSpace(Space.newBuilder().build()) + .build(); + ApiFuture future = designCenterClient.updateSpaceCallable().futureCall(request); + // Do something. + Space response = future.get(); + } + } +} +// [END designcenter_v1_generated_DesignCenter_UpdateSpace_async] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updatespace/SyncUpdateSpace.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updatespace/SyncUpdateSpace.java new file mode 100644 index 000000000000..2d3db09dc3e2 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updatespace/SyncUpdateSpace.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_UpdateSpace_sync] +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.Space; +import com.google.cloud.designcenter.v1.UpdateSpaceRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateSpace { + + public static void main(String[] args) throws Exception { + syncUpdateSpace(); + } + + public static void syncUpdateSpace() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + UpdateSpaceRequest request = + UpdateSpaceRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setSpace(Space.newBuilder().build()) + .build(); + Space response = designCenterClient.updateSpace(request); + } + } +} +// [END designcenter_v1_generated_DesignCenter_UpdateSpace_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updatespace/SyncUpdateSpaceSpaceFieldmask.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updatespace/SyncUpdateSpaceSpaceFieldmask.java new file mode 100644 index 000000000000..6db9313b82c7 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcenter/updatespace/SyncUpdateSpaceSpaceFieldmask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenter_UpdateSpace_SpaceFieldmask_sync] +import com.google.cloud.designcenter.v1.DesignCenterClient; +import com.google.cloud.designcenter.v1.Space; +import com.google.protobuf.FieldMask; + +public class SyncUpdateSpaceSpaceFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateSpaceSpaceFieldmask(); + } + + public static void syncUpdateSpaceSpaceFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DesignCenterClient designCenterClient = DesignCenterClient.create()) { + Space space = Space.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Space response = designCenterClient.updateSpace(space, updateMask); + } + } +} +// [END designcenter_v1_generated_DesignCenter_UpdateSpace_SpaceFieldmask_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcentersettings/getspace/SyncGetSpace.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcentersettings/getspace/SyncGetSpace.java new file mode 100644 index 000000000000..2718148faf29 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcentersettings/getspace/SyncGetSpace.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenterSettings_GetSpace_sync] +import com.google.cloud.designcenter.v1.DesignCenterSettings; +import java.time.Duration; + +public class SyncGetSpace { + + public static void main(String[] args) throws Exception { + syncGetSpace(); + } + + public static void syncGetSpace() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DesignCenterSettings.Builder designCenterSettingsBuilder = DesignCenterSettings.newBuilder(); + designCenterSettingsBuilder + .getSpaceSettings() + .setRetrySettings( + designCenterSettingsBuilder + .getSpaceSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + DesignCenterSettings designCenterSettings = designCenterSettingsBuilder.build(); + } +} +// [END designcenter_v1_generated_DesignCenterSettings_GetSpace_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcentersettings/snapshotapplicationtemplate/SyncSnapshotApplicationTemplate.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcentersettings/snapshotapplicationtemplate/SyncSnapshotApplicationTemplate.java new file mode 100644 index 000000000000..0be704029145 --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/designcentersettings/snapshotapplicationtemplate/SyncSnapshotApplicationTemplate.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.samples; + +// [START designcenter_v1_generated_DesignCenterSettings_SnapshotApplicationTemplate_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.designcenter.v1.DesignCenterSettings; +import java.time.Duration; + +public class SyncSnapshotApplicationTemplate { + + public static void main(String[] args) throws Exception { + syncSnapshotApplicationTemplate(); + } + + public static void syncSnapshotApplicationTemplate() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DesignCenterSettings.Builder designCenterSettingsBuilder = DesignCenterSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + designCenterSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END designcenter_v1_generated_DesignCenterSettings_SnapshotApplicationTemplate_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/stub/designcenterstubsettings/getspace/SyncGetSpace.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/stub/designcenterstubsettings/getspace/SyncGetSpace.java new file mode 100644 index 000000000000..6f69b4cfdd5a --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/stub/designcenterstubsettings/getspace/SyncGetSpace.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.stub.samples; + +// [START designcenter_v1_generated_DesignCenterStubSettings_GetSpace_sync] +import com.google.cloud.designcenter.v1.stub.DesignCenterStubSettings; +import java.time.Duration; + +public class SyncGetSpace { + + public static void main(String[] args) throws Exception { + syncGetSpace(); + } + + public static void syncGetSpace() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DesignCenterStubSettings.Builder designCenterSettingsBuilder = + DesignCenterStubSettings.newBuilder(); + designCenterSettingsBuilder + .getSpaceSettings() + .setRetrySettings( + designCenterSettingsBuilder + .getSpaceSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + DesignCenterStubSettings designCenterSettings = designCenterSettingsBuilder.build(); + } +} +// [END designcenter_v1_generated_DesignCenterStubSettings_GetSpace_sync] diff --git a/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/stub/designcenterstubsettings/snapshotapplicationtemplate/SyncSnapshotApplicationTemplate.java b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/stub/designcenterstubsettings/snapshotapplicationtemplate/SyncSnapshotApplicationTemplate.java new file mode 100644 index 000000000000..f448dbb4303e --- /dev/null +++ b/java-designcenter/samples/snippets/generated/com/google/cloud/designcenter/v1/stub/designcenterstubsettings/snapshotapplicationtemplate/SyncSnapshotApplicationTemplate.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.designcenter.v1.stub.samples; + +// [START designcenter_v1_generated_DesignCenterStubSettings_SnapshotApplicationTemplate_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.designcenter.v1.stub.DesignCenterStubSettings; +import java.time.Duration; + +public class SyncSnapshotApplicationTemplate { + + public static void main(String[] args) throws Exception { + syncSnapshotApplicationTemplate(); + } + + public static void syncSnapshotApplicationTemplate() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DesignCenterStubSettings.Builder designCenterSettingsBuilder = + DesignCenterStubSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + designCenterSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END designcenter_v1_generated_DesignCenterStubSettings_SnapshotApplicationTemplate_sync] diff --git a/librarian.yaml b/librarian.yaml index c017f96af7f6..a3b886083072 100644 --- a/librarian.yaml +++ b/librarian.yaml @@ -1499,6 +1499,14 @@ libraries: released_version: 1.98.0 name_pretty_override: Google Cloud Deploy product_documentation_override: https://cloud.google.com/deploy/docs + - name: designcenter + version: 0.1.0-SNAPSHOT + apis: + - path: google/cloud/designcenter/v1 + java: + additional_protos: + - path: google/cloud/location/locations.proto + - path: google/iam/v1/iam_policy.proto - name: developerconnect version: 0.57.0 apis: diff --git a/pom.xml b/pom.xml index 62b142d8f0e1..e26e44bf9430 100644 --- a/pom.xml +++ b/pom.xml @@ -101,6 +101,7 @@ java-datastore java-datastream java-deploy + java-designcenter java-developerconnect java-developerknowledge java-devicestreaming diff --git a/versions.txt b/versions.txt index bc005f097bb7..12ec7dfbc8b2 100644 --- a/versions.txt +++ b/versions.txt @@ -1124,3 +1124,8 @@ google-cloud-observability-bom:0.0.0:0.1.0-SNAPSHOT proto-google-cloud-observability-v1:0.0.0:0.1.0-SNAPSHOT grpc-google-cloud-observability-v1:0.0.0:0.1.0-SNAPSHOT google-cloud-observability:0.0.0:0.1.0-SNAPSHOT +google-cloud-designcenter-parent:0.0.0:0.1.0-SNAPSHOT +google-cloud-designcenter-bom:0.0.0:0.1.0-SNAPSHOT +proto-google-cloud-designcenter-v1:0.0.0:0.1.0-SNAPSHOT +grpc-google-cloud-designcenter-v1:0.0.0:0.1.0-SNAPSHOT +google-cloud-designcenter:0.0.0:0.1.0-SNAPSHOT